module Stratosphere.DAX.ParameterGroup (
        ParameterGroup(..), mkParameterGroup
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ParameterGroup
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html>
    ParameterGroup {ParameterGroup -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-description>
                    ParameterGroup -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parametergroupname>
                    ParameterGroup -> Maybe (Value Text)
parameterGroupName :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-parametergroup.html#cfn-dax-parametergroup-parameternamevalues>
                    ParameterGroup -> Maybe Object
parameterNameValues :: (Prelude.Maybe JSON.Object)}
  deriving stock (ParameterGroup -> ParameterGroup -> Bool
(ParameterGroup -> ParameterGroup -> Bool)
-> (ParameterGroup -> ParameterGroup -> Bool) -> Eq ParameterGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParameterGroup -> ParameterGroup -> Bool
== :: ParameterGroup -> ParameterGroup -> Bool
$c/= :: ParameterGroup -> ParameterGroup -> Bool
/= :: ParameterGroup -> ParameterGroup -> Bool
Prelude.Eq, Int -> ParameterGroup -> ShowS
[ParameterGroup] -> ShowS
ParameterGroup -> String
(Int -> ParameterGroup -> ShowS)
-> (ParameterGroup -> String)
-> ([ParameterGroup] -> ShowS)
-> Show ParameterGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParameterGroup -> ShowS
showsPrec :: Int -> ParameterGroup -> ShowS
$cshow :: ParameterGroup -> String
show :: ParameterGroup -> String
$cshowList :: [ParameterGroup] -> ShowS
showList :: [ParameterGroup] -> ShowS
Prelude.Show)
mkParameterGroup :: ParameterGroup
mkParameterGroup :: ParameterGroup
mkParameterGroup
  = ParameterGroup
      {haddock_workaround_ :: ()
haddock_workaround_ = (), description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       parameterGroupName :: Maybe (Value Text)
parameterGroupName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       parameterNameValues :: Maybe Object
parameterNameValues = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ParameterGroup where
  toResourceProperties :: ParameterGroup -> ResourceProperties
toResourceProperties ParameterGroup {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
parameterGroupName :: ParameterGroup -> Maybe (Value Text)
parameterNameValues :: ParameterGroup -> Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Maybe (Value Text)
parameterNameValues :: Maybe Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DAX::ParameterGroup",
         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
"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 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
"ParameterGroupName" (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)
parameterGroupName,
                            Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ParameterNameValues" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
parameterNameValues])}
instance JSON.ToJSON ParameterGroup where
  toJSON :: ParameterGroup -> Value
toJSON ParameterGroup {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
parameterGroupName :: ParameterGroup -> Maybe (Value Text)
parameterNameValues :: ParameterGroup -> Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Maybe (Value Text)
parameterNameValues :: Maybe Object
..}
    = [(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
"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 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
"ParameterGroupName" (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)
parameterGroupName,
               Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ParameterNameValues" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
parameterNameValues]))
instance Property "Description" ParameterGroup where
  type PropertyType "Description" ParameterGroup = Value Prelude.Text
  set :: PropertyType "Description" ParameterGroup
-> ParameterGroup -> ParameterGroup
set PropertyType "Description" ParameterGroup
newValue ParameterGroup {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
parameterGroupName :: ParameterGroup -> Maybe (Value Text)
parameterNameValues :: ParameterGroup -> Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Maybe (Value Text)
parameterNameValues :: Maybe Object
..}
    = ParameterGroup {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" ParameterGroup
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ()
parameterGroupName :: Maybe (Value Text)
parameterNameValues :: Maybe Object
haddock_workaround_ :: ()
parameterGroupName :: Maybe (Value Text)
parameterNameValues :: Maybe Object
..}
instance Property "ParameterGroupName" ParameterGroup where
  type PropertyType "ParameterGroupName" ParameterGroup = Value Prelude.Text
  set :: PropertyType "ParameterGroupName" ParameterGroup
-> ParameterGroup -> ParameterGroup
set PropertyType "ParameterGroupName" ParameterGroup
newValue ParameterGroup {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
parameterGroupName :: ParameterGroup -> Maybe (Value Text)
parameterNameValues :: ParameterGroup -> Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Maybe (Value Text)
parameterNameValues :: Maybe Object
..}
    = ParameterGroup {parameterGroupName :: Maybe (Value Text)
parameterGroupName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ParameterGroupName" ParameterGroup
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterNameValues :: Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterNameValues :: Maybe Object
..}
instance Property "ParameterNameValues" ParameterGroup where
  type PropertyType "ParameterNameValues" ParameterGroup = JSON.Object
  set :: PropertyType "ParameterNameValues" ParameterGroup
-> ParameterGroup -> ParameterGroup
set PropertyType "ParameterNameValues" ParameterGroup
newValue ParameterGroup {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
parameterGroupName :: ParameterGroup -> Maybe (Value Text)
parameterNameValues :: ParameterGroup -> Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Maybe (Value Text)
parameterNameValues :: Maybe Object
..}
    = ParameterGroup {parameterNameValues :: Maybe Object
parameterNameValues = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "ParameterNameValues" ParameterGroup
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Maybe (Value Text)
..}