This schema provides construct and validation rules for AWS-XRay SamplingRule resource parameters.
resource "awscc_xray_sampling_rule" "example" {
sampling_rule = {
rule_name = "example"
fixed_rate = 0.05
host = "MyHost"
http_method = "GET"
priority = 9999
reservoir_size = 1
resource_arn = "*"
service_name = "MyServiceName"
service_type = "MyServiceType"
url_path = "*"
version = 1
}
tags = [
{
key = "ModifiedBy"
value = "AWSCC"
}
]
}
rule_name
(String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.sampling_rule
(Attributes) (see below for nested schema)sampling_rule_record
(Attributes) (see below for nested schema)sampling_rule_update
(Attributes) (see below for nested schema)tags
(Attributes List) An array of key-value pairs to apply to this resource. (see below for nested schema)id
(String) Uniquely identifies the resource.rule_arn
(String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.sampling_rule
Required:
fixed_rate
(Number) The percentage of matching requests to instrument, after the reservoir is exhausted.host
(String) Matches the hostname from a request URL.http_method
(String) Matches the HTTP method from a request URL.priority
(Number) The priority of the sampling rule.reservoir_size
(Number) A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.resource_arn
(String) Matches the ARN of the AWS resource on which the service runs.service_name
(String) Matches the name that the service uses to identify itself in segments.service_type
(String) Matches the origin that the service uses to identify its type in segments.url_path
(String) Matches the path from a request URL.Optional:
attributes
(Map of String) Matches attributes derived from the request.rule_arn
(String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.rule_name
(String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.version
(Number) The version of the sampling rule format (1)sampling_rule_record
Optional:
created_at
(String) When the rule was created, in Unix time seconds.modified_at
(String) When the rule was modified, in Unix time seconds.sampling_rule
(Attributes) (see below for nested schema)sampling_rule_record.sampling_rule
Required:
fixed_rate
(Number) The percentage of matching requests to instrument, after the reservoir is exhausted.host
(String) Matches the hostname from a request URL.http_method
(String) Matches the HTTP method from a request URL.priority
(Number) The priority of the sampling rule.reservoir_size
(Number) A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.resource_arn
(String) Matches the ARN of the AWS resource on which the service runs.service_name
(String) Matches the name that the service uses to identify itself in segments.service_type
(String) Matches the origin that the service uses to identify its type in segments.url_path
(String) Matches the path from a request URL.Optional:
attributes
(Map of String) Matches attributes derived from the request.rule_arn
(String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.rule_name
(String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.version
(Number) The version of the sampling rule format (1)sampling_rule_update
Optional:
attributes
(Map of String) Matches attributes derived from the request.fixed_rate
(Number) The percentage of matching requests to instrument, after the reservoir is exhausted.host
(String) Matches the hostname from a request URL.http_method
(String) Matches the HTTP method from a request URL.priority
(Number) The priority of the sampling rule.reservoir_size
(Number) A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.resource_arn
(String) Matches the ARN of the AWS resource on which the service runs.rule_arn
(String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.rule_name
(String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.service_name
(String) Matches the name that the service uses to identify itself in segments.service_type
(String) Matches the origin that the service uses to identify its type in segments.url_path
(String) Matches the path from a request URL.tags
Required:
key
(String) The key name of the tag.value
(String) The value for the tag.Import is supported using the following syntax:
$ terraform import awscc_xray_sampling_rule.example <resource ID>