Interface CfnSamplingRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSamplingRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-06T22:16:04.547Z")
@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.*; CfnSamplingRuleProps cfnSamplingRuleProps = CfnSamplingRuleProps.builder() .ruleName("ruleName") .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()) .samplingRuleRecord(SamplingRuleRecordProperty.builder() .createdAt("createdAt") .modifiedAt("modifiedAt") .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()) .build()) .samplingRuleUpdate(SamplingRuleUpdateProperty.builder() .attributes(Map.of( "attributesKey", "attributes")) .fixedRate(123) .host("host") .httpMethod("httpMethod") .priority(123) .reservoirSize(123) .resourceArn("resourceArn") .ruleArn("ruleArn") .ruleName("ruleName") .serviceName("serviceName") .serviceType("serviceType") .urlPath("urlPath") .build()) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnSamplingRuleProps
static final class
An implementation forCfnSamplingRuleProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnSamplingRuleProps.Builder
builder()
default String
Deprecated.this property has been deprecateddefault Object
The sampling rule to be created or updated.default Object
Deprecated.this property has been deprecateddefault Object
Deprecated.this property has been deprecatedgetTags()
An array of key-value pairs to apply to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRuleName
Deprecated.this property has been deprecated(deprecated) The ARN of the sampling rule.Specify a rule by either name or ARN, but not both.
- See Also:
-
getSamplingRule
The sampling rule to be created or updated.- See Also:
-
getSamplingRuleRecord
Deprecated.this property has been deprecated- See Also:
-
getSamplingRuleUpdate
Deprecated.this property has been deprecated- See Also:
-
getTags
An array of key-value pairs to apply to this resource.- See Also:
-
builder
- Returns:
- a
CfnSamplingRuleProps.Builder
ofCfnSamplingRuleProps
-