@Stability(value=Stable) public static final class CfnSamplingRuleProps.Builder extends Object implements software.amazon.jsii.Builder<CfnSamplingRuleProps>
CfnSamplingRuleProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnSamplingRuleProps.Builder ruleName(String ruleName)
CfnSamplingRuleProps.getRuleName()ruleName - The name of the sampling rule.
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 .this@Stability(value=Stable) public CfnSamplingRuleProps.Builder samplingRule(CfnSamplingRule.SamplingRuleProperty samplingRule)
CfnSamplingRuleProps.getSamplingRule()samplingRule - The sampling rule to be created.
Must be provided if creating a new sampling rule. Not valid when updating an existing sampling rule.this@Stability(value=Stable) public CfnSamplingRuleProps.Builder samplingRule(IResolvable samplingRule)
CfnSamplingRuleProps.getSamplingRule()samplingRule - The sampling rule to be created.
Must be provided if creating a new sampling rule. Not valid when updating an existing sampling rule.this@Stability(value=Stable) public CfnSamplingRuleProps.Builder samplingRuleRecord(CfnSamplingRule.SamplingRuleRecordProperty samplingRuleRecord)
CfnSamplingRuleProps.getSamplingRuleRecord()samplingRuleRecord - `AWS::XRay::SamplingRule.SamplingRuleRecord`.this@Stability(value=Stable) public CfnSamplingRuleProps.Builder samplingRuleRecord(IResolvable samplingRuleRecord)
CfnSamplingRuleProps.getSamplingRuleRecord()samplingRuleRecord - `AWS::XRay::SamplingRule.SamplingRuleRecord`.this@Stability(value=Stable) public CfnSamplingRuleProps.Builder samplingRuleUpdate(CfnSamplingRule.SamplingRuleUpdateProperty samplingRuleUpdate)
CfnSamplingRuleProps.getSamplingRuleUpdate()samplingRuleUpdate - A document specifying changes to a sampling rule's configuration.
Must be provided if updating an existing sampling rule. Not valid when creating a new sampling rule.
The
Versionof a sampling rule cannot be updated, and is not part ofSamplingRuleUpdate.
this@Stability(value=Stable) public CfnSamplingRuleProps.Builder samplingRuleUpdate(IResolvable samplingRuleUpdate)
CfnSamplingRuleProps.getSamplingRuleUpdate()samplingRuleUpdate - A document specifying changes to a sampling rule's configuration.
Must be provided if updating an existing sampling rule. Not valid when creating a new sampling rule.
The
Versionof a sampling rule cannot be updated, and is not part ofSamplingRuleUpdate.
this@Stability(value=Stable) public CfnSamplingRuleProps.Builder tags(List<? extends Object> tags)
CfnSamplingRuleProps.getTags()tags - An array of key-value pairs to apply to this resource.
For more information, see Tag .this@Stability(value=Stable) public CfnSamplingRuleProps build()
build in interface software.amazon.jsii.Builder<CfnSamplingRuleProps>CfnSamplingRulePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.