Show / Hide Table of Contents

Class ConfigurationAggregator

Manages an AWS Config Configuration Aggregator

Example Usage

Account Based Aggregation

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var account = new Aws.Cfg.ConfigurationAggregator("account", new Aws.Cfg.ConfigurationAggregatorArgs
    {
        AccountAggregationSource = new Aws.Cfg.Inputs.ConfigurationAggregatorAccountAggregationSourceArgs
        {
            AccountIds = 
            {
                "123456789012",
            },
            Regions = 
            {
                "us-west-2",
            },
        },
    });
}

}

Organization Based Aggregation

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var organizationRole = new Aws.Iam.Role("organizationRole", new Aws.Iam.RoleArgs
    {
        AssumeRolePolicy = @"{
""Version"": ""2012-10-17"",
""Statement"": [
{
  ""Sid"": """",
  ""Effect"": ""Allow"",
  ""Principal"": {
    ""Service"": ""config.amazonaws.com""
  },
  ""Action"": ""sts:AssumeRole""
}
]
}

",
    });
    var organizationConfigurationAggregator = new Aws.Cfg.ConfigurationAggregator("organizationConfigurationAggregator", new Aws.Cfg.ConfigurationAggregatorArgs
    {
        OrganizationAggregationSource = new Aws.Cfg.Inputs.ConfigurationAggregatorOrganizationAggregationSourceArgs
        {
            AllRegions = true,
            RoleArn = organizationRole.Arn,
        },
    });
    var organizationRolePolicyAttachment = new Aws.Iam.RolePolicyAttachment("organizationRolePolicyAttachment", new Aws.Iam.RolePolicyAttachmentArgs
    {
        PolicyArn = "arn:aws:iam::aws:policy/service-role/AWSConfigRoleForOrganizations",
        Role = organizationRole.Name,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ConfigurationAggregator
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Cfg
Assembly: Pulumi.Aws.dll
Syntax
public class ConfigurationAggregator : CustomResource

Constructors

View Source

ConfigurationAggregator(String, ConfigurationAggregatorArgs, CustomResourceOptions)

Create a ConfigurationAggregator resource with the given unique name, arguments, and options.

Declaration
public ConfigurationAggregator(string name, ConfigurationAggregatorArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ConfigurationAggregatorArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AccountAggregationSource

The account(s) to aggregate config data from as documented below.

Declaration
public Output<ConfigurationAggregatorAccountAggregationSource> AccountAggregationSource { get; }
Property Value
Type Description
Output<ConfigurationAggregatorAccountAggregationSource>
View Source

Arn

The ARN of the aggregator

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the configuration aggregator.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

OrganizationAggregationSource

The organization to aggregate config data from as documented below.

Declaration
public Output<ConfigurationAggregatorOrganizationAggregationSource> OrganizationAggregationSource { get; }
Property Value
Type Description
Output<ConfigurationAggregatorOrganizationAggregationSource>
View Source

Tags

A map of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, ConfigurationAggregatorState, CustomResourceOptions)

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

Declaration
public static ConfigurationAggregator Get(string name, Input<string> id, ConfigurationAggregatorState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ConfigurationAggregatorState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ConfigurationAggregator
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.