Skip to content

CreateClusterRequest

Source code in docs_src/capo_memorydb/types/create_cluster_request.py
class CreateClusterRequest(TypedDict, closed=True):
    cluster_name: "capo_memorydb.types.string.String"
    """<p>The name of the cluster. This value must be unique as it also serves as the cluster identifier.</p>"""
    node_type: "capo_memorydb.types.string.String"
    """<p>The compute and memory capacity of the nodes in the cluster.</p>"""
    multi_region_cluster_name: NotRequired["capo_memorydb.types.string.String"]
    """<p>The name of the multi-Region cluster to be created.</p>"""
    parameter_group_name: NotRequired["capo_memorydb.types.string.String"]
    """<p>The name of the parameter group associated with the cluster.</p>"""
    description: NotRequired["capo_memorydb.types.string.String"]
    """<p>An optional description of the cluster.</p>"""
    num_shards: NotRequired["capo_memorydb.types.integer_optional.IntegerOptional"]
    """<p>The number of shards the cluster will contain. The default value is 1. </p>"""
    num_replicas_per_shard: NotRequired[
        "capo_memorydb.types.integer_optional.IntegerOptional"
    ]
    """<p>The number of replicas to apply to each shard. The default value is 1. The maximum is 5. </p>"""
    subnet_group_name: NotRequired["capo_memorydb.types.string.String"]
    """<p>The name of the subnet group to be used for the cluster.</p>"""
    security_group_ids: NotRequired[
        "capo_memorydb.types.security_group_ids_list.SecurityGroupIdsList"
    ]
    """<p>A list of security group names to associate with this cluster.</p>"""
    maintenance_window: NotRequired["capo_memorydb.types.string.String"]
    """<p>Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.</p> <p>Valid values for <code>ddd</code> are:</p> <ul> <li> <p> <code>sun</code> </p> </li> <li> <p> <code>mon</code> </p> </li> <li> <p> <code>tue</code> </p> </li> <li> <p> <code>wed</code> </p> </li> <li> <p> <code>thu</code> </p> </li> <li> <p> <code>fri</code> </p> </li> <li> <p> <code>sat</code> </p> </li> </ul> <p>Example: <code>sun:23:00-mon:01:30</code> </p>"""
    port: NotRequired["capo_memorydb.types.integer_optional.IntegerOptional"]
    """<p>The port number on which each of the nodes accepts connections.</p>"""
    sns_topic_arn: NotRequired["capo_memorydb.types.string.String"]
    """<p>The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.</p>"""
    tls_enabled: NotRequired["capo_memorydb.types.boolean_optional.BooleanOptional"]
    """<p>A flag to enable in-transit encryption on the cluster.</p>"""
    kms_key_id: NotRequired["capo_memorydb.types.string.String"]
    """<p>The ID of the KMS key used to encrypt the cluster.</p>"""
    snapshot_arns: NotRequired[
        "capo_memorydb.types.snapshot_arns_list.SnapshotArnsList"
    ]
    """<p>A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new cluster. The Amazon S3 object name in the ARN cannot contain any commas.</p>"""
    snapshot_name: NotRequired["capo_memorydb.types.string.String"]
    """<p>The name of a snapshot from which to restore data into the new cluster. The snapshot status changes to restoring while the new cluster is being created.</p>"""
    snapshot_retention_limit: NotRequired[
        "capo_memorydb.types.integer_optional.IntegerOptional"
    ]
    """<p>The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.</p>"""
    tags: NotRequired["capo_memorydb.types.tag_list.TagList"]
    """<p>A list of tags to be added to this resource. Tags are comma-separated key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue.</p>"""
    snapshot_window: NotRequired["capo_memorydb.types.string.String"]
    """<p>The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.</p> <p> Example: 05:00-09:00</p> <p> If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.</p>"""
    acl_name: "capo_memorydb.types.acl_name.ACLName"
    """<p>The name of the Access Control List to associate with the cluster.</p>"""
    engine: NotRequired["capo_memorydb.types.string.String"]
    """<p>The name of the engine to be used for the cluster.</p>"""
    engine_version: NotRequired["capo_memorydb.types.string.String"]
    """<p>The version number of the Redis OSS engine to be used for the cluster.</p>"""
    auto_minor_version_upgrade: NotRequired[
        "capo_memorydb.types.boolean_optional.BooleanOptional"
    ]
    """<p>When set to true, the cluster will automatically receive minor engine version upgrades after launch.</p>"""
    data_tiering: NotRequired["capo_memorydb.types.boolean_optional.BooleanOptional"]
    """<p>Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see <a href="https://docs.aws.amazon.com/memorydb/latest/devguide/data-tiering.html">Data tiering</a>.</p>"""
    network_type: NotRequired["capo_memorydb.types.network_type.NetworkType"]
    """<p>Specifies the IP address type for the cluster. Valid values are 'ipv4', 'ipv6', or 'dual_stack'. When set to 'ipv4', the cluster will only be accessible via IPv4 addresses. When set to 'ipv6', the cluster will only be accessible via IPv6 addresses. When set to 'dual_stack', the cluster will be accessible via both IPv4 and IPv6 addresses. If not specified, the default is 'ipv4'.</p>"""
    ip_discovery: NotRequired["capo_memorydb.types.ip_discovery.IpDiscovery"]
    """<p>The mechanism for discovering IP addresses for the cluster discovery protocol. Valid values are 'ipv4' or 'ipv6'. When set to 'ipv4', cluster discovery functions such as cluster slots, cluster shards, and cluster nodes return IPv4 addresses for cluster nodes. When set to 'ipv6', the cluster discovery functions return IPv6 addresses for cluster nodes. The value must be compatible with the NetworkType parameter. If not specified, the default is 'ipv4'.</p>"""

acl_name instance-attribute

acl_name: ACLName

The name of the Access Control List to associate with the cluster.

auto_minor_version_upgrade instance-attribute

auto_minor_version_upgrade: NotRequired[BooleanOptional]

When set to true, the cluster will automatically receive minor engine version upgrades after launch.

cluster_name instance-attribute

cluster_name: String

The name of the cluster. This value must be unique as it also serves as the cluster identifier.

data_tiering instance-attribute

data_tiering: NotRequired[BooleanOptional]

Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.

description instance-attribute

description: NotRequired[String]

An optional description of the cluster.

engine instance-attribute

engine: NotRequired[String]

The name of the engine to be used for the cluster.

engine_version instance-attribute

engine_version: NotRequired[String]

The version number of the Redis OSS engine to be used for the cluster.

ip_discovery instance-attribute

ip_discovery: NotRequired[IpDiscovery]

The mechanism for discovering IP addresses for the cluster discovery protocol. Valid values are 'ipv4' or 'ipv6'. When set to 'ipv4', cluster discovery functions such as cluster slots, cluster shards, and cluster nodes return IPv4 addresses for cluster nodes. When set to 'ipv6', the cluster discovery functions return IPv6 addresses for cluster nodes. The value must be compatible with the NetworkType parameter. If not specified, the default is 'ipv4'.

kms_key_id instance-attribute

kms_key_id: NotRequired[String]

The ID of the KMS key used to encrypt the cluster.

maintenance_window instance-attribute

maintenance_window: NotRequired[String]

Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.

Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:23:00-mon:01:30

multi_region_cluster_name instance-attribute

multi_region_cluster_name: NotRequired[String]

The name of the multi-Region cluster to be created.

network_type instance-attribute

network_type: NotRequired[NetworkType]

Specifies the IP address type for the cluster. Valid values are 'ipv4', 'ipv6', or 'dual_stack'. When set to 'ipv4', the cluster will only be accessible via IPv4 addresses. When set to 'ipv6', the cluster will only be accessible via IPv6 addresses. When set to 'dual_stack', the cluster will be accessible via both IPv4 and IPv6 addresses. If not specified, the default is 'ipv4'.

node_type instance-attribute

node_type: String

The compute and memory capacity of the nodes in the cluster.

num_replicas_per_shard instance-attribute

num_replicas_per_shard: NotRequired[IntegerOptional]

The number of replicas to apply to each shard. The default value is 1. The maximum is 5.

num_shards instance-attribute

num_shards: NotRequired[IntegerOptional]

The number of shards the cluster will contain. The default value is 1.

parameter_group_name instance-attribute

parameter_group_name: NotRequired[String]

The name of the parameter group associated with the cluster.

port instance-attribute

port: NotRequired[IntegerOptional]

The port number on which each of the nodes accepts connections.

security_group_ids instance-attribute

security_group_ids: NotRequired[SecurityGroupIdsList]

A list of security group names to associate with this cluster.

snapshot_arns instance-attribute

snapshot_arns: NotRequired[SnapshotArnsList]

A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new cluster. The Amazon S3 object name in the ARN cannot contain any commas.

snapshot_name instance-attribute

snapshot_name: NotRequired[String]

The name of a snapshot from which to restore data into the new cluster. The snapshot status changes to restoring while the new cluster is being created.

snapshot_retention_limit instance-attribute

snapshot_retention_limit: NotRequired[IntegerOptional]

The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.

snapshot_window instance-attribute

snapshot_window: NotRequired[String]

The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.

Example: 05:00-09:00

If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.

sns_topic_arn instance-attribute

sns_topic_arn: NotRequired[String]

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.

subnet_group_name instance-attribute

subnet_group_name: NotRequired[String]

The name of the subnet group to be used for the cluster.

tags instance-attribute

tags: NotRequired[TagList]

A list of tags to be added to this resource. Tags are comma-separated key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue.

tls_enabled instance-attribute

tls_enabled: NotRequired[BooleanOptional]

A flag to enable in-transit encryption on the cluster.