Struct aws_sdk_memorydb::client::fluent_builders::UpdateCluster
source · pub struct UpdateCluster { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateCluster
.
Modifies the settings for a cluster. You can use this operation to change one or more cluster configuration settings by specifying the settings and the new values.
Implementations§
source§impl UpdateCluster
impl UpdateCluster
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateCluster, AwsResponseRetryClassifier>, SdkError<UpdateClusterError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateCluster, AwsResponseRetryClassifier>, SdkError<UpdateClusterError>>
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<UpdateClusterOutput, SdkError<UpdateClusterError>>
pub async fn send(
self
) -> Result<UpdateClusterOutput, SdkError<UpdateClusterError>>
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 to update
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 to update
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the cluster to update
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the cluster to update
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
.
The SecurityGroupIds to update
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
The SecurityGroupIds to update
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 sns_topic_arn(self, input: impl Into<String>) -> Self
pub fn sns_topic_arn(self, input: impl Into<String>) -> Self
The SNS topic ARN to update
sourcepub fn set_sns_topic_arn(self, input: Option<String>) -> Self
pub fn set_sns_topic_arn(self, input: Option<String>) -> Self
The SNS topic ARN to update
sourcepub fn sns_topic_status(self, input: impl Into<String>) -> Self
pub fn sns_topic_status(self, input: impl Into<String>) -> Self
The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.
sourcepub fn set_sns_topic_status(self, input: Option<String>) -> Self
pub fn set_sns_topic_status(self, input: Option<String>) -> Self
The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.
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 to update
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 to update
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 cluster.
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 cluster.
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 cluster 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 cluster 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 node_type(self, input: impl Into<String>) -> Self
pub fn node_type(self, input: impl Into<String>) -> Self
A valid node type that you want to scale this cluster up or down to.
sourcepub fn set_node_type(self, input: Option<String>) -> Self
pub fn set_node_type(self, input: Option<String>) -> Self
A valid node type that you want to scale this cluster up or down to.
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The upgraded version of the engine to be run on the nodes. You can upgrade to a newer engine version, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The upgraded version of the engine to be run on the nodes. You can upgrade to a newer engine version, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.
sourcepub fn replica_configuration(self, input: ReplicaConfigurationRequest) -> Self
pub fn replica_configuration(self, input: ReplicaConfigurationRequest) -> Self
The number of replicas that will reside in each shard
sourcepub fn set_replica_configuration(
self,
input: Option<ReplicaConfigurationRequest>
) -> Self
pub fn set_replica_configuration(
self,
input: Option<ReplicaConfigurationRequest>
) -> Self
The number of replicas that will reside in each shard
sourcepub fn shard_configuration(self, input: ShardConfigurationRequest) -> Self
pub fn shard_configuration(self, input: ShardConfigurationRequest) -> Self
The number of shards in the cluster
sourcepub fn set_shard_configuration(
self,
input: Option<ShardConfigurationRequest>
) -> Self
pub fn set_shard_configuration(
self,
input: Option<ShardConfigurationRequest>
) -> Self
The number of shards in the cluster
sourcepub fn acl_name(self, input: impl Into<String>) -> Self
pub fn acl_name(self, input: impl Into<String>) -> Self
The Access Control List that is associated with the cluster
sourcepub fn set_acl_name(self, input: Option<String>) -> Self
pub fn set_acl_name(self, input: Option<String>) -> Self
The Access Control List that is associated with the cluster
Trait Implementations§
source§impl Clone for UpdateCluster
impl Clone for UpdateCluster
source§fn clone(&self) -> UpdateCluster
fn clone(&self) -> UpdateCluster
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more