amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.Image

Description

 
Synopsis

Documentation

data Image Source #

Describes an image.

See: newImage smart constructor.

Constructors

Image' 

Fields

Instances

Instances details
FromXML Image Source # 
Instance details

Defined in Amazonka.EC2.Types.Image

Methods

parseXML :: [Node] -> Either String Image #

Generic Image Source # 
Instance details

Defined in Amazonka.EC2.Types.Image

Associated Types

type Rep Image :: Type -> Type #

Methods

from :: Image -> Rep Image x #

to :: Rep Image x -> Image #

Read Image Source # 
Instance details

Defined in Amazonka.EC2.Types.Image

Show Image Source # 
Instance details

Defined in Amazonka.EC2.Types.Image

Methods

showsPrec :: Int -> Image -> ShowS #

show :: Image -> String #

showList :: [Image] -> ShowS #

NFData Image Source # 
Instance details

Defined in Amazonka.EC2.Types.Image

Methods

rnf :: Image -> () #

Eq Image Source # 
Instance details

Defined in Amazonka.EC2.Types.Image

Methods

(==) :: Image -> Image -> Bool #

(/=) :: Image -> Image -> Bool #

Hashable Image Source # 
Instance details

Defined in Amazonka.EC2.Types.Image

Methods

hashWithSalt :: Int -> Image -> Int #

hash :: Image -> Int #

type Rep Image Source # 
Instance details

Defined in Amazonka.EC2.Types.Image

type Rep Image = D1 ('MetaData "Image" "Amazonka.EC2.Types.Image" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "Image'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "blockDeviceMappings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BlockDeviceMapping])) :*: (S1 ('MetaSel ('Just "bootMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BootModeValues)) :*: S1 ('MetaSel ('Just "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "deprecationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "enaSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "imageOwnerAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "imdsSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImdsSupportValues)) :*: S1 ('MetaSel ('Just "kernelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "platform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PlatformValues)))) :*: ((S1 ('MetaSel ('Just "platformDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "productCodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProductCode]))) :*: (S1 ('MetaSel ('Just "ramdiskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rootDeviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "sriovNetSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "stateReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StateReason)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: ((S1 ('MetaSel ('Just "tpmSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TpmSupportValues)) :*: S1 ('MetaSel ('Just "usageOperation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "imageLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) :*: (((S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ImageState) :*: S1 ('MetaSel ('Just "ownerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "public") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "architecture") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ArchitectureValues))) :*: ((S1 ('MetaSel ('Just "imageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ImageTypeValues) :*: S1 ('MetaSel ('Just "rootDeviceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DeviceType)) :*: (S1 ('MetaSel ('Just "virtualizationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VirtualizationType) :*: S1 ('MetaSel ('Just "hypervisor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HypervisorType)))))))

newImage Source #

Create a value of Image with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:blockDeviceMappings:Image', image_blockDeviceMappings - Any block device mapping entries.

$sel:bootMode:Image', image_bootMode - The boot mode of the image. For more information, see Boot modes in the Amazon EC2 User Guide.

$sel:creationDate:Image', image_creationDate - The date and time the image was created.

$sel:deprecationTime:Image', image_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.

$sel:description:Image', image_description - The description of the AMI that was provided during image creation.

$sel:enaSupport:Image', image_enaSupport - Specifies whether enhanced networking with ENA is enabled.

$sel:imageOwnerAlias:Image', image_imageOwnerAlias - The Amazon Web Services account alias (for example, amazon, self) or the Amazon Web Services account ID of the AMI owner.

$sel:imdsSupport:Image', image_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.

$sel:kernelId:Image', image_kernelId - The kernel associated with the image, if any. Only applicable for machine images.

$sel:name:Image', image_name - The name of the AMI that was provided during image creation.

$sel:platform:Image', image_platform - This value is set to windows for Windows AMIs; otherwise, it is blank.

$sel:platformDetails:Image', image_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.

$sel:productCodes:Image', image_productCodes - Any product codes associated with the AMI.

$sel:ramdiskId:Image', image_ramdiskId - The RAM disk associated with the image, if any. Only applicable for machine images.

$sel:rootDeviceName:Image', image_rootDeviceName - The device name of the root device volume (for example, /dev/sda1).

$sel:sriovNetSupport:Image', image_sriovNetSupport - Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

$sel:stateReason:Image', image_stateReason - The reason for the state change.

$sel:tags:Image', image_tags - Any tags assigned to the image.

$sel:tpmSupport:Image', image_tpmSupport - If the image is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon EC2 User Guide.

$sel:usageOperation:Image', image_usageOperation - 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.

$sel:imageId:Image', image_imageId - The ID of the AMI.

$sel:imageLocation:Image', image_imageLocation - The location of the AMI.

$sel:state:Image', image_state - The current state of the AMI. If the state is available, the image is successfully registered and can be used to launch an instance.

$sel:ownerId:Image', image_ownerId - The ID of the Amazon Web Services account that owns the image.

$sel:public:Image', image_public - 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.

$sel:architecture:Image', image_architecture - The architecture of the image.

$sel:imageType:Image', image_imageType - The type of image.

$sel:rootDeviceType:Image', image_rootDeviceType - The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

$sel:virtualizationType:Image', image_virtualizationType - The type of virtualization of the AMI.

$sel:hypervisor:Image', image_hypervisor - The hypervisor type of the image.

image_blockDeviceMappings :: Lens' Image (Maybe [BlockDeviceMapping]) Source #

Any block device mapping entries.

image_bootMode :: Lens' Image (Maybe BootModeValues) Source #

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

image_creationDate :: Lens' Image (Maybe Text) Source #

The date and time the image was created.

image_deprecationTime :: Lens' Image (Maybe Text) Source #

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.

image_description :: Lens' Image (Maybe Text) Source #

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

image_enaSupport :: Lens' Image (Maybe Bool) Source #

Specifies whether enhanced networking with ENA is enabled.

image_imageOwnerAlias :: Lens' Image (Maybe Text) Source #

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

image_imdsSupport :: Lens' Image (Maybe ImdsSupportValues) Source #

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.

image_kernelId :: Lens' Image (Maybe Text) Source #

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

image_name :: Lens' Image (Maybe Text) Source #

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

image_platform :: Lens' Image (Maybe PlatformValues) Source #

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

image_platformDetails :: Lens' Image (Maybe Text) Source #

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.

image_productCodes :: Lens' Image (Maybe [ProductCode]) Source #

Any product codes associated with the AMI.

image_ramdiskId :: Lens' Image (Maybe Text) Source #

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

image_rootDeviceName :: Lens' Image (Maybe Text) Source #

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

image_sriovNetSupport :: Lens' Image (Maybe Text) Source #

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

image_stateReason :: Lens' Image (Maybe StateReason) Source #

The reason for the state change.

image_tags :: Lens' Image (Maybe [Tag]) Source #

Any tags assigned to the image.

image_tpmSupport :: Lens' Image (Maybe TpmSupportValues) Source #

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

image_usageOperation :: Lens' Image (Maybe Text) Source #

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.

image_imageId :: Lens' Image Text Source #

The ID of the AMI.

image_imageLocation :: Lens' Image Text Source #

The location of the AMI.

image_state :: Lens' Image ImageState Source #

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

image_ownerId :: Lens' Image Text Source #

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

image_public :: Lens' Image Bool Source #

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.

image_architecture :: Lens' Image ArchitectureValues Source #

The architecture of the image.

image_rootDeviceType :: Lens' Image DeviceType Source #

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

image_virtualizationType :: Lens' Image VirtualizationType Source #

The type of virtualization of the AMI.

image_hypervisor :: Lens' Image HypervisorType Source #

The hypervisor type of the image.