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

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Data BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Show BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Generic BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Associated Types

type Rep BundleInstance :: Type -> Type #

Hashable BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

AWSRequest BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Associated Types

type Rs BundleInstance :: Type #

ToHeaders BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

ToPath BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

ToQuery BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

NFData BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Methods

rnf :: BundleInstance -> () #

type Rep BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

type Rep BundleInstance = D1 (MetaData "BundleInstance" "Network.AWS.EC2.BundleInstance" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "BundleInstance'" PrefixI True) (S1 (MetaSel (Just "_biDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_biInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_biStorage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Storage))))
type Rs BundleInstance Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

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 # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Data BundleInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

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 # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Show BundleInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Generic BundleInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Associated Types

type Rep BundleInstanceResponse :: Type -> Type #

NFData BundleInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

Methods

rnf :: BundleInstanceResponse -> () #

type Rep BundleInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.BundleInstance

type Rep BundleInstanceResponse = D1 (MetaData "BundleInstanceResponse" "Network.AWS.EC2.BundleInstance" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "BundleInstanceResponse'" PrefixI True) (S1 (MetaSel (Just "_birsBundleTask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BundleTask)) :*: S1 (MetaSel (Just "_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.