PubsubTargetArgs

data class PubsubTargetArgs(val attributes: Output<Map<String, String>>? = null, val data: Output<String>? = null, val topicName: Output<String>) : ConvertibleToJava<PubsubTargetArgs>

Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.

Constructors

Link copied to clipboard
fun PubsubTargetArgs(attributes: Output<Map<String, String>>? = null, data: Output<String>? = null, topicName: Output<String>)

Functions

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

Properties

Link copied to clipboard
val attributes: Output<Map<String, String>>? = null

Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.

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

The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.

Link copied to clipboard
val topicName: Output<String>

The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub/Sub's PublishRequest.name, for example projects/PROJECT_ID/topics/TOPIC_ID. The topic must be in the same project as the Cloud Scheduler job.