aws-cdk-lib.aws_xray.CfnSamplingRuleProps

interface CfnSamplingRuleProps

LanguageType name
.NETAmazon.CDK.AWS.XRay.CfnSamplingRuleProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsxray#CfnSamplingRuleProps
Javasoftware.amazon.awscdk.services.xray.CfnSamplingRuleProps
Pythonaws_cdk.aws_xray.CfnSamplingRuleProps
TypeScript aws-cdk-lib » aws_xray » CfnSamplingRuleProps

Properties for defining a CfnSamplingRule.

Example

// 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';

declare const tags: any;
const cfnSamplingRuleProps: xray.CfnSamplingRuleProps = {
  samplingRule: {
    fixedRate: 123,
    host: 'host',
    httpMethod: 'httpMethod',
    priority: 123,
    reservoirSize: 123,
    resourceArn: 'resourceArn',
    serviceName: 'serviceName',
    serviceType: 'serviceType',
    urlPath: 'urlPath',

    // the properties below are optional
    attributes: {
      attributesKey: 'attributes',
    },
    ruleArn: 'ruleArn',
    ruleName: 'ruleName',
    version: 123,
  },
  tags: [tags],
};

Properties

NameTypeDescription
samplingRule?IResolvable | SamplingRulePropertyThe sampling rule to be created or updated.
tags?any[]An array of key-value pairs to apply to this resource.

samplingRule?

Type: IResolvable | SamplingRuleProperty (optional)

The sampling rule to be created or updated.


tags?

Type: any[] (optional)

An array of key-value pairs to apply to this resource.