Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.
Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.
See: AWS API Reference for CreateTapes.
- 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]
- ctrsStatus :: 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:
data CreateTapes Source
CreateTapesInput
See: createTapes
smart constructor.
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 you want to create.
The size must be gigabyte (1024*1024*1024 byte) aligned.
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.
Using the same ClientToken
prevents creating the tape multiple times.
ctNumTapesToCreate :: Lens' CreateTapes Natural Source
The number of virtual tapes you want to create.
ctTapeBarcodePrefix :: Lens' CreateTapes Text Source
A prefix you append to the barcode of the virtual tape you are creating. This makes a barcode unique.
The prefix must be 1 to 4 characters in length and must be upper-case letters A-Z.
Destructuring the Response
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:
data CreateTapesResponse Source
CreateTapeOutput
See: createTapesResponse
smart constructor.
Response Lenses
ctrsTapeARNs :: Lens' CreateTapesResponse [Text] Source
A list of unique Amazon Resource Named (ARN) the represents the virtual tapes that were created.
ctrsStatus :: Lens' CreateTapesResponse Int Source
The response status code.