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

com.pulumi.awsnative.codestarnotifications.kotlin.inputs.NotificationRuleTargetArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.codestarnotifications.kotlin.inputs

import com.pulumi.awsnative.codestarnotifications.inputs.NotificationRuleTargetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property targetAddress The Amazon Resource Name (ARN) of the AWS Chatbot topic or AWS Chatbot client.
 * @property targetType The target type. Can be an Amazon Simple Notification Service topic or AWS Chatbot client.
 * - Amazon Simple Notification Service topics are specified as `SNS` .
 * - AWS Chatbot clients are specified as `AWSChatbotSlack` .
 * - AWS Chatbot clients for Microsoft Teams are specified as `AWSChatbotMicrosoftTeams` .
 */
public data class NotificationRuleTargetArgs(
    public val targetAddress: Output,
    public val targetType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.codestarnotifications.inputs.NotificationRuleTargetArgs =
        com.pulumi.awsnative.codestarnotifications.inputs.NotificationRuleTargetArgs.builder()
            .targetAddress(targetAddress.applyValue({ args0 -> args0 }))
            .targetType(targetType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NotificationRuleTargetArgs].
 */
@PulumiTagMarker
public class NotificationRuleTargetArgsBuilder internal constructor() {
    private var targetAddress: Output? = null

    private var targetType: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Chatbot topic or AWS Chatbot client.
     */
    @JvmName("fijhwukrkaeqqfdk")
    public suspend fun targetAddress(`value`: Output) {
        this.targetAddress = value
    }

    /**
     * @param value The target type. Can be an Amazon Simple Notification Service topic or AWS Chatbot client.
     * - Amazon Simple Notification Service topics are specified as `SNS` .
     * - AWS Chatbot clients are specified as `AWSChatbotSlack` .
     * - AWS Chatbot clients for Microsoft Teams are specified as `AWSChatbotMicrosoftTeams` .
     */
    @JvmName("cbrfssojjeeloydb")
    public suspend fun targetType(`value`: Output) {
        this.targetType = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Chatbot topic or AWS Chatbot client.
     */
    @JvmName("oydchqpccxvijiqv")
    public suspend fun targetAddress(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetAddress = mapped
    }

    /**
     * @param value The target type. Can be an Amazon Simple Notification Service topic or AWS Chatbot client.
     * - Amazon Simple Notification Service topics are specified as `SNS` .
     * - AWS Chatbot clients are specified as `AWSChatbotSlack` .
     * - AWS Chatbot clients for Microsoft Teams are specified as `AWSChatbotMicrosoftTeams` .
     */
    @JvmName("xtgkstuifmtntuoi")
    public suspend fun targetType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetType = mapped
    }

    internal fun build(): NotificationRuleTargetArgs = NotificationRuleTargetArgs(
        targetAddress = targetAddress ?: throw PulumiNullFieldException("targetAddress"),
        targetType = targetType ?: throw PulumiNullFieldException("targetType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy