Deletes the run, given the run ARN. You cannot delete a run if it is still active.
You cannot undo this operation.
Parameters:
Raises:
Examples:
To delete a run
The following example deletes a specific test run.
>>> await client.delete_run(arn='arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456')
Source code in docs_src/capo_device_farm/_services/async_device_farm.py
| async def delete_run(
self,
arn: "capo_device_farm.types.amazon_resource_name.AmazonResourceName",
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
) -> "capo_device_farm.types.delete_run_result.DeleteRunResult":
"""<p>Deletes the run, given the run ARN. You cannot delete a run if it is still active.</p> <important> <p>You cannot undo this operation.</p> </important>
Args:
arn: <p>The Amazon Resource Name (ARN) for the run to delete.</p>
Raises:
capo_device_farm.errors.argument_exception.ArgumentException: <p>An invalid argument was specified.</p>
capo_device_farm.errors.limit_exceeded_exception.LimitExceededException: <p>A limit was exceeded.</p>
capo_device_farm.errors.not_found_exception.NotFoundException: <p>The specified entity was not found.</p>
capo_device_farm.errors.service_account_exception.ServiceAccountException: <p>There was a problem with the service account.</p>
capo_device_farm.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To delete a run
The following example deletes a specific test run.
>>> await client.delete_run(arn='arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456')
"""
async def _handler(
req: "AsyncOperationRequest[capo_device_farm.types.delete_run_request.DeleteRunRequest]",
) -> AsyncOperationResponse[
"capo_device_farm.types.delete_run_result.DeleteRunResult"
]:
import capo_device_farm._operations.device_farm_20150623.delete_run
(
output,
http_response,
) = await capo_device_farm._operations.device_farm_20150623.delete_run.async_delete_run(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteRun")
)
input_: capo_device_farm.types.delete_run_request.DeleteRunRequest = {
"arn": arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|