Skip to content

BuildCloudEventOptions

Fully-resolved options required to materialize a CloudEvent.

CloudEvents specification

optional id?: string

CloudEvent id. Defaults to a generated UUID.

PublishOptions.id


optional metadata?: Record<string, CloudEventMetadataValue>

Additional CloudEvent extension attributes.

PublishOptions.metadata


optional notBefore?: Timestamp

Durable one-shot delayed delivery deadline.

Production transports must persist the delay before accepting the publish and must not deliver before this timestamp.

google.protobuf.Timestamp

PublishOptions.notBefore


source: string

Resolved CloudEvent source.

PublishOptions.source


optional time?: string | Date

CloudEvent time. Defaults to the current time.

PublishOptions.time


optional topic?: string

Transport delivery topic. Overrides publisher topic defaults for this call only.

PublishOptions.topic


type: string

Resolved CloudEvent type.

PublishOptions.type