TriggerState class

Input properties used for looking up and filtering Trigger resources.

Constructors

TriggerState({Input<String?>? channel, Input<Map<String, String>?>? conditions, Input<String?>? createTime, Input<String?>? deletionPolicy, Input<TriggerDestination?>? destination, Input<Map<String, String>?>? effectiveLabels, Input<String?>? etag, Input<String?>? eventDataContentType, Input<Map<String, String>?>? labels, Input<String?>? location, Input<List<TriggerMatchingCriteria>?>? matchingCriterias, Input<String?>? name, Input<String?>? project, Input<Map<String, String>?>? pulumiLabels, Input<TriggerRetryPolicy?>? retryPolicy, Input<String?>? serviceAccount, Input<TriggerTransport?>? transport, Input<String?>? uid, Input<String?>? updateTime})
Creates a new TriggerState. 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. conditions Output only. The reason(s) why a trigger is in FAILED state. createTime Output only. The creation time. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. destination Required. Destination specifies where the events should be sent to. effectiveLabels All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. etag Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding. 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. pulumiLabels The combination of labels configured directly on the resource 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. uid Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. updateTime Output only. The last-modified time.
const
TriggerState.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
conditions → Input<Map<String, String>?>?
Output only. The reason(s) why a trigger is in FAILED state.
final
createTime → Input<String?>?
Output only. The creation time.
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
effectiveLabels → Input<Map<String, String>?>?
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
final
etag → Input<String?>?
Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.
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
pulumiLabels → Input<Map<String, String>?>?
The combination of labels configured directly on the resource and default labels configured on the provider.
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
uid → Input<String?>?
Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
final
updateTime → Input<String?>?
Output only. The last-modified time.
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