CloudbuildTriggerBuildOptions class

build.options block. Picks the worker shape, logging mode, substitution policy, and other build-wide knobs. Every field is optional — omitting the entire block uses Cloud Build defaults (n1-standard-1, LOGGING_UNSPECIFIED, MUST_MATCH).

Annotations
  • @immutable

Constructors

CloudbuildTriggerBuildOptions({TfArg<String>? machineType, TfArg<int>? diskSizeGb, TfArg<String>? workerPool, TfArg<CloudBuildTriggerSubstitutionOption>? substitutionOption, TfArg<CloudBuildTriggerLogStreamingOption>? logStreamingOption, TfArg<CloudBuildTriggerBuildLogging>? logging, TfArg<CloudBuildTriggerRequestedVerifyOption>? requestedVerifyOption, TfArg<bool>? dynamicSubstitutions, TfArg<List<CloudBuildTriggerSourceProvenanceHash>>? sourceProvenanceHash, TfArg<List<String>>? env, TfArg<List<String>>? secretEnv})
const

Properties

diskSizeGb → TfArg<int>?
Boot disk size in GB (max 1000). Default 100.
final
dynamicSubstitutions → TfArg<bool>?
When true, substitutions undergo bash-style string operations (e.g. ${_FOO:-default}). Always-on for trigger-driven builds.
final
env → TfArg<List<String>>?
Build-wide env vars in 'KEY=VALUE' form. Available to every step.
final
hashCode int
The hash code for this object.
no setterinherited
logging → TfArg<CloudBuildTriggerBuildLogging>?
Where the build sends logs.
final
logStreamingOption → TfArg<CloudBuildTriggerLogStreamingOption>?
Live log streaming policy.
final
machineType → TfArg<String>?
Worker machine type. Free-form on the wire (the provider schema declares it as a plain string). Common values published in the Cloud Build catalog at API GA:
final
requestedVerifyOption → TfArg<CloudBuildTriggerRequestedVerifyOption>?
Provenance attestation policy.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretEnv → TfArg<List<String>>?
Names of KMS-encrypted env vars (defined under CloudbuildTriggerBuild.advancedExtra's secret block) to inject into every step.
final
sourceProvenanceHash → TfArg<List<CloudBuildTriggerSourceProvenanceHash>>?
Source-archive hash algorithms to record. Multiple algorithms can be requested simultaneously.
final
substitutionOption → TfArg<CloudBuildTriggerSubstitutionOption>?
Substitution validation policy. NOTE the API ignores this for trigger-driven builds and always uses CloudBuildTriggerSubstitutionOption.allowLoose — the field matters only when re-running the same build config standalone.
final
workerPool → TfArg<String>?
Worker pool resource id. Format: 'projects/{project}/workerPools/{workerPool}'. Typically passed as TfArg.ref(pool.id) against a sibling GoogleCloudbuildWorkerPool; within a Terraform configuration often plumbed via var.cloudbuild_worker_pool_id.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited