# CfnTransactionSearchConfigProps

Properties for defining a `CfnTransactionSearchConfig`.

Used as props by: [CfnTransactionSearchConfig](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_xray.CfnTransactionSearchConfig.html)

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 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_xray as xray } from 'aws-cdk-lib';
const cfnTransactionSearchConfigProps: xray.CfnTransactionSearchConfigProps = {
  cloudWatchLogsConfiguration: {
    spansLogGroupKmsKeyId: 'spansLogGroupKmsKeyId',
  },
  indexingPercentage: 123,
};
```

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_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:

```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();
```

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.XRay;

var cfnTransactionSearchConfigProps = new CfnTransactionSearchConfigProps {
    CloudWatchLogsConfiguration = new CloudWatchLogsConfigurationProperty {
        SpansLogGroupKmsKeyId = "spansLogGroupKmsKeyId"
    },
    IndexingPercentage = 123
};
```

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"

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

## Properties

- `cloudWatchLogsConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTransactionSearchConfig.CloudWatchLogsConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_xray.CfnTransactionSearchConfig.CloudWatchLogsConfigurationProperty.html) — 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

- `indexingPercentage`: number — Determines the percentage of traces indexed from CloudWatch Logs to X-Ray.
