Struct aws_sdk_ec2::types::Image

source ·
#[non_exhaustive]
pub struct Image {
Show 30 fields pub architecture: Option<ArchitectureValues>, pub creation_date: Option<String>, pub image_id: Option<String>, pub image_location: Option<String>, pub image_type: Option<ImageTypeValues>, pub public: Option<bool>, pub kernel_id: Option<String>, pub owner_id: Option<String>, pub platform: Option<PlatformValues>, pub platform_details: Option<String>, pub usage_operation: Option<String>, pub product_codes: Option<Vec<ProductCode>>, pub ramdisk_id: Option<String>, pub state: Option<ImageState>, pub block_device_mappings: Option<Vec<BlockDeviceMapping>>, pub description: Option<String>, pub ena_support: Option<bool>, pub hypervisor: Option<HypervisorType>, pub image_owner_alias: Option<String>, pub name: Option<String>, pub root_device_name: Option<String>, pub root_device_type: Option<DeviceType>, pub sriov_net_support: Option<String>, pub state_reason: Option<StateReason>, pub tags: Option<Vec<Tag>>, pub virtualization_type: Option<VirtualizationType>, pub boot_mode: Option<BootModeValues>, pub tpm_support: Option<TpmSupportValues>, pub deprecation_time: Option<String>, pub imds_support: Option<ImdsSupportValues>,
}
Expand description

Describes an image.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§architecture: Option<ArchitectureValues>

The architecture of the image.

§creation_date: Option<String>

The date and time the image was created.

§image_id: Option<String>

The ID of the AMI.

§image_location: Option<String>

The location of the AMI.

§image_type: Option<ImageTypeValues>

The type of image.

§public: Option<bool>

Indicates whether the image has public launch permissions. The value is true if this image has public launch permissions or false if it has only implicit and explicit launch permissions.

§kernel_id: Option<String>

The kernel associated with the image, if any. Only applicable for machine images.

§owner_id: Option<String>

The ID of the Amazon Web Services account that owns the image.

§platform: Option<PlatformValues>

This value is set to windows for Windows AMIs; otherwise, it is blank.

§platform_details: Option<String>

The platform details associated with the billing code of the AMI. For more information, see Understand AMI billing information in the Amazon EC2 User Guide.

§usage_operation: Option<String>

The operation of the Amazon EC2 instance and the billing code that is associated with the AMI. usageOperation corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services Price List API. You can view these fields on the Instances or AMIs pages in the Amazon EC2 console, or in the responses that are returned by the DescribeImages command in the Amazon EC2 API, or the describe-images command in the CLI.

§product_codes: Option<Vec<ProductCode>>

Any product codes associated with the AMI.

§ramdisk_id: Option<String>

The RAM disk associated with the image, if any. Only applicable for machine images.

§state: Option<ImageState>

The current state of the AMI. If the state is available, the image is successfully registered and can be used to launch an instance.

§block_device_mappings: Option<Vec<BlockDeviceMapping>>

Any block device mapping entries.

§description: Option<String>

The description of the AMI that was provided during image creation.

§ena_support: Option<bool>

Specifies whether enhanced networking with ENA is enabled.

§hypervisor: Option<HypervisorType>

The hypervisor type of the image.

§image_owner_alias: Option<String>

The Amazon Web Services account alias (for example, amazon, self) or the Amazon Web Services account ID of the AMI owner.

§name: Option<String>

The name of the AMI that was provided during image creation.

§root_device_name: Option<String>

The device name of the root device volume (for example, /dev/sda1).

§root_device_type: Option<DeviceType>

The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

§sriov_net_support: Option<String>

Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

§state_reason: Option<StateReason>

The reason for the state change.

§tags: Option<Vec<Tag>>

Any tags assigned to the image.

§virtualization_type: Option<VirtualizationType>

The type of virtualization of the AMI.

§boot_mode: Option<BootModeValues>

The boot mode of the image. For more information, see Boot modes in the Amazon EC2 User Guide.

§tpm_support: Option<TpmSupportValues>

If the image is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon EC2 User Guide.

§deprecation_time: Option<String>

The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

§imds_support: Option<ImdsSupportValues>

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens automatically set to required so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

Implementations§

source§

impl Image

source

pub fn architecture(&self) -> Option<&ArchitectureValues>

The architecture of the image.

source

pub fn creation_date(&self) -> Option<&str>

The date and time the image was created.

source

pub fn image_id(&self) -> Option<&str>

The ID of the AMI.

source

pub fn image_location(&self) -> Option<&str>

The location of the AMI.

source

pub fn image_type(&self) -> Option<&ImageTypeValues>

The type of image.

source

pub fn public(&self) -> Option<bool>

Indicates whether the image has public launch permissions. The value is true if this image has public launch permissions or false if it has only implicit and explicit launch permissions.

source

pub fn kernel_id(&self) -> Option<&str>

The kernel associated with the image, if any. Only applicable for machine images.

source

pub fn owner_id(&self) -> Option<&str>

The ID of the Amazon Web Services account that owns the image.

source

pub fn platform(&self) -> Option<&PlatformValues>

This value is set to windows for Windows AMIs; otherwise, it is blank.

source

pub fn platform_details(&self) -> Option<&str>

The platform details associated with the billing code of the AMI. For more information, see Understand AMI billing information in the Amazon EC2 User Guide.

source

pub fn usage_operation(&self) -> Option<&str>

The operation of the Amazon EC2 instance and the billing code that is associated with the AMI. usageOperation corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services Price List API. You can view these fields on the Instances or AMIs pages in the Amazon EC2 console, or in the responses that are returned by the DescribeImages command in the Amazon EC2 API, or the describe-images command in the CLI.

source

pub fn product_codes(&self) -> Option<&[ProductCode]>

Any product codes associated with the AMI.

source

pub fn ramdisk_id(&self) -> Option<&str>

The RAM disk associated with the image, if any. Only applicable for machine images.

source

pub fn state(&self) -> Option<&ImageState>

The current state of the AMI. If the state is available, the image is successfully registered and can be used to launch an instance.

source

pub fn block_device_mappings(&self) -> Option<&[BlockDeviceMapping]>

Any block device mapping entries.

source

pub fn description(&self) -> Option<&str>

The description of the AMI that was provided during image creation.

source

pub fn ena_support(&self) -> Option<bool>

Specifies whether enhanced networking with ENA is enabled.

source

pub fn hypervisor(&self) -> Option<&HypervisorType>

The hypervisor type of the image.

source

pub fn image_owner_alias(&self) -> Option<&str>

The Amazon Web Services account alias (for example, amazon, self) or the Amazon Web Services account ID of the AMI owner.

source

pub fn name(&self) -> Option<&str>

The name of the AMI that was provided during image creation.

source

pub fn root_device_name(&self) -> Option<&str>

The device name of the root device volume (for example, /dev/sda1).

source

pub fn root_device_type(&self) -> Option<&DeviceType>

The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

source

pub fn sriov_net_support(&self) -> Option<&str>

Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

source

pub fn state_reason(&self) -> Option<&StateReason>

The reason for the state change.

source

pub fn tags(&self) -> Option<&[Tag]>

Any tags assigned to the image.

source

pub fn virtualization_type(&self) -> Option<&VirtualizationType>

The type of virtualization of the AMI.

source

pub fn boot_mode(&self) -> Option<&BootModeValues>

The boot mode of the image. For more information, see Boot modes in the Amazon EC2 User Guide.

source

pub fn tpm_support(&self) -> Option<&TpmSupportValues>

If the image is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon EC2 User Guide.

source

pub fn deprecation_time(&self) -> Option<&str>

The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

source

pub fn imds_support(&self) -> Option<&ImdsSupportValues>

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens automatically set to required so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

source§

impl Image

source

pub fn builder() -> ImageBuilder

Creates a new builder-style object to manufacture Image.

Trait Implementations§

source§

impl Clone for Image

source§

fn clone(&self) -> Image

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Image

source§

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

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

impl PartialEq<Image> for Image

source§

fn eq(&self, other: &Image) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Image

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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