{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SageMaker.Types.InferenceRecommendationsJob 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 Amazonka.SageMaker.Types.RecommendationJobStatus
import Amazonka.SageMaker.Types.RecommendationJobType
data InferenceRecommendationsJob = InferenceRecommendationsJob'
{
InferenceRecommendationsJob -> Maybe POSIX
completionTime :: Prelude.Maybe Data.POSIX,
InferenceRecommendationsJob -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
InferenceRecommendationsJob -> Text
jobName :: Prelude.Text,
InferenceRecommendationsJob -> Text
jobDescription :: Prelude.Text,
InferenceRecommendationsJob -> RecommendationJobType
jobType :: RecommendationJobType,
InferenceRecommendationsJob -> Text
jobArn :: Prelude.Text,
InferenceRecommendationsJob -> RecommendationJobStatus
status :: RecommendationJobStatus,
InferenceRecommendationsJob -> POSIX
creationTime :: Data.POSIX,
InferenceRecommendationsJob -> Text
roleArn :: Prelude.Text,
InferenceRecommendationsJob -> POSIX
lastModifiedTime :: Data.POSIX
}
deriving (InferenceRecommendationsJob -> InferenceRecommendationsJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InferenceRecommendationsJob -> InferenceRecommendationsJob -> Bool
$c/= :: InferenceRecommendationsJob -> InferenceRecommendationsJob -> Bool
== :: InferenceRecommendationsJob -> InferenceRecommendationsJob -> Bool
$c== :: InferenceRecommendationsJob -> InferenceRecommendationsJob -> Bool
Prelude.Eq, ReadPrec [InferenceRecommendationsJob]
ReadPrec InferenceRecommendationsJob
Int -> ReadS InferenceRecommendationsJob
ReadS [InferenceRecommendationsJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InferenceRecommendationsJob]
$creadListPrec :: ReadPrec [InferenceRecommendationsJob]
readPrec :: ReadPrec InferenceRecommendationsJob
$creadPrec :: ReadPrec InferenceRecommendationsJob
readList :: ReadS [InferenceRecommendationsJob]
$creadList :: ReadS [InferenceRecommendationsJob]
readsPrec :: Int -> ReadS InferenceRecommendationsJob
$creadsPrec :: Int -> ReadS InferenceRecommendationsJob
Prelude.Read, Int -> InferenceRecommendationsJob -> ShowS
[InferenceRecommendationsJob] -> ShowS
InferenceRecommendationsJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InferenceRecommendationsJob] -> ShowS
$cshowList :: [InferenceRecommendationsJob] -> ShowS
show :: InferenceRecommendationsJob -> String
$cshow :: InferenceRecommendationsJob -> String
showsPrec :: Int -> InferenceRecommendationsJob -> ShowS
$cshowsPrec :: Int -> InferenceRecommendationsJob -> ShowS
Prelude.Show, forall x.
Rep InferenceRecommendationsJob x -> InferenceRecommendationsJob
forall x.
InferenceRecommendationsJob -> Rep InferenceRecommendationsJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InferenceRecommendationsJob x -> InferenceRecommendationsJob
$cfrom :: forall x.
InferenceRecommendationsJob -> Rep InferenceRecommendationsJob x
Prelude.Generic)
newInferenceRecommendationsJob ::
Prelude.Text ->
Prelude.Text ->
RecommendationJobType ->
Prelude.Text ->
RecommendationJobStatus ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.UTCTime ->
InferenceRecommendationsJob
newInferenceRecommendationsJob :: Text
-> Text
-> RecommendationJobType
-> Text
-> RecommendationJobStatus
-> UTCTime
-> Text
-> UTCTime
-> InferenceRecommendationsJob
newInferenceRecommendationsJob
Text
pJobName_
Text
pJobDescription_
RecommendationJobType
pJobType_
Text
pJobArn_
RecommendationJobStatus
pStatus_
UTCTime
pCreationTime_
Text
pRoleArn_
UTCTime
pLastModifiedTime_ =
InferenceRecommendationsJob'
{ $sel:completionTime:InferenceRecommendationsJob' :: Maybe POSIX
completionTime =
forall a. Maybe a
Prelude.Nothing,
$sel:failureReason:InferenceRecommendationsJob' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
$sel:jobName:InferenceRecommendationsJob' :: Text
jobName = Text
pJobName_,
$sel:jobDescription:InferenceRecommendationsJob' :: Text
jobDescription = Text
pJobDescription_,
$sel:jobType:InferenceRecommendationsJob' :: RecommendationJobType
jobType = RecommendationJobType
pJobType_,
$sel:jobArn:InferenceRecommendationsJob' :: Text
jobArn = Text
pJobArn_,
$sel:status:InferenceRecommendationsJob' :: RecommendationJobStatus
status = RecommendationJobStatus
pStatus_,
$sel:creationTime:InferenceRecommendationsJob' :: POSIX
creationTime =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
$sel:roleArn:InferenceRecommendationsJob' :: Text
roleArn = Text
pRoleArn_,
$sel:lastModifiedTime:InferenceRecommendationsJob' :: POSIX
lastModifiedTime =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastModifiedTime_
}
inferenceRecommendationsJob_completionTime :: Lens.Lens' InferenceRecommendationsJob (Prelude.Maybe Prelude.UTCTime)
inferenceRecommendationsJob_completionTime :: Lens' InferenceRecommendationsJob (Maybe UTCTime)
inferenceRecommendationsJob_completionTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {Maybe POSIX
completionTime :: Maybe POSIX
$sel:completionTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Maybe POSIX
completionTime} -> Maybe POSIX
completionTime) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} Maybe POSIX
a -> InferenceRecommendationsJob
s {$sel:completionTime:InferenceRecommendationsJob' :: Maybe POSIX
completionTime = Maybe POSIX
a} :: InferenceRecommendationsJob) 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
inferenceRecommendationsJob_failureReason :: Lens.Lens' InferenceRecommendationsJob (Prelude.Maybe Prelude.Text)
inferenceRecommendationsJob_failureReason :: Lens' InferenceRecommendationsJob (Maybe Text)
inferenceRecommendationsJob_failureReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} Maybe Text
a -> InferenceRecommendationsJob
s {$sel:failureReason:InferenceRecommendationsJob' :: Maybe Text
failureReason = Maybe Text
a} :: InferenceRecommendationsJob)
inferenceRecommendationsJob_jobName :: Lens.Lens' InferenceRecommendationsJob Prelude.Text
inferenceRecommendationsJob_jobName :: Lens' InferenceRecommendationsJob Text
inferenceRecommendationsJob_jobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {Text
jobName :: Text
$sel:jobName:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
jobName} -> Text
jobName) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} Text
a -> InferenceRecommendationsJob
s {$sel:jobName:InferenceRecommendationsJob' :: Text
jobName = Text
a} :: InferenceRecommendationsJob)
inferenceRecommendationsJob_jobDescription :: Lens.Lens' InferenceRecommendationsJob Prelude.Text
inferenceRecommendationsJob_jobDescription :: Lens' InferenceRecommendationsJob Text
inferenceRecommendationsJob_jobDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {Text
jobDescription :: Text
$sel:jobDescription:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
jobDescription} -> Text
jobDescription) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} Text
a -> InferenceRecommendationsJob
s {$sel:jobDescription:InferenceRecommendationsJob' :: Text
jobDescription = Text
a} :: InferenceRecommendationsJob)
inferenceRecommendationsJob_jobType :: Lens.Lens' InferenceRecommendationsJob RecommendationJobType
inferenceRecommendationsJob_jobType :: Lens' InferenceRecommendationsJob RecommendationJobType
inferenceRecommendationsJob_jobType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {RecommendationJobType
jobType :: RecommendationJobType
$sel:jobType:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> RecommendationJobType
jobType} -> RecommendationJobType
jobType) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} RecommendationJobType
a -> InferenceRecommendationsJob
s {$sel:jobType:InferenceRecommendationsJob' :: RecommendationJobType
jobType = RecommendationJobType
a} :: InferenceRecommendationsJob)
inferenceRecommendationsJob_jobArn :: Lens.Lens' InferenceRecommendationsJob Prelude.Text
inferenceRecommendationsJob_jobArn :: Lens' InferenceRecommendationsJob Text
inferenceRecommendationsJob_jobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {Text
jobArn :: Text
$sel:jobArn:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
jobArn} -> Text
jobArn) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} Text
a -> InferenceRecommendationsJob
s {$sel:jobArn:InferenceRecommendationsJob' :: Text
jobArn = Text
a} :: InferenceRecommendationsJob)
inferenceRecommendationsJob_status :: Lens.Lens' InferenceRecommendationsJob RecommendationJobStatus
inferenceRecommendationsJob_status :: Lens' InferenceRecommendationsJob RecommendationJobStatus
inferenceRecommendationsJob_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {RecommendationJobStatus
status :: RecommendationJobStatus
$sel:status:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> RecommendationJobStatus
status} -> RecommendationJobStatus
status) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} RecommendationJobStatus
a -> InferenceRecommendationsJob
s {$sel:status:InferenceRecommendationsJob' :: RecommendationJobStatus
status = RecommendationJobStatus
a} :: InferenceRecommendationsJob)
inferenceRecommendationsJob_creationTime :: Lens.Lens' InferenceRecommendationsJob Prelude.UTCTime
inferenceRecommendationsJob_creationTime :: Lens' InferenceRecommendationsJob UTCTime
inferenceRecommendationsJob_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {POSIX
creationTime :: POSIX
$sel:creationTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> POSIX
creationTime} -> POSIX
creationTime) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} POSIX
a -> InferenceRecommendationsJob
s {$sel:creationTime:InferenceRecommendationsJob' :: POSIX
creationTime = POSIX
a} :: InferenceRecommendationsJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
inferenceRecommendationsJob_roleArn :: Lens.Lens' InferenceRecommendationsJob Prelude.Text
inferenceRecommendationsJob_roleArn :: Lens' InferenceRecommendationsJob Text
inferenceRecommendationsJob_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {Text
roleArn :: Text
$sel:roleArn:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
roleArn} -> Text
roleArn) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} Text
a -> InferenceRecommendationsJob
s {$sel:roleArn:InferenceRecommendationsJob' :: Text
roleArn = Text
a} :: InferenceRecommendationsJob)
inferenceRecommendationsJob_lastModifiedTime :: Lens.Lens' InferenceRecommendationsJob Prelude.UTCTime
inferenceRecommendationsJob_lastModifiedTime :: Lens' InferenceRecommendationsJob UTCTime
inferenceRecommendationsJob_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InferenceRecommendationsJob' {POSIX
lastModifiedTime :: POSIX
$sel:lastModifiedTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> POSIX
lastModifiedTime} -> POSIX
lastModifiedTime) (\s :: InferenceRecommendationsJob
s@InferenceRecommendationsJob' {} POSIX
a -> InferenceRecommendationsJob
s {$sel:lastModifiedTime:InferenceRecommendationsJob' :: POSIX
lastModifiedTime = POSIX
a} :: InferenceRecommendationsJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance Data.FromJSON InferenceRecommendationsJob where
parseJSON :: Value -> Parser InferenceRecommendationsJob
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"InferenceRecommendationsJob"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Text
-> Text
-> RecommendationJobType
-> Text
-> RecommendationJobStatus
-> POSIX
-> Text
-> POSIX
-> InferenceRecommendationsJob
InferenceRecommendationsJob'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CompletionTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FailureReason")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"JobName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"JobDescription")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"JobType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"JobArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CreationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RoleArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"LastModifiedTime")
)
instance Prelude.Hashable InferenceRecommendationsJob where
hashWithSalt :: Int -> InferenceRecommendationsJob -> Int
hashWithSalt Int
_salt InferenceRecommendationsJob' {Maybe Text
Maybe POSIX
Text
POSIX
RecommendationJobStatus
RecommendationJobType
lastModifiedTime :: POSIX
roleArn :: Text
creationTime :: POSIX
status :: RecommendationJobStatus
jobArn :: Text
jobType :: RecommendationJobType
jobDescription :: Text
jobName :: Text
failureReason :: Maybe Text
completionTime :: Maybe POSIX
$sel:lastModifiedTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> POSIX
$sel:roleArn:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
$sel:creationTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> POSIX
$sel:status:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> RecommendationJobStatus
$sel:jobArn:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
$sel:jobType:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> RecommendationJobType
$sel:jobDescription:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
$sel:jobName:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
$sel:failureReason:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Maybe Text
$sel:completionTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Maybe POSIX
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
completionTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureReason
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
jobName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
jobDescription
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` RecommendationJobType
jobType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
jobArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` RecommendationJobStatus
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
roleArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
lastModifiedTime
instance Prelude.NFData InferenceRecommendationsJob where
rnf :: InferenceRecommendationsJob -> ()
rnf InferenceRecommendationsJob' {Maybe Text
Maybe POSIX
Text
POSIX
RecommendationJobStatus
RecommendationJobType
lastModifiedTime :: POSIX
roleArn :: Text
creationTime :: POSIX
status :: RecommendationJobStatus
jobArn :: Text
jobType :: RecommendationJobType
jobDescription :: Text
jobName :: Text
failureReason :: Maybe Text
completionTime :: Maybe POSIX
$sel:lastModifiedTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> POSIX
$sel:roleArn:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
$sel:creationTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> POSIX
$sel:status:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> RecommendationJobStatus
$sel:jobArn:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
$sel:jobType:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> RecommendationJobType
$sel:jobDescription:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
$sel:jobName:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Text
$sel:failureReason:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Maybe Text
$sel:completionTime:InferenceRecommendationsJob' :: InferenceRecommendationsJob -> Maybe POSIX
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
completionTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureReason
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
jobName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
jobDescription
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf RecommendationJobType
jobType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
jobArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf RecommendationJobStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
roleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
lastModifiedTime