SubscriptionArgs

data class SubscriptionArgs(val deliveryConfig: Output<DeliveryConfigArgs>? = null, val exportConfig: Output<ExportConfigArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val skipBacklog: Output<Boolean>? = null, val subscriptionId: Output<String>? = null, val topic: Output<String>? = null) : ConvertibleToJava<SubscriptionArgs>

Creates a new subscription.

Constructors

Link copied to clipboard
fun SubscriptionArgs(deliveryConfig: Output<DeliveryConfigArgs>? = null, exportConfig: Output<ExportConfigArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, skipBacklog: Output<Boolean>? = null, subscriptionId: Output<String>? = null, topic: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val deliveryConfig: Output<DeliveryConfigArgs>? = null

The settings for this subscription's message delivery.

Link copied to clipboard
val exportConfig: Output<ExportConfigArgs>? = null

If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val skipBacklog: Output<Boolean>? = null

If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.

Link copied to clipboard
val subscriptionId: Output<String>? = null

Required. The ID to use for the subscription, which will become the final component of the subscription's name. This value is structured like: my-sub-name.

Link copied to clipboard
val topic: Output<String>? = null

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}