deleteEventSubscription method
Future<DeleteEventSubscriptionResult>
deleteEventSubscription({
- required String subscriptionName,
May throw SubscriptionNotFoundFault. May throw InvalidEventSubscriptionStateFault.
Implementation
Future<DeleteEventSubscriptionResult> deleteEventSubscription({
required String subscriptionName,
}) async {
ArgumentError.checkNotNull(subscriptionName, 'subscriptionName');
final $request = <String, dynamic>{};
$request['SubscriptionName'] = subscriptionName;
final $result = await _protocol.send(
$request,
action: 'DeleteEventSubscription',
version: '2013-09-09',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteEventSubscriptionMessage'],
shapes: shapes,
resultWrapper: 'DeleteEventSubscriptionResult',
);
return DeleteEventSubscriptionResult.fromXml($result);
}