# Class Trigger (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.3 1.14.0 1.13.2 1.12.0 1.11.5 1.10.0 1.9.2 1.8.1 1.7.0 1.6.3 1.5.1 1.4.2 1.3.0 1.2.1 1.1.0 1.0.2 0.2.4 0.1.0

    Trigger(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A representation of the trigger resource.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Required. 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. |
| `uid` | `str` 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. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The creation time. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The last-modified time. |
| `event_filters` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.EventFilter]` Required. Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination. |
| `service_account` | `str` 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. |
| `destination` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.Destination` Required. Destination specifies where the events should be sent to. |
| `transport` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.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. |
| `labels` | `MutableMapping[str, str]` Optional. User labels attached to the triggers that can be used to group resources. |
| `channel` | `str` 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` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.StateCondition]` Output only. The reason(s) why a trigger is in FAILED state. |
| `event_data_content_type` | `str` 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. |
| `satisfies_pzs` | `bool` Output only. Whether or not this Trigger satisfies the requirements of physical zone separation |
| `retry_policy` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.Trigger.RetryPolicy` Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events |
| `etag` | `str` Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding. |

## Classes

### ConditionsEntry

    ConditionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### RetryPolicy

    RetryPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The retry policy configuration for the Trigger.

Can only be set with Cloud Run destinations.