Trigger class
Creates a new BuildTrigger.
Constructors
- Trigger(String name, {TriggerArgs? args, CustomResourceOptions? options})
-
Creates a new Trigger.
nameThe Pulumi resource name.argsArguments used to configure this Trigger. The set of arguments for Trigger.optionsResource options controlling this resource's behavior.
Properties
-
approvalConfig
↔ Output<
ApprovalConfigResponse> -
Configuration for manual approval to start a build invocation of this BuildTrigger.
latefinal
-
autodetect
↔ Output<
bool> -
Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
latefinal
-
bitbucketServerTriggerConfig
↔ Output<
BitbucketServerTriggerConfigResponse> -
BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.
latefinal
-
build
↔ Output<
BuildResponse> -
Contents of the build template.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createTime
↔ Output<
String> -
Time when the trigger was created.
latefinal
-
description
↔ Output<
String> -
Human-readable description of this trigger.
latefinal
-
disabled
↔ Output<
bool> -
If true, the trigger will never automatically execute a build.
latefinal
-
eventType
↔ Output<
String> -
EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set.
latefinal
-
filename
↔ Output<
String> -
Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
latefinal
-
filter
↔ Output<
String> -
A Common Expression Language string.
latefinal
-
gitFileSource
↔ Output<
GitFileSourceResponse> -
The file source describing the local or remote Build template.
latefinal
-
github
↔ Output<
GitHubEventsConfigResponse> -
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with
trigger_template.latefinal -
gitlabEnterpriseEventsConfig
↔ Output<
GitLabEventsConfigResponse> -
GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
-
ignoredFiles
↔ Output<
List< String> > -
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.
latefinal
-
includeBuildLogs
↔ Output<
String> -
If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error.
latefinal
-
includedFiles
↔ Output<
List< String> > -
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.
latefinal
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
location
↔ Output<
String> -
latefinal
-
name
↔ Output<
String> -
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.
latefinal
-
project
↔ Output<
String> -
latefinal
-
projectId
↔ Output<
String> -
Required. ID of the project for which to configure automatic builds.
latefinal
-
pubsubConfig
↔ Output<
PubsubConfigResponse> -
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
latefinal
-
repositoryEventConfig
↔ Output<
RepositoryEventConfigResponse> -
The configuration of a trigger that creates a build whenever an event from Repo API is received.
latefinal
-
resourceName
↔ Output<
String> -
The
Triggername with format:projects/{project}/locations/{location}/triggers/{trigger}, where {trigger} is a unique identifier generated by the service.latefinal -
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceAccount
↔ Output<
String> -
The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set, then the standard Cloud Build service account (
PROJECT_NUM@system.gserviceaccount.com) will be used instead. Format:projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}latefinal -
sourceToBuild
↔ Output<
GitRepoSourceResponse> -
The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
latefinal
-
substitutions
↔ Output<
Map< String, String> > -
Substitutions for Build resource. The keys must match the following regular expression:
^_[A-Z0-9_]+$.latefinal -
Tags for annotation of a
BuildTriggerlatefinal -
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
triggerTemplate
↔ Output<
RepoSourceResponse> -
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.latefinal -
urn
↔ Output<
String> -
latefinalinherited
-
webhookConfig
↔ Output<
WebhookConfigResponse> -
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.
latefinal
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited