amazonka-rds-2.0: Amazon Relational Database Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RDS.AddSourceIdentifierToSubscription

Description

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

Synopsis

Creating a Request

data AddSourceIdentifierToSubscription Source #

See: newAddSourceIdentifierToSubscription smart constructor.

Constructors

AddSourceIdentifierToSubscription' 

Fields

  • subscriptionName :: Text

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

  • sourceIdentifier :: Text

    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.

Instances

Instances details
ToHeaders AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

ToPath AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

ToQuery AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

AWSRequest AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

Generic AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

Associated Types

type Rep AddSourceIdentifierToSubscription :: Type -> Type #

Read AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

Show AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

NFData AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

Eq AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

Hashable AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

type AWSResponse AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

type Rep AddSourceIdentifierToSubscription Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

type Rep AddSourceIdentifierToSubscription = D1 ('MetaData "AddSourceIdentifierToSubscription" "Amazonka.RDS.AddSourceIdentifierToSubscription" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "AddSourceIdentifierToSubscription'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subscriptionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sourceIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newAddSourceIdentifierToSubscription Source #

Create a value of AddSourceIdentifierToSubscription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:subscriptionName:AddSourceIdentifierToSubscription', addSourceIdentifierToSubscription_subscriptionName - The name of the RDS event notification subscription you want to add a source identifier to.

AddSourceIdentifierToSubscription, addSourceIdentifierToSubscription_sourceIdentifier - 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.

Request Lenses

addSourceIdentifierToSubscription_subscriptionName :: Lens' AddSourceIdentifierToSubscription Text Source #

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

addSourceIdentifierToSubscription_sourceIdentifier :: Lens' AddSourceIdentifierToSubscription Text Source #

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.

Destructuring the Response

data AddSourceIdentifierToSubscriptionResponse Source #

Constructors

AddSourceIdentifierToSubscriptionResponse' 

Fields

Instances

Instances details
Generic AddSourceIdentifierToSubscriptionResponse Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

Read AddSourceIdentifierToSubscriptionResponse Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

Show AddSourceIdentifierToSubscriptionResponse Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

NFData AddSourceIdentifierToSubscriptionResponse Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

Eq AddSourceIdentifierToSubscriptionResponse Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

type Rep AddSourceIdentifierToSubscriptionResponse Source # 
Instance details

Defined in Amazonka.RDS.AddSourceIdentifierToSubscription

type Rep AddSourceIdentifierToSubscriptionResponse = D1 ('MetaData "AddSourceIdentifierToSubscriptionResponse" "Amazonka.RDS.AddSourceIdentifierToSubscription" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "AddSourceIdentifierToSubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventSubscription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventSubscription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

Response Lenses