CfnConfigurationAggregatorProps Struct
Properties for defining a CfnConfigurationAggregator.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_config as config } from 'aws-cdk-lib';
const cfnConfigurationAggregatorProps: config.CfnConfigurationAggregatorProps = {
accountAggregationSources: [{
accountIds: ['accountIds'],
// the properties below are optional
allAwsRegions: false,
awsRegions: ['awsRegions'],
}],
configurationAggregatorName: 'configurationAggregatorName',
organizationAggregationSource: {
roleArn: 'roleArn',
// the properties below are optional
allAwsRegions: false,
awsRegions: ['awsRegions'],
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_config as config
cfn_configuration_aggregator_props = config.CfnConfigurationAggregatorProps(
account_aggregation_sources=[config.CfnConfigurationAggregator.AccountAggregationSourceProperty(
account_ids=["accountIds"],
# the properties below are optional
all_aws_regions=False,
aws_regions=["awsRegions"]
)],
configuration_aggregator_name="configurationAggregatorName",
organization_aggregation_source=config.CfnConfigurationAggregator.OrganizationAggregationSourceProperty(
role_arn="roleArn",
# the properties below are optional
all_aws_regions=False,
aws_regions=["awsRegions"]
),
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.config.*;
CfnConfigurationAggregatorProps cfnConfigurationAggregatorProps = CfnConfigurationAggregatorProps.builder()
.accountAggregationSources(List.of(AccountAggregationSourceProperty.builder()
.accountIds(List.of("accountIds"))
// the properties below are optional
.allAwsRegions(false)
.awsRegions(List.of("awsRegions"))
.build()))
.configurationAggregatorName("configurationAggregatorName")
.organizationAggregationSource(OrganizationAggregationSourceProperty.builder()
.roleArn("roleArn")
// the properties below are optional
.allAwsRegions(false)
.awsRegions(List.of("awsRegions"))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Config;
var cfnConfigurationAggregatorProps = new CfnConfigurationAggregatorProps {
AccountAggregationSources = new [] { new AccountAggregationSourceProperty {
AccountIds = new [] { "accountIds" },
// the properties below are optional
AllAwsRegions = false,
AwsRegions = new [] { "awsRegions" }
} },
ConfigurationAggregatorName = "configurationAggregatorName",
OrganizationAggregationSource = new OrganizationAggregationSourceProperty {
RoleArn = "roleArn",
// the properties below are optional
AllAwsRegions = false,
AwsRegions = new [] { "awsRegions" }
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnConfigurationAggregatorProps := &CfnConfigurationAggregatorProps{
AccountAggregationSources: []interface{}{
&AccountAggregationSourceProperty{
AccountIds: []*string{
jsii.String("accountIds"),
},
// the properties below are optional
AllAwsRegions: jsii.Boolean(false),
AwsRegions: []*string{
jsii.String("awsRegions"),
},
},
},
ConfigurationAggregatorName: jsii.String("configurationAggregatorName"),
OrganizationAggregationSource: &OrganizationAggregationSourceProperty{
RoleArn: jsii.String("roleArn"),
// the properties below are optional
AllAwsRegions: jsii.Boolean(false),
AwsRegions: []*string{
jsii.String("awsRegions"),
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
accountAggregationSourcesoptionalIResolvable | IResolvable | CfnConfigurationAggregator.account_aggregation_sourcesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AccountAggregationSourceProperty]]]accountAggregationSourcesoptionalIResolvableAccountAggregationSourcesoptionalIResolvableAccountAggregationSourcesoptionalinterface{} #Provides a list of source accounts and regions to be aggregated.
configurationAggregatorNameoptionalstringconfiguration_aggregator_nameoptionalstrconfigurationAggregatorNameoptionalStringConfigurationAggregatorNameoptionalstringConfigurationAggregatorNameoptional*string #The name of the aggregator.
organizationAggregationSourceoptionalIResolvable | CfnConfigurationAggregator.organization_aggregation_sourceoptionaltyping.Union[IResolvable, OrganizationAggregationSourceProperty]organizationAggregationSourceoptionalIResolvableOrganizationAggregationSourceoptionalIResolvableOrganizationAggregationSourceoptionalinterface{} #Provides an organization and list of regions to be aggregated.