updateSamplingRule method
Future<UpdateSamplingRuleResult>
updateSamplingRule({
- required SamplingRuleUpdate samplingRuleUpdate,
Modifies a sampling rule's configuration.
May throw InvalidRequestException. May throw ThrottledException.
Parameter samplingRuleUpdate
:
The rule and fields to change.
Implementation
Future<UpdateSamplingRuleResult> updateSamplingRule({
required SamplingRuleUpdate samplingRuleUpdate,
}) async {
ArgumentError.checkNotNull(samplingRuleUpdate, 'samplingRuleUpdate');
final $payload = <String, dynamic>{
'SamplingRuleUpdate': samplingRuleUpdate,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/UpdateSamplingRule',
exceptionFnMap: _exceptionFns,
);
return UpdateSamplingRuleResult.fromJson(response);
}