cloudbuild

class pulumi_gcp.cloudbuild.Trigger(resource_name, opts=None, build=None, description=None, filename=None, project=None, substitutions=None, trigger_template=None, __name__=None, __opts__=None)

Creates a new build trigger within GCR. For more information, see the official documentation and API.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • build (pulumi.Input[dict]) – A build resource in the Container Builder API. Structure is documented below. At a high level, a build describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created:
Parameters:
  • description (pulumi.Input[str]) – A brief description of this resource.
  • filename (pulumi.Input[str]) – Specify the path to a Cloud Build configuration file in the Git repo. This is mutually exclusive with build. This is typically cloudbuild.yaml however it can be specified by the user.
  • project (pulumi.Input[str]) – The ID of the project that the trigger will be created in. Defaults to the provider project configuration.

:param pulumi.Input[dict] substitutions :param pulumi.Input[dict] trigger_template: Location of the source in a Google

Cloud Source Repository. Structure is documented below.
build = None

A build resource in the Container Builder API. Structure is documented below. At a high level, a build describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created:

  • $PROJECT_ID: the project ID of the build.
  • $BUILD_ID: the autogenerated ID of the build.
  • $REPO_NAME: the source repository name specified by RepoSource.
  • $BRANCH_NAME: the branch name specified by RepoSource.
  • $TAG_NAME: the tag name specified by RepoSource.
  • $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag.
  • $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
description = None

A brief description of this resource.

filename = None

Specify the path to a Cloud Build configuration file in the Git repo. This is mutually exclusive with build. This is typically cloudbuild.yaml however it can be specified by the user.

project = None

The ID of the project that the trigger will be created in. Defaults to the provider project configuration.

trigger_template = None

Location of the source in a Google Cloud Source Repository. Structure is documented below.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str