deleteEventSubscription method

Future<DeleteEventSubscriptionResult> deleteEventSubscription({
  1. required String subscriptionName,
})

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-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteEventSubscriptionMessage'],
    shapes: shapes,
    resultWrapper: 'DeleteEventSubscriptionResult',
  );
  return DeleteEventSubscriptionResult.fromXml($result);
}