Deletes a build project. When you delete a project, its builds are not deleted.
Parameters:
Raises:
Source code in docs_src/capo_codebuild/_services/async_code_build.py
| async def delete_project(
self,
name: "capo_codebuild.types.non_empty_string.NonEmptyString",
*,
config_overrides: Optional[AsyncCodeBuildClientConfig] = None,
) -> "capo_codebuild.types.delete_project_output.DeleteProjectOutput":
"""<p> Deletes a build project. When you delete a project, its builds are not deleted. </p>
Args:
name: <p>The name of the build project.</p>
Raises:
capo_codebuild.errors.invalid_input_exception.InvalidInputException: <p>The input value that was provided is not valid.</p>
capo_codebuild.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_codebuild.types.delete_project_input.DeleteProjectInput]",
) -> AsyncOperationResponse[
"capo_codebuild.types.delete_project_output.DeleteProjectOutput"
]:
import capo_codebuild._operations.code_build_20161006.delete_project
(
output,
http_response,
) = await capo_codebuild._operations.code_build_20161006.delete_project.async_delete_project(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteProject")
)
input_: capo_codebuild.types.delete_project_input.DeleteProjectInput = {
"name": name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|