TriggerArgs constructor
- Input<
String> ? channel, - required Input<
Destination> destination, - Input<
String> ? eventDataContentType, - required Input<
List< eventFilters,EventFilter> > - Input<
Map< ? labels,String, String> > - Input<
String> ? location, - Input<
String> ? name, - Input<
String> ? project, - Input<
String> ? serviceAccount, - Input<
Transport> ? transport, - required Input<
String> triggerId,
Creates a new TriggerArgs.
channel 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.
destination Destination specifies where the events should be sent to.
eventDataContentType 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.
eventFilters Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.
labels Optional. User labels attached to the triggers that can be used to group resources.
location Optional.
name 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.
project Optional.
serviceAccount 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 page specific to the trigger destination.
transport 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.
triggerId Required. The user-provided ID to be assigned to the trigger.
Implementation
const TriggerArgs({
this.channel,
required this.destination,
this.eventDataContentType,
required this.eventFilters,
this.labels,
this.location,
this.name,
this.project,
this.serviceAccount,
this.transport,
required this.triggerId,
});