Skip to main content

aggregation_authorizations

Creates, updates, deletes, gets or lists an aggregation_authorizations resource.

Overview

Nameaggregation_authorizations
TypeResource
Idaws.config.aggregation_authorizations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aggregation_authorization_arnstringThe Amazon Resource Name (ARN) of the aggregation object.
authorized_account_idstringThe 12-digit account ID of the account authorized to aggregate data. (pattern: <code>\d{12}</code>)
authorized_aws_regionstringThe region authorized to collect aggregated data.
creation_timestring (date-time)The time stamp when the aggregation authorization was created.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_aggregation_authorizationsselectregionReturns a list of authorizations granted to various aggregator accounts and regions.
put_aggregation_authorizationreplaceregion, AuthorizedAccountId, AuthorizedAwsRegionAuthorizes the aggregator account and region to collect data from the source account and region. Tags are added at creation and cannot be updated with this operation PutAggregationAuthorization is an idempotent API. Subsequent requests won’t create a duplicate resource if one was already created. If a following request has different tags values, Config will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different. Use TagResource and UntagResource to update tags after creation.
delete_aggregation_authorizationdeleteregionDeletes the authorization granted to the specified configuration aggregator account in a specified region.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of authorizations granted to various aggregator accounts and regions.

SELECT
aggregation_authorization_arn,
authorized_account_id,
authorized_aws_region,
creation_time
FROM aws.config.aggregation_authorizations
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Authorizes the aggregator account and region to collect data from the source account and region. Tags are added at creation and cannot be updated with this operation PutAggregationAuthorization is an idempotent API. Subsequent requests won’t create a duplicate resource if one was already created. If a following request has different tags values, Config will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different. Use TagResource and UntagResource to update tags after creation.

REPLACE aws.config.aggregation_authorizations
SET
AuthorizedAccountId = '{{ AuthorizedAccountId }}',
AuthorizedAwsRegion = '{{ AuthorizedAwsRegion }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND AuthorizedAccountId = '{{ AuthorizedAccountId }}' --required
AND AuthorizedAwsRegion = '{{ AuthorizedAwsRegion }}' --required
RETURNING
aggregation_authorization;

DELETE examples

Deletes the authorization granted to the specified configuration aggregator account in a specified region.

DELETE FROM aws.config.aggregation_authorizations
WHERE region = '{{ region }}' --required
;