Class CfnSamplingRuleProps
Properties for defining a CfnSamplingRule
.
Inheritance
System.Object
CfnSamplingRuleProps
Implements
Namespace: Amazon.CDK.AWS.XRay
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSamplingRuleProps : Object, ICfnSamplingRuleProps
Syntax (vb)
Public Class CfnSamplingRuleProps
Inherits Object
Implements ICfnSamplingRuleProps
Remarks
See: 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 cfnSamplingRuleProps = new CfnSamplingRuleProps {
RuleName = "ruleName",
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
},
SamplingRuleRecord = new SamplingRuleRecordProperty {
CreatedAt = "createdAt",
ModifiedAt = "modifiedAt",
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
}
},
SamplingRuleUpdate = new SamplingRuleUpdateProperty {
Attributes = new Dictionary<string, string> {
{ "attributesKey", "attributes" }
},
FixedRate = 123,
Host = "host",
HttpMethod = "httpMethod",
Priority = 123,
ReservoirSize = 123,
ResourceArn = "resourceArn",
RuleArn = "ruleArn",
RuleName = "ruleName",
ServiceName = "serviceName",
ServiceType = "serviceType",
UrlPath = "urlPath"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnSamplingRuleProps() |
Properties
RuleName | (deprecated) The ARN of the sampling rule. |
SamplingRule | The sampling rule to be created or updated. |
SamplingRuleRecord | |
SamplingRuleUpdate | |
Tags | An array of key-value pairs to apply to this resource. |
Constructors
CfnSamplingRuleProps()
public CfnSamplingRuleProps()
Properties
RuleName
(deprecated) The ARN of the sampling rule.
public string RuleName { get; set; }
Property Value
System.String
Remarks
Specify a rule by either name or ARN, but not both.
Stability: Deprecated
SamplingRule
The sampling rule to be created or updated.
public object SamplingRule { get; set; }
Property Value
System.Object
Remarks
SamplingRuleRecord
public object SamplingRuleRecord { get; set; }
Property Value
System.Object
Remarks
SamplingRuleUpdate
public object SamplingRuleUpdate { get; set; }
Property Value
System.Object
Remarks
Tags
An array of key-value pairs to apply to this resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]