deleteEventSubscription method
Deletes an Amazon Redshift event notification subscription.
May throw SubscriptionNotFoundFault. May throw InvalidSubscriptionStateFault.
Parameter subscriptionName
:
The name of the Amazon Redshift event notification subscription to be
deleted.
Implementation
Future<void> deleteEventSubscription({
required String subscriptionName,
}) async {
ArgumentError.checkNotNull(subscriptionName, 'subscriptionName');
_s.validateStringLength(
'subscriptionName',
subscriptionName,
0,
2147483647,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['SubscriptionName'] = subscriptionName;
await _protocol.send(
$request,
action: 'DeleteEventSubscription',
version: '2012-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteEventSubscriptionMessage'],
shapes: shapes,
);
}