| 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 |
Network.AWS.StorageGateway.CreateTapes
Description
Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes. This operation is only supported in the tape gateway type.
Synopsis
- createTapes :: Text -> Integer -> Text -> Natural -> Text -> CreateTapes
- data CreateTapes
- ctGatewayARN :: Lens' CreateTapes Text
- ctTapeSizeInBytes :: Lens' CreateTapes Integer
- ctClientToken :: Lens' CreateTapes Text
- ctNumTapesToCreate :: Lens' CreateTapes Natural
- ctTapeBarcodePrefix :: Lens' CreateTapes Text
- createTapesResponse :: Int -> CreateTapesResponse
- data CreateTapesResponse
- ctrsTapeARNs :: Lens' CreateTapesResponse [Text]
- ctrsResponseStatus :: Lens' CreateTapesResponse Int
Creating a Request
Creates a value of CreateTapes with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctGatewayARN- The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use theListGatewaysoperation to return a list of gateways for your account and region.ctTapeSizeInBytes- The size, in bytes, of the virtual tapes that you want to create.ctClientToken- A unique identifier that you use to retry a request. If you retry a request, use the sameClientTokenyou specified in the initial request.ctNumTapesToCreate- The number of virtual tapes that you want to create.ctTapeBarcodePrefix- A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.
data CreateTapes Source #
CreateTapesInput
See: createTapes smart constructor.
Instances
Request Lenses
ctGatewayARN :: Lens' CreateTapes Text Source #
The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.
ctTapeSizeInBytes :: Lens' CreateTapes Integer Source #
The size, in bytes, of the virtual tapes that you want to create.
ctClientToken :: Lens' CreateTapes Text Source #
A unique identifier that you use to retry a request. If you retry a request, use the same ClientToken you specified in the initial request.
ctNumTapesToCreate :: Lens' CreateTapes Natural Source #
The number of virtual tapes that you want to create.
ctTapeBarcodePrefix :: Lens' CreateTapes Text Source #
A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.
Destructuring the Response
Arguments
| :: Int | |
| -> CreateTapesResponse |
Creates a value of CreateTapesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctrsTapeARNs- A list of unique Amazon Resource Names (ARNs) that represents the virtual tapes that were created.ctrsResponseStatus- -- | The response status code.
data CreateTapesResponse Source #
CreateTapeOutput
See: createTapesResponse smart constructor.
Instances
Response Lenses
ctrsTapeARNs :: Lens' CreateTapesResponse [Text] Source #
A list of unique Amazon Resource Names (ARNs) that represents the virtual tapes that were created.
ctrsResponseStatus :: Lens' CreateTapesResponse Int Source #
- - | The response status code.