pub struct Instance {Show 30 fields
pub instance_id: String,
pub image_id: String,
pub instance_type: String,
pub state_code: i64,
pub state_name: String,
pub private_ip: String,
pub public_ip: Option<String>,
pub subnet_id: Option<String>,
pub vpc_id: Option<String>,
pub key_name: Option<String>,
pub security_group_ids: Vec<String>,
pub reservation_id: String,
pub ami_launch_index: i64,
pub monitoring: bool,
pub az: String,
pub launch_time: String,
pub container_id: Option<String>,
pub disable_api_termination: bool,
pub disable_api_stop: bool,
pub source_dest_check: bool,
pub ebs_optimized: bool,
pub instance_initiated_shutdown_behavior: String,
pub user_data: Option<String>,
pub metadata_options: MetadataOptions,
pub cpu_options: Option<CpuOptions>,
pub bandwidth_weighting: Option<String>,
pub maintenance_options: MaintenanceOptions,
pub placement_tenancy: Option<String>,
pub placement_affinity: Option<String>,
pub placement_group_name: Option<String>,
}Expand description
An EC2 instance (metadata-faithful; a Docker-backed runtime layers on top).
Fields§
§instance_id: String§image_id: String§instance_type: String§state_code: i64EC2 state code: 0 pending, 16 running, 32 shutting-down, 48 terminated, 64 stopping, 80 stopped.
state_name: String§private_ip: String§public_ip: Option<String>§subnet_id: Option<String>§vpc_id: Option<String>§key_name: Option<String>§security_group_ids: Vec<String>§reservation_id: String§ami_launch_index: i64§monitoring: bool§az: String§launch_time: String§container_id: Option<String>Id of the backing container/Pod, when this instance is backed by a
real container runtime. None in metadata-only mode.
disable_api_termination: booldisableApiTermination — when true, TerminateInstances is rejected.
disable_api_stop: booldisableApiStop — when true, StopInstances is rejected.
source_dest_check: boolsourceDestCheck — defaults to true on AWS.
ebs_optimized: boolebsOptimized.
instance_initiated_shutdown_behavior: StringinstanceInitiatedShutdownBehavior — stop (default) | terminate.
user_data: Option<String>userData — base64-encoded, as supplied at launch / via Modify.
metadata_options: MetadataOptionsmetadataOptions (ModifyInstanceMetadataOptions).
cpu_options: Option<CpuOptions>cpuOptions (ModifyInstanceCpuOptions).
bandwidth_weighting: Option<String>bandwidthWeighting (ModifyInstanceNetworkPerformanceOptions).
maintenance_options: MaintenanceOptionsmaintenanceOptions (ModifyInstanceMaintenanceOptions).
placement_tenancy: Option<String>placement tenancy/affinity overrides (ModifyInstancePlacement).
placement_affinity: Option<String>§placement_group_name: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Instance
impl<'de> Deserialize<'de> for Instance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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