{-# 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.DescribeMaintenanceWindowExecutionTasks
-- 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)
--
-- For a given maintenance window execution, lists the tasks that were run.
--
-- This operation returns paginated results.
module Amazonka.SSM.DescribeMaintenanceWindowExecutionTasks
  ( -- * Creating a Request
    DescribeMaintenanceWindowExecutionTasks (..),
    newDescribeMaintenanceWindowExecutionTasks,

    -- * Request Lenses
    describeMaintenanceWindowExecutionTasks_filters,
    describeMaintenanceWindowExecutionTasks_nextToken,
    describeMaintenanceWindowExecutionTasks_maxResults,
    describeMaintenanceWindowExecutionTasks_windowExecutionId,

    -- * Destructuring the Response
    DescribeMaintenanceWindowExecutionTasksResponse (..),
    newDescribeMaintenanceWindowExecutionTasksResponse,

    -- * Response Lenses
    describeMaintenanceWindowExecutionTasksResponse_nextToken,
    describeMaintenanceWindowExecutionTasksResponse_windowExecutionTaskIdentities,
    describeMaintenanceWindowExecutionTasksResponse_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:/ 'newDescribeMaintenanceWindowExecutionTasks' smart constructor.
data DescribeMaintenanceWindowExecutionTasks = DescribeMaintenanceWindowExecutionTasks'
  { -- | Optional filters used to scope down the returned tasks. The supported
    -- filter key is @STATUS@ with the corresponding values @PENDING@,
    -- @IN_PROGRESS@, @SUCCESS@, @FAILED@, @TIMED_OUT@, @CANCELLING@, and
    -- @CANCELLED@.
    DescribeMaintenanceWindowExecutionTasks
-> Maybe [MaintenanceWindowFilter]
filters :: Prelude.Maybe [MaintenanceWindowFilter],
    -- | The token for the next set of items to return. (You received this token
    -- from a previous call.)
    DescribeMaintenanceWindowExecutionTasks -> 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.
    DescribeMaintenanceWindowExecutionTasks -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the maintenance window execution whose task executions should
    -- be retrieved.
    DescribeMaintenanceWindowExecutionTasks -> Text
windowExecutionId :: Prelude.Text
  }
  deriving (DescribeMaintenanceWindowExecutionTasks
-> DescribeMaintenanceWindowExecutionTasks -> Bool
(DescribeMaintenanceWindowExecutionTasks
 -> DescribeMaintenanceWindowExecutionTasks -> Bool)
-> (DescribeMaintenanceWindowExecutionTasks
    -> DescribeMaintenanceWindowExecutionTasks -> Bool)
-> Eq DescribeMaintenanceWindowExecutionTasks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMaintenanceWindowExecutionTasks
-> DescribeMaintenanceWindowExecutionTasks -> Bool
$c/= :: DescribeMaintenanceWindowExecutionTasks
-> DescribeMaintenanceWindowExecutionTasks -> Bool
== :: DescribeMaintenanceWindowExecutionTasks
-> DescribeMaintenanceWindowExecutionTasks -> Bool
$c== :: DescribeMaintenanceWindowExecutionTasks
-> DescribeMaintenanceWindowExecutionTasks -> Bool
Prelude.Eq, ReadPrec [DescribeMaintenanceWindowExecutionTasks]
ReadPrec DescribeMaintenanceWindowExecutionTasks
Int -> ReadS DescribeMaintenanceWindowExecutionTasks
ReadS [DescribeMaintenanceWindowExecutionTasks]
(Int -> ReadS DescribeMaintenanceWindowExecutionTasks)
-> ReadS [DescribeMaintenanceWindowExecutionTasks]
-> ReadPrec DescribeMaintenanceWindowExecutionTasks
-> ReadPrec [DescribeMaintenanceWindowExecutionTasks]
-> Read DescribeMaintenanceWindowExecutionTasks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMaintenanceWindowExecutionTasks]
$creadListPrec :: ReadPrec [DescribeMaintenanceWindowExecutionTasks]
readPrec :: ReadPrec DescribeMaintenanceWindowExecutionTasks
$creadPrec :: ReadPrec DescribeMaintenanceWindowExecutionTasks
readList :: ReadS [DescribeMaintenanceWindowExecutionTasks]
$creadList :: ReadS [DescribeMaintenanceWindowExecutionTasks]
readsPrec :: Int -> ReadS DescribeMaintenanceWindowExecutionTasks
$creadsPrec :: Int -> ReadS DescribeMaintenanceWindowExecutionTasks
Prelude.Read, Int -> DescribeMaintenanceWindowExecutionTasks -> ShowS
[DescribeMaintenanceWindowExecutionTasks] -> ShowS
DescribeMaintenanceWindowExecutionTasks -> String
(Int -> DescribeMaintenanceWindowExecutionTasks -> ShowS)
-> (DescribeMaintenanceWindowExecutionTasks -> String)
-> ([DescribeMaintenanceWindowExecutionTasks] -> ShowS)
-> Show DescribeMaintenanceWindowExecutionTasks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMaintenanceWindowExecutionTasks] -> ShowS
$cshowList :: [DescribeMaintenanceWindowExecutionTasks] -> ShowS
show :: DescribeMaintenanceWindowExecutionTasks -> String
$cshow :: DescribeMaintenanceWindowExecutionTasks -> String
showsPrec :: Int -> DescribeMaintenanceWindowExecutionTasks -> ShowS
$cshowsPrec :: Int -> DescribeMaintenanceWindowExecutionTasks -> ShowS
Prelude.Show, (forall x.
 DescribeMaintenanceWindowExecutionTasks
 -> Rep DescribeMaintenanceWindowExecutionTasks x)
-> (forall x.
    Rep DescribeMaintenanceWindowExecutionTasks x
    -> DescribeMaintenanceWindowExecutionTasks)
-> Generic DescribeMaintenanceWindowExecutionTasks
forall x.
Rep DescribeMaintenanceWindowExecutionTasks x
-> DescribeMaintenanceWindowExecutionTasks
forall x.
DescribeMaintenanceWindowExecutionTasks
-> Rep DescribeMaintenanceWindowExecutionTasks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeMaintenanceWindowExecutionTasks x
-> DescribeMaintenanceWindowExecutionTasks
$cfrom :: forall x.
DescribeMaintenanceWindowExecutionTasks
-> Rep DescribeMaintenanceWindowExecutionTasks x
Prelude.Generic)

-- |
-- Create a value of 'DescribeMaintenanceWindowExecutionTasks' 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', 'describeMaintenanceWindowExecutionTasks_filters' - Optional filters used to scope down the returned tasks. The supported
-- filter key is @STATUS@ with the corresponding values @PENDING@,
-- @IN_PROGRESS@, @SUCCESS@, @FAILED@, @TIMED_OUT@, @CANCELLING@, and
-- @CANCELLED@.
--
-- 'nextToken', 'describeMaintenanceWindowExecutionTasks_nextToken' - The token for the next set of items to return. (You received this token
-- from a previous call.)
--
-- 'maxResults', 'describeMaintenanceWindowExecutionTasks_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', 'describeMaintenanceWindowExecutionTasks_windowExecutionId' - The ID of the maintenance window execution whose task executions should
-- be retrieved.
newDescribeMaintenanceWindowExecutionTasks ::
  -- | 'windowExecutionId'
  Prelude.Text ->
  DescribeMaintenanceWindowExecutionTasks
newDescribeMaintenanceWindowExecutionTasks :: Text -> DescribeMaintenanceWindowExecutionTasks
newDescribeMaintenanceWindowExecutionTasks
  Text
pWindowExecutionId_ =
    DescribeMaintenanceWindowExecutionTasks' :: Maybe [MaintenanceWindowFilter]
-> Maybe Text
-> Maybe Natural
-> Text
-> DescribeMaintenanceWindowExecutionTasks
DescribeMaintenanceWindowExecutionTasks'
      { $sel:filters:DescribeMaintenanceWindowExecutionTasks' :: Maybe [MaintenanceWindowFilter]
filters =
          Maybe [MaintenanceWindowFilter]
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:DescribeMaintenanceWindowExecutionTasks' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:DescribeMaintenanceWindowExecutionTasks' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:windowExecutionId:DescribeMaintenanceWindowExecutionTasks' :: Text
windowExecutionId =
          Text
pWindowExecutionId_
      }

-- | Optional filters used to scope down the returned tasks. The supported
-- filter key is @STATUS@ with the corresponding values @PENDING@,
-- @IN_PROGRESS@, @SUCCESS@, @FAILED@, @TIMED_OUT@, @CANCELLING@, and
-- @CANCELLED@.
describeMaintenanceWindowExecutionTasks_filters :: Lens.Lens' DescribeMaintenanceWindowExecutionTasks (Prelude.Maybe [MaintenanceWindowFilter])
describeMaintenanceWindowExecutionTasks_filters :: (Maybe [MaintenanceWindowFilter]
 -> f (Maybe [MaintenanceWindowFilter]))
-> DescribeMaintenanceWindowExecutionTasks
-> f DescribeMaintenanceWindowExecutionTasks
describeMaintenanceWindowExecutionTasks_filters = (DescribeMaintenanceWindowExecutionTasks
 -> Maybe [MaintenanceWindowFilter])
-> (DescribeMaintenanceWindowExecutionTasks
    -> Maybe [MaintenanceWindowFilter]
    -> DescribeMaintenanceWindowExecutionTasks)
-> Lens
     DescribeMaintenanceWindowExecutionTasks
     DescribeMaintenanceWindowExecutionTasks
     (Maybe [MaintenanceWindowFilter])
     (Maybe [MaintenanceWindowFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTasks' {Maybe [MaintenanceWindowFilter]
filters :: Maybe [MaintenanceWindowFilter]
$sel:filters:DescribeMaintenanceWindowExecutionTasks' :: DescribeMaintenanceWindowExecutionTasks
-> Maybe [MaintenanceWindowFilter]
filters} -> Maybe [MaintenanceWindowFilter]
filters) (\s :: DescribeMaintenanceWindowExecutionTasks
s@DescribeMaintenanceWindowExecutionTasks' {} Maybe [MaintenanceWindowFilter]
a -> DescribeMaintenanceWindowExecutionTasks
s {$sel:filters:DescribeMaintenanceWindowExecutionTasks' :: Maybe [MaintenanceWindowFilter]
filters = Maybe [MaintenanceWindowFilter]
a} :: DescribeMaintenanceWindowExecutionTasks) ((Maybe [MaintenanceWindowFilter]
  -> f (Maybe [MaintenanceWindowFilter]))
 -> DescribeMaintenanceWindowExecutionTasks
 -> f DescribeMaintenanceWindowExecutionTasks)
-> ((Maybe [MaintenanceWindowFilter]
     -> f (Maybe [MaintenanceWindowFilter]))
    -> Maybe [MaintenanceWindowFilter]
    -> f (Maybe [MaintenanceWindowFilter]))
-> (Maybe [MaintenanceWindowFilter]
    -> f (Maybe [MaintenanceWindowFilter]))
-> DescribeMaintenanceWindowExecutionTasks
-> f DescribeMaintenanceWindowExecutionTasks
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.)
describeMaintenanceWindowExecutionTasks_nextToken :: Lens.Lens' DescribeMaintenanceWindowExecutionTasks (Prelude.Maybe Prelude.Text)
describeMaintenanceWindowExecutionTasks_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeMaintenanceWindowExecutionTasks
-> f DescribeMaintenanceWindowExecutionTasks
describeMaintenanceWindowExecutionTasks_nextToken = (DescribeMaintenanceWindowExecutionTasks -> Maybe Text)
-> (DescribeMaintenanceWindowExecutionTasks
    -> Maybe Text -> DescribeMaintenanceWindowExecutionTasks)
-> Lens
     DescribeMaintenanceWindowExecutionTasks
     DescribeMaintenanceWindowExecutionTasks
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTasks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeMaintenanceWindowExecutionTasks' :: DescribeMaintenanceWindowExecutionTasks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeMaintenanceWindowExecutionTasks
s@DescribeMaintenanceWindowExecutionTasks' {} Maybe Text
a -> DescribeMaintenanceWindowExecutionTasks
s {$sel:nextToken:DescribeMaintenanceWindowExecutionTasks' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeMaintenanceWindowExecutionTasks)

-- | 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.
describeMaintenanceWindowExecutionTasks_maxResults :: Lens.Lens' DescribeMaintenanceWindowExecutionTasks (Prelude.Maybe Prelude.Natural)
describeMaintenanceWindowExecutionTasks_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeMaintenanceWindowExecutionTasks
-> f DescribeMaintenanceWindowExecutionTasks
describeMaintenanceWindowExecutionTasks_maxResults = (DescribeMaintenanceWindowExecutionTasks -> Maybe Natural)
-> (DescribeMaintenanceWindowExecutionTasks
    -> Maybe Natural -> DescribeMaintenanceWindowExecutionTasks)
-> Lens
     DescribeMaintenanceWindowExecutionTasks
     DescribeMaintenanceWindowExecutionTasks
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTasks' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeMaintenanceWindowExecutionTasks' :: DescribeMaintenanceWindowExecutionTasks -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeMaintenanceWindowExecutionTasks
s@DescribeMaintenanceWindowExecutionTasks' {} Maybe Natural
a -> DescribeMaintenanceWindowExecutionTasks
s {$sel:maxResults:DescribeMaintenanceWindowExecutionTasks' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeMaintenanceWindowExecutionTasks)

-- | The ID of the maintenance window execution whose task executions should
-- be retrieved.
describeMaintenanceWindowExecutionTasks_windowExecutionId :: Lens.Lens' DescribeMaintenanceWindowExecutionTasks Prelude.Text
describeMaintenanceWindowExecutionTasks_windowExecutionId :: (Text -> f Text)
-> DescribeMaintenanceWindowExecutionTasks
-> f DescribeMaintenanceWindowExecutionTasks
describeMaintenanceWindowExecutionTasks_windowExecutionId = (DescribeMaintenanceWindowExecutionTasks -> Text)
-> (DescribeMaintenanceWindowExecutionTasks
    -> Text -> DescribeMaintenanceWindowExecutionTasks)
-> Lens
     DescribeMaintenanceWindowExecutionTasks
     DescribeMaintenanceWindowExecutionTasks
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTasks' {Text
windowExecutionId :: Text
$sel:windowExecutionId:DescribeMaintenanceWindowExecutionTasks' :: DescribeMaintenanceWindowExecutionTasks -> Text
windowExecutionId} -> Text
windowExecutionId) (\s :: DescribeMaintenanceWindowExecutionTasks
s@DescribeMaintenanceWindowExecutionTasks' {} Text
a -> DescribeMaintenanceWindowExecutionTasks
s {$sel:windowExecutionId:DescribeMaintenanceWindowExecutionTasks' :: Text
windowExecutionId = Text
a} :: DescribeMaintenanceWindowExecutionTasks)

instance
  Core.AWSPager
    DescribeMaintenanceWindowExecutionTasks
  where
  page :: DescribeMaintenanceWindowExecutionTasks
-> AWSResponse DescribeMaintenanceWindowExecutionTasks
-> Maybe DescribeMaintenanceWindowExecutionTasks
page DescribeMaintenanceWindowExecutionTasks
rq AWSResponse DescribeMaintenanceWindowExecutionTasks
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeMaintenanceWindowExecutionTasks
DescribeMaintenanceWindowExecutionTasksResponse
rs
            DescribeMaintenanceWindowExecutionTasksResponse
-> Getting
     (First Text) DescribeMaintenanceWindowExecutionTasksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeMaintenanceWindowExecutionTasksResponse
-> Const
     (First Text) DescribeMaintenanceWindowExecutionTasksResponse
Lens' DescribeMaintenanceWindowExecutionTasksResponse (Maybe Text)
describeMaintenanceWindowExecutionTasksResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeMaintenanceWindowExecutionTasksResponse
 -> Const
      (First Text) DescribeMaintenanceWindowExecutionTasksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) DescribeMaintenanceWindowExecutionTasksResponse 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 DescribeMaintenanceWindowExecutionTasks
forall a. Maybe a
Prelude.Nothing
    | Maybe [MaintenanceWindowExecutionTaskIdentity] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeMaintenanceWindowExecutionTasks
DescribeMaintenanceWindowExecutionTasksResponse
rs
            DescribeMaintenanceWindowExecutionTasksResponse
-> Getting
     (First [MaintenanceWindowExecutionTaskIdentity])
     DescribeMaintenanceWindowExecutionTasksResponse
     [MaintenanceWindowExecutionTaskIdentity]
-> Maybe [MaintenanceWindowExecutionTaskIdentity]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [MaintenanceWindowExecutionTaskIdentity]
 -> Const
      (First [MaintenanceWindowExecutionTaskIdentity])
      (Maybe [MaintenanceWindowExecutionTaskIdentity]))
-> DescribeMaintenanceWindowExecutionTasksResponse
-> Const
     (First [MaintenanceWindowExecutionTaskIdentity])
     DescribeMaintenanceWindowExecutionTasksResponse
Lens'
  DescribeMaintenanceWindowExecutionTasksResponse
  (Maybe [MaintenanceWindowExecutionTaskIdentity])
describeMaintenanceWindowExecutionTasksResponse_windowExecutionTaskIdentities
              ((Maybe [MaintenanceWindowExecutionTaskIdentity]
  -> Const
       (First [MaintenanceWindowExecutionTaskIdentity])
       (Maybe [MaintenanceWindowExecutionTaskIdentity]))
 -> DescribeMaintenanceWindowExecutionTasksResponse
 -> Const
      (First [MaintenanceWindowExecutionTaskIdentity])
      DescribeMaintenanceWindowExecutionTasksResponse)
-> (([MaintenanceWindowExecutionTaskIdentity]
     -> Const
          (First [MaintenanceWindowExecutionTaskIdentity])
          [MaintenanceWindowExecutionTaskIdentity])
    -> Maybe [MaintenanceWindowExecutionTaskIdentity]
    -> Const
         (First [MaintenanceWindowExecutionTaskIdentity])
         (Maybe [MaintenanceWindowExecutionTaskIdentity]))
-> Getting
     (First [MaintenanceWindowExecutionTaskIdentity])
     DescribeMaintenanceWindowExecutionTasksResponse
     [MaintenanceWindowExecutionTaskIdentity]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([MaintenanceWindowExecutionTaskIdentity]
 -> Const
      (First [MaintenanceWindowExecutionTaskIdentity])
      [MaintenanceWindowExecutionTaskIdentity])
-> Maybe [MaintenanceWindowExecutionTaskIdentity]
-> Const
     (First [MaintenanceWindowExecutionTaskIdentity])
     (Maybe [MaintenanceWindowExecutionTaskIdentity])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeMaintenanceWindowExecutionTasks
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      DescribeMaintenanceWindowExecutionTasks
-> Maybe DescribeMaintenanceWindowExecutionTasks
forall a. a -> Maybe a
Prelude.Just (DescribeMaintenanceWindowExecutionTasks
 -> Maybe DescribeMaintenanceWindowExecutionTasks)
-> DescribeMaintenanceWindowExecutionTasks
-> Maybe DescribeMaintenanceWindowExecutionTasks
forall a b. (a -> b) -> a -> b
Prelude.$
        DescribeMaintenanceWindowExecutionTasks
rq
          DescribeMaintenanceWindowExecutionTasks
-> (DescribeMaintenanceWindowExecutionTasks
    -> DescribeMaintenanceWindowExecutionTasks)
-> DescribeMaintenanceWindowExecutionTasks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeMaintenanceWindowExecutionTasks
-> Identity DescribeMaintenanceWindowExecutionTasks
Lens
  DescribeMaintenanceWindowExecutionTasks
  DescribeMaintenanceWindowExecutionTasks
  (Maybe Text)
  (Maybe Text)
describeMaintenanceWindowExecutionTasks_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> DescribeMaintenanceWindowExecutionTasks
 -> Identity DescribeMaintenanceWindowExecutionTasks)
-> Maybe Text
-> DescribeMaintenanceWindowExecutionTasks
-> DescribeMaintenanceWindowExecutionTasks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeMaintenanceWindowExecutionTasks
DescribeMaintenanceWindowExecutionTasksResponse
rs
            DescribeMaintenanceWindowExecutionTasksResponse
-> Getting
     (First Text) DescribeMaintenanceWindowExecutionTasksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeMaintenanceWindowExecutionTasksResponse
-> Const
     (First Text) DescribeMaintenanceWindowExecutionTasksResponse
Lens' DescribeMaintenanceWindowExecutionTasksResponse (Maybe Text)
describeMaintenanceWindowExecutionTasksResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeMaintenanceWindowExecutionTasksResponse
 -> Const
      (First Text) DescribeMaintenanceWindowExecutionTasksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) DescribeMaintenanceWindowExecutionTasksResponse 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
    DescribeMaintenanceWindowExecutionTasks
  where
  type
    AWSResponse
      DescribeMaintenanceWindowExecutionTasks =
      DescribeMaintenanceWindowExecutionTasksResponse
  request :: DescribeMaintenanceWindowExecutionTasks
-> Request DescribeMaintenanceWindowExecutionTasks
request = Service
-> DescribeMaintenanceWindowExecutionTasks
-> Request DescribeMaintenanceWindowExecutionTasks
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeMaintenanceWindowExecutionTasks
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeMaintenanceWindowExecutionTasks)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribeMaintenanceWindowExecutionTasks))
-> Logger
-> Service
-> Proxy DescribeMaintenanceWindowExecutionTasks
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeMaintenanceWindowExecutionTasks)))
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 Text
-> Maybe [MaintenanceWindowExecutionTaskIdentity]
-> Int
-> DescribeMaintenanceWindowExecutionTasksResponse
DescribeMaintenanceWindowExecutionTasksResponse'
            (Maybe Text
 -> Maybe [MaintenanceWindowExecutionTaskIdentity]
 -> Int
 -> DescribeMaintenanceWindowExecutionTasksResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [MaintenanceWindowExecutionTaskIdentity]
      -> Int -> DescribeMaintenanceWindowExecutionTasksResponse)
forall (f :: * -> *) a b. Functor 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
  (Maybe [MaintenanceWindowExecutionTaskIdentity]
   -> Int -> DescribeMaintenanceWindowExecutionTasksResponse)
-> Either String (Maybe [MaintenanceWindowExecutionTaskIdentity])
-> Either
     String (Int -> DescribeMaintenanceWindowExecutionTasksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either
     String (Maybe (Maybe [MaintenanceWindowExecutionTaskIdentity]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"WindowExecutionTaskIdentities"
                              Either
  String (Maybe (Maybe [MaintenanceWindowExecutionTaskIdentity]))
-> Maybe [MaintenanceWindowExecutionTaskIdentity]
-> Either String (Maybe [MaintenanceWindowExecutionTaskIdentity])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [MaintenanceWindowExecutionTaskIdentity]
forall a. Monoid a => a
Prelude.mempty
                          )
              Either
  String (Int -> DescribeMaintenanceWindowExecutionTasksResponse)
-> Either String Int
-> Either String DescribeMaintenanceWindowExecutionTasksResponse
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
    DescribeMaintenanceWindowExecutionTasks

instance
  Prelude.NFData
    DescribeMaintenanceWindowExecutionTasks

instance
  Core.ToHeaders
    DescribeMaintenanceWindowExecutionTasks
  where
  toHeaders :: DescribeMaintenanceWindowExecutionTasks -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeMaintenanceWindowExecutionTasks -> 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.DescribeMaintenanceWindowExecutionTasks" ::
                          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
    DescribeMaintenanceWindowExecutionTasks
  where
  toJSON :: DescribeMaintenanceWindowExecutionTasks -> Value
toJSON DescribeMaintenanceWindowExecutionTasks' {Maybe Natural
Maybe [MaintenanceWindowFilter]
Maybe Text
Text
windowExecutionId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe [MaintenanceWindowFilter]
$sel:windowExecutionId:DescribeMaintenanceWindowExecutionTasks' :: DescribeMaintenanceWindowExecutionTasks -> Text
$sel:maxResults:DescribeMaintenanceWindowExecutionTasks' :: DescribeMaintenanceWindowExecutionTasks -> Maybe Natural
$sel:nextToken:DescribeMaintenanceWindowExecutionTasks' :: DescribeMaintenanceWindowExecutionTasks -> Maybe Text
$sel:filters:DescribeMaintenanceWindowExecutionTasks' :: DescribeMaintenanceWindowExecutionTasks
-> 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)
          ]
      )

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

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

-- | /See:/ 'newDescribeMaintenanceWindowExecutionTasksResponse' smart constructor.
data DescribeMaintenanceWindowExecutionTasksResponse = DescribeMaintenanceWindowExecutionTasksResponse'
  { -- | The token to use when requesting the next set of items. If there are no
    -- additional items to return, the string is empty.
    DescribeMaintenanceWindowExecutionTasksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Information about the task executions.
    DescribeMaintenanceWindowExecutionTasksResponse
-> Maybe [MaintenanceWindowExecutionTaskIdentity]
windowExecutionTaskIdentities :: Prelude.Maybe [MaintenanceWindowExecutionTaskIdentity],
    -- | The response's http status code.
    DescribeMaintenanceWindowExecutionTasksResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeMaintenanceWindowExecutionTasksResponse
-> DescribeMaintenanceWindowExecutionTasksResponse -> Bool
(DescribeMaintenanceWindowExecutionTasksResponse
 -> DescribeMaintenanceWindowExecutionTasksResponse -> Bool)
-> (DescribeMaintenanceWindowExecutionTasksResponse
    -> DescribeMaintenanceWindowExecutionTasksResponse -> Bool)
-> Eq DescribeMaintenanceWindowExecutionTasksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMaintenanceWindowExecutionTasksResponse
-> DescribeMaintenanceWindowExecutionTasksResponse -> Bool
$c/= :: DescribeMaintenanceWindowExecutionTasksResponse
-> DescribeMaintenanceWindowExecutionTasksResponse -> Bool
== :: DescribeMaintenanceWindowExecutionTasksResponse
-> DescribeMaintenanceWindowExecutionTasksResponse -> Bool
$c== :: DescribeMaintenanceWindowExecutionTasksResponse
-> DescribeMaintenanceWindowExecutionTasksResponse -> Bool
Prelude.Eq, ReadPrec [DescribeMaintenanceWindowExecutionTasksResponse]
ReadPrec DescribeMaintenanceWindowExecutionTasksResponse
Int -> ReadS DescribeMaintenanceWindowExecutionTasksResponse
ReadS [DescribeMaintenanceWindowExecutionTasksResponse]
(Int -> ReadS DescribeMaintenanceWindowExecutionTasksResponse)
-> ReadS [DescribeMaintenanceWindowExecutionTasksResponse]
-> ReadPrec DescribeMaintenanceWindowExecutionTasksResponse
-> ReadPrec [DescribeMaintenanceWindowExecutionTasksResponse]
-> Read DescribeMaintenanceWindowExecutionTasksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMaintenanceWindowExecutionTasksResponse]
$creadListPrec :: ReadPrec [DescribeMaintenanceWindowExecutionTasksResponse]
readPrec :: ReadPrec DescribeMaintenanceWindowExecutionTasksResponse
$creadPrec :: ReadPrec DescribeMaintenanceWindowExecutionTasksResponse
readList :: ReadS [DescribeMaintenanceWindowExecutionTasksResponse]
$creadList :: ReadS [DescribeMaintenanceWindowExecutionTasksResponse]
readsPrec :: Int -> ReadS DescribeMaintenanceWindowExecutionTasksResponse
$creadsPrec :: Int -> ReadS DescribeMaintenanceWindowExecutionTasksResponse
Prelude.Read, Int -> DescribeMaintenanceWindowExecutionTasksResponse -> ShowS
[DescribeMaintenanceWindowExecutionTasksResponse] -> ShowS
DescribeMaintenanceWindowExecutionTasksResponse -> String
(Int -> DescribeMaintenanceWindowExecutionTasksResponse -> ShowS)
-> (DescribeMaintenanceWindowExecutionTasksResponse -> String)
-> ([DescribeMaintenanceWindowExecutionTasksResponse] -> ShowS)
-> Show DescribeMaintenanceWindowExecutionTasksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMaintenanceWindowExecutionTasksResponse] -> ShowS
$cshowList :: [DescribeMaintenanceWindowExecutionTasksResponse] -> ShowS
show :: DescribeMaintenanceWindowExecutionTasksResponse -> String
$cshow :: DescribeMaintenanceWindowExecutionTasksResponse -> String
showsPrec :: Int -> DescribeMaintenanceWindowExecutionTasksResponse -> ShowS
$cshowsPrec :: Int -> DescribeMaintenanceWindowExecutionTasksResponse -> ShowS
Prelude.Show, (forall x.
 DescribeMaintenanceWindowExecutionTasksResponse
 -> Rep DescribeMaintenanceWindowExecutionTasksResponse x)
-> (forall x.
    Rep DescribeMaintenanceWindowExecutionTasksResponse x
    -> DescribeMaintenanceWindowExecutionTasksResponse)
-> Generic DescribeMaintenanceWindowExecutionTasksResponse
forall x.
Rep DescribeMaintenanceWindowExecutionTasksResponse x
-> DescribeMaintenanceWindowExecutionTasksResponse
forall x.
DescribeMaintenanceWindowExecutionTasksResponse
-> Rep DescribeMaintenanceWindowExecutionTasksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeMaintenanceWindowExecutionTasksResponse x
-> DescribeMaintenanceWindowExecutionTasksResponse
$cfrom :: forall x.
DescribeMaintenanceWindowExecutionTasksResponse
-> Rep DescribeMaintenanceWindowExecutionTasksResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeMaintenanceWindowExecutionTasksResponse' 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:
--
-- 'nextToken', 'describeMaintenanceWindowExecutionTasksResponse_nextToken' - The token to use when requesting the next set of items. If there are no
-- additional items to return, the string is empty.
--
-- 'windowExecutionTaskIdentities', 'describeMaintenanceWindowExecutionTasksResponse_windowExecutionTaskIdentities' - Information about the task executions.
--
-- 'httpStatus', 'describeMaintenanceWindowExecutionTasksResponse_httpStatus' - The response's http status code.
newDescribeMaintenanceWindowExecutionTasksResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeMaintenanceWindowExecutionTasksResponse
newDescribeMaintenanceWindowExecutionTasksResponse :: Int -> DescribeMaintenanceWindowExecutionTasksResponse
newDescribeMaintenanceWindowExecutionTasksResponse
  Int
pHttpStatus_ =
    DescribeMaintenanceWindowExecutionTasksResponse' :: Maybe Text
-> Maybe [MaintenanceWindowExecutionTaskIdentity]
-> Int
-> DescribeMaintenanceWindowExecutionTasksResponse
DescribeMaintenanceWindowExecutionTasksResponse'
      { $sel:nextToken:DescribeMaintenanceWindowExecutionTasksResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:windowExecutionTaskIdentities:DescribeMaintenanceWindowExecutionTasksResponse' :: Maybe [MaintenanceWindowExecutionTaskIdentity]
windowExecutionTaskIdentities =
          Maybe [MaintenanceWindowExecutionTaskIdentity]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeMaintenanceWindowExecutionTasksResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

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

-- | Information about the task executions.
describeMaintenanceWindowExecutionTasksResponse_windowExecutionTaskIdentities :: Lens.Lens' DescribeMaintenanceWindowExecutionTasksResponse (Prelude.Maybe [MaintenanceWindowExecutionTaskIdentity])
describeMaintenanceWindowExecutionTasksResponse_windowExecutionTaskIdentities :: (Maybe [MaintenanceWindowExecutionTaskIdentity]
 -> f (Maybe [MaintenanceWindowExecutionTaskIdentity]))
-> DescribeMaintenanceWindowExecutionTasksResponse
-> f DescribeMaintenanceWindowExecutionTasksResponse
describeMaintenanceWindowExecutionTasksResponse_windowExecutionTaskIdentities = (DescribeMaintenanceWindowExecutionTasksResponse
 -> Maybe [MaintenanceWindowExecutionTaskIdentity])
-> (DescribeMaintenanceWindowExecutionTasksResponse
    -> Maybe [MaintenanceWindowExecutionTaskIdentity]
    -> DescribeMaintenanceWindowExecutionTasksResponse)
-> Lens'
     DescribeMaintenanceWindowExecutionTasksResponse
     (Maybe [MaintenanceWindowExecutionTaskIdentity])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMaintenanceWindowExecutionTasksResponse' {Maybe [MaintenanceWindowExecutionTaskIdentity]
windowExecutionTaskIdentities :: Maybe [MaintenanceWindowExecutionTaskIdentity]
$sel:windowExecutionTaskIdentities:DescribeMaintenanceWindowExecutionTasksResponse' :: DescribeMaintenanceWindowExecutionTasksResponse
-> Maybe [MaintenanceWindowExecutionTaskIdentity]
windowExecutionTaskIdentities} -> Maybe [MaintenanceWindowExecutionTaskIdentity]
windowExecutionTaskIdentities) (\s :: DescribeMaintenanceWindowExecutionTasksResponse
s@DescribeMaintenanceWindowExecutionTasksResponse' {} Maybe [MaintenanceWindowExecutionTaskIdentity]
a -> DescribeMaintenanceWindowExecutionTasksResponse
s {$sel:windowExecutionTaskIdentities:DescribeMaintenanceWindowExecutionTasksResponse' :: Maybe [MaintenanceWindowExecutionTaskIdentity]
windowExecutionTaskIdentities = Maybe [MaintenanceWindowExecutionTaskIdentity]
a} :: DescribeMaintenanceWindowExecutionTasksResponse) ((Maybe [MaintenanceWindowExecutionTaskIdentity]
  -> f (Maybe [MaintenanceWindowExecutionTaskIdentity]))
 -> DescribeMaintenanceWindowExecutionTasksResponse
 -> f DescribeMaintenanceWindowExecutionTasksResponse)
-> ((Maybe [MaintenanceWindowExecutionTaskIdentity]
     -> f (Maybe [MaintenanceWindowExecutionTaskIdentity]))
    -> Maybe [MaintenanceWindowExecutionTaskIdentity]
    -> f (Maybe [MaintenanceWindowExecutionTaskIdentity]))
-> (Maybe [MaintenanceWindowExecutionTaskIdentity]
    -> f (Maybe [MaintenanceWindowExecutionTaskIdentity]))
-> DescribeMaintenanceWindowExecutionTasksResponse
-> f DescribeMaintenanceWindowExecutionTasksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [MaintenanceWindowExecutionTaskIdentity]
  [MaintenanceWindowExecutionTaskIdentity]
  [MaintenanceWindowExecutionTaskIdentity]
  [MaintenanceWindowExecutionTaskIdentity]
-> Iso
     (Maybe [MaintenanceWindowExecutionTaskIdentity])
     (Maybe [MaintenanceWindowExecutionTaskIdentity])
     (Maybe [MaintenanceWindowExecutionTaskIdentity])
     (Maybe [MaintenanceWindowExecutionTaskIdentity])
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
  [MaintenanceWindowExecutionTaskIdentity]
  [MaintenanceWindowExecutionTaskIdentity]
  [MaintenanceWindowExecutionTaskIdentity]
  [MaintenanceWindowExecutionTaskIdentity]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeMaintenanceWindowExecutionTasksResponse