| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.StorageGateway.CreateTapeWithBarcode
Description
Creates a virtual tape by using your own barcode. You write data to the virtual tape and then archive the tape. A barcode is unique and can not be reused if it has already been used on a tape . This applies to barcodes used on deleted tapes. This operation is only supported in the tape gateway. architecture.
- createTapeWithBarcode :: Text -> Integer -> Text -> CreateTapeWithBarcode
- data CreateTapeWithBarcode
- ctwbGatewayARN :: Lens' CreateTapeWithBarcode Text
- ctwbTapeSizeInBytes :: Lens' CreateTapeWithBarcode Integer
- ctwbTapeBarcode :: Lens' CreateTapeWithBarcode Text
- createTapeWithBarcodeResponse :: Int -> CreateTapeWithBarcodeResponse
- data CreateTapeWithBarcodeResponse
- ctwbrsTapeARN :: Lens' CreateTapeWithBarcodeResponse (Maybe Text)
- ctwbrsResponseStatus :: Lens' CreateTapeWithBarcodeResponse Int
Creating a Request
createTapeWithBarcode Source #
Arguments
| :: Text | |
| -> Integer | |
| -> Text | |
| -> CreateTapeWithBarcode |
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:
ctwbGatewayARN- The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tape with. Use theListGatewaysoperation to return a list of gateways for your account and region.ctwbTapeSizeInBytes- The size, in bytes, of the virtual tape that you want to create.ctwbTapeBarcode- The barcode that you want to assign to the tape.
data CreateTapeWithBarcode Source #
CreateTapeWithBarcodeInput
See: createTapeWithBarcode smart constructor.
Instances
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.
ctwbTapeBarcode :: Lens' CreateTapeWithBarcode Text Source #
The barcode that you want to assign to the tape.
Destructuring the Response
createTapeWithBarcodeResponse Source #
Arguments
| :: Int | |
| -> CreateTapeWithBarcodeResponse |
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:
ctwbrsTapeARN- A unique Amazon Resource Name (ARN) that represents the virtual tape that was created.ctwbrsResponseStatus- -- | The response status code.
data CreateTapeWithBarcodeResponse Source #
CreateTapeOutput
See: createTapeWithBarcodeResponse smart constructor.
Instances
Response Lenses
ctwbrsTapeARN :: Lens' CreateTapeWithBarcodeResponse (Maybe Text) Source #
A unique Amazon Resource Name (ARN) that represents the virtual tape that was created.
ctwbrsResponseStatus :: Lens' CreateTapeWithBarcodeResponse Int Source #
- - | The response status code.