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 { /** * Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners. */ readonly channel: string; /** * The reason(s) why a trigger is in FAILED state. */ readonly conditions: { [key: string]: string; }; /** * The creation time. */ readonly createTime: string; /** * Destination specifies where the events should be sent to. */ readonly destination: outputs.eventarc.v1.DestinationResponse; /** * This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding. */ readonly etag: string; /** * Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined. */ readonly eventDataContentType: string; /** * Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination. */ readonly eventFilters: outputs.eventarc.v1.EventFilterResponse[]; /** * Optional. User labels attached to the triggers that can be used to group resources. */ readonly labels: { [key: string]: string; }; /** * The resource name of the trigger. Must be unique within the location of the project and must be 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 `iam.serviceAccounts.actAs` permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific to the trigger destination. */ readonly serviceAccount: string; /** * Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes. */ readonly transport: outputs.eventarc.v1.TransportResponse; /** * Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. */ readonly uid: string; /** * 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; }