Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
AddSourceIdentifierToSubscription' | |
|
Instances
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.
$sel:sourceIdentifier: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.
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.
Destructuring the Response
data AddSourceIdentifierToSubscriptionResponse Source #
See: newAddSourceIdentifierToSubscriptionResponse
smart constructor.
AddSourceIdentifierToSubscriptionResponse' | |
|
Instances
newAddSourceIdentifierToSubscriptionResponse Source #
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.