Struct aws_sdk_memorydb::client::fluent_builders::CreateCluster
source · pub struct CreateCluster { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCluster
.
Creates a cluster. All nodes in the cluster run the same protocol-compliant engine software.
Implementations§
source§impl CreateCluster
impl CreateCluster
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateCluster, AwsResponseRetryClassifier>, SdkError<CreateClusterError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateCluster, AwsResponseRetryClassifier>, SdkError<CreateClusterError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateClusterOutput, SdkError<CreateClusterError>>
pub async fn send(
self
) -> Result<CreateClusterOutput, SdkError<CreateClusterError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn cluster_name(self, input: impl Into<String>) -> Self
pub fn cluster_name(self, input: impl Into<String>) -> Self
The name of the cluster. This value must be unique as it also serves as the cluster identifier.
sourcepub fn set_cluster_name(self, input: Option<String>) -> Self
pub fn set_cluster_name(self, input: Option<String>) -> Self
The name of the cluster. This value must be unique as it also serves as the cluster identifier.
sourcepub fn node_type(self, input: impl Into<String>) -> Self
pub fn node_type(self, input: impl Into<String>) -> Self
The compute and memory capacity of the nodes in the cluster.
sourcepub fn set_node_type(self, input: Option<String>) -> Self
pub fn set_node_type(self, input: Option<String>) -> Self
The compute and memory capacity of the nodes in the cluster.
sourcepub fn parameter_group_name(self, input: impl Into<String>) -> Self
pub fn parameter_group_name(self, input: impl Into<String>) -> Self
The name of the parameter group associated with the cluster.
sourcepub fn set_parameter_group_name(self, input: Option<String>) -> Self
pub fn set_parameter_group_name(self, input: Option<String>) -> Self
The name of the parameter group associated with the cluster.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
An optional description of the cluster.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
An optional description of the cluster.
sourcepub fn num_shards(self, input: i32) -> Self
pub fn num_shards(self, input: i32) -> Self
The number of shards the cluster will contain. The default value is 1.
sourcepub fn set_num_shards(self, input: Option<i32>) -> Self
pub fn set_num_shards(self, input: Option<i32>) -> Self
The number of shards the cluster will contain. The default value is 1.
sourcepub fn num_replicas_per_shard(self, input: i32) -> Self
pub fn num_replicas_per_shard(self, input: i32) -> Self
The number of replicas to apply to each shard. The default value is 1. The maximum is 5.
sourcepub fn set_num_replicas_per_shard(self, input: Option<i32>) -> Self
pub fn set_num_replicas_per_shard(self, input: Option<i32>) -> Self
The number of replicas to apply to each shard. The default value is 1. The maximum is 5.
sourcepub fn subnet_group_name(self, input: impl Into<String>) -> Self
pub fn subnet_group_name(self, input: impl Into<String>) -> Self
The name of the subnet group to be used for the cluster.
sourcepub fn set_subnet_group_name(self, input: Option<String>) -> Self
pub fn set_subnet_group_name(self, input: Option<String>) -> Self
The name of the subnet group to be used for the cluster.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to SecurityGroupIds
.
To override the contents of this collection use set_security_group_ids
.
A list of security group names to associate with this cluster.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
A list of security group names to associate with this cluster.
sourcepub fn maintenance_window(self, input: impl Into<String>) -> Self
pub fn maintenance_window(self, input: impl Into<String>) -> Self
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 set_maintenance_window(self, input: Option<String>) -> Self
pub fn set_maintenance_window(self, input: Option<String>) -> Self
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, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port number on which each of the nodes accepts connections.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port number on which each of the nodes accepts connections.
sourcepub fn sns_topic_arn(self, input: impl Into<String>) -> Self
pub fn sns_topic_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.
sourcepub fn set_sns_topic_arn(self, input: Option<String>) -> Self
pub fn set_sns_topic_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.
sourcepub fn tls_enabled(self, input: bool) -> Self
pub fn tls_enabled(self, input: bool) -> Self
A flag to enable in-transit encryption on the cluster.
sourcepub fn set_tls_enabled(self, input: Option<bool>) -> Self
pub fn set_tls_enabled(self, input: Option<bool>) -> Self
A flag to enable in-transit encryption on the cluster.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the KMS key used to encrypt the cluster.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the KMS key used to encrypt the cluster.
sourcepub fn snapshot_arns(self, input: impl Into<String>) -> Self
pub fn snapshot_arns(self, input: impl Into<String>) -> Self
Appends an item to SnapshotArns
.
To override the contents of this collection use set_snapshot_arns
.
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.
sourcepub fn set_snapshot_arns(self, input: Option<Vec<String>>) -> Self
pub fn set_snapshot_arns(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn snapshot_name(self, input: impl Into<String>) -> Self
pub fn snapshot_name(self, input: impl Into<String>) -> Self
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 set_snapshot_name(self, input: Option<String>) -> Self
pub fn set_snapshot_name(self, input: Option<String>) -> Self
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, input: i32) -> Self
pub fn snapshot_retention_limit(self, input: i32) -> Self
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.
sourcepub fn set_snapshot_retention_limit(self, input: Option<i32>) -> Self
pub fn set_snapshot_retention_limit(self, input: Option<i32>) -> Self
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.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
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.
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.
sourcepub fn snapshot_window(self, input: impl Into<String>) -> Self
pub fn snapshot_window(self, input: impl Into<String>) -> Self
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 set_snapshot_window(self, input: Option<String>) -> Self
pub fn set_snapshot_window(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn acl_name(self, input: impl Into<String>) -> Self
The name of the Access Control List to associate with the cluster.
sourcepub fn set_acl_name(self, input: Option<String>) -> Self
pub fn set_acl_name(self, input: Option<String>) -> Self
The name of the Access Control List to associate with the cluster.
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The version number of the Redis engine to be used for the cluster.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The version number of the Redis engine to be used for the cluster.
sourcepub fn auto_minor_version_upgrade(self, input: bool) -> Self
pub fn auto_minor_version_upgrade(self, input: bool) -> Self
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
sourcepub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
pub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
sourcepub fn data_tiering(self, input: bool) -> Self
pub fn data_tiering(self, input: bool) -> Self
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.
sourcepub fn set_data_tiering(self, input: Option<bool>) -> Self
pub fn set_data_tiering(self, input: Option<bool>) -> Self
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.
Trait Implementations§
source§impl Clone for CreateCluster
impl Clone for CreateCluster
source§fn clone(&self) -> CreateCluster
fn clone(&self) -> CreateCluster
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more