aws_sdk_elasticache/client/create_replication_group.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateReplicationGroup`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`replication_group_id(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::replication_group_id) / [`set_replication_group_id(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_replication_group_id):<br>required: **true**<br><p>The replication group identifier. This parameter is stored as a lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>A name must contain from 1 to 40 alphanumeric characters or hyphens.</p></li> <li> <p>The first character must be a letter.</p></li> <li> <p>A name cannot end with a hyphen or contain two consecutive hyphens.</p></li> </ul><br>
7 /// - [`replication_group_description(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::replication_group_description) / [`set_replication_group_description(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_replication_group_description):<br>required: **true**<br><p>A user-created description for the replication group.</p><br>
8 /// - [`global_replication_group_id(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::global_replication_group_id) / [`set_global_replication_group_id(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_global_replication_group_id):<br>required: **false**<br><p>The name of the Global datastore</p><br>
9 /// - [`primary_cluster_id(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::primary_cluster_id) / [`set_primary_cluster_id(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_primary_cluster_id):<br>required: **false**<br><p>The identifier of the cluster that serves as the primary for this replication group. This cluster must already exist and have a status of <code>available</code>.</p> <p>This parameter is not required if <code>NumCacheClusters</code>, <code>NumNodeGroups</code>, or <code>ReplicasPerNodeGroup</code> is specified.</p><br>
10 /// - [`automatic_failover_enabled(bool)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::automatic_failover_enabled) / [`set_automatic_failover_enabled(Option<bool>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_automatic_failover_enabled):<br>required: **false**<br><p>Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.</p> <p><code>AutomaticFailoverEnabled</code> must be enabled for Valkey or Redis OSS (cluster mode enabled) replication groups.</p> <p>Default: false</p><br>
11 /// - [`multi_az_enabled(bool)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::multi_az_enabled) / [`set_multi_az_enabled(Option<bool>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_multi_az_enabled):<br>required: **false**<br><p>A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/AutoFailover.html">Minimizing Downtime: Multi-AZ</a>.</p><br>
12 /// - [`num_cache_clusters(i32)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::num_cache_clusters) / [`set_num_cache_clusters(Option<i32>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_num_cache_clusters):<br>required: **false**<br><p>The number of clusters this replication group initially has.</p> <p>This parameter is not used if there is more than one node group (shard). You should use <code>ReplicasPerNodeGroup</code> instead.</p> <p>If <code>AutomaticFailoverEnabled</code> is <code>true</code>, the value of this parameter must be at least 2. If <code>AutomaticFailoverEnabled</code> is <code>false</code> you can omit this parameter (it will default to 1), or you can explicitly set it to a value between 2 and 6.</p> <p>The maximum permitted value for <code>NumCacheClusters</code> is 6 (1 primary plus 5 replicas).</p><br>
13 /// - [`preferred_cache_cluster_azs(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::preferred_cache_cluster_azs) / [`set_preferred_cache_cluster_azs(Option<Vec::<String>>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_preferred_cache_cluster_azs):<br>required: **false**<br><p>A list of EC2 Availability Zones in which the replication group's clusters are created. The order of the Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in the first AZ in the list.</p> <p>This parameter is not used if there is more than one node group (shard). You should use <code>NodeGroupConfiguration</code> instead.</p><note> <p>If you are creating your replication group in an Amazon VPC (recommended), you can only locate clusters in Availability Zones associated with the subnets in the selected subnet group.</p> <p>The number of Availability Zones listed must equal the value of <code>NumCacheClusters</code>.</p> </note> <p>Default: system chosen Availability Zones.</p><br>
14 /// - [`num_node_groups(i32)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::num_node_groups) / [`set_num_node_groups(Option<i32>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_num_node_groups):<br>required: **false**<br><p>An optional parameter that specifies the number of node groups (shards) for this Valkey or Redis OSS (cluster mode enabled) replication group. For Valkey or Redis OSS (cluster mode disabled) either omit this parameter or set it to 1.</p> <p>Default: 1</p><br>
15 /// - [`replicas_per_node_group(i32)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::replicas_per_node_group) / [`set_replicas_per_node_group(Option<i32>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_replicas_per_node_group):<br>required: **false**<br><p>An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5.</p><br>
16 /// - [`node_group_configuration(NodeGroupConfiguration)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::node_group_configuration) / [`set_node_group_configuration(Option<Vec::<NodeGroupConfiguration>>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_node_group_configuration):<br>required: **false**<br><p>A list of node group (shard) configuration options. Each node group (shard) configuration has the following members: <code>PrimaryAvailabilityZone</code>, <code>ReplicaAvailabilityZones</code>, <code>ReplicaCount</code>, and <code>Slots</code>.</p> <p>If you're creating a Valkey or Redis OSS (cluster mode disabled) or a Valkey or Redis OSS (cluster mode enabled) replication group, you can use this parameter to individually configure each node group (shard), or you can omit this parameter. However, it is required when seeding a Valkey or Redis OSS (cluster mode enabled) cluster from a S3 rdb file. You must configure each node group (shard) using this parameter because you must specify the slots for each node group.</p><br>
17 /// - [`cache_node_type(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::cache_node_type) / [`set_cache_node_type(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_cache_node_type):<br>required: **false**<br><p>The compute and memory capacity of the nodes in the node group (shard).</p> <p>The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.</p> <ul> <li> <p>General purpose:</p> <ul> <li> <p>Current generation:</p> <p><b>M7g node types</b>: <code>cache.m7g.large</code>, <code>cache.m7g.xlarge</code>, <code>cache.m7g.2xlarge</code>, <code>cache.m7g.4xlarge</code>, <code>cache.m7g.8xlarge</code>, <code>cache.m7g.12xlarge</code>, <code>cache.m7g.16xlarge</code></p><note> <p>For region availability, see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion">Supported Node Types</a></p> </note> <p><b>M6g node types</b> (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): <code>cache.m6g.large</code>, <code>cache.m6g.xlarge</code>, <code>cache.m6g.2xlarge</code>, <code>cache.m6g.4xlarge</code>, <code>cache.m6g.8xlarge</code>, <code>cache.m6g.12xlarge</code>, <code>cache.m6g.16xlarge</code></p> <p><b>M5 node types:</b> <code>cache.m5.large</code>, <code>cache.m5.xlarge</code>, <code>cache.m5.2xlarge</code>, <code>cache.m5.4xlarge</code>, <code>cache.m5.12xlarge</code>, <code>cache.m5.24xlarge</code></p> <p><b>M4 node types:</b> <code>cache.m4.large</code>, <code>cache.m4.xlarge</code>, <code>cache.m4.2xlarge</code>, <code>cache.m4.4xlarge</code>, <code>cache.m4.10xlarge</code></p> <p><b>T4g node types</b> (available only for Redis OSS engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): <code>cache.t4g.micro</code>, <code>cache.t4g.small</code>, <code>cache.t4g.medium</code></p> <p><b>T3 node types:</b> <code>cache.t3.micro</code>, <code>cache.t3.small</code>, <code>cache.t3.medium</code></p> <p><b>T2 node types:</b> <code>cache.t2.micro</code>, <code>cache.t2.small</code>, <code>cache.t2.medium</code></p></li> <li> <p>Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)</p> <p><b>T1 node types:</b> <code>cache.t1.micro</code></p> <p><b>M1 node types:</b> <code>cache.m1.small</code>, <code>cache.m1.medium</code>, <code>cache.m1.large</code>, <code>cache.m1.xlarge</code></p> <p><b>M3 node types:</b> <code>cache.m3.medium</code>, <code>cache.m3.large</code>, <code>cache.m3.xlarge</code>, <code>cache.m3.2xlarge</code></p></li> </ul></li> <li> <p>Compute optimized:</p> <ul> <li> <p>Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)</p> <p><b>C1 node types:</b> <code>cache.c1.xlarge</code></p></li> </ul></li> <li> <p>Memory optimized:</p> <ul> <li> <p>Current generation:</p> <p><b>R7g node types</b>: <code>cache.r7g.large</code>, <code>cache.r7g.xlarge</code>, <code>cache.r7g.2xlarge</code>, <code>cache.r7g.4xlarge</code>, <code>cache.r7g.8xlarge</code>, <code>cache.r7g.12xlarge</code>, <code>cache.r7g.16xlarge</code></p><note> <p>For region availability, see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion">Supported Node Types</a></p> </note> <p><b>R6g node types</b> (available only for Redis OSS engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): <code>cache.r6g.large</code>, <code>cache.r6g.xlarge</code>, <code>cache.r6g.2xlarge</code>, <code>cache.r6g.4xlarge</code>, <code>cache.r6g.8xlarge</code>, <code>cache.r6g.12xlarge</code>, <code>cache.r6g.16xlarge</code></p> <p><b>R5 node types:</b> <code>cache.r5.large</code>, <code>cache.r5.xlarge</code>, <code>cache.r5.2xlarge</code>, <code>cache.r5.4xlarge</code>, <code>cache.r5.12xlarge</code>, <code>cache.r5.24xlarge</code></p> <p><b>R4 node types:</b> <code>cache.r4.large</code>, <code>cache.r4.xlarge</code>, <code>cache.r4.2xlarge</code>, <code>cache.r4.4xlarge</code>, <code>cache.r4.8xlarge</code>, <code>cache.r4.16xlarge</code></p></li> <li> <p>Previous generation: (not recommended. Existing clusters are still supported but creation of new clusters is not supported for these types.)</p> <p><b>M2 node types:</b> <code>cache.m2.xlarge</code>, <code>cache.m2.2xlarge</code>, <code>cache.m2.4xlarge</code></p> <p><b>R3 node types:</b> <code>cache.r3.large</code>, <code>cache.r3.xlarge</code>, <code>cache.r3.2xlarge</code>, <code>cache.r3.4xlarge</code>, <code>cache.r3.8xlarge</code></p></li> </ul></li> </ul> <p><b>Additional node type info</b></p> <ul> <li> <p>All current generation instance types are created in Amazon VPC by default.</p></li> <li> <p>Valkey or Redis OSS append-only files (AOF) are not supported for T1 or T2 instances.</p></li> <li> <p>Valkey or Redis OSS Multi-AZ with automatic failover is not supported on T1 instances.</p></li> <li> <p>The configuration variables <code>appendonly</code> and <code>appendfsync</code> are not supported on Valkey, or on Redis OSS version 2.8.22 and later.</p></li> </ul><br>
18 /// - [`engine(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::engine) / [`set_engine(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_engine):<br>required: **false**<br><p>The name of the cache engine to be used for the clusters in this replication group. The value must be set to <code>valkey</code> or <code>redis</code>.</p><br>
19 /// - [`engine_version(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::engine_version) / [`set_engine_version(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_engine_version):<br>required: **false**<br><p>The version number of the cache engine to be used for the clusters in this replication group. To view the supported cache engine versions, use the <code>DescribeCacheEngineVersions</code> operation.</p> <p><b>Important:</b> You can upgrade to a newer engine version (see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/SelectEngine.html#VersionManagement">Selecting a Cache Engine and Version</a>) in the <i>ElastiCache User Guide</i>, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.</p><br>
20 /// - [`cache_parameter_group_name(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::cache_parameter_group_name) / [`set_cache_parameter_group_name(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_cache_parameter_group_name):<br>required: **false**<br><p>The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used.</p> <p>If you are running Valkey or Redis OSS version 3.2.4 or later, only one node group (shard), and want to use a default parameter group, we recommend that you specify the parameter group by name.</p> <ul> <li> <p>To create a Valkey or Redis OSS (cluster mode disabled) replication group, use <code>CacheParameterGroupName=default.redis3.2</code>.</p></li> <li> <p>To create a Valkey or Redis OSS (cluster mode enabled) replication group, use <code>CacheParameterGroupName=default.redis3.2.cluster.on</code>.</p></li> </ul><br>
21 /// - [`cache_subnet_group_name(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::cache_subnet_group_name) / [`set_cache_subnet_group_name(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_cache_subnet_group_name):<br>required: **false**<br><p>The name of the cache subnet group to be used for the replication group.</p><important> <p>If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you start creating a cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/SubnetGroups.html">Subnets and Subnet Groups</a>.</p> </important><br>
22 /// - [`cache_security_group_names(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::cache_security_group_names) / [`set_cache_security_group_names(Option<Vec::<String>>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_cache_security_group_names):<br>required: **false**<br><p>A list of cache security group names to associate with this replication group.</p><br>
23 /// - [`security_group_ids(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::security_group_ids) / [`set_security_group_ids(Option<Vec::<String>>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_security_group_ids):<br>required: **false**<br><p>One or more Amazon VPC security groups associated with this replication group.</p> <p>Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon VPC).</p><br>
24 /// - [`tags(Tag)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags to be added to this resource. Tags are comma-separated key,value pairs (e.g. Key=<code>myKey</code>, Value=<code>myKeyValue</code>. You can include multiple tags as shown following: Key=<code>myKey</code>, Value=<code>myKeyValue</code> Key=<code>mySecondKey</code>, Value=<code>mySecondKeyValue</code>. Tags on replication groups will be replicated to all nodes.</p><br>
25 /// - [`snapshot_arns(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::snapshot_arns) / [`set_snapshot_arns(Option<Vec::<String>>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_snapshot_arns):<br>required: **false**<br><p>A list of Amazon Resource Names (ARN) that uniquely identify the Valkey or Redis OSS RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot contain any commas. The new replication group will have the number of node groups (console: shards) specified by the parameter <i>NumNodeGroups</i> or the number of node groups configured by <i>NodeGroupConfiguration</i> regardless of the number of ARNs specified here.</p> <p>Example of an Amazon S3 ARN: <code>arn:aws:s3:::my_bucket/snapshot1.rdb</code></p><br>
26 /// - [`snapshot_name(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_snapshot_name):<br>required: **false**<br><p>The name of a snapshot from which to restore data into the new replication group. The snapshot status changes to <code>restoring</code> while the new replication group is being created.</p><br>
27 /// - [`preferred_maintenance_window(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::preferred_maintenance_window) / [`set_preferred_maintenance_window(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_preferred_maintenance_window):<br>required: **false**<br><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><br>
28 /// - [`port(i32)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::port) / [`set_port(Option<i32>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_port):<br>required: **false**<br><p>The port number on which each member of the replication group accepts connections.</p><br>
29 /// - [`notification_topic_arn(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::notification_topic_arn) / [`set_notification_topic_arn(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_notification_topic_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.</p><note> <p>The Amazon SNS topic owner must be the same as the cluster owner.</p> </note><br>
30 /// - [`auto_minor_version_upgrade(bool)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::auto_minor_version_upgrade) / [`set_auto_minor_version_upgrade(Option<bool>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_auto_minor_version_upgrade):<br>required: **false**<br><p> If you are running Valkey 7.2 and above or Redis OSS engine version 6.0 and above, set this parameter to yes to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions. </p><br>
31 /// - [`snapshot_retention_limit(i32)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::snapshot_retention_limit) / [`set_snapshot_retention_limit(Option<i32>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_snapshot_retention_limit):<br>required: **false**<br><p>The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you set <code>SnapshotRetentionLimit</code> to 5, a snapshot that was taken today is retained for 5 days before being deleted.</p> <p>Default: 0 (i.e., automatic backups are disabled for this cluster).</p><br>
32 /// - [`snapshot_window(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::snapshot_window) / [`set_snapshot_window(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_snapshot_window):<br>required: **false**<br><p>The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).</p> <p>Example: <code>05:00-09:00</code></p> <p>If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.</p><br>
33 /// - [`auth_token(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::auth_token) / [`set_auth_token(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_auth_token):<br>required: **false**<br><p><b>Reserved parameter.</b> The password used to access a password protected server.</p> <p><code>AuthToken</code> can be specified only on replication groups where <code>TransitEncryptionEnabled</code> is <code>true</code>.</p><important> <p>For HIPAA compliance, you must specify <code>TransitEncryptionEnabled</code> as <code>true</code>, an <code>AuthToken</code>, and a <code>CacheSubnetGroup</code>.</p> </important> <p>Password constraints:</p> <ul> <li> <p>Must be only printable ASCII characters.</p></li> <li> <p>Must be at least 16 characters and no more than 128 characters in length.</p></li> <li> <p>The only permitted printable special characters are !, &, #, $, ^, <, >, and -. Other printable special characters cannot be used in the AUTH token.</p></li> </ul> <p>For more information, see <a href="http://redis.io/commands/AUTH">AUTH password</a> at http://redis.io/commands/AUTH.</p><br>
34 /// - [`transit_encryption_enabled(bool)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::transit_encryption_enabled) / [`set_transit_encryption_enabled(Option<bool>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_transit_encryption_enabled):<br>required: **false**<br><p>A flag that enables in-transit encryption when set to <code>true</code>.</p> <p>This parameter is valid only if the <code>Engine</code> parameter is <code>redis</code>, the <code>EngineVersion</code> parameter is <code>3.2.6</code>, <code>4.x</code> or later, and the cluster is being created in an Amazon VPC.</p> <p>If you enable in-transit encryption, you must also specify a value for <code>CacheSubnetGroup</code>.</p> <p><b>Required:</b> Only available when creating a replication group in an Amazon VPC using Redis OSS version <code>3.2.6</code>, <code>4.x</code> or later.</p> <p>Default: <code>false</code></p><important> <p>For HIPAA compliance, you must specify <code>TransitEncryptionEnabled</code> as <code>true</code>, an <code>AuthToken</code>, and a <code>CacheSubnetGroup</code>.</p> </important><br>
35 /// - [`at_rest_encryption_enabled(bool)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::at_rest_encryption_enabled) / [`set_at_rest_encryption_enabled(Option<bool>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_at_rest_encryption_enabled):<br>required: **false**<br><p>A flag that enables encryption at rest when set to <code>true</code>.</p> <p>You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication group is created. To enable encryption at rest on a replication group you must set <code>AtRestEncryptionEnabled</code> to <code>true</code> when you create the replication group.</p> <p><b>Required:</b> Only available when creating a replication group in an Amazon VPC using Valkey 7.2 and later, Redis OSS version <code>3.2.6</code>, or Redis OSS <code>4.x</code> and later.</p> <p>Default: <code>true</code> when using Valkey, <code>false</code> when using Redis OSS</p><br>
36 /// - [`kms_key_id(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_kms_key_id):<br>required: **false**<br><p>The ID of the KMS key used to encrypt the disk in the cluster.</p><br>
37 /// - [`user_group_ids(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::user_group_ids) / [`set_user_group_ids(Option<Vec::<String>>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_user_group_ids):<br>required: **false**<br><p>The user group to associate with the replication group.</p><br>
38 /// - [`log_delivery_configurations(LogDeliveryConfigurationRequest)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::log_delivery_configurations) / [`set_log_delivery_configurations(Option<Vec::<LogDeliveryConfigurationRequest>>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_log_delivery_configurations):<br>required: **false**<br><p>Specifies the destination, format and type of the logs.</p><br>
39 /// - [`data_tiering_enabled(bool)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::data_tiering_enabled) / [`set_data_tiering_enabled(Option<bool>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_data_tiering_enabled):<br>required: **false**<br><p>Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/data-tiering.html">Data tiering</a>.</p><br>
40 /// - [`network_type(NetworkType)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::network_type) / [`set_network_type(Option<NetworkType>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_network_type):<br>required: **false**<br><p>Must be either <code>ipv4</code> | <code>ipv6</code> | <code>dual_stack</code>. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 and Memcached engine version 1.6.6 and above on all instances built on the <a href="http://aws.amazon.com/ec2/nitro/">Nitro system</a>.</p><br>
41 /// - [`ip_discovery(IpDiscovery)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::ip_discovery) / [`set_ip_discovery(Option<IpDiscovery>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_ip_discovery):<br>required: **false**<br><p>The network type you choose when creating a replication group, either <code>ipv4</code> | <code>ipv6</code>. IPv6 is supported for workloads using Valkey 7.2 and above, Redis OSS engine version 6.2 to 7.1 or Memcached engine version 1.6.6 and above on all instances built on the <a href="http://aws.amazon.com/ec2/nitro/">Nitro system</a>.</p><br>
42 /// - [`transit_encryption_mode(TransitEncryptionMode)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::transit_encryption_mode) / [`set_transit_encryption_mode(Option<TransitEncryptionMode>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_transit_encryption_mode):<br>required: **false**<br><p>A setting that allows you to migrate your clients to use in-transit encryption, with no downtime.</p> <p>When setting <code>TransitEncryptionEnabled</code> to <code>true</code>, you can set your <code>TransitEncryptionMode</code> to <code>preferred</code> in the same request, to allow both encrypted and unencrypted connections at the same time. Once you migrate all your Valkey or Redis OSS clients to use encrypted connections you can modify the value to <code>required</code> to allow encrypted connections only.</p> <p>Setting <code>TransitEncryptionMode</code> to <code>required</code> is a two-step process that requires you to first set the <code>TransitEncryptionMode</code> to <code>preferred</code>, after that you can set <code>TransitEncryptionMode</code> to <code>required</code>.</p> <p>This process will not trigger the replacement of the replication group.</p><br>
43 /// - [`cluster_mode(ClusterMode)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::cluster_mode) / [`set_cluster_mode(Option<ClusterMode>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_cluster_mode):<br>required: **false**<br><p>Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to Compatible. Compatible mode allows your Valkey or Redis OSS clients to connect using both cluster mode enabled and cluster mode disabled. After you migrate all Valkey or Redis OSS clients to use cluster mode enabled, you can then complete cluster mode configuration and set the cluster mode to Enabled.</p><br>
44 /// - [`serverless_cache_snapshot_name(impl Into<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::serverless_cache_snapshot_name) / [`set_serverless_cache_snapshot_name(Option<String>)`](crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::set_serverless_cache_snapshot_name):<br>required: **false**<br><p>The name of the snapshot used to create a replication group. Available for Valkey, Redis OSS only.</p><br>
45 /// - On success, responds with [`CreateReplicationGroupOutput`](crate::operation::create_replication_group::CreateReplicationGroupOutput) with field(s):
46 /// - [`replication_group(Option<ReplicationGroup>)`](crate::operation::create_replication_group::CreateReplicationGroupOutput::replication_group): <p>Contains all of the attributes of a specific Valkey or Redis OSS replication group.</p>
47 /// - On failure, responds with [`SdkError<CreateReplicationGroupError>`](crate::operation::create_replication_group::CreateReplicationGroupError)
48 pub fn create_replication_group(&self) -> crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder {
49 crate::operation::create_replication_group::builders::CreateReplicationGroupFluentBuilder::new(self.handle.clone())
50 }
51}