Struct aws_sdk_ec2::types::InstanceTopology
source · #[non_exhaustive]pub struct InstanceTopology {
pub instance_id: Option<String>,
pub instance_type: Option<String>,
pub group_name: Option<String>,
pub network_nodes: Option<Vec<String>>,
pub availability_zone: Option<String>,
pub zone_id: Option<String>,
}
Expand description
Information about the instance topology.
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.instance_id: Option<String>
The instance ID.
instance_type: Option<String>
The instance type.
group_name: Option<String>
The name of the placement group that the instance is in.
network_nodes: Option<Vec<String>>
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same server will return a different hashed list of strings.
availability_zone: Option<String>
The name of the Availability Zone or Local Zone that the instance is in.
zone_id: Option<String>
The ID of the Availability Zone or Local Zone that the instance is in.
Implementations§
source§impl InstanceTopology
impl InstanceTopology
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The instance ID.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type.
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the placement group that the instance is in.
sourcepub fn network_nodes(&self) -> &[String]
pub fn network_nodes(&self) -> &[String]
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same server will return a different hashed list of strings.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .network_nodes.is_none()
.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The name of the Availability Zone or Local Zone that the instance is in.
source§impl InstanceTopology
impl InstanceTopology
sourcepub fn builder() -> InstanceTopologyBuilder
pub fn builder() -> InstanceTopologyBuilder
Creates a new builder-style object to manufacture InstanceTopology
.
Trait Implementations§
source§impl Clone for InstanceTopology
impl Clone for InstanceTopology
source§fn clone(&self) -> InstanceTopology
fn clone(&self) -> InstanceTopology
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceTopology
impl Debug for InstanceTopology
source§impl PartialEq for InstanceTopology
impl PartialEq for InstanceTopology
source§fn eq(&self, other: &InstanceTopology) -> bool
fn eq(&self, other: &InstanceTopology) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceTopology
Auto Trait Implementations§
impl Freeze for InstanceTopology
impl RefUnwindSafe for InstanceTopology
impl Send for InstanceTopology
impl Sync for InstanceTopology
impl Unpin for InstanceTopology
impl UnwindSafe for InstanceTopology
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> 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