Class CfnSamplingRuleProps
Properties for defining a CfnSamplingRule
.
Inheritance
System.Object
CfnSamplingRuleProps
Implements
Namespace: Amazon.CDK.AWS.XRay
Assembly: Amazon.CDK.AWS.XRay.dll
Syntax (csharp)
public class CfnSamplingRuleProps : Object, ICfnSamplingRuleProps
Syntax (vb)
Public Class CfnSamplingRuleProps
Inherits Object
Implements ICfnSamplingRuleProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-samplingrule.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.XRay;
var tags;
var cfnSamplingRuleProps = new CfnSamplingRuleProps {
SamplingRule = new SamplingRuleProperty {
FixedRate = 123,
Host = "host",
HttpMethod = "httpMethod",
Priority = 123,
ReservoirSize = 123,
ResourceArn = "resourceArn",
ServiceName = "serviceName",
ServiceType = "serviceType",
UrlPath = "urlPath",
// the properties below are optional
Attributes = new Dictionary<string, string> {
{ "attributesKey", "attributes" }
},
RuleArn = "ruleArn",
RuleName = "ruleName",
Version = 123
},
Tags = new [] { tags }
};
Synopsis
Constructors
CfnSamplingRuleProps() |
Properties
SamplingRule | The sampling rule to be created or updated. |
Tags | An array of key-value pairs to apply to this resource. |
Constructors
CfnSamplingRuleProps()
public CfnSamplingRuleProps()
Properties
SamplingRule
The sampling rule to be created or updated.
public object SamplingRule { get; set; }
Property Value
System.Object
Remarks
Tags
An array of key-value pairs to apply to this resource.
public object[] Tags { get; set; }
Property Value
System.Object[]