module Stratosphere.DataZone.ProjectProfile.EnvironmentConfigurationParameterProperty (
        EnvironmentConfigurationParameterProperty(..),
        mkEnvironmentConfigurationParameterProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EnvironmentConfigurationParameterProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectprofile-environmentconfigurationparameter.html>
    EnvironmentConfigurationParameterProperty {EnvironmentConfigurationParameterProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectprofile-environmentconfigurationparameter.html#cfn-datazone-projectprofile-environmentconfigurationparameter-iseditable>
                                               EnvironmentConfigurationParameterProperty -> Maybe (Value Bool)
isEditable :: (Prelude.Maybe (Value Prelude.Bool)),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectprofile-environmentconfigurationparameter.html#cfn-datazone-projectprofile-environmentconfigurationparameter-name>
                                               EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectprofile-environmentconfigurationparameter.html#cfn-datazone-projectprofile-environmentconfigurationparameter-value>
                                               EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty -> Bool
(EnvironmentConfigurationParameterProperty
 -> EnvironmentConfigurationParameterProperty -> Bool)
-> (EnvironmentConfigurationParameterProperty
    -> EnvironmentConfigurationParameterProperty -> Bool)
-> Eq EnvironmentConfigurationParameterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty -> Bool
== :: EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty -> Bool
$c/= :: EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty -> Bool
/= :: EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty -> Bool
Prelude.Eq, Int -> EnvironmentConfigurationParameterProperty -> ShowS
[EnvironmentConfigurationParameterProperty] -> ShowS
EnvironmentConfigurationParameterProperty -> String
(Int -> EnvironmentConfigurationParameterProperty -> ShowS)
-> (EnvironmentConfigurationParameterProperty -> String)
-> ([EnvironmentConfigurationParameterProperty] -> ShowS)
-> Show EnvironmentConfigurationParameterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EnvironmentConfigurationParameterProperty -> ShowS
showsPrec :: Int -> EnvironmentConfigurationParameterProperty -> ShowS
$cshow :: EnvironmentConfigurationParameterProperty -> String
show :: EnvironmentConfigurationParameterProperty -> String
$cshowList :: [EnvironmentConfigurationParameterProperty] -> ShowS
showList :: [EnvironmentConfigurationParameterProperty] -> ShowS
Prelude.Show)
mkEnvironmentConfigurationParameterProperty ::
  EnvironmentConfigurationParameterProperty
mkEnvironmentConfigurationParameterProperty :: EnvironmentConfigurationParameterProperty
mkEnvironmentConfigurationParameterProperty
  = EnvironmentConfigurationParameterProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), isEditable :: Maybe (Value Bool)
isEditable = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       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 EnvironmentConfigurationParameterProperty where
  toResourceProperties :: EnvironmentConfigurationParameterProperty -> ResourceProperties
toResourceProperties EnvironmentConfigurationParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParameterProperty -> ()
isEditable :: EnvironmentConfigurationParameterProperty -> Maybe (Value Bool)
name :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
value :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::ProjectProfile.EnvironmentConfigurationParameter",
         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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IsEditable" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
isEditable,
                            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 EnvironmentConfigurationParameterProperty where
  toJSON :: EnvironmentConfigurationParameterProperty -> Value
toJSON EnvironmentConfigurationParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParameterProperty -> ()
isEditable :: EnvironmentConfigurationParameterProperty -> Maybe (Value Bool)
name :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
value :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IsEditable" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
isEditable,
               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 "IsEditable" EnvironmentConfigurationParameterProperty where
  type PropertyType "IsEditable" EnvironmentConfigurationParameterProperty = Value Prelude.Bool
  set :: PropertyType "IsEditable" EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty
set PropertyType "IsEditable" EnvironmentConfigurationParameterProperty
newValue EnvironmentConfigurationParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParameterProperty -> ()
isEditable :: EnvironmentConfigurationParameterProperty -> Maybe (Value Bool)
name :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
value :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = EnvironmentConfigurationParameterProperty
        {isEditable :: Maybe (Value Bool)
isEditable = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsEditable" EnvironmentConfigurationParameterProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
instance Property "Name" EnvironmentConfigurationParameterProperty where
  type PropertyType "Name" EnvironmentConfigurationParameterProperty = Value Prelude.Text
  set :: PropertyType "Name" EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty
set PropertyType "Name" EnvironmentConfigurationParameterProperty
newValue EnvironmentConfigurationParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParameterProperty -> ()
isEditable :: EnvironmentConfigurationParameterProperty -> Maybe (Value Bool)
name :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
value :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = EnvironmentConfigurationParameterProperty
        {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" EnvironmentConfigurationParameterProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
value :: Maybe (Value Text)
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
value :: Maybe (Value Text)
..}
instance Property "Value" EnvironmentConfigurationParameterProperty where
  type PropertyType "Value" EnvironmentConfigurationParameterProperty = Value Prelude.Text
  set :: PropertyType "Value" EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty
-> EnvironmentConfigurationParameterProperty
set PropertyType "Value" EnvironmentConfigurationParameterProperty
newValue EnvironmentConfigurationParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParameterProperty -> ()
isEditable :: EnvironmentConfigurationParameterProperty -> Maybe (Value Bool)
name :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
value :: EnvironmentConfigurationParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = EnvironmentConfigurationParameterProperty
        {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" EnvironmentConfigurationParameterProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
isEditable :: Maybe (Value Bool)
name :: Maybe (Value Text)
..}