amazonka-storagegateway-1.4.0: 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:

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:

Response Lenses

ctwbrsTapeARN :: Lens' CreateTapeWithBarcodeResponse (Maybe Text) Source

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