TriggerArgs

data class TriggerArgs(val channel: Output<String>? = null, val destination: Output<DestinationArgs>? = null, val eventDataContentType: Output<String>? = null, val eventFilters: Output<List<EventFilterArgs>>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val serviceAccount: Output<String>? = null, val transport: Output<TransportArgs>? = null, val triggerId: Output<String>? = null) : ConvertibleToJava<TriggerArgs>

Create a new trigger in a particular project and location.

Constructors

Link copied to clipboard
fun TriggerArgs(channel: Output<String>? = null, destination: Output<DestinationArgs>? = null, eventDataContentType: Output<String>? = null, eventFilters: Output<List<EventFilterArgs>>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, serviceAccount: Output<String>? = null, transport: Output<TransportArgs>? = null, triggerId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TriggerArgs

Properties

Link copied to clipboard
val channel: Output<String>? = null

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.

Link copied to clipboard
val destination: Output<DestinationArgs>? = null

Destination specifies where the events should be sent to.

Link copied to clipboard
val eventDataContentType: Output<String>? = null

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.

Link copied to clipboard
val eventFilters: Output<List<EventFilterArgs>>? = null

Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Optional. User labels attached to the triggers that can be used to group resources.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

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.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val serviceAccount: Output<String>? = null

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 /eventarc/docs/all-roles-permissions page specific to the trigger destination.

Link copied to clipboard
val transport: Output<TransportArgs>? = null

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.

Link copied to clipboard
val triggerId: Output<String>? = null

Required. The user-provided ID to be assigned to the trigger.