Skip to content

delete_webhook async

delete_webhook(
    project_name: ProjectName,
    *,
    config_overrides: Optional[AsyncCodeBuildClientConfig] = None,
) -> DeleteWebhookOutput

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/async_code_build.py
async def delete_webhook(
    self,
    project_name: "capo_codebuild.types.project_name.ProjectName",
    *,
    config_overrides: Optional[AsyncCodeBuildClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codebuild.types.delete_webhook_input.DeleteWebhookInput]",
    ) -> AsyncOperationResponse[
        "capo_codebuild.types.delete_webhook_output.DeleteWebhookOutput"
    ]:
        import capo_codebuild._operations.code_build_20161006.delete_webhook

        (
            output,
            http_response,
        ) = await capo_codebuild._operations.code_build_20161006.delete_webhook.async_delete_webhook(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output