removeSourceIdentifierFromSubscription method
May throw SubscriptionNotFoundFault. May throw SourceNotFoundFault.
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-02-12',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RemoveSourceIdentifierFromSubscriptionMessage'],
shapes: shapes,
resultWrapper: 'RemoveSourceIdentifierFromSubscriptionResult',
);
return RemoveSourceIdentifierFromSubscriptionResult.fromXml($result);
}