{-# 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.SageMaker.ListProcessingJobs
(
ListProcessingJobs (..),
newListProcessingJobs,
listProcessingJobs_creationTimeAfter,
listProcessingJobs_creationTimeBefore,
listProcessingJobs_lastModifiedTimeAfter,
listProcessingJobs_lastModifiedTimeBefore,
listProcessingJobs_maxResults,
listProcessingJobs_nameContains,
listProcessingJobs_nextToken,
listProcessingJobs_sortBy,
listProcessingJobs_sortOrder,
listProcessingJobs_statusEquals,
ListProcessingJobsResponse (..),
newListProcessingJobsResponse,
listProcessingJobsResponse_nextToken,
listProcessingJobsResponse_httpStatus,
listProcessingJobsResponse_processingJobSummaries,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types
data ListProcessingJobs = ListProcessingJobs'
{
ListProcessingJobs -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Data.POSIX,
ListProcessingJobs -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Data.POSIX,
ListProcessingJobs -> Maybe POSIX
lastModifiedTimeAfter :: Prelude.Maybe Data.POSIX,
ListProcessingJobs -> Maybe POSIX
lastModifiedTimeBefore :: Prelude.Maybe Data.POSIX,
ListProcessingJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListProcessingJobs -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
ListProcessingJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProcessingJobs -> Maybe SortBy
sortBy :: Prelude.Maybe SortBy,
ListProcessingJobs -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
ListProcessingJobs -> Maybe ProcessingJobStatus
statusEquals :: Prelude.Maybe ProcessingJobStatus
}
deriving (ListProcessingJobs -> ListProcessingJobs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProcessingJobs -> ListProcessingJobs -> Bool
$c/= :: ListProcessingJobs -> ListProcessingJobs -> Bool
== :: ListProcessingJobs -> ListProcessingJobs -> Bool
$c== :: ListProcessingJobs -> ListProcessingJobs -> Bool
Prelude.Eq, ReadPrec [ListProcessingJobs]
ReadPrec ListProcessingJobs
Int -> ReadS ListProcessingJobs
ReadS [ListProcessingJobs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProcessingJobs]
$creadListPrec :: ReadPrec [ListProcessingJobs]
readPrec :: ReadPrec ListProcessingJobs
$creadPrec :: ReadPrec ListProcessingJobs
readList :: ReadS [ListProcessingJobs]
$creadList :: ReadS [ListProcessingJobs]
readsPrec :: Int -> ReadS ListProcessingJobs
$creadsPrec :: Int -> ReadS ListProcessingJobs
Prelude.Read, Int -> ListProcessingJobs -> ShowS
[ListProcessingJobs] -> ShowS
ListProcessingJobs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProcessingJobs] -> ShowS
$cshowList :: [ListProcessingJobs] -> ShowS
show :: ListProcessingJobs -> String
$cshow :: ListProcessingJobs -> String
showsPrec :: Int -> ListProcessingJobs -> ShowS
$cshowsPrec :: Int -> ListProcessingJobs -> ShowS
Prelude.Show, forall x. Rep ListProcessingJobs x -> ListProcessingJobs
forall x. ListProcessingJobs -> Rep ListProcessingJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListProcessingJobs x -> ListProcessingJobs
$cfrom :: forall x. ListProcessingJobs -> Rep ListProcessingJobs x
Prelude.Generic)
newListProcessingJobs ::
ListProcessingJobs
newListProcessingJobs :: ListProcessingJobs
newListProcessingJobs =
ListProcessingJobs'
{ $sel:creationTimeAfter:ListProcessingJobs' :: Maybe POSIX
creationTimeAfter =
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimeBefore:ListProcessingJobs' :: Maybe POSIX
creationTimeBefore = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTimeAfter:ListProcessingJobs' :: Maybe POSIX
lastModifiedTimeAfter = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTimeBefore:ListProcessingJobs' :: Maybe POSIX
lastModifiedTimeBefore = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListProcessingJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nameContains:ListProcessingJobs' :: Maybe Text
nameContains = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListProcessingJobs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:ListProcessingJobs' :: Maybe SortBy
sortBy = forall a. Maybe a
Prelude.Nothing,
$sel:sortOrder:ListProcessingJobs' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing,
$sel:statusEquals:ListProcessingJobs' :: Maybe ProcessingJobStatus
statusEquals = forall a. Maybe a
Prelude.Nothing
}
listProcessingJobs_creationTimeAfter :: Lens.Lens' ListProcessingJobs (Prelude.Maybe Prelude.UTCTime)
listProcessingJobs_creationTimeAfter :: Lens' ListProcessingJobs (Maybe UTCTime)
listProcessingJobs_creationTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe POSIX
a -> ListProcessingJobs
s {$sel:creationTimeAfter:ListProcessingJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListProcessingJobs) 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
listProcessingJobs_creationTimeBefore :: Lens.Lens' ListProcessingJobs (Prelude.Maybe Prelude.UTCTime)
listProcessingJobs_creationTimeBefore :: Lens' ListProcessingJobs (Maybe UTCTime)
listProcessingJobs_creationTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe POSIX
a -> ListProcessingJobs
s {$sel:creationTimeBefore:ListProcessingJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListProcessingJobs) 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
listProcessingJobs_lastModifiedTimeAfter :: Lens.Lens' ListProcessingJobs (Prelude.Maybe Prelude.UTCTime)
listProcessingJobs_lastModifiedTimeAfter :: Lens' ListProcessingJobs (Maybe UTCTime)
listProcessingJobs_lastModifiedTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe POSIX
a -> ListProcessingJobs
s {$sel:lastModifiedTimeAfter:ListProcessingJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListProcessingJobs) 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
listProcessingJobs_lastModifiedTimeBefore :: Lens.Lens' ListProcessingJobs (Prelude.Maybe Prelude.UTCTime)
listProcessingJobs_lastModifiedTimeBefore :: Lens' ListProcessingJobs (Maybe UTCTime)
listProcessingJobs_lastModifiedTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe POSIX
a -> ListProcessingJobs
s {$sel:lastModifiedTimeBefore:ListProcessingJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListProcessingJobs) 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
listProcessingJobs_maxResults :: Lens.Lens' ListProcessingJobs (Prelude.Maybe Prelude.Natural)
listProcessingJobs_maxResults :: Lens' ListProcessingJobs (Maybe Natural)
listProcessingJobs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListProcessingJobs' :: ListProcessingJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe Natural
a -> ListProcessingJobs
s {$sel:maxResults:ListProcessingJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListProcessingJobs)
listProcessingJobs_nameContains :: Lens.Lens' ListProcessingJobs (Prelude.Maybe Prelude.Text)
listProcessingJobs_nameContains :: Lens' ListProcessingJobs (Maybe Text)
listProcessingJobs_nameContains = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListProcessingJobs' :: ListProcessingJobs -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe Text
a -> ListProcessingJobs
s {$sel:nameContains:ListProcessingJobs' :: Maybe Text
nameContains = Maybe Text
a} :: ListProcessingJobs)
listProcessingJobs_nextToken :: Lens.Lens' ListProcessingJobs (Prelude.Maybe Prelude.Text)
listProcessingJobs_nextToken :: Lens' ListProcessingJobs (Maybe Text)
listProcessingJobs_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProcessingJobs' :: ListProcessingJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe Text
a -> ListProcessingJobs
s {$sel:nextToken:ListProcessingJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListProcessingJobs)
listProcessingJobs_sortBy :: Lens.Lens' ListProcessingJobs (Prelude.Maybe SortBy)
listProcessingJobs_sortBy :: Lens' ListProcessingJobs (Maybe SortBy)
listProcessingJobs_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe SortBy
sortBy :: Maybe SortBy
$sel:sortBy:ListProcessingJobs' :: ListProcessingJobs -> Maybe SortBy
sortBy} -> Maybe SortBy
sortBy) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe SortBy
a -> ListProcessingJobs
s {$sel:sortBy:ListProcessingJobs' :: Maybe SortBy
sortBy = Maybe SortBy
a} :: ListProcessingJobs)
listProcessingJobs_sortOrder :: Lens.Lens' ListProcessingJobs (Prelude.Maybe SortOrder)
listProcessingJobs_sortOrder :: Lens' ListProcessingJobs (Maybe SortOrder)
listProcessingJobs_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListProcessingJobs' :: ListProcessingJobs -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe SortOrder
a -> ListProcessingJobs
s {$sel:sortOrder:ListProcessingJobs' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListProcessingJobs)
listProcessingJobs_statusEquals :: Lens.Lens' ListProcessingJobs (Prelude.Maybe ProcessingJobStatus)
listProcessingJobs_statusEquals :: Lens' ListProcessingJobs (Maybe ProcessingJobStatus)
listProcessingJobs_statusEquals = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobs' {Maybe ProcessingJobStatus
statusEquals :: Maybe ProcessingJobStatus
$sel:statusEquals:ListProcessingJobs' :: ListProcessingJobs -> Maybe ProcessingJobStatus
statusEquals} -> Maybe ProcessingJobStatus
statusEquals) (\s :: ListProcessingJobs
s@ListProcessingJobs' {} Maybe ProcessingJobStatus
a -> ListProcessingJobs
s {$sel:statusEquals:ListProcessingJobs' :: Maybe ProcessingJobStatus
statusEquals = Maybe ProcessingJobStatus
a} :: ListProcessingJobs)
instance Core.AWSPager ListProcessingJobs where
page :: ListProcessingJobs
-> AWSResponse ListProcessingJobs -> Maybe ListProcessingJobs
page ListProcessingJobs
rq AWSResponse ListProcessingJobs
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListProcessingJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListProcessingJobsResponse (Maybe Text)
listProcessingJobsResponse_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 ListProcessingJobs
rs
forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListProcessingJobsResponse [ProcessingJobSummary]
listProcessingJobsResponse_processingJobSummaries
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListProcessingJobs
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListProcessingJobs (Maybe Text)
listProcessingJobs_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListProcessingJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListProcessingJobsResponse (Maybe Text)
listProcessingJobsResponse_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 ListProcessingJobs where
type
AWSResponse ListProcessingJobs =
ListProcessingJobsResponse
request :: (Service -> Service)
-> ListProcessingJobs -> Request ListProcessingJobs
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListProcessingJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListProcessingJobs)))
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 -> [ProcessingJobSummary] -> ListProcessingJobsResponse
ListProcessingJobsResponse'
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
"ProcessingJobSummaries"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListProcessingJobs where
hashWithSalt :: Int -> ListProcessingJobs -> Int
hashWithSalt Int
_salt ListProcessingJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ProcessingJobStatus
Maybe SortBy
Maybe SortOrder
statusEquals :: Maybe ProcessingJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe SortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListProcessingJobs' :: ListProcessingJobs -> Maybe ProcessingJobStatus
$sel:sortOrder:ListProcessingJobs' :: ListProcessingJobs -> Maybe SortOrder
$sel:sortBy:ListProcessingJobs' :: ListProcessingJobs -> Maybe SortBy
$sel:nextToken:ListProcessingJobs' :: ListProcessingJobs -> Maybe Text
$sel:nameContains:ListProcessingJobs' :: ListProcessingJobs -> Maybe Text
$sel:maxResults:ListProcessingJobs' :: ListProcessingJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:creationTimeBefore:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:creationTimeAfter:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTimeAfter
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTimeBefore
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTimeAfter
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTimeBefore
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nameContains
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortBy
sortBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrder
sortOrder
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProcessingJobStatus
statusEquals
instance Prelude.NFData ListProcessingJobs where
rnf :: ListProcessingJobs -> ()
rnf ListProcessingJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ProcessingJobStatus
Maybe SortBy
Maybe SortOrder
statusEquals :: Maybe ProcessingJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe SortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListProcessingJobs' :: ListProcessingJobs -> Maybe ProcessingJobStatus
$sel:sortOrder:ListProcessingJobs' :: ListProcessingJobs -> Maybe SortOrder
$sel:sortBy:ListProcessingJobs' :: ListProcessingJobs -> Maybe SortBy
$sel:nextToken:ListProcessingJobs' :: ListProcessingJobs -> Maybe Text
$sel:nameContains:ListProcessingJobs' :: ListProcessingJobs -> Maybe Text
$sel:maxResults:ListProcessingJobs' :: ListProcessingJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:creationTimeBefore:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:creationTimeAfter:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTimeAfter
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTimeBefore
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTimeAfter
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTimeBefore
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
nameContains
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 SortBy
sortBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortOrder
sortOrder
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProcessingJobStatus
statusEquals
instance Data.ToHeaders ListProcessingJobs where
toHeaders :: ListProcessingJobs -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"SageMaker.ListProcessingJobs" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ListProcessingJobs where
toJSON :: ListProcessingJobs -> Value
toJSON ListProcessingJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ProcessingJobStatus
Maybe SortBy
Maybe SortOrder
statusEquals :: Maybe ProcessingJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe SortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListProcessingJobs' :: ListProcessingJobs -> Maybe ProcessingJobStatus
$sel:sortOrder:ListProcessingJobs' :: ListProcessingJobs -> Maybe SortOrder
$sel:sortBy:ListProcessingJobs' :: ListProcessingJobs -> Maybe SortBy
$sel:nextToken:ListProcessingJobs' :: ListProcessingJobs -> Maybe Text
$sel:nameContains:ListProcessingJobs' :: ListProcessingJobs -> Maybe Text
$sel:maxResults:ListProcessingJobs' :: ListProcessingJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:creationTimeBefore:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
$sel:creationTimeAfter:ListProcessingJobs' :: ListProcessingJobs -> Maybe POSIX
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"CreationTimeAfter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeAfter,
(Key
"CreationTimeBefore" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeBefore,
(Key
"LastModifiedTimeAfter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeAfter,
(Key
"LastModifiedTimeBefore" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeBefore,
(Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"NameContains" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nameContains,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Key
"SortBy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortBy
sortBy,
(Key
"SortOrder" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder,
(Key
"StatusEquals" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProcessingJobStatus
statusEquals
]
)
instance Data.ToPath ListProcessingJobs where
toPath :: ListProcessingJobs -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListProcessingJobs where
toQuery :: ListProcessingJobs -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListProcessingJobsResponse = ListProcessingJobsResponse'
{
ListProcessingJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProcessingJobsResponse -> Int
httpStatus :: Prelude.Int,
ListProcessingJobsResponse -> [ProcessingJobSummary]
processingJobSummaries :: [ProcessingJobSummary]
}
deriving (ListProcessingJobsResponse -> ListProcessingJobsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProcessingJobsResponse -> ListProcessingJobsResponse -> Bool
$c/= :: ListProcessingJobsResponse -> ListProcessingJobsResponse -> Bool
== :: ListProcessingJobsResponse -> ListProcessingJobsResponse -> Bool
$c== :: ListProcessingJobsResponse -> ListProcessingJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListProcessingJobsResponse]
ReadPrec ListProcessingJobsResponse
Int -> ReadS ListProcessingJobsResponse
ReadS [ListProcessingJobsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProcessingJobsResponse]
$creadListPrec :: ReadPrec [ListProcessingJobsResponse]
readPrec :: ReadPrec ListProcessingJobsResponse
$creadPrec :: ReadPrec ListProcessingJobsResponse
readList :: ReadS [ListProcessingJobsResponse]
$creadList :: ReadS [ListProcessingJobsResponse]
readsPrec :: Int -> ReadS ListProcessingJobsResponse
$creadsPrec :: Int -> ReadS ListProcessingJobsResponse
Prelude.Read, Int -> ListProcessingJobsResponse -> ShowS
[ListProcessingJobsResponse] -> ShowS
ListProcessingJobsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProcessingJobsResponse] -> ShowS
$cshowList :: [ListProcessingJobsResponse] -> ShowS
show :: ListProcessingJobsResponse -> String
$cshow :: ListProcessingJobsResponse -> String
showsPrec :: Int -> ListProcessingJobsResponse -> ShowS
$cshowsPrec :: Int -> ListProcessingJobsResponse -> ShowS
Prelude.Show, forall x.
Rep ListProcessingJobsResponse x -> ListProcessingJobsResponse
forall x.
ListProcessingJobsResponse -> Rep ListProcessingJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProcessingJobsResponse x -> ListProcessingJobsResponse
$cfrom :: forall x.
ListProcessingJobsResponse -> Rep ListProcessingJobsResponse x
Prelude.Generic)
newListProcessingJobsResponse ::
Prelude.Int ->
ListProcessingJobsResponse
newListProcessingJobsResponse :: Int -> ListProcessingJobsResponse
newListProcessingJobsResponse Int
pHttpStatus_ =
ListProcessingJobsResponse'
{ $sel:nextToken:ListProcessingJobsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListProcessingJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:processingJobSummaries:ListProcessingJobsResponse' :: [ProcessingJobSummary]
processingJobSummaries = forall a. Monoid a => a
Prelude.mempty
}
listProcessingJobsResponse_nextToken :: Lens.Lens' ListProcessingJobsResponse (Prelude.Maybe Prelude.Text)
listProcessingJobsResponse_nextToken :: Lens' ListProcessingJobsResponse (Maybe Text)
listProcessingJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProcessingJobsResponse' :: ListProcessingJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProcessingJobsResponse
s@ListProcessingJobsResponse' {} Maybe Text
a -> ListProcessingJobsResponse
s {$sel:nextToken:ListProcessingJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListProcessingJobsResponse)
listProcessingJobsResponse_httpStatus :: Lens.Lens' ListProcessingJobsResponse Prelude.Int
listProcessingJobsResponse_httpStatus :: Lens' ListProcessingJobsResponse Int
listProcessingJobsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListProcessingJobsResponse' :: ListProcessingJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListProcessingJobsResponse
s@ListProcessingJobsResponse' {} Int
a -> ListProcessingJobsResponse
s {$sel:httpStatus:ListProcessingJobsResponse' :: Int
httpStatus = Int
a} :: ListProcessingJobsResponse)
listProcessingJobsResponse_processingJobSummaries :: Lens.Lens' ListProcessingJobsResponse [ProcessingJobSummary]
listProcessingJobsResponse_processingJobSummaries :: Lens' ListProcessingJobsResponse [ProcessingJobSummary]
listProcessingJobsResponse_processingJobSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProcessingJobsResponse' {[ProcessingJobSummary]
processingJobSummaries :: [ProcessingJobSummary]
$sel:processingJobSummaries:ListProcessingJobsResponse' :: ListProcessingJobsResponse -> [ProcessingJobSummary]
processingJobSummaries} -> [ProcessingJobSummary]
processingJobSummaries) (\s :: ListProcessingJobsResponse
s@ListProcessingJobsResponse' {} [ProcessingJobSummary]
a -> ListProcessingJobsResponse
s {$sel:processingJobSummaries:ListProcessingJobsResponse' :: [ProcessingJobSummary]
processingJobSummaries = [ProcessingJobSummary]
a} :: ListProcessingJobsResponse) 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 ListProcessingJobsResponse where
rnf :: ListProcessingJobsResponse -> ()
rnf ListProcessingJobsResponse' {Int
[ProcessingJobSummary]
Maybe Text
processingJobSummaries :: [ProcessingJobSummary]
httpStatus :: Int
nextToken :: Maybe Text
$sel:processingJobSummaries:ListProcessingJobsResponse' :: ListProcessingJobsResponse -> [ProcessingJobSummary]
$sel:httpStatus:ListProcessingJobsResponse' :: ListProcessingJobsResponse -> Int
$sel:nextToken:ListProcessingJobsResponse' :: ListProcessingJobsResponse -> 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 [ProcessingJobSummary]
processingJobSummaries