Interface CfnSamplingRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSamplingRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.674Z")
@Stability(Stable)
public interface CfnSamplingRuleProps
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.xray.*;
Object tags;
CfnSamplingRuleProps cfnSamplingRuleProps = CfnSamplingRuleProps.builder()
.samplingRule(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())
.tags(List.of(tags))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSamplingRulePropsstatic final classAn implementation forCfnSamplingRuleProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnSamplingRuleProps.Builderbuilder()default ObjectThe sampling rule to be created or updated.getTags()An array of key-value pairs to apply to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSamplingRule
The sampling rule to be created or updated. -
getTags
An array of key-value pairs to apply to this resource. -
builder
- Returns:
- a
CfnSamplingRuleProps.BuilderofCfnSamplingRuleProps
-