Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 for Linux.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateImage.html
- data CreateImage
- createImage :: Text -> Text -> CreateImage
- ci1BlockDeviceMappings :: Lens' CreateImage [BlockDeviceMapping]
- ci1Description :: Lens' CreateImage (Maybe Text)
- ci1DryRun :: Lens' CreateImage (Maybe Bool)
- ci1InstanceId :: Lens' CreateImage Text
- ci1Name :: Lens' CreateImage Text
- ci1NoReboot :: Lens' CreateImage (Maybe Bool)
- data CreateImageResponse
- createImageResponse :: CreateImageResponse
- cirImageId :: Lens' CreateImageResponse (Maybe Text)
Request
data CreateImage Source
Request constructor
CreateImage
constructor.
The fields accessible through corresponding lenses are:
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
Response constructor
createImageResponse :: CreateImageResponse Source
CreateImageResponse
constructor.
The fields accessible through corresponding lenses are:
cirImageId
::
Maybe
Text
Response lenses
cirImageId :: Lens' CreateImageResponse (Maybe Text) Source
The ID of the new AMI.