Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Modifies an existing AWS DMS event notification subscription.
Synopsis
- modifyEventSubscription :: Text -> ModifyEventSubscription
- data ModifyEventSubscription
- mesSNSTopicARN :: Lens' ModifyEventSubscription (Maybe Text)
- mesEnabled :: Lens' ModifyEventSubscription (Maybe Bool)
- mesSourceType :: Lens' ModifyEventSubscription (Maybe Text)
- mesEventCategories :: Lens' ModifyEventSubscription [Text]
- mesSubscriptionName :: Lens' ModifyEventSubscription Text
- modifyEventSubscriptionResponse :: Int -> ModifyEventSubscriptionResponse
- data ModifyEventSubscriptionResponse
- mesrsEventSubscription :: Lens' ModifyEventSubscriptionResponse (Maybe EventSubscription)
- mesrsResponseStatus :: Lens' ModifyEventSubscriptionResponse Int
Creating a Request
modifyEventSubscription Source #
Creates a value of ModifyEventSubscription
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mesSNSTopicARN
- 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.mesEnabled
- A Boolean value; set to true to activate the subscription.mesSourceType
- The type of AWS DMS resource that generates the events you want to subscribe to. Valid values: replication-instance | migration-taskmesEventCategories
- A list of event categories for a source type that you want to subscribe to. Use theDescribeEventCategories
action to see a list of event categories.mesSubscriptionName
- The name of the AWS DMS event notification subscription to be modified.
data ModifyEventSubscription Source #
See: modifyEventSubscription
smart constructor.
Instances
Request Lenses
mesSNSTopicARN :: 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.
mesEnabled :: Lens' ModifyEventSubscription (Maybe Bool) Source #
A Boolean value; set to true to activate the subscription.
mesSourceType :: Lens' ModifyEventSubscription (Maybe Text) Source #
The type of AWS DMS resource that generates the events you want to subscribe to. Valid values: replication-instance | migration-task
mesEventCategories :: Lens' ModifyEventSubscription [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.
mesSubscriptionName :: Lens' ModifyEventSubscription Text Source #
The name of the AWS DMS event notification subscription to be modified.
Destructuring the Response
modifyEventSubscriptionResponse Source #
Creates a value of ModifyEventSubscriptionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mesrsEventSubscription
- The modified event subscription.mesrsResponseStatus
- -- | The response status code.
data ModifyEventSubscriptionResponse Source #
See: modifyEventSubscriptionResponse
smart constructor.
Instances
Response Lenses
mesrsEventSubscription :: Lens' ModifyEventSubscriptionResponse (Maybe EventSubscription) Source #
The modified event subscription.
mesrsResponseStatus :: Lens' ModifyEventSubscriptionResponse Int Source #
- - | The response status code.