CfnGlobalReplicationGroupPropsMixin

class aws_cdk.mixins_preview.aws_elasticache.mixins.CfnGlobalReplicationGroupPropsMixin(props, *, strategy=None)

Bases: Mixin

Consists 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-globalreplicationgroup.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

GlobalReplicationGroupMemberProperty

class CfnGlobalReplicationGroupPropsMixin.GlobalReplicationGroupMemberProperty(*, replication_group_id=None, replication_group_region=None, role=None)

Bases: object

A 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, PRIMARY or SECONDARY .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-globalreplicationgroupmember.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-globalreplicationgroupmember.html#cfn-elasticache-globalreplicationgroup-globalreplicationgroupmember-replicationgroupid

replication_group_region

The Amazon region of the Global datastore member.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-globalreplicationgroupmember.html#cfn-elasticache-globalreplicationgroup-globalreplicationgroupmember-replicationgroupregion

role

Indicates the role of the replication group, PRIMARY or SECONDARY .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-globalreplicationgroupmember.html#cfn-elasticache-globalreplicationgroup-globalreplicationgroupmember-role

RegionalConfigurationProperty

class CfnGlobalReplicationGroupPropsMixin.RegionalConfigurationProperty(*, replication_group_id=None, replication_group_region=None, resharding_configurations=None)

Bases: object

A 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-regionalconfiguration.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-regionalconfiguration.html#cfn-elasticache-globalreplicationgroup-regionalconfiguration-replicationgroupid

replication_group_region

The Amazon region where the cluster is stored.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-regionalconfiguration.html#cfn-elasticache-globalreplicationgroup-regionalconfiguration-replicationgroupregion

resharding_configurations

A list of PreferredAvailabilityZones objects that specifies the configuration of a node group in the resharded cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-regionalconfiguration.html#cfn-elasticache-globalreplicationgroup-regionalconfiguration-reshardingconfigurations

ReshardingConfigurationProperty

class CfnGlobalReplicationGroupPropsMixin.ReshardingConfigurationProperty(*, node_group_id=None, preferred_availability_zones=None)

Bases: object

A list of PreferredAvailabilityZones objects 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-reshardingconfiguration.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-reshardingconfiguration.html#cfn-elasticache-globalreplicationgroup-reshardingconfiguration-nodegroupid

preferred_availability_zones

A list of preferred availability zones for the nodes in this cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-globalreplicationgroup-reshardingconfiguration.html#cfn-elasticache-globalreplicationgroup-reshardingconfiguration-preferredavailabilityzones