Struct aws_sdk_elasticache::types::NodeGroupMember
source · #[non_exhaustive]pub struct NodeGroupMember {
pub cache_cluster_id: Option<String>,
pub cache_node_id: Option<String>,
pub read_endpoint: Option<Endpoint>,
pub preferred_availability_zone: Option<String>,
pub preferred_outpost_arn: Option<String>,
pub current_role: Option<String>,
}
Expand description
Represents a single node within a node group (shard).
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.cache_cluster_id: Option<String>
The ID of the cluster to which the node belongs.
cache_node_id: Option<String>
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
read_endpoint: Option<Endpoint>
The information required for client programs to connect to a node for read operations. The read endpoint is only applicable on Redis (cluster mode disabled) clusters.
preferred_availability_zone: Option<String>
The name of the Availability Zone in which the node is located.
preferred_outpost_arn: Option<String>
The outpost ARN of the node group member.
current_role: Option<String>
The role that is currently assigned to the node - primary
or replica
. This member is only applicable for Redis (cluster mode disabled) replication groups.
Implementations§
source§impl NodeGroupMember
impl NodeGroupMember
sourcepub fn cache_cluster_id(&self) -> Option<&str>
pub fn cache_cluster_id(&self) -> Option<&str>
The ID of the cluster to which the node belongs.
sourcepub fn cache_node_id(&self) -> Option<&str>
pub fn cache_node_id(&self) -> Option<&str>
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
sourcepub fn read_endpoint(&self) -> Option<&Endpoint>
pub fn read_endpoint(&self) -> Option<&Endpoint>
The information required for client programs to connect to a node for read operations. The read endpoint is only applicable on Redis (cluster mode disabled) clusters.
sourcepub fn preferred_availability_zone(&self) -> Option<&str>
pub fn preferred_availability_zone(&self) -> Option<&str>
The name of the Availability Zone in which the node is located.
sourcepub fn preferred_outpost_arn(&self) -> Option<&str>
pub fn preferred_outpost_arn(&self) -> Option<&str>
The outpost ARN of the node group member.
sourcepub fn current_role(&self) -> Option<&str>
pub fn current_role(&self) -> Option<&str>
The role that is currently assigned to the node - primary
or replica
. This member is only applicable for Redis (cluster mode disabled) replication groups.
source§impl NodeGroupMember
impl NodeGroupMember
sourcepub fn builder() -> NodeGroupMemberBuilder
pub fn builder() -> NodeGroupMemberBuilder
Creates a new builder-style object to manufacture NodeGroupMember
.
Trait Implementations§
source§impl Clone for NodeGroupMember
impl Clone for NodeGroupMember
source§fn clone(&self) -> NodeGroupMember
fn clone(&self) -> NodeGroupMember
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeGroupMember
impl Debug for NodeGroupMember
source§impl PartialEq for NodeGroupMember
impl PartialEq for NodeGroupMember
source§fn eq(&self, other: &NodeGroupMember) -> bool
fn eq(&self, other: &NodeGroupMember) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodeGroupMember
Auto Trait Implementations§
impl Freeze for NodeGroupMember
impl RefUnwindSafe for NodeGroupMember
impl Send for NodeGroupMember
impl Sync for NodeGroupMember
impl Unpin for NodeGroupMember
impl UnwindSafe for NodeGroupMember
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