com.pulumi.gcp.storage.kotlin.outputs.TransferJobNotificationConfig.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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 TransferJobNotificationConfig(
public val eventTypes: List? = null,
public val payloadFormat: String,
public val pubsubTopic: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.storage.outputs.TransferJobNotificationConfig): TransferJobNotificationConfig = TransferJobNotificationConfig(
eventTypes = javaType.eventTypes().map({ args0 -> args0 }),
payloadFormat = javaType.payloadFormat(),
pubsubTopic = javaType.pubsubTopic(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy