Module cloudbuild

@pulumi/gcp > cloudbuild

class Trigger

extends CustomResource

Configuration for an automated build in response to source repository changes.

To get more information about Trigger, see:

Example Usage - Cloudbuild Trigger Filename

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const filename_trigger = new gcp.cloudbuild.Trigger("filename-trigger", {
    filename: "cloudbuild.yaml",
    substitutions: {
        _BAZ: "qux",
        _FOO: "bar",
    },
    triggerTemplate: {
        branchName: "master",
        repoName: "my-repo",
    },
});

constructor

new Trigger(name: string, args?: TriggerArgs, opts?: pulumi.CustomResourceOptions)

Create a Trigger resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TriggerState, opts?: pulumi.CustomResourceOptions): Trigger

Get an existing Trigger resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property build

public build: pulumi.Output<{
    images: string[];
    steps: {
        args: string[];
        dir: undefined | string;
        entrypoint: undefined | string;
        envs: string[];
        id: undefined | string;
        name: undefined | string;
        secretEnvs: string[];
        timeout: undefined | string;
        timing: undefined | string;
        volumes: {
            name: undefined | string;
            path: undefined | string;
        }[];
        waitFors: string[];
    }[];
    tags: string[];
} | undefined>;

property createTime

public createTime: pulumi.Output<string>;

property description

public description: pulumi.Output<string | undefined>;

property disabled

public disabled: pulumi.Output<boolean | undefined>;

property filename

public filename: pulumi.Output<string | undefined>;

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property ignoredFiles

public ignoredFiles: pulumi.Output<string[] | undefined>;

property includedFiles

public includedFiles: pulumi.Output<string[] | undefined>;

property project

public project: pulumi.Output<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property substitutions

public substitutions: pulumi.Output<{[key: string]: string} | undefined>;

property triggerId

public triggerId: pulumi.Output<string>;

property triggerTemplate

public triggerTemplate: pulumi.Output<{
    branchName: undefined | string;
    commitSha: undefined | string;
    dir: undefined | string;
    projectId: string;
    repoName: undefined | string;
    tagName: undefined | string;
} | undefined>;

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

interface TriggerArgs

The set of arguments for constructing a Trigger resource.

property build

property description

description?: pulumi.Input<string>;

property disabled

disabled?: pulumi.Input<boolean>;

property filename

filename?: pulumi.Input<string>;

property ignoredFiles

ignoredFiles?: pulumi.Input<pulumi.Input<string>[]>;

property includedFiles

includedFiles?: pulumi.Input<pulumi.Input<string>[]>;

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property substitutions

substitutions?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

property triggerTemplate

triggerTemplate?: pulumi.Input<{
    branchName: pulumi.Input<string>;
    commitSha: pulumi.Input<string>;
    dir: pulumi.Input<string>;
    projectId: pulumi.Input<string>;
    repoName: pulumi.Input<string>;
    tagName: pulumi.Input<string>;
}>;

interface TriggerState

Input properties used for looking up and filtering Trigger resources.

property build

property createTime

createTime?: pulumi.Input<string>;

property description

description?: pulumi.Input<string>;

property disabled

disabled?: pulumi.Input<boolean>;

property filename

filename?: pulumi.Input<string>;

property ignoredFiles

ignoredFiles?: pulumi.Input<pulumi.Input<string>[]>;

property includedFiles

includedFiles?: pulumi.Input<pulumi.Input<string>[]>;

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property substitutions

substitutions?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

property triggerId

triggerId?: pulumi.Input<string>;

property triggerTemplate

triggerTemplate?: pulumi.Input<{
    branchName: pulumi.Input<string>;
    commitSha: pulumi.Input<string>;
    dir: pulumi.Input<string>;
    projectId: pulumi.Input<string>;
    repoName: pulumi.Input<string>;
    tagName: pulumi.Input<string>;
}>;