Struct aws_sdk_memorydb::input::CreateClusterInput
source · #[non_exhaustive]pub struct CreateClusterInput { /* private fields */ }
Implementations§
source§impl CreateClusterInput
impl CreateClusterInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateCluster, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateCluster, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateCluster
>
Examples found in repository?
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
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateClusterInput
.
source§impl CreateClusterInput
impl CreateClusterInput
sourcepub fn cluster_name(&self) -> Option<&str>
pub fn cluster_name(&self) -> Option<&str>
The name of the cluster. This value must be unique as it also serves as the cluster identifier.
sourcepub fn node_type(&self) -> Option<&str>
pub fn node_type(&self) -> Option<&str>
The compute and memory capacity of the nodes in the cluster.
sourcepub fn parameter_group_name(&self) -> Option<&str>
pub fn parameter_group_name(&self) -> Option<&str>
The name of the parameter group associated with the cluster.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
An optional description of the cluster.
sourcepub fn num_shards(&self) -> Option<i32>
pub fn num_shards(&self) -> Option<i32>
The number of shards the cluster will contain. The default value is 1.
sourcepub fn num_replicas_per_shard(&self) -> Option<i32>
pub fn 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.
sourcepub fn subnet_group_name(&self) -> Option<&str>
pub fn subnet_group_name(&self) -> Option<&str>
The name of the subnet group to be used for the cluster.
sourcepub fn security_group_ids(&self) -> Option<&[String]>
pub fn security_group_ids(&self) -> Option<&[String]>
A list of security group names to associate with this cluster.
sourcepub fn maintenance_window(&self) -> Option<&str>
pub fn maintenance_window(&self) -> Option<&str>
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.
sourcepub fn port(&self) -> Option<i32>
pub fn port(&self) -> Option<i32>
The port number on which each of the nodes accepts connections.
sourcepub fn sns_topic_arn(&self) -> Option<&str>
pub fn sns_topic_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.
sourcepub fn tls_enabled(&self) -> Option<bool>
pub fn tls_enabled(&self) -> Option<bool>
A flag to enable in-transit encryption on the cluster.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The ID of the KMS key used to encrypt the cluster.
sourcepub fn snapshot_arns(&self) -> Option<&[String]>
pub fn snapshot_arns(&self) -> Option<&[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.
sourcepub fn snapshot_name(&self) -> Option<&str>
pub fn snapshot_name(&self) -> Option<&str>
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) -> Option<i32>
pub fn 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.
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) -> Option<&str>
pub fn snapshot_window(&self) -> Option<&str>
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) -> Option<&str>
pub fn acl_name(&self) -> Option<&str>
The name of the Access Control List to associate with the cluster.
sourcepub fn engine_version(&self) -> Option<&str>
pub fn engine_version(&self) -> Option<&str>
The version number of the Redis engine to be used for the cluster.
sourcepub fn auto_minor_version_upgrade(&self) -> Option<bool>
pub fn auto_minor_version_upgrade(&self) -> Option<bool>
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
Trait Implementations§
source§impl Clone for CreateClusterInput
impl Clone for CreateClusterInput
source§fn clone(&self) -> CreateClusterInput
fn clone(&self) -> CreateClusterInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more