TriggerArgs class

The set of arguments for Trigger. The set of arguments for Trigger.

Constructors

TriggerArgs({Input<String?>? channel, Input<String?>? deletionPolicy, required Input<TriggerDestination> destination, Input<String?>? eventDataContentType, Input<Map<String, String>?>? labels, required Input<String> location, required Input<List<TriggerMatchingCriteria>> matchingCriterias, Input<String?>? name, Input<String?>? project, Input<TriggerRetryPolicy?>? retryPolicy, Input<String?>? serviceAccount, Input<TriggerTransport?>? transport})
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. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. destination Required. 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. labels Optional. User labels attached to the triggers that can be used to group resources. location The location for the resource matchingCriterias Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination. name Required. The resource name of the trigger. Must be unique within the location on the project. project The ID of the project in which the resource belongs. retryPolicy The retry policy configuration for the Trigger. serviceAccount 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#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 roles/eventarc.eventReceiver IAM role. transport Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
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
deletionPolicy → Input<String?>?
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
final
destination → Input<TriggerDestination>
Required. Destination specifies where the events should be sent to. Structure is documented below.
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/json if the value is not defined.
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. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effectiveLabels for all of the labels present on the resource.
final
location → Input<String>
The location for the resource
final
matchingCriterias → Input<List<TriggerMatchingCriteria>>
Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination. Structure is documented below.
final
name → Input<String?>?
Required. The resource name of the trigger. Must be unique within the location on the project.
final
project → Input<String?>?
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
final
retryPolicy → Input<TriggerRetryPolicy?>?
The retry policy configuration for the Trigger. Can only be set with Cloud Run destinations. Structure is documented below.
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 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#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 roles/eventarc.eventReceiver IAM role.
final
transport → Input<TriggerTransport?>?
Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes. Structure is documented below.
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