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

Copyright(c) 2013-2016 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.

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

Synopsis

Creating a Request

bundleInstance #

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:

  • biDryRun - 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 - The ID of the instance to bundle. Type: String Default: None Required: Yes
  • biStorage - 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.

data BundleInstance #

Contains the parameters for BundleInstance.

See: bundleInstance smart constructor.

Instances

Eq BundleInstance # 
Data BundleInstance # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BundleInstance -> c BundleInstance #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BundleInstance #

toConstr :: BundleInstance -> Constr #

dataTypeOf :: BundleInstance -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BundleInstance) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BundleInstance) #

gmapT :: (forall b. Data b => b -> b) -> BundleInstance -> BundleInstance #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BundleInstance -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BundleInstance -> r #

gmapQ :: (forall d. Data d => d -> u) -> BundleInstance -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BundleInstance -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BundleInstance -> m BundleInstance #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BundleInstance -> m BundleInstance #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BundleInstance -> m BundleInstance #

Read BundleInstance # 
Show BundleInstance # 
Generic BundleInstance # 

Associated Types

type Rep BundleInstance :: * -> * #

Hashable BundleInstance # 
NFData BundleInstance # 

Methods

rnf :: BundleInstance -> () #

AWSRequest BundleInstance # 
ToQuery BundleInstance # 
ToPath BundleInstance # 
ToHeaders BundleInstance # 
type Rep BundleInstance # 
type Rep BundleInstance = D1 (MetaData "BundleInstance" "Network.AWS.EC2.BundleInstance" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "BundleInstance'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_biDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_biInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_biStorage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Storage)))))
type Rs BundleInstance # 

Request Lenses

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

biInstanceId :: Lens' BundleInstance Text #

The ID of the instance to bundle. Type: String Default: None Required: Yes

biStorage :: Lens' 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.

Destructuring the Response

bundleInstanceResponse #

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:

data BundleInstanceResponse #

Contains the output of BundleInstance.

See: bundleInstanceResponse smart constructor.

Instances

Eq BundleInstanceResponse # 
Data BundleInstanceResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BundleInstanceResponse -> c BundleInstanceResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BundleInstanceResponse #

toConstr :: BundleInstanceResponse -> Constr #

dataTypeOf :: BundleInstanceResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BundleInstanceResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BundleInstanceResponse) #

gmapT :: (forall b. Data b => b -> b) -> BundleInstanceResponse -> BundleInstanceResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BundleInstanceResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BundleInstanceResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> BundleInstanceResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BundleInstanceResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BundleInstanceResponse -> m BundleInstanceResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BundleInstanceResponse -> m BundleInstanceResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BundleInstanceResponse -> m BundleInstanceResponse #

Read BundleInstanceResponse # 
Show BundleInstanceResponse # 
Generic BundleInstanceResponse # 
NFData BundleInstanceResponse # 

Methods

rnf :: BundleInstanceResponse -> () #

type Rep BundleInstanceResponse # 
type Rep BundleInstanceResponse = D1 (MetaData "BundleInstanceResponse" "Network.AWS.EC2.BundleInstance" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "BundleInstanceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_birsBundleTask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BundleTask))) (S1 (MetaSel (Just Symbol "_birsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

birsBundleTask :: Lens' BundleInstanceResponse (Maybe BundleTask) #

Information about the bundle task.

birsResponseStatus :: Lens' BundleInstanceResponse Int #

  • - | The response status code.