# AccountAggregationSourceProperty

A collection of accounts and regions.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `accountIds`: string[] (required) — The 12-digit account ID of the account being aggregated.

- `allAwsRegions`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If true, aggregate existing AWS Config regions and future regions.

- `awsRegions`: string[] — The source regions being aggregated.
