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

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

import com.pulumi.awsnative.chatbot.SlackChannelConfigurationArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::Chatbot::SlackChannelConfiguration.
 * @property configurationName The name 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 slackWorkspaceId The id of the Slack workspace
 * @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 SlackChannelConfigurationArgs(
    public val configurationName: Output? = null,
    public val guardrailPolicies: Output>? = null,
    public val iamRoleArn: Output? = null,
    public val loggingLevel: Output? = null,
    public val slackChannelId: Output? = null,
    public val slackWorkspaceId: Output? = null,
    public val snsTopicArns: Output>? = null,
    public val tags: Output>? = null,
    public val userRoleRequired: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.chatbot.SlackChannelConfigurationArgs =
        com.pulumi.awsnative.chatbot.SlackChannelConfigurationArgs.builder()
            .configurationName(configurationName?.applyValue({ args0 -> args0 }))
            .guardrailPolicies(guardrailPolicies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .iamRoleArn(iamRoleArn?.applyValue({ args0 -> args0 }))
            .loggingLevel(loggingLevel?.applyValue({ args0 -> args0 }))
            .slackChannelId(slackChannelId?.applyValue({ args0 -> args0 }))
            .slackWorkspaceId(slackWorkspaceId?.applyValue({ args0 -> args0 }))
            .snsTopicArns(snsTopicArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .userRoleRequired(userRoleRequired?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SlackChannelConfigurationArgs].
 */
@PulumiTagMarker
public class SlackChannelConfigurationArgsBuilder internal constructor() {
    private var configurationName: Output? = null

    private var guardrailPolicies: Output>? = null

    private var iamRoleArn: Output? = null

    private var loggingLevel: Output? = null

    private var slackChannelId: Output? = null

    private var slackWorkspaceId: Output? = null

    private var snsTopicArns: Output>? = null

    private var tags: Output>? = null

    private var userRoleRequired: Output? = null

    /**
     * @param value The name of the configuration
     */
    @JvmName("mthvdqugakijrusx")
    public suspend fun configurationName(`value`: Output) {
        this.configurationName = value
    }

    /**
     * @param value 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.
     */
    @JvmName("wiyrdmlnujfiwkcg")
    public suspend fun guardrailPolicies(`value`: Output>) {
        this.guardrailPolicies = value
    }

    @JvmName("loedwutnulxlpjpe")
    public suspend fun guardrailPolicies(vararg values: Output) {
        this.guardrailPolicies = Output.all(values.asList())
    }

    /**
     * @param values 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.
     */
    @JvmName("kxanofqlcrwakktt")
    public suspend fun guardrailPolicies(values: List>) {
        this.guardrailPolicies = Output.all(values)
    }

    /**
     * @param value The ARN of the IAM role that defines the permissions for AWS Chatbot
     */
    @JvmName("ihgwtqgfempqagix")
    public suspend fun iamRoleArn(`value`: Output) {
        this.iamRoleArn = value
    }

    /**
     * @param value Specifies the logging level for this configuration:ERROR,INFO or NONE. This property affects the log entries pushed to Amazon CloudWatch logs
     */
    @JvmName("nwpmlcpypvoheafw")
    public suspend fun loggingLevel(`value`: Output) {
        this.loggingLevel = value
    }

    /**
     * @param value The id of the Slack channel
     */
    @JvmName("yjcecamxplplkofu")
    public suspend fun slackChannelId(`value`: Output) {
        this.slackChannelId = value
    }

    /**
     * @param value The id of the Slack workspace
     */
    @JvmName("byvuptvwxnpwsery")
    public suspend fun slackWorkspaceId(`value`: Output) {
        this.slackWorkspaceId = value
    }

    /**
     * @param value ARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.
     */
    @JvmName("nshsqlflfhsgorlb")
    public suspend fun snsTopicArns(`value`: Output>) {
        this.snsTopicArns = value
    }

    @JvmName("cvvrdyrllirgqupi")
    public suspend fun snsTopicArns(vararg values: Output) {
        this.snsTopicArns = Output.all(values.asList())
    }

    /**
     * @param values ARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.
     */
    @JvmName("pskadfrjcunupeos")
    public suspend fun snsTopicArns(values: List>) {
        this.snsTopicArns = Output.all(values)
    }

    /**
     * @param value The tags to add to the configuration
     */
    @JvmName("hmvoyfwcfebalfwr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("ykevtavobupglxhy")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values The tags to add to the configuration
     */
    @JvmName("qpnujtmyonwcaifv")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Enables use of a user role requirement in your chat configuration
     */
    @JvmName("hbdrlbstfmgtyyfc")
    public suspend fun userRoleRequired(`value`: Output) {
        this.userRoleRequired = value
    }

    /**
     * @param value The name of the configuration
     */
    @JvmName("guutmypaoetttgmx")
    public suspend fun configurationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configurationName = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("gqlrxnekyfhdghhw")
    public suspend fun guardrailPolicies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.guardrailPolicies = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("slphabnxhndjmlqv")
    public suspend fun guardrailPolicies(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.guardrailPolicies = mapped
    }

    /**
     * @param value The ARN of the IAM role that defines the permissions for AWS Chatbot
     */
    @JvmName("hvohdkbxpeihchjy")
    public suspend fun iamRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iamRoleArn = mapped
    }

    /**
     * @param value Specifies the logging level for this configuration:ERROR,INFO or NONE. This property affects the log entries pushed to Amazon CloudWatch logs
     */
    @JvmName("lghmwlwekulqhvqu")
    public suspend fun loggingLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loggingLevel = mapped
    }

    /**
     * @param value The id of the Slack channel
     */
    @JvmName("jdghadqemjwnpuqk")
    public suspend fun slackChannelId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slackChannelId = mapped
    }

    /**
     * @param value The id of the Slack workspace
     */
    @JvmName("iyfgqjmatufteian")
    public suspend fun slackWorkspaceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slackWorkspaceId = mapped
    }

    /**
     * @param value ARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.
     */
    @JvmName("ffvoslrnhfcltydo")
    public suspend fun snsTopicArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.snsTopicArns = mapped
    }

    /**
     * @param values ARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.
     */
    @JvmName("odhkcbpmkclygkno")
    public suspend fun snsTopicArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.snsTopicArns = mapped
    }

    /**
     * @param value The tags to add to the configuration
     */
    @JvmName("owniabbfapdthyfu")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to add to the configuration
     */
    @JvmName("oqnlxauofoeoklga")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags to add to the configuration
     */
    @JvmName("womqodabdhgnfwoo")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags to add to the configuration
     */
    @JvmName("xcacrqliqdtkdlpc")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to add to the configuration
     */
    @JvmName("wootasuguldqxihp")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Enables use of a user role requirement in your chat configuration
     */
    @JvmName("emfshuayqscmtekf")
    public suspend fun userRoleRequired(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userRoleRequired = mapped
    }

    internal fun build(): SlackChannelConfigurationArgs = SlackChannelConfigurationArgs(
        configurationName = configurationName,
        guardrailPolicies = guardrailPolicies,
        iamRoleArn = iamRoleArn,
        loggingLevel = loggingLevel,
        slackChannelId = slackChannelId,
        slackWorkspaceId = slackWorkspaceId,
        snsTopicArns = snsTopicArns,
        tags = tags,
        userRoleRequired = userRoleRequired,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy