import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * To get more information about Cloudbuild Trigger, see: * * * [API documentation](https://cloud.google.com/build/docs/api/reference/rest/v1/projects.triggers) * * How-to Guides * * [Official Documentation](https://cloud.google.com/build/docs/automating-builds/create-manage-triggers) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const name = gcp.cloudbuild.getTrigger({ * project: "your-project-id", * triggerId: filename_trigger.triggerId, * location: "location of trigger build", * }); * ``` */ export declare function getTrigger(args: GetTriggerArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getTrigger. */ export interface GetTriggerArgs { /** * The Cloud Build location for the trigger. * * - - - */ location: string; /** * The ID of the project in which the resource belongs. If it is not provided, the provider project is used. */ project?: string; /** * The unique identifier for the trigger.. */ triggerId: string; } /** * A collection of values returned by getTrigger. */ export interface GetTriggerResult { readonly approvalConfigs: outputs.cloudbuild.GetTriggerApprovalConfig[]; readonly bitbucketServerTriggerConfigs: outputs.cloudbuild.GetTriggerBitbucketServerTriggerConfig[]; readonly builds: outputs.cloudbuild.GetTriggerBuild[]; readonly createTime: string; readonly description: string; readonly developerConnectEventConfigs: outputs.cloudbuild.GetTriggerDeveloperConnectEventConfig[]; readonly disabled: boolean; readonly filename: string; readonly filter: string; readonly gitFileSources: outputs.cloudbuild.GetTriggerGitFileSource[]; readonly githubs: outputs.cloudbuild.GetTriggerGithub[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ignoredFiles: string[]; readonly includeBuildLogs: string; readonly includedFiles: string[]; readonly location: string; readonly name: string; readonly project?: string; readonly pubsubConfigs: outputs.cloudbuild.GetTriggerPubsubConfig[]; readonly repositoryEventConfigs: outputs.cloudbuild.GetTriggerRepositoryEventConfig[]; readonly serviceAccount: string; readonly sourceToBuilds: outputs.cloudbuild.GetTriggerSourceToBuild[]; readonly substitutions: { [key: string]: string; }; readonly tags: string[]; readonly triggerId: string; readonly triggerTemplates: outputs.cloudbuild.GetTriggerTriggerTemplate[]; readonly webhookConfigs: outputs.cloudbuild.GetTriggerWebhookConfig[]; } /** * To get more information about Cloudbuild Trigger, see: * * * [API documentation](https://cloud.google.com/build/docs/api/reference/rest/v1/projects.triggers) * * How-to Guides * * [Official Documentation](https://cloud.google.com/build/docs/automating-builds/create-manage-triggers) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const name = gcp.cloudbuild.getTrigger({ * project: "your-project-id", * triggerId: filename_trigger.triggerId, * location: "location of trigger build", * }); * ``` */ export declare function getTriggerOutput(args: GetTriggerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getTrigger. */ export interface GetTriggerOutputArgs { /** * The Cloud Build location for the trigger. * * - - - */ location: pulumi.Input; /** * The ID of the project in which the resource belongs. If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The unique identifier for the trigger.. */ triggerId: pulumi.Input; }