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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.config.aggregation_authorizations
WHERE
Identifier = '{{ authorized_account_id }}|{{ authorized_aws_region }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

config:DescribeAggregationAuthorizations,
config:PutAggregationAuthorization,
config:TagResource