Topic Message Storage Policy Args
data class TopicMessageStoragePolicyArgs(val allowedPersistenceRegions: Output<List<String>>, val enforceInTransit: Output<Boolean>? = null) : ConvertibleToJava<TopicMessageStoragePolicyArgs>
Properties
Link copied to clipboard
A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
Link copied to clipboard
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
.