pub struct CreateClusterFluentBuilder { /* 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 CreateClusterFluentBuilder

source

pub fn as_input(&self) -> &CreateClusterInputBuilder

Access the CreateCluster as a reference.

source

pub async fn send( self ) -> Result<CreateClusterOutput, SdkError<CreateClusterError, HttpResponse>>

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.

source

pub fn customize( self ) -> CustomizableOperation<CreateClusterOutput, CreateClusterError, Self>

Consumes this builder, creating a customizable operation that can be modified before being sent.

source

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.

source

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.

source

pub fn get_cluster_name(&self) -> &Option<String>

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

source

pub fn node_type(self, input: impl Into<String>) -> Self

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

source

pub fn set_node_type(self, input: Option<String>) -> Self

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

source

pub fn get_node_type(&self) -> &Option<String>

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

source

pub fn parameter_group_name(self, input: impl Into<String>) -> Self

The name of the parameter group associated with the cluster.

source

pub fn set_parameter_group_name(self, input: Option<String>) -> Self

The name of the parameter group associated with the cluster.

source

pub fn get_parameter_group_name(&self) -> &Option<String>

The name of the parameter group associated with the cluster.

source

pub fn description(self, input: impl Into<String>) -> Self

An optional description of the cluster.

source

pub fn set_description(self, input: Option<String>) -> Self

An optional description of the cluster.

source

pub fn get_description(&self) -> &Option<String>

An optional description of the cluster.

source

pub fn num_shards(self, input: i32) -> Self

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

source

pub fn set_num_shards(self, input: Option<i32>) -> Self

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

source

pub fn get_num_shards(&self) -> &Option<i32>

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

source

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.

source

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.

source

pub fn get_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.

source

pub fn subnet_group_name(self, input: impl Into<String>) -> Self

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

source

pub fn set_subnet_group_name(self, input: Option<String>) -> Self

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

source

pub fn get_subnet_group_name(&self) -> &Option<String>

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

source

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.

source

pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self

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

source

pub fn get_security_group_ids(&self) -> &Option<Vec<String>>

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

source

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

source

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

source

pub fn get_maintenance_window(&self) -> &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

source

pub fn port(self, input: i32) -> Self

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

source

pub fn set_port(self, input: Option<i32>) -> Self

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

source

pub fn get_port(&self) -> &Option<i32>

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

source

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.

source

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.

source

pub fn get_sns_topic_arn(&self) -> &Option<String>

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

source

pub fn tls_enabled(self, input: bool) -> Self

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

source

pub fn set_tls_enabled(self, input: Option<bool>) -> Self

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

source

pub fn get_tls_enabled(&self) -> &Option<bool>

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

source

pub fn kms_key_id(self, input: impl Into<String>) -> Self

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

source

pub fn set_kms_key_id(self, input: Option<String>) -> Self

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

source

pub fn get_kms_key_id(&self) -> &Option<String>

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

source

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.

source

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.

source

pub fn get_snapshot_arns(&self) -> &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.

source

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.

source

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.

source

pub fn get_snapshot_name(&self) -> &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.

source

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.

source

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.

source

pub fn get_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.

source

pub fn tags(self, input: Tag) -> Self

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.

source

pub fn set_tags(self, input: Option<Vec<Tag>>) -> Self

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.

source

pub fn get_tags(&self) -> &Option<Vec<Tag>>

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.

source

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.

source

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.

source

pub fn get_snapshot_window(&self) -> &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.

source

pub fn acl_name(self, input: impl Into<String>) -> Self

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

source

pub fn set_acl_name(self, input: Option<String>) -> Self

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

source

pub fn get_acl_name(&self) -> &Option<String>

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

source

pub fn engine_version(self, input: impl Into<String>) -> Self

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

source

pub fn set_engine_version(self, input: Option<String>) -> Self

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

source

pub fn get_engine_version(&self) -> &Option<String>

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

source

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.

source

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.

source

pub fn get_auto_minor_version_upgrade(&self) -> &Option<bool>

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

source

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.

source

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.

source

pub fn get_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.

Trait Implementations§

source§

impl Clone for CreateClusterFluentBuilder

source§

fn clone(&self) -> CreateClusterFluentBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CreateClusterFluentBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more