CfnGlobalReplicationGroupPropsMixin
- class aws_cdk.mixins_preview.aws_elasticache.mixins.CfnGlobalReplicationGroupPropsMixin(props, *, strategy=None)
Bases:
MixinConsists of a primary cluster that accepts writes and an associated secondary cluster that resides in a different Amazon region.
The secondary cluster accepts only reads. The primary cluster automatically replicates updates to the secondary cluster.
The GlobalReplicationGroupIdSuffix represents the name of the Global datastore, which is what you use to associate a secondary cluster.
- See:
- CloudformationResource:
AWS::ElastiCache::GlobalReplicationGroup
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_elasticache import mixins as elasticache_mixins cfn_global_replication_group_props_mixin = elasticache_mixins.CfnGlobalReplicationGroupPropsMixin(elasticache_mixins.CfnGlobalReplicationGroupMixinProps( automatic_failover_enabled=False, cache_node_type="cacheNodeType", cache_parameter_group_name="cacheParameterGroupName", engine="engine", engine_version="engineVersion", global_node_group_count=123, global_replication_group_description="globalReplicationGroupDescription", global_replication_group_id_suffix="globalReplicationGroupIdSuffix", members=[elasticache_mixins.CfnGlobalReplicationGroupPropsMixin.GlobalReplicationGroupMemberProperty( replication_group_id="replicationGroupId", replication_group_region="replicationGroupRegion", role="role" )], regional_configurations=[elasticache_mixins.CfnGlobalReplicationGroupPropsMixin.RegionalConfigurationProperty( replication_group_id="replicationGroupId", replication_group_region="replicationGroupRegion", resharding_configurations=[elasticache_mixins.CfnGlobalReplicationGroupPropsMixin.ReshardingConfigurationProperty( node_group_id="nodeGroupId", preferred_availability_zones=["preferredAvailabilityZones"] )] )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ElastiCache::GlobalReplicationGroup.- Parameters:
props (
Union[CfnGlobalReplicationGroupMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['automaticFailoverEnabled', 'cacheNodeType', 'cacheParameterGroupName', 'engine', 'engineVersion', 'globalNodeGroupCount', 'globalReplicationGroupDescription', 'globalReplicationGroupIdSuffix', 'members', 'regionalConfigurations']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
GlobalReplicationGroupMemberProperty
- class CfnGlobalReplicationGroupPropsMixin.GlobalReplicationGroupMemberProperty(*, replication_group_id=None, replication_group_region=None, role=None)
Bases:
objectA member of a Global datastore.
It contains the Replication Group Id, the Amazon region and the role of the replication group.
- Parameters:
replication_group_id (
Optional[str]) – The replication group id of the Global datastore member.replication_group_region (
Optional[str]) – The Amazon region of the Global datastore member.role (
Optional[str]) – Indicates the role of the replication group,PRIMARYorSECONDARY.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_elasticache import mixins as elasticache_mixins global_replication_group_member_property = elasticache_mixins.CfnGlobalReplicationGroupPropsMixin.GlobalReplicationGroupMemberProperty( replication_group_id="replicationGroupId", replication_group_region="replicationGroupRegion", role="role" )
Attributes
- replication_group_id
The replication group id of the Global datastore member.
- replication_group_region
The Amazon region of the Global datastore member.
- role
Indicates the role of the replication group,
PRIMARYorSECONDARY.
RegionalConfigurationProperty
- class CfnGlobalReplicationGroupPropsMixin.RegionalConfigurationProperty(*, replication_group_id=None, replication_group_region=None, resharding_configurations=None)
Bases:
objectA list of the replication groups.
- Parameters:
replication_group_id (
Optional[str]) – The name of the secondary cluster.replication_group_region (
Optional[str]) – The Amazon region where the cluster is stored.resharding_configurations (
Union[IResolvable,Sequence[Union[IResolvable,ReshardingConfigurationProperty,Dict[str,Any]]],None]) – A list of PreferredAvailabilityZones objects that specifies the configuration of a node group in the resharded cluster.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_elasticache import mixins as elasticache_mixins regional_configuration_property = elasticache_mixins.CfnGlobalReplicationGroupPropsMixin.RegionalConfigurationProperty( replication_group_id="replicationGroupId", replication_group_region="replicationGroupRegion", resharding_configurations=[elasticache_mixins.CfnGlobalReplicationGroupPropsMixin.ReshardingConfigurationProperty( node_group_id="nodeGroupId", preferred_availability_zones=["preferredAvailabilityZones"] )] )
Attributes
- replication_group_id
The name of the secondary cluster.
- replication_group_region
The Amazon region where the cluster is stored.
- resharding_configurations
A list of PreferredAvailabilityZones objects that specifies the configuration of a node group in the resharded cluster.
ReshardingConfigurationProperty
- class CfnGlobalReplicationGroupPropsMixin.ReshardingConfigurationProperty(*, node_group_id=None, preferred_availability_zones=None)
Bases:
objectA list of
PreferredAvailabilityZonesobjects that specifies the configuration of a node group in the resharded cluster.- Parameters:
node_group_id (
Optional[str]) – Either the ElastiCache supplied 4-digit id or a user supplied id for the node group these configuration values apply to.preferred_availability_zones (
Optional[Sequence[str]]) – A list of preferred availability zones for the nodes in this cluster.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_elasticache import mixins as elasticache_mixins resharding_configuration_property = elasticache_mixins.CfnGlobalReplicationGroupPropsMixin.ReshardingConfigurationProperty( node_group_id="nodeGroupId", preferred_availability_zones=["preferredAvailabilityZones"] )
Attributes
- node_group_id
Either the ElastiCache supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
- preferred_availability_zones
A list of preferred availability zones for the nodes in this cluster.