{-# 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 #-}
module Amazonka.EMRServerless.ListJobRuns
(
ListJobRuns (..),
newListJobRuns,
listJobRuns_createdAtAfter,
listJobRuns_createdAtBefore,
listJobRuns_maxResults,
listJobRuns_nextToken,
listJobRuns_states,
listJobRuns_applicationId,
ListJobRunsResponse (..),
newListJobRunsResponse,
listJobRunsResponse_nextToken,
listJobRunsResponse_httpStatus,
listJobRunsResponse_jobRuns,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EMRServerless.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListJobRuns = ListJobRuns'
{
ListJobRuns -> Maybe POSIX
createdAtAfter :: Prelude.Maybe Data.POSIX,
ListJobRuns -> Maybe POSIX
createdAtBefore :: Prelude.Maybe Data.POSIX,
ListJobRuns -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListJobRuns -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListJobRuns -> Maybe [JobRunState]
states :: Prelude.Maybe [JobRunState],
ListJobRuns -> Text
applicationId :: Prelude.Text
}
deriving (ListJobRuns -> ListJobRuns -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListJobRuns -> ListJobRuns -> Bool
$c/= :: ListJobRuns -> ListJobRuns -> Bool
== :: ListJobRuns -> ListJobRuns -> Bool
$c== :: ListJobRuns -> ListJobRuns -> Bool
Prelude.Eq, ReadPrec [ListJobRuns]
ReadPrec ListJobRuns
Int -> ReadS ListJobRuns
ReadS [ListJobRuns]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListJobRuns]
$creadListPrec :: ReadPrec [ListJobRuns]
readPrec :: ReadPrec ListJobRuns
$creadPrec :: ReadPrec ListJobRuns
readList :: ReadS [ListJobRuns]
$creadList :: ReadS [ListJobRuns]
readsPrec :: Int -> ReadS ListJobRuns
$creadsPrec :: Int -> ReadS ListJobRuns
Prelude.Read, Int -> ListJobRuns -> ShowS
[ListJobRuns] -> ShowS
ListJobRuns -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListJobRuns] -> ShowS
$cshowList :: [ListJobRuns] -> ShowS
show :: ListJobRuns -> String
$cshow :: ListJobRuns -> String
showsPrec :: Int -> ListJobRuns -> ShowS
$cshowsPrec :: Int -> ListJobRuns -> ShowS
Prelude.Show, forall x. Rep ListJobRuns x -> ListJobRuns
forall x. ListJobRuns -> Rep ListJobRuns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListJobRuns x -> ListJobRuns
$cfrom :: forall x. ListJobRuns -> Rep ListJobRuns x
Prelude.Generic)
newListJobRuns ::
Prelude.Text ->
ListJobRuns
newListJobRuns :: Text -> ListJobRuns
newListJobRuns Text
pApplicationId_ =
ListJobRuns'
{ $sel:createdAtAfter:ListJobRuns' :: Maybe POSIX
createdAtAfter = forall a. Maybe a
Prelude.Nothing,
$sel:createdAtBefore:ListJobRuns' :: Maybe POSIX
createdAtBefore = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListJobRuns' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListJobRuns' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:states:ListJobRuns' :: Maybe [JobRunState]
states = forall a. Maybe a
Prelude.Nothing,
$sel:applicationId:ListJobRuns' :: Text
applicationId = Text
pApplicationId_
}
listJobRuns_createdAtAfter :: Lens.Lens' ListJobRuns (Prelude.Maybe Prelude.UTCTime)
listJobRuns_createdAtAfter :: Lens' ListJobRuns (Maybe UTCTime)
listJobRuns_createdAtAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRuns' {Maybe POSIX
createdAtAfter :: Maybe POSIX
$sel:createdAtAfter:ListJobRuns' :: ListJobRuns -> Maybe POSIX
createdAtAfter} -> Maybe POSIX
createdAtAfter) (\s :: ListJobRuns
s@ListJobRuns' {} Maybe POSIX
a -> ListJobRuns
s {$sel:createdAtAfter:ListJobRuns' :: Maybe POSIX
createdAtAfter = Maybe POSIX
a} :: ListJobRuns) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
listJobRuns_createdAtBefore :: Lens.Lens' ListJobRuns (Prelude.Maybe Prelude.UTCTime)
listJobRuns_createdAtBefore :: Lens' ListJobRuns (Maybe UTCTime)
listJobRuns_createdAtBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRuns' {Maybe POSIX
createdAtBefore :: Maybe POSIX
$sel:createdAtBefore:ListJobRuns' :: ListJobRuns -> Maybe POSIX
createdAtBefore} -> Maybe POSIX
createdAtBefore) (\s :: ListJobRuns
s@ListJobRuns' {} Maybe POSIX
a -> ListJobRuns
s {$sel:createdAtBefore:ListJobRuns' :: Maybe POSIX
createdAtBefore = Maybe POSIX
a} :: ListJobRuns) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
listJobRuns_maxResults :: Lens.Lens' ListJobRuns (Prelude.Maybe Prelude.Natural)
listJobRuns_maxResults :: Lens' ListJobRuns (Maybe Natural)
listJobRuns_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRuns' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListJobRuns' :: ListJobRuns -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListJobRuns
s@ListJobRuns' {} Maybe Natural
a -> ListJobRuns
s {$sel:maxResults:ListJobRuns' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListJobRuns)
listJobRuns_nextToken :: Lens.Lens' ListJobRuns (Prelude.Maybe Prelude.Text)
listJobRuns_nextToken :: Lens' ListJobRuns (Maybe Text)
listJobRuns_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRuns' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListJobRuns' :: ListJobRuns -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListJobRuns
s@ListJobRuns' {} Maybe Text
a -> ListJobRuns
s {$sel:nextToken:ListJobRuns' :: Maybe Text
nextToken = Maybe Text
a} :: ListJobRuns)
listJobRuns_states :: Lens.Lens' ListJobRuns (Prelude.Maybe [JobRunState])
listJobRuns_states :: Lens' ListJobRuns (Maybe [JobRunState])
listJobRuns_states = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRuns' {Maybe [JobRunState]
states :: Maybe [JobRunState]
$sel:states:ListJobRuns' :: ListJobRuns -> Maybe [JobRunState]
states} -> Maybe [JobRunState]
states) (\s :: ListJobRuns
s@ListJobRuns' {} Maybe [JobRunState]
a -> ListJobRuns
s {$sel:states:ListJobRuns' :: Maybe [JobRunState]
states = Maybe [JobRunState]
a} :: ListJobRuns) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listJobRuns_applicationId :: Lens.Lens' ListJobRuns Prelude.Text
listJobRuns_applicationId :: Lens' ListJobRuns Text
listJobRuns_applicationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRuns' {Text
applicationId :: Text
$sel:applicationId:ListJobRuns' :: ListJobRuns -> Text
applicationId} -> Text
applicationId) (\s :: ListJobRuns
s@ListJobRuns' {} Text
a -> ListJobRuns
s {$sel:applicationId:ListJobRuns' :: Text
applicationId = Text
a} :: ListJobRuns)
instance Core.AWSPager ListJobRuns where
page :: ListJobRuns -> AWSResponse ListJobRuns -> Maybe ListJobRuns
page ListJobRuns
rq AWSResponse ListJobRuns
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListJobRuns
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListJobRunsResponse (Maybe Text)
listJobRunsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop (AWSResponse ListJobRuns
rs forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListJobRunsResponse [JobRunSummary]
listJobRunsResponse_jobRuns) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListJobRuns
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListJobRuns (Maybe Text)
listJobRuns_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListJobRuns
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListJobRunsResponse (Maybe Text)
listJobRunsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListJobRuns where
type AWSResponse ListJobRuns = ListJobRunsResponse
request :: (Service -> Service) -> ListJobRuns -> Request ListJobRuns
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListJobRuns
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListJobRuns)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Int -> [JobRunSummary] -> ListJobRunsResponse
ListJobRunsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"jobRuns" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListJobRuns where
hashWithSalt :: Int -> ListJobRuns -> Int
hashWithSalt Int
_salt ListJobRuns' {Maybe Natural
Maybe [JobRunState]
Maybe Text
Maybe POSIX
Text
applicationId :: Text
states :: Maybe [JobRunState]
nextToken :: Maybe Text
maxResults :: Maybe Natural
createdAtBefore :: Maybe POSIX
createdAtAfter :: Maybe POSIX
$sel:applicationId:ListJobRuns' :: ListJobRuns -> Text
$sel:states:ListJobRuns' :: ListJobRuns -> Maybe [JobRunState]
$sel:nextToken:ListJobRuns' :: ListJobRuns -> Maybe Text
$sel:maxResults:ListJobRuns' :: ListJobRuns -> Maybe Natural
$sel:createdAtBefore:ListJobRuns' :: ListJobRuns -> Maybe POSIX
$sel:createdAtAfter:ListJobRuns' :: ListJobRuns -> Maybe POSIX
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdAtAfter
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdAtBefore
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [JobRunState]
states
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
applicationId
instance Prelude.NFData ListJobRuns where
rnf :: ListJobRuns -> ()
rnf ListJobRuns' {Maybe Natural
Maybe [JobRunState]
Maybe Text
Maybe POSIX
Text
applicationId :: Text
states :: Maybe [JobRunState]
nextToken :: Maybe Text
maxResults :: Maybe Natural
createdAtBefore :: Maybe POSIX
createdAtAfter :: Maybe POSIX
$sel:applicationId:ListJobRuns' :: ListJobRuns -> Text
$sel:states:ListJobRuns' :: ListJobRuns -> Maybe [JobRunState]
$sel:nextToken:ListJobRuns' :: ListJobRuns -> Maybe Text
$sel:maxResults:ListJobRuns' :: ListJobRuns -> Maybe Natural
$sel:createdAtBefore:ListJobRuns' :: ListJobRuns -> Maybe POSIX
$sel:createdAtAfter:ListJobRuns' :: ListJobRuns -> Maybe POSIX
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdAtAfter
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdAtBefore
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [JobRunState]
states
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
applicationId
instance Data.ToHeaders ListJobRuns where
toHeaders :: ListJobRuns -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath ListJobRuns where
toPath :: ListJobRuns -> ByteString
toPath ListJobRuns' {Maybe Natural
Maybe [JobRunState]
Maybe Text
Maybe POSIX
Text
applicationId :: Text
states :: Maybe [JobRunState]
nextToken :: Maybe Text
maxResults :: Maybe Natural
createdAtBefore :: Maybe POSIX
createdAtAfter :: Maybe POSIX
$sel:applicationId:ListJobRuns' :: ListJobRuns -> Text
$sel:states:ListJobRuns' :: ListJobRuns -> Maybe [JobRunState]
$sel:nextToken:ListJobRuns' :: ListJobRuns -> Maybe Text
$sel:maxResults:ListJobRuns' :: ListJobRuns -> Maybe Natural
$sel:createdAtBefore:ListJobRuns' :: ListJobRuns -> Maybe POSIX
$sel:createdAtAfter:ListJobRuns' :: ListJobRuns -> Maybe POSIX
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/applications/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
applicationId,
ByteString
"/jobruns"
]
instance Data.ToQuery ListJobRuns where
toQuery :: ListJobRuns -> QueryString
toQuery ListJobRuns' {Maybe Natural
Maybe [JobRunState]
Maybe Text
Maybe POSIX
Text
applicationId :: Text
states :: Maybe [JobRunState]
nextToken :: Maybe Text
maxResults :: Maybe Natural
createdAtBefore :: Maybe POSIX
createdAtAfter :: Maybe POSIX
$sel:applicationId:ListJobRuns' :: ListJobRuns -> Text
$sel:states:ListJobRuns' :: ListJobRuns -> Maybe [JobRunState]
$sel:nextToken:ListJobRuns' :: ListJobRuns -> Maybe Text
$sel:maxResults:ListJobRuns' :: ListJobRuns -> Maybe Natural
$sel:createdAtBefore:ListJobRuns' :: ListJobRuns -> Maybe POSIX
$sel:createdAtAfter:ListJobRuns' :: ListJobRuns -> Maybe POSIX
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"createdAtAfter" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe POSIX
createdAtAfter,
ByteString
"createdAtBefore" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe POSIX
createdAtBefore,
ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
ByteString
"states"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
(forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [JobRunState]
states)
]
data ListJobRunsResponse = ListJobRunsResponse'
{
ListJobRunsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListJobRunsResponse -> Int
httpStatus :: Prelude.Int,
ListJobRunsResponse -> [JobRunSummary]
jobRuns :: [JobRunSummary]
}
deriving (ListJobRunsResponse -> ListJobRunsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListJobRunsResponse -> ListJobRunsResponse -> Bool
$c/= :: ListJobRunsResponse -> ListJobRunsResponse -> Bool
== :: ListJobRunsResponse -> ListJobRunsResponse -> Bool
$c== :: ListJobRunsResponse -> ListJobRunsResponse -> Bool
Prelude.Eq, ReadPrec [ListJobRunsResponse]
ReadPrec ListJobRunsResponse
Int -> ReadS ListJobRunsResponse
ReadS [ListJobRunsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListJobRunsResponse]
$creadListPrec :: ReadPrec [ListJobRunsResponse]
readPrec :: ReadPrec ListJobRunsResponse
$creadPrec :: ReadPrec ListJobRunsResponse
readList :: ReadS [ListJobRunsResponse]
$creadList :: ReadS [ListJobRunsResponse]
readsPrec :: Int -> ReadS ListJobRunsResponse
$creadsPrec :: Int -> ReadS ListJobRunsResponse
Prelude.Read, Int -> ListJobRunsResponse -> ShowS
[ListJobRunsResponse] -> ShowS
ListJobRunsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListJobRunsResponse] -> ShowS
$cshowList :: [ListJobRunsResponse] -> ShowS
show :: ListJobRunsResponse -> String
$cshow :: ListJobRunsResponse -> String
showsPrec :: Int -> ListJobRunsResponse -> ShowS
$cshowsPrec :: Int -> ListJobRunsResponse -> ShowS
Prelude.Show, forall x. Rep ListJobRunsResponse x -> ListJobRunsResponse
forall x. ListJobRunsResponse -> Rep ListJobRunsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListJobRunsResponse x -> ListJobRunsResponse
$cfrom :: forall x. ListJobRunsResponse -> Rep ListJobRunsResponse x
Prelude.Generic)
newListJobRunsResponse ::
Prelude.Int ->
ListJobRunsResponse
newListJobRunsResponse :: Int -> ListJobRunsResponse
newListJobRunsResponse Int
pHttpStatus_ =
ListJobRunsResponse'
{ $sel:nextToken:ListJobRunsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListJobRunsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:jobRuns:ListJobRunsResponse' :: [JobRunSummary]
jobRuns = forall a. Monoid a => a
Prelude.mempty
}
listJobRunsResponse_nextToken :: Lens.Lens' ListJobRunsResponse (Prelude.Maybe Prelude.Text)
listJobRunsResponse_nextToken :: Lens' ListJobRunsResponse (Maybe Text)
listJobRunsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRunsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListJobRunsResponse' :: ListJobRunsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListJobRunsResponse
s@ListJobRunsResponse' {} Maybe Text
a -> ListJobRunsResponse
s {$sel:nextToken:ListJobRunsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListJobRunsResponse)
listJobRunsResponse_httpStatus :: Lens.Lens' ListJobRunsResponse Prelude.Int
listJobRunsResponse_httpStatus :: Lens' ListJobRunsResponse Int
listJobRunsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRunsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListJobRunsResponse' :: ListJobRunsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListJobRunsResponse
s@ListJobRunsResponse' {} Int
a -> ListJobRunsResponse
s {$sel:httpStatus:ListJobRunsResponse' :: Int
httpStatus = Int
a} :: ListJobRunsResponse)
listJobRunsResponse_jobRuns :: Lens.Lens' ListJobRunsResponse [JobRunSummary]
listJobRunsResponse_jobRuns :: Lens' ListJobRunsResponse [JobRunSummary]
listJobRunsResponse_jobRuns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobRunsResponse' {[JobRunSummary]
jobRuns :: [JobRunSummary]
$sel:jobRuns:ListJobRunsResponse' :: ListJobRunsResponse -> [JobRunSummary]
jobRuns} -> [JobRunSummary]
jobRuns) (\s :: ListJobRunsResponse
s@ListJobRunsResponse' {} [JobRunSummary]
a -> ListJobRunsResponse
s {$sel:jobRuns:ListJobRunsResponse' :: [JobRunSummary]
jobRuns = [JobRunSummary]
a} :: ListJobRunsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListJobRunsResponse where
rnf :: ListJobRunsResponse -> ()
rnf ListJobRunsResponse' {Int
[JobRunSummary]
Maybe Text
jobRuns :: [JobRunSummary]
httpStatus :: Int
nextToken :: Maybe Text
$sel:jobRuns:ListJobRunsResponse' :: ListJobRunsResponse -> [JobRunSummary]
$sel:httpStatus:ListJobRunsResponse' :: ListJobRunsResponse -> Int
$sel:nextToken:ListJobRunsResponse' :: ListJobRunsResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [JobRunSummary]
jobRuns