amazonka-ec2-0.0.6: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone




Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.

If you customized your instance with instance store volumes or EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.

For more information, see Creating Amazon EBS-Backed Linux AMIs in the Amazon Elastic Compute Cloud User Guide.



Request constructor

Request lenses

ci1BlockDeviceMappings :: Lens' CreateImage [BlockDeviceMapping] Source

Information about one or more block device mappings.

ci1Description :: Lens' CreateImage (Maybe Text) Source

A description for the new image.

ci1InstanceId :: Lens' CreateImage Text Source

The ID of the instance.

ci1Name :: Lens' CreateImage Text Source

A name for the new image.

Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)

ci1NoReboot :: Lens' CreateImage (Maybe Bool) Source

By default, this parameter is set to false, which means Amazon EC2 attempts to shut down the instance cleanly before image creation and then reboots the instance. When the parameter is set to true, Amazon EC2 doesn't shut down the instance before creating the image. When this option is used, file system integrity on the created image can't be guaranteed.


Response constructor

createImageResponse :: CreateImageResponse Source

CreateImageResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses