import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Create a new trigger in a particular project and location. */ export declare class Trigger extends pulumi.CustomResource { /** * Get an existing Trigger resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Trigger; /** * Returns true if the given object is an instance of Trigger. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Trigger; /** * The creation time. */ readonly createTime: pulumi.Output; /** * Destination specifies where the events should be sent to. */ readonly destination: pulumi.Output; /** * 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: pulumi.Output; /** * Optional. User labels attached to the triggers that can be used to group resources. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * Unordered list. The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination. */ readonly matchingCriteria: pulumi.Output; /** * 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: pulumi.Output; readonly project: pulumi.Output; /** * 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: pulumi.Output; /** * 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: pulumi.Output; /** * Required. The user-provided ID to be assigned to the trigger. */ readonly triggerId: pulumi.Output; /** * The last-modified time. */ readonly updateTime: pulumi.Output; /** * Create a Trigger resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TriggerArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Trigger resource. */ export interface TriggerArgs { /** * Destination specifies where the events should be sent to. */ destination: pulumi.Input; /** * Optional. User labels attached to the triggers that can be used to group resources. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; /** * Unordered list. The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination. */ matchingCriteria: pulumi.Input[]>; /** * 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. */ name?: pulumi.Input; project?: pulumi.Input; /** * 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. */ serviceAccount?: pulumi.Input; /** * Required. The user-provided ID to be assigned to the trigger. */ triggerId: pulumi.Input; }