deleteEventSubscription method
Future<DeleteEventSubscriptionResult>
deleteEventSubscription({
- required String subscriptionName,
Deletes an RDS event notification subscription.
May throw SubscriptionNotFoundFault. May throw InvalidEventSubscriptionStateFault.
Parameter subscriptionName
:
The name of the RDS event notification subscription you want to delete.
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: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteEventSubscriptionMessage'],
shapes: shapes,
resultWrapper: 'DeleteEventSubscriptionResult',
);
return DeleteEventSubscriptionResult.fromXml($result);
}