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 |
Migrates 10 active and enabled Amazon SNS subscriptions at a time and
converts them to corresponding Amazon EventBridge rules. By default,
this operation migrates subscriptions only when all your replication
instance versions are 3.4.6 or higher. If any replication instances are
from versions earlier than 3.4.6, the operation raises an error and
tells you to upgrade these instances to version 3.4.6 or higher. To
enable migration regardless of version, set the Force
option to true.
However, if you don't upgrade instances earlier than version 3.4.6,
some types of events might not be available when you use Amazon
EventBridge.
To call this operation, make sure that you have certain permissions added to your user account. For more information, see Migrating event subscriptions to Amazon EventBridge in the Amazon Web Services Database Migration Service User Guide.
Synopsis
- data UpdateSubscriptionsToEventBridge = UpdateSubscriptionsToEventBridge' {}
- newUpdateSubscriptionsToEventBridge :: UpdateSubscriptionsToEventBridge
- updateSubscriptionsToEventBridge_forceMove :: Lens' UpdateSubscriptionsToEventBridge (Maybe Bool)
- data UpdateSubscriptionsToEventBridgeResponse = UpdateSubscriptionsToEventBridgeResponse' {
- result :: Maybe Text
- httpStatus :: Int
- newUpdateSubscriptionsToEventBridgeResponse :: Int -> UpdateSubscriptionsToEventBridgeResponse
- updateSubscriptionsToEventBridgeResponse_result :: Lens' UpdateSubscriptionsToEventBridgeResponse (Maybe Text)
- updateSubscriptionsToEventBridgeResponse_httpStatus :: Lens' UpdateSubscriptionsToEventBridgeResponse Int
Creating a Request
data UpdateSubscriptionsToEventBridge Source #
See: newUpdateSubscriptionsToEventBridge
smart constructor.
Instances
newUpdateSubscriptionsToEventBridge :: UpdateSubscriptionsToEventBridge Source #
Create a value of UpdateSubscriptionsToEventBridge
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:forceMove:UpdateSubscriptionsToEventBridge'
, updateSubscriptionsToEventBridge_forceMove
- When set to true, this operation migrates DMS subscriptions for Amazon
SNS notifications no matter what your replication instance version is.
If not set or set to false, this operation runs only when all your
replication instances are from DMS version 3.4.6 or higher.
Request Lenses
updateSubscriptionsToEventBridge_forceMove :: Lens' UpdateSubscriptionsToEventBridge (Maybe Bool) Source #
When set to true, this operation migrates DMS subscriptions for Amazon SNS notifications no matter what your replication instance version is. If not set or set to false, this operation runs only when all your replication instances are from DMS version 3.4.6 or higher.
Destructuring the Response
data UpdateSubscriptionsToEventBridgeResponse Source #
See: newUpdateSubscriptionsToEventBridgeResponse
smart constructor.
UpdateSubscriptionsToEventBridgeResponse' | |
|
Instances
newUpdateSubscriptionsToEventBridgeResponse Source #
Create a value of UpdateSubscriptionsToEventBridgeResponse
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:result:UpdateSubscriptionsToEventBridgeResponse'
, updateSubscriptionsToEventBridgeResponse_result
- A string that indicates how many event subscriptions were migrated and
how many remain to be migrated.
$sel:httpStatus:UpdateSubscriptionsToEventBridgeResponse'
, updateSubscriptionsToEventBridgeResponse_httpStatus
- The response's http status code.
Response Lenses
updateSubscriptionsToEventBridgeResponse_result :: Lens' UpdateSubscriptionsToEventBridgeResponse (Maybe Text) Source #
A string that indicates how many event subscriptions were migrated and how many remain to be migrated.
updateSubscriptionsToEventBridgeResponse_httpStatus :: Lens' UpdateSubscriptionsToEventBridgeResponse Int Source #
The response's http status code.