CfnReplicationGroup

class aws_cdk.aws_elasticache.CfnReplicationGroup(scope, id, *, replication_group_description, at_rest_encryption_enabled=None, auth_token=None, automatic_failover_enabled=None, auto_minor_version_upgrade=None, cache_node_type=None, cache_parameter_group_name=None, cache_security_group_names=None, cache_subnet_group_name=None, engine=None, engine_version=None, kms_key_id=None, node_group_configuration=None, notification_topic_arn=None, num_cache_clusters=None, num_node_groups=None, port=None, preferred_cache_cluster_a_zs=None, preferred_maintenance_window=None, primary_cluster_id=None, replicas_per_node_group=None, replication_group_id=None, security_group_ids=None, snapshot_arns=None, snapshot_name=None, snapshot_retention_limit=None, snapshotting_cluster_id=None, snapshot_window=None, tags=None, transit_encryption_enabled=None)

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::ElastiCache::ReplicationGroup.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html cloudformationResource: :cloudformationResource:: AWS::ElastiCache::ReplicationGroup

__init__(scope, id, *, replication_group_description, at_rest_encryption_enabled=None, auth_token=None, automatic_failover_enabled=None, auto_minor_version_upgrade=None, cache_node_type=None, cache_parameter_group_name=None, cache_security_group_names=None, cache_subnet_group_name=None, engine=None, engine_version=None, kms_key_id=None, node_group_configuration=None, notification_topic_arn=None, num_cache_clusters=None, num_node_groups=None, port=None, preferred_cache_cluster_a_zs=None, preferred_maintenance_window=None, primary_cluster_id=None, replicas_per_node_group=None, replication_group_id=None, security_group_ids=None, snapshot_arns=None, snapshot_name=None, snapshot_retention_limit=None, snapshotting_cluster_id=None, snapshot_window=None, tags=None, transit_encryption_enabled=None)

Create a new AWS::ElastiCache::ReplicationGroup.

Parameters
  • scope (Construct) –

    • scope in which this resource is defined.

  • id (str) –

    • scoped id of the resource.

  • replication_group_description (str) – AWS::ElastiCache::ReplicationGroup.ReplicationGroupDescription.

  • at_rest_encryption_enabled (Union[bool, None, IResolvable]) – AWS::ElastiCache::ReplicationGroup.AtRestEncryptionEnabled.

  • auth_token (Optional[str]) – AWS::ElastiCache::ReplicationGroup.AuthToken.

  • automatic_failover_enabled (Union[bool, None, IResolvable]) – AWS::ElastiCache::ReplicationGroup.AutomaticFailoverEnabled.

  • auto_minor_version_upgrade (Union[bool, None, IResolvable]) – AWS::ElastiCache::ReplicationGroup.AutoMinorVersionUpgrade.

  • cache_node_type (Optional[str]) – AWS::ElastiCache::ReplicationGroup.CacheNodeType.

  • cache_parameter_group_name (Optional[str]) – AWS::ElastiCache::ReplicationGroup.CacheParameterGroupName.

  • cache_security_group_names (Optional[List[str]]) – AWS::ElastiCache::ReplicationGroup.CacheSecurityGroupNames.

  • cache_subnet_group_name (Optional[str]) – AWS::ElastiCache::ReplicationGroup.CacheSubnetGroupName.

  • engine (Optional[str]) – AWS::ElastiCache::ReplicationGroup.Engine.

  • engine_version (Optional[str]) – AWS::ElastiCache::ReplicationGroup.EngineVersion.

  • kms_key_id (Optional[str]) – AWS::ElastiCache::ReplicationGroup.KmsKeyId.

  • node_group_configuration (Union[IResolvable, None, List[Union[IResolvable, Forwardref]]]) – AWS::ElastiCache::ReplicationGroup.NodeGroupConfiguration.

  • notification_topic_arn (Optional[str]) – AWS::ElastiCache::ReplicationGroup.NotificationTopicArn.

  • num_cache_clusters (Union[int, float, None]) – AWS::ElastiCache::ReplicationGroup.NumCacheClusters.

  • num_node_groups (Union[int, float, None]) – AWS::ElastiCache::ReplicationGroup.NumNodeGroups.

  • port (Union[int, float, None]) – AWS::ElastiCache::ReplicationGroup.Port.

  • preferred_cache_cluster_a_zs (Optional[List[str]]) – AWS::ElastiCache::ReplicationGroup.PreferredCacheClusterAZs.

  • preferred_maintenance_window (Optional[str]) – AWS::ElastiCache::ReplicationGroup.PreferredMaintenanceWindow.

  • primary_cluster_id (Optional[str]) – AWS::ElastiCache::ReplicationGroup.PrimaryClusterId.

  • replicas_per_node_group (Union[int, float, None]) – AWS::ElastiCache::ReplicationGroup.ReplicasPerNodeGroup.

  • replication_group_id (Optional[str]) – AWS::ElastiCache::ReplicationGroup.ReplicationGroupId.

  • security_group_ids (Optional[List[str]]) – AWS::ElastiCache::ReplicationGroup.SecurityGroupIds.

  • snapshot_arns (Optional[List[str]]) – AWS::ElastiCache::ReplicationGroup.SnapshotArns.

  • snapshot_name (Optional[str]) – AWS::ElastiCache::ReplicationGroup.SnapshotName.

  • snapshot_retention_limit (Union[int, float, None]) – AWS::ElastiCache::ReplicationGroup.SnapshotRetentionLimit.

  • snapshotting_cluster_id (Optional[str]) – AWS::ElastiCache::ReplicationGroup.SnapshottingClusterId.

  • snapshot_window (Optional[str]) – AWS::ElastiCache::ReplicationGroup.SnapshotWindow.

  • tags (Optional[List[CfnTag]]) – AWS::ElastiCache::ReplicationGroup.Tags.

  • transit_encryption_enabled (Union[bool, None, IResolvable]) – AWS::ElastiCache::ReplicationGroup.TransitEncryptionEnabled.

Return type

None

Methods

add_deletion_override(path)

Syntactic sugar for addOverride(path, undefined).

Parameters

path (str) – The path of the value to delete.

Return type

None

add_depends_on(target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

Parameters

target (CfnResource) –

Return type

None

add_override(path, value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

For example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")

would add the overrides Example:

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}
Parameters
  • path (str) –

    • The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.

  • value (Any) –

    • The value. Could be primitive or complex.

Return type

None

add_property_deletion_override(property_path)

Adds an override that deletes the value of a property from the resource definition.

Parameters

property_path (str) – The path to the property.

Return type

None

add_property_override(property_path, value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

Parameters
  • property_path (str) – The path of the property.

  • value (Any) – The value.

Return type

None

apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)

Sets the deletion policy of the resource based on the removal policy specified.

Parameters
  • policy (Optional[RemovalPolicy]) –

  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource’s documentation.

Return type

None

get_att(attribute_name)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

Parameters

attribute_name (str) – The name of the attribute.

Return type

Reference

inspect(inspector)

Examines the CloudFormation resource and discloses attributes.

Parameters

inspector (TreeInspector) –

  • tree inspector to collect and process attributes.

stability :stability: experimental

Return type

None

override_logical_id(new_logical_id)

Overrides the auto-generated logical ID with a specific ID.

Parameters

new_logical_id (str) – The new logical ID to use for this stack element.

Return type

None

to_string()

Returns a string representation of this construct.

return :rtype: str :return: a string representation of this resource

Attributes

CFN_RESOURCE_TYPE_NAME = 'AWS::ElastiCache::ReplicationGroup'
at_rest_encryption_enabled

AWS::ElastiCache::ReplicationGroup.AtRestEncryptionEnabled.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-atrestencryptionenabled

Return type

Union[bool, None, IResolvable]

attr_configuration_end_point_address

cloudformationAttribute: :cloudformationAttribute:: ConfigurationEndPoint.Address

Return type

str

attr_configuration_end_point_port

cloudformationAttribute: :cloudformationAttribute:: ConfigurationEndPoint.Port

Return type

str

attr_primary_end_point_address

cloudformationAttribute: :cloudformationAttribute:: PrimaryEndPoint.Address

Return type

str

attr_primary_end_point_port

cloudformationAttribute: :cloudformationAttribute:: PrimaryEndPoint.Port

Return type

str

attr_read_end_point_addresses

cloudformationAttribute: :cloudformationAttribute:: ReadEndPoint.Addresses

Return type

str

attr_read_end_point_addresses_list

cloudformationAttribute: :cloudformationAttribute:: ReadEndPoint.Addresses.List

Return type

List[str]

attr_read_end_point_ports

cloudformationAttribute: :cloudformationAttribute:: ReadEndPoint.Ports

Return type

str

attr_read_end_point_ports_list

cloudformationAttribute: :cloudformationAttribute:: ReadEndPoint.Ports.List

Return type

List[str]

auth_token

AWS::ElastiCache::ReplicationGroup.AuthToken.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-authtoken

Return type

Optional[str]

auto_minor_version_upgrade

AWS::ElastiCache::ReplicationGroup.AutoMinorVersionUpgrade.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-autominorversionupgrade

Return type

Union[bool, None, IResolvable]

automatic_failover_enabled

AWS::ElastiCache::ReplicationGroup.AutomaticFailoverEnabled.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-automaticfailoverenabled

Return type

Union[bool, None, IResolvable]

cache_node_type

AWS::ElastiCache::ReplicationGroup.CacheNodeType.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cachenodetype

Return type

Optional[str]

cache_parameter_group_name

AWS::ElastiCache::ReplicationGroup.CacheParameterGroupName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cacheparametergroupname

Return type

Optional[str]

cache_security_group_names

AWS::ElastiCache::ReplicationGroup.CacheSecurityGroupNames.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cachesecuritygroupnames

Return type

Optional[List[str]]

cache_subnet_group_name

AWS::ElastiCache::ReplicationGroup.CacheSubnetGroupName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-cachesubnetgroupname

Return type

Optional[str]

cfn_options

Options for this resource, such as condition, update policy etc.

Return type

ICfnResourceOptions

cfn_resource_type

AWS resource type.

Return type

str

creation_stack

return :rtype: List[str] :return:

the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.

engine

AWS::ElastiCache::ReplicationGroup.Engine.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-engine

Return type

Optional[str]

engine_version

AWS::ElastiCache::ReplicationGroup.EngineVersion.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-engineversion

Return type

Optional[str]

kms_key_id

AWS::ElastiCache::ReplicationGroup.KmsKeyId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-kmskeyid

Return type

Optional[str]

logical_id

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

return :rtype: str :return:

the logical ID as a stringified token. This value will only get resolved during synthesis.

node

The construct tree node associated with this construct.

Return type

ConstructNode

node_group_configuration

AWS::ElastiCache::ReplicationGroup.NodeGroupConfiguration.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-nodegroupconfiguration

Return type

Union[IResolvable, None, List[Union[IResolvable, Forwardref]]]

notification_topic_arn

AWS::ElastiCache::ReplicationGroup.NotificationTopicArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-notificationtopicarn

Return type

Optional[str]

num_cache_clusters

AWS::ElastiCache::ReplicationGroup.NumCacheClusters.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-numcacheclusters

Return type

Union[int, float, None]

num_node_groups

AWS::ElastiCache::ReplicationGroup.NumNodeGroups.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-numnodegroups

Return type

Union[int, float, None]

port

AWS::ElastiCache::ReplicationGroup.Port.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-port

Return type

Union[int, float, None]

preferred_cache_cluster_a_zs

AWS::ElastiCache::ReplicationGroup.PreferredCacheClusterAZs.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-preferredcacheclusterazs

Return type

Optional[List[str]]

preferred_maintenance_window

AWS::ElastiCache::ReplicationGroup.PreferredMaintenanceWindow.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-preferredmaintenancewindow

Return type

Optional[str]

primary_cluster_id

AWS::ElastiCache::ReplicationGroup.PrimaryClusterId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-primaryclusterid

Return type

Optional[str]

ref

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

Return type

str

replicas_per_node_group

AWS::ElastiCache::ReplicationGroup.ReplicasPerNodeGroup.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicaspernodegroup

Return type

Union[int, float, None]

replication_group_description

AWS::ElastiCache::ReplicationGroup.ReplicationGroupDescription.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicationgroupdescription

Return type

str

replication_group_id

AWS::ElastiCache::ReplicationGroup.ReplicationGroupId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-replicationgroupid

Return type

Optional[str]

security_group_ids

AWS::ElastiCache::ReplicationGroup.SecurityGroupIds.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-securitygroupids

Return type

Optional[List[str]]

snapshot_arns

AWS::ElastiCache::ReplicationGroup.SnapshotArns.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotarns

Return type

Optional[List[str]]

snapshot_name

AWS::ElastiCache::ReplicationGroup.SnapshotName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotname

Return type

Optional[str]

snapshot_retention_limit

AWS::ElastiCache::ReplicationGroup.SnapshotRetentionLimit.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotretentionlimit

Return type

Union[int, float, None]

snapshot_window

AWS::ElastiCache::ReplicationGroup.SnapshotWindow.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshotwindow

Return type

Optional[str]

snapshotting_cluster_id

AWS::ElastiCache::ReplicationGroup.SnapshottingClusterId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-snapshottingclusterid

Return type

Optional[str]

stack

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Return type

Stack

tags

AWS::ElastiCache::ReplicationGroup.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-tags

Return type

TagManager

transit_encryption_enabled

AWS::ElastiCache::ReplicationGroup.TransitEncryptionEnabled.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html#cfn-elasticache-replicationgroup-transitencryptionenabled

Return type

Union[bool, None, IResolvable]

Static Methods

classmethod is_cfn_element(x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

Parameters

x (Any) –

return :rtype: bool :return: The construct as a stack element or undefined if it is not a stack element.

classmethod is_cfn_resource(construct)

Check whether the given construct is a CfnResource.

Parameters

construct (IConstruct) –

Return type

bool

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool