[][src]Struct ec2_instance_metadata::InstanceMetadata

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>,
}

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 str

AWS Region - always available

availability_zone: String

AWS Availability Zone - always available

instance_id: String

AWS Instance Id - always available

account_id: String

AWS Account Id - always available, marked as Internal Only per: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html

ami_id: String

AWS AMS Id - always available

instance_type: String

AWS Instance Type - always available

local_hostname: String

AWS Instance Local Hostname - always available

hostname: String

AWS Instance Hostname - always available

public_hostname: Option<String>

AWS Instance Public Hostname - optionally available

Trait Implementations

impl Clone for InstanceMetadata[src]

impl Debug for InstanceMetadata[src]

impl Display for InstanceMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.