Smaws_Client_StorageGateway.CancelCacheReportCancels generation of a specified cache report. You can use this operation to manually cancel an IN-PROGRESS report for any reason. This action changes the report status from IN-PROGRESS to CANCELLED. You can only cancel in-progress reports. If the the report you attempt to cancel is in FAILED, ERROR, or COMPLETED state, the cancel operation returns an error.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServerError of Types.internal_server_error
| `InvalidGatewayRequestException of Types.invalid_gateway_request_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.cancel_cache_report_input ->
(Types.cancel_cache_report_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerError of Types.internal_server_error
| `InvalidGatewayRequestException of
Types.invalid_gateway_request_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.cancel_cache_report_input ->
(Types.cancel_cache_report_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerError of Types.internal_server_error
| `InvalidGatewayRequestException of
Types.invalid_gateway_request_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result