pub struct Image {Show 20 fields
pub account_alias: Option<String>,
pub account_id: Option<String>,
pub architecture: Option<String>,
pub block_device_mappings: Option<Vec<BlockDeviceMappingImage>>,
pub boot_modes: Option<Vec<BootMode>>,
pub creation_date: Option<String>,
pub description: Option<String>,
pub file_location: Option<String>,
pub image_id: Option<String>,
pub image_name: Option<String>,
pub image_type: Option<String>,
pub permissions_to_launch: Option<Box<PermissionsOnResource>>,
pub product_codes: Option<Vec<String>>,
pub root_device_name: Option<String>,
pub root_device_type: Option<String>,
pub secure_boot: Option<bool>,
pub state: Option<String>,
pub state_comment: Option<Box<StateComment>>,
pub tags: Option<Vec<ResourceTag>>,
pub tpm_mandatory: Option<bool>,
}Expand description
Image : Information about the OMI.
Fields§
§account_alias: Option<String>The account alias of the owner of the OMI.
account_id: Option<String>The account ID of the owner of the OMI.
architecture: Option<String>The architecture of the OMI.
block_device_mappings: Option<Vec<BlockDeviceMappingImage>>One or more block device mappings.
boot_modes: Option<Vec<BootMode>>The boot modes compatible with the OMI.
creation_date: Option<String>The date and time (UTC) at which the OMI was created.
description: Option<String>The description of the OMI.
file_location: Option<String>The location from which the OMI files were created.
image_id: Option<String>The ID of the OMI.
image_name: Option<String>The name of the OMI.
image_type: Option<String>The type of the OMI.
permissions_to_launch: Option<Box<PermissionsOnResource>>§product_codes: Option<Vec<String>>The product codes associated with the OMI.
root_device_name: Option<String>The name of the root device.
root_device_type: Option<String>The type of root device used by the OMI (always bsu).
secure_boot: Option<bool>Whether secure boot is activated or not.
state: Option<String>The state of the OMI (pending \| available \| failed).
state_comment: Option<Box<StateComment>>One or more tags associated with the OMI.
tpm_mandatory: Option<bool>If true, a virtual Trusted Platform Module (vTPM) is mandatory for VMs created from this OMI. If false, a vTPM is not mandatory.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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>,
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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,
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