addSourceIdentifierToSubscription method

Future<AddSourceIdentifierToSubscriptionResult> addSourceIdentifierToSubscription({
  1. required String sourceIdentifier,
  2. required String subscriptionName,
})

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-01-10',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['AddSourceIdentifierToSubscriptionMessage'],
    shapes: shapes,
    resultWrapper: 'AddSourceIdentifierToSubscriptionResult',
  );
  return AddSourceIdentifierToSubscriptionResult.fromXml($result);
}