addSourceIdentifierToSubscription method
Adds a source identifier to an existing event notification subscription.
May throw SubscriptionNotFoundFault. May throw SourceNotFoundFault.
Parameter sourceIdentifier
:
The identifier of the event source to be added.
Constraints:
-
If the source type is a DB instance, then a
DBInstanceIdentifier
must be supplied. -
If the source type is a DB security group, a
DBSecurityGroupName
must be supplied. -
If the source type is a DB parameter group, a
DBParameterGroupName
must be supplied. -
If the source type is a DB snapshot, a
DBSnapshotIdentifier
must be supplied.
Parameter subscriptionName
:
The name of the event notification subscription you want to add a source
identifier to.
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: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['AddSourceIdentifierToSubscriptionMessage'],
shapes: shapes,
resultWrapper: 'AddSourceIdentifierToSubscriptionResult',
);
return AddSourceIdentifierToSubscriptionResult.fromXml($result);
}