module Stratosphere.AppConfig.Extension.ParameterProperty (
        ParameterProperty(..), mkParameterProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ParameterProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-extension-parameter.html>
    ParameterProperty {ParameterProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-extension-parameter.html#cfn-appconfig-extension-parameter-description>
                       ParameterProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-extension-parameter.html#cfn-appconfig-extension-parameter-dynamic>
                       ParameterProperty -> Maybe (Value Bool)
dynamic :: (Prelude.Maybe (Value Prelude.Bool)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-extension-parameter.html#cfn-appconfig-extension-parameter-required>
                       ParameterProperty -> Value Bool
required :: (Value Prelude.Bool)}
  deriving stock (ParameterProperty -> ParameterProperty -> Bool
(ParameterProperty -> ParameterProperty -> Bool)
-> (ParameterProperty -> ParameterProperty -> Bool)
-> Eq ParameterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParameterProperty -> ParameterProperty -> Bool
== :: ParameterProperty -> ParameterProperty -> Bool
$c/= :: ParameterProperty -> ParameterProperty -> Bool
/= :: ParameterProperty -> ParameterProperty -> Bool
Prelude.Eq, Int -> ParameterProperty -> ShowS
[ParameterProperty] -> ShowS
ParameterProperty -> String
(Int -> ParameterProperty -> ShowS)
-> (ParameterProperty -> String)
-> ([ParameterProperty] -> ShowS)
-> Show ParameterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParameterProperty -> ShowS
showsPrec :: Int -> ParameterProperty -> ShowS
$cshow :: ParameterProperty -> String
show :: ParameterProperty -> String
$cshowList :: [ParameterProperty] -> ShowS
showList :: [ParameterProperty] -> ShowS
Prelude.Show)
mkParameterProperty :: Value Prelude.Bool -> ParameterProperty
mkParameterProperty :: Value Bool -> ParameterProperty
mkParameterProperty Value Bool
required
  = ParameterProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), required :: Value Bool
required = Value Bool
required,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, dynamic :: Maybe (Value Bool)
dynamic = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ParameterProperty where
  toResourceProperties :: ParameterProperty -> ResourceProperties
toResourceProperties ParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ParameterProperty -> ()
description :: ParameterProperty -> Maybe (Value Text)
dynamic :: ParameterProperty -> Maybe (Value Bool)
required :: ParameterProperty -> Value Bool
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dynamic :: Maybe (Value Bool)
required :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppConfig::Extension.Parameter",
         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
"Required" 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..= Value Bool
required]
                           ([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
"Description" (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)
description,
                               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
"Dynamic" (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)
dynamic]))}
instance JSON.ToJSON ParameterProperty where
  toJSON :: ParameterProperty -> Value
toJSON ParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ParameterProperty -> ()
description :: ParameterProperty -> Maybe (Value Text)
dynamic :: ParameterProperty -> Maybe (Value Bool)
required :: ParameterProperty -> Value Bool
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dynamic :: Maybe (Value Bool)
required :: Value Bool
..}
    = [(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
"Required" 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..= Value Bool
required]
              ([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
"Description" (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)
description,
                  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
"Dynamic" (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)
dynamic])))
instance Property "Description" ParameterProperty where
  type PropertyType "Description" ParameterProperty = Value Prelude.Text
  set :: PropertyType "Description" ParameterProperty
-> ParameterProperty -> ParameterProperty
set PropertyType "Description" ParameterProperty
newValue ParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ParameterProperty -> ()
description :: ParameterProperty -> Maybe (Value Text)
dynamic :: ParameterProperty -> Maybe (Value Bool)
required :: ParameterProperty -> Value Bool
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dynamic :: Maybe (Value Bool)
required :: Value Bool
..}
    = ParameterProperty {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" ParameterProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Bool
haddock_workaround_ :: ()
dynamic :: Maybe (Value Bool)
required :: Value Bool
haddock_workaround_ :: ()
dynamic :: Maybe (Value Bool)
required :: Value Bool
..}
instance Property "Dynamic" ParameterProperty where
  type PropertyType "Dynamic" ParameterProperty = Value Prelude.Bool
  set :: PropertyType "Dynamic" ParameterProperty
-> ParameterProperty -> ParameterProperty
set PropertyType "Dynamic" ParameterProperty
newValue ParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ParameterProperty -> ()
description :: ParameterProperty -> Maybe (Value Text)
dynamic :: ParameterProperty -> Maybe (Value Bool)
required :: ParameterProperty -> Value Bool
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dynamic :: Maybe (Value Bool)
required :: Value Bool
..}
    = ParameterProperty {dynamic :: Maybe (Value Bool)
dynamic = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Dynamic" ParameterProperty
Value Bool
newValue, Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ()
description :: Maybe (Value Text)
required :: Value Bool
haddock_workaround_ :: ()
description :: Maybe (Value Text)
required :: Value Bool
..}
instance Property "Required" ParameterProperty where
  type PropertyType "Required" ParameterProperty = Value Prelude.Bool
  set :: PropertyType "Required" ParameterProperty
-> ParameterProperty -> ParameterProperty
set PropertyType "Required" ParameterProperty
newValue ParameterProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ParameterProperty -> ()
description :: ParameterProperty -> Maybe (Value Text)
dynamic :: ParameterProperty -> Maybe (Value Bool)
required :: ParameterProperty -> Value Bool
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dynamic :: Maybe (Value Bool)
required :: Value Bool
..}
    = ParameterProperty {required :: Value Bool
required = PropertyType "Required" ParameterProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dynamic :: Maybe (Value Bool)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dynamic :: Maybe (Value Bool)
..}