Skip to content

RDS  >  Operations  >  add_source_identifier_to_subscription

add_source_identifier_to_subscription

Operation

add_source_identifier_to_subscription async

add_source_identifier_to_subscription(request: AddSourceIdentifierToSubscriptionInput | AddSourceIdentifierToSubscriptionInputDict, /, *, plugins: list[Plugin] | None = None) -> AddSourceIdentifierToSubscriptionOutput
add_source_identifier_to_subscription(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[AddSourceIdentifierToSubscriptionInputDict]) -> AddSourceIdentifierToSubscriptionOutput

Adds a source identifier to an existing RDS event notification subscription.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
AddSourceIdentifierToSubscriptionOutput

An instance of AddSourceIdentifierToSubscriptionOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

AddSourceIdentifierToSubscriptionInput dataclass

Bases: _SerdeShape

Attributes
source_identifier class-attribute instance-attribute
source_identifier: str | None = ...

The identifier of the event source to be added.

Constraints:

  • If the source type is a DB instance, a DBInstanceIdentifier value must be supplied.

  • If the source type is a DB cluster, a DBClusterIdentifier value must be supplied.

  • If the source type is a DB parameter group, a DBParameterGroupName value must be supplied.

  • If the source type is a DB security group, a DBSecurityGroupName value must be supplied.

  • If the source type is a DB snapshot, a DBSnapshotIdentifier value must be supplied.

  • If the source type is a DB cluster snapshot, a DBClusterSnapshotIdentifier value must be supplied.

  • If the source type is an RDS Proxy, a DBProxyName value must be supplied.

subscription_name class-attribute instance-attribute
subscription_name: str | None = ...

The name of the RDS event notification subscription you want to add a source identifier to.

Dictionaries

AddSourceIdentifierToSubscriptionInputDict

Bases: TypedDict

Dictionary form of AddSourceIdentifierToSubscriptionInput.

Attributes
source_identifier instance-attribute
source_identifier: Required[str]

The identifier of the event source to be added.

Constraints:

  • If the source type is a DB instance, a DBInstanceIdentifier value must be supplied.

  • If the source type is a DB cluster, a DBClusterIdentifier value must be supplied.

  • If the source type is a DB parameter group, a DBParameterGroupName value must be supplied.

  • If the source type is a DB security group, a DBSecurityGroupName value must be supplied.

  • If the source type is a DB snapshot, a DBSnapshotIdentifier value must be supplied.

  • If the source type is a DB cluster snapshot, a DBClusterSnapshotIdentifier value must be supplied.

  • If the source type is an RDS Proxy, a DBProxyName value must be supplied.

subscription_name instance-attribute
subscription_name: Required[str]

The name of the RDS event notification subscription you want to add a source identifier to.

Output

AddSourceIdentifierToSubscriptionOutput dataclass

Bases: _SerdeShape

Dataclass for AddSourceIdentifierToSubscriptionOutput structure.

Attributes

event_subscription class-attribute instance-attribute
event_subscription: EventSubscription | None = ...

Contains the results of a successful invocation of the DescribeEventSubscriptions action.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.