deleteAnomalySubscription method
Deletes a cost anomaly subscription.
May throw LimitExceededException. May throw UnknownSubscriptionException.
Parameter subscriptionArn
:
The unique identifier of the cost anomaly subscription that you want to
delete.
Implementation
Future<void> deleteAnomalySubscription({
required String subscriptionArn,
}) async {
ArgumentError.checkNotNull(subscriptionArn, 'subscriptionArn');
_s.validateStringLength(
'subscriptionArn',
subscriptionArn,
0,
1024,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSInsightsIndexService.DeleteAnomalySubscription'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SubscriptionArn': subscriptionArn,
},
);
}