pub struct Builder { /* private fields */ }
Expand description

A builder for UpdateClusterInput.

Implementations§

The name of the cluster to update

Examples found in repository?
src/client.rs (line 3927)
3926
3927
3928
3929
        pub fn cluster_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.cluster_name(input.into());
            self
        }

The name of the cluster to update

Examples found in repository?
src/client.rs (line 3932)
3931
3932
3933
3934
        pub fn set_cluster_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_cluster_name(input);
            self
        }

The description of the cluster to update

Examples found in repository?
src/client.rs (line 3937)
3936
3937
3938
3939
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.description(input.into());
            self
        }

The description of the cluster to update

Examples found in repository?
src/client.rs (line 3942)
3941
3942
3943
3944
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

Appends an item to security_group_ids.

To override the contents of this collection use set_security_group_ids.

The SecurityGroupIds to update

Examples found in repository?
src/client.rs (line 3951)
3950
3951
3952
3953
        pub fn security_group_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.security_group_ids(input.into());
            self
        }

The SecurityGroupIds to update

Examples found in repository?
src/client.rs (line 3959)
3955
3956
3957
3958
3959
3960
3961
        pub fn set_security_group_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_security_group_ids(input);
            self
        }

The maintenance window to update

Examples found in repository?
src/client.rs (line 3964)
3963
3964
3965
3966
        pub fn maintenance_window(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.maintenance_window(input.into());
            self
        }

The maintenance window to update

Examples found in repository?
src/client.rs (line 3972)
3968
3969
3970
3971
3972
3973
3974
        pub fn set_maintenance_window(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_maintenance_window(input);
            self
        }

The SNS topic ARN to update

Examples found in repository?
src/client.rs (line 3977)
3976
3977
3978
3979
        pub fn sns_topic_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.sns_topic_arn(input.into());
            self
        }

The SNS topic ARN to update

Examples found in repository?
src/client.rs (line 3985)
3981
3982
3983
3984
3985
3986
3987
        pub fn set_sns_topic_arn(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_sns_topic_arn(input);
            self
        }

The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.

Examples found in repository?
src/client.rs (line 3990)
3989
3990
3991
3992
        pub fn sns_topic_status(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.sns_topic_status(input.into());
            self
        }

The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.

Examples found in repository?
src/client.rs (line 3998)
3994
3995
3996
3997
3998
3999
4000
        pub fn set_sns_topic_status(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_sns_topic_status(input);
            self
        }

The name of the parameter group to update

Examples found in repository?
src/client.rs (line 4003)
4002
4003
4004
4005
        pub fn parameter_group_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.parameter_group_name(input.into());
            self
        }

The name of the parameter group to update

Examples found in repository?
src/client.rs (line 4011)
4007
4008
4009
4010
4011
4012
4013
        pub fn set_parameter_group_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_parameter_group_name(input);
            self
        }

The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your cluster.

Examples found in repository?
src/client.rs (line 4016)
4015
4016
4017
4018
        pub fn snapshot_window(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.snapshot_window(input.into());
            self
        }

The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your cluster.

Examples found in repository?
src/client.rs (line 4024)
4020
4021
4022
4023
4024
4025
4026
        pub fn set_snapshot_window(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_snapshot_window(input);
            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.

Examples found in repository?
src/client.rs (line 4029)
4028
4029
4030
4031
        pub fn snapshot_retention_limit(mut self, input: i32) -> Self {
            self.inner = self.inner.snapshot_retention_limit(input);
            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.

Examples found in repository?
src/client.rs (line 4034)
4033
4034
4035
4036
        pub fn set_snapshot_retention_limit(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_snapshot_retention_limit(input);
            self
        }

A valid node type that you want to scale this cluster up or down to.

Examples found in repository?
src/client.rs (line 4039)
4038
4039
4040
4041
        pub fn node_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.node_type(input.into());
            self
        }

A valid node type that you want to scale this cluster up or down to.

Examples found in repository?
src/client.rs (line 4044)
4043
4044
4045
4046
        pub fn set_node_type(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_node_type(input);
            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.

Examples found in repository?
src/client.rs (line 4049)
4048
4049
4050
4051
        pub fn engine_version(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.engine_version(input.into());
            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.

Examples found in repository?
src/client.rs (line 4057)
4053
4054
4055
4056
4057
4058
4059
        pub fn set_engine_version(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_engine_version(input);
            self
        }

The number of replicas that will reside in each shard

Examples found in repository?
src/client.rs (line 4065)
4061
4062
4063
4064
4065
4066
4067
        pub fn replica_configuration(
            mut self,
            input: crate::model::ReplicaConfigurationRequest,
        ) -> Self {
            self.inner = self.inner.replica_configuration(input);
            self
        }

The number of replicas that will reside in each shard

Examples found in repository?
src/client.rs (line 4073)
4069
4070
4071
4072
4073
4074
4075
        pub fn set_replica_configuration(
            mut self,
            input: std::option::Option<crate::model::ReplicaConfigurationRequest>,
        ) -> Self {
            self.inner = self.inner.set_replica_configuration(input);
            self
        }

The number of shards in the cluster

Examples found in repository?
src/client.rs (line 4081)
4077
4078
4079
4080
4081
4082
4083
        pub fn shard_configuration(
            mut self,
            input: crate::model::ShardConfigurationRequest,
        ) -> Self {
            self.inner = self.inner.shard_configuration(input);
            self
        }

The number of shards in the cluster

Examples found in repository?
src/client.rs (line 4089)
4085
4086
4087
4088
4089
4090
4091
        pub fn set_shard_configuration(
            mut self,
            input: std::option::Option<crate::model::ShardConfigurationRequest>,
        ) -> Self {
            self.inner = self.inner.set_shard_configuration(input);
            self
        }

The Access Control List that is associated with the cluster

Examples found in repository?
src/client.rs (line 4094)
4093
4094
4095
4096
        pub fn acl_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.acl_name(input.into());
            self
        }

The Access Control List that is associated with the cluster

Examples found in repository?
src/client.rs (line 4099)
4098
4099
4100
4101
        pub fn set_acl_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_acl_name(input);
            self
        }

Consumes the builder and constructs a UpdateClusterInput.

Examples found in repository?
src/client.rs (line 3894)
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::UpdateCluster,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::UpdateClusterError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// 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](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::UpdateClusterOutput,
            aws_smithy_http::result::SdkError<crate::error::UpdateClusterError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more