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.
http://docs.aws.amazon.com/storagegateway/latest/APIReference/API_CreateTapes.html
- data CreateTapes
- createTapes :: Text -> Integer -> Text -> Natural -> Text -> CreateTapes
- ctClientToken :: Lens' CreateTapes Text
- ctGatewayARN :: Lens' CreateTapes Text
- ctNumTapesToCreate :: Lens' CreateTapes Natural
- ctTapeBarcodePrefix :: Lens' CreateTapes Text
- ctTapeSizeInBytes :: Lens' CreateTapes Integer
- data CreateTapesResponse
- createTapesResponse :: CreateTapesResponse
- ctrTapeARNs :: Lens' CreateTapesResponse [Text]
Request
data CreateTapes Source
Eq CreateTapes | |
Ord CreateTapes | |
Read CreateTapes | |
Show CreateTapes | |
ToJSON CreateTapes | |
AWSRequest CreateTapes | |
ToQuery CreateTapes | |
ToPath CreateTapes | |
ToHeaders CreateTapes | |
type Sv CreateTapes = StorageGateway | |
type Rs CreateTapes = CreateTapesResponse |
Request constructor
CreateTapes
constructor.
The fields accessible through corresponding lenses are:
Request lenses
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.
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.
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.
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.
Response
Response constructor
createTapesResponse :: CreateTapesResponse Source
CreateTapesResponse
constructor.
The fields accessible through corresponding lenses are:
ctrTapeARNs
::
[Text
]
Response lenses
ctrTapeARNs :: Lens' CreateTapesResponse [Text] Source
A list of unique Amazon Resource Named (ARN) the represents the virtual tapes that were created.