Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cloudfunctions2_function.html.markdown event_type doc #17282

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 11 additions & 9 deletions website/docs/r/cloudfunctions2_function.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,10 @@ The following arguments are supported:
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources.
It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

* `project` - (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
* `project` -
(Optional)
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.


<a name="nested_build_config"></a>The `build_config` block supports:
Expand Down Expand Up @@ -1046,7 +1048,7 @@ The following arguments are supported:

* `trigger` -
(Output)
Output only. The resource name of the Eventarc trigger.
The resource name of the Eventarc trigger.

* `trigger_region` -
(Optional)
Expand All @@ -1056,8 +1058,8 @@ The following arguments are supported:
region. If not provided, defaults to the same region as the function.

* `event_type` -
(Optional)
Required. The type of event to observe.
(Required)
The type of event to observe.

* `event_filters` -
(Optional)
Expand All @@ -1071,7 +1073,7 @@ The following arguments are supported:

* `service_account_email` -
(Optional)
Optional. The email of the trigger's service account. The service account
The email of the trigger's service account. The service account
must have permission to invoke Cloud Run services. If empty, defaults to the
Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.

Expand All @@ -1086,18 +1088,18 @@ The following arguments are supported:

* `attribute` -
(Required)
'Required. The name of a CloudEvents attribute.
The name of a CloudEvents attribute.
Currently, only a subset of attributes are supported for filtering. Use the `gcloud eventarc providers describe` command to learn more about events and their attributes.
Do not filter for the 'type' attribute here, as this is already achieved by the resource's `event_type` attribute.

* `value` -
(Required)
Required. The value for the attribute.
The value for the attribute.
If the operator field is set as `match-path-pattern`, this value can be a path pattern instead of an exact value.

* `operator` -
(Optional)
Optional. The operator used for matching the events with the value of
The operator used for matching the events with the value of
the filter. If not specified, only events that have an exact key-value
pair specified in the filter are matched.
The only allowed value is `match-path-pattern`.
Expand Down