{-# 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.RecommendationJobInferenceBenchmark 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.EndpointOutputConfiguration
import Amazonka.SageMaker.Types.ModelConfiguration
import Amazonka.SageMaker.Types.RecommendationMetrics
data RecommendationJobInferenceBenchmark = RecommendationJobInferenceBenchmark'
{ RecommendationJobInferenceBenchmark
-> Maybe EndpointOutputConfiguration
endpointConfiguration :: Prelude.Maybe EndpointOutputConfiguration,
RecommendationJobInferenceBenchmark -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
RecommendationJobInferenceBenchmark -> Maybe RecommendationMetrics
metrics :: Prelude.Maybe RecommendationMetrics,
RecommendationJobInferenceBenchmark -> ModelConfiguration
modelConfiguration :: ModelConfiguration
}
deriving (RecommendationJobInferenceBenchmark
-> RecommendationJobInferenceBenchmark -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RecommendationJobInferenceBenchmark
-> RecommendationJobInferenceBenchmark -> Bool
$c/= :: RecommendationJobInferenceBenchmark
-> RecommendationJobInferenceBenchmark -> Bool
== :: RecommendationJobInferenceBenchmark
-> RecommendationJobInferenceBenchmark -> Bool
$c== :: RecommendationJobInferenceBenchmark
-> RecommendationJobInferenceBenchmark -> Bool
Prelude.Eq, ReadPrec [RecommendationJobInferenceBenchmark]
ReadPrec RecommendationJobInferenceBenchmark
Int -> ReadS RecommendationJobInferenceBenchmark
ReadS [RecommendationJobInferenceBenchmark]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RecommendationJobInferenceBenchmark]
$creadListPrec :: ReadPrec [RecommendationJobInferenceBenchmark]
readPrec :: ReadPrec RecommendationJobInferenceBenchmark
$creadPrec :: ReadPrec RecommendationJobInferenceBenchmark
readList :: ReadS [RecommendationJobInferenceBenchmark]
$creadList :: ReadS [RecommendationJobInferenceBenchmark]
readsPrec :: Int -> ReadS RecommendationJobInferenceBenchmark
$creadsPrec :: Int -> ReadS RecommendationJobInferenceBenchmark
Prelude.Read, Int -> RecommendationJobInferenceBenchmark -> ShowS
[RecommendationJobInferenceBenchmark] -> ShowS
RecommendationJobInferenceBenchmark -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RecommendationJobInferenceBenchmark] -> ShowS
$cshowList :: [RecommendationJobInferenceBenchmark] -> ShowS
show :: RecommendationJobInferenceBenchmark -> String
$cshow :: RecommendationJobInferenceBenchmark -> String
showsPrec :: Int -> RecommendationJobInferenceBenchmark -> ShowS
$cshowsPrec :: Int -> RecommendationJobInferenceBenchmark -> ShowS
Prelude.Show, forall x.
Rep RecommendationJobInferenceBenchmark x
-> RecommendationJobInferenceBenchmark
forall x.
RecommendationJobInferenceBenchmark
-> Rep RecommendationJobInferenceBenchmark x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RecommendationJobInferenceBenchmark x
-> RecommendationJobInferenceBenchmark
$cfrom :: forall x.
RecommendationJobInferenceBenchmark
-> Rep RecommendationJobInferenceBenchmark x
Prelude.Generic)
newRecommendationJobInferenceBenchmark ::
ModelConfiguration ->
RecommendationJobInferenceBenchmark
newRecommendationJobInferenceBenchmark :: ModelConfiguration -> RecommendationJobInferenceBenchmark
newRecommendationJobInferenceBenchmark
ModelConfiguration
pModelConfiguration_ =
RecommendationJobInferenceBenchmark'
{ $sel:endpointConfiguration:RecommendationJobInferenceBenchmark' :: Maybe EndpointOutputConfiguration
endpointConfiguration =
forall a. Maybe a
Prelude.Nothing,
$sel:failureReason:RecommendationJobInferenceBenchmark' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
$sel:metrics:RecommendationJobInferenceBenchmark' :: Maybe RecommendationMetrics
metrics = forall a. Maybe a
Prelude.Nothing,
$sel:modelConfiguration:RecommendationJobInferenceBenchmark' :: ModelConfiguration
modelConfiguration =
ModelConfiguration
pModelConfiguration_
}
recommendationJobInferenceBenchmark_endpointConfiguration :: Lens.Lens' RecommendationJobInferenceBenchmark (Prelude.Maybe EndpointOutputConfiguration)
recommendationJobInferenceBenchmark_endpointConfiguration :: Lens'
RecommendationJobInferenceBenchmark
(Maybe EndpointOutputConfiguration)
recommendationJobInferenceBenchmark_endpointConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommendationJobInferenceBenchmark' {Maybe EndpointOutputConfiguration
endpointConfiguration :: Maybe EndpointOutputConfiguration
$sel:endpointConfiguration:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark
-> Maybe EndpointOutputConfiguration
endpointConfiguration} -> Maybe EndpointOutputConfiguration
endpointConfiguration) (\s :: RecommendationJobInferenceBenchmark
s@RecommendationJobInferenceBenchmark' {} Maybe EndpointOutputConfiguration
a -> RecommendationJobInferenceBenchmark
s {$sel:endpointConfiguration:RecommendationJobInferenceBenchmark' :: Maybe EndpointOutputConfiguration
endpointConfiguration = Maybe EndpointOutputConfiguration
a} :: RecommendationJobInferenceBenchmark)
recommendationJobInferenceBenchmark_failureReason :: Lens.Lens' RecommendationJobInferenceBenchmark (Prelude.Maybe Prelude.Text)
recommendationJobInferenceBenchmark_failureReason :: Lens' RecommendationJobInferenceBenchmark (Maybe Text)
recommendationJobInferenceBenchmark_failureReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommendationJobInferenceBenchmark' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: RecommendationJobInferenceBenchmark
s@RecommendationJobInferenceBenchmark' {} Maybe Text
a -> RecommendationJobInferenceBenchmark
s {$sel:failureReason:RecommendationJobInferenceBenchmark' :: Maybe Text
failureReason = Maybe Text
a} :: RecommendationJobInferenceBenchmark)
recommendationJobInferenceBenchmark_metrics :: Lens.Lens' RecommendationJobInferenceBenchmark (Prelude.Maybe RecommendationMetrics)
recommendationJobInferenceBenchmark_metrics :: Lens'
RecommendationJobInferenceBenchmark (Maybe RecommendationMetrics)
recommendationJobInferenceBenchmark_metrics = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommendationJobInferenceBenchmark' {Maybe RecommendationMetrics
metrics :: Maybe RecommendationMetrics
$sel:metrics:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> Maybe RecommendationMetrics
metrics} -> Maybe RecommendationMetrics
metrics) (\s :: RecommendationJobInferenceBenchmark
s@RecommendationJobInferenceBenchmark' {} Maybe RecommendationMetrics
a -> RecommendationJobInferenceBenchmark
s {$sel:metrics:RecommendationJobInferenceBenchmark' :: Maybe RecommendationMetrics
metrics = Maybe RecommendationMetrics
a} :: RecommendationJobInferenceBenchmark)
recommendationJobInferenceBenchmark_modelConfiguration :: Lens.Lens' RecommendationJobInferenceBenchmark ModelConfiguration
recommendationJobInferenceBenchmark_modelConfiguration :: Lens' RecommendationJobInferenceBenchmark ModelConfiguration
recommendationJobInferenceBenchmark_modelConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommendationJobInferenceBenchmark' {ModelConfiguration
modelConfiguration :: ModelConfiguration
$sel:modelConfiguration:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> ModelConfiguration
modelConfiguration} -> ModelConfiguration
modelConfiguration) (\s :: RecommendationJobInferenceBenchmark
s@RecommendationJobInferenceBenchmark' {} ModelConfiguration
a -> RecommendationJobInferenceBenchmark
s {$sel:modelConfiguration:RecommendationJobInferenceBenchmark' :: ModelConfiguration
modelConfiguration = ModelConfiguration
a} :: RecommendationJobInferenceBenchmark)
instance
Data.FromJSON
RecommendationJobInferenceBenchmark
where
parseJSON :: Value -> Parser RecommendationJobInferenceBenchmark
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"RecommendationJobInferenceBenchmark"
( \Object
x ->
Maybe EndpointOutputConfiguration
-> Maybe Text
-> Maybe RecommendationMetrics
-> ModelConfiguration
-> RecommendationJobInferenceBenchmark
RecommendationJobInferenceBenchmark'
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
"EndpointConfiguration")
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 (Maybe a)
Data..:? Key
"Metrics")
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
"ModelConfiguration")
)
instance
Prelude.Hashable
RecommendationJobInferenceBenchmark
where
hashWithSalt :: Int -> RecommendationJobInferenceBenchmark -> Int
hashWithSalt
Int
_salt
RecommendationJobInferenceBenchmark' {Maybe Text
Maybe EndpointOutputConfiguration
Maybe RecommendationMetrics
ModelConfiguration
modelConfiguration :: ModelConfiguration
metrics :: Maybe RecommendationMetrics
failureReason :: Maybe Text
endpointConfiguration :: Maybe EndpointOutputConfiguration
$sel:modelConfiguration:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> ModelConfiguration
$sel:metrics:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> Maybe RecommendationMetrics
$sel:failureReason:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> Maybe Text
$sel:endpointConfiguration:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark
-> Maybe EndpointOutputConfiguration
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EndpointOutputConfiguration
endpointConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureReason
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RecommendationMetrics
metrics
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ModelConfiguration
modelConfiguration
instance
Prelude.NFData
RecommendationJobInferenceBenchmark
where
rnf :: RecommendationJobInferenceBenchmark -> ()
rnf RecommendationJobInferenceBenchmark' {Maybe Text
Maybe EndpointOutputConfiguration
Maybe RecommendationMetrics
ModelConfiguration
modelConfiguration :: ModelConfiguration
metrics :: Maybe RecommendationMetrics
failureReason :: Maybe Text
endpointConfiguration :: Maybe EndpointOutputConfiguration
$sel:modelConfiguration:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> ModelConfiguration
$sel:metrics:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> Maybe RecommendationMetrics
$sel:failureReason:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark -> Maybe Text
$sel:endpointConfiguration:RecommendationJobInferenceBenchmark' :: RecommendationJobInferenceBenchmark
-> Maybe EndpointOutputConfiguration
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe EndpointOutputConfiguration
endpointConfiguration
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 Maybe RecommendationMetrics
metrics
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ModelConfiguration
modelConfiguration