TriggerArgs

data class TriggerArgs(val destination: Output<DestinationArgs>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val matchingCriteria: Output<List<MatchingCriteriaArgs>>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val serviceAccount: Output<String>? = 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(destination: Output<DestinationArgs>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, matchingCriteria: Output<List<MatchingCriteriaArgs>>? = null, name: Output<String>? = null, project: Output<String>? = null, serviceAccount: Output<String>? = null, triggerId: Output<String>? = null)

Functions

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

Properties

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

Destination specifies where the events should be sent to.

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

Unordered list. The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.

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

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.

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 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.

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

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