{-# 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.IoTJobsData.GetPendingJobExecutions
-- 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)
--
-- Gets the list of all jobs for a thing that are not in a terminal status.
module Amazonka.IoTJobsData.GetPendingJobExecutions
  ( -- * Creating a Request
    GetPendingJobExecutions (..),
    newGetPendingJobExecutions,

    -- * Request Lenses
    getPendingJobExecutions_thingName,

    -- * Destructuring the Response
    GetPendingJobExecutionsResponse (..),
    newGetPendingJobExecutionsResponse,

    -- * Response Lenses
    getPendingJobExecutionsResponse_inProgressJobs,
    getPendingJobExecutionsResponse_queuedJobs,
    getPendingJobExecutionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newGetPendingJobExecutions' smart constructor.
data GetPendingJobExecutions = GetPendingJobExecutions'
  { -- | The name of the thing that is executing the job.
    GetPendingJobExecutions -> Text
thingName :: Prelude.Text
  }
  deriving (GetPendingJobExecutions -> GetPendingJobExecutions -> Bool
(GetPendingJobExecutions -> GetPendingJobExecutions -> Bool)
-> (GetPendingJobExecutions -> GetPendingJobExecutions -> Bool)
-> Eq GetPendingJobExecutions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPendingJobExecutions -> GetPendingJobExecutions -> Bool
$c/= :: GetPendingJobExecutions -> GetPendingJobExecutions -> Bool
== :: GetPendingJobExecutions -> GetPendingJobExecutions -> Bool
$c== :: GetPendingJobExecutions -> GetPendingJobExecutions -> Bool
Prelude.Eq, ReadPrec [GetPendingJobExecutions]
ReadPrec GetPendingJobExecutions
Int -> ReadS GetPendingJobExecutions
ReadS [GetPendingJobExecutions]
(Int -> ReadS GetPendingJobExecutions)
-> ReadS [GetPendingJobExecutions]
-> ReadPrec GetPendingJobExecutions
-> ReadPrec [GetPendingJobExecutions]
-> Read GetPendingJobExecutions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPendingJobExecutions]
$creadListPrec :: ReadPrec [GetPendingJobExecutions]
readPrec :: ReadPrec GetPendingJobExecutions
$creadPrec :: ReadPrec GetPendingJobExecutions
readList :: ReadS [GetPendingJobExecutions]
$creadList :: ReadS [GetPendingJobExecutions]
readsPrec :: Int -> ReadS GetPendingJobExecutions
$creadsPrec :: Int -> ReadS GetPendingJobExecutions
Prelude.Read, Int -> GetPendingJobExecutions -> ShowS
[GetPendingJobExecutions] -> ShowS
GetPendingJobExecutions -> String
(Int -> GetPendingJobExecutions -> ShowS)
-> (GetPendingJobExecutions -> String)
-> ([GetPendingJobExecutions] -> ShowS)
-> Show GetPendingJobExecutions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPendingJobExecutions] -> ShowS
$cshowList :: [GetPendingJobExecutions] -> ShowS
show :: GetPendingJobExecutions -> String
$cshow :: GetPendingJobExecutions -> String
showsPrec :: Int -> GetPendingJobExecutions -> ShowS
$cshowsPrec :: Int -> GetPendingJobExecutions -> ShowS
Prelude.Show, (forall x.
 GetPendingJobExecutions -> Rep GetPendingJobExecutions x)
-> (forall x.
    Rep GetPendingJobExecutions x -> GetPendingJobExecutions)
-> Generic GetPendingJobExecutions
forall x. Rep GetPendingJobExecutions x -> GetPendingJobExecutions
forall x. GetPendingJobExecutions -> Rep GetPendingJobExecutions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetPendingJobExecutions x -> GetPendingJobExecutions
$cfrom :: forall x. GetPendingJobExecutions -> Rep GetPendingJobExecutions x
Prelude.Generic)

-- |
-- Create a value of 'GetPendingJobExecutions' 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:
--
-- 'thingName', 'getPendingJobExecutions_thingName' - The name of the thing that is executing the job.
newGetPendingJobExecutions ::
  -- | 'thingName'
  Prelude.Text ->
  GetPendingJobExecutions
newGetPendingJobExecutions :: Text -> GetPendingJobExecutions
newGetPendingJobExecutions Text
pThingName_ =
  GetPendingJobExecutions' :: Text -> GetPendingJobExecutions
GetPendingJobExecutions' {$sel:thingName:GetPendingJobExecutions' :: Text
thingName = Text
pThingName_}

-- | The name of the thing that is executing the job.
getPendingJobExecutions_thingName :: Lens.Lens' GetPendingJobExecutions Prelude.Text
getPendingJobExecutions_thingName :: (Text -> f Text)
-> GetPendingJobExecutions -> f GetPendingJobExecutions
getPendingJobExecutions_thingName = (GetPendingJobExecutions -> Text)
-> (GetPendingJobExecutions -> Text -> GetPendingJobExecutions)
-> Lens GetPendingJobExecutions GetPendingJobExecutions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPendingJobExecutions' {Text
thingName :: Text
$sel:thingName:GetPendingJobExecutions' :: GetPendingJobExecutions -> Text
thingName} -> Text
thingName) (\s :: GetPendingJobExecutions
s@GetPendingJobExecutions' {} Text
a -> GetPendingJobExecutions
s {$sel:thingName:GetPendingJobExecutions' :: Text
thingName = Text
a} :: GetPendingJobExecutions)

instance Core.AWSRequest GetPendingJobExecutions where
  type
    AWSResponse GetPendingJobExecutions =
      GetPendingJobExecutionsResponse
  request :: GetPendingJobExecutions -> Request GetPendingJobExecutions
request = Service
-> GetPendingJobExecutions -> Request GetPendingJobExecutions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetPendingJobExecutions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetPendingJobExecutions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetPendingJobExecutions))
-> Logger
-> Service
-> Proxy GetPendingJobExecutions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetPendingJobExecutions)))
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 [JobExecutionSummary]
-> Maybe [JobExecutionSummary]
-> Int
-> GetPendingJobExecutionsResponse
GetPendingJobExecutionsResponse'
            (Maybe [JobExecutionSummary]
 -> Maybe [JobExecutionSummary]
 -> Int
 -> GetPendingJobExecutionsResponse)
-> Either String (Maybe [JobExecutionSummary])
-> Either
     String
     (Maybe [JobExecutionSummary]
      -> Int -> GetPendingJobExecutionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [JobExecutionSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"inProgressJobs" Either String (Maybe (Maybe [JobExecutionSummary]))
-> Maybe [JobExecutionSummary]
-> Either String (Maybe [JobExecutionSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [JobExecutionSummary]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe [JobExecutionSummary]
   -> Int -> GetPendingJobExecutionsResponse)
-> Either String (Maybe [JobExecutionSummary])
-> Either String (Int -> GetPendingJobExecutionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [JobExecutionSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"queuedJobs" Either String (Maybe (Maybe [JobExecutionSummary]))
-> Maybe [JobExecutionSummary]
-> Either String (Maybe [JobExecutionSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [JobExecutionSummary]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> GetPendingJobExecutionsResponse)
-> Either String Int
-> Either String GetPendingJobExecutionsResponse
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 GetPendingJobExecutions

instance Prelude.NFData GetPendingJobExecutions

instance Core.ToHeaders GetPendingJobExecutions where
  toHeaders :: GetPendingJobExecutions -> ResponseHeaders
toHeaders = ResponseHeaders -> GetPendingJobExecutions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath GetPendingJobExecutions where
  toPath :: GetPendingJobExecutions -> ByteString
toPath GetPendingJobExecutions' {Text
thingName :: Text
$sel:thingName:GetPendingJobExecutions' :: GetPendingJobExecutions -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/things/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
thingName, ByteString
"/jobs"]

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

-- | /See:/ 'newGetPendingJobExecutionsResponse' smart constructor.
data GetPendingJobExecutionsResponse = GetPendingJobExecutionsResponse'
  { -- | A list of JobExecutionSummary objects with status IN_PROGRESS.
    GetPendingJobExecutionsResponse -> Maybe [JobExecutionSummary]
inProgressJobs :: Prelude.Maybe [JobExecutionSummary],
    -- | A list of JobExecutionSummary objects with status QUEUED.
    GetPendingJobExecutionsResponse -> Maybe [JobExecutionSummary]
queuedJobs :: Prelude.Maybe [JobExecutionSummary],
    -- | The response's http status code.
    GetPendingJobExecutionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetPendingJobExecutionsResponse
-> GetPendingJobExecutionsResponse -> Bool
(GetPendingJobExecutionsResponse
 -> GetPendingJobExecutionsResponse -> Bool)
-> (GetPendingJobExecutionsResponse
    -> GetPendingJobExecutionsResponse -> Bool)
-> Eq GetPendingJobExecutionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPendingJobExecutionsResponse
-> GetPendingJobExecutionsResponse -> Bool
$c/= :: GetPendingJobExecutionsResponse
-> GetPendingJobExecutionsResponse -> Bool
== :: GetPendingJobExecutionsResponse
-> GetPendingJobExecutionsResponse -> Bool
$c== :: GetPendingJobExecutionsResponse
-> GetPendingJobExecutionsResponse -> Bool
Prelude.Eq, ReadPrec [GetPendingJobExecutionsResponse]
ReadPrec GetPendingJobExecutionsResponse
Int -> ReadS GetPendingJobExecutionsResponse
ReadS [GetPendingJobExecutionsResponse]
(Int -> ReadS GetPendingJobExecutionsResponse)
-> ReadS [GetPendingJobExecutionsResponse]
-> ReadPrec GetPendingJobExecutionsResponse
-> ReadPrec [GetPendingJobExecutionsResponse]
-> Read GetPendingJobExecutionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPendingJobExecutionsResponse]
$creadListPrec :: ReadPrec [GetPendingJobExecutionsResponse]
readPrec :: ReadPrec GetPendingJobExecutionsResponse
$creadPrec :: ReadPrec GetPendingJobExecutionsResponse
readList :: ReadS [GetPendingJobExecutionsResponse]
$creadList :: ReadS [GetPendingJobExecutionsResponse]
readsPrec :: Int -> ReadS GetPendingJobExecutionsResponse
$creadsPrec :: Int -> ReadS GetPendingJobExecutionsResponse
Prelude.Read, Int -> GetPendingJobExecutionsResponse -> ShowS
[GetPendingJobExecutionsResponse] -> ShowS
GetPendingJobExecutionsResponse -> String
(Int -> GetPendingJobExecutionsResponse -> ShowS)
-> (GetPendingJobExecutionsResponse -> String)
-> ([GetPendingJobExecutionsResponse] -> ShowS)
-> Show GetPendingJobExecutionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPendingJobExecutionsResponse] -> ShowS
$cshowList :: [GetPendingJobExecutionsResponse] -> ShowS
show :: GetPendingJobExecutionsResponse -> String
$cshow :: GetPendingJobExecutionsResponse -> String
showsPrec :: Int -> GetPendingJobExecutionsResponse -> ShowS
$cshowsPrec :: Int -> GetPendingJobExecutionsResponse -> ShowS
Prelude.Show, (forall x.
 GetPendingJobExecutionsResponse
 -> Rep GetPendingJobExecutionsResponse x)
-> (forall x.
    Rep GetPendingJobExecutionsResponse x
    -> GetPendingJobExecutionsResponse)
-> Generic GetPendingJobExecutionsResponse
forall x.
Rep GetPendingJobExecutionsResponse x
-> GetPendingJobExecutionsResponse
forall x.
GetPendingJobExecutionsResponse
-> Rep GetPendingJobExecutionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPendingJobExecutionsResponse x
-> GetPendingJobExecutionsResponse
$cfrom :: forall x.
GetPendingJobExecutionsResponse
-> Rep GetPendingJobExecutionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetPendingJobExecutionsResponse' 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:
--
-- 'inProgressJobs', 'getPendingJobExecutionsResponse_inProgressJobs' - A list of JobExecutionSummary objects with status IN_PROGRESS.
--
-- 'queuedJobs', 'getPendingJobExecutionsResponse_queuedJobs' - A list of JobExecutionSummary objects with status QUEUED.
--
-- 'httpStatus', 'getPendingJobExecutionsResponse_httpStatus' - The response's http status code.
newGetPendingJobExecutionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetPendingJobExecutionsResponse
newGetPendingJobExecutionsResponse :: Int -> GetPendingJobExecutionsResponse
newGetPendingJobExecutionsResponse Int
pHttpStatus_ =
  GetPendingJobExecutionsResponse' :: Maybe [JobExecutionSummary]
-> Maybe [JobExecutionSummary]
-> Int
-> GetPendingJobExecutionsResponse
GetPendingJobExecutionsResponse'
    { $sel:inProgressJobs:GetPendingJobExecutionsResponse' :: Maybe [JobExecutionSummary]
inProgressJobs =
        Maybe [JobExecutionSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:queuedJobs:GetPendingJobExecutionsResponse' :: Maybe [JobExecutionSummary]
queuedJobs = Maybe [JobExecutionSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetPendingJobExecutionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of JobExecutionSummary objects with status IN_PROGRESS.
getPendingJobExecutionsResponse_inProgressJobs :: Lens.Lens' GetPendingJobExecutionsResponse (Prelude.Maybe [JobExecutionSummary])
getPendingJobExecutionsResponse_inProgressJobs :: (Maybe [JobExecutionSummary] -> f (Maybe [JobExecutionSummary]))
-> GetPendingJobExecutionsResponse
-> f GetPendingJobExecutionsResponse
getPendingJobExecutionsResponse_inProgressJobs = (GetPendingJobExecutionsResponse -> Maybe [JobExecutionSummary])
-> (GetPendingJobExecutionsResponse
    -> Maybe [JobExecutionSummary] -> GetPendingJobExecutionsResponse)
-> Lens
     GetPendingJobExecutionsResponse
     GetPendingJobExecutionsResponse
     (Maybe [JobExecutionSummary])
     (Maybe [JobExecutionSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPendingJobExecutionsResponse' {Maybe [JobExecutionSummary]
inProgressJobs :: Maybe [JobExecutionSummary]
$sel:inProgressJobs:GetPendingJobExecutionsResponse' :: GetPendingJobExecutionsResponse -> Maybe [JobExecutionSummary]
inProgressJobs} -> Maybe [JobExecutionSummary]
inProgressJobs) (\s :: GetPendingJobExecutionsResponse
s@GetPendingJobExecutionsResponse' {} Maybe [JobExecutionSummary]
a -> GetPendingJobExecutionsResponse
s {$sel:inProgressJobs:GetPendingJobExecutionsResponse' :: Maybe [JobExecutionSummary]
inProgressJobs = Maybe [JobExecutionSummary]
a} :: GetPendingJobExecutionsResponse) ((Maybe [JobExecutionSummary] -> f (Maybe [JobExecutionSummary]))
 -> GetPendingJobExecutionsResponse
 -> f GetPendingJobExecutionsResponse)
-> ((Maybe [JobExecutionSummary]
     -> f (Maybe [JobExecutionSummary]))
    -> Maybe [JobExecutionSummary] -> f (Maybe [JobExecutionSummary]))
-> (Maybe [JobExecutionSummary] -> f (Maybe [JobExecutionSummary]))
-> GetPendingJobExecutionsResponse
-> f GetPendingJobExecutionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [JobExecutionSummary]
  [JobExecutionSummary]
  [JobExecutionSummary]
  [JobExecutionSummary]
-> Iso
     (Maybe [JobExecutionSummary])
     (Maybe [JobExecutionSummary])
     (Maybe [JobExecutionSummary])
     (Maybe [JobExecutionSummary])
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
  [JobExecutionSummary]
  [JobExecutionSummary]
  [JobExecutionSummary]
  [JobExecutionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of JobExecutionSummary objects with status QUEUED.
getPendingJobExecutionsResponse_queuedJobs :: Lens.Lens' GetPendingJobExecutionsResponse (Prelude.Maybe [JobExecutionSummary])
getPendingJobExecutionsResponse_queuedJobs :: (Maybe [JobExecutionSummary] -> f (Maybe [JobExecutionSummary]))
-> GetPendingJobExecutionsResponse
-> f GetPendingJobExecutionsResponse
getPendingJobExecutionsResponse_queuedJobs = (GetPendingJobExecutionsResponse -> Maybe [JobExecutionSummary])
-> (GetPendingJobExecutionsResponse
    -> Maybe [JobExecutionSummary] -> GetPendingJobExecutionsResponse)
-> Lens
     GetPendingJobExecutionsResponse
     GetPendingJobExecutionsResponse
     (Maybe [JobExecutionSummary])
     (Maybe [JobExecutionSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPendingJobExecutionsResponse' {Maybe [JobExecutionSummary]
queuedJobs :: Maybe [JobExecutionSummary]
$sel:queuedJobs:GetPendingJobExecutionsResponse' :: GetPendingJobExecutionsResponse -> Maybe [JobExecutionSummary]
queuedJobs} -> Maybe [JobExecutionSummary]
queuedJobs) (\s :: GetPendingJobExecutionsResponse
s@GetPendingJobExecutionsResponse' {} Maybe [JobExecutionSummary]
a -> GetPendingJobExecutionsResponse
s {$sel:queuedJobs:GetPendingJobExecutionsResponse' :: Maybe [JobExecutionSummary]
queuedJobs = Maybe [JobExecutionSummary]
a} :: GetPendingJobExecutionsResponse) ((Maybe [JobExecutionSummary] -> f (Maybe [JobExecutionSummary]))
 -> GetPendingJobExecutionsResponse
 -> f GetPendingJobExecutionsResponse)
-> ((Maybe [JobExecutionSummary]
     -> f (Maybe [JobExecutionSummary]))
    -> Maybe [JobExecutionSummary] -> f (Maybe [JobExecutionSummary]))
-> (Maybe [JobExecutionSummary] -> f (Maybe [JobExecutionSummary]))
-> GetPendingJobExecutionsResponse
-> f GetPendingJobExecutionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [JobExecutionSummary]
  [JobExecutionSummary]
  [JobExecutionSummary]
  [JobExecutionSummary]
-> Iso
     (Maybe [JobExecutionSummary])
     (Maybe [JobExecutionSummary])
     (Maybe [JobExecutionSummary])
     (Maybe [JobExecutionSummary])
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
  [JobExecutionSummary]
  [JobExecutionSummary]
  [JobExecutionSummary]
  [JobExecutionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    GetPendingJobExecutionsResponse