module Stratosphere.ElastiCache.ReplicationGroup.NodeGroupConfigurationProperty (
NodeGroupConfigurationProperty(..),
mkNodeGroupConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NodeGroupConfigurationProperty
=
NodeGroupConfigurationProperty {NodeGroupConfigurationProperty -> ()
haddock_workaround_ :: (),
NodeGroupConfigurationProperty -> Maybe (Value Text)
nodeGroupId :: (Prelude.Maybe (Value Prelude.Text)),
NodeGroupConfigurationProperty -> Maybe (Value Text)
primaryAvailabilityZone :: (Prelude.Maybe (Value Prelude.Text)),
NodeGroupConfigurationProperty -> Maybe (ValueList Text)
replicaAvailabilityZones :: (Prelude.Maybe (ValueList Prelude.Text)),
NodeGroupConfigurationProperty -> Maybe (Value Integer)
replicaCount :: (Prelude.Maybe (Value Prelude.Integer)),
NodeGroupConfigurationProperty -> Maybe (Value Text)
slots :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> Bool
(NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> Bool)
-> (NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> Bool)
-> Eq NodeGroupConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> Bool
== :: NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> Bool
$c/= :: NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> Bool
/= :: NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> Bool
Prelude.Eq, Int -> NodeGroupConfigurationProperty -> ShowS
[NodeGroupConfigurationProperty] -> ShowS
NodeGroupConfigurationProperty -> String
(Int -> NodeGroupConfigurationProperty -> ShowS)
-> (NodeGroupConfigurationProperty -> String)
-> ([NodeGroupConfigurationProperty] -> ShowS)
-> Show NodeGroupConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NodeGroupConfigurationProperty -> ShowS
showsPrec :: Int -> NodeGroupConfigurationProperty -> ShowS
$cshow :: NodeGroupConfigurationProperty -> String
show :: NodeGroupConfigurationProperty -> String
$cshowList :: [NodeGroupConfigurationProperty] -> ShowS
showList :: [NodeGroupConfigurationProperty] -> ShowS
Prelude.Show)
mkNodeGroupConfigurationProperty :: NodeGroupConfigurationProperty
mkNodeGroupConfigurationProperty :: NodeGroupConfigurationProperty
mkNodeGroupConfigurationProperty
= NodeGroupConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), nodeGroupId :: Maybe (Value Text)
nodeGroupId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
primaryAvailabilityZone :: Maybe (Value Text)
primaryAvailabilityZone = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaAvailabilityZones = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
replicaCount :: Maybe (Value Integer)
replicaCount = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, slots :: Maybe (Value Text)
slots = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NodeGroupConfigurationProperty where
toResourceProperties :: NodeGroupConfigurationProperty -> ResourceProperties
toResourceProperties NodeGroupConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: NodeGroupConfigurationProperty -> ()
nodeGroupId :: NodeGroupConfigurationProperty -> Maybe (Value Text)
primaryAvailabilityZone :: NodeGroupConfigurationProperty -> Maybe (Value Text)
replicaAvailabilityZones :: NodeGroupConfigurationProperty -> Maybe (ValueList Text)
replicaCount :: NodeGroupConfigurationProperty -> Maybe (Value Integer)
slots :: NodeGroupConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ElastiCache::ReplicationGroup.NodeGroupConfiguration",
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
"NodeGroupId" (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)
nodeGroupId,
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
"PrimaryAvailabilityZone"
(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)
primaryAvailabilityZone,
Key -> ValueList 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
"ReplicaAvailabilityZones"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
replicaAvailabilityZones,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ReplicaCount" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
replicaCount,
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
"Slots" (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)
slots])}
instance JSON.ToJSON NodeGroupConfigurationProperty where
toJSON :: NodeGroupConfigurationProperty -> Value
toJSON NodeGroupConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: NodeGroupConfigurationProperty -> ()
nodeGroupId :: NodeGroupConfigurationProperty -> Maybe (Value Text)
primaryAvailabilityZone :: NodeGroupConfigurationProperty -> Maybe (Value Text)
replicaAvailabilityZones :: NodeGroupConfigurationProperty -> Maybe (ValueList Text)
replicaCount :: NodeGroupConfigurationProperty -> Maybe (Value Integer)
slots :: NodeGroupConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: 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 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
"NodeGroupId" (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)
nodeGroupId,
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
"PrimaryAvailabilityZone"
(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)
primaryAvailabilityZone,
Key -> ValueList 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
"ReplicaAvailabilityZones"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
replicaAvailabilityZones,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ReplicaCount" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
replicaCount,
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
"Slots" (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)
slots]))
instance Property "NodeGroupId" NodeGroupConfigurationProperty where
type PropertyType "NodeGroupId" NodeGroupConfigurationProperty = Value Prelude.Text
set :: PropertyType "NodeGroupId" NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> NodeGroupConfigurationProperty
set PropertyType "NodeGroupId" NodeGroupConfigurationProperty
newValue NodeGroupConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: NodeGroupConfigurationProperty -> ()
nodeGroupId :: NodeGroupConfigurationProperty -> Maybe (Value Text)
primaryAvailabilityZone :: NodeGroupConfigurationProperty -> Maybe (Value Text)
replicaAvailabilityZones :: NodeGroupConfigurationProperty -> Maybe (ValueList Text)
replicaCount :: NodeGroupConfigurationProperty -> Maybe (Value Integer)
slots :: NodeGroupConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
= NodeGroupConfigurationProperty
{nodeGroupId :: Maybe (Value Text)
nodeGroupId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NodeGroupId" NodeGroupConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
haddock_workaround_ :: ()
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
instance Property "PrimaryAvailabilityZone" NodeGroupConfigurationProperty where
type PropertyType "PrimaryAvailabilityZone" NodeGroupConfigurationProperty = Value Prelude.Text
set :: PropertyType
"PrimaryAvailabilityZone" NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> NodeGroupConfigurationProperty
set PropertyType
"PrimaryAvailabilityZone" NodeGroupConfigurationProperty
newValue NodeGroupConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: NodeGroupConfigurationProperty -> ()
nodeGroupId :: NodeGroupConfigurationProperty -> Maybe (Value Text)
primaryAvailabilityZone :: NodeGroupConfigurationProperty -> Maybe (Value Text)
replicaAvailabilityZones :: NodeGroupConfigurationProperty -> Maybe (ValueList Text)
replicaCount :: NodeGroupConfigurationProperty -> Maybe (Value Integer)
slots :: NodeGroupConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
= NodeGroupConfigurationProperty
{primaryAvailabilityZone :: Maybe (Value Text)
primaryAvailabilityZone = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"PrimaryAvailabilityZone" NodeGroupConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
instance Property "ReplicaAvailabilityZones" NodeGroupConfigurationProperty where
type PropertyType "ReplicaAvailabilityZones" NodeGroupConfigurationProperty = ValueList Prelude.Text
set :: PropertyType
"ReplicaAvailabilityZones" NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> NodeGroupConfigurationProperty
set PropertyType
"ReplicaAvailabilityZones" NodeGroupConfigurationProperty
newValue NodeGroupConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: NodeGroupConfigurationProperty -> ()
nodeGroupId :: NodeGroupConfigurationProperty -> Maybe (Value Text)
primaryAvailabilityZone :: NodeGroupConfigurationProperty -> Maybe (Value Text)
replicaAvailabilityZones :: NodeGroupConfigurationProperty -> Maybe (ValueList Text)
replicaCount :: NodeGroupConfigurationProperty -> Maybe (Value Integer)
slots :: NodeGroupConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
= NodeGroupConfigurationProperty
{replicaAvailabilityZones :: Maybe (ValueList Text)
replicaAvailabilityZones = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ReplicaAvailabilityZones" NodeGroupConfigurationProperty
ValueList Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
instance Property "ReplicaCount" NodeGroupConfigurationProperty where
type PropertyType "ReplicaCount" NodeGroupConfigurationProperty = Value Prelude.Integer
set :: PropertyType "ReplicaCount" NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> NodeGroupConfigurationProperty
set PropertyType "ReplicaCount" NodeGroupConfigurationProperty
newValue NodeGroupConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: NodeGroupConfigurationProperty -> ()
nodeGroupId :: NodeGroupConfigurationProperty -> Maybe (Value Text)
primaryAvailabilityZone :: NodeGroupConfigurationProperty -> Maybe (Value Text)
replicaAvailabilityZones :: NodeGroupConfigurationProperty -> Maybe (ValueList Text)
replicaCount :: NodeGroupConfigurationProperty -> Maybe (Value Integer)
slots :: NodeGroupConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
= NodeGroupConfigurationProperty
{replicaCount :: Maybe (Value Integer)
replicaCount = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReplicaCount" NodeGroupConfigurationProperty
Value Integer
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
slots :: Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
slots :: Maybe (Value Text)
..}
instance Property "Slots" NodeGroupConfigurationProperty where
type PropertyType "Slots" NodeGroupConfigurationProperty = Value Prelude.Text
set :: PropertyType "Slots" NodeGroupConfigurationProperty
-> NodeGroupConfigurationProperty -> NodeGroupConfigurationProperty
set PropertyType "Slots" NodeGroupConfigurationProperty
newValue NodeGroupConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: NodeGroupConfigurationProperty -> ()
nodeGroupId :: NodeGroupConfigurationProperty -> Maybe (Value Text)
primaryAvailabilityZone :: NodeGroupConfigurationProperty -> Maybe (Value Text)
replicaAvailabilityZones :: NodeGroupConfigurationProperty -> Maybe (ValueList Text)
replicaCount :: NodeGroupConfigurationProperty -> Maybe (Value Integer)
slots :: NodeGroupConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
slots :: Maybe (Value Text)
..}
= NodeGroupConfigurationProperty
{slots :: Maybe (Value Text)
slots = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Slots" NodeGroupConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
primaryAvailabilityZone :: Maybe (Value Text)
replicaAvailabilityZones :: Maybe (ValueList Text)
replicaCount :: Maybe (Value Integer)
..}