aws-cdk-lib.aws_xray.CfnSamplingRuleProps
interface CfnSamplingRuleProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.XRay.CfnSamplingRuleProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsxray#CfnSamplingRuleProps |
![]() | software.amazon.awscdk.services.xray.CfnSamplingRuleProps |
![]() | aws_cdk.aws_xray.CfnSamplingRuleProps |
![]() | 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
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.