For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.
Parameters:
-
project_name
(ProjectName)
–
The name of the CodeBuild project.
Raises:
Source code in docs_src/capo_codebuild/_services/code_build.py
| def delete_webhook(
self,
project_name: "capo_codebuild.types.project_name.ProjectName",
*,
config_overrides: Optional[CodeBuildClientConfig] = None,
) -> "capo_codebuild.types.delete_webhook_output.DeleteWebhookOutput":
"""<p>For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.</p>
Args:
project_name: <p>The name of the CodeBuild project.</p>
Raises:
capo_codebuild.errors.invalid_input_exception.InvalidInputException: <p>The input value that was provided is not valid.</p>
capo_codebuild.errors.o_auth_provider_exception.OAuthProviderException: <p>There was a problem with the underlying OAuth provider.</p>
capo_codebuild.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified Amazon Web Services resource cannot be found.</p>
capo_codebuild.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_codebuild.types.delete_webhook_input.DeleteWebhookInput]",
) -> OperationResponse[
"capo_codebuild.types.delete_webhook_output.DeleteWebhookOutput"
]:
import capo_codebuild._operations.code_build_20161006.delete_webhook
output, http_response = (
capo_codebuild._operations.code_build_20161006.delete_webhook.delete_webhook(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteWebhook")
)
input_: capo_codebuild.types.delete_webhook_input.DeleteWebhookInput = {
"project_name": project_name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|