SamplingRuleRecordProperty Struct
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_xray as xray } from 'aws-cdk-lib';
const samplingRuleRecordProperty: xray.CfnSamplingRule.SamplingRuleRecordProperty = {
createdAt: 'createdAt',
modifiedAt: 'modifiedAt',
samplingRule: {
fixedRate: 123,
host: 'host',
httpMethod: 'httpMethod',
priority: 123,
reservoirSize: 123,
resourceArn: 'resourceArn',
serviceName: 'serviceName',
serviceType: 'serviceType',
urlPath: 'urlPath',
// the properties below are optional
attributes: {
attributesKey: 'attributes',
},
ruleArn: 'ruleArn',
ruleName: 'ruleName',
samplingRateBoost: {
cooldownWindowMinutes: 123,
maxRate: 123,
},
version: 123,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_xray as xray
sampling_rule_record_property = xray.CfnSamplingRule.SamplingRuleRecordProperty(
created_at="createdAt",
modified_at="modifiedAt",
sampling_rule=xray.CfnSamplingRule.SamplingRuleProperty(
fixed_rate=123,
host="host",
http_method="httpMethod",
priority=123,
reservoir_size=123,
resource_arn="resourceArn",
service_name="serviceName",
service_type="serviceType",
url_path="urlPath",
# the properties below are optional
attributes={
"attributes_key": "attributes"
},
rule_arn="ruleArn",
rule_name="ruleName",
sampling_rate_boost=xray.CfnSamplingRule.SamplingRateBoostProperty(
cooldown_window_minutes=123,
max_rate=123
),
version=123
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.xray.*;
SamplingRuleRecordProperty samplingRuleRecordProperty = SamplingRuleRecordProperty.builder()
.createdAt("createdAt")
.modifiedAt("modifiedAt")
.samplingRule(SamplingRuleProperty.builder()
.fixedRate(123)
.host("host")
.httpMethod("httpMethod")
.priority(123)
.reservoirSize(123)
.resourceArn("resourceArn")
.serviceName("serviceName")
.serviceType("serviceType")
.urlPath("urlPath")
// the properties below are optional
.attributes(Map.of(
"attributesKey", "attributes"))
.ruleArn("ruleArn")
.ruleName("ruleName")
.samplingRateBoost(SamplingRateBoostProperty.builder()
.cooldownWindowMinutes(123)
.maxRate(123)
.build())
.version(123)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 samplingRuleRecordProperty = 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",
SamplingRateBoost = new SamplingRateBoostProperty {
CooldownWindowMinutes = 123,
MaxRate = 123
},
Version = 123
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
samplingRuleRecordProperty := &SamplingRuleRecordProperty{
CreatedAt: jsii.String("createdAt"),
ModifiedAt: jsii.String("modifiedAt"),
SamplingRule: &SamplingRuleProperty{
FixedRate: jsii.Number(123),
Host: jsii.String("host"),
HttpMethod: jsii.String("httpMethod"),
Priority: jsii.Number(123),
ReservoirSize: jsii.Number(123),
ResourceArn: jsii.String("resourceArn"),
ServiceName: jsii.String("serviceName"),
ServiceType: jsii.String("serviceType"),
UrlPath: jsii.String("urlPath"),
// the properties below are optional
Attributes: map[string]*string{
"attributesKey": jsii.String("attributes"),
},
RuleArn: jsii.String("ruleArn"),
RuleName: jsii.String("ruleName"),
SamplingRateBoost: &SamplingRateBoostProperty{
CooldownWindowMinutes: jsii.Number(123),
MaxRate: jsii.Number(123),
},
Version: jsii.Number(123),
},
}
Properties
createdAtoptionalstringcreated_atoptionalstrcreatedAtoptionalStringCreatedAtoptionalstringCreatedAtoptional*string#When the rule was created, in Unix time seconds.
modifiedAtoptionalstringmodified_atoptionalstrmodifiedAtoptionalStringModifiedAtoptionalstringModifiedAtoptional*string#When the rule was modified, in Unix time seconds.
samplingRuleoptionalIResolvable | CfnSamplingRule.SamplingRulePropertysampling_ruleoptionaltyping.Union[IResolvable, SamplingRuleProperty]samplingRuleoptionalIResolvableSamplingRuleoptionalIResolvableSamplingRuleoptionalinterface{}#