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

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 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:

  • 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 Source #

Contains the parameters for BundleInstance.

See: bundleInstance smart constructor.

Instances

Eq BundleInstance Source # 
Data BundleInstance Source # 

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 Source # 
Show BundleInstance Source # 
Generic BundleInstance Source # 

Associated Types

type Rep BundleInstance :: * -> * #

Hashable BundleInstance Source # 
NFData BundleInstance Source # 

Methods

rnf :: BundleInstance -> () #

AWSRequest BundleInstance Source # 
ToQuery BundleInstance Source # 
ToPath BundleInstance Source # 
ToHeaders BundleInstance Source # 
type Rep BundleInstance Source # 
type Rep BundleInstance = D1 (MetaData "BundleInstance" "Network.AWS.EC2.BundleInstance" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" 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 Source # 

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:

data BundleInstanceResponse Source #

Contains the output of BundleInstance.

See: bundleInstanceResponse smart constructor.

Instances

Eq BundleInstanceResponse Source # 
Data BundleInstanceResponse Source # 

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 Source # 
Show BundleInstanceResponse Source # 
Generic BundleInstanceResponse Source # 
NFData BundleInstanceResponse Source # 

Methods

rnf :: BundleInstanceResponse -> () #

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

Response Lenses

birsBundleTask :: Lens' BundleInstanceResponse (Maybe BundleTask) Source #

Information about the bundle task.

birsResponseStatus :: Lens' BundleInstanceResponse Int Source #

  • - | The response status code.