module Stratosphere.SageMaker.Endpoint.VariantPropertyProperty (
VariantPropertyProperty(..), mkVariantPropertyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VariantPropertyProperty
=
VariantPropertyProperty {VariantPropertyProperty -> ()
haddock_workaround_ :: (),
VariantPropertyProperty -> Maybe (Value Text)
variantPropertyType :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (VariantPropertyProperty -> VariantPropertyProperty -> Bool
(VariantPropertyProperty -> VariantPropertyProperty -> Bool)
-> (VariantPropertyProperty -> VariantPropertyProperty -> Bool)
-> Eq VariantPropertyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VariantPropertyProperty -> VariantPropertyProperty -> Bool
== :: VariantPropertyProperty -> VariantPropertyProperty -> Bool
$c/= :: VariantPropertyProperty -> VariantPropertyProperty -> Bool
/= :: VariantPropertyProperty -> VariantPropertyProperty -> Bool
Prelude.Eq, Int -> VariantPropertyProperty -> ShowS
[VariantPropertyProperty] -> ShowS
VariantPropertyProperty -> String
(Int -> VariantPropertyProperty -> ShowS)
-> (VariantPropertyProperty -> String)
-> ([VariantPropertyProperty] -> ShowS)
-> Show VariantPropertyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VariantPropertyProperty -> ShowS
showsPrec :: Int -> VariantPropertyProperty -> ShowS
$cshow :: VariantPropertyProperty -> String
show :: VariantPropertyProperty -> String
$cshowList :: [VariantPropertyProperty] -> ShowS
showList :: [VariantPropertyProperty] -> ShowS
Prelude.Show)
mkVariantPropertyProperty :: VariantPropertyProperty
mkVariantPropertyProperty :: VariantPropertyProperty
mkVariantPropertyProperty
= VariantPropertyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), variantPropertyType :: Maybe (Value Text)
variantPropertyType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VariantPropertyProperty where
toResourceProperties :: VariantPropertyProperty -> ResourceProperties
toResourceProperties VariantPropertyProperty {Maybe (Value Text)
()
haddock_workaround_ :: VariantPropertyProperty -> ()
variantPropertyType :: VariantPropertyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
variantPropertyType :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Endpoint.VariantProperty",
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 -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VariantPropertyType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
variantPropertyType])}
instance JSON.ToJSON VariantPropertyProperty where
toJSON :: VariantPropertyProperty -> Value
toJSON VariantPropertyProperty {Maybe (Value Text)
()
haddock_workaround_ :: VariantPropertyProperty -> ()
variantPropertyType :: VariantPropertyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
variantPropertyType :: Maybe (Value Text)
..}
= [(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 -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VariantPropertyType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
variantPropertyType]))
instance Property "VariantPropertyType" VariantPropertyProperty where
type PropertyType "VariantPropertyType" VariantPropertyProperty = Value Prelude.Text
set :: PropertyType "VariantPropertyType" VariantPropertyProperty
-> VariantPropertyProperty -> VariantPropertyProperty
set PropertyType "VariantPropertyType" VariantPropertyProperty
newValue VariantPropertyProperty {Maybe (Value Text)
()
haddock_workaround_ :: VariantPropertyProperty -> ()
variantPropertyType :: VariantPropertyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
variantPropertyType :: Maybe (Value Text)
..}
= VariantPropertyProperty
{variantPropertyType :: Maybe (Value Text)
variantPropertyType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VariantPropertyType" VariantPropertyProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}