TopicMessageStoragePolicyArgs

data class TopicMessageStoragePolicyArgs(val allowedPersistenceRegions: Output<List<String>>, val enforceInTransit: Output<Boolean>? = null) : ConvertibleToJava<TopicMessageStoragePolicyArgs>

Constructors

Link copied to clipboard
constructor(allowedPersistenceRegions: Output<List<String>>, enforceInTransit: Output<Boolean>? = null)

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
val enforceInTransit: Output<Boolean>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): TopicMessageStoragePolicyArgs