Skip to main content

aggregation_authorizations

Creates, updates, deletes or gets an aggregation_authorization resource or lists aggregation_authorizations in a region

Overview

Nameaggregation_authorizations
TypeResource
DescriptionResource Type definition for AWS::Config::AggregationAuthorization
Idawscc.config.aggregation_authorizations

Fields

NameDatatypeDescription
authorized_account_idstringThe 12-digit account ID of the account authorized to aggregate data.
authorized_aws_regionstringThe region authorized to collect aggregated data.
aggregation_authorization_arnstringThe ARN of the AggregationAuthorization.
tagsarrayThe tags for the AggregationAuthorization.
regionstringAWS region.

For more information, see AWS::Config::AggregationAuthorization.

Methods

NameResourceAccessible byRequired Params
create_resourceaggregation_authorizationsINSERTAuthorizedAccountId, AuthorizedAwsRegion, region
delete_resourceaggregation_authorizationsDELETEIdentifier, region
update_resourceaggregation_authorizationsUPDATEIdentifier, PatchDocument, region
list_resourcesaggregation_authorizations_list_onlySELECTregion
get_resourceaggregation_authorizationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual aggregation_authorization.

SELECT
region,
authorized_account_id,
authorized_aws_region,
aggregation_authorization_arn,
tags
FROM awscc.config.aggregation_authorizations
WHERE
region = 'us-east-1' AND
Identifier = '{{ authorized_account_id }}|{{ authorized_aws_region }}';

INSERT example

Use the following StackQL query and manifest file to create a new aggregation_authorization resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.config.aggregation_authorizations (
AuthorizedAccountId,
AuthorizedAwsRegion,
region
)
SELECT
'{{ authorized_account_id }}',
'{{ authorized_aws_region }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a aggregation_authorization resource, using stack-deploy.

/*+ update */
UPDATE awscc.config.aggregation_authorizations
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ authorized_account_id }}|{{ authorized_aws_region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.config.aggregation_authorizations
WHERE
Identifier = '{{ authorized_account_id }}|{{ authorized_aws_region }}' AND
region = 'us-east-1';

Permissions

To operate on the aggregation_authorizations resource, the following permissions are required:

config:DescribeAggregationAuthorizations,
config:PutAggregationAuthorization,
config:TagResource