{-# 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.ListInferenceRecommendationsJobs
(
ListInferenceRecommendationsJobs (..),
newListInferenceRecommendationsJobs,
listInferenceRecommendationsJobs_creationTimeAfter,
listInferenceRecommendationsJobs_creationTimeBefore,
listInferenceRecommendationsJobs_lastModifiedTimeAfter,
listInferenceRecommendationsJobs_lastModifiedTimeBefore,
listInferenceRecommendationsJobs_maxResults,
listInferenceRecommendationsJobs_nameContains,
listInferenceRecommendationsJobs_nextToken,
listInferenceRecommendationsJobs_sortBy,
listInferenceRecommendationsJobs_sortOrder,
listInferenceRecommendationsJobs_statusEquals,
ListInferenceRecommendationsJobsResponse (..),
newListInferenceRecommendationsJobsResponse,
listInferenceRecommendationsJobsResponse_nextToken,
listInferenceRecommendationsJobsResponse_httpStatus,
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs,
)
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 ListInferenceRecommendationsJobs = ListInferenceRecommendationsJobs'
{
ListInferenceRecommendationsJobs -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Data.POSIX,
ListInferenceRecommendationsJobs -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Data.POSIX,
ListInferenceRecommendationsJobs -> Maybe POSIX
lastModifiedTimeAfter :: Prelude.Maybe Data.POSIX,
ListInferenceRecommendationsJobs -> Maybe POSIX
lastModifiedTimeBefore :: Prelude.Maybe Data.POSIX,
ListInferenceRecommendationsJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListInferenceRecommendationsJobs -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
ListInferenceRecommendationsJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
sortBy :: Prelude.Maybe ListInferenceRecommendationsJobsSortBy,
ListInferenceRecommendationsJobs -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
statusEquals :: Prelude.Maybe RecommendationJobStatus
}
deriving (ListInferenceRecommendationsJobs
-> ListInferenceRecommendationsJobs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInferenceRecommendationsJobs
-> ListInferenceRecommendationsJobs -> Bool
$c/= :: ListInferenceRecommendationsJobs
-> ListInferenceRecommendationsJobs -> Bool
== :: ListInferenceRecommendationsJobs
-> ListInferenceRecommendationsJobs -> Bool
$c== :: ListInferenceRecommendationsJobs
-> ListInferenceRecommendationsJobs -> Bool
Prelude.Eq, ReadPrec [ListInferenceRecommendationsJobs]
ReadPrec ListInferenceRecommendationsJobs
Int -> ReadS ListInferenceRecommendationsJobs
ReadS [ListInferenceRecommendationsJobs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInferenceRecommendationsJobs]
$creadListPrec :: ReadPrec [ListInferenceRecommendationsJobs]
readPrec :: ReadPrec ListInferenceRecommendationsJobs
$creadPrec :: ReadPrec ListInferenceRecommendationsJobs
readList :: ReadS [ListInferenceRecommendationsJobs]
$creadList :: ReadS [ListInferenceRecommendationsJobs]
readsPrec :: Int -> ReadS ListInferenceRecommendationsJobs
$creadsPrec :: Int -> ReadS ListInferenceRecommendationsJobs
Prelude.Read, Int -> ListInferenceRecommendationsJobs -> ShowS
[ListInferenceRecommendationsJobs] -> ShowS
ListInferenceRecommendationsJobs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInferenceRecommendationsJobs] -> ShowS
$cshowList :: [ListInferenceRecommendationsJobs] -> ShowS
show :: ListInferenceRecommendationsJobs -> String
$cshow :: ListInferenceRecommendationsJobs -> String
showsPrec :: Int -> ListInferenceRecommendationsJobs -> ShowS
$cshowsPrec :: Int -> ListInferenceRecommendationsJobs -> ShowS
Prelude.Show, forall x.
Rep ListInferenceRecommendationsJobs x
-> ListInferenceRecommendationsJobs
forall x.
ListInferenceRecommendationsJobs
-> Rep ListInferenceRecommendationsJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInferenceRecommendationsJobs x
-> ListInferenceRecommendationsJobs
$cfrom :: forall x.
ListInferenceRecommendationsJobs
-> Rep ListInferenceRecommendationsJobs x
Prelude.Generic)
newListInferenceRecommendationsJobs ::
ListInferenceRecommendationsJobs
newListInferenceRecommendationsJobs :: ListInferenceRecommendationsJobs
newListInferenceRecommendationsJobs =
ListInferenceRecommendationsJobs'
{ $sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: Maybe POSIX
creationTimeAfter =
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: Maybe POSIX
creationTimeBefore = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: Maybe POSIX
lastModifiedTimeAfter = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: Maybe POSIX
lastModifiedTimeBefore = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListInferenceRecommendationsJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nameContains:ListInferenceRecommendationsJobs' :: Maybe Text
nameContains = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListInferenceRecommendationsJobs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:ListInferenceRecommendationsJobs' :: Maybe ListInferenceRecommendationsJobsSortBy
sortBy = forall a. Maybe a
Prelude.Nothing,
$sel:sortOrder:ListInferenceRecommendationsJobs' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing,
$sel:statusEquals:ListInferenceRecommendationsJobs' :: Maybe RecommendationJobStatus
statusEquals = forall a. Maybe a
Prelude.Nothing
}
listInferenceRecommendationsJobs_creationTimeAfter :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.UTCTime)
listInferenceRecommendationsJobs_creationTimeAfter :: Lens' ListInferenceRecommendationsJobs (Maybe UTCTime)
listInferenceRecommendationsJobs_creationTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe POSIX
a -> ListInferenceRecommendationsJobs
s {$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListInferenceRecommendationsJobs) 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
listInferenceRecommendationsJobs_creationTimeBefore :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.UTCTime)
listInferenceRecommendationsJobs_creationTimeBefore :: Lens' ListInferenceRecommendationsJobs (Maybe UTCTime)
listInferenceRecommendationsJobs_creationTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe POSIX
a -> ListInferenceRecommendationsJobs
s {$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListInferenceRecommendationsJobs) 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
listInferenceRecommendationsJobs_lastModifiedTimeAfter :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.UTCTime)
listInferenceRecommendationsJobs_lastModifiedTimeAfter :: Lens' ListInferenceRecommendationsJobs (Maybe UTCTime)
listInferenceRecommendationsJobs_lastModifiedTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe POSIX
a -> ListInferenceRecommendationsJobs
s {$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListInferenceRecommendationsJobs) 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
listInferenceRecommendationsJobs_lastModifiedTimeBefore :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.UTCTime)
listInferenceRecommendationsJobs_lastModifiedTimeBefore :: Lens' ListInferenceRecommendationsJobs (Maybe UTCTime)
listInferenceRecommendationsJobs_lastModifiedTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe POSIX
a -> ListInferenceRecommendationsJobs
s {$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListInferenceRecommendationsJobs) 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
listInferenceRecommendationsJobs_maxResults :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.Natural)
listInferenceRecommendationsJobs_maxResults :: Lens' ListInferenceRecommendationsJobs (Maybe Natural)
listInferenceRecommendationsJobs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe Natural
a -> ListInferenceRecommendationsJobs
s {$sel:maxResults:ListInferenceRecommendationsJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListInferenceRecommendationsJobs)
listInferenceRecommendationsJobs_nameContains :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.Text)
listInferenceRecommendationsJobs_nameContains :: Lens' ListInferenceRecommendationsJobs (Maybe Text)
listInferenceRecommendationsJobs_nameContains = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe Text
a -> ListInferenceRecommendationsJobs
s {$sel:nameContains:ListInferenceRecommendationsJobs' :: Maybe Text
nameContains = Maybe Text
a} :: ListInferenceRecommendationsJobs)
listInferenceRecommendationsJobs_nextToken :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe Prelude.Text)
listInferenceRecommendationsJobs_nextToken :: Lens' ListInferenceRecommendationsJobs (Maybe Text)
listInferenceRecommendationsJobs_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe Text
a -> ListInferenceRecommendationsJobs
s {$sel:nextToken:ListInferenceRecommendationsJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListInferenceRecommendationsJobs)
listInferenceRecommendationsJobs_sortBy :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe ListInferenceRecommendationsJobsSortBy)
listInferenceRecommendationsJobs_sortBy :: Lens'
ListInferenceRecommendationsJobs
(Maybe ListInferenceRecommendationsJobsSortBy)
listInferenceRecommendationsJobs_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe ListInferenceRecommendationsJobsSortBy
sortBy :: Maybe ListInferenceRecommendationsJobsSortBy
$sel:sortBy:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
sortBy} -> Maybe ListInferenceRecommendationsJobsSortBy
sortBy) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe ListInferenceRecommendationsJobsSortBy
a -> ListInferenceRecommendationsJobs
s {$sel:sortBy:ListInferenceRecommendationsJobs' :: Maybe ListInferenceRecommendationsJobsSortBy
sortBy = Maybe ListInferenceRecommendationsJobsSortBy
a} :: ListInferenceRecommendationsJobs)
listInferenceRecommendationsJobs_sortOrder :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe SortOrder)
listInferenceRecommendationsJobs_sortOrder :: Lens' ListInferenceRecommendationsJobs (Maybe SortOrder)
listInferenceRecommendationsJobs_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe SortOrder
a -> ListInferenceRecommendationsJobs
s {$sel:sortOrder:ListInferenceRecommendationsJobs' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListInferenceRecommendationsJobs)
listInferenceRecommendationsJobs_statusEquals :: Lens.Lens' ListInferenceRecommendationsJobs (Prelude.Maybe RecommendationJobStatus)
listInferenceRecommendationsJobs_statusEquals :: Lens'
ListInferenceRecommendationsJobs (Maybe RecommendationJobStatus)
listInferenceRecommendationsJobs_statusEquals = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobs' {Maybe RecommendationJobStatus
statusEquals :: Maybe RecommendationJobStatus
$sel:statusEquals:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
statusEquals} -> Maybe RecommendationJobStatus
statusEquals) (\s :: ListInferenceRecommendationsJobs
s@ListInferenceRecommendationsJobs' {} Maybe RecommendationJobStatus
a -> ListInferenceRecommendationsJobs
s {$sel:statusEquals:ListInferenceRecommendationsJobs' :: Maybe RecommendationJobStatus
statusEquals = Maybe RecommendationJobStatus
a} :: ListInferenceRecommendationsJobs)
instance
Core.AWSPager
ListInferenceRecommendationsJobs
where
page :: ListInferenceRecommendationsJobs
-> AWSResponse ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobs
page ListInferenceRecommendationsJobs
rq AWSResponse ListInferenceRecommendationsJobs
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListInferenceRecommendationsJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListInferenceRecommendationsJobsResponse (Maybe Text)
listInferenceRecommendationsJobsResponse_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 ListInferenceRecommendationsJobs
rs
forall s a. s -> Getting a s a -> a
Lens.^. Lens'
ListInferenceRecommendationsJobsResponse
[InferenceRecommendationsJob]
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListInferenceRecommendationsJobs
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListInferenceRecommendationsJobs (Maybe Text)
listInferenceRecommendationsJobs_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListInferenceRecommendationsJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListInferenceRecommendationsJobsResponse (Maybe Text)
listInferenceRecommendationsJobsResponse_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
ListInferenceRecommendationsJobs
where
type
AWSResponse ListInferenceRecommendationsJobs =
ListInferenceRecommendationsJobsResponse
request :: (Service -> Service)
-> ListInferenceRecommendationsJobs
-> Request ListInferenceRecommendationsJobs
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 ListInferenceRecommendationsJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListInferenceRecommendationsJobs)))
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
-> [InferenceRecommendationsJob]
-> ListInferenceRecommendationsJobsResponse
ListInferenceRecommendationsJobsResponse'
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
"InferenceRecommendationsJobs"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
ListInferenceRecommendationsJobs
where
hashWithSalt :: Int -> ListInferenceRecommendationsJobs -> Int
hashWithSalt
Int
_salt
ListInferenceRecommendationsJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ListInferenceRecommendationsJobsSortBy
Maybe RecommendationJobStatus
Maybe SortOrder
statusEquals :: Maybe RecommendationJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe ListInferenceRecommendationsJobsSortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
$sel:sortOrder:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe SortOrder
$sel:sortBy:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
$sel:nextToken:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:nameContains:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:maxResults:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> 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 ListInferenceRecommendationsJobsSortBy
sortBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrder
sortOrder
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RecommendationJobStatus
statusEquals
instance
Prelude.NFData
ListInferenceRecommendationsJobs
where
rnf :: ListInferenceRecommendationsJobs -> ()
rnf ListInferenceRecommendationsJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ListInferenceRecommendationsJobsSortBy
Maybe RecommendationJobStatus
Maybe SortOrder
statusEquals :: Maybe RecommendationJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe ListInferenceRecommendationsJobsSortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
$sel:sortOrder:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe SortOrder
$sel:sortBy:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
$sel:nextToken:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:nameContains:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:maxResults:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> 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 ListInferenceRecommendationsJobsSortBy
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 RecommendationJobStatus
statusEquals
instance
Data.ToHeaders
ListInferenceRecommendationsJobs
where
toHeaders :: ListInferenceRecommendationsJobs -> 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.ListInferenceRecommendationsJobs" ::
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 ListInferenceRecommendationsJobs where
toJSON :: ListInferenceRecommendationsJobs -> Value
toJSON ListInferenceRecommendationsJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe ListInferenceRecommendationsJobsSortBy
Maybe RecommendationJobStatus
Maybe SortOrder
statusEquals :: Maybe RecommendationJobStatus
sortOrder :: Maybe SortOrder
sortBy :: Maybe ListInferenceRecommendationsJobsSortBy
nextToken :: Maybe Text
nameContains :: Maybe Text
maxResults :: Maybe Natural
lastModifiedTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:statusEquals:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe RecommendationJobStatus
$sel:sortOrder:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe SortOrder
$sel:sortBy:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs
-> Maybe ListInferenceRecommendationsJobsSortBy
$sel:nextToken:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:nameContains:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Text
$sel:maxResults:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe Natural
$sel:lastModifiedTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeBefore:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> Maybe POSIX
$sel:creationTimeAfter:ListInferenceRecommendationsJobs' :: ListInferenceRecommendationsJobs -> 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 ListInferenceRecommendationsJobsSortBy
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 RecommendationJobStatus
statusEquals
]
)
instance Data.ToPath ListInferenceRecommendationsJobs where
toPath :: ListInferenceRecommendationsJobs -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
ListInferenceRecommendationsJobs
where
toQuery :: ListInferenceRecommendationsJobs -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListInferenceRecommendationsJobsResponse = ListInferenceRecommendationsJobsResponse'
{
ListInferenceRecommendationsJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListInferenceRecommendationsJobsResponse -> Int
httpStatus :: Prelude.Int,
ListInferenceRecommendationsJobsResponse
-> [InferenceRecommendationsJob]
inferenceRecommendationsJobs :: [InferenceRecommendationsJob]
}
deriving (ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
$c/= :: ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
== :: ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
$c== :: ListInferenceRecommendationsJobsResponse
-> ListInferenceRecommendationsJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListInferenceRecommendationsJobsResponse]
ReadPrec ListInferenceRecommendationsJobsResponse
Int -> ReadS ListInferenceRecommendationsJobsResponse
ReadS [ListInferenceRecommendationsJobsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInferenceRecommendationsJobsResponse]
$creadListPrec :: ReadPrec [ListInferenceRecommendationsJobsResponse]
readPrec :: ReadPrec ListInferenceRecommendationsJobsResponse
$creadPrec :: ReadPrec ListInferenceRecommendationsJobsResponse
readList :: ReadS [ListInferenceRecommendationsJobsResponse]
$creadList :: ReadS [ListInferenceRecommendationsJobsResponse]
readsPrec :: Int -> ReadS ListInferenceRecommendationsJobsResponse
$creadsPrec :: Int -> ReadS ListInferenceRecommendationsJobsResponse
Prelude.Read, Int -> ListInferenceRecommendationsJobsResponse -> ShowS
[ListInferenceRecommendationsJobsResponse] -> ShowS
ListInferenceRecommendationsJobsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInferenceRecommendationsJobsResponse] -> ShowS
$cshowList :: [ListInferenceRecommendationsJobsResponse] -> ShowS
show :: ListInferenceRecommendationsJobsResponse -> String
$cshow :: ListInferenceRecommendationsJobsResponse -> String
showsPrec :: Int -> ListInferenceRecommendationsJobsResponse -> ShowS
$cshowsPrec :: Int -> ListInferenceRecommendationsJobsResponse -> ShowS
Prelude.Show, forall x.
Rep ListInferenceRecommendationsJobsResponse x
-> ListInferenceRecommendationsJobsResponse
forall x.
ListInferenceRecommendationsJobsResponse
-> Rep ListInferenceRecommendationsJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInferenceRecommendationsJobsResponse x
-> ListInferenceRecommendationsJobsResponse
$cfrom :: forall x.
ListInferenceRecommendationsJobsResponse
-> Rep ListInferenceRecommendationsJobsResponse x
Prelude.Generic)
newListInferenceRecommendationsJobsResponse ::
Prelude.Int ->
ListInferenceRecommendationsJobsResponse
newListInferenceRecommendationsJobsResponse :: Int -> ListInferenceRecommendationsJobsResponse
newListInferenceRecommendationsJobsResponse
Int
pHttpStatus_ =
ListInferenceRecommendationsJobsResponse'
{ $sel:nextToken:ListInferenceRecommendationsJobsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListInferenceRecommendationsJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:inferenceRecommendationsJobs:ListInferenceRecommendationsJobsResponse' :: [InferenceRecommendationsJob]
inferenceRecommendationsJobs =
forall a. Monoid a => a
Prelude.mempty
}
listInferenceRecommendationsJobsResponse_nextToken :: Lens.Lens' ListInferenceRecommendationsJobsResponse (Prelude.Maybe Prelude.Text)
listInferenceRecommendationsJobsResponse_nextToken :: Lens' ListInferenceRecommendationsJobsResponse (Maybe Text)
listInferenceRecommendationsJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInferenceRecommendationsJobsResponse' :: ListInferenceRecommendationsJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInferenceRecommendationsJobsResponse
s@ListInferenceRecommendationsJobsResponse' {} Maybe Text
a -> ListInferenceRecommendationsJobsResponse
s {$sel:nextToken:ListInferenceRecommendationsJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListInferenceRecommendationsJobsResponse)
listInferenceRecommendationsJobsResponse_httpStatus :: Lens.Lens' ListInferenceRecommendationsJobsResponse Prelude.Int
listInferenceRecommendationsJobsResponse_httpStatus :: Lens' ListInferenceRecommendationsJobsResponse Int
listInferenceRecommendationsJobsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListInferenceRecommendationsJobsResponse' :: ListInferenceRecommendationsJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListInferenceRecommendationsJobsResponse
s@ListInferenceRecommendationsJobsResponse' {} Int
a -> ListInferenceRecommendationsJobsResponse
s {$sel:httpStatus:ListInferenceRecommendationsJobsResponse' :: Int
httpStatus = Int
a} :: ListInferenceRecommendationsJobsResponse)
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs :: Lens.Lens' ListInferenceRecommendationsJobsResponse [InferenceRecommendationsJob]
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs :: Lens'
ListInferenceRecommendationsJobsResponse
[InferenceRecommendationsJob]
listInferenceRecommendationsJobsResponse_inferenceRecommendationsJobs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceRecommendationsJobsResponse' {[InferenceRecommendationsJob]
inferenceRecommendationsJobs :: [InferenceRecommendationsJob]
$sel:inferenceRecommendationsJobs:ListInferenceRecommendationsJobsResponse' :: ListInferenceRecommendationsJobsResponse
-> [InferenceRecommendationsJob]
inferenceRecommendationsJobs} -> [InferenceRecommendationsJob]
inferenceRecommendationsJobs) (\s :: ListInferenceRecommendationsJobsResponse
s@ListInferenceRecommendationsJobsResponse' {} [InferenceRecommendationsJob]
a -> ListInferenceRecommendationsJobsResponse
s {$sel:inferenceRecommendationsJobs:ListInferenceRecommendationsJobsResponse' :: [InferenceRecommendationsJob]
inferenceRecommendationsJobs = [InferenceRecommendationsJob]
a} :: ListInferenceRecommendationsJobsResponse) 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
ListInferenceRecommendationsJobsResponse
where
rnf :: ListInferenceRecommendationsJobsResponse -> ()
rnf ListInferenceRecommendationsJobsResponse' {Int
[InferenceRecommendationsJob]
Maybe Text
inferenceRecommendationsJobs :: [InferenceRecommendationsJob]
httpStatus :: Int
nextToken :: Maybe Text
$sel:inferenceRecommendationsJobs:ListInferenceRecommendationsJobsResponse' :: ListInferenceRecommendationsJobsResponse
-> [InferenceRecommendationsJob]
$sel:httpStatus:ListInferenceRecommendationsJobsResponse' :: ListInferenceRecommendationsJobsResponse -> Int
$sel:nextToken:ListInferenceRecommendationsJobsResponse' :: ListInferenceRecommendationsJobsResponse -> 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 [InferenceRecommendationsJob]
inferenceRecommendationsJobs