All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.cloudscheduler.v1.kotlin.outputs.PubsubTargetResponse.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.cloudscheduler.v1.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 * Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.
 * @property attributes Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
 * @property data The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
 * @property topicName 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](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must be in the same project as the Cloud Scheduler job.
 */
public data class PubsubTargetResponse(
    public val attributes: Map,
    public val `data`: String,
    public val topicName: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.cloudscheduler.v1.outputs.PubsubTargetResponse): PubsubTargetResponse = PubsubTargetResponse(
            attributes = javaType.attributes().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            `data` = javaType.`data`(),
            topicName = javaType.topicName(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy