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 |
Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a tape gateway. Virtual tapes archived in the VTS are not associated with any gateway. However after a tape is retrieved, it is associated with a gateway, even though it is also listed in the VTS, that is, archive. This operation is only supported in the tape gateway type.
Once a tape is successfully retrieved to a gateway, it cannot be retrieved again to another gateway. You must archive the tape again before you can retrieve it to another gateway. This operation is only supported in the tape gateway type.
- retrieveTapeArchive :: Text -> Text -> RetrieveTapeArchive
- data RetrieveTapeArchive
- rtaTapeARN :: Lens' RetrieveTapeArchive Text
- rtaGatewayARN :: Lens' RetrieveTapeArchive Text
- retrieveTapeArchiveResponse :: Int -> RetrieveTapeArchiveResponse
- data RetrieveTapeArchiveResponse
- rtarsTapeARN :: Lens' RetrieveTapeArchiveResponse (Maybe Text)
- rtarsResponseStatus :: Lens' RetrieveTapeArchiveResponse Int
Creating a Request
Creates a value of RetrieveTapeArchive
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rtaTapeARN
- The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from the virtual tape shelf (VTS).rtaGatewayARN
- The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual tape to. Use theListGateways
operation to return a list of gateways for your account and region. You retrieve archived virtual tapes to only one gateway and the gateway must be a tape gateway.
data RetrieveTapeArchive Source #
RetrieveTapeArchiveInput
See: retrieveTapeArchive
smart constructor.
Request Lenses
rtaTapeARN :: Lens' RetrieveTapeArchive Text Source #
The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from the virtual tape shelf (VTS).
rtaGatewayARN :: Lens' RetrieveTapeArchive Text Source #
The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual tape to. Use the ListGateways
operation to return a list of gateways for your account and region. You retrieve archived virtual tapes to only one gateway and the gateway must be a tape gateway.
Destructuring the Response
retrieveTapeArchiveResponse Source #
Creates a value of RetrieveTapeArchiveResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rtarsTapeARN
- The Amazon Resource Name (ARN) of the retrieved virtual tape.rtarsResponseStatus
- -- | The response status code.
data RetrieveTapeArchiveResponse Source #
RetrieveTapeArchiveOutput
See: retrieveTapeArchiveResponse
smart constructor.
Response Lenses
rtarsTapeARN :: Lens' RetrieveTapeArchiveResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the retrieved virtual tape.
rtarsResponseStatus :: Lens' RetrieveTapeArchiveResponse Int Source #
- - | The response status code.