AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Describes an image.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class Image
The Image type exposes the following members
Name | Description | |
---|---|---|
![]() |
Image() |
Name | Type | Description | |
---|---|---|---|
![]() |
Architecture | Amazon.EC2.ArchitectureValues |
Gets and sets the property Architecture. The architecture of the image. |
![]() |
BlockDeviceMappings | System.Collections.Generic.List<Amazon.EC2.Model.BlockDeviceMapping> |
Gets and sets the property BlockDeviceMappings. Any block device mapping entries. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
BootMode | Amazon.EC2.BootModeValues |
Gets and sets the property BootMode. The boot mode of the image. For more information, see Instance launch behavior with Amazon EC2 boot modes in the Amazon EC2 User Guide. |
![]() |
CreationDate | System.String |
Gets and sets the property CreationDate. The date and time the image was created. |
![]() |
DeprecationTime | System.String |
Gets and sets the property DeprecationTime. 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. |
![]() |
DeregistrationProtection | System.String |
Gets and sets the property DeregistrationProtection. Indicates whether deregistration protection is enabled for the AMI. |
![]() |
Description | System.String |
Gets and sets the property Description. The description of the AMI that was provided during image creation. |
![]() |
EnaSupport | System.Nullable<System.Boolean> |
Gets and sets the property EnaSupport. Specifies whether enhanced networking with ENA is enabled. |
![]() |
FreeTierEligible | System.Nullable<System.Boolean> |
Gets and sets the property FreeTierEligible. Indicates whether the image is eligible for Amazon Web Services Free Tier.
|
![]() |
Hypervisor | Amazon.EC2.HypervisorType |
Gets and sets the property Hypervisor.
The hypervisor type of the image. Only |
![]() |
ImageAllowed | System.Nullable<System.Boolean> |
Gets and sets the property ImageAllowed.
If For more information, see Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs in Amazon EC2 User Guide. |
![]() |
ImageId | System.String |
Gets and sets the property ImageId. The ID of the AMI. |
![]() |
ImageLocation | System.String |
Gets and sets the property ImageLocation. The location of the AMI. |
![]() |
ImageOwnerAlias | System.String |
Gets and sets the property ImageOwnerAlias.
The owner alias ( |
![]() |
ImageType | Amazon.EC2.ImageTypeValues |
Gets and sets the property ImageType. The type of image. |
![]() |
ImdsSupport | Amazon.EC2.ImdsSupportValues |
Gets and sets the property ImdsSupport.
If |
![]() |
KernelId | System.String |
Gets and sets the property KernelId. The kernel associated with the image, if any. Only applicable for machine images. |
![]() |
LastLaunchedTime | System.String |
Gets and sets the property LastLaunchedTime. The date and time, in ISO 8601 date-time format, when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported.
|
![]() |
Name | System.String |
Gets and sets the property Name. The name of the AMI that was provided during image creation. |
![]() |
OwnerId | System.String |
Gets and sets the property OwnerId. The ID of the Amazon Web Services account that owns the image. |
![]() |
Platform | Amazon.EC2.PlatformValues |
Gets and sets the property Platform.
This value is set to |
![]() |
PlatformDetails | System.String |
Gets and sets the property PlatformDetails. 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. |
![]() |
ProductCodes | System.Collections.Generic.List<Amazon.EC2.Model.ProductCode> |
Gets and sets the property ProductCodes. Any product codes associated with the AMI. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
Public | System.Nullable<System.Boolean> |
Gets and sets the property Public.
Indicates whether the image has public launch permissions. The value is |
![]() |
RamdiskId | System.String |
Gets and sets the property RamdiskId. The RAM disk associated with the image, if any. Only applicable for machine images. |
![]() |
RootDeviceName | System.String |
Gets and sets the property RootDeviceName.
The device name of the root device volume (for example, |
![]() |
RootDeviceType | Amazon.EC2.DeviceType |
Gets and sets the property RootDeviceType. The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume. |
![]() |
SourceImageId | System.String |
Gets and sets the property SourceImageId. The ID of the source AMI from which the AMI was created. |
![]() |
SourceImageRegion | System.String |
Gets and sets the property SourceImageRegion. The Region of the source AMI. |
![]() |
SourceInstanceId | System.String |
Gets and sets the property SourceInstanceId. The ID of the instance that the AMI was created from if the AMI was created using CreateImage. This field only appears if the AMI was created using CreateImage. |
![]() |
SriovNetSupport | System.String |
Gets and sets the property SriovNetSupport. Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled. |
![]() |
State | Amazon.EC2.ImageState |
Gets and sets the property State.
The current state of the AMI. If the state is |
![]() |
StateReason | Amazon.EC2.Model.StateReason |
Gets and sets the property StateReason. The reason for the state change. |
![]() |
Tags | System.Collections.Generic.List<Amazon.EC2.Model.Tag> |
Gets and sets the property Tags. Any tags assigned to the image. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
TpmSupport | Amazon.EC2.TpmSupportValues |
Gets and sets the property TpmSupport.
If the image is configured for NitroTPM support, the value is |
![]() |
UsageOperation | System.String |
Gets and sets the property UsageOperation.
The operation of the Amazon EC2 instance and the billing code that is associated with
the AMI. |
![]() |
VirtualizationType | Amazon.EC2.VirtualizationType |
Gets and sets the property VirtualizationType. The type of virtualization of the AMI. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer