import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates a new `BuildTrigger`. This API is experimental. */ export declare class Trigger extends pulumi.CustomResource { /** * Get an existing Trigger resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Trigger; /** * Returns true if the given object is an instance of Trigger. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Trigger; /** * Contents of the build template. */ readonly build: pulumi.Output; /** * Time when the trigger was created. */ readonly createTime: pulumi.Output; /** * Human-readable description of this trigger. */ readonly description: pulumi.Output; /** * If true, the trigger will never automatically execute a build. */ readonly disabled: pulumi.Output; /** * Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml). */ readonly filename: pulumi.Output; /** * GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`. */ readonly github: pulumi.Output; /** * ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**". If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build. */ readonly ignoredFiles: pulumi.Output; /** * If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build. */ readonly includedFiles: pulumi.Output; /** * User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character. */ readonly name: pulumi.Output; /** * Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`. */ readonly substitutions: pulumi.Output<{ [key: string]: string; }>; /** * Tags for annotation of a `BuildTrigger` */ readonly tags: pulumi.Output; /** * Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`. */ readonly triggerTemplate: pulumi.Output; /** * Create a Trigger resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TriggerArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Trigger resource. */ export interface TriggerArgs { /** * Contents of the build template. */ readonly build?: pulumi.Input; /** * Human-readable description of this trigger. */ readonly description?: pulumi.Input; /** * If true, the trigger will never automatically execute a build. */ readonly disabled?: pulumi.Input; /** * Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml). */ readonly filename?: pulumi.Input; /** * GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`. */ readonly github?: pulumi.Input; /** * ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**". If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build. */ readonly ignoredFiles?: pulumi.Input[]>; /** * If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build. */ readonly includedFiles?: pulumi.Input[]>; /** * User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character. */ readonly name?: pulumi.Input; readonly projectId: pulumi.Input; /** * Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`. */ readonly substitutions?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Tags for annotation of a `BuildTrigger` */ readonly tags?: pulumi.Input[]>; readonly triggerId: pulumi.Input; /** * Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`. */ readonly triggerTemplate?: pulumi.Input; }