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.
 Declaration Syntax
 Declaration Syntax| C# | 
public CancelRetrievalResponse CancelRetrieval( CancelRetrievalRequest cancelRetrievalRequest )
 Parameters
 Parameters- cancelRetrievalRequest (CancelRetrievalRequest)
- Container for the necessary parameters to execute the CancelRetrieval service method on AmazonStorageGateway.
 Return Value
 Return ValueThe response from the CancelRetrieval service method, as returned by AmazonStorageGateway.
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| InternalServerErrorException | |
| InvalidGatewayRequestException |