ConfigService.Client.
put_configuration_aggregator
(**kwargs)¶Creates and updates the configuration aggregator with the selected source accounts and regions. The source account can be individual account(s) or an organization.
accountIds
that are passed will be replaced with existing accounts. If you want to add additional accounts into the aggregator, callDescribeConfigurationAggregators
to get the previous accounts and then append new ones.
Note
Config should be enabled in source accounts and regions you want to aggregate.
If your source type is an organization, you must be signed in to the management account or a registered delegated administrator and all the features must be enabled in your organization. If the caller is a management account, Config calls EnableAwsServiceAccess
API to enable integration between Config and Organizations. If the caller is a registered delegated administrator, Config calls ListDelegatedAdministrators
API to verify whether the caller is a valid delegated administrator.
To register a delegated administrator, see Register a Delegated Administrator in the Config developer guide .
See also: AWS API Documentation
Request Syntax
response = client.put_configuration_aggregator(
ConfigurationAggregatorName='string',
AccountAggregationSources=[
{
'AccountIds': [
'string',
],
'AllAwsRegions': True|False,
'AwsRegions': [
'string',
]
},
],
OrganizationAggregationSource={
'RoleArn': 'string',
'AwsRegions': [
'string',
],
'AllAwsRegions': True|False
},
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the configuration aggregator.
A list of AccountAggregationSource object.
A collection of accounts and regions.
The 12-digit account ID of the account being aggregated.
If true, aggregate existing Config regions and future regions.
The source regions being aggregated.
An OrganizationAggregationSource object.
ARN of the IAM role used to retrieve Amazon Web Services Organization details associated with the aggregator account.
The source regions being aggregated.
If true, aggregate existing Config regions and future regions.
An array of tag object.
The tags for the resource. The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
dict
Response Syntax
{
'ConfigurationAggregator': {
'ConfigurationAggregatorName': 'string',
'ConfigurationAggregatorArn': 'string',
'AccountAggregationSources': [
{
'AccountIds': [
'string',
],
'AllAwsRegions': True|False,
'AwsRegions': [
'string',
]
},
],
'OrganizationAggregationSource': {
'RoleArn': 'string',
'AwsRegions': [
'string',
],
'AllAwsRegions': True|False
},
'CreationTime': datetime(2015, 1, 1),
'LastUpdatedTime': datetime(2015, 1, 1),
'CreatedBy': 'string'
}
}
Response Structure
(dict) --
ConfigurationAggregator (dict) --
Returns a ConfigurationAggregator object.
ConfigurationAggregatorName (string) --
The name of the aggregator.
ConfigurationAggregatorArn (string) --
The Amazon Resource Name (ARN) of the aggregator.
AccountAggregationSources (list) --
Provides a list of source accounts and regions to be aggregated.
(dict) --
A collection of accounts and regions.
AccountIds (list) --
The 12-digit account ID of the account being aggregated.
AllAwsRegions (boolean) --
If true, aggregate existing Config regions and future regions.
AwsRegions (list) --
The source regions being aggregated.
OrganizationAggregationSource (dict) --
Provides an organization and list of regions to be aggregated.
RoleArn (string) --
ARN of the IAM role used to retrieve Amazon Web Services Organization details associated with the aggregator account.
AwsRegions (list) --
The source regions being aggregated.
AllAwsRegions (boolean) --
If true, aggregate existing Config regions and future regions.
CreationTime (datetime) --
The time stamp when the configuration aggregator was created.
LastUpdatedTime (datetime) --
The time of the last update.
CreatedBy (string) --
Amazon Web Services service that created the configuration aggregator.
Exceptions
ConfigService.Client.exceptions.InvalidParameterValueException
ConfigService.Client.exceptions.LimitExceededException
ConfigService.Client.exceptions.InvalidRoleException
ConfigService.Client.exceptions.OrganizationAccessDeniedException
ConfigService.Client.exceptions.NoAvailableOrganizationException
ConfigService.Client.exceptions.OrganizationAllFeaturesNotEnabledException