Interface CfnSamplingRule.SamplingRuleProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSamplingRule.SamplingRuleProperty.Jsii$Proxy
Enclosing class:
CfnSamplingRule

@Stability(Stable) public static interface CfnSamplingRule.SamplingRuleProperty extends software.amazon.jsii.JsiiSerializable
A sampling rule that services use to decide whether to instrument a request.

Rule fields can match properties of the service, or properties of a request. The service can ignore rules that don't match its properties.

Example:

 // 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.*;
 SamplingRuleProperty samplingRuleProperty = SamplingRuleProperty.builder()
         .fixedRate(123)
         .host("host")
         .httpMethod("httpMethod")
         .priority(123)
         .reservoirSize(123)
         .resourceArn("resourceArn")
         .serviceName("serviceName")
         .serviceType("serviceType")
         .urlPath("urlPath")
         // the properties below are optional
         .attributes(Map.of(
                 "attributesKey", "attributes"))
         .ruleArn("ruleArn")
         .ruleName("ruleName")
         .version(123)
         .build();
 

See Also: