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§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 From<&Instance> for InstanceView
impl From<&Instance> for InstanceView
Source§impl From<InstanceView> for Instance
impl From<InstanceView> for Instance
Source§fn from(i: InstanceView) -> Self
fn from(i: InstanceView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 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>
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 moreCreates a shared type from an unshared type.