Skip to content
v2.278.0

CfnTransactionSearchConfigProps Struct ​

Properties for defining a CfnTransactionSearchConfig.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_xray as xray } from 'aws-cdk-lib';
const cfnTransactionSearchConfigProps: xray.CfnTransactionSearchConfigProps = {
  cloudWatchLogsConfiguration: {
    spansLogGroupKmsKeyId: 'spansLogGroupKmsKeyId',
  },
  indexingPercentage: 123,
};
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_xray as xray

cfn_transaction_search_config_props = xray.CfnTransactionSearchConfigProps(
    cloud_watch_logs_configuration=xray.CfnTransactionSearchConfig.CloudWatchLogsConfigurationProperty(
        spans_log_group_kms_key_id="spansLogGroupKmsKeyId"
    ),
    indexing_percentage=123
)
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.xray.*;

CfnTransactionSearchConfigProps cfnTransactionSearchConfigProps = CfnTransactionSearchConfigProps.builder()
        .cloudWatchLogsConfiguration(CloudWatchLogsConfigurationProperty.builder()
                .spansLogGroupKmsKeyId("spansLogGroupKmsKeyId")
                .build())
        .indexingPercentage(123)
        .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.XRay;

var cfnTransactionSearchConfigProps = new CfnTransactionSearchConfigProps {
    CloudWatchLogsConfiguration = new CloudWatchLogsConfigurationProperty {
        SpansLogGroupKmsKeyId = "spansLogGroupKmsKeyId"
    },
    IndexingPercentage = 123
};
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"

cfnTransactionSearchConfigProps := &CfnTransactionSearchConfigProps{
	CloudWatchLogsConfiguration: &CloudWatchLogsConfigurationProperty{
		SpansLogGroupKmsKeyId: jsii.String("spansLogGroupKmsKeyId"),
	},
	IndexingPercentage: jsii.Number(123),
}

Properties ​

cloudWatchLogsConfigurationoptionalIResolvable | CfnTransactionSearchConfig.CloudWatchLogsConfigurationPropertycloud_watch_logs_configurationoptionaltyping.Union[IResolvable, CloudWatchLogsConfigurationProperty]cloudWatchLogsConfigurationoptionalIResolvableCloudWatchLogsConfigurationoptionalIResolvableCloudWatchLogsConfigurationoptionalinterface{} #
Configuration for the CloudWatch Logs log group that X-Ray creates when this resource enables Transaction Search.

It is used only at that time and is never returned

indexingPercentageoptionalnumberindexing_percentageoptionalint | floatindexingPercentageoptionalNumberIndexingPercentageoptionaldoubleIndexingPercentageoptional*float64 #
Determines the percentage of traces indexed from CloudWatch Logs to X-Ray.