removeSourceIdentifierFromSubscription method

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

Removes a source identifier from an existing RDS event notification subscription.

May throw SubscriptionNotFoundFault. May throw SourceNotFoundFault.

Parameter sourceIdentifier : The source identifier to be removed from the subscription, such as the DB instance identifier for a DB instance or the name of a security group.

Parameter subscriptionName : The name of the RDS event notification subscription you want to remove a source identifier from.

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