module Stratosphere.ElastiCache.GlobalReplicationGroup.ReshardingConfigurationProperty (
ReshardingConfigurationProperty(..),
mkReshardingConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReshardingConfigurationProperty
=
ReshardingConfigurationProperty {ReshardingConfigurationProperty -> ()
haddock_workaround_ :: (),
ReshardingConfigurationProperty -> Maybe (Value Text)
nodeGroupId :: (Prelude.Maybe (Value Prelude.Text)),
ReshardingConfigurationProperty -> Maybe (ValueList Text)
preferredAvailabilityZones :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (ReshardingConfigurationProperty
-> ReshardingConfigurationProperty -> Bool
(ReshardingConfigurationProperty
-> ReshardingConfigurationProperty -> Bool)
-> (ReshardingConfigurationProperty
-> ReshardingConfigurationProperty -> Bool)
-> Eq ReshardingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReshardingConfigurationProperty
-> ReshardingConfigurationProperty -> Bool
== :: ReshardingConfigurationProperty
-> ReshardingConfigurationProperty -> Bool
$c/= :: ReshardingConfigurationProperty
-> ReshardingConfigurationProperty -> Bool
/= :: ReshardingConfigurationProperty
-> ReshardingConfigurationProperty -> Bool
Prelude.Eq, Int -> ReshardingConfigurationProperty -> ShowS
[ReshardingConfigurationProperty] -> ShowS
ReshardingConfigurationProperty -> String
(Int -> ReshardingConfigurationProperty -> ShowS)
-> (ReshardingConfigurationProperty -> String)
-> ([ReshardingConfigurationProperty] -> ShowS)
-> Show ReshardingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReshardingConfigurationProperty -> ShowS
showsPrec :: Int -> ReshardingConfigurationProperty -> ShowS
$cshow :: ReshardingConfigurationProperty -> String
show :: ReshardingConfigurationProperty -> String
$cshowList :: [ReshardingConfigurationProperty] -> ShowS
showList :: [ReshardingConfigurationProperty] -> ShowS
Prelude.Show)
mkReshardingConfigurationProperty ::
ReshardingConfigurationProperty
mkReshardingConfigurationProperty :: ReshardingConfigurationProperty
mkReshardingConfigurationProperty
= ReshardingConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), nodeGroupId :: Maybe (Value Text)
nodeGroupId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
preferredAvailabilityZones :: Maybe (ValueList Text)
preferredAvailabilityZones = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReshardingConfigurationProperty where
toResourceProperties :: ReshardingConfigurationProperty -> ResourceProperties
toResourceProperties ReshardingConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ReshardingConfigurationProperty -> ()
nodeGroupId :: ReshardingConfigurationProperty -> Maybe (Value Text)
preferredAvailabilityZones :: ReshardingConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
preferredAvailabilityZones :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ElastiCache::GlobalReplicationGroup.ReshardingConfiguration",
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 -> 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
"PreferredAvailabilityZones"
(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)
preferredAvailabilityZones])}
instance JSON.ToJSON ReshardingConfigurationProperty where
toJSON :: ReshardingConfigurationProperty -> Value
toJSON ReshardingConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ReshardingConfigurationProperty -> ()
nodeGroupId :: ReshardingConfigurationProperty -> Maybe (Value Text)
preferredAvailabilityZones :: ReshardingConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
preferredAvailabilityZones :: Maybe (ValueList 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 -> 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
"PreferredAvailabilityZones"
(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)
preferredAvailabilityZones]))
instance Property "NodeGroupId" ReshardingConfigurationProperty where
type PropertyType "NodeGroupId" ReshardingConfigurationProperty = Value Prelude.Text
set :: PropertyType "NodeGroupId" ReshardingConfigurationProperty
-> ReshardingConfigurationProperty
-> ReshardingConfigurationProperty
set PropertyType "NodeGroupId" ReshardingConfigurationProperty
newValue ReshardingConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ReshardingConfigurationProperty -> ()
nodeGroupId :: ReshardingConfigurationProperty -> Maybe (Value Text)
preferredAvailabilityZones :: ReshardingConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
preferredAvailabilityZones :: Maybe (ValueList Text)
..}
= ReshardingConfigurationProperty
{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" ReshardingConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
preferredAvailabilityZones :: Maybe (ValueList Text)
haddock_workaround_ :: ()
preferredAvailabilityZones :: Maybe (ValueList Text)
..}
instance Property "PreferredAvailabilityZones" ReshardingConfigurationProperty where
type PropertyType "PreferredAvailabilityZones" ReshardingConfigurationProperty = ValueList Prelude.Text
set :: PropertyType
"PreferredAvailabilityZones" ReshardingConfigurationProperty
-> ReshardingConfigurationProperty
-> ReshardingConfigurationProperty
set PropertyType
"PreferredAvailabilityZones" ReshardingConfigurationProperty
newValue ReshardingConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ReshardingConfigurationProperty -> ()
nodeGroupId :: ReshardingConfigurationProperty -> Maybe (Value Text)
preferredAvailabilityZones :: ReshardingConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
preferredAvailabilityZones :: Maybe (ValueList Text)
..}
= ReshardingConfigurationProperty
{preferredAvailabilityZones :: Maybe (ValueList Text)
preferredAvailabilityZones = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"PreferredAvailabilityZones" ReshardingConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
haddock_workaround_ :: ()
nodeGroupId :: Maybe (Value Text)
..}