AWS SDK Version 4 for .NET
API Reference

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 attribute.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.ImageAttribute

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class ImageAttribute

The ImageAttribute type exposes the following members

Constructors

NameDescription
Public Method ImageAttribute()

Properties

NameTypeDescription
Public Property BlockDeviceMappings System.Collections.Generic.List<Amazon.EC2.Model.BlockDeviceMapping>

Gets and sets the property BlockDeviceMappings.

The 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.

Public Property BootMode System.String

Gets and sets the property BootMode.

The boot mode.

Public Property DeregistrationProtection System.String

Gets and sets the property DeregistrationProtection.

Indicates whether deregistration protection is enabled for the AMI.

Public Property Description System.String

Gets and sets the property Description.

A description for the AMI.

Public Property ImageId System.String

Gets and sets the property ImageId.

The ID of the AMI.

Public Property ImdsSupport System.String

Gets and sets the property ImdsSupport.

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.

Public Property KernelId System.String

Gets and sets the property KernelId.

The kernel ID.

Public Property 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.

lastLaunchedTime data is available starting April 2017.

Public Property LaunchPermissions System.Collections.Generic.List<Amazon.EC2.Model.LaunchPermission>

Gets and sets the property LaunchPermissions.

The launch permissions.

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 Property ProductCodes System.Collections.Generic.List<Amazon.EC2.Model.ProductCode>

Gets and sets the property ProductCodes.

The product codes.

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 Property RamdiskId System.String

Gets and sets the property RamdiskId.

The RAM disk ID.

Public Property SriovNetSupport System.String

Gets and sets the property SriovNetSupport.

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

Public Property TpmSupport System.String

Gets and sets the property TpmSupport.

If the image is configured for NitroTPM support, the value is v2.0.

Public Property UefiData System.String

Gets and sets the property UefiData.

Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data, use the GetInstanceUefiData command. You can inspect and modify the UEFI data by using the python-uefivars tool on GitHub. For more information, see UEFI Secure Boot for Amazon EC2 instances in the Amazon EC2 User Guide.

Version Information

.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