{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DMS.ModifyReplicationTask
(
ModifyReplicationTask (..),
newModifyReplicationTask,
modifyReplicationTask_replicationTaskSettings,
modifyReplicationTask_replicationTaskIdentifier,
modifyReplicationTask_cdcStartPosition,
modifyReplicationTask_tableMappings,
modifyReplicationTask_migrationType,
modifyReplicationTask_taskData,
modifyReplicationTask_cdcStopPosition,
modifyReplicationTask_cdcStartTime,
modifyReplicationTask_replicationTaskArn,
ModifyReplicationTaskResponse (..),
newModifyReplicationTaskResponse,
modifyReplicationTaskResponse_replicationTask,
modifyReplicationTaskResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DMS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ModifyReplicationTask = ModifyReplicationTask'
{
ModifyReplicationTask -> Maybe Text
replicationTaskSettings :: Prelude.Maybe Prelude.Text,
ModifyReplicationTask -> Maybe Text
replicationTaskIdentifier :: Prelude.Maybe Prelude.Text,
ModifyReplicationTask -> Maybe Text
cdcStartPosition :: Prelude.Maybe Prelude.Text,
ModifyReplicationTask -> Maybe Text
tableMappings :: Prelude.Maybe Prelude.Text,
ModifyReplicationTask -> Maybe MigrationTypeValue
migrationType :: Prelude.Maybe MigrationTypeValue,
ModifyReplicationTask -> Maybe Text
taskData :: Prelude.Maybe Prelude.Text,
ModifyReplicationTask -> Maybe Text
cdcStopPosition :: Prelude.Maybe Prelude.Text,
ModifyReplicationTask -> Maybe POSIX
cdcStartTime :: Prelude.Maybe Core.POSIX,
ModifyReplicationTask -> Text
replicationTaskArn :: Prelude.Text
}
deriving (ModifyReplicationTask -> ModifyReplicationTask -> Bool
(ModifyReplicationTask -> ModifyReplicationTask -> Bool)
-> (ModifyReplicationTask -> ModifyReplicationTask -> Bool)
-> Eq ModifyReplicationTask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyReplicationTask -> ModifyReplicationTask -> Bool
$c/= :: ModifyReplicationTask -> ModifyReplicationTask -> Bool
== :: ModifyReplicationTask -> ModifyReplicationTask -> Bool
$c== :: ModifyReplicationTask -> ModifyReplicationTask -> Bool
Prelude.Eq, ReadPrec [ModifyReplicationTask]
ReadPrec ModifyReplicationTask
Int -> ReadS ModifyReplicationTask
ReadS [ModifyReplicationTask]
(Int -> ReadS ModifyReplicationTask)
-> ReadS [ModifyReplicationTask]
-> ReadPrec ModifyReplicationTask
-> ReadPrec [ModifyReplicationTask]
-> Read ModifyReplicationTask
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyReplicationTask]
$creadListPrec :: ReadPrec [ModifyReplicationTask]
readPrec :: ReadPrec ModifyReplicationTask
$creadPrec :: ReadPrec ModifyReplicationTask
readList :: ReadS [ModifyReplicationTask]
$creadList :: ReadS [ModifyReplicationTask]
readsPrec :: Int -> ReadS ModifyReplicationTask
$creadsPrec :: Int -> ReadS ModifyReplicationTask
Prelude.Read, Int -> ModifyReplicationTask -> ShowS
[ModifyReplicationTask] -> ShowS
ModifyReplicationTask -> String
(Int -> ModifyReplicationTask -> ShowS)
-> (ModifyReplicationTask -> String)
-> ([ModifyReplicationTask] -> ShowS)
-> Show ModifyReplicationTask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyReplicationTask] -> ShowS
$cshowList :: [ModifyReplicationTask] -> ShowS
show :: ModifyReplicationTask -> String
$cshow :: ModifyReplicationTask -> String
showsPrec :: Int -> ModifyReplicationTask -> ShowS
$cshowsPrec :: Int -> ModifyReplicationTask -> ShowS
Prelude.Show, (forall x. ModifyReplicationTask -> Rep ModifyReplicationTask x)
-> (forall x. Rep ModifyReplicationTask x -> ModifyReplicationTask)
-> Generic ModifyReplicationTask
forall x. Rep ModifyReplicationTask x -> ModifyReplicationTask
forall x. ModifyReplicationTask -> Rep ModifyReplicationTask x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModifyReplicationTask x -> ModifyReplicationTask
$cfrom :: forall x. ModifyReplicationTask -> Rep ModifyReplicationTask x
Prelude.Generic)
newModifyReplicationTask ::
Prelude.Text ->
ModifyReplicationTask
newModifyReplicationTask :: Text -> ModifyReplicationTask
newModifyReplicationTask Text
pReplicationTaskArn_ =
ModifyReplicationTask' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Text
-> ModifyReplicationTask
ModifyReplicationTask'
{ $sel:replicationTaskSettings:ModifyReplicationTask' :: Maybe Text
replicationTaskSettings =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationTaskIdentifier:ModifyReplicationTask' :: Maybe Text
replicationTaskIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cdcStartPosition:ModifyReplicationTask' :: Maybe Text
cdcStartPosition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tableMappings:ModifyReplicationTask' :: Maybe Text
tableMappings = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:migrationType:ModifyReplicationTask' :: Maybe MigrationTypeValue
migrationType = Maybe MigrationTypeValue
forall a. Maybe a
Prelude.Nothing,
$sel:taskData:ModifyReplicationTask' :: Maybe Text
taskData = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cdcStopPosition:ModifyReplicationTask' :: Maybe Text
cdcStopPosition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cdcStartTime:ModifyReplicationTask' :: Maybe POSIX
cdcStartTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:replicationTaskArn:ModifyReplicationTask' :: Text
replicationTaskArn = Text
pReplicationTaskArn_
}
modifyReplicationTask_replicationTaskSettings :: Lens.Lens' ModifyReplicationTask (Prelude.Maybe Prelude.Text)
modifyReplicationTask_replicationTaskSettings :: (Maybe Text -> f (Maybe Text))
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_replicationTaskSettings = (ModifyReplicationTask -> Maybe Text)
-> (ModifyReplicationTask -> Maybe Text -> ModifyReplicationTask)
-> Lens
ModifyReplicationTask
ModifyReplicationTask
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Maybe Text
replicationTaskSettings :: Maybe Text
$sel:replicationTaskSettings:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
replicationTaskSettings} -> Maybe Text
replicationTaskSettings) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Maybe Text
a -> ModifyReplicationTask
s {$sel:replicationTaskSettings:ModifyReplicationTask' :: Maybe Text
replicationTaskSettings = Maybe Text
a} :: ModifyReplicationTask)
modifyReplicationTask_replicationTaskIdentifier :: Lens.Lens' ModifyReplicationTask (Prelude.Maybe Prelude.Text)
modifyReplicationTask_replicationTaskIdentifier :: (Maybe Text -> f (Maybe Text))
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_replicationTaskIdentifier = (ModifyReplicationTask -> Maybe Text)
-> (ModifyReplicationTask -> Maybe Text -> ModifyReplicationTask)
-> Lens
ModifyReplicationTask
ModifyReplicationTask
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Maybe Text
replicationTaskIdentifier :: Maybe Text
$sel:replicationTaskIdentifier:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
replicationTaskIdentifier} -> Maybe Text
replicationTaskIdentifier) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Maybe Text
a -> ModifyReplicationTask
s {$sel:replicationTaskIdentifier:ModifyReplicationTask' :: Maybe Text
replicationTaskIdentifier = Maybe Text
a} :: ModifyReplicationTask)
modifyReplicationTask_cdcStartPosition :: Lens.Lens' ModifyReplicationTask (Prelude.Maybe Prelude.Text)
modifyReplicationTask_cdcStartPosition :: (Maybe Text -> f (Maybe Text))
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_cdcStartPosition = (ModifyReplicationTask -> Maybe Text)
-> (ModifyReplicationTask -> Maybe Text -> ModifyReplicationTask)
-> Lens
ModifyReplicationTask
ModifyReplicationTask
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Maybe Text
cdcStartPosition :: Maybe Text
$sel:cdcStartPosition:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
cdcStartPosition} -> Maybe Text
cdcStartPosition) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Maybe Text
a -> ModifyReplicationTask
s {$sel:cdcStartPosition:ModifyReplicationTask' :: Maybe Text
cdcStartPosition = Maybe Text
a} :: ModifyReplicationTask)
modifyReplicationTask_tableMappings :: Lens.Lens' ModifyReplicationTask (Prelude.Maybe Prelude.Text)
modifyReplicationTask_tableMappings :: (Maybe Text -> f (Maybe Text))
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_tableMappings = (ModifyReplicationTask -> Maybe Text)
-> (ModifyReplicationTask -> Maybe Text -> ModifyReplicationTask)
-> Lens
ModifyReplicationTask
ModifyReplicationTask
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Maybe Text
tableMappings :: Maybe Text
$sel:tableMappings:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
tableMappings} -> Maybe Text
tableMappings) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Maybe Text
a -> ModifyReplicationTask
s {$sel:tableMappings:ModifyReplicationTask' :: Maybe Text
tableMappings = Maybe Text
a} :: ModifyReplicationTask)
modifyReplicationTask_migrationType :: Lens.Lens' ModifyReplicationTask (Prelude.Maybe MigrationTypeValue)
modifyReplicationTask_migrationType :: (Maybe MigrationTypeValue -> f (Maybe MigrationTypeValue))
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_migrationType = (ModifyReplicationTask -> Maybe MigrationTypeValue)
-> (ModifyReplicationTask
-> Maybe MigrationTypeValue -> ModifyReplicationTask)
-> Lens
ModifyReplicationTask
ModifyReplicationTask
(Maybe MigrationTypeValue)
(Maybe MigrationTypeValue)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Maybe MigrationTypeValue
migrationType :: Maybe MigrationTypeValue
$sel:migrationType:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe MigrationTypeValue
migrationType} -> Maybe MigrationTypeValue
migrationType) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Maybe MigrationTypeValue
a -> ModifyReplicationTask
s {$sel:migrationType:ModifyReplicationTask' :: Maybe MigrationTypeValue
migrationType = Maybe MigrationTypeValue
a} :: ModifyReplicationTask)
modifyReplicationTask_taskData :: Lens.Lens' ModifyReplicationTask (Prelude.Maybe Prelude.Text)
modifyReplicationTask_taskData :: (Maybe Text -> f (Maybe Text))
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_taskData = (ModifyReplicationTask -> Maybe Text)
-> (ModifyReplicationTask -> Maybe Text -> ModifyReplicationTask)
-> Lens
ModifyReplicationTask
ModifyReplicationTask
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Maybe Text
taskData :: Maybe Text
$sel:taskData:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
taskData} -> Maybe Text
taskData) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Maybe Text
a -> ModifyReplicationTask
s {$sel:taskData:ModifyReplicationTask' :: Maybe Text
taskData = Maybe Text
a} :: ModifyReplicationTask)
modifyReplicationTask_cdcStopPosition :: Lens.Lens' ModifyReplicationTask (Prelude.Maybe Prelude.Text)
modifyReplicationTask_cdcStopPosition :: (Maybe Text -> f (Maybe Text))
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_cdcStopPosition = (ModifyReplicationTask -> Maybe Text)
-> (ModifyReplicationTask -> Maybe Text -> ModifyReplicationTask)
-> Lens
ModifyReplicationTask
ModifyReplicationTask
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Maybe Text
cdcStopPosition :: Maybe Text
$sel:cdcStopPosition:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
cdcStopPosition} -> Maybe Text
cdcStopPosition) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Maybe Text
a -> ModifyReplicationTask
s {$sel:cdcStopPosition:ModifyReplicationTask' :: Maybe Text
cdcStopPosition = Maybe Text
a} :: ModifyReplicationTask)
modifyReplicationTask_cdcStartTime :: Lens.Lens' ModifyReplicationTask (Prelude.Maybe Prelude.UTCTime)
modifyReplicationTask_cdcStartTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_cdcStartTime = (ModifyReplicationTask -> Maybe POSIX)
-> (ModifyReplicationTask -> Maybe POSIX -> ModifyReplicationTask)
-> Lens
ModifyReplicationTask
ModifyReplicationTask
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Maybe POSIX
cdcStartTime :: Maybe POSIX
$sel:cdcStartTime:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe POSIX
cdcStartTime} -> Maybe POSIX
cdcStartTime) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Maybe POSIX
a -> ModifyReplicationTask
s {$sel:cdcStartTime:ModifyReplicationTask' :: Maybe POSIX
cdcStartTime = Maybe POSIX
a} :: ModifyReplicationTask) ((Maybe POSIX -> f (Maybe POSIX))
-> ModifyReplicationTask -> f ModifyReplicationTask)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ModifyReplicationTask
-> f ModifyReplicationTask
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
modifyReplicationTask_replicationTaskArn :: Lens.Lens' ModifyReplicationTask Prelude.Text
modifyReplicationTask_replicationTaskArn :: (Text -> f Text)
-> ModifyReplicationTask -> f ModifyReplicationTask
modifyReplicationTask_replicationTaskArn = (ModifyReplicationTask -> Text)
-> (ModifyReplicationTask -> Text -> ModifyReplicationTask)
-> Lens ModifyReplicationTask ModifyReplicationTask Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTask' {Text
replicationTaskArn :: Text
$sel:replicationTaskArn:ModifyReplicationTask' :: ModifyReplicationTask -> Text
replicationTaskArn} -> Text
replicationTaskArn) (\s :: ModifyReplicationTask
s@ModifyReplicationTask' {} Text
a -> ModifyReplicationTask
s {$sel:replicationTaskArn:ModifyReplicationTask' :: Text
replicationTaskArn = Text
a} :: ModifyReplicationTask)
instance Core.AWSRequest ModifyReplicationTask where
type
AWSResponse ModifyReplicationTask =
ModifyReplicationTaskResponse
request :: ModifyReplicationTask -> Request ModifyReplicationTask
request = Service -> ModifyReplicationTask -> Request ModifyReplicationTask
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ModifyReplicationTask
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ModifyReplicationTask)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ModifyReplicationTask))
-> Logger
-> Service
-> Proxy ModifyReplicationTask
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ModifyReplicationTask)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe ReplicationTask -> Int -> ModifyReplicationTaskResponse
ModifyReplicationTaskResponse'
(Maybe ReplicationTask -> Int -> ModifyReplicationTaskResponse)
-> Either String (Maybe ReplicationTask)
-> Either String (Int -> ModifyReplicationTaskResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ReplicationTask)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ReplicationTask")
Either String (Int -> ModifyReplicationTaskResponse)
-> Either String Int -> Either String ModifyReplicationTaskResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ModifyReplicationTask
instance Prelude.NFData ModifyReplicationTask
instance Core.ToHeaders ModifyReplicationTask where
toHeaders :: ModifyReplicationTask -> ResponseHeaders
toHeaders =
ResponseHeaders -> ModifyReplicationTask -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonDMSv20160101.ModifyReplicationTask" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ModifyReplicationTask where
toJSON :: ModifyReplicationTask -> Value
toJSON ModifyReplicationTask' {Maybe Text
Maybe POSIX
Maybe MigrationTypeValue
Text
replicationTaskArn :: Text
cdcStartTime :: Maybe POSIX
cdcStopPosition :: Maybe Text
taskData :: Maybe Text
migrationType :: Maybe MigrationTypeValue
tableMappings :: Maybe Text
cdcStartPosition :: Maybe Text
replicationTaskIdentifier :: Maybe Text
replicationTaskSettings :: Maybe Text
$sel:replicationTaskArn:ModifyReplicationTask' :: ModifyReplicationTask -> Text
$sel:cdcStartTime:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe POSIX
$sel:cdcStopPosition:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
$sel:taskData:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
$sel:migrationType:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe MigrationTypeValue
$sel:tableMappings:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
$sel:cdcStartPosition:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
$sel:replicationTaskIdentifier:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
$sel:replicationTaskSettings:ModifyReplicationTask' :: ModifyReplicationTask -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ReplicationTaskSettings" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
replicationTaskSettings,
(Text
"ReplicationTaskIdentifier" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
replicationTaskIdentifier,
(Text
"CdcStartPosition" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
cdcStartPosition,
(Text
"TableMappings" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
tableMappings,
(Text
"MigrationType" Text -> MigrationTypeValue -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (MigrationTypeValue -> Pair)
-> Maybe MigrationTypeValue -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MigrationTypeValue
migrationType,
(Text
"TaskData" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
taskData,
(Text
"CdcStopPosition" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
cdcStopPosition,
(Text
"CdcStartTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
cdcStartTime,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ReplicationTaskArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
replicationTaskArn)
]
)
instance Core.ToPath ModifyReplicationTask where
toPath :: ModifyReplicationTask -> ByteString
toPath = ByteString -> ModifyReplicationTask -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ModifyReplicationTask where
toQuery :: ModifyReplicationTask -> QueryString
toQuery = QueryString -> ModifyReplicationTask -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ModifyReplicationTaskResponse = ModifyReplicationTaskResponse'
{
ModifyReplicationTaskResponse -> Maybe ReplicationTask
replicationTask :: Prelude.Maybe ReplicationTask,
ModifyReplicationTaskResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ModifyReplicationTaskResponse
-> ModifyReplicationTaskResponse -> Bool
(ModifyReplicationTaskResponse
-> ModifyReplicationTaskResponse -> Bool)
-> (ModifyReplicationTaskResponse
-> ModifyReplicationTaskResponse -> Bool)
-> Eq ModifyReplicationTaskResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyReplicationTaskResponse
-> ModifyReplicationTaskResponse -> Bool
$c/= :: ModifyReplicationTaskResponse
-> ModifyReplicationTaskResponse -> Bool
== :: ModifyReplicationTaskResponse
-> ModifyReplicationTaskResponse -> Bool
$c== :: ModifyReplicationTaskResponse
-> ModifyReplicationTaskResponse -> Bool
Prelude.Eq, ReadPrec [ModifyReplicationTaskResponse]
ReadPrec ModifyReplicationTaskResponse
Int -> ReadS ModifyReplicationTaskResponse
ReadS [ModifyReplicationTaskResponse]
(Int -> ReadS ModifyReplicationTaskResponse)
-> ReadS [ModifyReplicationTaskResponse]
-> ReadPrec ModifyReplicationTaskResponse
-> ReadPrec [ModifyReplicationTaskResponse]
-> Read ModifyReplicationTaskResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyReplicationTaskResponse]
$creadListPrec :: ReadPrec [ModifyReplicationTaskResponse]
readPrec :: ReadPrec ModifyReplicationTaskResponse
$creadPrec :: ReadPrec ModifyReplicationTaskResponse
readList :: ReadS [ModifyReplicationTaskResponse]
$creadList :: ReadS [ModifyReplicationTaskResponse]
readsPrec :: Int -> ReadS ModifyReplicationTaskResponse
$creadsPrec :: Int -> ReadS ModifyReplicationTaskResponse
Prelude.Read, Int -> ModifyReplicationTaskResponse -> ShowS
[ModifyReplicationTaskResponse] -> ShowS
ModifyReplicationTaskResponse -> String
(Int -> ModifyReplicationTaskResponse -> ShowS)
-> (ModifyReplicationTaskResponse -> String)
-> ([ModifyReplicationTaskResponse] -> ShowS)
-> Show ModifyReplicationTaskResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyReplicationTaskResponse] -> ShowS
$cshowList :: [ModifyReplicationTaskResponse] -> ShowS
show :: ModifyReplicationTaskResponse -> String
$cshow :: ModifyReplicationTaskResponse -> String
showsPrec :: Int -> ModifyReplicationTaskResponse -> ShowS
$cshowsPrec :: Int -> ModifyReplicationTaskResponse -> ShowS
Prelude.Show, (forall x.
ModifyReplicationTaskResponse
-> Rep ModifyReplicationTaskResponse x)
-> (forall x.
Rep ModifyReplicationTaskResponse x
-> ModifyReplicationTaskResponse)
-> Generic ModifyReplicationTaskResponse
forall x.
Rep ModifyReplicationTaskResponse x
-> ModifyReplicationTaskResponse
forall x.
ModifyReplicationTaskResponse
-> Rep ModifyReplicationTaskResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModifyReplicationTaskResponse x
-> ModifyReplicationTaskResponse
$cfrom :: forall x.
ModifyReplicationTaskResponse
-> Rep ModifyReplicationTaskResponse x
Prelude.Generic)
newModifyReplicationTaskResponse ::
Prelude.Int ->
ModifyReplicationTaskResponse
newModifyReplicationTaskResponse :: Int -> ModifyReplicationTaskResponse
newModifyReplicationTaskResponse Int
pHttpStatus_ =
ModifyReplicationTaskResponse' :: Maybe ReplicationTask -> Int -> ModifyReplicationTaskResponse
ModifyReplicationTaskResponse'
{ $sel:replicationTask:ModifyReplicationTaskResponse' :: Maybe ReplicationTask
replicationTask =
Maybe ReplicationTask
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ModifyReplicationTaskResponse' :: Int
httpStatus = Int
pHttpStatus_
}
modifyReplicationTaskResponse_replicationTask :: Lens.Lens' ModifyReplicationTaskResponse (Prelude.Maybe ReplicationTask)
modifyReplicationTaskResponse_replicationTask :: (Maybe ReplicationTask -> f (Maybe ReplicationTask))
-> ModifyReplicationTaskResponse -> f ModifyReplicationTaskResponse
modifyReplicationTaskResponse_replicationTask = (ModifyReplicationTaskResponse -> Maybe ReplicationTask)
-> (ModifyReplicationTaskResponse
-> Maybe ReplicationTask -> ModifyReplicationTaskResponse)
-> Lens
ModifyReplicationTaskResponse
ModifyReplicationTaskResponse
(Maybe ReplicationTask)
(Maybe ReplicationTask)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTaskResponse' {Maybe ReplicationTask
replicationTask :: Maybe ReplicationTask
$sel:replicationTask:ModifyReplicationTaskResponse' :: ModifyReplicationTaskResponse -> Maybe ReplicationTask
replicationTask} -> Maybe ReplicationTask
replicationTask) (\s :: ModifyReplicationTaskResponse
s@ModifyReplicationTaskResponse' {} Maybe ReplicationTask
a -> ModifyReplicationTaskResponse
s {$sel:replicationTask:ModifyReplicationTaskResponse' :: Maybe ReplicationTask
replicationTask = Maybe ReplicationTask
a} :: ModifyReplicationTaskResponse)
modifyReplicationTaskResponse_httpStatus :: Lens.Lens' ModifyReplicationTaskResponse Prelude.Int
modifyReplicationTaskResponse_httpStatus :: (Int -> f Int)
-> ModifyReplicationTaskResponse -> f ModifyReplicationTaskResponse
modifyReplicationTaskResponse_httpStatus = (ModifyReplicationTaskResponse -> Int)
-> (ModifyReplicationTaskResponse
-> Int -> ModifyReplicationTaskResponse)
-> Lens
ModifyReplicationTaskResponse ModifyReplicationTaskResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyReplicationTaskResponse' {Int
httpStatus :: Int
$sel:httpStatus:ModifyReplicationTaskResponse' :: ModifyReplicationTaskResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ModifyReplicationTaskResponse
s@ModifyReplicationTaskResponse' {} Int
a -> ModifyReplicationTaskResponse
s {$sel:httpStatus:ModifyReplicationTaskResponse' :: Int
httpStatus = Int
a} :: ModifyReplicationTaskResponse)
instance Prelude.NFData ModifyReplicationTaskResponse