Skip to content
GitHubXDiscord

TransactionSearchConfig

The TransactionSearchConfig resource allows you to manage the configuration settings for AWS X-Ray transaction search. This resource can be used to control the indexing percentage for transaction data. For more information, refer to the AWS XRay TransactionSearchConfigs documentation.

Create a basic TransactionSearchConfig with the default indexing percentage.

import AWS from "alchemy/aws/control";
const basicTransactionSearchConfig = await AWS.XRay.TransactionSearchConfig("basic-config", {
IndexingPercentage: 50,
adopt: true // Adopt existing resource if it already exists
});

Configure a TransactionSearchConfig with a higher indexing percentage.

const advancedTransactionSearchConfig = await AWS.XRay.TransactionSearchConfig("advanced-config", {
IndexingPercentage: 75,
adopt: false // Do not adopt existing resource, fail if it exists
});

Create a TransactionSearchConfig while monitoring changes with creation and update timestamps.

const monitoredTransactionSearchConfig = await AWS.XRay.TransactionSearchConfig("monitored-config", {
IndexingPercentage: 100,
adopt: true // Adopt existing resource if it already exists
});
// Accessing additional properties
console.log(`ARN: ${monitoredTransactionSearchConfig.Arn}`);
console.log(`Created At: ${monitoredTransactionSearchConfig.CreationTime}`);
console.log(`Last Updated At: ${monitoredTransactionSearchConfig.LastUpdateTime}`);