Skip to content

Commit afa180c

Browse files
authored
eventarc: add retry_policy field to google_eventarc_trigger resource (#15909)
1 parent d7c8e2b commit afa180c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

mmv1/products/eventarc/Trigger.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,15 @@ properties:
264264
type: String
265265
description: 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.
266266
default_from_api: true
267+
- name: retryPolicy
268+
type: NestedObject
269+
description: |-
270+
The retry policy configuration for the Trigger.
271+
272+
Can only be set with Cloud Run destinations.
273+
properties:
274+
- name: maxAttempts
275+
type: Integer
276+
description: |-
277+
The maximum number of delivery attempts for any message. The only valid
278+
value is 1.

mmv1/templates/terraform/examples/eventarc_trigger_with_cloud_run_destination.tf.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ resource "google_eventarc_trigger" "{{$.PrimaryResourceId}}" {
1919
topic = google_pubsub_topic.foo.id
2020
}
2121
}
22+
retry_policy {
23+
max_attempts = 1
24+
}
2225
}
2326

2427
resource "google_pubsub_topic" "foo" {

0 commit comments

Comments
 (0)