deleteSamplingRule method
Deletes a sampling rule.
May throw InvalidRequestException. May throw ThrottledException.
Parameter ruleARN
:
The ARN of the sampling rule. Specify a rule by either name or ARN, but
not both.
Parameter ruleName
:
The name of the sampling rule. Specify a rule by either name or ARN, but
not both.
Implementation
Future<DeleteSamplingRuleResult> deleteSamplingRule({
String? ruleARN,
String? ruleName,
}) async {
final $payload = <String, dynamic>{
if (ruleARN != null) 'RuleARN': ruleARN,
if (ruleName != null) 'RuleName': ruleName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/DeleteSamplingRule',
exceptionFnMap: _exceptionFns,
);
return DeleteSamplingRuleResult.fromJson(response);
}