// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Represents the input of a <code>CreateReplicationGroup</code> operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateReplicationGroupInput {
/// <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>
pub replication_group_id: ::std::option::Option<::std::string::String>,
/// <p>A user-created description for the replication group.</p>
pub replication_group_description: ::std::option::Option<::std::string::String>,
/// <p>The name of the Global datastore</p>
pub global_replication_group_id: ::std::option::Option<::std::string::String>,
/// <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>
pub primary_cluster_id: ::std::option::Option<::std::string::String>,
/// <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>
pub automatic_failover_enabled: ::std::option::Option<bool>,
/// <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>
pub multi_az_enabled: ::std::option::Option<bool>,
/// <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>
pub num_cache_clusters: ::std::option::Option<i32>,
/// <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>
pub preferred_cache_cluster_azs: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <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>
pub num_node_groups: ::std::option::Option<i32>,
/// <p>An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5.</p>
pub replicas_per_node_group: ::std::option::Option<i32>,
/// <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>
pub node_group_configuration: ::std::option::Option<::std::vec::Vec<crate::types::NodeGroupConfiguration>>,
/// <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>
pub cache_node_type: ::std::option::Option<::std::string::String>,
/// <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>
pub engine: ::std::option::Option<::std::string::String>,
/// <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>
pub engine_version: ::std::option::Option<::std::string::String>,
/// <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>
pub cache_parameter_group_name: ::std::option::Option<::std::string::String>,
/// <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>
pub cache_subnet_group_name: ::std::option::Option<::std::string::String>,
/// <p>A list of cache security group names to associate with this replication group.</p>
pub cache_security_group_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <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>
pub security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <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>
pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
/// <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>
pub snapshot_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <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>
pub snapshot_name: ::std::option::Option<::std::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>
pub preferred_maintenance_window: ::std::option::Option<::std::string::String>,
/// <p>The port number on which each member of the replication group accepts connections.</p>
pub port: ::std::option::Option<i32>,
/// <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>
pub notification_topic_arn: ::std::option::Option<::std::string::String>,
/// <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>
pub auto_minor_version_upgrade: ::std::option::Option<bool>,
/// <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>
pub snapshot_retention_limit: ::std::option::Option<i32>,
/// <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>
pub snapshot_window: ::std::option::Option<::std::string::String>,
/// <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>
pub auth_token: ::std::option::Option<::std::string::String>,
/// <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>
pub transit_encryption_enabled: ::std::option::Option<bool>,
/// <p>A flag that enables encryption at-rest on the replication group when set to <code>true</code>. In some cases, encryption at-rest may be enabled even when this value is false. Use <code>StorageEncryptionType</code> to view the effective encryption state of a cluster.</p>
/// <p>You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication group is created.</p>
/// <p>Default: <code>true</code> when using Valkey, <code>false</code> when using Redis OSS</p>
pub at_rest_encryption_enabled: ::std::option::Option<bool>,
/// <p>The ID of the KMS key used to encrypt the disk in the cluster.</p>
pub kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>The user group to associate with the replication group.</p>
pub user_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>Specifies the destination, format and type of the logs.</p>
pub log_delivery_configurations: ::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>>,
/// <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>
pub data_tiering_enabled: ::std::option::Option<bool>,
/// <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>
pub network_type: ::std::option::Option<crate::types::NetworkType>,
/// <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>
pub ip_discovery: ::std::option::Option<crate::types::IpDiscovery>,
/// <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>
pub transit_encryption_mode: ::std::option::Option<crate::types::TransitEncryptionMode>,
/// <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>
pub cluster_mode: ::std::option::Option<crate::types::ClusterMode>,
/// <p>The name of the snapshot used to create a replication group. Available for Valkey, Redis OSS only.</p>
pub serverless_cache_snapshot_name: ::std::option::Option<::std::string::String>,
/// <p>Specifies the durability setting for the replication group. When set to <code>default</code>, the service determines the effective durability based on the engine version, cluster mode, and other parameters. The resolved setting is reflected in the <code>EffectiveDurability</code> property of the replication group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
pub durability: ::std::option::Option<crate::types::Durability>,
}
impl CreateReplicationGroupInput {
/// <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>
pub fn replication_group_id(&self) -> ::std::option::Option<&str> {
self.replication_group_id.as_deref()
}
/// <p>A user-created description for the replication group.</p>
pub fn replication_group_description(&self) -> ::std::option::Option<&str> {
self.replication_group_description.as_deref()
}
/// <p>The name of the Global datastore</p>
pub fn global_replication_group_id(&self) -> ::std::option::Option<&str> {
self.global_replication_group_id.as_deref()
}
/// <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>
pub fn primary_cluster_id(&self) -> ::std::option::Option<&str> {
self.primary_cluster_id.as_deref()
}
/// <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>
pub fn automatic_failover_enabled(&self) -> ::std::option::Option<bool> {
self.automatic_failover_enabled
}
/// <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>
pub fn multi_az_enabled(&self) -> ::std::option::Option<bool> {
self.multi_az_enabled
}
/// <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>
pub fn num_cache_clusters(&self) -> ::std::option::Option<i32> {
self.num_cache_clusters
}
/// <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>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.preferred_cache_cluster_azs.is_none()`.
pub fn preferred_cache_cluster_azs(&self) -> &[::std::string::String] {
self.preferred_cache_cluster_azs.as_deref().unwrap_or_default()
}
/// <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>
pub fn num_node_groups(&self) -> ::std::option::Option<i32> {
self.num_node_groups
}
/// <p>An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5.</p>
pub fn replicas_per_node_group(&self) -> ::std::option::Option<i32> {
self.replicas_per_node_group
}
/// <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>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.node_group_configuration.is_none()`.
pub fn node_group_configuration(&self) -> &[crate::types::NodeGroupConfiguration] {
self.node_group_configuration.as_deref().unwrap_or_default()
}
/// <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>
pub fn cache_node_type(&self) -> ::std::option::Option<&str> {
self.cache_node_type.as_deref()
}
/// <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>
pub fn engine(&self) -> ::std::option::Option<&str> {
self.engine.as_deref()
}
/// <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>
pub fn engine_version(&self) -> ::std::option::Option<&str> {
self.engine_version.as_deref()
}
/// <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>
pub fn cache_parameter_group_name(&self) -> ::std::option::Option<&str> {
self.cache_parameter_group_name.as_deref()
}
/// <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>
pub fn cache_subnet_group_name(&self) -> ::std::option::Option<&str> {
self.cache_subnet_group_name.as_deref()
}
/// <p>A list of cache security group names to associate with this replication group.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.cache_security_group_names.is_none()`.
pub fn cache_security_group_names(&self) -> &[::std::string::String] {
self.cache_security_group_names.as_deref().unwrap_or_default()
}
/// <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>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.security_group_ids.is_none()`.
pub fn security_group_ids(&self) -> &[::std::string::String] {
self.security_group_ids.as_deref().unwrap_or_default()
}
/// <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>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
pub fn tags(&self) -> &[crate::types::Tag] {
self.tags.as_deref().unwrap_or_default()
}
/// <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>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.snapshot_arns.is_none()`.
pub fn snapshot_arns(&self) -> &[::std::string::String] {
self.snapshot_arns.as_deref().unwrap_or_default()
}
/// <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>
pub fn snapshot_name(&self) -> ::std::option::Option<&str> {
self.snapshot_name.as_deref()
}
/// <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>
pub fn preferred_maintenance_window(&self) -> ::std::option::Option<&str> {
self.preferred_maintenance_window.as_deref()
}
/// <p>The port number on which each member of the replication group accepts connections.</p>
pub fn port(&self) -> ::std::option::Option<i32> {
self.port
}
/// <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>
pub fn notification_topic_arn(&self) -> ::std::option::Option<&str> {
self.notification_topic_arn.as_deref()
}
/// <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>
pub fn auto_minor_version_upgrade(&self) -> ::std::option::Option<bool> {
self.auto_minor_version_upgrade
}
/// <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>
pub fn snapshot_retention_limit(&self) -> ::std::option::Option<i32> {
self.snapshot_retention_limit
}
/// <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>
pub fn snapshot_window(&self) -> ::std::option::Option<&str> {
self.snapshot_window.as_deref()
}
/// <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>
pub fn auth_token(&self) -> ::std::option::Option<&str> {
self.auth_token.as_deref()
}
/// <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>
pub fn transit_encryption_enabled(&self) -> ::std::option::Option<bool> {
self.transit_encryption_enabled
}
/// <p>A flag that enables encryption at-rest on the replication group when set to <code>true</code>. In some cases, encryption at-rest may be enabled even when this value is false. Use <code>StorageEncryptionType</code> to view the effective encryption state of a cluster.</p>
/// <p>You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication group is created.</p>
/// <p>Default: <code>true</code> when using Valkey, <code>false</code> when using Redis OSS</p>
pub fn at_rest_encryption_enabled(&self) -> ::std::option::Option<bool> {
self.at_rest_encryption_enabled
}
/// <p>The ID of the KMS key used to encrypt the disk in the cluster.</p>
pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
self.kms_key_id.as_deref()
}
/// <p>The user group to associate with the replication group.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.user_group_ids.is_none()`.
pub fn user_group_ids(&self) -> &[::std::string::String] {
self.user_group_ids.as_deref().unwrap_or_default()
}
/// <p>Specifies the destination, format and type of the logs.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.log_delivery_configurations.is_none()`.
pub fn log_delivery_configurations(&self) -> &[crate::types::LogDeliveryConfigurationRequest] {
self.log_delivery_configurations.as_deref().unwrap_or_default()
}
/// <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>
pub fn data_tiering_enabled(&self) -> ::std::option::Option<bool> {
self.data_tiering_enabled
}
/// <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>
pub fn network_type(&self) -> ::std::option::Option<&crate::types::NetworkType> {
self.network_type.as_ref()
}
/// <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>
pub fn ip_discovery(&self) -> ::std::option::Option<&crate::types::IpDiscovery> {
self.ip_discovery.as_ref()
}
/// <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>
pub fn transit_encryption_mode(&self) -> ::std::option::Option<&crate::types::TransitEncryptionMode> {
self.transit_encryption_mode.as_ref()
}
/// <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>
pub fn cluster_mode(&self) -> ::std::option::Option<&crate::types::ClusterMode> {
self.cluster_mode.as_ref()
}
/// <p>The name of the snapshot used to create a replication group. Available for Valkey, Redis OSS only.</p>
pub fn serverless_cache_snapshot_name(&self) -> ::std::option::Option<&str> {
self.serverless_cache_snapshot_name.as_deref()
}
/// <p>Specifies the durability setting for the replication group. When set to <code>default</code>, the service determines the effective durability based on the engine version, cluster mode, and other parameters. The resolved setting is reflected in the <code>EffectiveDurability</code> property of the replication group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
pub fn durability(&self) -> ::std::option::Option<&crate::types::Durability> {
self.durability.as_ref()
}
}
impl CreateReplicationGroupInput {
/// Creates a new builder-style object to manufacture [`CreateReplicationGroupInput`](crate::operation::create_replication_group::CreateReplicationGroupInput).
pub fn builder() -> crate::operation::create_replication_group::builders::CreateReplicationGroupInputBuilder {
crate::operation::create_replication_group::builders::CreateReplicationGroupInputBuilder::default()
}
}
/// A builder for [`CreateReplicationGroupInput`](crate::operation::create_replication_group::CreateReplicationGroupInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateReplicationGroupInputBuilder {
pub(crate) replication_group_id: ::std::option::Option<::std::string::String>,
pub(crate) replication_group_description: ::std::option::Option<::std::string::String>,
pub(crate) global_replication_group_id: ::std::option::Option<::std::string::String>,
pub(crate) primary_cluster_id: ::std::option::Option<::std::string::String>,
pub(crate) automatic_failover_enabled: ::std::option::Option<bool>,
pub(crate) multi_az_enabled: ::std::option::Option<bool>,
pub(crate) num_cache_clusters: ::std::option::Option<i32>,
pub(crate) preferred_cache_cluster_azs: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) num_node_groups: ::std::option::Option<i32>,
pub(crate) replicas_per_node_group: ::std::option::Option<i32>,
pub(crate) node_group_configuration: ::std::option::Option<::std::vec::Vec<crate::types::NodeGroupConfiguration>>,
pub(crate) cache_node_type: ::std::option::Option<::std::string::String>,
pub(crate) engine: ::std::option::Option<::std::string::String>,
pub(crate) engine_version: ::std::option::Option<::std::string::String>,
pub(crate) cache_parameter_group_name: ::std::option::Option<::std::string::String>,
pub(crate) cache_subnet_group_name: ::std::option::Option<::std::string::String>,
pub(crate) cache_security_group_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
pub(crate) snapshot_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) snapshot_name: ::std::option::Option<::std::string::String>,
pub(crate) preferred_maintenance_window: ::std::option::Option<::std::string::String>,
pub(crate) port: ::std::option::Option<i32>,
pub(crate) notification_topic_arn: ::std::option::Option<::std::string::String>,
pub(crate) auto_minor_version_upgrade: ::std::option::Option<bool>,
pub(crate) snapshot_retention_limit: ::std::option::Option<i32>,
pub(crate) snapshot_window: ::std::option::Option<::std::string::String>,
pub(crate) auth_token: ::std::option::Option<::std::string::String>,
pub(crate) transit_encryption_enabled: ::std::option::Option<bool>,
pub(crate) at_rest_encryption_enabled: ::std::option::Option<bool>,
pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) user_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) log_delivery_configurations: ::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>>,
pub(crate) data_tiering_enabled: ::std::option::Option<bool>,
pub(crate) network_type: ::std::option::Option<crate::types::NetworkType>,
pub(crate) ip_discovery: ::std::option::Option<crate::types::IpDiscovery>,
pub(crate) transit_encryption_mode: ::std::option::Option<crate::types::TransitEncryptionMode>,
pub(crate) cluster_mode: ::std::option::Option<crate::types::ClusterMode>,
pub(crate) serverless_cache_snapshot_name: ::std::option::Option<::std::string::String>,
pub(crate) durability: ::std::option::Option<crate::types::Durability>,
}
impl CreateReplicationGroupInputBuilder {
/// <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>
/// This field is required.
pub fn replication_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.replication_group_id = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_replication_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.replication_group_id = input;
self
}
/// <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>
pub fn get_replication_group_id(&self) -> &::std::option::Option<::std::string::String> {
&self.replication_group_id
}
/// <p>A user-created description for the replication group.</p>
/// This field is required.
pub fn replication_group_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.replication_group_description = ::std::option::Option::Some(input.into());
self
}
/// <p>A user-created description for the replication group.</p>
pub fn set_replication_group_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.replication_group_description = input;
self
}
/// <p>A user-created description for the replication group.</p>
pub fn get_replication_group_description(&self) -> &::std::option::Option<::std::string::String> {
&self.replication_group_description
}
/// <p>The name of the Global datastore</p>
pub fn global_replication_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.global_replication_group_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the Global datastore</p>
pub fn set_global_replication_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.global_replication_group_id = input;
self
}
/// <p>The name of the Global datastore</p>
pub fn get_global_replication_group_id(&self) -> &::std::option::Option<::std::string::String> {
&self.global_replication_group_id
}
/// <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>
pub fn primary_cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.primary_cluster_id = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_primary_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.primary_cluster_id = input;
self
}
/// <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>
pub fn get_primary_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
&self.primary_cluster_id
}
/// <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>
pub fn automatic_failover_enabled(mut self, input: bool) -> Self {
self.automatic_failover_enabled = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_automatic_failover_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.automatic_failover_enabled = input;
self
}
/// <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>
pub fn get_automatic_failover_enabled(&self) -> &::std::option::Option<bool> {
&self.automatic_failover_enabled
}
/// <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>
pub fn multi_az_enabled(mut self, input: bool) -> Self {
self.multi_az_enabled = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_multi_az_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.multi_az_enabled = input;
self
}
/// <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>
pub fn get_multi_az_enabled(&self) -> &::std::option::Option<bool> {
&self.multi_az_enabled
}
/// <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>
pub fn num_cache_clusters(mut self, input: i32) -> Self {
self.num_cache_clusters = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_num_cache_clusters(mut self, input: ::std::option::Option<i32>) -> Self {
self.num_cache_clusters = input;
self
}
/// <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>
pub fn get_num_cache_clusters(&self) -> &::std::option::Option<i32> {
&self.num_cache_clusters
}
/// Appends an item to `preferred_cache_cluster_azs`.
///
/// To override the contents of this collection use [`set_preferred_cache_cluster_azs`](Self::set_preferred_cache_cluster_azs).
///
/// <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>
pub fn preferred_cache_cluster_azs(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.preferred_cache_cluster_azs.unwrap_or_default();
v.push(input.into());
self.preferred_cache_cluster_azs = ::std::option::Option::Some(v);
self
}
/// <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>
pub fn set_preferred_cache_cluster_azs(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.preferred_cache_cluster_azs = input;
self
}
/// <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>
pub fn get_preferred_cache_cluster_azs(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.preferred_cache_cluster_azs
}
/// <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>
pub fn num_node_groups(mut self, input: i32) -> Self {
self.num_node_groups = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_num_node_groups(mut self, input: ::std::option::Option<i32>) -> Self {
self.num_node_groups = input;
self
}
/// <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>
pub fn get_num_node_groups(&self) -> &::std::option::Option<i32> {
&self.num_node_groups
}
/// <p>An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5.</p>
pub fn replicas_per_node_group(mut self, input: i32) -> Self {
self.replicas_per_node_group = ::std::option::Option::Some(input);
self
}
/// <p>An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5.</p>
pub fn set_replicas_per_node_group(mut self, input: ::std::option::Option<i32>) -> Self {
self.replicas_per_node_group = input;
self
}
/// <p>An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0 to 5.</p>
pub fn get_replicas_per_node_group(&self) -> &::std::option::Option<i32> {
&self.replicas_per_node_group
}
/// Appends an item to `node_group_configuration`.
///
/// To override the contents of this collection use [`set_node_group_configuration`](Self::set_node_group_configuration).
///
/// <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>
pub fn node_group_configuration(mut self, input: crate::types::NodeGroupConfiguration) -> Self {
let mut v = self.node_group_configuration.unwrap_or_default();
v.push(input);
self.node_group_configuration = ::std::option::Option::Some(v);
self
}
/// <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>
pub fn set_node_group_configuration(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::NodeGroupConfiguration>>) -> Self {
self.node_group_configuration = input;
self
}
/// <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>
pub fn get_node_group_configuration(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::NodeGroupConfiguration>> {
&self.node_group_configuration
}
/// <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>
pub fn cache_node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cache_node_type = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_cache_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cache_node_type = input;
self
}
/// <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>
pub fn get_cache_node_type(&self) -> &::std::option::Option<::std::string::String> {
&self.cache_node_type
}
/// <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>
pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.engine = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine = input;
self
}
/// <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>
pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
&self.engine
}
/// <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>
pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.engine_version = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine_version = input;
self
}
/// <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>
pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
&self.engine_version
}
/// <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>
pub fn cache_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cache_parameter_group_name = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_cache_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cache_parameter_group_name = input;
self
}
/// <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>
pub fn get_cache_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.cache_parameter_group_name
}
/// <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>
pub fn cache_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cache_subnet_group_name = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_cache_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cache_subnet_group_name = input;
self
}
/// <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>
pub fn get_cache_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.cache_subnet_group_name
}
/// Appends an item to `cache_security_group_names`.
///
/// To override the contents of this collection use [`set_cache_security_group_names`](Self::set_cache_security_group_names).
///
/// <p>A list of cache security group names to associate with this replication group.</p>
pub fn cache_security_group_names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.cache_security_group_names.unwrap_or_default();
v.push(input.into());
self.cache_security_group_names = ::std::option::Option::Some(v);
self
}
/// <p>A list of cache security group names to associate with this replication group.</p>
pub fn set_cache_security_group_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.cache_security_group_names = input;
self
}
/// <p>A list of cache security group names to associate with this replication group.</p>
pub fn get_cache_security_group_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.cache_security_group_names
}
/// Appends an item to `security_group_ids`.
///
/// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
///
/// <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>
pub fn security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.security_group_ids.unwrap_or_default();
v.push(input.into());
self.security_group_ids = ::std::option::Option::Some(v);
self
}
/// <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>
pub fn set_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.security_group_ids = input;
self
}
/// <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>
pub fn get_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.security_group_ids
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <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>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = ::std::option::Option::Some(v);
self
}
/// <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>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.tags = input;
self
}
/// <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>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
&self.tags
}
/// Appends an item to `snapshot_arns`.
///
/// To override the contents of this collection use [`set_snapshot_arns`](Self::set_snapshot_arns).
///
/// <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>
pub fn snapshot_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.snapshot_arns.unwrap_or_default();
v.push(input.into());
self.snapshot_arns = ::std::option::Option::Some(v);
self
}
/// <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>
pub fn set_snapshot_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.snapshot_arns = input;
self
}
/// <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>
pub fn get_snapshot_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.snapshot_arns
}
/// <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>
pub fn snapshot_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.snapshot_name = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_snapshot_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.snapshot_name = input;
self
}
/// <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>
pub fn get_snapshot_name(&self) -> &::std::option::Option<::std::string::String> {
&self.snapshot_name
}
/// <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>
pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.preferred_maintenance_window = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.preferred_maintenance_window = input;
self
}
/// <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>
pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
&self.preferred_maintenance_window
}
/// <p>The port number on which each member of the replication group accepts connections.</p>
pub fn port(mut self, input: i32) -> Self {
self.port = ::std::option::Option::Some(input);
self
}
/// <p>The port number on which each member of the replication group accepts connections.</p>
pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
self.port = input;
self
}
/// <p>The port number on which each member of the replication group accepts connections.</p>
pub fn get_port(&self) -> &::std::option::Option<i32> {
&self.port
}
/// <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>
pub fn notification_topic_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.notification_topic_arn = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_notification_topic_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.notification_topic_arn = input;
self
}
/// <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>
pub fn get_notification_topic_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.notification_topic_arn
}
/// <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>
pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
self.auto_minor_version_upgrade = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
self.auto_minor_version_upgrade = input;
self
}
/// <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>
pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
&self.auto_minor_version_upgrade
}
/// <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>
pub fn snapshot_retention_limit(mut self, input: i32) -> Self {
self.snapshot_retention_limit = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_snapshot_retention_limit(mut self, input: ::std::option::Option<i32>) -> Self {
self.snapshot_retention_limit = input;
self
}
/// <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>
pub fn get_snapshot_retention_limit(&self) -> &::std::option::Option<i32> {
&self.snapshot_retention_limit
}
/// <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>
pub fn snapshot_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.snapshot_window = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_snapshot_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.snapshot_window = input;
self
}
/// <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>
pub fn get_snapshot_window(&self) -> &::std::option::Option<::std::string::String> {
&self.snapshot_window
}
/// <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>
pub fn auth_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.auth_token = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_auth_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.auth_token = input;
self
}
/// <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>
pub fn get_auth_token(&self) -> &::std::option::Option<::std::string::String> {
&self.auth_token
}
/// <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>
pub fn transit_encryption_enabled(mut self, input: bool) -> Self {
self.transit_encryption_enabled = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_transit_encryption_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.transit_encryption_enabled = input;
self
}
/// <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>
pub fn get_transit_encryption_enabled(&self) -> &::std::option::Option<bool> {
&self.transit_encryption_enabled
}
/// <p>A flag that enables encryption at-rest on the replication group when set to <code>true</code>. In some cases, encryption at-rest may be enabled even when this value is false. Use <code>StorageEncryptionType</code> to view the effective encryption state of a cluster.</p>
/// <p>You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication group is created.</p>
/// <p>Default: <code>true</code> when using Valkey, <code>false</code> when using Redis OSS</p>
pub fn at_rest_encryption_enabled(mut self, input: bool) -> Self {
self.at_rest_encryption_enabled = ::std::option::Option::Some(input);
self
}
/// <p>A flag that enables encryption at-rest on the replication group when set to <code>true</code>. In some cases, encryption at-rest may be enabled even when this value is false. Use <code>StorageEncryptionType</code> to view the effective encryption state of a cluster.</p>
/// <p>You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication group is created.</p>
/// <p>Default: <code>true</code> when using Valkey, <code>false</code> when using Redis OSS</p>
pub fn set_at_rest_encryption_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.at_rest_encryption_enabled = input;
self
}
/// <p>A flag that enables encryption at-rest on the replication group when set to <code>true</code>. In some cases, encryption at-rest may be enabled even when this value is false. Use <code>StorageEncryptionType</code> to view the effective encryption state of a cluster.</p>
/// <p>You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication group is created.</p>
/// <p>Default: <code>true</code> when using Valkey, <code>false</code> when using Redis OSS</p>
pub fn get_at_rest_encryption_enabled(&self) -> &::std::option::Option<bool> {
&self.at_rest_encryption_enabled
}
/// <p>The ID of the KMS key used to encrypt the disk in the cluster.</p>
pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the KMS key used to encrypt the disk in the cluster.</p>
pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_id = input;
self
}
/// <p>The ID of the KMS key used to encrypt the disk in the cluster.</p>
pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_id
}
/// Appends an item to `user_group_ids`.
///
/// To override the contents of this collection use [`set_user_group_ids`](Self::set_user_group_ids).
///
/// <p>The user group to associate with the replication group.</p>
pub fn user_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.user_group_ids.unwrap_or_default();
v.push(input.into());
self.user_group_ids = ::std::option::Option::Some(v);
self
}
/// <p>The user group to associate with the replication group.</p>
pub fn set_user_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.user_group_ids = input;
self
}
/// <p>The user group to associate with the replication group.</p>
pub fn get_user_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.user_group_ids
}
/// Appends an item to `log_delivery_configurations`.
///
/// To override the contents of this collection use [`set_log_delivery_configurations`](Self::set_log_delivery_configurations).
///
/// <p>Specifies the destination, format and type of the logs.</p>
pub fn log_delivery_configurations(mut self, input: crate::types::LogDeliveryConfigurationRequest) -> Self {
let mut v = self.log_delivery_configurations.unwrap_or_default();
v.push(input);
self.log_delivery_configurations = ::std::option::Option::Some(v);
self
}
/// <p>Specifies the destination, format and type of the logs.</p>
pub fn set_log_delivery_configurations(
mut self,
input: ::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>>,
) -> Self {
self.log_delivery_configurations = input;
self
}
/// <p>Specifies the destination, format and type of the logs.</p>
pub fn get_log_delivery_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LogDeliveryConfigurationRequest>> {
&self.log_delivery_configurations
}
/// <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>
pub fn data_tiering_enabled(mut self, input: bool) -> Self {
self.data_tiering_enabled = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_data_tiering_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.data_tiering_enabled = input;
self
}
/// <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>
pub fn get_data_tiering_enabled(&self) -> &::std::option::Option<bool> {
&self.data_tiering_enabled
}
/// <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>
pub fn network_type(mut self, input: crate::types::NetworkType) -> Self {
self.network_type = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_network_type(mut self, input: ::std::option::Option<crate::types::NetworkType>) -> Self {
self.network_type = input;
self
}
/// <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>
pub fn get_network_type(&self) -> &::std::option::Option<crate::types::NetworkType> {
&self.network_type
}
/// <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>
pub fn ip_discovery(mut self, input: crate::types::IpDiscovery) -> Self {
self.ip_discovery = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_ip_discovery(mut self, input: ::std::option::Option<crate::types::IpDiscovery>) -> Self {
self.ip_discovery = input;
self
}
/// <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>
pub fn get_ip_discovery(&self) -> &::std::option::Option<crate::types::IpDiscovery> {
&self.ip_discovery
}
/// <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>
pub fn transit_encryption_mode(mut self, input: crate::types::TransitEncryptionMode) -> Self {
self.transit_encryption_mode = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_transit_encryption_mode(mut self, input: ::std::option::Option<crate::types::TransitEncryptionMode>) -> Self {
self.transit_encryption_mode = input;
self
}
/// <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>
pub fn get_transit_encryption_mode(&self) -> &::std::option::Option<crate::types::TransitEncryptionMode> {
&self.transit_encryption_mode
}
/// <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>
pub fn cluster_mode(mut self, input: crate::types::ClusterMode) -> Self {
self.cluster_mode = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_cluster_mode(mut self, input: ::std::option::Option<crate::types::ClusterMode>) -> Self {
self.cluster_mode = input;
self
}
/// <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>
pub fn get_cluster_mode(&self) -> &::std::option::Option<crate::types::ClusterMode> {
&self.cluster_mode
}
/// <p>The name of the snapshot used to create a replication group. Available for Valkey, Redis OSS only.</p>
pub fn serverless_cache_snapshot_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.serverless_cache_snapshot_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the snapshot used to create a replication group. Available for Valkey, Redis OSS only.</p>
pub fn set_serverless_cache_snapshot_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.serverless_cache_snapshot_name = input;
self
}
/// <p>The name of the snapshot used to create a replication group. Available for Valkey, Redis OSS only.</p>
pub fn get_serverless_cache_snapshot_name(&self) -> &::std::option::Option<::std::string::String> {
&self.serverless_cache_snapshot_name
}
/// <p>Specifies the durability setting for the replication group. When set to <code>default</code>, the service determines the effective durability based on the engine version, cluster mode, and other parameters. The resolved setting is reflected in the <code>EffectiveDurability</code> property of the replication group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
pub fn durability(mut self, input: crate::types::Durability) -> Self {
self.durability = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the durability setting for the replication group. When set to <code>default</code>, the service determines the effective durability based on the engine version, cluster mode, and other parameters. The resolved setting is reflected in the <code>EffectiveDurability</code> property of the replication group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
pub fn set_durability(mut self, input: ::std::option::Option<crate::types::Durability>) -> Self {
self.durability = input;
self
}
/// <p>Specifies the durability setting for the replication group. When set to <code>default</code>, the service determines the effective durability based on the engine version, cluster mode, and other parameters. The resolved setting is reflected in the <code>EffectiveDurability</code> property of the replication group. For more information, see <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Durability.html">Durability</a>.</p>
pub fn get_durability(&self) -> &::std::option::Option<crate::types::Durability> {
&self.durability
}
/// Consumes the builder and constructs a [`CreateReplicationGroupInput`](crate::operation::create_replication_group::CreateReplicationGroupInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::create_replication_group::CreateReplicationGroupInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::create_replication_group::CreateReplicationGroupInput {
replication_group_id: self.replication_group_id,
replication_group_description: self.replication_group_description,
global_replication_group_id: self.global_replication_group_id,
primary_cluster_id: self.primary_cluster_id,
automatic_failover_enabled: self.automatic_failover_enabled,
multi_az_enabled: self.multi_az_enabled,
num_cache_clusters: self.num_cache_clusters,
preferred_cache_cluster_azs: self.preferred_cache_cluster_azs,
num_node_groups: self.num_node_groups,
replicas_per_node_group: self.replicas_per_node_group,
node_group_configuration: self.node_group_configuration,
cache_node_type: self.cache_node_type,
engine: self.engine,
engine_version: self.engine_version,
cache_parameter_group_name: self.cache_parameter_group_name,
cache_subnet_group_name: self.cache_subnet_group_name,
cache_security_group_names: self.cache_security_group_names,
security_group_ids: self.security_group_ids,
tags: self.tags,
snapshot_arns: self.snapshot_arns,
snapshot_name: self.snapshot_name,
preferred_maintenance_window: self.preferred_maintenance_window,
port: self.port,
notification_topic_arn: self.notification_topic_arn,
auto_minor_version_upgrade: self.auto_minor_version_upgrade,
snapshot_retention_limit: self.snapshot_retention_limit,
snapshot_window: self.snapshot_window,
auth_token: self.auth_token,
transit_encryption_enabled: self.transit_encryption_enabled,
at_rest_encryption_enabled: self.at_rest_encryption_enabled,
kms_key_id: self.kms_key_id,
user_group_ids: self.user_group_ids,
log_delivery_configurations: self.log_delivery_configurations,
data_tiering_enabled: self.data_tiering_enabled,
network_type: self.network_type,
ip_discovery: self.ip_discovery,
transit_encryption_mode: self.transit_encryption_mode,
cluster_mode: self.cluster_mode,
serverless_cache_snapshot_name: self.serverless_cache_snapshot_name,
durability: self.durability,
})
}
}