module Stratosphere.CleanRooms.Collaboration.MLPaymentConfigProperty (
module Exports, MLPaymentConfigProperty(..),
mkMLPaymentConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CleanRooms.Collaboration.ModelInferencePaymentConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.CleanRooms.Collaboration.ModelTrainingPaymentConfigProperty as Exports
import Stratosphere.ResourceProperties
data MLPaymentConfigProperty
=
MLPaymentConfigProperty {MLPaymentConfigProperty -> ()
haddock_workaround_ :: (),
MLPaymentConfigProperty
-> Maybe ModelInferencePaymentConfigProperty
modelInference :: (Prelude.Maybe ModelInferencePaymentConfigProperty),
MLPaymentConfigProperty -> Maybe ModelTrainingPaymentConfigProperty
modelTraining :: (Prelude.Maybe ModelTrainingPaymentConfigProperty)}
deriving stock (MLPaymentConfigProperty -> MLPaymentConfigProperty -> Bool
(MLPaymentConfigProperty -> MLPaymentConfigProperty -> Bool)
-> (MLPaymentConfigProperty -> MLPaymentConfigProperty -> Bool)
-> Eq MLPaymentConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MLPaymentConfigProperty -> MLPaymentConfigProperty -> Bool
== :: MLPaymentConfigProperty -> MLPaymentConfigProperty -> Bool
$c/= :: MLPaymentConfigProperty -> MLPaymentConfigProperty -> Bool
/= :: MLPaymentConfigProperty -> MLPaymentConfigProperty -> Bool
Prelude.Eq, Int -> MLPaymentConfigProperty -> ShowS
[MLPaymentConfigProperty] -> ShowS
MLPaymentConfigProperty -> String
(Int -> MLPaymentConfigProperty -> ShowS)
-> (MLPaymentConfigProperty -> String)
-> ([MLPaymentConfigProperty] -> ShowS)
-> Show MLPaymentConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MLPaymentConfigProperty -> ShowS
showsPrec :: Int -> MLPaymentConfigProperty -> ShowS
$cshow :: MLPaymentConfigProperty -> String
show :: MLPaymentConfigProperty -> String
$cshowList :: [MLPaymentConfigProperty] -> ShowS
showList :: [MLPaymentConfigProperty] -> ShowS
Prelude.Show)
mkMLPaymentConfigProperty :: MLPaymentConfigProperty
mkMLPaymentConfigProperty :: MLPaymentConfigProperty
mkMLPaymentConfigProperty
= MLPaymentConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), modelInference :: Maybe ModelInferencePaymentConfigProperty
modelInference = Maybe ModelInferencePaymentConfigProperty
forall a. Maybe a
Prelude.Nothing,
modelTraining :: Maybe ModelTrainingPaymentConfigProperty
modelTraining = Maybe ModelTrainingPaymentConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MLPaymentConfigProperty where
toResourceProperties :: MLPaymentConfigProperty -> ResourceProperties
toResourceProperties MLPaymentConfigProperty {Maybe ModelInferencePaymentConfigProperty
Maybe ModelTrainingPaymentConfigProperty
()
haddock_workaround_ :: MLPaymentConfigProperty -> ()
modelInference :: MLPaymentConfigProperty
-> Maybe ModelInferencePaymentConfigProperty
modelTraining :: MLPaymentConfigProperty -> Maybe ModelTrainingPaymentConfigProperty
haddock_workaround_ :: ()
modelInference :: Maybe ModelInferencePaymentConfigProperty
modelTraining :: Maybe ModelTrainingPaymentConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CleanRooms::Collaboration.MLPaymentConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ModelInferencePaymentConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModelInference" (ModelInferencePaymentConfigProperty -> (Key, Value))
-> Maybe ModelInferencePaymentConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModelInferencePaymentConfigProperty
modelInference,
Key -> ModelTrainingPaymentConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModelTraining" (ModelTrainingPaymentConfigProperty -> (Key, Value))
-> Maybe ModelTrainingPaymentConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModelTrainingPaymentConfigProperty
modelTraining])}
instance JSON.ToJSON MLPaymentConfigProperty where
toJSON :: MLPaymentConfigProperty -> Value
toJSON MLPaymentConfigProperty {Maybe ModelInferencePaymentConfigProperty
Maybe ModelTrainingPaymentConfigProperty
()
haddock_workaround_ :: MLPaymentConfigProperty -> ()
modelInference :: MLPaymentConfigProperty
-> Maybe ModelInferencePaymentConfigProperty
modelTraining :: MLPaymentConfigProperty -> Maybe ModelTrainingPaymentConfigProperty
haddock_workaround_ :: ()
modelInference :: Maybe ModelInferencePaymentConfigProperty
modelTraining :: Maybe ModelTrainingPaymentConfigProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ModelInferencePaymentConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModelInference" (ModelInferencePaymentConfigProperty -> (Key, Value))
-> Maybe ModelInferencePaymentConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModelInferencePaymentConfigProperty
modelInference,
Key -> ModelTrainingPaymentConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModelTraining" (ModelTrainingPaymentConfigProperty -> (Key, Value))
-> Maybe ModelTrainingPaymentConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModelTrainingPaymentConfigProperty
modelTraining]))
instance Property "ModelInference" MLPaymentConfigProperty where
type PropertyType "ModelInference" MLPaymentConfigProperty = ModelInferencePaymentConfigProperty
set :: PropertyType "ModelInference" MLPaymentConfigProperty
-> MLPaymentConfigProperty -> MLPaymentConfigProperty
set PropertyType "ModelInference" MLPaymentConfigProperty
newValue MLPaymentConfigProperty {Maybe ModelInferencePaymentConfigProperty
Maybe ModelTrainingPaymentConfigProperty
()
haddock_workaround_ :: MLPaymentConfigProperty -> ()
modelInference :: MLPaymentConfigProperty
-> Maybe ModelInferencePaymentConfigProperty
modelTraining :: MLPaymentConfigProperty -> Maybe ModelTrainingPaymentConfigProperty
haddock_workaround_ :: ()
modelInference :: Maybe ModelInferencePaymentConfigProperty
modelTraining :: Maybe ModelTrainingPaymentConfigProperty
..}
= MLPaymentConfigProperty
{modelInference :: Maybe ModelInferencePaymentConfigProperty
modelInference = ModelInferencePaymentConfigProperty
-> Maybe ModelInferencePaymentConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ModelInference" MLPaymentConfigProperty
ModelInferencePaymentConfigProperty
newValue, Maybe ModelTrainingPaymentConfigProperty
()
haddock_workaround_ :: ()
modelTraining :: Maybe ModelTrainingPaymentConfigProperty
haddock_workaround_ :: ()
modelTraining :: Maybe ModelTrainingPaymentConfigProperty
..}
instance Property "ModelTraining" MLPaymentConfigProperty where
type PropertyType "ModelTraining" MLPaymentConfigProperty = ModelTrainingPaymentConfigProperty
set :: PropertyType "ModelTraining" MLPaymentConfigProperty
-> MLPaymentConfigProperty -> MLPaymentConfigProperty
set PropertyType "ModelTraining" MLPaymentConfigProperty
newValue MLPaymentConfigProperty {Maybe ModelInferencePaymentConfigProperty
Maybe ModelTrainingPaymentConfigProperty
()
haddock_workaround_ :: MLPaymentConfigProperty -> ()
modelInference :: MLPaymentConfigProperty
-> Maybe ModelInferencePaymentConfigProperty
modelTraining :: MLPaymentConfigProperty -> Maybe ModelTrainingPaymentConfigProperty
haddock_workaround_ :: ()
modelInference :: Maybe ModelInferencePaymentConfigProperty
modelTraining :: Maybe ModelTrainingPaymentConfigProperty
..}
= MLPaymentConfigProperty
{modelTraining :: Maybe ModelTrainingPaymentConfigProperty
modelTraining = ModelTrainingPaymentConfigProperty
-> Maybe ModelTrainingPaymentConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ModelTraining" MLPaymentConfigProperty
ModelTrainingPaymentConfigProperty
newValue, Maybe ModelInferencePaymentConfigProperty
()
haddock_workaround_ :: ()
modelInference :: Maybe ModelInferencePaymentConfigProperty
haddock_workaround_ :: ()
modelInference :: Maybe ModelInferencePaymentConfigProperty
..}