interface CfnSamplingRuleProps
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.XRay.CfnSamplingRuleProps | 
  Java | software.amazon.awscdk.services.xray.CfnSamplingRuleProps | 
  Python | aws_cdk.aws_xray.CfnSamplingRuleProps | 
  TypeScript  | @aws-cdk/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 * as xray from '@aws-cdk/aws-xray';
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
| Name | Type | Description | 
|---|---|---|
| sampling | IResolvable | Sampling | The sampling rule to be created or updated. | 
| tags? | any[] | An array of key-value pairs to apply to this resource. | 
samplingRule?
Type:
IResolvable | Sampling
(optional)
The sampling rule to be created or updated.
tags?
Type:
any[]
(optional)
An array of key-value pairs to apply to this resource.

 .NET
 Java
 Python
 TypeScript