module Stratosphere.SageMaker.ModelBiasJobDefinition.ModelBiasJobInputProperty (
module Exports, ModelBiasJobInputProperty(..),
mkModelBiasJobInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ModelBiasJobDefinition.BatchTransformInputProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.ModelBiasJobDefinition.EndpointInputProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.ModelBiasJobDefinition.MonitoringGroundTruthS3InputProperty as Exports
import Stratosphere.ResourceProperties
data ModelBiasJobInputProperty
=
ModelBiasJobInputProperty {ModelBiasJobInputProperty -> ()
haddock_workaround_ :: (),
ModelBiasJobInputProperty -> Maybe BatchTransformInputProperty
batchTransformInput :: (Prelude.Maybe BatchTransformInputProperty),
ModelBiasJobInputProperty -> Maybe EndpointInputProperty
endpointInput :: (Prelude.Maybe EndpointInputProperty),
ModelBiasJobInputProperty -> MonitoringGroundTruthS3InputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty}
deriving stock (ModelBiasJobInputProperty -> ModelBiasJobInputProperty -> Bool
(ModelBiasJobInputProperty -> ModelBiasJobInputProperty -> Bool)
-> (ModelBiasJobInputProperty -> ModelBiasJobInputProperty -> Bool)
-> Eq ModelBiasJobInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ModelBiasJobInputProperty -> ModelBiasJobInputProperty -> Bool
== :: ModelBiasJobInputProperty -> ModelBiasJobInputProperty -> Bool
$c/= :: ModelBiasJobInputProperty -> ModelBiasJobInputProperty -> Bool
/= :: ModelBiasJobInputProperty -> ModelBiasJobInputProperty -> Bool
Prelude.Eq, Int -> ModelBiasJobInputProperty -> ShowS
[ModelBiasJobInputProperty] -> ShowS
ModelBiasJobInputProperty -> String
(Int -> ModelBiasJobInputProperty -> ShowS)
-> (ModelBiasJobInputProperty -> String)
-> ([ModelBiasJobInputProperty] -> ShowS)
-> Show ModelBiasJobInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ModelBiasJobInputProperty -> ShowS
showsPrec :: Int -> ModelBiasJobInputProperty -> ShowS
$cshow :: ModelBiasJobInputProperty -> String
show :: ModelBiasJobInputProperty -> String
$cshowList :: [ModelBiasJobInputProperty] -> ShowS
showList :: [ModelBiasJobInputProperty] -> ShowS
Prelude.Show)
mkModelBiasJobInputProperty ::
MonitoringGroundTruthS3InputProperty -> ModelBiasJobInputProperty
mkModelBiasJobInputProperty :: MonitoringGroundTruthS3InputProperty -> ModelBiasJobInputProperty
mkModelBiasJobInputProperty MonitoringGroundTruthS3InputProperty
groundTruthS3Input
= ModelBiasJobInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
groundTruthS3Input = MonitoringGroundTruthS3InputProperty
groundTruthS3Input,
batchTransformInput :: Maybe BatchTransformInputProperty
batchTransformInput = Maybe BatchTransformInputProperty
forall a. Maybe a
Prelude.Nothing,
endpointInput :: Maybe EndpointInputProperty
endpointInput = Maybe EndpointInputProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ModelBiasJobInputProperty where
toResourceProperties :: ModelBiasJobInputProperty -> ResourceProperties
toResourceProperties ModelBiasJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelBiasJobInputProperty -> ()
batchTransformInput :: ModelBiasJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelBiasJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelBiasJobInputProperty -> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::ModelBiasJobDefinition.ModelBiasJobInput",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"GroundTruthS3Input" Key -> MonitoringGroundTruthS3InputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MonitoringGroundTruthS3InputProperty
groundTruthS3Input]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> BatchTransformInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BatchTransformInput" (BatchTransformInputProperty -> (Key, Value))
-> Maybe BatchTransformInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchTransformInputProperty
batchTransformInput,
Key -> EndpointInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EndpointInput" (EndpointInputProperty -> (Key, Value))
-> Maybe EndpointInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EndpointInputProperty
endpointInput]))}
instance JSON.ToJSON ModelBiasJobInputProperty where
toJSON :: ModelBiasJobInputProperty -> Value
toJSON ModelBiasJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelBiasJobInputProperty -> ()
batchTransformInput :: ModelBiasJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelBiasJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelBiasJobInputProperty -> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"GroundTruthS3Input" Key -> MonitoringGroundTruthS3InputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MonitoringGroundTruthS3InputProperty
groundTruthS3Input]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> BatchTransformInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BatchTransformInput" (BatchTransformInputProperty -> (Key, Value))
-> Maybe BatchTransformInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchTransformInputProperty
batchTransformInput,
Key -> EndpointInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EndpointInput" (EndpointInputProperty -> (Key, Value))
-> Maybe EndpointInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EndpointInputProperty
endpointInput])))
instance Property "BatchTransformInput" ModelBiasJobInputProperty where
type PropertyType "BatchTransformInput" ModelBiasJobInputProperty = BatchTransformInputProperty
set :: PropertyType "BatchTransformInput" ModelBiasJobInputProperty
-> ModelBiasJobInputProperty -> ModelBiasJobInputProperty
set PropertyType "BatchTransformInput" ModelBiasJobInputProperty
newValue ModelBiasJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelBiasJobInputProperty -> ()
batchTransformInput :: ModelBiasJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelBiasJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelBiasJobInputProperty -> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
= ModelBiasJobInputProperty
{batchTransformInput :: Maybe BatchTransformInputProperty
batchTransformInput = BatchTransformInputProperty -> Maybe BatchTransformInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BatchTransformInput" ModelBiasJobInputProperty
BatchTransformInputProperty
newValue, Maybe EndpointInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
instance Property "EndpointInput" ModelBiasJobInputProperty where
type PropertyType "EndpointInput" ModelBiasJobInputProperty = EndpointInputProperty
set :: PropertyType "EndpointInput" ModelBiasJobInputProperty
-> ModelBiasJobInputProperty -> ModelBiasJobInputProperty
set PropertyType "EndpointInput" ModelBiasJobInputProperty
newValue ModelBiasJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelBiasJobInputProperty -> ()
batchTransformInput :: ModelBiasJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelBiasJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelBiasJobInputProperty -> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
= ModelBiasJobInputProperty
{endpointInput :: Maybe EndpointInputProperty
endpointInput = EndpointInputProperty -> Maybe EndpointInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndpointInput" ModelBiasJobInputProperty
EndpointInputProperty
newValue, Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
instance Property "GroundTruthS3Input" ModelBiasJobInputProperty where
type PropertyType "GroundTruthS3Input" ModelBiasJobInputProperty = MonitoringGroundTruthS3InputProperty
set :: PropertyType "GroundTruthS3Input" ModelBiasJobInputProperty
-> ModelBiasJobInputProperty -> ModelBiasJobInputProperty
set PropertyType "GroundTruthS3Input" ModelBiasJobInputProperty
newValue ModelBiasJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelBiasJobInputProperty -> ()
batchTransformInput :: ModelBiasJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelBiasJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelBiasJobInputProperty -> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
= ModelBiasJobInputProperty {groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
groundTruthS3Input = PropertyType "GroundTruthS3Input" ModelBiasJobInputProperty
MonitoringGroundTruthS3InputProperty
newValue, Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
..}