TriggerArgs class
The set of arguments for Trigger. The set of arguments for Trigger.
Constructors
-
TriggerArgs({Input<
String> ? channel, required Input<Destination> destination, Input<String> ? eventDataContentType, required Input<List< eventFilters, Input<EventFilter> >Map< ? labels, Input<String, String> >String> ? location, Input<String> ? name, Input<String> ? project, Input<String> ? serviceAccount, Input<Transport> ? transport, required Input<String> triggerId}) -
Creates a new TriggerArgs.
channelOptional. The name of the channel associated with the trigger inprojects/{project}/locations/{location}/channels/{channel}format. You must provide a channel to receive events from Eventarc SaaS partners.destinationDestination specifies where the events should be sent to.eventDataContentTypeOptional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set toapplication/jsonif the value is not defined.eventFiltersUnordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.labelsOptional. User labels attached to the triggers that can be used to group resources.locationOptional.nameThe resource name of the trigger. Must be unique within the location of the project and must be inprojects/{project}/locations/{location}/triggers/{trigger}format.projectOptional.serviceAccountOptional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. Theiam.serviceAccounts.actAspermission 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.transportOptional. 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.triggerIdRequired. The user-provided ID to be assigned to the trigger.const -
TriggerArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
channel
→ Input<
String> ? -
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.final -
destination
→ Input<
Destination> -
Destination specifies where the events should be sent to.
final
-
eventDataContentType
→ Input<
String> ? -
Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to
application/jsonif the value is not defined.final -
eventFilters
→ Input<
List< EventFilter> > -
Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Input<
Map< ?String, String> > -
Optional. User labels attached to the triggers that can be used to group resources.
final
-
location
→ Input<
String> ? -
final
-
name
→ Input<
String> ? -
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.final -
project
→ Input<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceAccount
→ Input<
String> ? -
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The
iam.serviceAccounts.actAspermission 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.final -
transport
→ Input<
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.
final
-
triggerId
→ Input<
String> -
Required. The user-provided ID to be assigned to the trigger.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited