@Stability(value=Stable) public static final class CfnSamplingRule.SamplingRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnSamplingRule.SamplingRuleProperty>
CfnSamplingRule.SamplingRuleProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder attributes(IResolvable attributes)
CfnSamplingRule.SamplingRuleProperty.getAttributes()attributes - Matches attributes derived from the request.
Map Entries: Maximum number of 5 items.
Key Length Constraints: Minimum length of 1. Maximum length of 32.
Value Length Constraints: Minimum length of 1. Maximum length of 32.
this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder attributes(Map<String,String> attributes)
CfnSamplingRule.SamplingRuleProperty.getAttributes()attributes - Matches attributes derived from the request.
Map Entries: Maximum number of 5 items.
Key Length Constraints: Minimum length of 1. Maximum length of 32.
Value Length Constraints: Minimum length of 1. Maximum length of 32.
this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder fixedRate(Number fixedRate)
CfnSamplingRule.SamplingRuleProperty.getFixedRate()fixedRate - The percentage of matching requests to instrument, after the reservoir is exhausted.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder host(String host)
CfnSamplingRule.SamplingRuleProperty.getHost()host - Matches the hostname from a request URL.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder httpMethod(String httpMethod)
CfnSamplingRule.SamplingRuleProperty.getHttpMethod()httpMethod - Matches the HTTP method of a request.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder priority(Number priority)
CfnSamplingRule.SamplingRuleProperty.getPriority()priority - The priority of the sampling rule.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder reservoirSize(Number reservoirSize)
CfnSamplingRule.SamplingRuleProperty.getReservoirSize()reservoirSize - A fixed number of matching requests to instrument per second, prior to applying the fixed rate.
The reservoir is not used directly by services, but applies to all services using the rule collectively.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder resourceArn(String resourceArn)
CfnSamplingRule.SamplingRuleProperty.getResourceArn()resourceArn - Matches the ARN of the AWS resource on which the service runs.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder ruleArn(String ruleArn)
CfnSamplingRule.SamplingRuleProperty.getRuleArn()ruleArn - The ARN of the sampling rule.
You must specify either RuleARN or RuleName, but not both.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder ruleName(String ruleName)
CfnSamplingRule.SamplingRuleProperty.getRuleName()ruleName - The name of the sampling rule.
You must specify either RuleARN or RuleName, but not both.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder serviceName(String serviceName)
CfnSamplingRule.SamplingRuleProperty.getServiceName()serviceName - Matches the `name` that the service uses to identify itself in segments.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder serviceType(String serviceType)
CfnSamplingRule.SamplingRuleProperty.getServiceType()serviceType - Matches the `origin` that the service uses to identify its type in segments.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder urlPath(String urlPath)
CfnSamplingRule.SamplingRuleProperty.getUrlPath()urlPath - Matches the path from a request URL.this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty.Builder version(Number version)
CfnSamplingRule.SamplingRuleProperty.getVersion()version - The version of the sampling rule format ( `1` ).this@Stability(value=Stable) public CfnSamplingRule.SamplingRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnSamplingRule.SamplingRuleProperty>CfnSamplingRule.SamplingRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.