Either messages or changes must be set.

interface SubscriptionDraft {
    changes?: ChangeSubscription[];
    destination: Destination;
    format?: DeliveryFormat;
    key?: string;
    messages?: MessageSubscription[];
}

Properties

changes?: ChangeSubscription[]

Change notifications to be subscribed to.

destination: Destination

Messaging service to which the messages are sent.

Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

key?: string

User-defined unique identifier for the Subscription.

messages?: MessageSubscription[]

Messages to be subscribed to.

Generated using TypeDoc