@Stability(value=Stable) public static final class CfnSamplingRule.Builder extends Object implements software.amazon.jsii.Builder<CfnSamplingRule>
CfnSamplingRule.| Modifier and Type | Method and Description |
|---|---|
CfnSamplingRule |
build() |
static CfnSamplingRule.Builder |
create(software.constructs.Construct scope,
String id) |
CfnSamplingRule.Builder |
ruleName(String ruleName)
The name of the sampling rule.
|
CfnSamplingRule.Builder |
samplingRule(CfnSamplingRule.SamplingRuleProperty samplingRule)
The sampling rule to be created.
|
CfnSamplingRule.Builder |
samplingRule(IResolvable samplingRule)
The sampling rule to be created.
|
CfnSamplingRule.Builder |
samplingRuleRecord(CfnSamplingRule.SamplingRuleRecordProperty samplingRuleRecord)
`AWS::XRay::SamplingRule.SamplingRuleRecord`.
|
CfnSamplingRule.Builder |
samplingRuleRecord(IResolvable samplingRuleRecord)
`AWS::XRay::SamplingRule.SamplingRuleRecord`.
|
CfnSamplingRule.Builder |
samplingRuleUpdate(CfnSamplingRule.SamplingRuleUpdateProperty samplingRuleUpdate)
A document specifying changes to a sampling rule's configuration.
|
CfnSamplingRule.Builder |
samplingRuleUpdate(IResolvable samplingRuleUpdate)
A document specifying changes to a sampling rule's configuration.
|
CfnSamplingRule.Builder |
tags(List<? extends Object> tags)
An array of key-value pairs to apply to this resource.
|
@Stability(value=Stable) public static CfnSamplingRule.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnSamplingRule.SamplingRuleProperty.Builder.@Stability(value=Stable) public CfnSamplingRule.Builder ruleName(String ruleName)
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 .
ruleName - The name of the sampling rule. This parameter is required.this@Stability(value=Stable) public CfnSamplingRule.Builder samplingRule(CfnSamplingRule.SamplingRuleProperty samplingRule)
Must be provided if creating a new sampling rule. Not valid when updating an existing sampling rule.
samplingRule - The sampling rule to be created. This parameter is required.this@Stability(value=Stable) public CfnSamplingRule.Builder samplingRule(IResolvable samplingRule)
Must be provided if creating a new sampling rule. Not valid when updating an existing sampling rule.
samplingRule - The sampling rule to be created. This parameter is required.this@Stability(value=Stable) public CfnSamplingRule.Builder samplingRuleRecord(CfnSamplingRule.SamplingRuleRecordProperty samplingRuleRecord)
samplingRuleRecord - `AWS::XRay::SamplingRule.SamplingRuleRecord`. This parameter is required.this@Stability(value=Stable) public CfnSamplingRule.Builder samplingRuleRecord(IResolvable samplingRuleRecord)
samplingRuleRecord - `AWS::XRay::SamplingRule.SamplingRuleRecord`. This parameter is required.this@Stability(value=Stable) public CfnSamplingRule.Builder samplingRuleUpdate(CfnSamplingRule.SamplingRuleUpdateProperty samplingRuleUpdate)
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.
samplingRuleUpdate - A document specifying changes to a sampling rule's configuration. This parameter is required.this@Stability(value=Stable) public CfnSamplingRule.Builder samplingRuleUpdate(IResolvable samplingRuleUpdate)
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.
samplingRuleUpdate - A document specifying changes to a sampling rule's configuration. This parameter is required.this@Stability(value=Stable) public CfnSamplingRule.Builder tags(List<? extends Object> tags)
For more information, see Tag .
tags - An array of key-value pairs to apply to this resource. This parameter is required.this@Stability(value=Stable) public CfnSamplingRule build()
build in interface software.amazon.jsii.Builder<CfnSamplingRule>Copyright © 2022. All rights reserved.