Copyright | (c) 2013-2021 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 |
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.
Synopsis
- data RetrieveTapeArchive = RetrieveTapeArchive' {
- tapeARN :: Text
- gatewayARN :: Text
- newRetrieveTapeArchive :: Text -> Text -> RetrieveTapeArchive
- retrieveTapeArchive_tapeARN :: Lens' RetrieveTapeArchive Text
- retrieveTapeArchive_gatewayARN :: Lens' RetrieveTapeArchive Text
- data RetrieveTapeArchiveResponse = RetrieveTapeArchiveResponse' {
- tapeARN :: Maybe Text
- httpStatus :: Int
- newRetrieveTapeArchiveResponse :: Int -> RetrieveTapeArchiveResponse
- retrieveTapeArchiveResponse_tapeARN :: Lens' RetrieveTapeArchiveResponse (Maybe Text)
- retrieveTapeArchiveResponse_httpStatus :: Lens' RetrieveTapeArchiveResponse Int
Creating a Request
data RetrieveTapeArchive Source #
RetrieveTapeArchiveInput
See: newRetrieveTapeArchive
smart constructor.
RetrieveTapeArchive' | |
|
Instances
newRetrieveTapeArchive Source #
:: Text | |
-> Text | |
-> RetrieveTapeArchive |
Create a value of RetrieveTapeArchive
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tapeARN:RetrieveTapeArchive'
, retrieveTapeArchive_tapeARN
- The Amazon Resource Name (ARN) of the virtual tape you want to retrieve
from the virtual tape shelf (VTS).
$sel:gatewayARN:RetrieveTapeArchive'
, retrieveTapeArchive_gatewayARN
- 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 Amazon Web Services Region.
You retrieve archived virtual tapes to only one gateway and the gateway must be a tape gateway.
Request Lenses
retrieveTapeArchive_tapeARN :: Lens' RetrieveTapeArchive Text Source #
The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from the virtual tape shelf (VTS).
retrieveTapeArchive_gatewayARN :: 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 Amazon Web Services Region.
You retrieve archived virtual tapes to only one gateway and the gateway must be a tape gateway.
Destructuring the Response
data RetrieveTapeArchiveResponse Source #
RetrieveTapeArchiveOutput
See: newRetrieveTapeArchiveResponse
smart constructor.
RetrieveTapeArchiveResponse' | |
|
Instances
newRetrieveTapeArchiveResponse Source #
Create a value of RetrieveTapeArchiveResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tapeARN:RetrieveTapeArchive'
, retrieveTapeArchiveResponse_tapeARN
- The Amazon Resource Name (ARN) of the retrieved virtual tape.
$sel:httpStatus:RetrieveTapeArchiveResponse'
, retrieveTapeArchiveResponse_httpStatus
- The response's http status code.
Response Lenses
retrieveTapeArchiveResponse_tapeARN :: Lens' RetrieveTapeArchiveResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the retrieved virtual tape.
retrieveTapeArchiveResponse_httpStatus :: Lens' RetrieveTapeArchiveResponse Int Source #
The response's http status code.