module Stratosphere.CodePipeline.Pipeline.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 -> Maybe (Value Text)
type' :: (Prelude.Maybe (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,
type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EnvironmentVariableProperty where
toResourceProperties :: EnvironmentVariableProperty -> ResourceProperties
toResourceProperties EnvironmentVariableProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EnvironmentVariableProperty -> ()
name :: EnvironmentVariableProperty -> Value Text
type' :: EnvironmentVariableProperty -> Maybe (Value Text)
value :: EnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Maybe (Value Text)
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodePipeline::Pipeline.EnvironmentVariable",
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
"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]
([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
"Type" (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)
type']))}
instance JSON.ToJSON EnvironmentVariableProperty where
toJSON :: EnvironmentVariableProperty -> Value
toJSON EnvironmentVariableProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EnvironmentVariableProperty -> ()
name :: EnvironmentVariableProperty -> Value Text
type' :: EnvironmentVariableProperty -> Maybe (Value Text)
value :: EnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Maybe (Value Text)
value :: Value Text
..}
= [(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
"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]
([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
"Type" (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)
type'])))
instance Property "Name" EnvironmentVariableProperty where
type PropertyType "Name" EnvironmentVariableProperty = Value Prelude.Text
set :: PropertyType "Name" EnvironmentVariableProperty
-> EnvironmentVariableProperty -> EnvironmentVariableProperty
set PropertyType "Name" EnvironmentVariableProperty
newValue EnvironmentVariableProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EnvironmentVariableProperty -> ()
name :: EnvironmentVariableProperty -> Value Text
type' :: EnvironmentVariableProperty -> Maybe (Value Text)
value :: EnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Maybe (Value Text)
value :: Value Text
..}
= EnvironmentVariableProperty {name :: Value Text
name = PropertyType "Name" EnvironmentVariableProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
value :: Value Text
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
value :: Value Text
..}
instance Property "Type" EnvironmentVariableProperty where
type PropertyType "Type" EnvironmentVariableProperty = Value Prelude.Text
set :: PropertyType "Type" EnvironmentVariableProperty
-> EnvironmentVariableProperty -> EnvironmentVariableProperty
set PropertyType "Type" EnvironmentVariableProperty
newValue EnvironmentVariableProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EnvironmentVariableProperty -> ()
name :: EnvironmentVariableProperty -> Value Text
type' :: EnvironmentVariableProperty -> Maybe (Value Text)
value :: EnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Maybe (Value Text)
value :: Value Text
..}
= EnvironmentVariableProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" EnvironmentVariableProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
value :: Value Text
haddock_workaround_ :: ()
name :: Value Text
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 {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EnvironmentVariableProperty -> ()
name :: EnvironmentVariableProperty -> Value Text
type' :: EnvironmentVariableProperty -> Maybe (Value Text)
value :: EnvironmentVariableProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Maybe (Value Text)
value :: Value Text
..}
= EnvironmentVariableProperty {value :: Value Text
value = PropertyType "Value" EnvironmentVariableProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
type' :: Maybe (Value Text)
..}