#[non_exhaustive]pub struct CreateClusterInput {Show 22 fields
pub cluster_name: Option<String>,
pub node_type: Option<String>,
pub parameter_group_name: Option<String>,
pub description: Option<String>,
pub num_shards: Option<i32>,
pub num_replicas_per_shard: Option<i32>,
pub subnet_group_name: Option<String>,
pub security_group_ids: Option<Vec<String>>,
pub maintenance_window: Option<String>,
pub port: Option<i32>,
pub sns_topic_arn: Option<String>,
pub tls_enabled: Option<bool>,
pub kms_key_id: Option<String>,
pub snapshot_arns: Option<Vec<String>>,
pub snapshot_name: Option<String>,
pub snapshot_retention_limit: Option<i32>,
pub tags: Option<Vec<Tag>>,
pub snapshot_window: Option<String>,
pub acl_name: Option<String>,
pub engine_version: Option<String>,
pub auto_minor_version_upgrade: Option<bool>,
pub data_tiering: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cluster_name: Option<String>
The name of the cluster. This value must be unique as it also serves as the cluster identifier.
node_type: Option<String>
The compute and memory capacity of the nodes in the cluster.
parameter_group_name: Option<String>
The name of the parameter group associated with the cluster.
description: Option<String>
An optional description of the cluster.
num_shards: Option<i32>
The number of shards the cluster will contain. The default value is 1.
num_replicas_per_shard: Option<i32>
The number of replicas to apply to each shard. The default value is 1. The maximum is 5.
subnet_group_name: Option<String>
The name of the subnet group to be used for the cluster.
security_group_ids: Option<Vec<String>>
A list of security group names to associate with this cluster.
maintenance_window: Option<String>
Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
Valid values for ddd
are:
-
sun
-
mon
-
tue
-
wed
-
thu
-
fri
-
sat
Example: sun:23:00-mon:01:30
port: Option<i32>
The port number on which each of the nodes accepts connections.
sns_topic_arn: Option<String>
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.
tls_enabled: Option<bool>
A flag to enable in-transit encryption on the cluster.
kms_key_id: Option<String>
The ID of the KMS key used to encrypt the cluster.
snapshot_arns: Option<Vec<String>>
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new cluster. The Amazon S3 object name in the ARN cannot contain any commas.
snapshot_name: Option<String>
The name of a snapshot from which to restore data into the new cluster. The snapshot status changes to restoring while the new cluster is being created.
snapshot_retention_limit: Option<i32>
The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
A list of tags to be added to this resource. Tags are comma-separated key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue.
snapshot_window: Option<String>
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.
Example: 05:00-09:00
If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
acl_name: Option<String>
The name of the Access Control List to associate with the cluster.
engine_version: Option<String>
The version number of the Redis engine to be used for the cluster.
auto_minor_version_upgrade: Option<bool>
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
data_tiering: Option<bool>
Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.
Implementations§
source§impl CreateClusterInput
impl CreateClusterInput
sourcepub fn cluster_name(&self) -> Option<&str>
pub fn cluster_name(&self) -> Option<&str>
The name of the cluster. This value must be unique as it also serves as the cluster identifier.
sourcepub fn node_type(&self) -> Option<&str>
pub fn node_type(&self) -> Option<&str>
The compute and memory capacity of the nodes in the cluster.
sourcepub fn parameter_group_name(&self) -> Option<&str>
pub fn parameter_group_name(&self) -> Option<&str>
The name of the parameter group associated with the cluster.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
An optional description of the cluster.
sourcepub fn num_shards(&self) -> Option<i32>
pub fn num_shards(&self) -> Option<i32>
The number of shards the cluster will contain. The default value is 1.
sourcepub fn num_replicas_per_shard(&self) -> Option<i32>
pub fn num_replicas_per_shard(&self) -> Option<i32>
The number of replicas to apply to each shard. The default value is 1. The maximum is 5.
sourcepub fn subnet_group_name(&self) -> Option<&str>
pub fn subnet_group_name(&self) -> Option<&str>
The name of the subnet group to be used for the cluster.
sourcepub fn security_group_ids(&self) -> &[String]
pub fn security_group_ids(&self) -> &[String]
A list of security group names to associate with this cluster.
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()
.
sourcepub fn maintenance_window(&self) -> Option<&str>
pub fn maintenance_window(&self) -> Option<&str>
Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
Valid values for ddd
are:
-
sun
-
mon
-
tue
-
wed
-
thu
-
fri
-
sat
Example: sun:23:00-mon:01:30
sourcepub fn port(&self) -> Option<i32>
pub fn port(&self) -> Option<i32>
The port number on which each of the nodes accepts connections.
sourcepub fn sns_topic_arn(&self) -> Option<&str>
pub fn sns_topic_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.
sourcepub fn tls_enabled(&self) -> Option<bool>
pub fn tls_enabled(&self) -> Option<bool>
A flag to enable in-transit encryption on the cluster.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The ID of the KMS key used to encrypt the cluster.
sourcepub fn snapshot_arns(&self) -> &[String]
pub fn snapshot_arns(&self) -> &[String]
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new cluster. The Amazon S3 object name in the ARN cannot contain any commas.
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()
.
sourcepub fn snapshot_name(&self) -> Option<&str>
pub fn snapshot_name(&self) -> Option<&str>
The name of a snapshot from which to restore data into the new cluster. The snapshot status changes to restoring while the new cluster is being created.
sourcepub fn snapshot_retention_limit(&self) -> Option<i32>
pub fn snapshot_retention_limit(&self) -> Option<i32>
The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
A list of tags to be added to this resource. Tags are comma-separated key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue.
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()
.
sourcepub fn snapshot_window(&self) -> Option<&str>
pub fn snapshot_window(&self) -> Option<&str>
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.
Example: 05:00-09:00
If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
sourcepub fn acl_name(&self) -> Option<&str>
pub fn acl_name(&self) -> Option<&str>
The name of the Access Control List to associate with the cluster.
sourcepub fn engine_version(&self) -> Option<&str>
pub fn engine_version(&self) -> Option<&str>
The version number of the Redis engine to be used for the cluster.
sourcepub fn auto_minor_version_upgrade(&self) -> Option<bool>
pub fn auto_minor_version_upgrade(&self) -> Option<bool>
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
sourcepub fn data_tiering(&self) -> Option<bool>
pub fn data_tiering(&self) -> Option<bool>
Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering.
source§impl CreateClusterInput
impl CreateClusterInput
sourcepub fn builder() -> CreateClusterInputBuilder
pub fn builder() -> CreateClusterInputBuilder
Creates a new builder-style object to manufacture CreateClusterInput
.
Trait Implementations§
source§impl Clone for CreateClusterInput
impl Clone for CreateClusterInput
source§fn clone(&self) -> CreateClusterInput
fn clone(&self) -> CreateClusterInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateClusterInput
impl Debug for CreateClusterInput
source§impl PartialEq for CreateClusterInput
impl PartialEq for CreateClusterInput
source§fn eq(&self, other: &CreateClusterInput) -> bool
fn eq(&self, other: &CreateClusterInput) -> bool
self
and other
values to be equal, and is used
by ==
.