Struct aws_sdk_elasticache::types::NodeGroup
source · #[non_exhaustive]pub struct NodeGroup {
pub node_group_id: Option<String>,
pub status: Option<String>,
pub primary_endpoint: Option<Endpoint>,
pub reader_endpoint: Option<Endpoint>,
pub slots: Option<String>,
pub node_group_members: Option<Vec<NodeGroupMember>>,
}
Expand description
Represents a collection of cache nodes in a replication group. One node in the node group is the read/write primary node. All the other nodes are read-only Replica nodes.
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>
The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for a node group.
status: Option<String>
The current state of this replication group - creating
, available
, modifying
, deleting
.
primary_endpoint: Option<Endpoint>
The endpoint of the primary node in this node group (shard).
reader_endpoint: Option<Endpoint>
The endpoint of the replica nodes in this node group (shard).
slots: Option<String>
The keyspace for this node group (shard).
node_group_members: Option<Vec<NodeGroupMember>>
A list containing information about individual nodes within the node group (shard).
Implementations§
source§impl NodeGroup
impl NodeGroup
sourcepub fn node_group_id(&self) -> Option<&str>
pub fn node_group_id(&self) -> Option<&str>
The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for a node group.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The current state of this replication group - creating
, available
, modifying
, deleting
.
sourcepub fn primary_endpoint(&self) -> Option<&Endpoint>
pub fn primary_endpoint(&self) -> Option<&Endpoint>
The endpoint of the primary node in this node group (shard).
sourcepub fn reader_endpoint(&self) -> Option<&Endpoint>
pub fn reader_endpoint(&self) -> Option<&Endpoint>
The endpoint of the replica nodes in this node group (shard).
sourcepub fn node_group_members(&self) -> &[NodeGroupMember]
pub fn node_group_members(&self) -> &[NodeGroupMember]
A list containing information about individual nodes within the node group (shard).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .node_group_members.is_none()
.