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

com.pulumi.gcp.container.kotlin.outputs.ClusterNotificationConfigPubsub.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.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property enabled Whether or not the notification config is enabled
 * @property filter Choose what type of notifications you want to receive. If no filters are applied, you'll receive all notification types. Structure is documented below.
 * @property topic The pubsub topic to push upgrade notifications to. Must be in the same project as the cluster. Must be in the format: `projects/{project}/topics/{topic}`.
 */
public data class ClusterNotificationConfigPubsub(
    public val enabled: Boolean,
    public val filter: ClusterNotificationConfigPubsubFilter? = null,
    public val topic: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNotificationConfigPubsub): ClusterNotificationConfigPubsub = ClusterNotificationConfigPubsub(
            enabled = javaType.enabled(),
            filter = javaType.filter().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.container.kotlin.outputs.ClusterNotificationConfigPubsubFilter.Companion.toKotlin(args0)
                })
            }).orElse(null),
            topic = javaType.topic().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy