module Stratosphere.ElastiCache.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
=
ParameterGroup {ParameterGroup -> ()
haddock_workaround_ :: (),
ParameterGroup -> Value Text
cacheParameterGroupFamily :: (Value Prelude.Text),
ParameterGroup -> Value Text
description :: (Value Prelude.Text),
ParameterGroup -> Maybe (Map Text (Value Text))
properties :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
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
cacheParameterGroupFamily Value Text
description
= ParameterGroup
{haddock_workaround_ :: ()
haddock_workaround_ = (),
cacheParameterGroupFamily :: Value Text
cacheParameterGroupFamily = Value Text
cacheParameterGroupFamily,
description :: Value Text
description = Value Text
description, properties :: Maybe (Map Text (Value Text))
properties = Maybe (Map Text (Value Text))
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 (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
cacheParameterGroupFamily :: ParameterGroup -> Value Text
description :: ParameterGroup -> Value Text
properties :: ParameterGroup -> Maybe (Map Text (Value Text))
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
properties :: Maybe (Map Text (Value Text))
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ElastiCache::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
"CacheParameterGroupFamily" 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
cacheParameterGroupFamily,
Key
"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..= Value Text
description]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Map Text (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
"Properties" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
properties,
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 (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
cacheParameterGroupFamily :: ParameterGroup -> Value Text
description :: ParameterGroup -> Value Text
properties :: ParameterGroup -> Maybe (Map Text (Value Text))
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
properties :: Maybe (Map Text (Value Text))
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
"CacheParameterGroupFamily" 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
cacheParameterGroupFamily,
Key
"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..= Value Text
description]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Map Text (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
"Properties" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
properties,
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 "CacheParameterGroupFamily" ParameterGroup where
type PropertyType "CacheParameterGroupFamily" ParameterGroup = Value Prelude.Text
set :: PropertyType "CacheParameterGroupFamily" ParameterGroup
-> ParameterGroup -> ParameterGroup
set PropertyType "CacheParameterGroupFamily" ParameterGroup
newValue ParameterGroup {Maybe [Tag]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
cacheParameterGroupFamily :: ParameterGroup -> Value Text
description :: ParameterGroup -> Value Text
properties :: ParameterGroup -> Maybe (Map Text (Value Text))
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
properties :: Maybe (Map Text (Value Text))
tags :: Maybe [Tag]
..}
= ParameterGroup {cacheParameterGroupFamily :: Value Text
cacheParameterGroupFamily = PropertyType "CacheParameterGroupFamily" ParameterGroup
Value Text
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
description :: Value Text
properties :: Maybe (Map Text (Value Text))
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Value Text
properties :: Maybe (Map Text (Value Text))
tags :: Maybe [Tag]
..}
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 (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
cacheParameterGroupFamily :: ParameterGroup -> Value Text
description :: ParameterGroup -> Value Text
properties :: ParameterGroup -> Maybe (Map Text (Value Text))
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
properties :: Maybe (Map Text (Value Text))
tags :: Maybe [Tag]
..}
= ParameterGroup {description :: Value Text
description = PropertyType "Description" ParameterGroup
Value Text
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
properties :: Maybe (Map Text (Value Text))
tags :: Maybe [Tag]
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
properties :: Maybe (Map Text (Value Text))
tags :: Maybe [Tag]
..}
instance Property "Properties" ParameterGroup where
type PropertyType "Properties" ParameterGroup = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Properties" ParameterGroup
-> ParameterGroup -> ParameterGroup
set PropertyType "Properties" ParameterGroup
newValue ParameterGroup {Maybe [Tag]
Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
cacheParameterGroupFamily :: ParameterGroup -> Value Text
description :: ParameterGroup -> Value Text
properties :: ParameterGroup -> Maybe (Map Text (Value Text))
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
properties :: Maybe (Map Text (Value Text))
tags :: Maybe [Tag]
..}
= ParameterGroup {properties :: Maybe (Map Text (Value Text))
properties = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Properties" ParameterGroup
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: 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 (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ParameterGroup -> ()
cacheParameterGroupFamily :: ParameterGroup -> Value Text
description :: ParameterGroup -> Value Text
properties :: ParameterGroup -> Maybe (Map Text (Value Text))
tags :: ParameterGroup -> Maybe [Tag]
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
properties :: Maybe (Map Text (Value Text))
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 (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
properties :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
cacheParameterGroupFamily :: Value Text
description :: Value Text
properties :: Maybe (Map Text (Value Text))
..}