aws xray delete-sampling-rule
Deletes a sampling rule. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
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
--rule-arnThe ARN of the sampling rule.--rule-nameThe name of the sampling rule.