
com.pulumi.gcp.monitoring.kotlin.outputs.GetNotificationChannelResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.monitoring.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getNotificationChannel.
* @property description An optional human-readable description of this notification channel.
* @property displayName
* @property enabled Whether notifications are forwarded to the described channel.
* @property forceDelete
* @property id The provider-assigned unique ID for this managed resource.
* @property labels Configuration fields that define the channel and its behavior.
* @property name The full REST resource name for this channel. The syntax is:
* `projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]`.
* @property project
* @property sensitiveLabels
* @property type
* @property userLabels User-supplied key/value data that does not need to conform to the corresponding NotificationChannelDescriptor's schema, unlike the labels field.
* @property verificationStatus Indicates whether this channel has been verified or not.
*/
public data class GetNotificationChannelResult(
public val description: String,
public val displayName: String? = null,
public val enabled: Boolean,
public val forceDelete: Boolean,
public val id: String,
public val labels: Map? = null,
public val name: String,
public val project: String? = null,
public val sensitiveLabels: List,
public val type: String? = null,
public val userLabels: Map? = null,
public val verificationStatus: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.GetNotificationChannelResult): GetNotificationChannelResult = GetNotificationChannelResult(
description = javaType.description(),
displayName = javaType.displayName().map({ args0 -> args0 }).orElse(null),
enabled = javaType.enabled(),
forceDelete = javaType.forceDelete(),
id = javaType.id(),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
name = javaType.name(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
sensitiveLabels = javaType.sensitiveLabels().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.monitoring.kotlin.outputs.GetNotificationChannelSensitiveLabel.Companion.toKotlin(args0)
})
}),
type = javaType.type().map({ args0 -> args0 }).orElse(null),
userLabels = javaType.userLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
verificationStatus = javaType.verificationStatus(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy