| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Config.PutAggregationAuthorization
Description
Authorizes the aggregator account and region to collect data from the source account and region.
Synopsis
- data PutAggregationAuthorization = PutAggregationAuthorization' {
- tags :: Maybe [Tag]
- authorizedAccountId :: Text
- authorizedAwsRegion :: Text
- newPutAggregationAuthorization :: Text -> Text -> PutAggregationAuthorization
- putAggregationAuthorization_tags :: Lens' PutAggregationAuthorization (Maybe [Tag])
- putAggregationAuthorization_authorizedAccountId :: Lens' PutAggregationAuthorization Text
- putAggregationAuthorization_authorizedAwsRegion :: Lens' PutAggregationAuthorization Text
- data PutAggregationAuthorizationResponse = PutAggregationAuthorizationResponse' {}
- newPutAggregationAuthorizationResponse :: Int -> PutAggregationAuthorizationResponse
- putAggregationAuthorizationResponse_aggregationAuthorization :: Lens' PutAggregationAuthorizationResponse (Maybe AggregationAuthorization)
- putAggregationAuthorizationResponse_httpStatus :: Lens' PutAggregationAuthorizationResponse Int
Creating a Request
data PutAggregationAuthorization Source #
See: newPutAggregationAuthorization smart constructor.
Constructors
| PutAggregationAuthorization' | |
Fields
| |
Instances
newPutAggregationAuthorization Source #
Arguments
| :: Text | |
| -> Text | |
| -> PutAggregationAuthorization |
Create a value of PutAggregationAuthorization with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutAggregationAuthorization, putAggregationAuthorization_tags - An array of tag object.
PutAggregationAuthorization, putAggregationAuthorization_authorizedAccountId - The 12-digit account ID of the account authorized to aggregate data.
PutAggregationAuthorization, putAggregationAuthorization_authorizedAwsRegion - The region authorized to collect aggregated data.
Request Lenses
putAggregationAuthorization_tags :: Lens' PutAggregationAuthorization (Maybe [Tag]) Source #
An array of tag object.
putAggregationAuthorization_authorizedAccountId :: Lens' PutAggregationAuthorization Text Source #
The 12-digit account ID of the account authorized to aggregate data.
putAggregationAuthorization_authorizedAwsRegion :: Lens' PutAggregationAuthorization Text Source #
The region authorized to collect aggregated data.
Destructuring the Response
data PutAggregationAuthorizationResponse Source #
See: newPutAggregationAuthorizationResponse smart constructor.
Constructors
| PutAggregationAuthorizationResponse' | |
Fields
| |
Instances
newPutAggregationAuthorizationResponse Source #
Arguments
| :: Int | |
| -> PutAggregationAuthorizationResponse |
Create a value of PutAggregationAuthorizationResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:aggregationAuthorization:PutAggregationAuthorizationResponse', putAggregationAuthorizationResponse_aggregationAuthorization - Returns an AggregationAuthorization object.
$sel:httpStatus:PutAggregationAuthorizationResponse', putAggregationAuthorizationResponse_httpStatus - The response's http status code.
Response Lenses
putAggregationAuthorizationResponse_aggregationAuthorization :: Lens' PutAggregationAuthorizationResponse (Maybe AggregationAuthorization) Source #
Returns an AggregationAuthorization object.
putAggregationAuthorizationResponse_httpStatus :: Lens' PutAggregationAuthorizationResponse Int Source #
The response's http status code.