Skip to main content

configuration_aggregators

Creates, updates, deletes or gets a configuration_aggregator resource or lists configuration_aggregators in a region

Overview

Nameconfiguration_aggregators
TypeResource
DescriptionResource Type definition for AWS::Config::ConfigurationAggregator
Idawscc.config.configuration_aggregators

Fields

NameDatatypeDescription
account_aggregation_sourcesarray
configuration_aggregator_namestringThe name of the aggregator.
configuration_aggregator_arnstringThe Amazon Resource Name (ARN) of the aggregator.
organization_aggregation_sourceobject
tagsarrayThe tags for the configuration aggregator.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceconfiguration_aggregatorsINSERTregion
delete_resourceconfiguration_aggregatorsDELETEIdentifier, region
update_resourceconfiguration_aggregatorsUPDATEIdentifier, PatchDocument, region
list_resourcesconfiguration_aggregators_list_onlySELECTregion
get_resourceconfiguration_aggregatorsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual configuration_aggregator.

SELECT
region,
account_aggregation_sources,
configuration_aggregator_name,
configuration_aggregator_arn,
organization_aggregation_source,
tags
FROM awscc.config.configuration_aggregators
WHERE
region = '{{ region }}' AND
Identifier = '{{ configuration_aggregator_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.config.configuration_aggregators (
AccountAggregationSources,
ConfigurationAggregatorName,
OrganizationAggregationSource,
Tags,
region
)
SELECT
'{{ account_aggregation_sources }}',
'{{ configuration_aggregator_name }}',
'{{ organization_aggregation_source }}',
'{{ tags }}',
'{{ 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 configuration_aggregator resource, using stack-deploy.

/*+ update */
UPDATE awscc.config.configuration_aggregators
SET PatchDocument = string('{{ {
"AccountAggregationSources": account_aggregation_sources,
"OrganizationAggregationSource": organization_aggregation_source,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ configuration_aggregator_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.config.configuration_aggregators
WHERE
Identifier = '{{ configuration_aggregator_name }}' 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 configuration_aggregators resource, the following permissions are required:

config:PutConfigurationAggregator,
config:DescribeConfigurationAggregators,
config:TagResource,
iam:PassRole,
organizations:EnableAWSServiceAccess,
organizations:ListDelegatedAdministrators