Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
PutAggregationAuthorization' | |
|
Instances
newPutAggregationAuthorization Source #
:: 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:
$sel:tags:PutAggregationAuthorization'
, putAggregationAuthorization_tags
- An array of tag object.
$sel:authorizedAccountId:PutAggregationAuthorization'
, putAggregationAuthorization_authorizedAccountId
- The 12-digit account ID of the account authorized to aggregate data.
$sel:authorizedAwsRegion: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.
PutAggregationAuthorizationResponse' | |
|
Instances
Eq PutAggregationAuthorizationResponse Source # | |
Read PutAggregationAuthorizationResponse Source # | |
Show PutAggregationAuthorizationResponse Source # | |
Generic PutAggregationAuthorizationResponse Source # | |
NFData PutAggregationAuthorizationResponse Source # | |
Defined in Amazonka.Config.PutAggregationAuthorization rnf :: PutAggregationAuthorizationResponse -> () # | |
type Rep PutAggregationAuthorizationResponse Source # | |
Defined in Amazonka.Config.PutAggregationAuthorization type Rep PutAggregationAuthorizationResponse = D1 ('MetaData "PutAggregationAuthorizationResponse" "Amazonka.Config.PutAggregationAuthorization" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "PutAggregationAuthorizationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "aggregationAuthorization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AggregationAuthorization)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutAggregationAuthorizationResponse Source #
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.