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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateImage

Contents

Description

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.

See: AWS API Reference for CreateImage.

Synopsis

Creating a Request

createImage Source

Creates a value of CreateImage with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

ciiNoReboot :: 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.

ciiDescription :: Lens' CreateImage (Maybe Text) Source

A description for the new image.

ciiBlockDeviceMappings :: Lens' CreateImage [BlockDeviceMapping] Source

Information about one or more block device mappings.

ciiDryRun :: Lens' CreateImage (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

ciiInstanceId :: Lens' CreateImage Text Source

The ID of the instance.

ciiName :: 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(_)

Destructuring the Response

createImageResponse Source

Creates a value of CreateImageResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses