module Stratosphere.SageMaker.AppImageConfig.CustomImageContainerEnvironmentVariableProperty (
CustomImageContainerEnvironmentVariableProperty(..),
mkCustomImageContainerEnvironmentVariableProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomImageContainerEnvironmentVariableProperty
=
CustomImageContainerEnvironmentVariableProperty {CustomImageContainerEnvironmentVariableProperty -> ()
haddock_workaround_ :: (),
CustomImageContainerEnvironmentVariableProperty -> Value Text
key :: (Value Prelude.Text),
CustomImageContainerEnvironmentVariableProperty -> Value Text
value :: (Value Prelude.Text)}
deriving stock (CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty -> Bool
(CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty -> Bool)
-> (CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty -> Bool)
-> Eq CustomImageContainerEnvironmentVariableProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty -> Bool
== :: CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty -> Bool
$c/= :: CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty -> Bool
/= :: CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty -> Bool
Prelude.Eq, Int -> CustomImageContainerEnvironmentVariableProperty -> ShowS
[CustomImageContainerEnvironmentVariableProperty] -> ShowS
CustomImageContainerEnvironmentVariableProperty -> String
(Int -> CustomImageContainerEnvironmentVariableProperty -> ShowS)
-> (CustomImageContainerEnvironmentVariableProperty -> String)
-> ([CustomImageContainerEnvironmentVariableProperty] -> ShowS)
-> Show CustomImageContainerEnvironmentVariableProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomImageContainerEnvironmentVariableProperty -> ShowS
showsPrec :: Int -> CustomImageContainerEnvironmentVariableProperty -> ShowS
$cshow :: CustomImageContainerEnvironmentVariableProperty -> String
show :: CustomImageContainerEnvironmentVariableProperty -> String
$cshowList :: [CustomImageContainerEnvironmentVariableProperty] -> ShowS
showList :: [CustomImageContainerEnvironmentVariableProperty] -> ShowS
Prelude.Show)
mkCustomImageContainerEnvironmentVariableProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> CustomImageContainerEnvironmentVariableProperty
mkCustomImageContainerEnvironmentVariableProperty :: Value Text
-> Value Text -> CustomImageContainerEnvironmentVariableProperty
mkCustomImageContainerEnvironmentVariableProperty Value Text
key Value Text
value
= CustomImageContainerEnvironmentVariableProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, value :: Value Text
value = Value Text
value}
instance ToResourceProperties CustomImageContainerEnvironmentVariableProperty where
toResourceProperties :: CustomImageContainerEnvironmentVariableProperty
-> ResourceProperties
toResourceProperties
CustomImageContainerEnvironmentVariableProperty {()
Value Text
haddock_workaround_ :: CustomImageContainerEnvironmentVariableProperty -> ()
key :: CustomImageContainerEnvironmentVariableProperty -> Value Text
value :: CustomImageContainerEnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::AppImageConfig.CustomImageContainerEnvironmentVariable",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Key" 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..= Value Text
key, Key
"Value" 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..= Value Text
value]}
instance JSON.ToJSON CustomImageContainerEnvironmentVariableProperty where
toJSON :: CustomImageContainerEnvironmentVariableProperty -> Value
toJSON CustomImageContainerEnvironmentVariableProperty {()
Value Text
haddock_workaround_ :: CustomImageContainerEnvironmentVariableProperty -> ()
key :: CustomImageContainerEnvironmentVariableProperty -> Value Text
value :: CustomImageContainerEnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Key" 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..= Value Text
key, Key
"Value" 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..= Value Text
value]
instance Property "Key" CustomImageContainerEnvironmentVariableProperty where
type PropertyType "Key" CustomImageContainerEnvironmentVariableProperty = Value Prelude.Text
set :: PropertyType "Key" CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty
set PropertyType "Key" CustomImageContainerEnvironmentVariableProperty
newValue CustomImageContainerEnvironmentVariableProperty {()
Value Text
haddock_workaround_ :: CustomImageContainerEnvironmentVariableProperty -> ()
key :: CustomImageContainerEnvironmentVariableProperty -> Value Text
value :: CustomImageContainerEnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= CustomImageContainerEnvironmentVariableProperty
{key :: Value Text
key = PropertyType "Key" CustomImageContainerEnvironmentVariableProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" CustomImageContainerEnvironmentVariableProperty where
type PropertyType "Value" CustomImageContainerEnvironmentVariableProperty = Value Prelude.Text
set :: PropertyType
"Value" CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty
-> CustomImageContainerEnvironmentVariableProperty
set PropertyType
"Value" CustomImageContainerEnvironmentVariableProperty
newValue CustomImageContainerEnvironmentVariableProperty {()
Value Text
haddock_workaround_ :: CustomImageContainerEnvironmentVariableProperty -> ()
key :: CustomImageContainerEnvironmentVariableProperty -> Value Text
value :: CustomImageContainerEnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
= CustomImageContainerEnvironmentVariableProperty
{value :: Value Text
value = PropertyType
"Value" CustomImageContainerEnvironmentVariableProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}