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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTAuthorizedAccountId, AuthorizedAwsRegion, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all aggregation_authorizations in a region.

SELECT
region,
authorized_account_id,
authorized_aws_region,
aggregation_authorization_arn,
tags
FROM aws.config.aggregation_authorizations
WHERE region = 'us-east-1';

Gets all properties from an individual aggregation_authorization.

SELECT
region,
authorized_account_id,
authorized_aws_region,
aggregation_authorization_arn,
tags
FROM aws.config.aggregation_authorizations
WHERE region = 'us-east-1' AND data__Identifier = '<AuthorizedAccountId>|<AuthorizedAwsRegion>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.config.aggregation_authorizations
WHERE data__Identifier = '<AuthorizedAccountId|AuthorizedAwsRegion>'
AND region = 'us-east-1';

Permissions

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

Create

config:DescribeAggregationAuthorizations,
config:PutAggregationAuthorization,
config:TagResource

Update

config:DescribeAggregationAuthorizations,
config:TagResource,
config:UntagResource,
config:ListTagsForResource

Read

config:DescribeAggregationAuthorizations,
config:ListTagsForResource

Delete

config:DescribeAggregationAuthorizations,
config:DeleteAggregationAuthorization,
config:UntagResource

List

config:DescribeAggregationAuthorizations