pub struct Builder { /* private fields */ }Expand description
A builder for Cluster.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the cluster
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the cluster
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The status of the cluster. For example, Available, Updating, Creating.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the cluster. For example, Available, Updating, Creating.
sourcepub fn pending_updates(self, input: ClusterPendingUpdates) -> Self
pub fn pending_updates(self, input: ClusterPendingUpdates) -> Self
A group of settings that are currently being applied.
sourcepub fn set_pending_updates(self, input: Option<ClusterPendingUpdates>) -> Self
pub fn set_pending_updates(self, input: Option<ClusterPendingUpdates>) -> Self
A group of settings that are currently being applied.
sourcepub fn number_of_shards(self, input: i32) -> Self
pub fn number_of_shards(self, input: i32) -> Self
The number of shards in the cluster
sourcepub fn set_number_of_shards(self, input: Option<i32>) -> Self
pub fn set_number_of_shards(self, input: Option<i32>) -> Self
The number of shards in the cluster
sourcepub fn shards(self, input: Shard) -> Self
pub fn shards(self, input: Shard) -> Self
Appends an item to shards.
To override the contents of this collection use set_shards.
A list of shards that are members of the cluster.
sourcepub fn set_shards(self, input: Option<Vec<Shard>>) -> Self
pub fn set_shards(self, input: Option<Vec<Shard>>) -> Self
A list of shards that are members of the cluster.
sourcepub fn availability_mode(self, input: AzStatus) -> Self
pub fn availability_mode(self, input: AzStatus) -> Self
Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz).
sourcepub fn set_availability_mode(self, input: Option<AzStatus>) -> Self
pub fn set_availability_mode(self, input: Option<AzStatus>) -> Self
Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz).
sourcepub fn cluster_endpoint(self, input: Endpoint) -> Self
pub fn cluster_endpoint(self, input: Endpoint) -> Self
The cluster's configuration endpoint
sourcepub fn set_cluster_endpoint(self, input: Option<Endpoint>) -> Self
pub fn set_cluster_endpoint(self, input: Option<Endpoint>) -> Self
The cluster's configuration endpoint
sourcepub fn set_node_type(self, input: Option<String>) -> Self
pub fn set_node_type(self, input: Option<String>) -> Self
The cluster's node type
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The Redis engine version used by the cluster
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The Redis engine version used by the cluster
sourcepub fn engine_patch_version(self, input: impl Into<String>) -> Self
pub fn engine_patch_version(self, input: impl Into<String>) -> Self
The Redis engine patch version used by the cluster
sourcepub fn set_engine_patch_version(self, input: Option<String>) -> Self
pub fn set_engine_patch_version(self, input: Option<String>) -> Self
The Redis engine patch version used by the cluster
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 used by the cluster
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 used by the cluster
sourcepub fn parameter_group_status(self, input: impl Into<String>) -> Self
pub fn parameter_group_status(self, input: impl Into<String>) -> Self
The status of the parameter group used by the cluster, for example 'active' or 'applying'.
sourcepub fn set_parameter_group_status(self, input: Option<String>) -> Self
pub fn set_parameter_group_status(self, input: Option<String>) -> Self
The status of the parameter group used by the cluster, for example 'active' or 'applying'.
sourcepub fn security_groups(self, input: SecurityGroupMembership) -> Self
pub fn security_groups(self, input: SecurityGroupMembership) -> Self
Appends an item to security_groups.
To override the contents of this collection use set_security_groups.
A list of security groups used by the cluster
sourcepub fn set_security_groups(
self,
input: Option<Vec<SecurityGroupMembership>>
) -> Self
pub fn set_security_groups(
self,
input: Option<Vec<SecurityGroupMembership>>
) -> Self
A list of security groups used by the cluster
sourcepub fn subnet_group_name(self, input: impl Into<String>) -> Self
pub fn subnet_group_name(self, input: impl Into<String>) -> Self
The name of the subnet group used by the cluster
sourcepub fn set_subnet_group_name(self, input: Option<String>) -> Self
pub fn set_subnet_group_name(self, input: Option<String>) -> Self
The name of the subnet group used by the cluster
sourcepub fn tls_enabled(self, input: bool) -> Self
pub fn tls_enabled(self, input: bool) -> Self
A flag to indicate if In-transit encryption is enabled
sourcepub fn set_tls_enabled(self, input: Option<bool>) -> Self
pub fn set_tls_enabled(self, input: Option<bool>) -> Self
A flag to indicate if In-transit encryption is enabled
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the KMS key used to encrypt the cluster
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the KMS key used to encrypt the cluster
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the cluster.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the cluster.
sourcepub fn sns_topic_arn(self, input: impl Into<String>) -> Self
pub fn sns_topic_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the SNS notification topic
sourcepub fn set_sns_topic_arn(self, input: Option<String>) -> Self
pub fn set_sns_topic_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the SNS notification topic
sourcepub fn sns_topic_status(self, input: impl Into<String>) -> Self
pub fn sns_topic_status(self, input: impl Into<String>) -> Self
The SNS topic must be in Active status to receive notifications
sourcepub fn set_sns_topic_status(self, input: Option<String>) -> Self
pub fn set_sns_topic_status(self, input: Option<String>) -> Self
The SNS topic must be in Active status to receive notifications
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 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 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 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.
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.
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 shard. Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
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 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, input: impl Into<String>) -> Self
pub fn acl_name(self, input: impl Into<String>) -> Self
The name of the Access Control List associated with this cluster.
sourcepub fn set_acl_name(self, input: Option<String>) -> Self
pub fn set_acl_name(self, input: Option<String>) -> Self
The name of the Access Control List associated with this cluster.
sourcepub fn auto_minor_version_upgrade(self, input: bool) -> Self
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.
sourcepub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
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.