{-# 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.DescribeMaintenanceWindowExecutionTaskInvocations
-- 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 the individual task executions (one per target) for a
-- particular task run as part of a maintenance window execution.
--
-- This operation returns paginated results.
module Amazonka.SSM.DescribeMaintenanceWindowExecutionTaskInvocations
  ( -- * Creating a Request
    DescribeMaintenanceWindowExecutionTaskInvocations (..),
    newDescribeMaintenanceWindowExecutionTaskInvocations,

    -- * Request Lenses
    describeMaintenanceWindowExecutionTaskInvocations_filters,
    describeMaintenanceWindowExecutionTaskInvocations_nextToken,
    describeMaintenanceWindowExecutionTaskInvocations_maxResults,
    describeMaintenanceWindowExecutionTaskInvocations_windowExecutionId,
    describeMaintenanceWindowExecutionTaskInvocations_taskId,

    -- * Destructuring the Response
    DescribeMaintenanceWindowExecutionTaskInvocationsResponse (..),
    newDescribeMaintenanceWindowExecutionTaskInvocationsResponse,

    -- * Response Lenses
    describeMaintenanceWindowExecutionTaskInvocationsResponse_windowExecutionTaskInvocationIdentities,
    describeMaintenanceWindowExecutionTaskInvocationsResponse_nextToken,
    describeMaintenanceWindowExecutionTaskInvocationsResponse_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:/ 'newDescribeMaintenanceWindowExecutionTaskInvocations' smart constructor.
data DescribeMaintenanceWindowExecutionTaskInvocations = DescribeMaintenanceWindowExecutionTaskInvocations'
  { -- | Optional filters used to scope down the returned task invocations. The
    -- supported filter key is @STATUS@ with the corresponding values
    -- @PENDING@, @IN_PROGRESS@, @SUCCESS@, @FAILED@, @TIMED_OUT@,
    -- @CANCELLING@, and @CANCELLED@.
    DescribeMaintenanceWindowExecutionTaskInvocations
-> Maybe [MaintenanceWindowFilter]
filters :: Prelude.Maybe [MaintenanceWindowFilter],
    -- | The token for the next set of items to return. (You received this token
    -- from a previous call.)
    DescribeMaintenanceWindowExecutionTaskInvocations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of items to return for this call. The call also
    -- returns a token that you can specify in a subsequent call to get the
    -- next set of results.
    DescribeMaintenanceWindowExecutionTaskInvocations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the maintenance window execution the task is part of.
    DescribeMaintenanceWindowExecutionTaskInvocations -> Text
windowExecutionId :: Prelude.Text,
    -- | The ID of the specific task in the maintenance window task that should
    -- be retrieved.
    DescribeMaintenanceWindowExecutionTaskInvocations -> Text
taskId :: Prelude.Text
  }
  deriving (DescribeMaintenanceWindowExecutionTaskInvocations
-> DescribeMaintenanceWindowExecutionTaskInvocations -> Bool
(DescribeMaintenanceWindowExecutionTaskInvocations
 -> DescribeMaintenanceWindowExecutionTaskInvocations -> Bool)
-> (DescribeMaintenanceWindowExecutionTaskInvocations
    -> DescribeMaintenanceWindowExecutionTaskInvocations -> Bool)
-> Eq DescribeMaintenanceWindowExecutionTaskInvocations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMaintenanceWindowExecutionTaskInvocations
-> DescribeMaintenanceWindowExecutionTaskInvocations -> Bool
$c/= :: DescribeMaintenanceWindowExecutionTaskInvocations
-> DescribeMaintenanceWindowExecutionTaskInvocations -> Bool
== :: DescribeMaintenanceWindowExecutionTaskInvocations
-> DescribeMaintenanceWindowExecutionTaskInvocations -> Bool
$c== :: DescribeMaintenanceWindowExecutionTaskInvocations
-> DescribeMaintenanceWindowExecutionTaskInvocations -> Bool
Prelude.Eq, ReadPrec [DescribeMaintenanceWindowExecutionTaskInvocations]
ReadPrec DescribeMaintenanceWindowExecutionTaskInvocations
Int -> ReadS DescribeMaintenanceWindowExecutionTaskInvocations
ReadS [DescribeMaintenanceWindowExecutionTaskInvocations]
(Int -> ReadS DescribeMaintenanceWindowExecutionTaskInvocations)
-> ReadS [DescribeMaintenanceWindowExecutionTaskInvocations]
-> ReadPrec DescribeMaintenanceWindowExecutionTaskInvocations
-> ReadPrec [DescribeMaintenanceWindowExecutionTaskInvocations]
-> Read DescribeMaintenanceWindowExecutionTaskInvocations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMaintenanceWindowExecutionTaskInvocations]
$creadListPrec :: ReadPrec [DescribeMaintenanceWindowExecutionTaskInvocations]
readPrec :: ReadPrec DescribeMaintenanceWindowExecutionTaskInvocations
$creadPrec :: ReadPrec DescribeMaintenanceWindowExecutionTaskInvocations
readList :: ReadS [DescribeMaintenanceWindowExecutionTaskInvocations]
$creadList :: ReadS [DescribeMaintenanceWindowExecutionTaskInvocations]
readsPrec :: Int -> ReadS DescribeMaintenanceWindowExecutionTaskInvocations
$creadsPrec :: Int -> ReadS DescribeMaintenanceWindowExecutionTaskInvocations
Prelude.Read, Int -> DescribeMaintenanceWindowExecutionTaskInvocations -> ShowS
[DescribeMaintenanceWindowExecutionTaskInvocations] -> ShowS
DescribeMaintenanceWindowExecutionTaskInvocations -> String
(Int -> DescribeMaintenanceWindowExecutionTaskInvocations -> ShowS)
-> (DescribeMaintenanceWindowExecutionTaskInvocations -> String)
-> ([DescribeMaintenanceWindowExecutionTaskInvocations] -> ShowS)
-> Show DescribeMaintenanceWindowExecutionTaskInvocations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMaintenanceWindowExecutionTaskInvocations] -> ShowS
$cshowList :: [DescribeMaintenanceWindowExecutionTaskInvocations] -> ShowS
show :: DescribeMaintenanceWindowExecutionTaskInvocations -> String
$cshow :: DescribeMaintenanceWindowExecutionTaskInvocations -> String
showsPrec :: Int -> DescribeMaintenanceWindowExecutionTaskInvocations -> ShowS
$cshowsPrec :: Int -> DescribeMaintenanceWindowExecutionTaskInvocations -> ShowS
Prelude.Show, (forall x.
 DescribeMaintenanceWindowExecutionTaskInvocations
 -> Rep DescribeMaintenanceWindowExecutionTaskInvocations x)
-> (forall x.
    Rep DescribeMaintenanceWindowExecutionTaskInvocations x
    -> DescribeMaintenanceWindowExecutionTaskInvocations)
-> Generic DescribeMaintenanceWindowExecutionTaskInvocations
forall x.
Rep DescribeMaintenanceWindowExecutionTaskInvocations x
-> DescribeMaintenanceWindowExecutionTaskInvocations
forall x.
DescribeMaintenanceWindowExecutionTaskInvocations
-> Rep DescribeMaintenanceWindowExecutionTaskInvocations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeMaintenanceWindowExecutionTaskInvocations x
-> DescribeMaintenanceWindowExecutionTaskInvocations
$cfrom :: forall x.
DescribeMaintenanceWindowExecutionTaskInvocations
-> Rep DescribeMaintenanceWindowExecutionTaskInvocations x
Prelude.Generic)

-- |
-- Create a value of 'DescribeMaintenanceWindowExecutionTaskInvocations' 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:
--
-- 'filters', 'describeMaintenanceWindowExecutionTaskInvocations_filters' - Optional filters used to scope down the returned task invocations. The
-- supported filter key is @STATUS@ with the corresponding values
-- @PENDING@, @IN_PROGRESS@, @SUCCESS@, @FAILED@, @TIMED_OUT@,
-- @CANCELLING@, and @CANCELLED@.
--
-- 'nextToken', 'describeMaintenanceWindowExecutionTaskInvocations_nextToken' - The token for the next set of items to return. (You received this token
-- from a previous call.)
--
-- 'maxResults', 'describeMaintenanceWindowExecutionTaskInvocations_maxResults' - The maximum number of items to return for this call. The call also
-- returns a token that you can specify in a subsequent call to get the
-- next set of results.
--
-- 'windowExecutionId', 'describeMaintenanceWindowExecutionTaskInvocations_windowExecutionId' - The ID of the maintenance window execution the task is part of.
--
-- 'taskId', 'describeMaintenanceWindowExecutionTaskInvocations_taskId' - The ID of the specific task in the maintenance window task that should
-- be retrieved.
newDescribeMaintenanceWindowExecutionTaskInvocations ::
  -- | 'windowExecutionId'
  Prelude.Text ->
  -- | 'taskId'
  Prelude.Text ->
  DescribeMaintenanceWindowExecutionTaskInvocations
newDescribeMaintenanceWindowExecutionTaskInvocations :: Text -> Text -> DescribeMaintenanceWindowExecutionTaskInvocations
newDescribeMaintenanceWindowExecutionTaskInvocations
  Text
pWindowExecutionId_
  Text
pTaskId_ =
    DescribeMaintenanceWindowExecutionTaskInvocations' :: Maybe [MaintenanceWindowFilter]
-> Maybe Text
-> Maybe Natural
-> Text
-> Text
-> DescribeMaintenanceWindowExecutionTaskInvocations
DescribeMaintenanceWindowExecutionTaskInvocations'
      { $sel:filters:DescribeMaintenanceWindowExecutionTaskInvocations' :: Maybe [MaintenanceWindowFilter]
filters =
          Maybe [MaintenanceWindowFilter]
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:DescribeMaintenanceWindowExecutionTaskInvocations' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:DescribeMaintenanceWindowExecutionTaskInvocations' :: Maybe Natural
maxResults =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:windowExecutionId:DescribeMaintenanceWindowExecutionTaskInvocations' :: Text
windowExecutionId =
          Text
pWindowExecutionId_,
        $sel:taskId:DescribeMaintenanceWindowExecutionTaskInvocations' :: Text
taskId = Text
pTaskId_
      }

-- | Optional filters used to scope down the returned task invocations. The
-- supported filter key is @STATUS@ with the corresponding values
-- @PENDING@, @IN_PROGRESS@, @SUCCESS@, @FAILED@, @TIMED_OUT@,
-- @CANCELLING@, and @CANCELLED@.
describeMaintenanceWindowExecutionTaskInvocations_filters :: Lens.Lens' DescribeMaintenanceWindowExecutionTaskInvocations (Prelude.Maybe [MaintenanceWindowFilter])
describeMaintenanceWindowExecutionTaskInvocations_filters :: (Maybe [MaintenanceWindowFilter]
 -> f (Maybe [MaintenanceWindowFilter]))
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> f DescribeMaintenanceWindowExecutionTaskInvocations
describeMaintenanceWindowExecutionTaskInvocations_filters = (DescribeMaintenanceWindowExecutionTaskInvocations
 -> Maybe [MaintenanceWindowFilter])
-> (DescribeMaintenanceWindowExecutionTaskInvocations
    -> Maybe [MaintenanceWindowFilter]
    -> DescribeMaintenanceWindowExecutionTaskInvocations)
-> Lens
     DescribeMaintenanceWindowExecutionTaskInvocations
     DescribeMaintenanceWindowExecutionTaskInvocations
     (Maybe [MaintenanceWindowFilter])
     (Maybe [MaintenanceWindowFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTaskInvocations' {Maybe [MaintenanceWindowFilter]
filters :: Maybe [MaintenanceWindowFilter]
$sel:filters:DescribeMaintenanceWindowExecutionTaskInvocations' :: DescribeMaintenanceWindowExecutionTaskInvocations
-> Maybe [MaintenanceWindowFilter]
filters} -> Maybe [MaintenanceWindowFilter]
filters) (\s :: DescribeMaintenanceWindowExecutionTaskInvocations
s@DescribeMaintenanceWindowExecutionTaskInvocations' {} Maybe [MaintenanceWindowFilter]
a -> DescribeMaintenanceWindowExecutionTaskInvocations
s {$sel:filters:DescribeMaintenanceWindowExecutionTaskInvocations' :: Maybe [MaintenanceWindowFilter]
filters = Maybe [MaintenanceWindowFilter]
a} :: DescribeMaintenanceWindowExecutionTaskInvocations) ((Maybe [MaintenanceWindowFilter]
  -> f (Maybe [MaintenanceWindowFilter]))
 -> DescribeMaintenanceWindowExecutionTaskInvocations
 -> f DescribeMaintenanceWindowExecutionTaskInvocations)
-> ((Maybe [MaintenanceWindowFilter]
     -> f (Maybe [MaintenanceWindowFilter]))
    -> Maybe [MaintenanceWindowFilter]
    -> f (Maybe [MaintenanceWindowFilter]))
-> (Maybe [MaintenanceWindowFilter]
    -> f (Maybe [MaintenanceWindowFilter]))
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> f DescribeMaintenanceWindowExecutionTaskInvocations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [MaintenanceWindowFilter]
  [MaintenanceWindowFilter]
  [MaintenanceWindowFilter]
  [MaintenanceWindowFilter]
-> Iso
     (Maybe [MaintenanceWindowFilter])
     (Maybe [MaintenanceWindowFilter])
     (Maybe [MaintenanceWindowFilter])
     (Maybe [MaintenanceWindowFilter])
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
  [MaintenanceWindowFilter]
  [MaintenanceWindowFilter]
  [MaintenanceWindowFilter]
  [MaintenanceWindowFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token for the next set of items to return. (You received this token
-- from a previous call.)
describeMaintenanceWindowExecutionTaskInvocations_nextToken :: Lens.Lens' DescribeMaintenanceWindowExecutionTaskInvocations (Prelude.Maybe Prelude.Text)
describeMaintenanceWindowExecutionTaskInvocations_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> f DescribeMaintenanceWindowExecutionTaskInvocations
describeMaintenanceWindowExecutionTaskInvocations_nextToken = (DescribeMaintenanceWindowExecutionTaskInvocations -> Maybe Text)
-> (DescribeMaintenanceWindowExecutionTaskInvocations
    -> Maybe Text -> DescribeMaintenanceWindowExecutionTaskInvocations)
-> Lens
     DescribeMaintenanceWindowExecutionTaskInvocations
     DescribeMaintenanceWindowExecutionTaskInvocations
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTaskInvocations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeMaintenanceWindowExecutionTaskInvocations' :: DescribeMaintenanceWindowExecutionTaskInvocations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeMaintenanceWindowExecutionTaskInvocations
s@DescribeMaintenanceWindowExecutionTaskInvocations' {} Maybe Text
a -> DescribeMaintenanceWindowExecutionTaskInvocations
s {$sel:nextToken:DescribeMaintenanceWindowExecutionTaskInvocations' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeMaintenanceWindowExecutionTaskInvocations)

-- | The maximum number of items to return for this call. The call also
-- returns a token that you can specify in a subsequent call to get the
-- next set of results.
describeMaintenanceWindowExecutionTaskInvocations_maxResults :: Lens.Lens' DescribeMaintenanceWindowExecutionTaskInvocations (Prelude.Maybe Prelude.Natural)
describeMaintenanceWindowExecutionTaskInvocations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> f DescribeMaintenanceWindowExecutionTaskInvocations
describeMaintenanceWindowExecutionTaskInvocations_maxResults = (DescribeMaintenanceWindowExecutionTaskInvocations
 -> Maybe Natural)
-> (DescribeMaintenanceWindowExecutionTaskInvocations
    -> Maybe Natural
    -> DescribeMaintenanceWindowExecutionTaskInvocations)
-> Lens
     DescribeMaintenanceWindowExecutionTaskInvocations
     DescribeMaintenanceWindowExecutionTaskInvocations
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTaskInvocations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeMaintenanceWindowExecutionTaskInvocations' :: DescribeMaintenanceWindowExecutionTaskInvocations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeMaintenanceWindowExecutionTaskInvocations
s@DescribeMaintenanceWindowExecutionTaskInvocations' {} Maybe Natural
a -> DescribeMaintenanceWindowExecutionTaskInvocations
s {$sel:maxResults:DescribeMaintenanceWindowExecutionTaskInvocations' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeMaintenanceWindowExecutionTaskInvocations)

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

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

instance
  Core.AWSPager
    DescribeMaintenanceWindowExecutionTaskInvocations
  where
  page :: DescribeMaintenanceWindowExecutionTaskInvocations
-> AWSResponse DescribeMaintenanceWindowExecutionTaskInvocations
-> Maybe DescribeMaintenanceWindowExecutionTaskInvocations
page DescribeMaintenanceWindowExecutionTaskInvocations
rq AWSResponse DescribeMaintenanceWindowExecutionTaskInvocations
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeMaintenanceWindowExecutionTaskInvocations
DescribeMaintenanceWindowExecutionTaskInvocationsResponse
rs
            DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Getting
     (First Text)
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Const
     (First Text)
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
Lens'
  DescribeMaintenanceWindowExecutionTaskInvocationsResponse
  (Maybe Text)
describeMaintenanceWindowExecutionTaskInvocationsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> Const
      (First Text)
      DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text)
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeMaintenanceWindowExecutionTaskInvocations
forall a. Maybe a
Prelude.Nothing
    | Maybe [MaintenanceWindowExecutionTaskInvocationIdentity] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeMaintenanceWindowExecutionTaskInvocations
DescribeMaintenanceWindowExecutionTaskInvocationsResponse
rs
            DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Getting
     (First [MaintenanceWindowExecutionTaskInvocationIdentity])
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     [MaintenanceWindowExecutionTaskInvocationIdentity]
-> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
 -> Const
      (First [MaintenanceWindowExecutionTaskInvocationIdentity])
      (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Const
     (First [MaintenanceWindowExecutionTaskInvocationIdentity])
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
Lens'
  DescribeMaintenanceWindowExecutionTaskInvocationsResponse
  (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
describeMaintenanceWindowExecutionTaskInvocationsResponse_windowExecutionTaskInvocationIdentities
              ((Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
  -> Const
       (First [MaintenanceWindowExecutionTaskInvocationIdentity])
       (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
 -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> Const
      (First [MaintenanceWindowExecutionTaskInvocationIdentity])
      DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> (([MaintenanceWindowExecutionTaskInvocationIdentity]
     -> Const
          (First [MaintenanceWindowExecutionTaskInvocationIdentity])
          [MaintenanceWindowExecutionTaskInvocationIdentity])
    -> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
    -> Const
         (First [MaintenanceWindowExecutionTaskInvocationIdentity])
         (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
-> Getting
     (First [MaintenanceWindowExecutionTaskInvocationIdentity])
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     [MaintenanceWindowExecutionTaskInvocationIdentity]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([MaintenanceWindowExecutionTaskInvocationIdentity]
 -> Const
      (First [MaintenanceWindowExecutionTaskInvocationIdentity])
      [MaintenanceWindowExecutionTaskInvocationIdentity])
-> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
-> Const
     (First [MaintenanceWindowExecutionTaskInvocationIdentity])
     (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeMaintenanceWindowExecutionTaskInvocations
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      DescribeMaintenanceWindowExecutionTaskInvocations
-> Maybe DescribeMaintenanceWindowExecutionTaskInvocations
forall a. a -> Maybe a
Prelude.Just (DescribeMaintenanceWindowExecutionTaskInvocations
 -> Maybe DescribeMaintenanceWindowExecutionTaskInvocations)
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> Maybe DescribeMaintenanceWindowExecutionTaskInvocations
forall a b. (a -> b) -> a -> b
Prelude.$
        DescribeMaintenanceWindowExecutionTaskInvocations
rq
          DescribeMaintenanceWindowExecutionTaskInvocations
-> (DescribeMaintenanceWindowExecutionTaskInvocations
    -> DescribeMaintenanceWindowExecutionTaskInvocations)
-> DescribeMaintenanceWindowExecutionTaskInvocations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> Identity DescribeMaintenanceWindowExecutionTaskInvocations
Lens
  DescribeMaintenanceWindowExecutionTaskInvocations
  DescribeMaintenanceWindowExecutionTaskInvocations
  (Maybe Text)
  (Maybe Text)
describeMaintenanceWindowExecutionTaskInvocations_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> DescribeMaintenanceWindowExecutionTaskInvocations
 -> Identity DescribeMaintenanceWindowExecutionTaskInvocations)
-> Maybe Text
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> DescribeMaintenanceWindowExecutionTaskInvocations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeMaintenanceWindowExecutionTaskInvocations
DescribeMaintenanceWindowExecutionTaskInvocationsResponse
rs
            DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Getting
     (First Text)
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Const
     (First Text)
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
Lens'
  DescribeMaintenanceWindowExecutionTaskInvocationsResponse
  (Maybe Text)
describeMaintenanceWindowExecutionTaskInvocationsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> Const
      (First Text)
      DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text)
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    DescribeMaintenanceWindowExecutionTaskInvocations
  where
  type
    AWSResponse
      DescribeMaintenanceWindowExecutionTaskInvocations =
      DescribeMaintenanceWindowExecutionTaskInvocationsResponse
  request :: DescribeMaintenanceWindowExecutionTaskInvocations
-> Request DescribeMaintenanceWindowExecutionTaskInvocations
request = Service
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> Request DescribeMaintenanceWindowExecutionTaskInvocations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeMaintenanceWindowExecutionTaskInvocations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeMaintenanceWindowExecutionTaskInvocations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String
      (AWSResponse DescribeMaintenanceWindowExecutionTaskInvocations))
-> Logger
-> Service
-> Proxy DescribeMaintenanceWindowExecutionTaskInvocations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeMaintenanceWindowExecutionTaskInvocations)))
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 [MaintenanceWindowExecutionTaskInvocationIdentity]
-> Maybe Text
-> Int
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
DescribeMaintenanceWindowExecutionTaskInvocationsResponse'
            (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
 -> Maybe Text
 -> Int
 -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> Either
     String (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
-> Either
     String
     (Maybe Text
      -> Int
      -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either
     String
     (Maybe (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"WindowExecutionTaskInvocationIdentities"
                            Either
  String
  (Maybe (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
-> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
-> Either
     String (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
forall a. Monoid a => a
Prelude.mempty
                        )
              Either
  String
  (Maybe Text
   -> Int
   -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Int -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
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
"NextToken")
              Either
  String
  (Int -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> Either String Int
-> Either
     String DescribeMaintenanceWindowExecutionTaskInvocationsResponse
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
    DescribeMaintenanceWindowExecutionTaskInvocations

instance
  Prelude.NFData
    DescribeMaintenanceWindowExecutionTaskInvocations

instance
  Core.ToHeaders
    DescribeMaintenanceWindowExecutionTaskInvocations
  where
  toHeaders :: DescribeMaintenanceWindowExecutionTaskInvocations
-> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeMaintenanceWindowExecutionTaskInvocations
-> 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.DescribeMaintenanceWindowExecutionTaskInvocations" ::
                          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
    DescribeMaintenanceWindowExecutionTaskInvocations
  where
  toJSON :: DescribeMaintenanceWindowExecutionTaskInvocations -> Value
toJSON
    DescribeMaintenanceWindowExecutionTaskInvocations' {Maybe Natural
Maybe [MaintenanceWindowFilter]
Maybe Text
Text
taskId :: Text
windowExecutionId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe [MaintenanceWindowFilter]
$sel:taskId:DescribeMaintenanceWindowExecutionTaskInvocations' :: DescribeMaintenanceWindowExecutionTaskInvocations -> Text
$sel:windowExecutionId:DescribeMaintenanceWindowExecutionTaskInvocations' :: DescribeMaintenanceWindowExecutionTaskInvocations -> Text
$sel:maxResults:DescribeMaintenanceWindowExecutionTaskInvocations' :: DescribeMaintenanceWindowExecutionTaskInvocations -> Maybe Natural
$sel:nextToken:DescribeMaintenanceWindowExecutionTaskInvocations' :: DescribeMaintenanceWindowExecutionTaskInvocations -> Maybe Text
$sel:filters:DescribeMaintenanceWindowExecutionTaskInvocations' :: DescribeMaintenanceWindowExecutionTaskInvocations
-> Maybe [MaintenanceWindowFilter]
..} =
      [Pair] -> Value
Core.object
        ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ (Text
"Filters" Text -> [MaintenanceWindowFilter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([MaintenanceWindowFilter] -> Pair)
-> Maybe [MaintenanceWindowFilter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MaintenanceWindowFilter]
filters,
              (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
              (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
              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)
            ]
        )

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

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

-- | /See:/ 'newDescribeMaintenanceWindowExecutionTaskInvocationsResponse' smart constructor.
data DescribeMaintenanceWindowExecutionTaskInvocationsResponse = DescribeMaintenanceWindowExecutionTaskInvocationsResponse'
  { -- | Information about the task invocation results per invocation.
    DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
windowExecutionTaskInvocationIdentities :: Prelude.Maybe [MaintenanceWindowExecutionTaskInvocationIdentity],
    -- | The token to use when requesting the next set of items. If there are no
    -- additional items to return, the string is empty.
    DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeMaintenanceWindowExecutionTaskInvocationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Bool
(DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> Bool)
-> (DescribeMaintenanceWindowExecutionTaskInvocationsResponse
    -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
    -> Bool)
-> Eq DescribeMaintenanceWindowExecutionTaskInvocationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Bool
$c/= :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Bool
== :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Bool
$c== :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Bool
Prelude.Eq, Int
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> ShowS
[DescribeMaintenanceWindowExecutionTaskInvocationsResponse]
-> ShowS
DescribeMaintenanceWindowExecutionTaskInvocationsResponse -> String
(Int
 -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> ShowS)
-> (DescribeMaintenanceWindowExecutionTaskInvocationsResponse
    -> String)
-> ([DescribeMaintenanceWindowExecutionTaskInvocationsResponse]
    -> ShowS)
-> Show DescribeMaintenanceWindowExecutionTaskInvocationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMaintenanceWindowExecutionTaskInvocationsResponse]
-> ShowS
$cshowList :: [DescribeMaintenanceWindowExecutionTaskInvocationsResponse]
-> ShowS
show :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse -> String
$cshow :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse -> String
showsPrec :: Int
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> ShowS
$cshowsPrec :: Int
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> ShowS
Prelude.Show, (forall x.
 DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> Rep DescribeMaintenanceWindowExecutionTaskInvocationsResponse x)
-> (forall x.
    Rep DescribeMaintenanceWindowExecutionTaskInvocationsResponse x
    -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> Generic
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
forall x.
Rep DescribeMaintenanceWindowExecutionTaskInvocationsResponse x
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
forall x.
DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Rep DescribeMaintenanceWindowExecutionTaskInvocationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeMaintenanceWindowExecutionTaskInvocationsResponse x
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
$cfrom :: forall x.
DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Rep DescribeMaintenanceWindowExecutionTaskInvocationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeMaintenanceWindowExecutionTaskInvocationsResponse' 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:
--
-- 'windowExecutionTaskInvocationIdentities', 'describeMaintenanceWindowExecutionTaskInvocationsResponse_windowExecutionTaskInvocationIdentities' - Information about the task invocation results per invocation.
--
-- 'nextToken', 'describeMaintenanceWindowExecutionTaskInvocationsResponse_nextToken' - The token to use when requesting the next set of items. If there are no
-- additional items to return, the string is empty.
--
-- 'httpStatus', 'describeMaintenanceWindowExecutionTaskInvocationsResponse_httpStatus' - The response's http status code.
newDescribeMaintenanceWindowExecutionTaskInvocationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeMaintenanceWindowExecutionTaskInvocationsResponse
newDescribeMaintenanceWindowExecutionTaskInvocationsResponse :: Int -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
newDescribeMaintenanceWindowExecutionTaskInvocationsResponse
  Int
pHttpStatus_ =
    DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
-> Maybe Text
-> Int
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
DescribeMaintenanceWindowExecutionTaskInvocationsResponse'
      { $sel:windowExecutionTaskInvocationIdentities:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
windowExecutionTaskInvocationIdentities =
          Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | Information about the task invocation results per invocation.
describeMaintenanceWindowExecutionTaskInvocationsResponse_windowExecutionTaskInvocationIdentities :: Lens.Lens' DescribeMaintenanceWindowExecutionTaskInvocationsResponse (Prelude.Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
describeMaintenanceWindowExecutionTaskInvocationsResponse_windowExecutionTaskInvocationIdentities :: (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
 -> f (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> f DescribeMaintenanceWindowExecutionTaskInvocationsResponse
describeMaintenanceWindowExecutionTaskInvocationsResponse_windowExecutionTaskInvocationIdentities = (DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
-> (DescribeMaintenanceWindowExecutionTaskInvocationsResponse
    -> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
    -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> Lens'
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTaskInvocationsResponse' {Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
windowExecutionTaskInvocationIdentities :: Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
$sel:windowExecutionTaskInvocationIdentities:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
windowExecutionTaskInvocationIdentities} -> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
windowExecutionTaskInvocationIdentities) (\s :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
s@DescribeMaintenanceWindowExecutionTaskInvocationsResponse' {} Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
a -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
s {$sel:windowExecutionTaskInvocationIdentities:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
windowExecutionTaskInvocationIdentities = Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
a} :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse) ((Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
  -> f (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
 -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> f DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> ((Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
     -> f (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
    -> Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
    -> f (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
-> (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]
    -> f (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity]))
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> f DescribeMaintenanceWindowExecutionTaskInvocationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [MaintenanceWindowExecutionTaskInvocationIdentity]
  [MaintenanceWindowExecutionTaskInvocationIdentity]
  [MaintenanceWindowExecutionTaskInvocationIdentity]
  [MaintenanceWindowExecutionTaskInvocationIdentity]
-> Iso
     (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
     (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
     (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
     (Maybe [MaintenanceWindowExecutionTaskInvocationIdentity])
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
  [MaintenanceWindowExecutionTaskInvocationIdentity]
  [MaintenanceWindowExecutionTaskInvocationIdentity]
  [MaintenanceWindowExecutionTaskInvocationIdentity]
  [MaintenanceWindowExecutionTaskInvocationIdentity]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token to use when requesting the next set of items. If there are no
-- additional items to return, the string is empty.
describeMaintenanceWindowExecutionTaskInvocationsResponse_nextToken :: Lens.Lens' DescribeMaintenanceWindowExecutionTaskInvocationsResponse (Prelude.Maybe Prelude.Text)
describeMaintenanceWindowExecutionTaskInvocationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> f DescribeMaintenanceWindowExecutionTaskInvocationsResponse
describeMaintenanceWindowExecutionTaskInvocationsResponse_nextToken = (DescribeMaintenanceWindowExecutionTaskInvocationsResponse
 -> Maybe Text)
-> (DescribeMaintenanceWindowExecutionTaskInvocationsResponse
    -> Maybe Text
    -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> Lens'
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTaskInvocationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
s@DescribeMaintenanceWindowExecutionTaskInvocationsResponse' {} Maybe Text
a -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
s {$sel:nextToken:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse)

-- | The response's http status code.
describeMaintenanceWindowExecutionTaskInvocationsResponse_httpStatus :: Lens.Lens' DescribeMaintenanceWindowExecutionTaskInvocationsResponse Prelude.Int
describeMaintenanceWindowExecutionTaskInvocationsResponse_httpStatus :: (Int -> f Int)
-> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
-> f DescribeMaintenanceWindowExecutionTaskInvocationsResponse
describeMaintenanceWindowExecutionTaskInvocationsResponse_httpStatus = (DescribeMaintenanceWindowExecutionTaskInvocationsResponse -> Int)
-> (DescribeMaintenanceWindowExecutionTaskInvocationsResponse
    -> Int
    -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse)
-> Lens
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     DescribeMaintenanceWindowExecutionTaskInvocationsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTaskInvocationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse
s@DescribeMaintenanceWindowExecutionTaskInvocationsResponse' {} Int
a -> DescribeMaintenanceWindowExecutionTaskInvocationsResponse
s {$sel:httpStatus:DescribeMaintenanceWindowExecutionTaskInvocationsResponse' :: Int
httpStatus = Int
a} :: DescribeMaintenanceWindowExecutionTaskInvocationsResponse)

instance
  Prelude.NFData
    DescribeMaintenanceWindowExecutionTaskInvocationsResponse