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

com.pulumi.awsnative.chatbot.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.chatbot.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn Amazon Resource Name (ARN) of the configuration
 * @property guardrailPolicies The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
 * @property iamRoleArn The ARN of the IAM role that defines the permissions for AWS Chatbot
 * @property loggingLevel Specifies the logging level for this configuration:ERROR,INFO or NONE. This property affects the log entries pushed to Amazon CloudWatch logs
 * @property slackChannelId The id of the Slack channel
 * @property snsTopicArns ARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.
 * @property tags The tags to add to the configuration
 * @property userRoleRequired Enables use of a user role requirement in your chat configuration
 */
public data class GetSlackChannelConfigurationResult(
    public val arn: String? = null,
    public val guardrailPolicies: List? = null,
    public val iamRoleArn: String? = null,
    public val loggingLevel: String? = null,
    public val slackChannelId: String? = null,
    public val snsTopicArns: List? = null,
    public val tags: List? = null,
    public val userRoleRequired: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.chatbot.outputs.GetSlackChannelConfigurationResult): GetSlackChannelConfigurationResult = GetSlackChannelConfigurationResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            guardrailPolicies = javaType.guardrailPolicies().map({ args0 -> args0 }),
            iamRoleArn = javaType.iamRoleArn().map({ args0 -> args0 }).orElse(null),
            loggingLevel = javaType.loggingLevel().map({ args0 -> args0 }).orElse(null),
            slackChannelId = javaType.slackChannelId().map({ args0 -> args0 }).orElse(null),
            snsTopicArns = javaType.snsTopicArns().map({ args0 -> args0 }),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            userRoleRequired = javaType.userRoleRequired().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy