import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Get a single trigger. */ export declare function getTrigger(args: GetTriggerArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetTriggerArgs { location: string; project?: string; triggerId: string; } export interface GetTriggerResult { /** * The creation time. */ readonly createTime: string; /** * Destination specifies where the events should be sent to. */ readonly destination: outputs.eventarc.v1beta1.DestinationResponse; /** * This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding. */ readonly etag: string; /** * Optional. User labels attached to the triggers that can be used to group resources. */ readonly labels: { [key: string]: string; }; /** * Unordered list. The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination. */ readonly matchingCriteria: outputs.eventarc.v1beta1.MatchingCriteriaResponse[]; /** * The resource name of the trigger. Must be unique within the location on the project and must in `projects/{project}/locations/{location}/triggers/{trigger}` format. */ readonly name: string; /** * Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have 'eventarc.events.receiveAuditLogV1Written' permission. */ readonly serviceAccount: string; /** * In order to deliver messages, Eventarc may use other Google Cloud products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes. */ readonly transport: outputs.eventarc.v1beta1.TransportResponse; /** * The last-modified time. */ readonly updateTime: string; } /** * Get a single trigger. */ export declare function getTriggerOutput(args: GetTriggerOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetTriggerOutputArgs { location: pulumi.Input; project?: pulumi.Input; triggerId: pulumi.Input; }