{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DMS.Types.ReplicationTask where
import qualified Amazonka.Core as Core
import Amazonka.DMS.Types.MigrationTypeValue
import Amazonka.DMS.Types.ReplicationTaskStats
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ReplicationTask = ReplicationTask'
{
ReplicationTask -> Maybe Text
replicationTaskSettings :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
stopReason :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
targetEndpointArn :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
replicationTaskIdentifier :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
cdcStartPosition :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe POSIX
replicationTaskStartDate :: Prelude.Maybe Core.POSIX,
ReplicationTask -> Maybe Text
sourceEndpointArn :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
recoveryCheckpoint :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
tableMappings :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
targetReplicationInstanceArn :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe POSIX
replicationTaskCreationDate :: Prelude.Maybe Core.POSIX,
ReplicationTask -> Maybe MigrationTypeValue
migrationType :: Prelude.Maybe MigrationTypeValue,
ReplicationTask -> Maybe Text
replicationTaskArn :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
taskData :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
cdcStopPosition :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe ReplicationTaskStats
replicationTaskStats :: Prelude.Maybe ReplicationTaskStats,
ReplicationTask -> Maybe Text
replicationInstanceArn :: Prelude.Maybe Prelude.Text,
ReplicationTask -> Maybe Text
lastFailureMessage :: Prelude.Maybe Prelude.Text
}
deriving (ReplicationTask -> ReplicationTask -> Bool
(ReplicationTask -> ReplicationTask -> Bool)
-> (ReplicationTask -> ReplicationTask -> Bool)
-> Eq ReplicationTask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReplicationTask -> ReplicationTask -> Bool
$c/= :: ReplicationTask -> ReplicationTask -> Bool
== :: ReplicationTask -> ReplicationTask -> Bool
$c== :: ReplicationTask -> ReplicationTask -> Bool
Prelude.Eq, ReadPrec [ReplicationTask]
ReadPrec ReplicationTask
Int -> ReadS ReplicationTask
ReadS [ReplicationTask]
(Int -> ReadS ReplicationTask)
-> ReadS [ReplicationTask]
-> ReadPrec ReplicationTask
-> ReadPrec [ReplicationTask]
-> Read ReplicationTask
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ReplicationTask]
$creadListPrec :: ReadPrec [ReplicationTask]
readPrec :: ReadPrec ReplicationTask
$creadPrec :: ReadPrec ReplicationTask
readList :: ReadS [ReplicationTask]
$creadList :: ReadS [ReplicationTask]
readsPrec :: Int -> ReadS ReplicationTask
$creadsPrec :: Int -> ReadS ReplicationTask
Prelude.Read, Int -> ReplicationTask -> ShowS
[ReplicationTask] -> ShowS
ReplicationTask -> String
(Int -> ReplicationTask -> ShowS)
-> (ReplicationTask -> String)
-> ([ReplicationTask] -> ShowS)
-> Show ReplicationTask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReplicationTask] -> ShowS
$cshowList :: [ReplicationTask] -> ShowS
show :: ReplicationTask -> String
$cshow :: ReplicationTask -> String
showsPrec :: Int -> ReplicationTask -> ShowS
$cshowsPrec :: Int -> ReplicationTask -> ShowS
Prelude.Show, (forall x. ReplicationTask -> Rep ReplicationTask x)
-> (forall x. Rep ReplicationTask x -> ReplicationTask)
-> Generic ReplicationTask
forall x. Rep ReplicationTask x -> ReplicationTask
forall x. ReplicationTask -> Rep ReplicationTask x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ReplicationTask x -> ReplicationTask
$cfrom :: forall x. ReplicationTask -> Rep ReplicationTask x
Prelude.Generic)
newReplicationTask ::
ReplicationTask
newReplicationTask :: ReplicationTask
newReplicationTask =
ReplicationTask' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask
ReplicationTask'
{ $sel:replicationTaskSettings:ReplicationTask' :: Maybe Text
replicationTaskSettings =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:ReplicationTask' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stopReason:ReplicationTask' :: Maybe Text
stopReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:targetEndpointArn:ReplicationTask' :: Maybe Text
targetEndpointArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationTaskIdentifier:ReplicationTask' :: Maybe Text
replicationTaskIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cdcStartPosition:ReplicationTask' :: Maybe Text
cdcStartPosition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationTaskStartDate:ReplicationTask' :: Maybe POSIX
replicationTaskStartDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:sourceEndpointArn:ReplicationTask' :: Maybe Text
sourceEndpointArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recoveryCheckpoint:ReplicationTask' :: Maybe Text
recoveryCheckpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tableMappings:ReplicationTask' :: Maybe Text
tableMappings = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:targetReplicationInstanceArn:ReplicationTask' :: Maybe Text
targetReplicationInstanceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationTaskCreationDate:ReplicationTask' :: Maybe POSIX
replicationTaskCreationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:migrationType:ReplicationTask' :: Maybe MigrationTypeValue
migrationType = Maybe MigrationTypeValue
forall a. Maybe a
Prelude.Nothing,
$sel:replicationTaskArn:ReplicationTask' :: Maybe Text
replicationTaskArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:taskData:ReplicationTask' :: Maybe Text
taskData = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cdcStopPosition:ReplicationTask' :: Maybe Text
cdcStopPosition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationTaskStats:ReplicationTask' :: Maybe ReplicationTaskStats
replicationTaskStats = Maybe ReplicationTaskStats
forall a. Maybe a
Prelude.Nothing,
$sel:replicationInstanceArn:ReplicationTask' :: Maybe Text
replicationInstanceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastFailureMessage:ReplicationTask' :: Maybe Text
lastFailureMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
replicationTask_replicationTaskSettings :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_replicationTaskSettings :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_replicationTaskSettings = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
replicationTaskSettings :: Maybe Text
$sel:replicationTaskSettings:ReplicationTask' :: ReplicationTask -> Maybe Text
replicationTaskSettings} -> Maybe Text
replicationTaskSettings) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:replicationTaskSettings:ReplicationTask' :: Maybe Text
replicationTaskSettings = Maybe Text
a} :: ReplicationTask)
replicationTask_status :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_status :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_status = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
status :: Maybe Text
$sel:status:ReplicationTask' :: ReplicationTask -> Maybe Text
status} -> Maybe Text
status) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:status:ReplicationTask' :: Maybe Text
status = Maybe Text
a} :: ReplicationTask)
replicationTask_stopReason :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_stopReason :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_stopReason = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
stopReason :: Maybe Text
$sel:stopReason:ReplicationTask' :: ReplicationTask -> Maybe Text
stopReason} -> Maybe Text
stopReason) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:stopReason:ReplicationTask' :: Maybe Text
stopReason = Maybe Text
a} :: ReplicationTask)
replicationTask_targetEndpointArn :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_targetEndpointArn :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_targetEndpointArn = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
targetEndpointArn :: Maybe Text
$sel:targetEndpointArn:ReplicationTask' :: ReplicationTask -> Maybe Text
targetEndpointArn} -> Maybe Text
targetEndpointArn) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:targetEndpointArn:ReplicationTask' :: Maybe Text
targetEndpointArn = Maybe Text
a} :: ReplicationTask)
replicationTask_replicationTaskIdentifier :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_replicationTaskIdentifier :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_replicationTaskIdentifier = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
replicationTaskIdentifier :: Maybe Text
$sel:replicationTaskIdentifier:ReplicationTask' :: ReplicationTask -> Maybe Text
replicationTaskIdentifier} -> Maybe Text
replicationTaskIdentifier) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:replicationTaskIdentifier:ReplicationTask' :: Maybe Text
replicationTaskIdentifier = Maybe Text
a} :: ReplicationTask)
replicationTask_cdcStartPosition :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_cdcStartPosition :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_cdcStartPosition = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
cdcStartPosition :: Maybe Text
$sel:cdcStartPosition:ReplicationTask' :: ReplicationTask -> Maybe Text
cdcStartPosition} -> Maybe Text
cdcStartPosition) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:cdcStartPosition:ReplicationTask' :: Maybe Text
cdcStartPosition = Maybe Text
a} :: ReplicationTask)
replicationTask_replicationTaskStartDate :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.UTCTime)
replicationTask_replicationTaskStartDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ReplicationTask -> f ReplicationTask
replicationTask_replicationTaskStartDate = (ReplicationTask -> Maybe POSIX)
-> (ReplicationTask -> Maybe POSIX -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe POSIX
replicationTaskStartDate :: Maybe POSIX
$sel:replicationTaskStartDate:ReplicationTask' :: ReplicationTask -> Maybe POSIX
replicationTaskStartDate} -> Maybe POSIX
replicationTaskStartDate) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe POSIX
a -> ReplicationTask
s {$sel:replicationTaskStartDate:ReplicationTask' :: Maybe POSIX
replicationTaskStartDate = Maybe POSIX
a} :: ReplicationTask) ((Maybe POSIX -> f (Maybe POSIX))
-> ReplicationTask -> f ReplicationTask)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ReplicationTask
-> f ReplicationTask
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
replicationTask_sourceEndpointArn :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_sourceEndpointArn :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_sourceEndpointArn = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
sourceEndpointArn :: Maybe Text
$sel:sourceEndpointArn:ReplicationTask' :: ReplicationTask -> Maybe Text
sourceEndpointArn} -> Maybe Text
sourceEndpointArn) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:sourceEndpointArn:ReplicationTask' :: Maybe Text
sourceEndpointArn = Maybe Text
a} :: ReplicationTask)
replicationTask_recoveryCheckpoint :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_recoveryCheckpoint :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_recoveryCheckpoint = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
recoveryCheckpoint :: Maybe Text
$sel:recoveryCheckpoint:ReplicationTask' :: ReplicationTask -> Maybe Text
recoveryCheckpoint} -> Maybe Text
recoveryCheckpoint) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:recoveryCheckpoint:ReplicationTask' :: Maybe Text
recoveryCheckpoint = Maybe Text
a} :: ReplicationTask)
replicationTask_tableMappings :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_tableMappings :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_tableMappings = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
tableMappings :: Maybe Text
$sel:tableMappings:ReplicationTask' :: ReplicationTask -> Maybe Text
tableMappings} -> Maybe Text
tableMappings) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:tableMappings:ReplicationTask' :: Maybe Text
tableMappings = Maybe Text
a} :: ReplicationTask)
replicationTask_targetReplicationInstanceArn :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_targetReplicationInstanceArn :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_targetReplicationInstanceArn = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
targetReplicationInstanceArn :: Maybe Text
$sel:targetReplicationInstanceArn:ReplicationTask' :: ReplicationTask -> Maybe Text
targetReplicationInstanceArn} -> Maybe Text
targetReplicationInstanceArn) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:targetReplicationInstanceArn:ReplicationTask' :: Maybe Text
targetReplicationInstanceArn = Maybe Text
a} :: ReplicationTask)
replicationTask_replicationTaskCreationDate :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.UTCTime)
replicationTask_replicationTaskCreationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ReplicationTask -> f ReplicationTask
replicationTask_replicationTaskCreationDate = (ReplicationTask -> Maybe POSIX)
-> (ReplicationTask -> Maybe POSIX -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe POSIX
replicationTaskCreationDate :: Maybe POSIX
$sel:replicationTaskCreationDate:ReplicationTask' :: ReplicationTask -> Maybe POSIX
replicationTaskCreationDate} -> Maybe POSIX
replicationTaskCreationDate) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe POSIX
a -> ReplicationTask
s {$sel:replicationTaskCreationDate:ReplicationTask' :: Maybe POSIX
replicationTaskCreationDate = Maybe POSIX
a} :: ReplicationTask) ((Maybe POSIX -> f (Maybe POSIX))
-> ReplicationTask -> f ReplicationTask)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ReplicationTask
-> f ReplicationTask
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
replicationTask_migrationType :: Lens.Lens' ReplicationTask (Prelude.Maybe MigrationTypeValue)
replicationTask_migrationType :: (Maybe MigrationTypeValue -> f (Maybe MigrationTypeValue))
-> ReplicationTask -> f ReplicationTask
replicationTask_migrationType = (ReplicationTask -> Maybe MigrationTypeValue)
-> (ReplicationTask -> Maybe MigrationTypeValue -> ReplicationTask)
-> Lens
ReplicationTask
ReplicationTask
(Maybe MigrationTypeValue)
(Maybe MigrationTypeValue)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe MigrationTypeValue
migrationType :: Maybe MigrationTypeValue
$sel:migrationType:ReplicationTask' :: ReplicationTask -> Maybe MigrationTypeValue
migrationType} -> Maybe MigrationTypeValue
migrationType) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe MigrationTypeValue
a -> ReplicationTask
s {$sel:migrationType:ReplicationTask' :: Maybe MigrationTypeValue
migrationType = Maybe MigrationTypeValue
a} :: ReplicationTask)
replicationTask_replicationTaskArn :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_replicationTaskArn :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_replicationTaskArn = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
replicationTaskArn :: Maybe Text
$sel:replicationTaskArn:ReplicationTask' :: ReplicationTask -> Maybe Text
replicationTaskArn} -> Maybe Text
replicationTaskArn) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:replicationTaskArn:ReplicationTask' :: Maybe Text
replicationTaskArn = Maybe Text
a} :: ReplicationTask)
replicationTask_taskData :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_taskData :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_taskData = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
taskData :: Maybe Text
$sel:taskData:ReplicationTask' :: ReplicationTask -> Maybe Text
taskData} -> Maybe Text
taskData) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:taskData:ReplicationTask' :: Maybe Text
taskData = Maybe Text
a} :: ReplicationTask)
replicationTask_cdcStopPosition :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_cdcStopPosition :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_cdcStopPosition = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
cdcStopPosition :: Maybe Text
$sel:cdcStopPosition:ReplicationTask' :: ReplicationTask -> Maybe Text
cdcStopPosition} -> Maybe Text
cdcStopPosition) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:cdcStopPosition:ReplicationTask' :: Maybe Text
cdcStopPosition = Maybe Text
a} :: ReplicationTask)
replicationTask_replicationTaskStats :: Lens.Lens' ReplicationTask (Prelude.Maybe ReplicationTaskStats)
replicationTask_replicationTaskStats :: (Maybe ReplicationTaskStats -> f (Maybe ReplicationTaskStats))
-> ReplicationTask -> f ReplicationTask
replicationTask_replicationTaskStats = (ReplicationTask -> Maybe ReplicationTaskStats)
-> (ReplicationTask
-> Maybe ReplicationTaskStats -> ReplicationTask)
-> Lens
ReplicationTask
ReplicationTask
(Maybe ReplicationTaskStats)
(Maybe ReplicationTaskStats)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe ReplicationTaskStats
replicationTaskStats :: Maybe ReplicationTaskStats
$sel:replicationTaskStats:ReplicationTask' :: ReplicationTask -> Maybe ReplicationTaskStats
replicationTaskStats} -> Maybe ReplicationTaskStats
replicationTaskStats) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe ReplicationTaskStats
a -> ReplicationTask
s {$sel:replicationTaskStats:ReplicationTask' :: Maybe ReplicationTaskStats
replicationTaskStats = Maybe ReplicationTaskStats
a} :: ReplicationTask)
replicationTask_replicationInstanceArn :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_replicationInstanceArn :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_replicationInstanceArn = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
replicationInstanceArn :: Maybe Text
$sel:replicationInstanceArn:ReplicationTask' :: ReplicationTask -> Maybe Text
replicationInstanceArn} -> Maybe Text
replicationInstanceArn) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:replicationInstanceArn:ReplicationTask' :: Maybe Text
replicationInstanceArn = Maybe Text
a} :: ReplicationTask)
replicationTask_lastFailureMessage :: Lens.Lens' ReplicationTask (Prelude.Maybe Prelude.Text)
replicationTask_lastFailureMessage :: (Maybe Text -> f (Maybe Text))
-> ReplicationTask -> f ReplicationTask
replicationTask_lastFailureMessage = (ReplicationTask -> Maybe Text)
-> (ReplicationTask -> Maybe Text -> ReplicationTask)
-> Lens ReplicationTask ReplicationTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationTask' {Maybe Text
lastFailureMessage :: Maybe Text
$sel:lastFailureMessage:ReplicationTask' :: ReplicationTask -> Maybe Text
lastFailureMessage} -> Maybe Text
lastFailureMessage) (\s :: ReplicationTask
s@ReplicationTask' {} Maybe Text
a -> ReplicationTask
s {$sel:lastFailureMessage:ReplicationTask' :: Maybe Text
lastFailureMessage = Maybe Text
a} :: ReplicationTask)
instance Core.FromJSON ReplicationTask where
parseJSON :: Value -> Parser ReplicationTask
parseJSON =
String
-> (Object -> Parser ReplicationTask)
-> Value
-> Parser ReplicationTask
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ReplicationTask"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask
ReplicationTask'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicationTaskSettings")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StopReason")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TargetEndpointArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicationTaskIdentifier")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CdcStartPosition")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicationTaskStartDate")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceEndpointArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RecoveryCheckpoint")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TableMappings")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TargetReplicationInstanceArn")
Parser
(Maybe POSIX
-> Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe POSIX)
-> Parser
(Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicationTaskCreationDate")
Parser
(Maybe MigrationTypeValue
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe MigrationTypeValue)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MigrationTypeValue)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MigrationType")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicationTaskArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TaskData")
Parser
(Maybe Text
-> Maybe ReplicationTaskStats
-> Maybe Text
-> Maybe Text
-> ReplicationTask)
-> Parser (Maybe Text)
-> Parser
(Maybe ReplicationTaskStats
-> Maybe Text -> Maybe Text -> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CdcStopPosition")
Parser
(Maybe ReplicationTaskStats
-> Maybe Text -> Maybe Text -> ReplicationTask)
-> Parser (Maybe ReplicationTaskStats)
-> Parser (Maybe Text -> Maybe Text -> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ReplicationTaskStats)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicationTaskStats")
Parser (Maybe Text -> Maybe Text -> ReplicationTask)
-> Parser (Maybe Text) -> Parser (Maybe Text -> ReplicationTask)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReplicationInstanceArn")
Parser (Maybe Text -> ReplicationTask)
-> Parser (Maybe Text) -> Parser ReplicationTask
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastFailureMessage")
)
instance Prelude.Hashable ReplicationTask
instance Prelude.NFData ReplicationTask