pub struct InstanceMetadata {
pub region: &'static str,
pub availability_zone: String,
pub instance_id: String,
pub account_id: String,
pub ami_id: String,
pub instance_type: String,
pub local_hostname: String,
pub hostname: String,
pub public_hostname: Option<String>,
}Expand description
InstanceMetadata holds the fetched instance metadata. Fields
on this struct may be incomplete if AWS has updated the fields
or if they haven’t been explicitly provided.
Fields§
§region: &'static strAWS Region - always available
availability_zone: StringAWS Availability Zone - always available
instance_id: StringAWS Instance Id - always available
account_id: StringAWS Account Id - always available, marked as Internal Only per: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html
ami_id: StringAWS AMS Id - always available
instance_type: StringAWS Instance Type - always available
local_hostname: StringAWS Instance Local Hostname - always available
hostname: StringAWS Instance Hostname - always available
public_hostname: Option<String>AWS Instance Public Hostname - optionally available
Trait Implementations§
Source§impl Clone for InstanceMetadata
impl Clone for InstanceMetadata
Source§fn clone(&self) -> InstanceMetadata
fn clone(&self) -> InstanceMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstanceMetadata
impl Debug for InstanceMetadata
Auto Trait Implementations§
impl Freeze for InstanceMetadata
impl RefUnwindSafe for InstanceMetadata
impl Send for InstanceMetadata
impl Sync for InstanceMetadata
impl Unpin for InstanceMetadata
impl UnwindSafe for InstanceMetadata
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
Mutably borrows from an owned value. Read more