Struct aws_sdk_ec2::model::Image
source · #[non_exhaustive]pub struct Image { /* private fields */ }
Expand description
Describes an image.
Implementations§
source§impl Image
impl Image
sourcepub fn architecture(&self) -> Option<&ArchitectureValues>
pub fn architecture(&self) -> Option<&ArchitectureValues>
The architecture of the image.
sourcepub fn creation_date(&self) -> Option<&str>
pub fn creation_date(&self) -> Option<&str>
The date and time the image was created.
sourcepub fn image_location(&self) -> Option<&str>
pub fn image_location(&self) -> Option<&str>
The location of the AMI.
sourcepub fn image_type(&self) -> Option<&ImageTypeValues>
pub fn image_type(&self) -> Option<&ImageTypeValues>
The type of image.
sourcepub fn public(&self) -> Option<bool>
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.
sourcepub fn kernel_id(&self) -> Option<&str>
pub fn kernel_id(&self) -> Option<&str>
The kernel associated with the image, if any. Only applicable for machine images.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the image.
sourcepub fn platform(&self) -> Option<&PlatformValues>
pub fn platform(&self) -> Option<&PlatformValues>
This value is set to windows
for Windows AMIs; otherwise, it is blank.
sourcepub fn platform_details(&self) -> Option<&str>
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.
sourcepub fn usage_operation(&self) -> Option<&str>
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.
sourcepub fn product_codes(&self) -> Option<&[ProductCode]>
pub fn product_codes(&self) -> Option<&[ProductCode]>
Any product codes associated with the AMI.
sourcepub fn ramdisk_id(&self) -> Option<&str>
pub fn ramdisk_id(&self) -> Option<&str>
The RAM disk associated with the image, if any. Only applicable for machine images.
sourcepub fn state(&self) -> Option<&ImageState>
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.
sourcepub fn block_device_mappings(&self) -> Option<&[BlockDeviceMapping]>
pub fn block_device_mappings(&self) -> Option<&[BlockDeviceMapping]>
Any block device mapping entries.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the AMI that was provided during image creation.
sourcepub fn ena_support(&self) -> Option<bool>
pub fn ena_support(&self) -> Option<bool>
Specifies whether enhanced networking with ENA is enabled.
sourcepub fn hypervisor(&self) -> Option<&HypervisorType>
pub fn hypervisor(&self) -> Option<&HypervisorType>
The hypervisor type of the image.
sourcepub fn image_owner_alias(&self) -> Option<&str>
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.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the AMI that was provided during image creation.
sourcepub fn root_device_name(&self) -> Option<&str>
pub fn root_device_name(&self) -> Option<&str>
The device name of the root device volume (for example, /dev/sda1
).
sourcepub fn root_device_type(&self) -> Option<&DeviceType>
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.
sourcepub fn sriov_net_support(&self) -> Option<&str>
pub fn sriov_net_support(&self) -> Option<&str>
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sourcepub fn state_reason(&self) -> Option<&StateReason>
pub fn state_reason(&self) -> Option<&StateReason>
The reason for the state change.
Any tags assigned to the image.
sourcepub fn virtualization_type(&self) -> Option<&VirtualizationType>
pub fn virtualization_type(&self) -> Option<&VirtualizationType>
The type of virtualization of the AMI.
sourcepub fn boot_mode(&self) -> Option<&BootModeValues>
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.
sourcepub fn tpm_support(&self) -> Option<&TpmSupportValues>
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.
sourcepub fn deprecation_time(&self) -> Option<&str>
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.
sourcepub fn imds_support(&self) -> Option<&ImdsSupportValues>
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.