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 droplet 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 droplet 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 ==
.