Deletes a Selenium testing project and all content generated under it. You cannot delete a project if it has active sessions.
You cannot undo this operation.
Parameters:
Raises:
Source code in docs_src/capo_device_farm/_services/device_farm.py
| def delete_test_grid_project(
self,
project_arn: "capo_device_farm.types.device_farm_arn.DeviceFarmArn",
*,
config_overrides: Optional[DeviceFarmClientConfig] = None,
) -> "capo_device_farm.types.delete_test_grid_project_result.DeleteTestGridProjectResult":
"""<p> Deletes a Selenium testing project and all content generated under it. You cannot delete a project if it has active sessions.</p> <important> <p>You cannot undo this operation.</p> </important>
Args:
project_arn: <p>The ARN of the project to delete, from <a>CreateTestGridProject</a> or <a>ListTestGridProjects</a>.</p>
Raises:
capo_device_farm.errors.argument_exception.ArgumentException: <p>An invalid argument was specified.</p>
capo_device_farm.errors.cannot_delete_exception.CannotDeleteException: <p>The requested object could not be deleted.</p>
capo_device_farm.errors.internal_service_exception.InternalServiceException: <p>An internal exception was raised in the service. Contact <a href="mailto:[email protected]">[email protected]</a> if you see this error. </p>
capo_device_farm.errors.not_found_exception.NotFoundException: <p>The specified entity was not found.</p>
capo_device_farm.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_device_farm.types.delete_test_grid_project_request.DeleteTestGridProjectRequest]",
) -> OperationResponse[
"capo_device_farm.types.delete_test_grid_project_result.DeleteTestGridProjectResult"
]:
import capo_device_farm._operations.device_farm_20150623.delete_test_grid_project
output, http_response = (
capo_device_farm._operations.device_farm_20150623.delete_test_grid_project.delete_test_grid_project(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteTestGridProject")
)
input_: capo_device_farm.types.delete_test_grid_project_request.DeleteTestGridProjectRequest = {
"project_arn": project_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|