put_configuration_aggregator

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, call DescribeConfigurationAggregators 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'
        },
    ]
)
Parameters
  • ConfigurationAggregatorName (string) --

    [REQUIRED]

    The name of the configuration aggregator.

  • AccountAggregationSources (list) --

    A list of AccountAggregationSource object.

    • (dict) --

      A collection of accounts and regions.

      • AccountIds (list) -- [REQUIRED]

        The 12-digit account ID of the account being aggregated.

        • (string) --
      • AllAwsRegions (boolean) --

        If true, aggregate existing Config regions and future regions.

      • AwsRegions (list) --

        The source regions being aggregated.

        • (string) --
  • OrganizationAggregationSource (dict) --

    An OrganizationAggregationSource object.

    • RoleArn (string) -- [REQUIRED]

      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.

      • (string) --
    • AllAwsRegions (boolean) --

      If true, aggregate existing Config regions and future regions.

  • Tags (list) --

    An array of tag object.

    • (dict) --

      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.

      • Key (string) --

        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.

      • Value (string) --

        The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Return type

dict

Returns

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.

            • (string) --
          • AllAwsRegions (boolean) --

            If true, aggregate existing Config regions and future regions.

          • AwsRegions (list) --

            The source regions being aggregated.

            • (string) --
      • 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.

          • (string) --
        • 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