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

com.pulumi.awsnative.supportapp.kotlin.outputs.GetSlackChannelConfigurationResult.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.supportapp.kotlin.outputs

import com.pulumi.awsnative.supportapp.kotlin.enums.SlackChannelConfigurationNotifyOnCaseSeverity
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property channelName The channel name in Slack.
 * @property channelRoleArn The Amazon Resource Name (ARN) of an IAM role that grants the AWS Support App access to perform operations for AWS services.
 * @property notifyOnAddCorrespondenceToCase Whether to notify when a correspondence is added to a case.
 * @property notifyOnCaseSeverity The severity level of a support case that a customer wants to get notified for.
 * @property notifyOnCreateOrReopenCase Whether to notify when a case is created or reopened.
 * @property notifyOnResolveCase Whether to notify when a case is resolved.
 */
public data class GetSlackChannelConfigurationResult(
    public val channelName: String? = null,
    public val channelRoleArn: String? = null,
    public val notifyOnAddCorrespondenceToCase: Boolean? = null,
    public val notifyOnCaseSeverity: SlackChannelConfigurationNotifyOnCaseSeverity? = null,
    public val notifyOnCreateOrReopenCase: Boolean? = null,
    public val notifyOnResolveCase: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.supportapp.outputs.GetSlackChannelConfigurationResult): GetSlackChannelConfigurationResult = GetSlackChannelConfigurationResult(
            channelName = javaType.channelName().map({ args0 -> args0 }).orElse(null),
            channelRoleArn = javaType.channelRoleArn().map({ args0 -> args0 }).orElse(null),
            notifyOnAddCorrespondenceToCase = javaType.notifyOnAddCorrespondenceToCase().map({ args0 ->
                args0
            }).orElse(null),
            notifyOnCaseSeverity = javaType.notifyOnCaseSeverity().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.supportapp.kotlin.enums.SlackChannelConfigurationNotifyOnCaseSeverity.Companion.toKotlin(args0)
                })
            }).orElse(null),
            notifyOnCreateOrReopenCase = javaType.notifyOnCreateOrReopenCase().map({ args0 ->
                args0
            }).orElse(null),
            notifyOnResolveCase = javaType.notifyOnResolveCase().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy