{-# 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.SSM.Types.MaintenanceWindowExecutionTaskInvocationIdentity
-- 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.SSM.Types.MaintenanceWindowExecutionTaskInvocationIdentity where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SSM.Types.MaintenanceWindowExecutionStatus
import Amazonka.SSM.Types.MaintenanceWindowTaskType

-- | Describes the information about a task invocation for a particular
-- target as part of a task execution performed as part of a maintenance
-- window execution.
--
-- /See:/ 'newMaintenanceWindowExecutionTaskInvocationIdentity' smart constructor.
data MaintenanceWindowExecutionTaskInvocationIdentity = MaintenanceWindowExecutionTaskInvocationIdentity'
  { -- | The status of the task invocation.
    MaintenanceWindowExecutionTaskInvocationIdentity
-> Maybe MaintenanceWindowExecutionStatus
status :: Prelude.Maybe MaintenanceWindowExecutionStatus,
    -- | The ID of the action performed in the service that actually handled the
    -- task invocation. If the task type is @RUN_COMMAND@, this value is the
    -- command ID.
    MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
executionId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the specific task execution in the maintenance window
    -- execution.
    MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
taskExecutionId :: Prelude.Maybe Prelude.Text,
    -- | The time the invocation started.
    MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | The ID of the task invocation.
    MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
invocationId :: Prelude.Maybe Prelude.Text,
    -- | User-provided value that was specified when the target was registered
    -- with the maintenance window. This was also included in any Amazon
    -- CloudWatch Events events raised during the task invocation.
    MaintenanceWindowExecutionTaskInvocationIdentity
-> Maybe (Sensitive Text)
ownerInformation :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The task type.
    MaintenanceWindowExecutionTaskInvocationIdentity
-> Maybe MaintenanceWindowTaskType
taskType :: Prelude.Maybe MaintenanceWindowTaskType,
    -- | The ID of the target definition in this maintenance window the
    -- invocation was performed for.
    MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
windowTargetId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the maintenance window execution that ran the task.
    MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
windowExecutionId :: Prelude.Maybe Prelude.Text,
    -- | The details explaining the status of the task invocation. Not available
    -- for all status values.
    MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
statusDetails :: Prelude.Maybe Prelude.Text,
    -- | The time the invocation finished.
    MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | The parameters that were provided for the invocation when it was run.
    MaintenanceWindowExecutionTaskInvocationIdentity
-> Maybe (Sensitive Text)
parameters :: Prelude.Maybe (Core.Sensitive Prelude.Text)
  }
  deriving (MaintenanceWindowExecutionTaskInvocationIdentity
-> MaintenanceWindowExecutionTaskInvocationIdentity -> Bool
(MaintenanceWindowExecutionTaskInvocationIdentity
 -> MaintenanceWindowExecutionTaskInvocationIdentity -> Bool)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> MaintenanceWindowExecutionTaskInvocationIdentity -> Bool)
-> Eq MaintenanceWindowExecutionTaskInvocationIdentity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MaintenanceWindowExecutionTaskInvocationIdentity
-> MaintenanceWindowExecutionTaskInvocationIdentity -> Bool
$c/= :: MaintenanceWindowExecutionTaskInvocationIdentity
-> MaintenanceWindowExecutionTaskInvocationIdentity -> Bool
== :: MaintenanceWindowExecutionTaskInvocationIdentity
-> MaintenanceWindowExecutionTaskInvocationIdentity -> Bool
$c== :: MaintenanceWindowExecutionTaskInvocationIdentity
-> MaintenanceWindowExecutionTaskInvocationIdentity -> Bool
Prelude.Eq, Int -> MaintenanceWindowExecutionTaskInvocationIdentity -> ShowS
[MaintenanceWindowExecutionTaskInvocationIdentity] -> ShowS
MaintenanceWindowExecutionTaskInvocationIdentity -> String
(Int -> MaintenanceWindowExecutionTaskInvocationIdentity -> ShowS)
-> (MaintenanceWindowExecutionTaskInvocationIdentity -> String)
-> ([MaintenanceWindowExecutionTaskInvocationIdentity] -> ShowS)
-> Show MaintenanceWindowExecutionTaskInvocationIdentity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MaintenanceWindowExecutionTaskInvocationIdentity] -> ShowS
$cshowList :: [MaintenanceWindowExecutionTaskInvocationIdentity] -> ShowS
show :: MaintenanceWindowExecutionTaskInvocationIdentity -> String
$cshow :: MaintenanceWindowExecutionTaskInvocationIdentity -> String
showsPrec :: Int -> MaintenanceWindowExecutionTaskInvocationIdentity -> ShowS
$cshowsPrec :: Int -> MaintenanceWindowExecutionTaskInvocationIdentity -> ShowS
Prelude.Show, (forall x.
 MaintenanceWindowExecutionTaskInvocationIdentity
 -> Rep MaintenanceWindowExecutionTaskInvocationIdentity x)
-> (forall x.
    Rep MaintenanceWindowExecutionTaskInvocationIdentity x
    -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Generic MaintenanceWindowExecutionTaskInvocationIdentity
forall x.
Rep MaintenanceWindowExecutionTaskInvocationIdentity x
-> MaintenanceWindowExecutionTaskInvocationIdentity
forall x.
MaintenanceWindowExecutionTaskInvocationIdentity
-> Rep MaintenanceWindowExecutionTaskInvocationIdentity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MaintenanceWindowExecutionTaskInvocationIdentity x
-> MaintenanceWindowExecutionTaskInvocationIdentity
$cfrom :: forall x.
MaintenanceWindowExecutionTaskInvocationIdentity
-> Rep MaintenanceWindowExecutionTaskInvocationIdentity x
Prelude.Generic)

-- |
-- Create a value of 'MaintenanceWindowExecutionTaskInvocationIdentity' 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:
--
-- 'status', 'maintenanceWindowExecutionTaskInvocationIdentity_status' - The status of the task invocation.
--
-- 'executionId', 'maintenanceWindowExecutionTaskInvocationIdentity_executionId' - The ID of the action performed in the service that actually handled the
-- task invocation. If the task type is @RUN_COMMAND@, this value is the
-- command ID.
--
-- 'taskExecutionId', 'maintenanceWindowExecutionTaskInvocationIdentity_taskExecutionId' - The ID of the specific task execution in the maintenance window
-- execution.
--
-- 'startTime', 'maintenanceWindowExecutionTaskInvocationIdentity_startTime' - The time the invocation started.
--
-- 'invocationId', 'maintenanceWindowExecutionTaskInvocationIdentity_invocationId' - The ID of the task invocation.
--
-- 'ownerInformation', 'maintenanceWindowExecutionTaskInvocationIdentity_ownerInformation' - User-provided value that was specified when the target was registered
-- with the maintenance window. This was also included in any Amazon
-- CloudWatch Events events raised during the task invocation.
--
-- 'taskType', 'maintenanceWindowExecutionTaskInvocationIdentity_taskType' - The task type.
--
-- 'windowTargetId', 'maintenanceWindowExecutionTaskInvocationIdentity_windowTargetId' - The ID of the target definition in this maintenance window the
-- invocation was performed for.
--
-- 'windowExecutionId', 'maintenanceWindowExecutionTaskInvocationIdentity_windowExecutionId' - The ID of the maintenance window execution that ran the task.
--
-- 'statusDetails', 'maintenanceWindowExecutionTaskInvocationIdentity_statusDetails' - The details explaining the status of the task invocation. Not available
-- for all status values.
--
-- 'endTime', 'maintenanceWindowExecutionTaskInvocationIdentity_endTime' - The time the invocation finished.
--
-- 'parameters', 'maintenanceWindowExecutionTaskInvocationIdentity_parameters' - The parameters that were provided for the invocation when it was run.
newMaintenanceWindowExecutionTaskInvocationIdentity ::
  MaintenanceWindowExecutionTaskInvocationIdentity
newMaintenanceWindowExecutionTaskInvocationIdentity :: MaintenanceWindowExecutionTaskInvocationIdentity
newMaintenanceWindowExecutionTaskInvocationIdentity =
  MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe MaintenanceWindowExecutionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe MaintenanceWindowTaskType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> MaintenanceWindowExecutionTaskInvocationIdentity
MaintenanceWindowExecutionTaskInvocationIdentity'
    { $sel:status:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe MaintenanceWindowExecutionStatus
status =
        Maybe MaintenanceWindowExecutionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:executionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
executionId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:taskExecutionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
taskExecutionId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe POSIX
startTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:invocationId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
invocationId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:ownerInformation:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe (Sensitive Text)
ownerInformation =
        Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:taskType:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe MaintenanceWindowTaskType
taskType =
        Maybe MaintenanceWindowTaskType
forall a. Maybe a
Prelude.Nothing,
      $sel:windowTargetId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
windowTargetId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:windowExecutionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
windowExecutionId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statusDetails:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
statusDetails =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:parameters:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe (Sensitive Text)
parameters =
        Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the task invocation.
maintenanceWindowExecutionTaskInvocationIdentity_status :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe MaintenanceWindowExecutionStatus)
maintenanceWindowExecutionTaskInvocationIdentity_status :: (Maybe MaintenanceWindowExecutionStatus
 -> f (Maybe MaintenanceWindowExecutionStatus))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_status = (MaintenanceWindowExecutionTaskInvocationIdentity
 -> Maybe MaintenanceWindowExecutionStatus)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe MaintenanceWindowExecutionStatus
    -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe MaintenanceWindowExecutionStatus)
     (Maybe MaintenanceWindowExecutionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe MaintenanceWindowExecutionStatus
status :: Maybe MaintenanceWindowExecutionStatus
$sel:status:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity
-> Maybe MaintenanceWindowExecutionStatus
status} -> Maybe MaintenanceWindowExecutionStatus
status) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe MaintenanceWindowExecutionStatus
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:status:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe MaintenanceWindowExecutionStatus
status = Maybe MaintenanceWindowExecutionStatus
a} :: MaintenanceWindowExecutionTaskInvocationIdentity)

-- | The ID of the action performed in the service that actually handled the
-- task invocation. If the task type is @RUN_COMMAND@, this value is the
-- command ID.
maintenanceWindowExecutionTaskInvocationIdentity_executionId :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowExecutionTaskInvocationIdentity_executionId :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_executionId = (MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe Text -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe Text
executionId :: Maybe Text
$sel:executionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
executionId} -> Maybe Text
executionId) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe Text
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:executionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
executionId = Maybe Text
a} :: MaintenanceWindowExecutionTaskInvocationIdentity)

-- | The ID of the specific task execution in the maintenance window
-- execution.
maintenanceWindowExecutionTaskInvocationIdentity_taskExecutionId :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowExecutionTaskInvocationIdentity_taskExecutionId :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_taskExecutionId = (MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe Text -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe Text
taskExecutionId :: Maybe Text
$sel:taskExecutionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
taskExecutionId} -> Maybe Text
taskExecutionId) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe Text
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:taskExecutionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
taskExecutionId = Maybe Text
a} :: MaintenanceWindowExecutionTaskInvocationIdentity)

-- | The time the invocation started.
maintenanceWindowExecutionTaskInvocationIdentity_startTime :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.UTCTime)
maintenanceWindowExecutionTaskInvocationIdentity_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_startTime = (MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe POSIX)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe POSIX -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe POSIX
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:startTime:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe POSIX
startTime = Maybe POSIX
a} :: MaintenanceWindowExecutionTaskInvocationIdentity) ((Maybe POSIX -> f (Maybe POSIX))
 -> MaintenanceWindowExecutionTaskInvocationIdentity
 -> f MaintenanceWindowExecutionTaskInvocationIdentity)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
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 ID of the task invocation.
maintenanceWindowExecutionTaskInvocationIdentity_invocationId :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowExecutionTaskInvocationIdentity_invocationId :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_invocationId = (MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe Text -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe Text
invocationId :: Maybe Text
$sel:invocationId:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
invocationId} -> Maybe Text
invocationId) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe Text
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:invocationId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
invocationId = Maybe Text
a} :: MaintenanceWindowExecutionTaskInvocationIdentity)

-- | User-provided value that was specified when the target was registered
-- with the maintenance window. This was also included in any Amazon
-- CloudWatch Events events raised during the task invocation.
maintenanceWindowExecutionTaskInvocationIdentity_ownerInformation :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowExecutionTaskInvocationIdentity_ownerInformation :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_ownerInformation = (MaintenanceWindowExecutionTaskInvocationIdentity
 -> Maybe (Sensitive Text))
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe (Sensitive Text)
    -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe (Sensitive Text)
ownerInformation :: Maybe (Sensitive Text)
$sel:ownerInformation:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity
-> Maybe (Sensitive Text)
ownerInformation} -> Maybe (Sensitive Text)
ownerInformation) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe (Sensitive Text)
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:ownerInformation:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe (Sensitive Text)
ownerInformation = Maybe (Sensitive Text)
a} :: MaintenanceWindowExecutionTaskInvocationIdentity) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> MaintenanceWindowExecutionTaskInvocationIdentity
 -> f MaintenanceWindowExecutionTaskInvocationIdentity)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The task type.
maintenanceWindowExecutionTaskInvocationIdentity_taskType :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe MaintenanceWindowTaskType)
maintenanceWindowExecutionTaskInvocationIdentity_taskType :: (Maybe MaintenanceWindowTaskType
 -> f (Maybe MaintenanceWindowTaskType))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_taskType = (MaintenanceWindowExecutionTaskInvocationIdentity
 -> Maybe MaintenanceWindowTaskType)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe MaintenanceWindowTaskType
    -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe MaintenanceWindowTaskType)
     (Maybe MaintenanceWindowTaskType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe MaintenanceWindowTaskType
taskType :: Maybe MaintenanceWindowTaskType
$sel:taskType:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity
-> Maybe MaintenanceWindowTaskType
taskType} -> Maybe MaintenanceWindowTaskType
taskType) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe MaintenanceWindowTaskType
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:taskType:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe MaintenanceWindowTaskType
taskType = Maybe MaintenanceWindowTaskType
a} :: MaintenanceWindowExecutionTaskInvocationIdentity)

-- | The ID of the target definition in this maintenance window the
-- invocation was performed for.
maintenanceWindowExecutionTaskInvocationIdentity_windowTargetId :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowExecutionTaskInvocationIdentity_windowTargetId :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_windowTargetId = (MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe Text -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe Text
windowTargetId :: Maybe Text
$sel:windowTargetId:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
windowTargetId} -> Maybe Text
windowTargetId) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe Text
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:windowTargetId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
windowTargetId = Maybe Text
a} :: MaintenanceWindowExecutionTaskInvocationIdentity)

-- | The ID of the maintenance window execution that ran the task.
maintenanceWindowExecutionTaskInvocationIdentity_windowExecutionId :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowExecutionTaskInvocationIdentity_windowExecutionId :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_windowExecutionId = (MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe Text -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe Text
windowExecutionId :: Maybe Text
$sel:windowExecutionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
windowExecutionId} -> Maybe Text
windowExecutionId) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe Text
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:windowExecutionId:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
windowExecutionId = Maybe Text
a} :: MaintenanceWindowExecutionTaskInvocationIdentity)

-- | The details explaining the status of the task invocation. Not available
-- for all status values.
maintenanceWindowExecutionTaskInvocationIdentity_statusDetails :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowExecutionTaskInvocationIdentity_statusDetails :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_statusDetails = (MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe Text -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe Text
statusDetails :: Maybe Text
$sel:statusDetails:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe Text
statusDetails} -> Maybe Text
statusDetails) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe Text
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:statusDetails:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe Text
statusDetails = Maybe Text
a} :: MaintenanceWindowExecutionTaskInvocationIdentity)

-- | The time the invocation finished.
maintenanceWindowExecutionTaskInvocationIdentity_endTime :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.UTCTime)
maintenanceWindowExecutionTaskInvocationIdentity_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_endTime = (MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe POSIX)
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe POSIX -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe POSIX
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:endTime:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe POSIX
endTime = Maybe POSIX
a} :: MaintenanceWindowExecutionTaskInvocationIdentity) ((Maybe POSIX -> f (Maybe POSIX))
 -> MaintenanceWindowExecutionTaskInvocationIdentity
 -> f MaintenanceWindowExecutionTaskInvocationIdentity)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
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 parameters that were provided for the invocation when it was run.
maintenanceWindowExecutionTaskInvocationIdentity_parameters :: Lens.Lens' MaintenanceWindowExecutionTaskInvocationIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowExecutionTaskInvocationIdentity_parameters :: (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
maintenanceWindowExecutionTaskInvocationIdentity_parameters = (MaintenanceWindowExecutionTaskInvocationIdentity
 -> Maybe (Sensitive Text))
-> (MaintenanceWindowExecutionTaskInvocationIdentity
    -> Maybe (Sensitive Text)
    -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Lens
     MaintenanceWindowExecutionTaskInvocationIdentity
     MaintenanceWindowExecutionTaskInvocationIdentity
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowExecutionTaskInvocationIdentity' {Maybe (Sensitive Text)
parameters :: Maybe (Sensitive Text)
$sel:parameters:MaintenanceWindowExecutionTaskInvocationIdentity' :: MaintenanceWindowExecutionTaskInvocationIdentity
-> Maybe (Sensitive Text)
parameters} -> Maybe (Sensitive Text)
parameters) (\s :: MaintenanceWindowExecutionTaskInvocationIdentity
s@MaintenanceWindowExecutionTaskInvocationIdentity' {} Maybe (Sensitive Text)
a -> MaintenanceWindowExecutionTaskInvocationIdentity
s {$sel:parameters:MaintenanceWindowExecutionTaskInvocationIdentity' :: Maybe (Sensitive Text)
parameters = Maybe (Sensitive Text)
a} :: MaintenanceWindowExecutionTaskInvocationIdentity) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> MaintenanceWindowExecutionTaskInvocationIdentity
 -> f MaintenanceWindowExecutionTaskInvocationIdentity)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> MaintenanceWindowExecutionTaskInvocationIdentity
-> f MaintenanceWindowExecutionTaskInvocationIdentity
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

instance
  Core.FromJSON
    MaintenanceWindowExecutionTaskInvocationIdentity
  where
  parseJSON :: Value -> Parser MaintenanceWindowExecutionTaskInvocationIdentity
parseJSON =
    String
-> (Object
    -> Parser MaintenanceWindowExecutionTaskInvocationIdentity)
-> Value
-> Parser MaintenanceWindowExecutionTaskInvocationIdentity
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"MaintenanceWindowExecutionTaskInvocationIdentity"
      ( \Object
x ->
          Maybe MaintenanceWindowExecutionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe MaintenanceWindowTaskType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> MaintenanceWindowExecutionTaskInvocationIdentity
MaintenanceWindowExecutionTaskInvocationIdentity'
            (Maybe MaintenanceWindowExecutionStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe (Sensitive Text)
 -> Maybe MaintenanceWindowTaskType
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe (Sensitive Text)
 -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe MaintenanceWindowExecutionStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe MaintenanceWindowExecutionStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
              Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
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
"ExecutionId")
              Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
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
"TaskExecutionId")
              Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
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
"StartTime")
              Parser
  (Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe Text)
-> Parser
     (Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
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
"InvocationId")
              Parser
  (Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OwnerInformation")
              Parser
  (Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe MaintenanceWindowTaskType)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MaintenanceWindowTaskType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TaskType")
              Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
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
"WindowTargetId")
              Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
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
"WindowExecutionId")
              Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
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
"StatusDetails")
              Parser
  (Maybe POSIX
   -> Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe (Sensitive Text)
      -> MaintenanceWindowExecutionTaskInvocationIdentity)
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
"EndTime")
              Parser
  (Maybe (Sensitive Text)
   -> MaintenanceWindowExecutionTaskInvocationIdentity)
-> Parser (Maybe (Sensitive Text))
-> Parser MaintenanceWindowExecutionTaskInvocationIdentity
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Parameters")
      )

instance
  Prelude.Hashable
    MaintenanceWindowExecutionTaskInvocationIdentity

instance
  Prelude.NFData
    MaintenanceWindowExecutionTaskInvocationIdentity