@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)",
date="2022-08-02T20:25:28.493Z")
public interface CfnSamplingRuleProps
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() .ruleName("ruleName") .samplingRule(SamplingRuleProperty.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") .version(123) .build()) .samplingRuleRecord(SamplingRuleRecordProperty.builder() .createdAt("createdAt") .modifiedAt("modifiedAt") .samplingRule(SamplingRuleProperty.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") .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(tags)) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnSamplingRuleProps.Builder
A builder for
CfnSamplingRuleProps |
static class |
CfnSamplingRuleProps.Jsii$Proxy
An implementation for
CfnSamplingRuleProps |
Modifier and Type | Method and Description |
---|---|
static CfnSamplingRuleProps.Builder |
builder() |
default java.lang.String |
getRuleName()
The name of the sampling rule.
|
default java.lang.Object |
getSamplingRule()
The sampling rule to be created.
|
default java.lang.Object |
getSamplingRuleRecord()
`AWS::XRay::SamplingRule.SamplingRuleRecord`.
|
default java.lang.Object |
getSamplingRuleUpdate()
A document specifying changes to a sampling rule's configuration.
|
default java.util.List<java.lang.Object> |
getTags()
An array of key-value pairs to apply to this resource.
|
default java.lang.String getRuleName()
Specify a rule by either name or ARN, but not both. Used only when deleting a sampling rule. When creating or updating a sampling rule, use the RuleName
or RuleARN
properties within SamplingRule
or SamplingRuleUpdate
.
default java.lang.Object getSamplingRule()
Must be provided if creating a new sampling rule. Not valid when updating an existing sampling rule.
default java.lang.Object getSamplingRuleRecord()
default java.lang.Object getSamplingRuleUpdate()
Must be provided if updating an existing sampling rule. Not valid when creating a new sampling rule.
The
Version
of a sampling rule cannot be updated, and is not part ofSamplingRuleUpdate
.
default java.util.List<java.lang.Object> getTags()
For more information, see Tag .
static CfnSamplingRuleProps.Builder builder()
CfnSamplingRuleProps.Builder
of CfnSamplingRuleProps