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; /** * 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: pulumi.Output; /** * The reason(s) why a trigger is in FAILED state. */ readonly conditions: pulumi.Output<{ [key: string]: string; }>; /** * 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 might be sent only on create requests to ensure that the client has an up-to-date value before proceeding. */ readonly etag: pulumi.Output; /** * 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: pulumi.Output; /** * 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: 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; /** * 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: 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 `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: pulumi.Output; /** * 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: pulumi.Output; /** * Required. The user-provided ID to be assigned to the trigger. */ readonly triggerId: pulumi.Output; /** * 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: 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 { /** * 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. */ channel?: pulumi.Input; /** * Destination specifies where the events should be sent to. */ destination: pulumi.Input; /** * 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. */ eventDataContentType?: pulumi.Input; /** * Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination. */ eventFilters: 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; /** * 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. */ 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 `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. */ serviceAccount?: pulumi.Input; /** * 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. */ transport?: pulumi.Input; /** * Required. The user-provided ID to be assigned to the trigger. */ triggerId: pulumi.Input; }