1. Packages
  2. AWS Classic
  3. API Docs
  4. cfg
  5. ConfigurationAggregator

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.22.2 published on Friday, Feb 16, 2024 by Pulumi

aws.cfg.ConfigurationAggregator

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.22.2 published on Friday, Feb 16, 2024 by Pulumi

    Manages an AWS Config Configuration Aggregator

    Example Usage

    Account Based Aggregation

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var account = new Aws.Cfg.ConfigurationAggregator("account", new()
        {
            AccountAggregationSource = new Aws.Cfg.Inputs.ConfigurationAggregatorAccountAggregationSourceArgs
            {
                AccountIds = new[]
                {
                    "123456789012",
                },
                Regions = new[]
                {
                    "us-west-2",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cfg"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cfg.NewConfigurationAggregator(ctx, "account", &cfg.ConfigurationAggregatorArgs{
    			AccountAggregationSource: &cfg.ConfigurationAggregatorAccountAggregationSourceArgs{
    				AccountIds: pulumi.StringArray{
    					pulumi.String("123456789012"),
    				},
    				Regions: pulumi.StringArray{
    					pulumi.String("us-west-2"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cfg.ConfigurationAggregator;
    import com.pulumi.aws.cfg.ConfigurationAggregatorArgs;
    import com.pulumi.aws.cfg.inputs.ConfigurationAggregatorAccountAggregationSourceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var account = new ConfigurationAggregator("account", ConfigurationAggregatorArgs.builder()        
                .accountAggregationSource(ConfigurationAggregatorAccountAggregationSourceArgs.builder()
                    .accountIds("123456789012")
                    .regions("us-west-2")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    account = aws.cfg.ConfigurationAggregator("account", account_aggregation_source=aws.cfg.ConfigurationAggregatorAccountAggregationSourceArgs(
        account_ids=["123456789012"],
        regions=["us-west-2"],
    ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const account = new aws.cfg.ConfigurationAggregator("account", {accountAggregationSource: {
        accountIds: ["123456789012"],
        regions: ["us-west-2"],
    }});
    
    resources:
      account:
        type: aws:cfg:ConfigurationAggregator
        properties:
          accountAggregationSource:
            accountIds:
              - '123456789012'
            regions:
              - us-west-2
    

    Organization Based Aggregation

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
        {
            Statements = new[]
            {
                new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
                {
                    Effect = "Allow",
                    Principals = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                        {
                            Type = "Service",
                            Identifiers = new[]
                            {
                                "config.amazonaws.com",
                            },
                        },
                    },
                    Actions = new[]
                    {
                        "sts:AssumeRole",
                    },
                },
            },
        });
    
        var organizationRole = new Aws.Iam.Role("organizationRole", new()
        {
            AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
        });
    
        var organizationRolePolicyAttachment = new Aws.Iam.RolePolicyAttachment("organizationRolePolicyAttachment", new()
        {
            Role = organizationRole.Name,
            PolicyArn = "arn:aws:iam::aws:policy/service-role/AWSConfigRoleForOrganizations",
        });
    
        var organizationConfigurationAggregator = new Aws.Cfg.ConfigurationAggregator("organizationConfigurationAggregator", new()
        {
            OrganizationAggregationSource = new Aws.Cfg.Inputs.ConfigurationAggregatorOrganizationAggregationSourceArgs
            {
                AllRegions = true,
                RoleArn = organizationRole.Arn,
            },
        }, new CustomResourceOptions
        {
            DependsOn = new[]
            {
                organizationRolePolicyAttachment,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cfg"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
    			Statements: []iam.GetPolicyDocumentStatement{
    				{
    					Effect: pulumi.StringRef("Allow"),
    					Principals: []iam.GetPolicyDocumentStatementPrincipal{
    						{
    							Type: "Service",
    							Identifiers: []string{
    								"config.amazonaws.com",
    							},
    						},
    					},
    					Actions: []string{
    						"sts:AssumeRole",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		organizationRole, err := iam.NewRole(ctx, "organizationRole", &iam.RoleArgs{
    			AssumeRolePolicy: *pulumi.String(assumeRole.Json),
    		})
    		if err != nil {
    			return err
    		}
    		organizationRolePolicyAttachment, err := iam.NewRolePolicyAttachment(ctx, "organizationRolePolicyAttachment", &iam.RolePolicyAttachmentArgs{
    			Role:      organizationRole.Name,
    			PolicyArn: pulumi.String("arn:aws:iam::aws:policy/service-role/AWSConfigRoleForOrganizations"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cfg.NewConfigurationAggregator(ctx, "organizationConfigurationAggregator", &cfg.ConfigurationAggregatorArgs{
    			OrganizationAggregationSource: &cfg.ConfigurationAggregatorOrganizationAggregationSourceArgs{
    				AllRegions: pulumi.Bool(true),
    				RoleArn:    organizationRole.Arn,
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			organizationRolePolicyAttachment,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.iam.RolePolicyAttachment;
    import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
    import com.pulumi.aws.cfg.ConfigurationAggregator;
    import com.pulumi.aws.cfg.ConfigurationAggregatorArgs;
    import com.pulumi.aws.cfg.inputs.ConfigurationAggregatorOrganizationAggregationSourceArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(GetPolicyDocumentStatementArgs.builder()
                    .effect("Allow")
                    .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                        .type("Service")
                        .identifiers("config.amazonaws.com")
                        .build())
                    .actions("sts:AssumeRole")
                    .build())
                .build());
    
            var organizationRole = new Role("organizationRole", RoleArgs.builder()        
                .assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
                .build());
    
            var organizationRolePolicyAttachment = new RolePolicyAttachment("organizationRolePolicyAttachment", RolePolicyAttachmentArgs.builder()        
                .role(organizationRole.name())
                .policyArn("arn:aws:iam::aws:policy/service-role/AWSConfigRoleForOrganizations")
                .build());
    
            var organizationConfigurationAggregator = new ConfigurationAggregator("organizationConfigurationAggregator", ConfigurationAggregatorArgs.builder()        
                .organizationAggregationSource(ConfigurationAggregatorOrganizationAggregationSourceArgs.builder()
                    .allRegions(true)
                    .roleArn(organizationRole.arn())
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(organizationRolePolicyAttachment)
                    .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    assume_role = aws.iam.get_policy_document(statements=[aws.iam.GetPolicyDocumentStatementArgs(
        effect="Allow",
        principals=[aws.iam.GetPolicyDocumentStatementPrincipalArgs(
            type="Service",
            identifiers=["config.amazonaws.com"],
        )],
        actions=["sts:AssumeRole"],
    )])
    organization_role = aws.iam.Role("organizationRole", assume_role_policy=assume_role.json)
    organization_role_policy_attachment = aws.iam.RolePolicyAttachment("organizationRolePolicyAttachment",
        role=organization_role.name,
        policy_arn="arn:aws:iam::aws:policy/service-role/AWSConfigRoleForOrganizations")
    organization_configuration_aggregator = aws.cfg.ConfigurationAggregator("organizationConfigurationAggregator", organization_aggregation_source=aws.cfg.ConfigurationAggregatorOrganizationAggregationSourceArgs(
        all_regions=True,
        role_arn=organization_role.arn,
    ),
    opts=pulumi.ResourceOptions(depends_on=[organization_role_policy_attachment]))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const assumeRole = aws.iam.getPolicyDocument({
        statements: [{
            effect: "Allow",
            principals: [{
                type: "Service",
                identifiers: ["config.amazonaws.com"],
            }],
            actions: ["sts:AssumeRole"],
        }],
    });
    const organizationRole = new aws.iam.Role("organizationRole", {assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json)});
    const organizationRolePolicyAttachment = new aws.iam.RolePolicyAttachment("organizationRolePolicyAttachment", {
        role: organizationRole.name,
        policyArn: "arn:aws:iam::aws:policy/service-role/AWSConfigRoleForOrganizations",
    });
    const organizationConfigurationAggregator = new aws.cfg.ConfigurationAggregator("organizationConfigurationAggregator", {organizationAggregationSource: {
        allRegions: true,
        roleArn: organizationRole.arn,
    }}, {
        dependsOn: [organizationRolePolicyAttachment],
    });
    
    resources:
      organizationConfigurationAggregator:
        type: aws:cfg:ConfigurationAggregator
        properties:
          organizationAggregationSource:
            allRegions: true
            roleArn: ${organizationRole.arn}
        options:
          dependson:
            - ${organizationRolePolicyAttachment}
      organizationRole:
        type: aws:iam:Role
        properties:
          assumeRolePolicy: ${assumeRole.json}
      organizationRolePolicyAttachment:
        type: aws:iam:RolePolicyAttachment
        properties:
          role: ${organizationRole.name}
          policyArn: arn:aws:iam::aws:policy/service-role/AWSConfigRoleForOrganizations
    variables:
      assumeRole:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            statements:
              - effect: Allow
                principals:
                  - type: Service
                    identifiers:
                      - config.amazonaws.com
                actions:
                  - sts:AssumeRole
    

    Create ConfigurationAggregator Resource

    new ConfigurationAggregator(name: string, args?: ConfigurationAggregatorArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigurationAggregator(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                account_aggregation_source: Optional[ConfigurationAggregatorAccountAggregationSourceArgs] = None,
                                name: Optional[str] = None,
                                organization_aggregation_source: Optional[ConfigurationAggregatorOrganizationAggregationSourceArgs] = None,
                                tags: Optional[Mapping[str, str]] = None)
    @overload
    def ConfigurationAggregator(resource_name: str,
                                args: Optional[ConfigurationAggregatorArgs] = None,
                                opts: Optional[ResourceOptions] = None)
    func NewConfigurationAggregator(ctx *Context, name string, args *ConfigurationAggregatorArgs, opts ...ResourceOption) (*ConfigurationAggregator, error)
    public ConfigurationAggregator(string name, ConfigurationAggregatorArgs? args = null, CustomResourceOptions? opts = null)
    public ConfigurationAggregator(String name, ConfigurationAggregatorArgs args)
    public ConfigurationAggregator(String name, ConfigurationAggregatorArgs args, CustomResourceOptions options)
    
    type: aws:cfg:ConfigurationAggregator
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ConfigurationAggregatorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ConfigurationAggregatorArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ConfigurationAggregatorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigurationAggregatorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigurationAggregatorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ConfigurationAggregator Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ConfigurationAggregator resource accepts the following input properties:

    AccountAggregationSource ConfigurationAggregatorAccountAggregationSource
    The account(s) to aggregate config data from as documented below.
    Name string
    The name of the configuration aggregator.
    OrganizationAggregationSource ConfigurationAggregatorOrganizationAggregationSource
    The organization to aggregate config data from as documented below.
    Tags Dictionary<string, string>

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    AccountAggregationSource ConfigurationAggregatorAccountAggregationSourceArgs
    The account(s) to aggregate config data from as documented below.
    Name string
    The name of the configuration aggregator.
    OrganizationAggregationSource ConfigurationAggregatorOrganizationAggregationSourceArgs
    The organization to aggregate config data from as documented below.
    Tags map[string]string

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    accountAggregationSource ConfigurationAggregatorAccountAggregationSource
    The account(s) to aggregate config data from as documented below.
    name String
    The name of the configuration aggregator.
    organizationAggregationSource ConfigurationAggregatorOrganizationAggregationSource
    The organization to aggregate config data from as documented below.
    tags Map<String,String>

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    accountAggregationSource ConfigurationAggregatorAccountAggregationSource
    The account(s) to aggregate config data from as documented below.
    name string
    The name of the configuration aggregator.
    organizationAggregationSource ConfigurationAggregatorOrganizationAggregationSource
    The organization to aggregate config data from as documented below.
    tags {[key: string]: string}

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    account_aggregation_source ConfigurationAggregatorAccountAggregationSourceArgs
    The account(s) to aggregate config data from as documented below.
    name str
    The name of the configuration aggregator.
    organization_aggregation_source ConfigurationAggregatorOrganizationAggregationSourceArgs
    The organization to aggregate config data from as documented below.
    tags Mapping[str, str]

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    accountAggregationSource Property Map
    The account(s) to aggregate config data from as documented below.
    name String
    The name of the configuration aggregator.
    organizationAggregationSource Property Map
    The organization to aggregate config data from as documented below.
    tags Map<String>

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConfigurationAggregator resource produces the following output properties:

    Arn string
    The ARN of the aggregator
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Arn string
    The ARN of the aggregator
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    The ARN of the aggregator
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn string
    The ARN of the aggregator
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn str
    The ARN of the aggregator
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    The ARN of the aggregator
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Look up Existing ConfigurationAggregator Resource

    Get an existing ConfigurationAggregator resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ConfigurationAggregatorState, opts?: CustomResourceOptions): ConfigurationAggregator
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_aggregation_source: Optional[ConfigurationAggregatorAccountAggregationSourceArgs] = None,
            arn: Optional[str] = None,
            name: Optional[str] = None,
            organization_aggregation_source: Optional[ConfigurationAggregatorOrganizationAggregationSourceArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> ConfigurationAggregator
    func GetConfigurationAggregator(ctx *Context, name string, id IDInput, state *ConfigurationAggregatorState, opts ...ResourceOption) (*ConfigurationAggregator, error)
    public static ConfigurationAggregator Get(string name, Input<string> id, ConfigurationAggregatorState? state, CustomResourceOptions? opts = null)
    public static ConfigurationAggregator get(String name, Output<String> id, ConfigurationAggregatorState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountAggregationSource ConfigurationAggregatorAccountAggregationSource
    The account(s) to aggregate config data from as documented below.
    Arn string
    The ARN of the aggregator
    Name string
    The name of the configuration aggregator.
    OrganizationAggregationSource ConfigurationAggregatorOrganizationAggregationSource
    The organization to aggregate config data from as documented below.
    Tags Dictionary<string, string>

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    AccountAggregationSource ConfigurationAggregatorAccountAggregationSourceArgs
    The account(s) to aggregate config data from as documented below.
    Arn string
    The ARN of the aggregator
    Name string
    The name of the configuration aggregator.
    OrganizationAggregationSource ConfigurationAggregatorOrganizationAggregationSourceArgs
    The organization to aggregate config data from as documented below.
    Tags map[string]string

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    accountAggregationSource ConfigurationAggregatorAccountAggregationSource
    The account(s) to aggregate config data from as documented below.
    arn String
    The ARN of the aggregator
    name String
    The name of the configuration aggregator.
    organizationAggregationSource ConfigurationAggregatorOrganizationAggregationSource
    The organization to aggregate config data from as documented below.
    tags Map<String,String>

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    accountAggregationSource ConfigurationAggregatorAccountAggregationSource
    The account(s) to aggregate config data from as documented below.
    arn string
    The ARN of the aggregator
    name string
    The name of the configuration aggregator.
    organizationAggregationSource ConfigurationAggregatorOrganizationAggregationSource
    The organization to aggregate config data from as documented below.
    tags {[key: string]: string}

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    account_aggregation_source ConfigurationAggregatorAccountAggregationSourceArgs
    The account(s) to aggregate config data from as documented below.
    arn str
    The ARN of the aggregator
    name str
    The name of the configuration aggregator.
    organization_aggregation_source ConfigurationAggregatorOrganizationAggregationSourceArgs
    The organization to aggregate config data from as documented below.
    tags Mapping[str, str]

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    accountAggregationSource Property Map
    The account(s) to aggregate config data from as documented below.
    arn String
    The ARN of the aggregator
    name String
    The name of the configuration aggregator.
    organizationAggregationSource Property Map
    The organization to aggregate config data from as documented below.
    tags Map<String>

    A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Either account_aggregation_source or organization_aggregation_source must be specified.

    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Supporting Types

    ConfigurationAggregatorAccountAggregationSource, ConfigurationAggregatorAccountAggregationSourceArgs

    AccountIds List<string>
    List of 12-digit account IDs of the account(s) being aggregated.
    AllRegions bool
    If true, aggregate existing AWS Config regions and future regions.
    Regions List<string>

    List of source regions being aggregated.

    Either regions or all_regions (as true) must be specified.

    AccountIds []string
    List of 12-digit account IDs of the account(s) being aggregated.
    AllRegions bool
    If true, aggregate existing AWS Config regions and future regions.
    Regions []string

    List of source regions being aggregated.

    Either regions or all_regions (as true) must be specified.

    accountIds List<String>
    List of 12-digit account IDs of the account(s) being aggregated.
    allRegions Boolean
    If true, aggregate existing AWS Config regions and future regions.
    regions List<String>

    List of source regions being aggregated.

    Either regions or all_regions (as true) must be specified.

    accountIds string[]
    List of 12-digit account IDs of the account(s) being aggregated.
    allRegions boolean
    If true, aggregate existing AWS Config regions and future regions.
    regions string[]

    List of source regions being aggregated.

    Either regions or all_regions (as true) must be specified.

    account_ids Sequence[str]
    List of 12-digit account IDs of the account(s) being aggregated.
    all_regions bool
    If true, aggregate existing AWS Config regions and future regions.
    regions Sequence[str]

    List of source regions being aggregated.

    Either regions or all_regions (as true) must be specified.

    accountIds List<String>
    List of 12-digit account IDs of the account(s) being aggregated.
    allRegions Boolean
    If true, aggregate existing AWS Config regions and future regions.
    regions List<String>

    List of source regions being aggregated.

    Either regions or all_regions (as true) must be specified.

    ConfigurationAggregatorOrganizationAggregationSource, ConfigurationAggregatorOrganizationAggregationSourceArgs

    RoleArn string

    ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

    Either regions or all_regions (as true) must be specified.

    AllRegions bool
    If true, aggregate existing AWS Config regions and future regions.
    Regions List<string>
    List of source regions being aggregated.
    RoleArn string

    ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

    Either regions or all_regions (as true) must be specified.

    AllRegions bool
    If true, aggregate existing AWS Config regions and future regions.
    Regions []string
    List of source regions being aggregated.
    roleArn String

    ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

    Either regions or all_regions (as true) must be specified.

    allRegions Boolean
    If true, aggregate existing AWS Config regions and future regions.
    regions List<String>
    List of source regions being aggregated.
    roleArn string

    ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

    Either regions or all_regions (as true) must be specified.

    allRegions boolean
    If true, aggregate existing AWS Config regions and future regions.
    regions string[]
    List of source regions being aggregated.
    role_arn str

    ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

    Either regions or all_regions (as true) must be specified.

    all_regions bool
    If true, aggregate existing AWS Config regions and future regions.
    regions Sequence[str]
    List of source regions being aggregated.
    roleArn String

    ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account.

    Either regions or all_regions (as true) must be specified.

    allRegions Boolean
    If true, aggregate existing AWS Config regions and future regions.
    regions List<String>
    List of source regions being aggregated.

    Import

    Using pulumi import, import Configuration Aggregators using the name. For example:

     $ pulumi import aws:cfg/configurationAggregator:ConfigurationAggregator example foo
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.22.2 published on Friday, Feb 16, 2024 by Pulumi