AccountAggregationSourceProperty Struct
A collection of accounts and regions.
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 accountAggregationSourceProperty: config.CfnConfigurationAggregator.AccountAggregationSourceProperty = {
accountIds: ['accountIds'],
// the properties below are optional
allAwsRegions: false,
awsRegions: ['awsRegions'],
};
python
# 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
account_aggregation_source_property = config.CfnConfigurationAggregator.AccountAggregationSourceProperty(
account_ids=["accountIds"],
# the properties below are optional
all_aws_regions=False,
aws_regions=["awsRegions"]
)
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.*;
AccountAggregationSourceProperty accountAggregationSourceProperty = AccountAggregationSourceProperty.builder()
.accountIds(List.of("accountIds"))
// the properties below are optional
.allAwsRegions(false)
.awsRegions(List.of("awsRegions"))
.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 accountAggregationSourceProperty = new AccountAggregationSourceProperty {
AccountIds = new [] { "accountIds" },
// the properties below are optional
AllAwsRegions = false,
AwsRegions = new [] { "awsRegions" }
};
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"
accountAggregationSourceProperty := &AccountAggregationSourceProperty{
AccountIds: []*string{
jsii.String("accountIds"),
},
// the properties below are optional
AllAwsRegions: jsii.Boolean(false),
AwsRegions: []*string{
jsii.String("awsRegions"),
},
}
Properties
accountIdsstring[]account_idstyping.List[str]accountIdsList<String>AccountIdsstring[]AccountIds*[]*stringrequired#The 12-digit account ID of the account being aggregated.
allAwsRegionsoptionalboolean | IResolvableall_aws_regionsoptionaltyping.Union[bool, IResolvable]allAwsRegionsoptionalBooleanAllAwsRegionsoptionalboolAllAwsRegionsoptionalinterface{}#If true, aggregate existing AWS Config regions and future regions.
awsRegionsoptionalstring[]aws_regionsoptionaltyping.List[str]awsRegionsoptionalList<String>AwsRegionsoptionalstring[]AwsRegionsoptional*[]*string#The source regions being aggregated.