| 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.DMS.ModifyEventSubscription
Description
Modifies an existing DMS event notification subscription.
Synopsis
- data ModifyEventSubscription = ModifyEventSubscription' {
- enabled :: Maybe Bool
- eventCategories :: Maybe [Text]
- snsTopicArn :: Maybe Text
- sourceType :: Maybe Text
- subscriptionName :: Text
- newModifyEventSubscription :: Text -> ModifyEventSubscription
- modifyEventSubscription_enabled :: Lens' ModifyEventSubscription (Maybe Bool)
- modifyEventSubscription_eventCategories :: Lens' ModifyEventSubscription (Maybe [Text])
- modifyEventSubscription_snsTopicArn :: Lens' ModifyEventSubscription (Maybe Text)
- modifyEventSubscription_sourceType :: Lens' ModifyEventSubscription (Maybe Text)
- modifyEventSubscription_subscriptionName :: Lens' ModifyEventSubscription Text
- data ModifyEventSubscriptionResponse = ModifyEventSubscriptionResponse' {}
- newModifyEventSubscriptionResponse :: Int -> ModifyEventSubscriptionResponse
- modifyEventSubscriptionResponse_eventSubscription :: Lens' ModifyEventSubscriptionResponse (Maybe EventSubscription)
- modifyEventSubscriptionResponse_httpStatus :: Lens' ModifyEventSubscriptionResponse Int
Creating a Request
data ModifyEventSubscription Source #
See: newModifyEventSubscription smart constructor.
Constructors
| ModifyEventSubscription' | |
Fields
| |
Instances
newModifyEventSubscription Source #
Create a value of ModifyEventSubscription 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:
ModifyEventSubscription, modifyEventSubscription_enabled - A Boolean value; set to true to activate the subscription.
ModifyEventSubscription, modifyEventSubscription_eventCategories - A list of event categories for a source type that you want to subscribe
to. Use the DescribeEventCategories action to see a list of event
categories.
ModifyEventSubscription, modifyEventSubscription_snsTopicArn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event
notification. The ARN is created by Amazon SNS when you create a topic
and subscribe to it.
ModifyEventSubscription, modifyEventSubscription_sourceType - The type of DMS resource that generates the events you want to subscribe
to.
Valid values: replication-instance | replication-task
$sel:subscriptionName:ModifyEventSubscription', modifyEventSubscription_subscriptionName - The name of the DMS event notification subscription to be modified.
Request Lenses
modifyEventSubscription_enabled :: Lens' ModifyEventSubscription (Maybe Bool) Source #
A Boolean value; set to true to activate the subscription.
modifyEventSubscription_eventCategories :: Lens' ModifyEventSubscription (Maybe [Text]) Source #
A list of event categories for a source type that you want to subscribe
to. Use the DescribeEventCategories action to see a list of event
categories.
modifyEventSubscription_snsTopicArn :: Lens' ModifyEventSubscription (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
modifyEventSubscription_sourceType :: Lens' ModifyEventSubscription (Maybe Text) Source #
The type of DMS resource that generates the events you want to subscribe to.
Valid values: replication-instance | replication-task
modifyEventSubscription_subscriptionName :: Lens' ModifyEventSubscription Text Source #
The name of the DMS event notification subscription to be modified.
Destructuring the Response
data ModifyEventSubscriptionResponse Source #
See: newModifyEventSubscriptionResponse smart constructor.
Constructors
| ModifyEventSubscriptionResponse' | |
Fields
| |
Instances
newModifyEventSubscriptionResponse Source #
Create a value of ModifyEventSubscriptionResponse 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:ModifyEventSubscriptionResponse', modifyEventSubscriptionResponse_eventSubscription - The modified event subscription.
$sel:httpStatus:ModifyEventSubscriptionResponse', modifyEventSubscriptionResponse_httpStatus - The response's http status code.
Response Lenses
modifyEventSubscriptionResponse_eventSubscription :: Lens' ModifyEventSubscriptionResponse (Maybe EventSubscription) Source #
The modified event subscription.
modifyEventSubscriptionResponse_httpStatus :: Lens' ModifyEventSubscriptionResponse Int Source #
The response's http status code.