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

A builder for CreateClusterInput.

Implementations§

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

Examples found in repository?
src/client.rs (line 955)
954
955
956
957
        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. This value must be unique as it also serves as the cluster identifier.

Examples found in repository?
src/client.rs (line 960)
959
960
961
962
        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 compute and memory capacity of the nodes in the cluster.

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

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

Examples found in repository?
src/client.rs (line 970)
969
970
971
972
        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 name of the parameter group associated with the cluster.

Examples found in repository?
src/client.rs (line 975)
974
975
976
977
        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 associated with the cluster.

Examples found in repository?
src/client.rs (line 983)
979
980
981
982
983
984
985
        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
        }

An optional description of the cluster.

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

An optional description of the cluster.

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

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

Examples found in repository?
src/client.rs (line 998)
997
998
999
1000
        pub fn num_shards(mut self, input: i32) -> Self {
            self.inner = self.inner.num_shards(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 1003)
1002
1003
1004
1005
        pub fn set_num_shards(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_num_shards(input);
            self
        }

The number of replicas to apply to each shard. The default value is 1. The maximum is 5.

Examples found in repository?
src/client.rs (line 1008)
1007
1008
1009
1010
        pub fn num_replicas_per_shard(mut self, input: i32) -> Self {
            self.inner = self.inner.num_replicas_per_shard(input);
            self
        }

The number of replicas to apply to each shard. The default value is 1. The maximum is 5.

Examples found in repository?
src/client.rs (line 1013)
1012
1013
1014
1015
        pub fn set_num_replicas_per_shard(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_num_replicas_per_shard(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 1018)
1017
1018
1019
1020
        pub fn subnet_group_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.subnet_group_name(input.into());
            self
        }

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

Examples found in repository?
src/client.rs (line 1026)
1022
1023
1024
1025
1026
1027
1028
        pub fn set_subnet_group_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_subnet_group_name(input);
            self
        }

Appends an item to security_group_ids.

To override the contents of this collection use set_security_group_ids.

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

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

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

Examples found in repository?
src/client.rs (line 1043)
1039
1040
1041
1042
1043
1044
1045
        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
        }

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.

Examples found in repository?
src/client.rs (line 1048)
1047
1048
1049
1050
        pub fn maintenance_window(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.maintenance_window(input.into());
            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.

Examples found in repository?
src/client.rs (line 1056)
1052
1053
1054
1055
1056
1057
1058
        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 port number on which each of the nodes accepts connections.

Examples found in repository?
src/client.rs (line 1061)
1060
1061
1062
1063
        pub fn port(mut self, input: i32) -> Self {
            self.inner = self.inner.port(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 1066)
1065
1066
1067
1068
        pub fn set_port(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_port(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 1071)
1070
1071
1072
1073
        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 Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.

Examples found in repository?
src/client.rs (line 1079)
1075
1076
1077
1078
1079
1080
1081
        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
        }

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

Examples found in repository?
src/client.rs (line 1084)
1083
1084
1085
1086
        pub fn tls_enabled(mut self, input: bool) -> Self {
            self.inner = self.inner.tls_enabled(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 1089)
1088
1089
1090
1091
        pub fn set_tls_enabled(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_tls_enabled(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 1094)
1093
1094
1095
1096
        pub fn kms_key_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.kms_key_id(input.into());
            self
        }

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

Examples found in repository?
src/client.rs (line 1099)
1098
1099
1100
1101
        pub fn set_kms_key_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_kms_key_id(input);
            self
        }

Appends an item to snapshot_arns.

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.

Examples found in repository?
src/client.rs (line 1108)
1107
1108
1109
1110
        pub fn snapshot_arns(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.snapshot_arns(input.into());
            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.

Examples found in repository?
src/client.rs (line 1116)
1112
1113
1114
1115
1116
1117
1118
        pub fn set_snapshot_arns(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_snapshot_arns(input);
            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.

Examples found in repository?
src/client.rs (line 1121)
1120
1121
1122
1123
        pub fn snapshot_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.snapshot_name(input.into());
            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.

Examples found in repository?
src/client.rs (line 1129)
1125
1126
1127
1128
1129
1130
1131
        pub fn set_snapshot_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_snapshot_name(input);
            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.

Examples found in repository?
src/client.rs (line 1134)
1133
1134
1135
1136
        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 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 1139)
1138
1139
1140
1141
        pub fn set_snapshot_retention_limit(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_snapshot_retention_limit(input);
            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.

Examples found in repository?
src/client.rs (line 1148)
1147
1148
1149
1150
        pub fn tags(mut self, input: crate::model::Tag) -> Self {
            self.inner = self.inner.tags(input);
            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.

Examples found in repository?
src/client.rs (line 1156)
1152
1153
1154
1155
1156
1157
1158
        pub fn set_tags(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            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.

Examples found in repository?
src/client.rs (line 1163)
1162
1163
1164
1165
        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 shard.

Example: 05:00-09:00

If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.

Examples found in repository?
src/client.rs (line 1173)
1169
1170
1171
1172
1173
1174
1175
        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 name of the Access Control List to associate with the cluster.

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

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

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

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

Examples found in repository?
src/client.rs (line 1188)
1187
1188
1189
1190
        pub fn engine_version(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.engine_version(input.into());
            self
        }

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

Examples found in repository?
src/client.rs (line 1196)
1192
1193
1194
1195
1196
1197
1198
        pub fn set_engine_version(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_engine_version(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 1201)
1200
1201
1202
1203
        pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
            self.inner = self.inner.auto_minor_version_upgrade(input);
            self
        }

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

Examples found in repository?
src/client.rs (line 1206)
1205
1206
1207
1208
        pub fn set_auto_minor_version_upgrade(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_auto_minor_version_upgrade(input);
            self
        }

Consumes the builder and constructs a CreateClusterInput.

Examples found in repository?
src/client.rs (line 922)
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateCluster,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateClusterError>,
        > {
            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::CreateClusterOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateClusterError>,
        > {
            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