{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.SSM.GetMaintenanceWindowExecutionTaskInvocation
-- 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)
--
-- Retrieves information about a specific task running on a specific
-- target.
module Amazonka.SSM.GetMaintenanceWindowExecutionTaskInvocation
  ( -- * Creating a Request
    GetMaintenanceWindowExecutionTaskInvocation (..),
    newGetMaintenanceWindowExecutionTaskInvocation,

    -- * Request Lenses
    getMaintenanceWindowExecutionTaskInvocation_windowExecutionId,
    getMaintenanceWindowExecutionTaskInvocation_taskId,
    getMaintenanceWindowExecutionTaskInvocation_invocationId,

    -- * Destructuring the Response
    GetMaintenanceWindowExecutionTaskInvocationResponse (..),
    newGetMaintenanceWindowExecutionTaskInvocationResponse,

    -- * Response Lenses
    getMaintenanceWindowExecutionTaskInvocationResponse_status,
    getMaintenanceWindowExecutionTaskInvocationResponse_executionId,
    getMaintenanceWindowExecutionTaskInvocationResponse_taskExecutionId,
    getMaintenanceWindowExecutionTaskInvocationResponse_startTime,
    getMaintenanceWindowExecutionTaskInvocationResponse_invocationId,
    getMaintenanceWindowExecutionTaskInvocationResponse_ownerInformation,
    getMaintenanceWindowExecutionTaskInvocationResponse_taskType,
    getMaintenanceWindowExecutionTaskInvocationResponse_windowTargetId,
    getMaintenanceWindowExecutionTaskInvocationResponse_windowExecutionId,
    getMaintenanceWindowExecutionTaskInvocationResponse_statusDetails,
    getMaintenanceWindowExecutionTaskInvocationResponse_endTime,
    getMaintenanceWindowExecutionTaskInvocationResponse_parameters,
    getMaintenanceWindowExecutionTaskInvocationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SSM.Types

-- | /See:/ 'newGetMaintenanceWindowExecutionTaskInvocation' smart constructor.
data GetMaintenanceWindowExecutionTaskInvocation = GetMaintenanceWindowExecutionTaskInvocation'
  { -- | The ID of the maintenance window execution for which the task is a part.
    GetMaintenanceWindowExecutionTaskInvocation -> Text
windowExecutionId :: Prelude.Text,
    -- | The ID of the specific task in the maintenance window task that should
    -- be retrieved.
    GetMaintenanceWindowExecutionTaskInvocation -> Text
taskId :: Prelude.Text,
    -- | The invocation ID to retrieve.
    GetMaintenanceWindowExecutionTaskInvocation -> Text
invocationId :: Prelude.Text
  }
  deriving (GetMaintenanceWindowExecutionTaskInvocation
-> GetMaintenanceWindowExecutionTaskInvocation -> Bool
(GetMaintenanceWindowExecutionTaskInvocation
 -> GetMaintenanceWindowExecutionTaskInvocation -> Bool)
-> (GetMaintenanceWindowExecutionTaskInvocation
    -> GetMaintenanceWindowExecutionTaskInvocation -> Bool)
-> Eq GetMaintenanceWindowExecutionTaskInvocation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMaintenanceWindowExecutionTaskInvocation
-> GetMaintenanceWindowExecutionTaskInvocation -> Bool
$c/= :: GetMaintenanceWindowExecutionTaskInvocation
-> GetMaintenanceWindowExecutionTaskInvocation -> Bool
== :: GetMaintenanceWindowExecutionTaskInvocation
-> GetMaintenanceWindowExecutionTaskInvocation -> Bool
$c== :: GetMaintenanceWindowExecutionTaskInvocation
-> GetMaintenanceWindowExecutionTaskInvocation -> Bool
Prelude.Eq, ReadPrec [GetMaintenanceWindowExecutionTaskInvocation]
ReadPrec GetMaintenanceWindowExecutionTaskInvocation
Int -> ReadS GetMaintenanceWindowExecutionTaskInvocation
ReadS [GetMaintenanceWindowExecutionTaskInvocation]
(Int -> ReadS GetMaintenanceWindowExecutionTaskInvocation)
-> ReadS [GetMaintenanceWindowExecutionTaskInvocation]
-> ReadPrec GetMaintenanceWindowExecutionTaskInvocation
-> ReadPrec [GetMaintenanceWindowExecutionTaskInvocation]
-> Read GetMaintenanceWindowExecutionTaskInvocation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMaintenanceWindowExecutionTaskInvocation]
$creadListPrec :: ReadPrec [GetMaintenanceWindowExecutionTaskInvocation]
readPrec :: ReadPrec GetMaintenanceWindowExecutionTaskInvocation
$creadPrec :: ReadPrec GetMaintenanceWindowExecutionTaskInvocation
readList :: ReadS [GetMaintenanceWindowExecutionTaskInvocation]
$creadList :: ReadS [GetMaintenanceWindowExecutionTaskInvocation]
readsPrec :: Int -> ReadS GetMaintenanceWindowExecutionTaskInvocation
$creadsPrec :: Int -> ReadS GetMaintenanceWindowExecutionTaskInvocation
Prelude.Read, Int -> GetMaintenanceWindowExecutionTaskInvocation -> ShowS
[GetMaintenanceWindowExecutionTaskInvocation] -> ShowS
GetMaintenanceWindowExecutionTaskInvocation -> String
(Int -> GetMaintenanceWindowExecutionTaskInvocation -> ShowS)
-> (GetMaintenanceWindowExecutionTaskInvocation -> String)
-> ([GetMaintenanceWindowExecutionTaskInvocation] -> ShowS)
-> Show GetMaintenanceWindowExecutionTaskInvocation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMaintenanceWindowExecutionTaskInvocation] -> ShowS
$cshowList :: [GetMaintenanceWindowExecutionTaskInvocation] -> ShowS
show :: GetMaintenanceWindowExecutionTaskInvocation -> String
$cshow :: GetMaintenanceWindowExecutionTaskInvocation -> String
showsPrec :: Int -> GetMaintenanceWindowExecutionTaskInvocation -> ShowS
$cshowsPrec :: Int -> GetMaintenanceWindowExecutionTaskInvocation -> ShowS
Prelude.Show, (forall x.
 GetMaintenanceWindowExecutionTaskInvocation
 -> Rep GetMaintenanceWindowExecutionTaskInvocation x)
-> (forall x.
    Rep GetMaintenanceWindowExecutionTaskInvocation x
    -> GetMaintenanceWindowExecutionTaskInvocation)
-> Generic GetMaintenanceWindowExecutionTaskInvocation
forall x.
Rep GetMaintenanceWindowExecutionTaskInvocation x
-> GetMaintenanceWindowExecutionTaskInvocation
forall x.
GetMaintenanceWindowExecutionTaskInvocation
-> Rep GetMaintenanceWindowExecutionTaskInvocation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetMaintenanceWindowExecutionTaskInvocation x
-> GetMaintenanceWindowExecutionTaskInvocation
$cfrom :: forall x.
GetMaintenanceWindowExecutionTaskInvocation
-> Rep GetMaintenanceWindowExecutionTaskInvocation x
Prelude.Generic)

-- |
-- Create a value of 'GetMaintenanceWindowExecutionTaskInvocation' 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:
--
-- 'windowExecutionId', 'getMaintenanceWindowExecutionTaskInvocation_windowExecutionId' - The ID of the maintenance window execution for which the task is a part.
--
-- 'taskId', 'getMaintenanceWindowExecutionTaskInvocation_taskId' - The ID of the specific task in the maintenance window task that should
-- be retrieved.
--
-- 'invocationId', 'getMaintenanceWindowExecutionTaskInvocation_invocationId' - The invocation ID to retrieve.
newGetMaintenanceWindowExecutionTaskInvocation ::
  -- | 'windowExecutionId'
  Prelude.Text ->
  -- | 'taskId'
  Prelude.Text ->
  -- | 'invocationId'
  Prelude.Text ->
  GetMaintenanceWindowExecutionTaskInvocation
newGetMaintenanceWindowExecutionTaskInvocation :: Text -> Text -> Text -> GetMaintenanceWindowExecutionTaskInvocation
newGetMaintenanceWindowExecutionTaskInvocation
  Text
pWindowExecutionId_
  Text
pTaskId_
  Text
pInvocationId_ =
    GetMaintenanceWindowExecutionTaskInvocation' :: Text -> Text -> Text -> GetMaintenanceWindowExecutionTaskInvocation
GetMaintenanceWindowExecutionTaskInvocation'
      { $sel:windowExecutionId:GetMaintenanceWindowExecutionTaskInvocation' :: Text
windowExecutionId =
          Text
pWindowExecutionId_,
        $sel:taskId:GetMaintenanceWindowExecutionTaskInvocation' :: Text
taskId = Text
pTaskId_,
        $sel:invocationId:GetMaintenanceWindowExecutionTaskInvocation' :: Text
invocationId = Text
pInvocationId_
      }

-- | The ID of the maintenance window execution for which the task is a part.
getMaintenanceWindowExecutionTaskInvocation_windowExecutionId :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocation Prelude.Text
getMaintenanceWindowExecutionTaskInvocation_windowExecutionId :: (Text -> f Text)
-> GetMaintenanceWindowExecutionTaskInvocation
-> f GetMaintenanceWindowExecutionTaskInvocation
getMaintenanceWindowExecutionTaskInvocation_windowExecutionId = (GetMaintenanceWindowExecutionTaskInvocation -> Text)
-> (GetMaintenanceWindowExecutionTaskInvocation
    -> Text -> GetMaintenanceWindowExecutionTaskInvocation)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocation
     GetMaintenanceWindowExecutionTaskInvocation
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocation' {Text
windowExecutionId :: Text
$sel:windowExecutionId:GetMaintenanceWindowExecutionTaskInvocation' :: GetMaintenanceWindowExecutionTaskInvocation -> Text
windowExecutionId} -> Text
windowExecutionId) (\s :: GetMaintenanceWindowExecutionTaskInvocation
s@GetMaintenanceWindowExecutionTaskInvocation' {} Text
a -> GetMaintenanceWindowExecutionTaskInvocation
s {$sel:windowExecutionId:GetMaintenanceWindowExecutionTaskInvocation' :: Text
windowExecutionId = Text
a} :: GetMaintenanceWindowExecutionTaskInvocation)

-- | The ID of the specific task in the maintenance window task that should
-- be retrieved.
getMaintenanceWindowExecutionTaskInvocation_taskId :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocation Prelude.Text
getMaintenanceWindowExecutionTaskInvocation_taskId :: (Text -> f Text)
-> GetMaintenanceWindowExecutionTaskInvocation
-> f GetMaintenanceWindowExecutionTaskInvocation
getMaintenanceWindowExecutionTaskInvocation_taskId = (GetMaintenanceWindowExecutionTaskInvocation -> Text)
-> (GetMaintenanceWindowExecutionTaskInvocation
    -> Text -> GetMaintenanceWindowExecutionTaskInvocation)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocation
     GetMaintenanceWindowExecutionTaskInvocation
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocation' {Text
taskId :: Text
$sel:taskId:GetMaintenanceWindowExecutionTaskInvocation' :: GetMaintenanceWindowExecutionTaskInvocation -> Text
taskId} -> Text
taskId) (\s :: GetMaintenanceWindowExecutionTaskInvocation
s@GetMaintenanceWindowExecutionTaskInvocation' {} Text
a -> GetMaintenanceWindowExecutionTaskInvocation
s {$sel:taskId:GetMaintenanceWindowExecutionTaskInvocation' :: Text
taskId = Text
a} :: GetMaintenanceWindowExecutionTaskInvocation)

-- | The invocation ID to retrieve.
getMaintenanceWindowExecutionTaskInvocation_invocationId :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocation Prelude.Text
getMaintenanceWindowExecutionTaskInvocation_invocationId :: (Text -> f Text)
-> GetMaintenanceWindowExecutionTaskInvocation
-> f GetMaintenanceWindowExecutionTaskInvocation
getMaintenanceWindowExecutionTaskInvocation_invocationId = (GetMaintenanceWindowExecutionTaskInvocation -> Text)
-> (GetMaintenanceWindowExecutionTaskInvocation
    -> Text -> GetMaintenanceWindowExecutionTaskInvocation)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocation
     GetMaintenanceWindowExecutionTaskInvocation
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocation' {Text
invocationId :: Text
$sel:invocationId:GetMaintenanceWindowExecutionTaskInvocation' :: GetMaintenanceWindowExecutionTaskInvocation -> Text
invocationId} -> Text
invocationId) (\s :: GetMaintenanceWindowExecutionTaskInvocation
s@GetMaintenanceWindowExecutionTaskInvocation' {} Text
a -> GetMaintenanceWindowExecutionTaskInvocation
s {$sel:invocationId:GetMaintenanceWindowExecutionTaskInvocation' :: Text
invocationId = Text
a} :: GetMaintenanceWindowExecutionTaskInvocation)

instance
  Core.AWSRequest
    GetMaintenanceWindowExecutionTaskInvocation
  where
  type
    AWSResponse
      GetMaintenanceWindowExecutionTaskInvocation =
      GetMaintenanceWindowExecutionTaskInvocationResponse
  request :: GetMaintenanceWindowExecutionTaskInvocation
-> Request GetMaintenanceWindowExecutionTaskInvocation
request = Service
-> GetMaintenanceWindowExecutionTaskInvocation
-> Request GetMaintenanceWindowExecutionTaskInvocation
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetMaintenanceWindowExecutionTaskInvocation
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetMaintenanceWindowExecutionTaskInvocation)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse GetMaintenanceWindowExecutionTaskInvocation))
-> Logger
-> Service
-> Proxy GetMaintenanceWindowExecutionTaskInvocation
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetMaintenanceWindowExecutionTaskInvocation)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe 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)
-> Int
-> GetMaintenanceWindowExecutionTaskInvocationResponse
GetMaintenanceWindowExecutionTaskInvocationResponse'
            (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)
 -> Int
 -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe MaintenanceWindowExecutionStatus)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe MaintenanceWindowExecutionStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
              Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ExecutionId")
              Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TaskExecutionId")
              Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StartTime")
              Either
  String
  (Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (Sensitive Text)
      -> Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InvocationId")
              Either
  String
  (Maybe (Sensitive Text)
   -> Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
     String
     (Maybe MaintenanceWindowTaskType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OwnerInformation")
              Either
  String
  (Maybe MaintenanceWindowTaskType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe MaintenanceWindowTaskType)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe MaintenanceWindowTaskType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TaskType")
              Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"WindowTargetId")
              Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"WindowExecutionId")
              Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Int
      -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StatusDetails")
              Either
  String
  (Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Int
   -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe (Sensitive Text)
      -> Int -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EndTime")
              Either
  String
  (Maybe (Sensitive Text)
   -> Int -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
     String (Int -> GetMaintenanceWindowExecutionTaskInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Parameters")
              Either
  String (Int -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Either String Int
-> Either
     String GetMaintenanceWindowExecutionTaskInvocationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    GetMaintenanceWindowExecutionTaskInvocation

instance
  Prelude.NFData
    GetMaintenanceWindowExecutionTaskInvocation

instance
  Core.ToHeaders
    GetMaintenanceWindowExecutionTaskInvocation
  where
  toHeaders :: GetMaintenanceWindowExecutionTaskInvocation -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetMaintenanceWindowExecutionTaskInvocation -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonSSM.GetMaintenanceWindowExecutionTaskInvocation" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToJSON
    GetMaintenanceWindowExecutionTaskInvocation
  where
  toJSON :: GetMaintenanceWindowExecutionTaskInvocation -> Value
toJSON
    GetMaintenanceWindowExecutionTaskInvocation' {Text
invocationId :: Text
taskId :: Text
windowExecutionId :: Text
$sel:invocationId:GetMaintenanceWindowExecutionTaskInvocation' :: GetMaintenanceWindowExecutionTaskInvocation -> Text
$sel:taskId:GetMaintenanceWindowExecutionTaskInvocation' :: GetMaintenanceWindowExecutionTaskInvocation -> Text
$sel:windowExecutionId:GetMaintenanceWindowExecutionTaskInvocation' :: GetMaintenanceWindowExecutionTaskInvocation -> Text
..} =
      [Pair] -> Value
Core.object
        ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
                (Text
"WindowExecutionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
windowExecutionId),
              Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TaskId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
taskId),
              Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InvocationId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
invocationId)
            ]
        )

instance
  Core.ToPath
    GetMaintenanceWindowExecutionTaskInvocation
  where
  toPath :: GetMaintenanceWindowExecutionTaskInvocation -> ByteString
toPath = ByteString
-> GetMaintenanceWindowExecutionTaskInvocation -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    GetMaintenanceWindowExecutionTaskInvocation
  where
  toQuery :: GetMaintenanceWindowExecutionTaskInvocation -> QueryString
toQuery = QueryString
-> GetMaintenanceWindowExecutionTaskInvocation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newGetMaintenanceWindowExecutionTaskInvocationResponse' smart constructor.
data GetMaintenanceWindowExecutionTaskInvocationResponse = GetMaintenanceWindowExecutionTaskInvocationResponse'
  { -- | The task status for an invocation.
    GetMaintenanceWindowExecutionTaskInvocationResponse
-> Maybe MaintenanceWindowExecutionStatus
status :: Prelude.Maybe MaintenanceWindowExecutionStatus,
    -- | The execution ID.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
executionId :: Prelude.Maybe Prelude.Text,
    -- | The task execution ID.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
taskExecutionId :: Prelude.Maybe Prelude.Text,
    -- | The time that the task started running on the target.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | The invocation ID.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
invocationId :: Prelude.Maybe Prelude.Text,
    -- | User-provided value to be included in any Amazon CloudWatch Events or
    -- Amazon EventBridge events raised while running tasks for these targets
    -- in this maintenance window.
    GetMaintenanceWindowExecutionTaskInvocationResponse
-> Maybe (Sensitive Text)
ownerInformation :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | Retrieves the task type for a maintenance window.
    GetMaintenanceWindowExecutionTaskInvocationResponse
-> Maybe MaintenanceWindowTaskType
taskType :: Prelude.Maybe MaintenanceWindowTaskType,
    -- | The maintenance window target ID.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
windowTargetId :: Prelude.Maybe Prelude.Text,
    -- | The maintenance window execution ID.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
windowExecutionId :: Prelude.Maybe Prelude.Text,
    -- | The details explaining the status. Details are only available for
    -- certain status values.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
statusDetails :: Prelude.Maybe Prelude.Text,
    -- | The time that the task finished running on the target.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | The parameters used at the time that the task ran.
    GetMaintenanceWindowExecutionTaskInvocationResponse
-> Maybe (Sensitive Text)
parameters :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The response's http status code.
    GetMaintenanceWindowExecutionTaskInvocationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetMaintenanceWindowExecutionTaskInvocationResponse
-> GetMaintenanceWindowExecutionTaskInvocationResponse -> Bool
(GetMaintenanceWindowExecutionTaskInvocationResponse
 -> GetMaintenanceWindowExecutionTaskInvocationResponse -> Bool)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> GetMaintenanceWindowExecutionTaskInvocationResponse -> Bool)
-> Eq GetMaintenanceWindowExecutionTaskInvocationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMaintenanceWindowExecutionTaskInvocationResponse
-> GetMaintenanceWindowExecutionTaskInvocationResponse -> Bool
$c/= :: GetMaintenanceWindowExecutionTaskInvocationResponse
-> GetMaintenanceWindowExecutionTaskInvocationResponse -> Bool
== :: GetMaintenanceWindowExecutionTaskInvocationResponse
-> GetMaintenanceWindowExecutionTaskInvocationResponse -> Bool
$c== :: GetMaintenanceWindowExecutionTaskInvocationResponse
-> GetMaintenanceWindowExecutionTaskInvocationResponse -> Bool
Prelude.Eq, Int -> GetMaintenanceWindowExecutionTaskInvocationResponse -> ShowS
[GetMaintenanceWindowExecutionTaskInvocationResponse] -> ShowS
GetMaintenanceWindowExecutionTaskInvocationResponse -> String
(Int
 -> GetMaintenanceWindowExecutionTaskInvocationResponse -> ShowS)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse -> String)
-> ([GetMaintenanceWindowExecutionTaskInvocationResponse] -> ShowS)
-> Show GetMaintenanceWindowExecutionTaskInvocationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMaintenanceWindowExecutionTaskInvocationResponse] -> ShowS
$cshowList :: [GetMaintenanceWindowExecutionTaskInvocationResponse] -> ShowS
show :: GetMaintenanceWindowExecutionTaskInvocationResponse -> String
$cshow :: GetMaintenanceWindowExecutionTaskInvocationResponse -> String
showsPrec :: Int -> GetMaintenanceWindowExecutionTaskInvocationResponse -> ShowS
$cshowsPrec :: Int -> GetMaintenanceWindowExecutionTaskInvocationResponse -> ShowS
Prelude.Show, (forall x.
 GetMaintenanceWindowExecutionTaskInvocationResponse
 -> Rep GetMaintenanceWindowExecutionTaskInvocationResponse x)
-> (forall x.
    Rep GetMaintenanceWindowExecutionTaskInvocationResponse x
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Generic GetMaintenanceWindowExecutionTaskInvocationResponse
forall x.
Rep GetMaintenanceWindowExecutionTaskInvocationResponse x
-> GetMaintenanceWindowExecutionTaskInvocationResponse
forall x.
GetMaintenanceWindowExecutionTaskInvocationResponse
-> Rep GetMaintenanceWindowExecutionTaskInvocationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetMaintenanceWindowExecutionTaskInvocationResponse x
-> GetMaintenanceWindowExecutionTaskInvocationResponse
$cfrom :: forall x.
GetMaintenanceWindowExecutionTaskInvocationResponse
-> Rep GetMaintenanceWindowExecutionTaskInvocationResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetMaintenanceWindowExecutionTaskInvocationResponse' 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', 'getMaintenanceWindowExecutionTaskInvocationResponse_status' - The task status for an invocation.
--
-- 'executionId', 'getMaintenanceWindowExecutionTaskInvocationResponse_executionId' - The execution ID.
--
-- 'taskExecutionId', 'getMaintenanceWindowExecutionTaskInvocationResponse_taskExecutionId' - The task execution ID.
--
-- 'startTime', 'getMaintenanceWindowExecutionTaskInvocationResponse_startTime' - The time that the task started running on the target.
--
-- 'invocationId', 'getMaintenanceWindowExecutionTaskInvocationResponse_invocationId' - The invocation ID.
--
-- 'ownerInformation', 'getMaintenanceWindowExecutionTaskInvocationResponse_ownerInformation' - User-provided value to be included in any Amazon CloudWatch Events or
-- Amazon EventBridge events raised while running tasks for these targets
-- in this maintenance window.
--
-- 'taskType', 'getMaintenanceWindowExecutionTaskInvocationResponse_taskType' - Retrieves the task type for a maintenance window.
--
-- 'windowTargetId', 'getMaintenanceWindowExecutionTaskInvocationResponse_windowTargetId' - The maintenance window target ID.
--
-- 'windowExecutionId', 'getMaintenanceWindowExecutionTaskInvocationResponse_windowExecutionId' - The maintenance window execution ID.
--
-- 'statusDetails', 'getMaintenanceWindowExecutionTaskInvocationResponse_statusDetails' - The details explaining the status. Details are only available for
-- certain status values.
--
-- 'endTime', 'getMaintenanceWindowExecutionTaskInvocationResponse_endTime' - The time that the task finished running on the target.
--
-- 'parameters', 'getMaintenanceWindowExecutionTaskInvocationResponse_parameters' - The parameters used at the time that the task ran.
--
-- 'httpStatus', 'getMaintenanceWindowExecutionTaskInvocationResponse_httpStatus' - The response's http status code.
newGetMaintenanceWindowExecutionTaskInvocationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetMaintenanceWindowExecutionTaskInvocationResponse
newGetMaintenanceWindowExecutionTaskInvocationResponse :: Int -> GetMaintenanceWindowExecutionTaskInvocationResponse
newGetMaintenanceWindowExecutionTaskInvocationResponse
  Int
pHttpStatus_ =
    GetMaintenanceWindowExecutionTaskInvocationResponse' :: 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)
-> Int
-> GetMaintenanceWindowExecutionTaskInvocationResponse
GetMaintenanceWindowExecutionTaskInvocationResponse'
      { $sel:status:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe MaintenanceWindowExecutionStatus
status =
          Maybe MaintenanceWindowExecutionStatus
forall a. Maybe a
Prelude.Nothing,
        $sel:executionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
executionId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:taskExecutionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
taskExecutionId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:startTime:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe POSIX
startTime =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:invocationId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
invocationId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:ownerInformation:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe (Sensitive Text)
ownerInformation =
          Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:taskType:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe MaintenanceWindowTaskType
taskType =
          Maybe MaintenanceWindowTaskType
forall a. Maybe a
Prelude.Nothing,
        $sel:windowTargetId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
windowTargetId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:windowExecutionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
windowExecutionId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:statusDetails:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
statusDetails =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:endTime:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe POSIX
endTime =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:parameters:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe (Sensitive Text)
parameters =
          Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | The task status for an invocation.
getMaintenanceWindowExecutionTaskInvocationResponse_status :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe MaintenanceWindowExecutionStatus)
getMaintenanceWindowExecutionTaskInvocationResponse_status :: (Maybe MaintenanceWindowExecutionStatus
 -> f (Maybe MaintenanceWindowExecutionStatus))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_status = (GetMaintenanceWindowExecutionTaskInvocationResponse
 -> Maybe MaintenanceWindowExecutionStatus)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe MaintenanceWindowExecutionStatus
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe MaintenanceWindowExecutionStatus)
     (Maybe MaintenanceWindowExecutionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe MaintenanceWindowExecutionStatus
status :: Maybe MaintenanceWindowExecutionStatus
$sel:status:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse
-> Maybe MaintenanceWindowExecutionStatus
status} -> Maybe MaintenanceWindowExecutionStatus
status) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe MaintenanceWindowExecutionStatus
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:status:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe MaintenanceWindowExecutionStatus
status = Maybe MaintenanceWindowExecutionStatus
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

-- | The execution ID.
getMaintenanceWindowExecutionTaskInvocationResponse_executionId :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionTaskInvocationResponse_executionId :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_executionId = (GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe Text
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe Text
executionId :: Maybe Text
$sel:executionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
executionId} -> Maybe Text
executionId) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe Text
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:executionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
executionId = Maybe Text
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

-- | The task execution ID.
getMaintenanceWindowExecutionTaskInvocationResponse_taskExecutionId :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionTaskInvocationResponse_taskExecutionId :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_taskExecutionId = (GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe Text
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe Text
taskExecutionId :: Maybe Text
$sel:taskExecutionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
taskExecutionId} -> Maybe Text
taskExecutionId) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe Text
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:taskExecutionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
taskExecutionId = Maybe Text
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

-- | The time that the task started running on the target.
getMaintenanceWindowExecutionTaskInvocationResponse_startTime :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.UTCTime)
getMaintenanceWindowExecutionTaskInvocationResponse_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_startTime = (GetMaintenanceWindowExecutionTaskInvocationResponse
 -> Maybe POSIX)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe POSIX
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe POSIX
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:startTime:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe POSIX
startTime = Maybe POSIX
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetMaintenanceWindowExecutionTaskInvocationResponse
 -> f GetMaintenanceWindowExecutionTaskInvocationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
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 invocation ID.
getMaintenanceWindowExecutionTaskInvocationResponse_invocationId :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionTaskInvocationResponse_invocationId :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_invocationId = (GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe Text
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe Text
invocationId :: Maybe Text
$sel:invocationId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
invocationId} -> Maybe Text
invocationId) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe Text
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:invocationId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
invocationId = Maybe Text
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

-- | User-provided value to be included in any Amazon CloudWatch Events or
-- Amazon EventBridge events raised while running tasks for these targets
-- in this maintenance window.
getMaintenanceWindowExecutionTaskInvocationResponse_ownerInformation :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionTaskInvocationResponse_ownerInformation :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_ownerInformation = (GetMaintenanceWindowExecutionTaskInvocationResponse
 -> Maybe (Sensitive Text))
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe (Sensitive Text)
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe (Sensitive Text)
ownerInformation :: Maybe (Sensitive Text)
$sel:ownerInformation:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse
-> Maybe (Sensitive Text)
ownerInformation} -> Maybe (Sensitive Text)
ownerInformation) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe (Sensitive Text)
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:ownerInformation:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe (Sensitive Text)
ownerInformation = Maybe (Sensitive Text)
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> GetMaintenanceWindowExecutionTaskInvocationResponse
 -> f GetMaintenanceWindowExecutionTaskInvocationResponse)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
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

-- | Retrieves the task type for a maintenance window.
getMaintenanceWindowExecutionTaskInvocationResponse_taskType :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe MaintenanceWindowTaskType)
getMaintenanceWindowExecutionTaskInvocationResponse_taskType :: (Maybe MaintenanceWindowTaskType
 -> f (Maybe MaintenanceWindowTaskType))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_taskType = (GetMaintenanceWindowExecutionTaskInvocationResponse
 -> Maybe MaintenanceWindowTaskType)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe MaintenanceWindowTaskType
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe MaintenanceWindowTaskType)
     (Maybe MaintenanceWindowTaskType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe MaintenanceWindowTaskType
taskType :: Maybe MaintenanceWindowTaskType
$sel:taskType:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse
-> Maybe MaintenanceWindowTaskType
taskType} -> Maybe MaintenanceWindowTaskType
taskType) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe MaintenanceWindowTaskType
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:taskType:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe MaintenanceWindowTaskType
taskType = Maybe MaintenanceWindowTaskType
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

-- | The maintenance window target ID.
getMaintenanceWindowExecutionTaskInvocationResponse_windowTargetId :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionTaskInvocationResponse_windowTargetId :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_windowTargetId = (GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe Text
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe Text
windowTargetId :: Maybe Text
$sel:windowTargetId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
windowTargetId} -> Maybe Text
windowTargetId) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe Text
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:windowTargetId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
windowTargetId = Maybe Text
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

-- | The maintenance window execution ID.
getMaintenanceWindowExecutionTaskInvocationResponse_windowExecutionId :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionTaskInvocationResponse_windowExecutionId :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_windowExecutionId = (GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe Text
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe Text
windowExecutionId :: Maybe Text
$sel:windowExecutionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
windowExecutionId} -> Maybe Text
windowExecutionId) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe Text
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:windowExecutionId:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
windowExecutionId = Maybe Text
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

-- | The details explaining the status. Details are only available for
-- certain status values.
getMaintenanceWindowExecutionTaskInvocationResponse_statusDetails :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionTaskInvocationResponse_statusDetails :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_statusDetails = (GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe Text
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe Text
statusDetails :: Maybe Text
$sel:statusDetails:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe Text
statusDetails} -> Maybe Text
statusDetails) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe Text
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:statusDetails:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe Text
statusDetails = Maybe Text
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

-- | The time that the task finished running on the target.
getMaintenanceWindowExecutionTaskInvocationResponse_endTime :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.UTCTime)
getMaintenanceWindowExecutionTaskInvocationResponse_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_endTime = (GetMaintenanceWindowExecutionTaskInvocationResponse
 -> Maybe POSIX)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe POSIX
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe POSIX
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:endTime:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe POSIX
endTime = Maybe POSIX
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetMaintenanceWindowExecutionTaskInvocationResponse
 -> f GetMaintenanceWindowExecutionTaskInvocationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
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 used at the time that the task ran.
getMaintenanceWindowExecutionTaskInvocationResponse_parameters :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionTaskInvocationResponse_parameters :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_parameters = (GetMaintenanceWindowExecutionTaskInvocationResponse
 -> Maybe (Sensitive Text))
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Maybe (Sensitive Text)
    -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Maybe (Sensitive Text)
parameters :: Maybe (Sensitive Text)
$sel:parameters:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse
-> Maybe (Sensitive Text)
parameters} -> Maybe (Sensitive Text)
parameters) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Maybe (Sensitive Text)
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:parameters:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Maybe (Sensitive Text)
parameters = Maybe (Sensitive Text)
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> GetMaintenanceWindowExecutionTaskInvocationResponse
 -> f GetMaintenanceWindowExecutionTaskInvocationResponse)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
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 response's http status code.
getMaintenanceWindowExecutionTaskInvocationResponse_httpStatus :: Lens.Lens' GetMaintenanceWindowExecutionTaskInvocationResponse Prelude.Int
getMaintenanceWindowExecutionTaskInvocationResponse_httpStatus :: (Int -> f Int)
-> GetMaintenanceWindowExecutionTaskInvocationResponse
-> f GetMaintenanceWindowExecutionTaskInvocationResponse
getMaintenanceWindowExecutionTaskInvocationResponse_httpStatus = (GetMaintenanceWindowExecutionTaskInvocationResponse -> Int)
-> (GetMaintenanceWindowExecutionTaskInvocationResponse
    -> Int -> GetMaintenanceWindowExecutionTaskInvocationResponse)
-> Lens
     GetMaintenanceWindowExecutionTaskInvocationResponse
     GetMaintenanceWindowExecutionTaskInvocationResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionTaskInvocationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetMaintenanceWindowExecutionTaskInvocationResponse' :: GetMaintenanceWindowExecutionTaskInvocationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetMaintenanceWindowExecutionTaskInvocationResponse
s@GetMaintenanceWindowExecutionTaskInvocationResponse' {} Int
a -> GetMaintenanceWindowExecutionTaskInvocationResponse
s {$sel:httpStatus:GetMaintenanceWindowExecutionTaskInvocationResponse' :: Int
httpStatus = Int
a} :: GetMaintenanceWindowExecutionTaskInvocationResponse)

instance
  Prelude.NFData
    GetMaintenanceWindowExecutionTaskInvocationResponse