Struct aws_sdk_elasticache::types::NodeGroupConfiguration
source · #[non_exhaustive]pub struct NodeGroupConfiguration {
pub node_group_id: Option<String>,
pub slots: Option<String>,
pub replica_count: Option<i32>,
pub primary_availability_zone: Option<String>,
pub replica_availability_zones: Option<Vec<String>>,
pub primary_outpost_arn: Option<String>,
pub replica_outpost_arns: Option<Vec<String>>,
}
Expand description
Node group (shard) configuration options. Each node group (shard) configuration has the following: Slots
, PrimaryAvailabilityZone
, ReplicaAvailabilityZones
, ReplicaCount
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.node_group_id: Option<String>
Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
slots: Option<String>
A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The string is in the format startkey-endkey
.
Example: "0-3999"
replica_count: Option<i32>
The number of read replica nodes in this node group (shard).
primary_availability_zone: Option<String>
The Availability Zone where the primary node of this node group (shard) is launched.
replica_availability_zones: Option<Vec<String>>
A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must match the value of ReplicaCount
or ReplicasPerNodeGroup
if not specified.
primary_outpost_arn: Option<String>
The outpost ARN of the primary node.
replica_outpost_arns: Option<Vec<String>>
The outpost ARN of the node replicas.
Implementations§
source§impl NodeGroupConfiguration
impl NodeGroupConfiguration
sourcepub fn node_group_id(&self) -> Option<&str>
pub fn node_group_id(&self) -> Option<&str>
Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
sourcepub fn slots(&self) -> Option<&str>
pub fn slots(&self) -> Option<&str>
A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The string is in the format startkey-endkey
.
Example: "0-3999"
sourcepub fn replica_count(&self) -> Option<i32>
pub fn replica_count(&self) -> Option<i32>
The number of read replica nodes in this node group (shard).
sourcepub fn primary_availability_zone(&self) -> Option<&str>
pub fn primary_availability_zone(&self) -> Option<&str>
The Availability Zone where the primary node of this node group (shard) is launched.
sourcepub fn replica_availability_zones(&self) -> &[String]
pub fn replica_availability_zones(&self) -> &[String]
A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must match the value of ReplicaCount
or ReplicasPerNodeGroup
if not specified.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .replica_availability_zones.is_none()
.
sourcepub fn primary_outpost_arn(&self) -> Option<&str>
pub fn primary_outpost_arn(&self) -> Option<&str>
The outpost ARN of the primary node.
sourcepub fn replica_outpost_arns(&self) -> &[String]
pub fn replica_outpost_arns(&self) -> &[String]
The outpost ARN of the node replicas.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .replica_outpost_arns.is_none()
.
source§impl NodeGroupConfiguration
impl NodeGroupConfiguration
sourcepub fn builder() -> NodeGroupConfigurationBuilder
pub fn builder() -> NodeGroupConfigurationBuilder
Creates a new builder-style object to manufacture NodeGroupConfiguration
.
Trait Implementations§
source§impl Clone for NodeGroupConfiguration
impl Clone for NodeGroupConfiguration
source§fn clone(&self) -> NodeGroupConfiguration
fn clone(&self) -> NodeGroupConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeGroupConfiguration
impl Debug for NodeGroupConfiguration
source§impl PartialEq for NodeGroupConfiguration
impl PartialEq for NodeGroupConfiguration
source§fn eq(&self, other: &NodeGroupConfiguration) -> bool
fn eq(&self, other: &NodeGroupConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.