com.pulumi.gcp.storage.kotlin.inputs.TransferJobNotificationConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.storage.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.storage.inputs.TransferJobNotificationConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property eventTypes Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED".
* @property payloadFormat The desired format of the notification message payloads. One of "NONE" or "JSON".
* @property pubsubTopic The Topic.name of the Pub/Sub topic to which to publish notifications. Must be of the format: projects/{project}/topics/{topic}. Not matching this format results in an INVALID_ARGUMENT error.
*/
public data class TransferJobNotificationConfigArgs(
public val eventTypes: Output>? = null,
public val payloadFormat: Output,
public val pubsubTopic: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.storage.inputs.TransferJobNotificationConfigArgs =
com.pulumi.gcp.storage.inputs.TransferJobNotificationConfigArgs.builder()
.eventTypes(eventTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.payloadFormat(payloadFormat.applyValue({ args0 -> args0 }))
.pubsubTopic(pubsubTopic.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TransferJobNotificationConfigArgs].
*/
@PulumiTagMarker
public class TransferJobNotificationConfigArgsBuilder internal constructor() {
private var eventTypes: Output>? = null
private var payloadFormat: Output? = null
private var pubsubTopic: Output? = null
/**
* @param value Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED".
*/
@JvmName("ykrjeqdaodwnvkwo")
public suspend fun eventTypes(`value`: Output>) {
this.eventTypes = value
}
@JvmName("rwssjsxferpiggpv")
public suspend fun eventTypes(vararg values: Output) {
this.eventTypes = Output.all(values.asList())
}
/**
* @param values Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED".
*/
@JvmName("owukblrjtruibhqp")
public suspend fun eventTypes(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy