# CentralizationRuleSourceProperty

Configuration specifying the source of telemetry data to be centralized.

- Source: Generated at build time
- Type last changed: v2.260.0 · 16 Jun 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_observabilityadmin as observabilityadmin } from 'aws-cdk-lib';
const centralizationRuleSourceProperty: observabilityadmin.CfnOrganizationCentralizationRule.CentralizationRuleSourceProperty = {
  regions: ['regions'],

  // the properties below are optional
  scope: 'scope',
  sourceLogsConfiguration: {
    encryptedLogGroupStrategy: 'encryptedLogGroupStrategy',

    // the properties below are optional
    dataSourceSelectionCriteria: 'dataSourceSelectionCriteria',
    logGroupSelectionCriteria: 'logGroupSelectionCriteria',
  },
  sourceMetricsConfiguration: {
    metricsSelectionCriteria: 'metricsSelectionCriteria',
  },
};
```

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_observabilityadmin as observabilityadmin

centralization_rule_source_property = observabilityadmin.CfnOrganizationCentralizationRule.CentralizationRuleSourceProperty(
    regions=["regions"],

    # the properties below are optional
    scope="scope",
    source_logs_configuration=observabilityadmin.CfnOrganizationCentralizationRule.SourceLogsConfigurationProperty(
        encrypted_log_group_strategy="encryptedLogGroupStrategy",

        # the properties below are optional
        data_source_selection_criteria="dataSourceSelectionCriteria",
        log_group_selection_criteria="logGroupSelectionCriteria"
    ),
    source_metrics_configuration=observabilityadmin.CfnOrganizationCentralizationRule.SourceMetricsConfigurationProperty(
        metrics_selection_criteria="metricsSelectionCriteria"
    )
)
```

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

CentralizationRuleSourceProperty centralizationRuleSourceProperty = CentralizationRuleSourceProperty.builder()
        .regions(List.of("regions"))

        // the properties below are optional
        .scope("scope")
        .sourceLogsConfiguration(SourceLogsConfigurationProperty.builder()
                .encryptedLogGroupStrategy("encryptedLogGroupStrategy")

                // the properties below are optional
                .dataSourceSelectionCriteria("dataSourceSelectionCriteria")
                .logGroupSelectionCriteria("logGroupSelectionCriteria")
                .build())
        .sourceMetricsConfiguration(SourceMetricsConfigurationProperty.builder()
                .metricsSelectionCriteria("metricsSelectionCriteria")
                .build())
        .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.ObservabilityAdmin;

var centralizationRuleSourceProperty = new CentralizationRuleSourceProperty {
    Regions = new [] { "regions" },

    // the properties below are optional
    Scope = "scope",
    SourceLogsConfiguration = new SourceLogsConfigurationProperty {
        EncryptedLogGroupStrategy = "encryptedLogGroupStrategy",

        // the properties below are optional
        DataSourceSelectionCriteria = "dataSourceSelectionCriteria",
        LogGroupSelectionCriteria = "logGroupSelectionCriteria"
    },
    SourceMetricsConfiguration = new SourceMetricsConfigurationProperty {
        MetricsSelectionCriteria = "metricsSelectionCriteria"
    }
};
```

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"

centralizationRuleSourceProperty := &CentralizationRuleSourceProperty{
	Regions: []*string{
		jsii.String("regions"),
	},

	// the properties below are optional
	Scope: jsii.String("scope"),
	SourceLogsConfiguration: &SourceLogsConfigurationProperty{
		EncryptedLogGroupStrategy: jsii.String("encryptedLogGroupStrategy"),

		// the properties below are optional
		DataSourceSelectionCriteria: jsii.String("dataSourceSelectionCriteria"),
		LogGroupSelectionCriteria: jsii.String("logGroupSelectionCriteria"),
	},
	SourceMetricsConfiguration: &SourceMetricsConfigurationProperty{
		MetricsSelectionCriteria: jsii.String("metricsSelectionCriteria"),
	},
}
```

## Properties

- `regions`: string[] (required) — The list of source regions from which telemetry data should be centralized.

- `scope`: string — The organizational scope from which telemetry data should be centralized, specified using organization id, accounts or organizational unit ids.

- `sourceLogsConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnOrganizationCentralizationRule.SourceLogsConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnOrganizationCentralizationRule.SourceLogsConfigurationProperty.html) — Log specific configuration for centralization source log groups.

- `sourceMetricsConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnOrganizationCentralizationRule.SourceMetricsConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnOrganizationCentralizationRule.SourceMetricsConfigurationProperty.html)
