cancel_archival
¶
cancel_archival(
gateway_arn: GatewayARN,
tape_arn: TapeARN,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
) -> CancelArchivalOutput
Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated. This operation is only supported in the tape gateway type.
Parameters:
-
tape_arn(TapeARN) –The Amazon Resource Name (ARN) of the virtual tape you want to cancel archiving for.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To cancel virtual tape archiving Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.
>>> client.cancel_archival(gateway_arn='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B', tape_arn='arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4')