# OrganizationAggregationSourceProperty

This object contains regions to set up the aggregator and an IAM role to retrieve organization details.

- 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 organizationAggregationSourceProperty: config.CfnConfigurationAggregator.OrganizationAggregationSourceProperty = {
  roleArn: 'roleArn',

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

organization_aggregation_source_property = config.CfnConfigurationAggregator.OrganizationAggregationSourceProperty(
    role_arn="roleArn",

    # 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.*;

OrganizationAggregationSourceProperty organizationAggregationSourceProperty = OrganizationAggregationSourceProperty.builder()
        .roleArn("roleArn")

        // 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 organizationAggregationSourceProperty = new OrganizationAggregationSourceProperty {
    RoleArn = "roleArn",

    // 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"

organizationAggregationSourceProperty := &OrganizationAggregationSourceProperty{
	RoleArn: jsii.String("roleArn"),

	// the properties below are optional
	AllAwsRegions: jsii.Boolean(false),
	AwsRegions: []*string{
		jsii.String("awsRegions"),
	},
}
```

## Properties

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

- `roleArn`: string (required) — ARN of the IAM role used to retrieve AWS Organizations details associated with the aggregator account.
