pub struct CreateImageRequest {Show 14 fields
pub architecture: Option<String>,
pub block_device_mappings: Option<Vec<BlockDeviceMappingImage>>,
pub boot_modes: Option<Vec<BootMode>>,
pub description: Option<String>,
pub dry_run: Option<bool>,
pub file_location: Option<String>,
pub image_name: Option<String>,
pub no_reboot: Option<bool>,
pub product_codes: Option<Vec<String>>,
pub root_device_name: Option<String>,
pub source_image_id: Option<String>,
pub source_region_name: Option<String>,
pub tpm_mandatory: Option<bool>,
pub vm_id: Option<String>,
}Fields§
§architecture: Option<String>When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
block_device_mappings: Option<Vec<BlockDeviceMappingImage>>(required) When registering from a snapshot: One or more block device mappings.
boot_modes: Option<Vec<BootMode>>The boot modes compatible with the OMI.
description: Option<String>A description for the new OMI.
dry_run: Option<bool>If true, checks whether you have the required permissions to perform the action.
file_location: Option<String>(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
image_name: Option<String>A unique name for the new OMI.
Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
no_reboot: Option<bool>When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
product_codes: Option<Vec<String>>The product codes associated with the OMI.
root_device_name: Option<String>(required) When registering from a snapshot: The name of the root device for the new OMI.
source_image_id: Option<String>(required) When copying an OMI: The ID of the OMI you want to copy.
source_region_name: Option<String>(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
tpm_mandatory: Option<bool>By default or if set to false, a virtual Trusted Platform Module (vTPM) is not mandatory on VMs created from this OMI. If true, VMs created from this OMI must have a vTPM enabled.
vm_id: Option<String>(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
Implementations§
Source§impl CreateImageRequest
impl CreateImageRequest
pub fn new() -> CreateImageRequest
Trait Implementations§
Source§impl Clone for CreateImageRequest
impl Clone for CreateImageRequest
Source§fn clone(&self) -> CreateImageRequest
fn clone(&self) -> CreateImageRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateImageRequest
impl Debug for CreateImageRequest
Source§impl Default for CreateImageRequest
impl Default for CreateImageRequest
Source§fn default() -> CreateImageRequest
fn default() -> CreateImageRequest
Source§impl<'de> Deserialize<'de> for CreateImageRequest
impl<'de> Deserialize<'de> for CreateImageRequest
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>,
Source§impl PartialEq for CreateImageRequest
impl PartialEq for CreateImageRequest
Source§impl Serialize for CreateImageRequest
impl Serialize for CreateImageRequest
impl StructuralPartialEq for CreateImageRequest
Auto Trait Implementations§
impl Freeze for CreateImageRequest
impl RefUnwindSafe for CreateImageRequest
impl Send for CreateImageRequest
impl Sync for CreateImageRequest
impl Unpin for CreateImageRequest
impl UnwindSafe for CreateImageRequest
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