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.BundleInstance

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.

Synopsis

Creating a Request

data BundleInstance Source #

Contains the parameters for BundleInstance.

See: newBundleInstance smart constructor.

Constructors

BundleInstance' 

Fields

  • dryRun :: Maybe Bool

    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.

  • instanceId :: Text

    The ID of the instance to bundle.

    Type: String

    Default: None

    Required: Yes

  • storage :: Storage

    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.

Instances

Instances details
ToHeaders BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

ToPath BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

ToQuery BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

AWSRequest BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

Associated Types

type AWSResponse BundleInstance #

Generic BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

Associated Types

type Rep BundleInstance :: Type -> Type #

Read BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

Show BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

NFData BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

Methods

rnf :: BundleInstance -> () #

Eq BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

Hashable BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

type AWSResponse BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

type Rep BundleInstance Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

type Rep BundleInstance = D1 ('MetaData "BundleInstance" "Amazonka.EC2.BundleInstance" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "BundleInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "storage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Storage))))

newBundleInstance Source #

Create a value of BundleInstance 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:dryRun:BundleInstance', bundleInstance_dryRun - 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.

BundleInstance, bundleInstance_instanceId - The ID of the instance to bundle.

Type: String

Default: None

Required: Yes

BundleInstance, bundleInstance_storage - 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.

Request Lenses

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

bundleInstance_instanceId :: Lens' BundleInstance Text Source #

The ID of the instance to bundle.

Type: String

Default: None

Required: Yes

bundleInstance_storage :: 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

data BundleInstanceResponse Source #

Contains the output of BundleInstance.

See: newBundleInstanceResponse smart constructor.

Constructors

BundleInstanceResponse' 

Fields

Instances

Instances details
Generic BundleInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

Associated Types

type Rep BundleInstanceResponse :: Type -> Type #

Read BundleInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

Show BundleInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

NFData BundleInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

Methods

rnf :: BundleInstanceResponse -> () #

Eq BundleInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

type Rep BundleInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.BundleInstance

type Rep BundleInstanceResponse = D1 ('MetaData "BundleInstanceResponse" "Amazonka.EC2.BundleInstance" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "BundleInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bundleTask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BundleTask)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newBundleInstanceResponse Source #

Create a value of BundleInstanceResponse 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:bundleTask:BundleInstanceResponse', bundleInstanceResponse_bundleTask - Information about the bundle task.

$sel:httpStatus:BundleInstanceResponse', bundleInstanceResponse_httpStatus - The response's http status code.

Response Lenses