{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DMS.Types.ReplicationTask
-- Copyright   : (c) 2013-2021 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)
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

-- | Provides information that describes a replication task created by the
-- @CreateReplicationTask@ operation.
--
-- /See:/ 'newReplicationTask' smart constructor.
data ReplicationTask = ReplicationTask'
  { -- | The settings for the replication task.
    ReplicationTask -> Maybe Text
replicationTaskSettings :: Prelude.Maybe Prelude.Text,
    -- | The status of the replication task. This response parameter can return
    -- one of the following values:
    --
    -- -   @\"moving\"@ – The task is being moved in response to running the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
    --     operation.
    --
    -- -   @\"creating\"@ – The task is being created in response to running
    --     the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationTask.html CreateReplicationTask>
    --     operation.
    --
    -- -   @\"deleting\"@ – The task is being deleted in response to running
    --     the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_DeleteReplicationTask.html DeleteReplicationTask>
    --     operation.
    --
    -- -   @\"failed\"@ – The task failed to successfully complete the database
    --     migration in response to running the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
    --     operation.
    --
    -- -   @\"failed-move\"@ – The task failed to move in response to running
    --     the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
    --     operation.
    --
    -- -   @\"modifying\"@ – The task definition is being modified in response
    --     to running the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_ModifyReplicationTask.html ModifyReplicationTask>
    --     operation.
    --
    -- -   @\"ready\"@ – The task is in a @ready@ state where it can respond to
    --     other task operations, such as
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
    --     or
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_DeleteReplicationTask.html DeleteReplicationTask>
    --     .
    --
    -- -   @\"running\"@ – The task is performing a database migration in
    --     response to running the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
    --     operation.
    --
    -- -   @\"starting\"@ – The task is preparing to perform a database
    --     migration in response to running the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
    --     operation.
    --
    -- -   @\"stopped\"@ – The task has stopped in response to running the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StopReplicationTask.html StopReplicationTask>
    --     operation.
    --
    -- -   @\"stopping\"@ – The task is preparing to stop in response to
    --     running the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StopReplicationTask.html StopReplicationTask>
    --     operation.
    --
    -- -   @\"testing\"@ – The database migration specified for this task is
    --     being tested in response to running either the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
    --     or the
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessment.html StartReplicationTaskAssessment>
    --     operation.
    --
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
    --     is an improved premigration task assessment operation. The
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessment.html StartReplicationTaskAssessment>
    --     operation assesses data type compatibility only between the source
    --     and target database of a given migration task. In contrast,
    --     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
    --     enables you to specify a variety of premigration task assessments in
    --     addition to data type compatibility. These assessments include ones
    --     for the validity of primary key definitions and likely issues with
    --     database migration performance, among others.
    ReplicationTask -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | The reason the replication task was stopped. This response parameter can
    -- return one of the following values:
    --
    -- -   @\"STOP_REASON_FULL_LOAD_COMPLETED\"@ – Full-load migration
    --     completed.
    --
    -- -   @\"STOP_REASON_CACHED_CHANGES_APPLIED\"@ – Change data capture (CDC)
    --     load completed.
    --
    -- -   @\"STOP_REASON_CACHED_CHANGES_NOT_APPLIED\"@ – In a full-load and
    --     CDC migration, the full load stopped as specified before starting
    --     the CDC migration.
    --
    -- -   @\"STOP_REASON_SERVER_TIME\"@ – The migration stopped at the
    --     specified server time.
    ReplicationTask -> Maybe Text
stopReason :: Prelude.Maybe Prelude.Text,
    -- | The ARN that uniquely identifies the endpoint.
    ReplicationTask -> Maybe Text
targetEndpointArn :: Prelude.Maybe Prelude.Text,
    -- | The user-assigned replication task identifier or name.
    --
    -- Constraints:
    --
    -- -   Must contain 1-255 alphanumeric characters or hyphens.
    --
    -- -   First character must be a letter.
    --
    -- -   Cannot end with a hyphen or contain two consecutive hyphens.
    ReplicationTask -> Maybe Text
replicationTaskIdentifier :: Prelude.Maybe Prelude.Text,
    -- | Indicates when you want a change data capture (CDC) operation to start.
    -- Use either @CdcStartPosition@ or @CdcStartTime@ to specify when you want
    -- the CDC operation to start. Specifying both values results in an error.
    --
    -- The value can be in date, checkpoint, or LSN\/SCN format.
    --
    -- Date Example: --cdc-start-position “2018-03-08T12:12:12”
    --
    -- Checkpoint Example: --cdc-start-position
    -- \"checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93\"
    --
    -- LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
    ReplicationTask -> Maybe Text
cdcStartPosition :: Prelude.Maybe Prelude.Text,
    -- | The date the replication task is scheduled to start.
    ReplicationTask -> Maybe POSIX
replicationTaskStartDate :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) that uniquely identifies the endpoint.
    ReplicationTask -> Maybe Text
sourceEndpointArn :: Prelude.Maybe Prelude.Text,
    -- | Indicates the last checkpoint that occurred during a change data capture
    -- (CDC) operation. You can provide this value to the @CdcStartPosition@
    -- parameter to start a CDC operation that begins at that checkpoint.
    ReplicationTask -> Maybe Text
recoveryCheckpoint :: Prelude.Maybe Prelude.Text,
    -- | Table mappings specified in the task.
    ReplicationTask -> Maybe Text
tableMappings :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the replication instance to which this task is moved in
    -- response to running the
    -- <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
    -- operation. Otherwise, this response parameter isn\'t a member of the
    -- @ReplicationTask@ object.
    ReplicationTask -> Maybe Text
targetReplicationInstanceArn :: Prelude.Maybe Prelude.Text,
    -- | The date the replication task was created.
    ReplicationTask -> Maybe POSIX
replicationTaskCreationDate :: Prelude.Maybe Core.POSIX,
    -- | The type of migration.
    ReplicationTask -> Maybe MigrationTypeValue
migrationType :: Prelude.Maybe MigrationTypeValue,
    -- | The Amazon Resource Name (ARN) of the replication task.
    ReplicationTask -> Maybe Text
replicationTaskArn :: Prelude.Maybe Prelude.Text,
    -- | Supplemental information that the task requires to migrate the data for
    -- certain source and target endpoints. For more information, see
    -- <https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html Specifying Supplemental Data for Task Settings>
    -- in the /Database Migration Service User Guide./
    ReplicationTask -> Maybe Text
taskData :: Prelude.Maybe Prelude.Text,
    -- | Indicates when you want a change data capture (CDC) operation to stop.
    -- The value can be either server time or commit time.
    --
    -- Server time example: --cdc-stop-position
    -- “server_time:2018-02-09T12:12:12”
    --
    -- Commit time example: --cdc-stop-position “commit_time:
    -- 2018-02-09T12:12:12 “
    ReplicationTask -> Maybe Text
cdcStopPosition :: Prelude.Maybe Prelude.Text,
    -- | The statistics for the task, including elapsed time, tables loaded, and
    -- table errors.
    ReplicationTask -> Maybe ReplicationTaskStats
replicationTaskStats :: Prelude.Maybe ReplicationTaskStats,
    -- | The ARN of the replication instance.
    ReplicationTask -> Maybe Text
replicationInstanceArn :: Prelude.Maybe Prelude.Text,
    -- | The last error (failure) message generated for the replication task.
    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)

-- |
-- Create a value of 'ReplicationTask' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'replicationTaskSettings', 'replicationTask_replicationTaskSettings' - The settings for the replication task.
--
-- 'status', 'replicationTask_status' - The status of the replication task. This response parameter can return
-- one of the following values:
--
-- -   @\"moving\"@ – The task is being moved in response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
--     operation.
--
-- -   @\"creating\"@ – The task is being created in response to running
--     the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationTask.html CreateReplicationTask>
--     operation.
--
-- -   @\"deleting\"@ – The task is being deleted in response to running
--     the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_DeleteReplicationTask.html DeleteReplicationTask>
--     operation.
--
-- -   @\"failed\"@ – The task failed to successfully complete the database
--     migration in response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
--     operation.
--
-- -   @\"failed-move\"@ – The task failed to move in response to running
--     the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
--     operation.
--
-- -   @\"modifying\"@ – The task definition is being modified in response
--     to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_ModifyReplicationTask.html ModifyReplicationTask>
--     operation.
--
-- -   @\"ready\"@ – The task is in a @ready@ state where it can respond to
--     other task operations, such as
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
--     or
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_DeleteReplicationTask.html DeleteReplicationTask>
--     .
--
-- -   @\"running\"@ – The task is performing a database migration in
--     response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
--     operation.
--
-- -   @\"starting\"@ – The task is preparing to perform a database
--     migration in response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
--     operation.
--
-- -   @\"stopped\"@ – The task has stopped in response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StopReplicationTask.html StopReplicationTask>
--     operation.
--
-- -   @\"stopping\"@ – The task is preparing to stop in response to
--     running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StopReplicationTask.html StopReplicationTask>
--     operation.
--
-- -   @\"testing\"@ – The database migration specified for this task is
--     being tested in response to running either the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
--     or the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessment.html StartReplicationTaskAssessment>
--     operation.
--
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
--     is an improved premigration task assessment operation. The
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessment.html StartReplicationTaskAssessment>
--     operation assesses data type compatibility only between the source
--     and target database of a given migration task. In contrast,
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
--     enables you to specify a variety of premigration task assessments in
--     addition to data type compatibility. These assessments include ones
--     for the validity of primary key definitions and likely issues with
--     database migration performance, among others.
--
-- 'stopReason', 'replicationTask_stopReason' - The reason the replication task was stopped. This response parameter can
-- return one of the following values:
--
-- -   @\"STOP_REASON_FULL_LOAD_COMPLETED\"@ – Full-load migration
--     completed.
--
-- -   @\"STOP_REASON_CACHED_CHANGES_APPLIED\"@ – Change data capture (CDC)
--     load completed.
--
-- -   @\"STOP_REASON_CACHED_CHANGES_NOT_APPLIED\"@ – In a full-load and
--     CDC migration, the full load stopped as specified before starting
--     the CDC migration.
--
-- -   @\"STOP_REASON_SERVER_TIME\"@ – The migration stopped at the
--     specified server time.
--
-- 'targetEndpointArn', 'replicationTask_targetEndpointArn' - The ARN that uniquely identifies the endpoint.
--
-- 'replicationTaskIdentifier', 'replicationTask_replicationTaskIdentifier' - The user-assigned replication task identifier or name.
--
-- Constraints:
--
-- -   Must contain 1-255 alphanumeric characters or hyphens.
--
-- -   First character must be a letter.
--
-- -   Cannot end with a hyphen or contain two consecutive hyphens.
--
-- 'cdcStartPosition', 'replicationTask_cdcStartPosition' - Indicates when you want a change data capture (CDC) operation to start.
-- Use either @CdcStartPosition@ or @CdcStartTime@ to specify when you want
-- the CDC operation to start. Specifying both values results in an error.
--
-- The value can be in date, checkpoint, or LSN\/SCN format.
--
-- Date Example: --cdc-start-position “2018-03-08T12:12:12”
--
-- Checkpoint Example: --cdc-start-position
-- \"checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93\"
--
-- LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
--
-- 'replicationTaskStartDate', 'replicationTask_replicationTaskStartDate' - The date the replication task is scheduled to start.
--
-- 'sourceEndpointArn', 'replicationTask_sourceEndpointArn' - The Amazon Resource Name (ARN) that uniquely identifies the endpoint.
--
-- 'recoveryCheckpoint', 'replicationTask_recoveryCheckpoint' - Indicates the last checkpoint that occurred during a change data capture
-- (CDC) operation. You can provide this value to the @CdcStartPosition@
-- parameter to start a CDC operation that begins at that checkpoint.
--
-- 'tableMappings', 'replicationTask_tableMappings' - Table mappings specified in the task.
--
-- 'targetReplicationInstanceArn', 'replicationTask_targetReplicationInstanceArn' - The ARN of the replication instance to which this task is moved in
-- response to running the
-- <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
-- operation. Otherwise, this response parameter isn\'t a member of the
-- @ReplicationTask@ object.
--
-- 'replicationTaskCreationDate', 'replicationTask_replicationTaskCreationDate' - The date the replication task was created.
--
-- 'migrationType', 'replicationTask_migrationType' - The type of migration.
--
-- 'replicationTaskArn', 'replicationTask_replicationTaskArn' - The Amazon Resource Name (ARN) of the replication task.
--
-- 'taskData', 'replicationTask_taskData' - Supplemental information that the task requires to migrate the data for
-- certain source and target endpoints. For more information, see
-- <https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html Specifying Supplemental Data for Task Settings>
-- in the /Database Migration Service User Guide./
--
-- 'cdcStopPosition', 'replicationTask_cdcStopPosition' - Indicates when you want a change data capture (CDC) operation to stop.
-- The value can be either server time or commit time.
--
-- Server time example: --cdc-stop-position
-- “server_time:2018-02-09T12:12:12”
--
-- Commit time example: --cdc-stop-position “commit_time:
-- 2018-02-09T12:12:12 “
--
-- 'replicationTaskStats', 'replicationTask_replicationTaskStats' - The statistics for the task, including elapsed time, tables loaded, and
-- table errors.
--
-- 'replicationInstanceArn', 'replicationTask_replicationInstanceArn' - The ARN of the replication instance.
--
-- 'lastFailureMessage', 'replicationTask_lastFailureMessage' - The last error (failure) message generated for the replication task.
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
    }

-- | The settings for the replication task.
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)

-- | The status of the replication task. This response parameter can return
-- one of the following values:
--
-- -   @\"moving\"@ – The task is being moved in response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
--     operation.
--
-- -   @\"creating\"@ – The task is being created in response to running
--     the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationTask.html CreateReplicationTask>
--     operation.
--
-- -   @\"deleting\"@ – The task is being deleted in response to running
--     the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_DeleteReplicationTask.html DeleteReplicationTask>
--     operation.
--
-- -   @\"failed\"@ – The task failed to successfully complete the database
--     migration in response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
--     operation.
--
-- -   @\"failed-move\"@ – The task failed to move in response to running
--     the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
--     operation.
--
-- -   @\"modifying\"@ – The task definition is being modified in response
--     to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_ModifyReplicationTask.html ModifyReplicationTask>
--     operation.
--
-- -   @\"ready\"@ – The task is in a @ready@ state where it can respond to
--     other task operations, such as
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
--     or
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_DeleteReplicationTask.html DeleteReplicationTask>
--     .
--
-- -   @\"running\"@ – The task is performing a database migration in
--     response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
--     operation.
--
-- -   @\"starting\"@ – The task is preparing to perform a database
--     migration in response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html StartReplicationTask>
--     operation.
--
-- -   @\"stopped\"@ – The task has stopped in response to running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StopReplicationTask.html StopReplicationTask>
--     operation.
--
-- -   @\"stopping\"@ – The task is preparing to stop in response to
--     running the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StopReplicationTask.html StopReplicationTask>
--     operation.
--
-- -   @\"testing\"@ – The database migration specified for this task is
--     being tested in response to running either the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
--     or the
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessment.html StartReplicationTaskAssessment>
--     operation.
--
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
--     is an improved premigration task assessment operation. The
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessment.html StartReplicationTaskAssessment>
--     operation assesses data type compatibility only between the source
--     and target database of a given migration task. In contrast,
--     <https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html StartReplicationTaskAssessmentRun>
--     enables you to specify a variety of premigration task assessments in
--     addition to data type compatibility. These assessments include ones
--     for the validity of primary key definitions and likely issues with
--     database migration performance, among others.
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)

-- | The reason the replication task was stopped. This response parameter can
-- return one of the following values:
--
-- -   @\"STOP_REASON_FULL_LOAD_COMPLETED\"@ – Full-load migration
--     completed.
--
-- -   @\"STOP_REASON_CACHED_CHANGES_APPLIED\"@ – Change data capture (CDC)
--     load completed.
--
-- -   @\"STOP_REASON_CACHED_CHANGES_NOT_APPLIED\"@ – In a full-load and
--     CDC migration, the full load stopped as specified before starting
--     the CDC migration.
--
-- -   @\"STOP_REASON_SERVER_TIME\"@ – The migration stopped at the
--     specified server time.
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)

-- | The ARN that uniquely identifies the endpoint.
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)

-- | The user-assigned replication task identifier or name.
--
-- Constraints:
--
-- -   Must contain 1-255 alphanumeric characters or hyphens.
--
-- -   First character must be a letter.
--
-- -   Cannot end with a hyphen or contain two consecutive hyphens.
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)

-- | Indicates when you want a change data capture (CDC) operation to start.
-- Use either @CdcStartPosition@ or @CdcStartTime@ to specify when you want
-- the CDC operation to start. Specifying both values results in an error.
--
-- The value can be in date, checkpoint, or LSN\/SCN format.
--
-- Date Example: --cdc-start-position “2018-03-08T12:12:12”
--
-- Checkpoint Example: --cdc-start-position
-- \"checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93\"
--
-- LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
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)

-- | The date the replication task is scheduled to start.
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

-- | The Amazon Resource Name (ARN) that uniquely identifies the endpoint.
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)

-- | Indicates the last checkpoint that occurred during a change data capture
-- (CDC) operation. You can provide this value to the @CdcStartPosition@
-- parameter to start a CDC operation that begins at that checkpoint.
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)

-- | Table mappings specified in the task.
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)

-- | The ARN of the replication instance to which this task is moved in
-- response to running the
-- <https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html MoveReplicationTask>
-- operation. Otherwise, this response parameter isn\'t a member of the
-- @ReplicationTask@ object.
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)

-- | The date the replication task was created.
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

-- | The type of migration.
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)

-- | The Amazon Resource Name (ARN) of the replication task.
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)

-- | Supplemental information that the task requires to migrate the data for
-- certain source and target endpoints. For more information, see
-- <https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html Specifying Supplemental Data for Task Settings>
-- in the /Database Migration Service User Guide./
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)

-- | Indicates when you want a change data capture (CDC) operation to stop.
-- The value can be either server time or commit time.
--
-- Server time example: --cdc-stop-position
-- “server_time:2018-02-09T12:12:12”
--
-- Commit time example: --cdc-stop-position “commit_time:
-- 2018-02-09T12:12:12 “
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)

-- | The statistics for the task, including elapsed time, tables loaded, and
-- table errors.
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)

-- | The ARN of the replication instance.
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)

-- | The last error (failure) message generated for the replication task.
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