Skip to main content

Instance

Struct Instance 

Source
pub struct Instance {
Show 32 fields pub instance_id: String, pub image_id: String, pub instance_type: String, pub state: InstanceState, pub private_ip_address: Option<String>, pub public_ip_address: Option<String>, pub subnet_id: Option<String>, pub vpc_id: Option<String>, pub key_name: Option<String>, pub security_groups: Vec<String>, pub launch_time: String, pub tags: Tags, pub iam_instance_profile_arn: Option<String>, pub monitoring_state: String, pub placement_az: String, pub placement_group_name: Option<String>, pub placement_tenancy: Option<String>, pub placement_host_id: Option<String>, pub placement_affinity: Option<String>, pub placement_partition_number: Option<i32>, pub owner_id: String, pub classic_link_vpc: Option<(String, Vec<String>)>, pub private_dns_hostname_type: Option<String>, pub enable_resource_name_dns_a_record: Option<bool>, pub enable_resource_name_dns_aaaa_record: Option<bool>, pub credit_specification: Option<String>, pub cpu_options: Option<InstanceCpuOptions>, pub maintenance_options: Option<InstanceMaintenanceOptions>, pub network_bandwidth_weighting: Option<String>, pub lifecycle: Option<String>, pub product_codes: Vec<(String, String)>, pub capacity_reservation_specification: Option<CapacityReservationSpecificationResponse>,
}

Fields§

§instance_id: String§image_id: String§instance_type: String§state: InstanceState§private_ip_address: Option<String>§public_ip_address: Option<String>§subnet_id: Option<String>§vpc_id: Option<String>§key_name: Option<String>§security_groups: Vec<String>§launch_time: String§tags: Tags§iam_instance_profile_arn: Option<String>§monitoring_state: String§placement_az: String§placement_group_name: Option<String>§placement_tenancy: Option<String>§placement_host_id: Option<String>§placement_affinity: Option<String>§placement_partition_number: Option<i32>§owner_id: String§classic_link_vpc: Option<(String, Vec<String>)>

ClassicLink VPC association: (vpc_id, [security_group_ids])

§private_dns_hostname_type: Option<String>

Private DNS hostname type (e.g. “ip-name”, “resource-name”).

§enable_resource_name_dns_a_record: Option<bool>

Whether to enable A record IP-based hostnames.

§enable_resource_name_dns_aaaa_record: Option<bool>

Whether to enable AAAA record IP-based hostnames.

§credit_specification: Option<String>

Per-instance burstable credit specification: “standard” | “unlimited”.

§cpu_options: Option<InstanceCpuOptions>

CPU options: (core_count, threads_per_core, amd_sev_snp).

§maintenance_options: Option<InstanceMaintenanceOptions>

Maintenance options.

§network_bandwidth_weighting: Option<String>

Network performance bandwidth weighting: “default” | “vpc-1” | “ebs-1”.

§lifecycle: Option<String>

Lifecycle code: e.g. “spot”, “scheduled”.

§product_codes: Vec<(String, String)>

Product codes attached to this instance (each (code, code_type)).

§capacity_reservation_specification: Option<CapacityReservationSpecificationResponse>

Group 10: per-instance capacity-reservation specification.

Trait Implementations§

Source§

impl Clone for Instance

Source§

fn clone(&self) -> Instance

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Instance

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&Instance> for InstanceView

Source§

fn from(i: &Instance) -> Self

Converts to this type from the input type.
Source§

impl From<InstanceView> for Instance

Source§

fn from(i: InstanceView) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more