get Trigger
To get more information about Cloudbuild Trigger, see:
How-to Guides
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudbuild.CloudbuildFunctions;
import com.pulumi.gcp.cloudbuild.inputs.GetTriggerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var name = CloudbuildFunctions.getTrigger(GetTriggerArgs.builder()
.project("your-project-id")
.triggerId(google_cloudbuild_trigger.filename-trigger().trigger_id())
.location("location of trigger build")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getTrigger.
Parameters
argument
A collection of arguments for invoking getTrigger.
suspend fun getTrigger(location: String, project: String? = null, triggerId: String): GetTriggerResult
Return
A collection of values returned by getTrigger.
Parameters
location
The Cloud Build location for the trigger.
project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
trigger Id
The unique identifier for the trigger..
See also
Return
A collection of values returned by getTrigger.
Parameters
argument
Builder for com.pulumi.gcp.cloudbuild.kotlin.inputs.GetTriggerPlainArgs.