module Stratosphere.Pipes.Pipe.BatchEnvironmentVariableProperty (
BatchEnvironmentVariableProperty(..),
mkBatchEnvironmentVariableProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BatchEnvironmentVariableProperty
=
BatchEnvironmentVariableProperty {BatchEnvironmentVariableProperty -> ()
haddock_workaround_ :: (),
BatchEnvironmentVariableProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
BatchEnvironmentVariableProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty -> Bool
(BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty -> Bool)
-> (BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty -> Bool)
-> Eq BatchEnvironmentVariableProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty -> Bool
== :: BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty -> Bool
$c/= :: BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty -> Bool
/= :: BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty -> Bool
Prelude.Eq, Int -> BatchEnvironmentVariableProperty -> ShowS
[BatchEnvironmentVariableProperty] -> ShowS
BatchEnvironmentVariableProperty -> String
(Int -> BatchEnvironmentVariableProperty -> ShowS)
-> (BatchEnvironmentVariableProperty -> String)
-> ([BatchEnvironmentVariableProperty] -> ShowS)
-> Show BatchEnvironmentVariableProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BatchEnvironmentVariableProperty -> ShowS
showsPrec :: Int -> BatchEnvironmentVariableProperty -> ShowS
$cshow :: BatchEnvironmentVariableProperty -> String
show :: BatchEnvironmentVariableProperty -> String
$cshowList :: [BatchEnvironmentVariableProperty] -> ShowS
showList :: [BatchEnvironmentVariableProperty] -> ShowS
Prelude.Show)
mkBatchEnvironmentVariableProperty ::
BatchEnvironmentVariableProperty
mkBatchEnvironmentVariableProperty :: BatchEnvironmentVariableProperty
mkBatchEnvironmentVariableProperty
= BatchEnvironmentVariableProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BatchEnvironmentVariableProperty where
toResourceProperties :: BatchEnvironmentVariableProperty -> ResourceProperties
toResourceProperties BatchEnvironmentVariableProperty {Maybe (Value Text)
()
haddock_workaround_ :: BatchEnvironmentVariableProperty -> ()
name :: BatchEnvironmentVariableProperty -> Maybe (Value Text)
value :: BatchEnvironmentVariableProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.BatchEnvironmentVariable",
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
"Name" (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)
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..=) Key
"Value" (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)
value])}
instance JSON.ToJSON BatchEnvironmentVariableProperty where
toJSON :: BatchEnvironmentVariableProperty -> Value
toJSON BatchEnvironmentVariableProperty {Maybe (Value Text)
()
haddock_workaround_ :: BatchEnvironmentVariableProperty -> ()
name :: BatchEnvironmentVariableProperty -> Maybe (Value Text)
value :: BatchEnvironmentVariableProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: 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
"Name" (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)
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..=) Key
"Value" (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)
value]))
instance Property "Name" BatchEnvironmentVariableProperty where
type PropertyType "Name" BatchEnvironmentVariableProperty = Value Prelude.Text
set :: PropertyType "Name" BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty
set PropertyType "Name" BatchEnvironmentVariableProperty
newValue BatchEnvironmentVariableProperty {Maybe (Value Text)
()
haddock_workaround_ :: BatchEnvironmentVariableProperty -> ()
name :: BatchEnvironmentVariableProperty -> Maybe (Value Text)
value :: BatchEnvironmentVariableProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= BatchEnvironmentVariableProperty
{name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" BatchEnvironmentVariableProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "Value" BatchEnvironmentVariableProperty where
type PropertyType "Value" BatchEnvironmentVariableProperty = Value Prelude.Text
set :: PropertyType "Value" BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty
-> BatchEnvironmentVariableProperty
set PropertyType "Value" BatchEnvironmentVariableProperty
newValue BatchEnvironmentVariableProperty {Maybe (Value Text)
()
haddock_workaround_ :: BatchEnvironmentVariableProperty -> ()
name :: BatchEnvironmentVariableProperty -> Maybe (Value Text)
value :: BatchEnvironmentVariableProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
= BatchEnvironmentVariableProperty
{value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" BatchEnvironmentVariableProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
..}