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

ExportConfig

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

Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription.

interface ExportConfig {
readonly currentState?:
| "STATE_UNSPECIFIED"
| "ACTIVE"
| "PAUSED"
| "PERMISSION_DENIED"
| "NOT_FOUND";
deadLetterTopic?: string;
desiredState?:
| "STATE_UNSPECIFIED"
| "ACTIVE"
| "PAUSED"
| "PERMISSION_DENIED"
| "NOT_FOUND";
pubsubConfig?: PubSubConfig;
}

§Properties

§
readonly currentState?: "STATE_UNSPECIFIED" | "ACTIVE" | "PAUSED" | "PERMISSION_DENIED" | "NOT_FOUND"
[src]

Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.

§
deadLetterTopic?: string
[src]

Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.

§
desiredState?: "STATE_UNSPECIFIED" | "ACTIVE" | "PAUSED" | "PERMISSION_DENIED" | "NOT_FOUND"
[src]

The desired state of this export. Setting this to values other than ACTIVE and PAUSED will result in an error.

§
pubsubConfig?: PubSubConfig
[src]

Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.