Copyright | (c) 2013-2018 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 |
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 type.
- 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 #
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 theListGateways
operation 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.
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 #
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.
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.