module Stratosphere.MemoryDB.ParameterGroup (
        ParameterGroup(..), mkParameterGroup
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ParameterGroup
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-parametergroup.html>
    ParameterGroup {ParameterGroup -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-parametergroup.html#cfn-memorydb-parametergroup-description>
                    ParameterGroup -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-parametergroup.html#cfn-memorydb-parametergroup-family>
                    ParameterGroup -> Value Text
family :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-parametergroup.html#cfn-memorydb-parametergroup-parametergroupname>
                    ParameterGroup -> Value Text
parameterGroupName :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-parametergroup.html#cfn-memorydb-parametergroup-parameters>
                    ParameterGroup -> Maybe Object
parameters :: (Prelude.Maybe JSON.Object),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-parametergroup.html#cfn-memorydb-parametergroup-tags>
                    ParameterGroup -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  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 ::
  Value Prelude.Text -> Value Prelude.Text -> ParameterGroup
mkParameterGroup :: Value Text -> Value Text -> ParameterGroup
mkParameterGroup Value Text
family Value Text
parameterGroupName
  = ParameterGroup
      {haddock_workaround_ :: ()
haddock_workaround_ = (), family :: Value Text
family = Value Text
family,
       parameterGroupName :: Value Text
parameterGroupName = Value Text
parameterGroupName,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, parameters :: Maybe Object
parameters = Maybe Object
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ParameterGroup where
  toResourceProperties :: ParameterGroup -> ResourceProperties
toResourceProperties ParameterGroup {Maybe [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
family :: ParameterGroup -> Value Text
parameterGroupName :: ParameterGroup -> Value Text
parameters :: ParameterGroup -> Maybe Object
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MemoryDB::ParameterGroup",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"Family" 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
family,
                            Key
"ParameterGroupName" 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
parameterGroupName]
                           ([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 -> 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
"Parameters" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
parameters,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON ParameterGroup where
  toJSON :: ParameterGroup -> Value
toJSON ParameterGroup {Maybe [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
family :: ParameterGroup -> Value Text
parameterGroupName :: ParameterGroup -> Value Text
parameters :: ParameterGroup -> Maybe Object
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
    = [(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
"Family" 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
family,
               Key
"ParameterGroupName" 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
parameterGroupName]
              ([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 -> 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
"Parameters" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
parameters,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
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 [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
family :: ParameterGroup -> Value Text
parameterGroupName :: ParameterGroup -> Value Text
parameters :: ParameterGroup -> Maybe Object
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
    = 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 [Tag]
Maybe Object
()
Value Text
haddock_workaround_ :: ()
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
haddock_workaround_ :: ()
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
instance Property "Family" ParameterGroup where
  type PropertyType "Family" ParameterGroup = Value Prelude.Text
  set :: PropertyType "Family" ParameterGroup
-> ParameterGroup -> ParameterGroup
set PropertyType "Family" ParameterGroup
newValue ParameterGroup {Maybe [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
family :: ParameterGroup -> Value Text
parameterGroupName :: ParameterGroup -> Value Text
parameters :: ParameterGroup -> Maybe Object
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
    = ParameterGroup {family :: Value Text
family = PropertyType "Family" ParameterGroup
Value Text
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
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 [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
family :: ParameterGroup -> Value Text
parameterGroupName :: ParameterGroup -> Value Text
parameters :: ParameterGroup -> Maybe Object
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
    = ParameterGroup {parameterGroupName :: Value Text
parameterGroupName = PropertyType "ParameterGroupName" ParameterGroup
Value Text
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
instance Property "Parameters" ParameterGroup where
  type PropertyType "Parameters" ParameterGroup = JSON.Object
  set :: PropertyType "Parameters" ParameterGroup
-> ParameterGroup -> ParameterGroup
set PropertyType "Parameters" ParameterGroup
newValue ParameterGroup {Maybe [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
family :: ParameterGroup -> Value Text
parameterGroupName :: ParameterGroup -> Value Text
parameters :: ParameterGroup -> Maybe Object
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
    = ParameterGroup {parameters :: Maybe Object
parameters = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Parameters" ParameterGroup
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" ParameterGroup where
  type PropertyType "Tags" ParameterGroup = [Tag]
  set :: PropertyType "Tags" ParameterGroup
-> ParameterGroup -> ParameterGroup
set PropertyType "Tags" ParameterGroup
newValue ParameterGroup {Maybe [Tag]
Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
description :: ParameterGroup -> Maybe (Value Text)
family :: ParameterGroup -> Value Text
parameterGroupName :: ParameterGroup -> Value Text
parameters :: ParameterGroup -> Maybe Object
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
tags :: Maybe [Tag]
..}
    = ParameterGroup {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" ParameterGroup
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
family :: Value Text
parameterGroupName :: Value Text
parameters :: Maybe Object
..}