removeSourceIdentifierFromSubscription method

Future<RemoveSourceIdentifierFromSubscriptionResult> removeSourceIdentifierFromSubscription({
  1. required String sourceIdentifier,
  2. required String subscriptionName,
})

Implementation

Future<RemoveSourceIdentifierFromSubscriptionResult>
    removeSourceIdentifierFromSubscription({
  required String sourceIdentifier,
  required String subscriptionName,
}) async {
  ArgumentError.checkNotNull(sourceIdentifier, 'sourceIdentifier');
  ArgumentError.checkNotNull(subscriptionName, 'subscriptionName');
  final $request = <String, dynamic>{};
  $request['SourceIdentifier'] = sourceIdentifier;
  $request['SubscriptionName'] = subscriptionName;
  final $result = await _protocol.send(
    $request,
    action: 'RemoveSourceIdentifierFromSubscription',
    version: '2013-01-10',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'],
    shapes: shapes,
    resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult',
  );
  return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result);
}