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