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). This value is read-only.
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). This value is read-only.
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()
.
Trait Implementations§
source§impl PartialEq for NodeGroup
impl PartialEq for NodeGroup
impl StructuralPartialEq for NodeGroup
Auto Trait Implementations§
impl Freeze for NodeGroup
impl RefUnwindSafe for NodeGroup
impl Send for NodeGroup
impl Sync for NodeGroup
impl Unpin for NodeGroup
impl UnwindSafe for NodeGroup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more