| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.StorageGateway.CancelRetrieval
Description
Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated. The virtual tape is returned to the VTS. This operation is only supported in the tape gateway type.
Synopsis
- data CancelRetrieval = CancelRetrieval' {
- gatewayARN :: Text
- tapeARN :: Text
- newCancelRetrieval :: Text -> Text -> CancelRetrieval
- cancelRetrieval_gatewayARN :: Lens' CancelRetrieval Text
- cancelRetrieval_tapeARN :: Lens' CancelRetrieval Text
- data CancelRetrievalResponse = CancelRetrievalResponse' {
- tapeARN :: Maybe Text
- httpStatus :: Int
- newCancelRetrievalResponse :: Int -> CancelRetrievalResponse
- cancelRetrievalResponse_tapeARN :: Lens' CancelRetrievalResponse (Maybe Text)
- cancelRetrievalResponse_httpStatus :: Lens' CancelRetrievalResponse Int
Creating a Request
data CancelRetrieval Source #
CancelRetrievalInput
See: newCancelRetrieval smart constructor.
Constructors
| CancelRetrieval' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CancelRetrieval |
Create a value of CancelRetrieval 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:
CancelRetrieval, cancelRetrieval_gatewayARN - Undocumented member.
CancelRetrieval, cancelRetrieval_tapeARN - The Amazon Resource Name (ARN) of the virtual tape you want to cancel
retrieval for.
Request Lenses
cancelRetrieval_gatewayARN :: Lens' CancelRetrieval Text Source #
Undocumented member.
cancelRetrieval_tapeARN :: Lens' CancelRetrieval Text Source #
The Amazon Resource Name (ARN) of the virtual tape you want to cancel retrieval for.
Destructuring the Response
data CancelRetrievalResponse Source #
CancelRetrievalOutput
See: newCancelRetrievalResponse smart constructor.
Constructors
| CancelRetrievalResponse' | |
Fields
| |
Instances
newCancelRetrievalResponse Source #
Create a value of CancelRetrievalResponse 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:
CancelRetrieval, cancelRetrievalResponse_tapeARN - The Amazon Resource Name (ARN) of the virtual tape for which retrieval
was canceled.
$sel:httpStatus:CancelRetrievalResponse', cancelRetrievalResponse_httpStatus - The response's http status code.
Response Lenses
cancelRetrievalResponse_tapeARN :: Lens' CancelRetrievalResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the virtual tape for which retrieval was canceled.
cancelRetrievalResponse_httpStatus :: Lens' CancelRetrievalResponse Int Source #
The response's http status code.