CmdID

CmdID / aws / aws xray

aws xray delete-sampling-rule

Deletes a sampling rule. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To delete a sampling rule

The following delete-sampling-rule example deletes the specified sampling rule. You can specify the group by using either the group name or group ARN.

aws xray delete-sampling-rule --rule-name polling-scorekeepIdentify
--rule-nameThe name of the sampling rule.
Its output
{
    "SamplingRuleRecord": {
        "SamplingRule": {
            "RuleName": "polling-scorekeep",
            "RuleARN": "arn:aws:xray:us-west-2:123456789012:sampling-rule/polling-scorekeep",
            "ResourceARN": "*",
            "Priority": 5000,
            "FixedRate": 0.003,
            "ReservoirSize": 0,
            "ServiceName": "Scorekeep",
            "ServiceType": "*",
            "Host": "*",
            "HTTPMethod": "GET",
            "URLPath": "/api/state/*",
            "Version": 1,
            "Attributes": {}
        },
        "CreatedAt": 1530574399.0,
        "ModifiedAt": 1530574399.0
    }
}

For more information, see Configuring Sampling, Groups, and Encryption Settings with the AWS X-Ray API in the AWS X-Ray Developer Guide.

Options

2 in the AWS CLI reference
--rule-arnThe ARN of the sampling rule.
--rule-nameThe name of the sampling rule.