CentralizationRuleSourceProperty Struct
Configuration specifying the source of telemetry data to be centralized.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
}
};
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
regionsstring[]regionstyping.List[str]regionsList<String>Regionsstring[]Regions*[]*string required #The list of source regions from which telemetry data should be centralized.
The organizational scope from which telemetry data should be centralized, specified using organization id, accounts or organizational unit ids.
sourceLogsConfigurationoptionalIResolvable | CfnOrganizationCentralizationRule.source_logs_configurationoptionaltyping.Union[IResolvable, SourceLogsConfigurationProperty]sourceLogsConfigurationoptionalIResolvableSourceLogsConfigurationoptionalIResolvableSourceLogsConfigurationoptionalinterface{} #Log specific configuration for centralization source log groups.
sourceMetricsConfigurationoptionalIResolvable | CfnOrganizationCentralizationRule.source_metrics_configurationoptionaltyping.Union[IResolvable, SourceMetricsConfigurationProperty]sourceMetricsConfigurationoptionalIResolvableSourceMetricsConfigurationoptionalIResolvableSourceMetricsConfigurationoptionalinterface{} #