module Stratosphere.ElastiCache.GlobalReplicationGroup.RegionalConfigurationProperty (
module Exports, RegionalConfigurationProperty(..),
mkRegionalConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ElastiCache.GlobalReplicationGroup.ReshardingConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RegionalConfigurationProperty
=
RegionalConfigurationProperty {RegionalConfigurationProperty -> ()
haddock_workaround_ :: (),
RegionalConfigurationProperty -> Maybe (Value Text)
replicationGroupId :: (Prelude.Maybe (Value Prelude.Text)),
RegionalConfigurationProperty -> Maybe (Value Text)
replicationGroupRegion :: (Prelude.Maybe (Value Prelude.Text)),
RegionalConfigurationProperty
-> Maybe [ReshardingConfigurationProperty]
reshardingConfigurations :: (Prelude.Maybe [ReshardingConfigurationProperty])}
deriving stock (RegionalConfigurationProperty
-> RegionalConfigurationProperty -> Bool
(RegionalConfigurationProperty
-> RegionalConfigurationProperty -> Bool)
-> (RegionalConfigurationProperty
-> RegionalConfigurationProperty -> Bool)
-> Eq RegionalConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RegionalConfigurationProperty
-> RegionalConfigurationProperty -> Bool
== :: RegionalConfigurationProperty
-> RegionalConfigurationProperty -> Bool
$c/= :: RegionalConfigurationProperty
-> RegionalConfigurationProperty -> Bool
/= :: RegionalConfigurationProperty
-> RegionalConfigurationProperty -> Bool
Prelude.Eq, Int -> RegionalConfigurationProperty -> ShowS
[RegionalConfigurationProperty] -> ShowS
RegionalConfigurationProperty -> String
(Int -> RegionalConfigurationProperty -> ShowS)
-> (RegionalConfigurationProperty -> String)
-> ([RegionalConfigurationProperty] -> ShowS)
-> Show RegionalConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RegionalConfigurationProperty -> ShowS
showsPrec :: Int -> RegionalConfigurationProperty -> ShowS
$cshow :: RegionalConfigurationProperty -> String
show :: RegionalConfigurationProperty -> String
$cshowList :: [RegionalConfigurationProperty] -> ShowS
showList :: [RegionalConfigurationProperty] -> ShowS
Prelude.Show)
mkRegionalConfigurationProperty :: RegionalConfigurationProperty
mkRegionalConfigurationProperty :: RegionalConfigurationProperty
mkRegionalConfigurationProperty
= RegionalConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), replicationGroupId :: Maybe (Value Text)
replicationGroupId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
replicationGroupRegion :: Maybe (Value Text)
replicationGroupRegion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
reshardingConfigurations = Maybe [ReshardingConfigurationProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RegionalConfigurationProperty where
toResourceProperties :: RegionalConfigurationProperty -> ResourceProperties
toResourceProperties RegionalConfigurationProperty {Maybe [ReshardingConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RegionalConfigurationProperty -> ()
replicationGroupId :: RegionalConfigurationProperty -> Maybe (Value Text)
replicationGroupRegion :: RegionalConfigurationProperty -> Maybe (Value Text)
reshardingConfigurations :: RegionalConfigurationProperty
-> Maybe [ReshardingConfigurationProperty]
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
replicationGroupRegion :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ElastiCache::GlobalReplicationGroup.RegionalConfiguration",
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
"ReplicationGroupId" (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)
replicationGroupId,
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
"ReplicationGroupRegion"
(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)
replicationGroupRegion,
Key -> [ReshardingConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ReshardingConfigurations"
([ReshardingConfigurationProperty] -> (Key, Value))
-> Maybe [ReshardingConfigurationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ReshardingConfigurationProperty]
reshardingConfigurations])}
instance JSON.ToJSON RegionalConfigurationProperty where
toJSON :: RegionalConfigurationProperty -> Value
toJSON RegionalConfigurationProperty {Maybe [ReshardingConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RegionalConfigurationProperty -> ()
replicationGroupId :: RegionalConfigurationProperty -> Maybe (Value Text)
replicationGroupRegion :: RegionalConfigurationProperty -> Maybe (Value Text)
reshardingConfigurations :: RegionalConfigurationProperty
-> Maybe [ReshardingConfigurationProperty]
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
replicationGroupRegion :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
..}
= [(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
"ReplicationGroupId" (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)
replicationGroupId,
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
"ReplicationGroupRegion"
(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)
replicationGroupRegion,
Key -> [ReshardingConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ReshardingConfigurations"
([ReshardingConfigurationProperty] -> (Key, Value))
-> Maybe [ReshardingConfigurationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ReshardingConfigurationProperty]
reshardingConfigurations]))
instance Property "ReplicationGroupId" RegionalConfigurationProperty where
type PropertyType "ReplicationGroupId" RegionalConfigurationProperty = Value Prelude.Text
set :: PropertyType "ReplicationGroupId" RegionalConfigurationProperty
-> RegionalConfigurationProperty -> RegionalConfigurationProperty
set PropertyType "ReplicationGroupId" RegionalConfigurationProperty
newValue RegionalConfigurationProperty {Maybe [ReshardingConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RegionalConfigurationProperty -> ()
replicationGroupId :: RegionalConfigurationProperty -> Maybe (Value Text)
replicationGroupRegion :: RegionalConfigurationProperty -> Maybe (Value Text)
reshardingConfigurations :: RegionalConfigurationProperty
-> Maybe [ReshardingConfigurationProperty]
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
replicationGroupRegion :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
..}
= RegionalConfigurationProperty
{replicationGroupId :: Maybe (Value Text)
replicationGroupId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReplicationGroupId" RegionalConfigurationProperty
Value Text
newValue, Maybe [ReshardingConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
replicationGroupRegion :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
haddock_workaround_ :: ()
replicationGroupRegion :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
..}
instance Property "ReplicationGroupRegion" RegionalConfigurationProperty where
type PropertyType "ReplicationGroupRegion" RegionalConfigurationProperty = Value Prelude.Text
set :: PropertyType "ReplicationGroupRegion" RegionalConfigurationProperty
-> RegionalConfigurationProperty -> RegionalConfigurationProperty
set PropertyType "ReplicationGroupRegion" RegionalConfigurationProperty
newValue RegionalConfigurationProperty {Maybe [ReshardingConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RegionalConfigurationProperty -> ()
replicationGroupId :: RegionalConfigurationProperty -> Maybe (Value Text)
replicationGroupRegion :: RegionalConfigurationProperty -> Maybe (Value Text)
reshardingConfigurations :: RegionalConfigurationProperty
-> Maybe [ReshardingConfigurationProperty]
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
replicationGroupRegion :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
..}
= RegionalConfigurationProperty
{replicationGroupRegion :: Maybe (Value Text)
replicationGroupRegion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReplicationGroupRegion" RegionalConfigurationProperty
Value Text
newValue, Maybe [ReshardingConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
..}
instance Property "ReshardingConfigurations" RegionalConfigurationProperty where
type PropertyType "ReshardingConfigurations" RegionalConfigurationProperty = [ReshardingConfigurationProperty]
set :: PropertyType
"ReshardingConfigurations" RegionalConfigurationProperty
-> RegionalConfigurationProperty -> RegionalConfigurationProperty
set PropertyType
"ReshardingConfigurations" RegionalConfigurationProperty
newValue RegionalConfigurationProperty {Maybe [ReshardingConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: RegionalConfigurationProperty -> ()
replicationGroupId :: RegionalConfigurationProperty -> Maybe (Value Text)
replicationGroupRegion :: RegionalConfigurationProperty -> Maybe (Value Text)
reshardingConfigurations :: RegionalConfigurationProperty
-> Maybe [ReshardingConfigurationProperty]
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
replicationGroupRegion :: Maybe (Value Text)
reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
..}
= RegionalConfigurationProperty
{reshardingConfigurations :: Maybe [ReshardingConfigurationProperty]
reshardingConfigurations = [ReshardingConfigurationProperty]
-> Maybe [ReshardingConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ReshardingConfigurationProperty]
PropertyType
"ReshardingConfigurations" RegionalConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
replicationGroupRegion :: Maybe (Value Text)
haddock_workaround_ :: ()
replicationGroupId :: Maybe (Value Text)
replicationGroupRegion :: Maybe (Value Text)
..}