| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.RDS.AddSourceIdentifierToSubscription
Description
Adds a source identifier to an existing RDS event notification subscription.
Synopsis
- data AddSourceIdentifierToSubscription = AddSourceIdentifierToSubscription' {}
- newAddSourceIdentifierToSubscription :: Text -> Text -> AddSourceIdentifierToSubscription
- addSourceIdentifierToSubscription_subscriptionName :: Lens' AddSourceIdentifierToSubscription Text
- addSourceIdentifierToSubscription_sourceIdentifier :: Lens' AddSourceIdentifierToSubscription Text
- data AddSourceIdentifierToSubscriptionResponse = AddSourceIdentifierToSubscriptionResponse' {}
- newAddSourceIdentifierToSubscriptionResponse :: Int -> AddSourceIdentifierToSubscriptionResponse
- addSourceIdentifierToSubscriptionResponse_eventSubscription :: Lens' AddSourceIdentifierToSubscriptionResponse (Maybe EventSubscription)
- addSourceIdentifierToSubscriptionResponse_httpStatus :: Lens' AddSourceIdentifierToSubscriptionResponse Int
Creating a Request
data AddSourceIdentifierToSubscription Source #
See: newAddSourceIdentifierToSubscription smart constructor.
Constructors
| AddSourceIdentifierToSubscription' | |
Fields
| |
Instances
newAddSourceIdentifierToSubscription Source #
Arguments
| :: Text | |
| -> Text | |
| -> AddSourceIdentifierToSubscription |
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
DBInstanceIdentifiervalue must be supplied. - If the source type is a DB cluster, a
DBClusterIdentifiervalue must be supplied. - If the source type is a DB parameter group, a
DBParameterGroupNamevalue must be supplied. - If the source type is a DB security group, a
DBSecurityGroupNamevalue must be supplied. - If the source type is a DB snapshot, a
DBSnapshotIdentifiervalue must be supplied. - If the source type is a DB cluster snapshot, a
DBClusterSnapshotIdentifiervalue must be supplied. - If the source type is an RDS Proxy, a
DBProxyNamevalue 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
DBInstanceIdentifiervalue must be supplied. - If the source type is a DB cluster, a
DBClusterIdentifiervalue must be supplied. - If the source type is a DB parameter group, a
DBParameterGroupNamevalue must be supplied. - If the source type is a DB security group, a
DBSecurityGroupNamevalue must be supplied. - If the source type is a DB snapshot, a
DBSnapshotIdentifiervalue must be supplied. - If the source type is a DB cluster snapshot, a
DBClusterSnapshotIdentifiervalue must be supplied. - If the source type is an RDS Proxy, a
DBProxyNamevalue must be supplied.
Destructuring the Response
data AddSourceIdentifierToSubscriptionResponse Source #
See: newAddSourceIdentifierToSubscriptionResponse smart constructor.
Constructors
| AddSourceIdentifierToSubscriptionResponse' | |
Fields
| |
Instances
newAddSourceIdentifierToSubscriptionResponse Source #
Arguments
| :: Int | |
| -> AddSourceIdentifierToSubscriptionResponse |
Create a value of AddSourceIdentifierToSubscriptionResponse 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:eventSubscription:AddSourceIdentifierToSubscriptionResponse', addSourceIdentifierToSubscriptionResponse_eventSubscription - Undocumented member.
$sel:httpStatus:AddSourceIdentifierToSubscriptionResponse', addSourceIdentifierToSubscriptionResponse_httpStatus - The response's http status code.
Response Lenses
addSourceIdentifierToSubscriptionResponse_eventSubscription :: Lens' AddSourceIdentifierToSubscriptionResponse (Maybe EventSubscription) Source #
Undocumented member.
addSourceIdentifierToSubscriptionResponse_httpStatus :: Lens' AddSourceIdentifierToSubscriptionResponse Int Source #
The response's http status code.