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

com.pulumi.awsnative.chatbot.kotlin.MicrosoftTeamsChannelConfigurationArgs.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.MicrosoftTeamsChannelConfigurationArgs.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::MicrosoftTeamsChannelConfiguration.
 * @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 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 teamId The id of the Microsoft Teams team
 * @property teamsChannelId The id of the Microsoft Teams channel
 * @property teamsTenantId The id of the Microsoft Teams tenant
 * @property userRoleRequired Enables use of a user role requirement in your chat configuration
 */
public data class MicrosoftTeamsChannelConfigurationArgs(
    public val configurationName: Output? = null,
    public val guardrailPolicies: Output>? = null,
    public val iamRoleArn: Output? = null,
    public val loggingLevel: Output? = null,
    public val snsTopicArns: Output>? = null,
    public val tags: Output>? = null,
    public val teamId: Output? = null,
    public val teamsChannelId: Output? = null,
    public val teamsTenantId: Output? = null,
    public val userRoleRequired: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.chatbot.MicrosoftTeamsChannelConfigurationArgs =
        com.pulumi.awsnative.chatbot.MicrosoftTeamsChannelConfigurationArgs.builder()
            .configurationName(configurationName?.applyValue({ args0 -> args0 }))
            .guardrailPolicies(guardrailPolicies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .iamRoleArn(iamRoleArn?.applyValue({ args0 -> args0 }))
            .loggingLevel(loggingLevel?.applyValue({ args0 -> args0 }))
            .snsTopicArns(snsTopicArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .teamId(teamId?.applyValue({ args0 -> args0 }))
            .teamsChannelId(teamsChannelId?.applyValue({ args0 -> args0 }))
            .teamsTenantId(teamsTenantId?.applyValue({ args0 -> args0 }))
            .userRoleRequired(userRoleRequired?.applyValue({ args0 -> args0 })).build()
}

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

    private var guardrailPolicies: Output>? = null

    private var iamRoleArn: Output? = null

    private var loggingLevel: Output? = null

    private var snsTopicArns: Output>? = null

    private var tags: Output>? = null

    private var teamId: Output? = null

    private var teamsChannelId: Output? = null

    private var teamsTenantId: Output? = null

    private var userRoleRequired: Output? = null

    /**
     * @param value The name of the configuration
     */
    @JvmName("jesdpbpjqnuyvwst")
    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("ggxhmudwppabnujy")
    public suspend fun guardrailPolicies(`value`: Output>) {
        this.guardrailPolicies = value
    }

    @JvmName("pxwhlustinvxmrml")
    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("cqgagixfuwfqxvvf")
    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("ehnggwprruoavlyy")
    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("ohtpdyyfbyusjjwn")
    public suspend fun loggingLevel(`value`: Output) {
        this.loggingLevel = value
    }

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

    @JvmName("tqkeosxvmlwdjsyq")
    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("iwptytexrbkcpgpo")
    public suspend fun snsTopicArns(values: List>) {
        this.snsTopicArns = Output.all(values)
    }

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

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

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

    /**
     * @param value The id of the Microsoft Teams team
     */
    @JvmName("eqqsuthkmtnadbrx")
    public suspend fun teamId(`value`: Output) {
        this.teamId = value
    }

    /**
     * @param value The id of the Microsoft Teams channel
     */
    @JvmName("uloiudhvcudsukas")
    public suspend fun teamsChannelId(`value`: Output) {
        this.teamsChannelId = value
    }

    /**
     * @param value The id of the Microsoft Teams tenant
     */
    @JvmName("nykpadjtvjbombbk")
    public suspend fun teamsTenantId(`value`: Output) {
        this.teamsTenantId = value
    }

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

    /**
     * @param value The name of the configuration
     */
    @JvmName("qnwwpdelpakgubst")
    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("xomfhbryxmfiqxkp")
    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("byjmfpkujfgiclyf")
    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("hnxjgyobrxyywijp")
    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("xwcmmnnqucnmyeqq")
    public suspend fun loggingLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loggingLevel = mapped
    }

    /**
     * @param value ARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.
     */
    @JvmName("dfkllxuetvovvkjo")
    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("ylxfkploywahtekx")
    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("eicafnkhjdqbahcj")
    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("fskldvxbxwiehilp")
    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("thjlakayydpoagei")
    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("kslhmoprgnloltbo")
    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("xugausuwbbmseprt")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The id of the Microsoft Teams team
     */
    @JvmName("stbdwwoytwhqpqjb")
    public suspend fun teamId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.teamId = mapped
    }

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

    /**
     * @param value The id of the Microsoft Teams tenant
     */
    @JvmName("rdcyftebartfieyx")
    public suspend fun teamsTenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.teamsTenantId = mapped
    }

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

    internal fun build(): MicrosoftTeamsChannelConfigurationArgs =
        MicrosoftTeamsChannelConfigurationArgs(
            configurationName = configurationName,
            guardrailPolicies = guardrailPolicies,
            iamRoleArn = iamRoleArn,
            loggingLevel = loggingLevel,
            snsTopicArns = snsTopicArns,
            tags = tags,
            teamId = teamId,
            teamsChannelId = teamsChannelId,
            teamsTenantId = teamsTenantId,
            userRoleRequired = userRoleRequired,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy