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

com.pulumi.gcp.cloudscheduler.kotlin.outputs.JobPubsubTarget.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudscheduler.kotlin.outputs

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

/**
 *
 * @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.
 * A base64-encoded string.
 * @property topicName The full resource name for the Cloud Pub/Sub topic to which
 * messages will be published when a job is delivered. ~>**NOTE:**
 * The topic name must be in the same format as required by PubSub's
 * PublishRequest.name, e.g. `projects/my-project/topics/my-topic`.
 */
public data class JobPubsubTarget(
    public val attributes: Map? = null,
    public val `data`: String? = null,
    public val topicName: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudscheduler.outputs.JobPubsubTarget): JobPubsubTarget = JobPubsubTarget(
            attributes = javaType.attributes().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            `data` = javaType.`data`().map({ args0 -> args0 }).orElse(null),
            topicName = javaType.topicName(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy