amazonka-storagegateway-1.4.1: Amazon Storage Gateway 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.StorageGateway.CreateTapeWithBarcode

Contents

Description

Creates a virtual tape by using your own barcode. You write data to the virtual tape and then archive the tape.

Cache storage must be allocated to the gateway before you can create a virtual tape. Use the AddCache operation to add cache storage to a gateway.

Synopsis

Creating a Request

createTapeWithBarcode Source #

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

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

data CreateTapeWithBarcode Source #

CreateTapeWithBarcodeInput

See: createTapeWithBarcode smart constructor.

Instances

Eq CreateTapeWithBarcode Source # 
Data CreateTapeWithBarcode Source # 

Methods

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

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

toConstr :: CreateTapeWithBarcode -> Constr #

dataTypeOf :: CreateTapeWithBarcode -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateTapeWithBarcode Source # 
Show CreateTapeWithBarcode Source # 
Generic CreateTapeWithBarcode Source # 
Hashable CreateTapeWithBarcode Source # 
ToJSON CreateTapeWithBarcode Source # 
NFData CreateTapeWithBarcode Source # 

Methods

rnf :: CreateTapeWithBarcode -> () #

AWSRequest CreateTapeWithBarcode Source # 
ToQuery CreateTapeWithBarcode Source # 
ToPath CreateTapeWithBarcode Source # 
ToHeaders CreateTapeWithBarcode Source # 
type Rep CreateTapeWithBarcode Source # 
type Rep CreateTapeWithBarcode = D1 (MetaData "CreateTapeWithBarcode" "Network.AWS.StorageGateway.CreateTapeWithBarcode" "amazonka-storagegateway-1.4.1-L8VGb4RzUam2oDN29DqQAk" False) (C1 (MetaCons "CreateTapeWithBarcode'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ctwbGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_ctwbTapeSizeInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Integer)) (S1 (MetaSel (Just Symbol "_ctwbTapeBarcode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateTapeWithBarcode Source # 

Request Lenses

ctwbGatewayARN :: Lens' CreateTapeWithBarcode Text Source #

The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tape with. Use the ListGateways operation to return a list of gateways for your account and region.

ctwbTapeSizeInBytes :: Lens' CreateTapeWithBarcode Integer Source #

The size, in bytes, of the virtual tape that you want to create.

The size must be aligned by gigabyte (1024*1024*1024 byte).

ctwbTapeBarcode :: Lens' CreateTapeWithBarcode Text Source #

The barcode that you want to assign to the tape.

Destructuring the Response

createTapeWithBarcodeResponse Source #

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

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

data CreateTapeWithBarcodeResponse Source #

CreateTapeOutput

See: createTapeWithBarcodeResponse smart constructor.

Instances

Eq CreateTapeWithBarcodeResponse Source # 
Data CreateTapeWithBarcodeResponse Source # 

Methods

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

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

toConstr :: CreateTapeWithBarcodeResponse -> Constr #

dataTypeOf :: CreateTapeWithBarcodeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateTapeWithBarcodeResponse Source # 
Show CreateTapeWithBarcodeResponse Source # 
Generic CreateTapeWithBarcodeResponse Source # 
NFData CreateTapeWithBarcodeResponse Source # 
type Rep CreateTapeWithBarcodeResponse Source # 
type Rep CreateTapeWithBarcodeResponse = D1 (MetaData "CreateTapeWithBarcodeResponse" "Network.AWS.StorageGateway.CreateTapeWithBarcode" "amazonka-storagegateway-1.4.1-L8VGb4RzUam2oDN29DqQAk" False) (C1 (MetaCons "CreateTapeWithBarcodeResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ctwbrsTapeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ctwbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ctwbrsTapeARN :: Lens' CreateTapeWithBarcodeResponse (Maybe Text) Source #

A unique Amazon Resource Name (ARN) that represents the virtual tape that was created.