Skip to content

Commit

Permalink
add enforce_in_transit field in google_pubsub_topic (#12716)
Browse files Browse the repository at this point in the history
  • Loading branch information
translucens authored Jan 15, 2025
1 parent 8086596 commit 4735383
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mmv1/products/pubsub/Topic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ properties:
required: true
item_type:
type: String
- name: "enforceInTransit"
type: Boolean
description: |
If true, `allowedPersistenceRegions` is also used to enforce in-transit
guarantees for messages. That is, Pub/Sub will fail topics.publish
operations on this topic and subscribe operations on any subscription
attached to this topic in any region that is not in `allowedPersistenceRegions`.
required: false
- name: 'schemaSettings'
type: NestedObject
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ resource "google_pubsub_topic" "{{$.PrimaryResourceId}}" {
allowed_persistence_regions = [
"europe-west3",
]
enforce_in_transit = true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ resource "google_pubsub_topic" "foo" {
allowed_persistence_regions = [
"%s",
]
enforce_in_transit = false
}
}
`, topic, key, value, region)
Expand Down

0 comments on commit 4735383

Please sign in to comment.