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

com.pulumi.awsnative.shield.kotlin.ProactiveEngagementArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.shield.kotlin

import com.pulumi.awsnative.shield.ProactiveEngagementArgs.builder
import com.pulumi.awsnative.shield.kotlin.enums.ProactiveEngagementStatus
import com.pulumi.awsnative.shield.kotlin.inputs.ProactiveEngagementEmergencyContactArgs
import com.pulumi.awsnative.shield.kotlin.inputs.ProactiveEngagementEmergencyContactArgsBuilder
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
 * @property emergencyContactList A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
 * To enable proactive engagement, the contact list must include at least one phone number.
 * @property proactiveEngagementStatus If `ENABLED`, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
 * If `DISABLED`, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.
 */
public data class ProactiveEngagementArgs(
    public val emergencyContactList: Output>? = null,
    public val proactiveEngagementStatus: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.shield.ProactiveEngagementArgs =
        com.pulumi.awsnative.shield.ProactiveEngagementArgs.builder()
            .emergencyContactList(
                emergencyContactList?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .proactiveEngagementStatus(
                proactiveEngagementStatus?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ProactiveEngagementArgs].
 */
@PulumiTagMarker
public class ProactiveEngagementArgsBuilder internal constructor() {
    private var emergencyContactList: Output>? = null

    private var proactiveEngagementStatus: Output? = null

    /**
     * @param value A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
     * To enable proactive engagement, the contact list must include at least one phone number.
     */
    @JvmName("mnkhmpnlxvexxdgf")
    public suspend fun emergencyContactList(`value`: Output>) {
        this.emergencyContactList = value
    }

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

    /**
     * @param values A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
     * To enable proactive engagement, the contact list must include at least one phone number.
     */
    @JvmName("undpysmqsgqalqve")
    public suspend fun emergencyContactList(values: List>) {
        this.emergencyContactList = Output.all(values)
    }

    /**
     * @param value If `ENABLED`, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
     * If `DISABLED`, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.
     */
    @JvmName("uwtijaunpouhstqq")
    public suspend fun proactiveEngagementStatus(`value`: Output) {
        this.proactiveEngagementStatus = value
    }

    /**
     * @param value A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
     * To enable proactive engagement, the contact list must include at least one phone number.
     */
    @JvmName("urjporwpuqfbyfcr")
    public suspend fun emergencyContactList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emergencyContactList = mapped
    }

    /**
     * @param argument A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
     * To enable proactive engagement, the contact list must include at least one phone number.
     */
    @JvmName("cdrkddsgqfofpdhx")
    public suspend fun emergencyContactList(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ProactiveEngagementEmergencyContactArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.emergencyContactList = mapped
    }

    /**
     * @param argument A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
     * To enable proactive engagement, the contact list must include at least one phone number.
     */
    @JvmName("dbqfviwttcablqpv")
    public suspend fun emergencyContactList(vararg argument: suspend ProactiveEngagementEmergencyContactArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ProactiveEngagementEmergencyContactArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.emergencyContactList = mapped
    }

    /**
     * @param argument A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
     * To enable proactive engagement, the contact list must include at least one phone number.
     */
    @JvmName("nufgviqsbuctkgem")
    public suspend fun emergencyContactList(argument: suspend ProactiveEngagementEmergencyContactArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ProactiveEngagementEmergencyContactArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.emergencyContactList = mapped
    }

    /**
     * @param values A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.
     * To enable proactive engagement, the contact list must include at least one phone number.
     */
    @JvmName("aimvejnsdqttujpc")
    public suspend fun emergencyContactList(vararg values: ProactiveEngagementEmergencyContactArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emergencyContactList = mapped
    }

    /**
     * @param value If `ENABLED`, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.
     * If `DISABLED`, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.
     */
    @JvmName("cuhrfayfakfnwnsb")
    public suspend fun proactiveEngagementStatus(`value`: ProactiveEngagementStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.proactiveEngagementStatus = mapped
    }

    internal fun build(): ProactiveEngagementArgs = ProactiveEngagementArgs(
        emergencyContactList = emergencyContactList,
        proactiveEngagementStatus = proactiveEngagementStatus,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy