amazonka-ec2-1.2.0.2: 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.BundleInstance

Contents

Description

Bundles an Amazon instance store-backed Windows instance.

During bundling, only the root device volume (C:\) is bundled. Data on other instance store volumes is not preserved.

This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

For more information, see Creating an Instance Store-Backed Windows AMI.

See: AWS API Reference for BundleInstance.

Synopsis

Creating a Request

bundleInstance Source

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

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

Request Lenses

biDryRun :: Lens' BundleInstance (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.

biInstanceId :: Lens' BundleInstance Text Source

The ID of the instance to bundle.

Type: String

Default: None

Required: Yes

biStorage :: Lens' BundleInstance Storage Source

The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.

Destructuring the Response

bundleInstanceResponse Source

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

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

Response Lenses

birsBundleTask :: Lens' BundleInstanceResponse (Maybe BundleTask) Source

Information about the bundle task.

birsStatus :: Lens' BundleInstanceResponse Int Source

The response status code.