awscc_xray_sampling_rule (Resource)

This schema provides construct and validation rules for AWS-XRay SamplingRule resource parameters.

Example Usage

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"
    }
  ]
}

Schema

Optional

Read-Only

Nested Schema for sampling_rule

Required:

Optional:

Nested Schema for sampling_rule_record

Optional:

Nested Schema for sampling_rule_record.sampling_rule

Required:

Optional:

Nested Schema for sampling_rule_update

Optional:

Nested Schema for tags

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_xray_sampling_rule.example <resource ID>