Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MessageStoragePolicy

import type { MessageStoragePolicy } from "https://googleapis.deno.dev/v1/pubsub:v1.ts";

A policy constraining the storage of messages published to the topic.

interface MessageStoragePolicy {
allowedPersistenceRegions?: string[];
enforceInTransit?: boolean;
}

§Properties

§
allowedPersistenceRegions?: string[]
[src]

Optional. A list of IDs of Google Cloud regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed Google Cloud regions (or running outside of Google Cloud altogether) are routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.

§
enforceInTransit?: boolean
[src]

Optional. If true, allowed_persistence_regions is also used to enforce in-transit guarantees for messages. That is, Pub/Sub will fail Publish operations on this topic and subscribe operations on any subscription attached to this topic in any region that is not in allowed_persistence_regions.