addSourceIdentifierToSubscription method
May throw SubscriptionNotFoundFault. May throw SourceNotFoundFault.
Implementation
Future<AddSourceIdentifierToSubscriptionResult>
addSourceIdentifierToSubscription({
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: 'AddSourceIdentifierToSubscription',
version: '2013-02-12',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['AddSourceIdentifierToSubscriptionMessage'],
shapes: shapes,
resultWrapper: 'AddSourceIdentifierToSubscriptionResult',
);
return AddSourceIdentifierToSubscriptionResult.fromXml($result);
}