Skip to content
v2.278.0

SourceLogsConfigurationProperty Struct ​

Configuration for selecting and handling source log groups for centralization.

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 sourceLogsConfigurationProperty: observabilityadmin.CfnOrganizationCentralizationRule.SourceLogsConfigurationProperty = {
  encryptedLogGroupStrategy: 'encryptedLogGroupStrategy',

  // the properties below are optional
  dataSourceSelectionCriteria: 'dataSourceSelectionCriteria',
  logGroupSelectionCriteria: 'logGroupSelectionCriteria',
};
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

source_logs_configuration_property = observabilityadmin.CfnOrganizationCentralizationRule.SourceLogsConfigurationProperty(
    encrypted_log_group_strategy="encryptedLogGroupStrategy",

    # the properties below are optional
    data_source_selection_criteria="dataSourceSelectionCriteria",
    log_group_selection_criteria="logGroupSelectionCriteria"
)
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.*;

SourceLogsConfigurationProperty sourceLogsConfigurationProperty = SourceLogsConfigurationProperty.builder()
        .encryptedLogGroupStrategy("encryptedLogGroupStrategy")

        // the properties below are optional
        .dataSourceSelectionCriteria("dataSourceSelectionCriteria")
        .logGroupSelectionCriteria("logGroupSelectionCriteria")
        .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 sourceLogsConfigurationProperty = new SourceLogsConfigurationProperty {
    EncryptedLogGroupStrategy = "encryptedLogGroupStrategy",

    // the properties below are optional
    DataSourceSelectionCriteria = "dataSourceSelectionCriteria",
    LogGroupSelectionCriteria = "logGroupSelectionCriteria"
};
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"

sourceLogsConfigurationProperty := &SourceLogsConfigurationProperty{
	EncryptedLogGroupStrategy: jsii.String("encryptedLogGroupStrategy"),

	// the properties below are optional
	DataSourceSelectionCriteria: jsii.String("dataSourceSelectionCriteria"),
	LogGroupSelectionCriteria: jsii.String("logGroupSelectionCriteria"),
}

Properties ​

dataSourceSelectionCriteriaoptionalstringdata_source_selection_criteriaoptionalstrdataSourceSelectionCriteriaoptionalStringDataSourceSelectionCriteriaoptionalstringDataSourceSelectionCriteriaoptional*string #
encryptedLogGroupStrategystringencrypted_log_group_strategystrencryptedLogGroupStrategyStringEncryptedLogGroupStrategystringEncryptedLogGroupStrategy*string required #
A strategy determining whether to centralize source log groups that are encrypted with customer managed KMS keys (CMK).

ALLOW will consider CMK encrypted source log groups for centralization while SKIP will skip CMK encrypted source log groups from centralization.

logGroupSelectionCriteriaoptionalstringlog_group_selection_criteriaoptionalstrlogGroupSelectionCriteriaoptionalStringLogGroupSelectionCriteriaoptionalstringLogGroupSelectionCriteriaoptional*string #
The selection criteria that specifies which source log groups to centralize.

The selection criteria uses the same format as OAM link filters.