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

com.pulumi.awsnative.budgets.kotlin.inputs.BudgetsActionSubscriberArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.budgets.kotlin.inputs

import com.pulumi.awsnative.budgets.inputs.BudgetsActionSubscriberArgs.builder
import com.pulumi.awsnative.budgets.kotlin.enums.BudgetsActionSubscriberType
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 address The address that AWS sends budget notifications to, either an SNS topic or an email.
 * When you create a subscriber, the value of `Address` can't contain line breaks.
 * @property type The type of notification that AWS sends to a subscriber.
 */
public data class BudgetsActionSubscriberArgs(
    public val address: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.budgets.inputs.BudgetsActionSubscriberArgs =
        com.pulumi.awsnative.budgets.inputs.BudgetsActionSubscriberArgs.builder()
            .address(address.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BudgetsActionSubscriberArgs].
 */
@PulumiTagMarker
public class BudgetsActionSubscriberArgsBuilder internal constructor() {
    private var address: Output? = null

    private var type: Output? = null

    /**
     * @param value The address that AWS sends budget notifications to, either an SNS topic or an email.
     * When you create a subscriber, the value of `Address` can't contain line breaks.
     */
    @JvmName("uleqqcrpkjbessog")
    public suspend fun address(`value`: Output) {
        this.address = value
    }

    /**
     * @param value The type of notification that AWS sends to a subscriber.
     */
    @JvmName("xjhmrbqnjoxqxxrf")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The address that AWS sends budget notifications to, either an SNS topic or an email.
     * When you create a subscriber, the value of `Address` can't contain line breaks.
     */
    @JvmName("exskdjghioywusvx")
    public suspend fun address(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.address = mapped
    }

    /**
     * @param value The type of notification that AWS sends to a subscriber.
     */
    @JvmName("nbvxlyeioyynrfxo")
    public suspend fun type(`value`: BudgetsActionSubscriberType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): BudgetsActionSubscriberArgs = BudgetsActionSubscriberArgs(
        address = address ?: throw PulumiNullFieldException("address"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy