Struct aws_sdk_elasticache::model::NodeGroup
source · #[non_exhaustive]pub struct NodeGroup { /* private fields */ }
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.
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) -> Option<&[NodeGroupMember]>
pub fn node_group_members(&self) -> Option<&[NodeGroupMember]>
A list containing information about individual nodes within the node group (shard).
source§impl NodeGroup
impl NodeGroup
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NodeGroup
.
Examples found in repository?
10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780
pub fn deser_structure_crate_model_node_group(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NodeGroup, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NodeGroup::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("NodeGroupId") /* NodeGroupId com.amazonaws.elasticache#NodeGroup$NodeGroupId */ => {
let var_448 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_node_group_id(var_448);
}
,
s if s.matches("Status") /* Status com.amazonaws.elasticache#NodeGroup$Status */ => {
let var_449 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_status(var_449);
}
,
s if s.matches("PrimaryEndpoint") /* PrimaryEndpoint com.amazonaws.elasticache#NodeGroup$PrimaryEndpoint */ => {
let var_450 =
Some(
crate::xml_deser::deser_structure_crate_model_endpoint(&mut tag)
?
)
;
builder = builder.set_primary_endpoint(var_450);
}
,
s if s.matches("ReaderEndpoint") /* ReaderEndpoint com.amazonaws.elasticache#NodeGroup$ReaderEndpoint */ => {
let var_451 =
Some(
crate::xml_deser::deser_structure_crate_model_endpoint(&mut tag)
?
)
;
builder = builder.set_reader_endpoint(var_451);
}
,
s if s.matches("Slots") /* Slots com.amazonaws.elasticache#NodeGroup$Slots */ => {
let var_452 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_slots(var_452);
}
,
s if s.matches("NodeGroupMembers") /* NodeGroupMembers com.amazonaws.elasticache#NodeGroup$NodeGroupMembers */ => {
let var_453 =
Some(
crate::xml_deser::deser_list_com_amazonaws_elasticache_node_group_member_list(&mut tag)
?
)
;
builder = builder.set_node_group_members(var_453);
}
,
_ => {}
}
}
Ok(builder.build())
}