TriggerState class
Input properties used for looking up and filtering Trigger resources.
Constructors
-
TriggerState({Input<
String?> ? channel, Input<Map< ? conditions, Input<String, String> ?>String?> ? createTime, Input<String?> ? deletionPolicy, Input<TriggerDestination?> ? destination, Input<Map< ? effectiveLabels, Input<String, String> ?>String?> ? etag, Input<String?> ? eventDataContentType, Input<Map< ? labels, Input<String, String> ?>String?> ? location, Input<List< ? matchingCriterias, Input<TriggerMatchingCriteria> ?>String?> ? name, Input<String?> ? project, Input<Map< ? pulumiLabels, Input<String, String> ?>TriggerRetryPolicy?> ? retryPolicy, Input<String?> ? serviceAccount, Input<TriggerTransport?> ? transport, Input<String?> ? uid, Input<String?> ? updateTime}) -
Creates a new TriggerState.
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.conditionsOutput only. The reason(s) why a trigger is in FAILED state.createTimeOutput only. The creation time.deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.destinationRequired. Destination specifies where the events should be sent to.effectiveLabelsAll of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.etagOutput 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.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.labelsOptional. User labels attached to the triggers that can be used to group resources.locationThe location for the resourcematchingCriteriasRequired. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.nameRequired. The resource name of the trigger. Must be unique within the location on the project.projectThe ID of the project in which the resource belongs.pulumiLabelsThe combination of labels configured directly on the resourceretryPolicyThe retry policy configuration for the Trigger.serviceAccountOptional. 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 haveiam.serviceAccounts.actAspermission 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 haveroles/eventarc.eventReceiverIAM role.transportOptional. 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.uidOutput only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.updateTimeOutput 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/jsonif 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
effectiveLabelsfor 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.actAspermission 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 haveroles/eventarc.eventReceiverIAM 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