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

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

package com.pulumi.awsnative.ssmcontacts.kotlin

import com.pulumi.awsnative.ssmcontacts.PlanArgs.builder
import com.pulumi.awsnative.ssmcontacts.kotlin.inputs.PlanStageArgs
import com.pulumi.awsnative.ssmcontacts.kotlin.inputs.PlanStageArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Engagement Plan for a SSM Incident Manager Contact.
 * @property contactId Contact ID for the AWS SSM Incident Manager Contact to associate the plan.
 * @property rotationIds Rotation Ids to associate with Oncall Contact for engagement.
 * @property stages The stages that an escalation plan or engagement plan engages contacts and contact methods in.
 */
public data class PlanArgs(
    public val contactId: Output? = null,
    public val rotationIds: Output>? = null,
    public val stages: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmcontacts.PlanArgs =
        com.pulumi.awsnative.ssmcontacts.PlanArgs.builder()
            .contactId(contactId?.applyValue({ args0 -> args0 }))
            .rotationIds(rotationIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .stages(
                stages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [PlanArgs].
 */
@PulumiTagMarker
public class PlanArgsBuilder internal constructor() {
    private var contactId: Output? = null

    private var rotationIds: Output>? = null

    private var stages: Output>? = null

    /**
     * @param value Contact ID for the AWS SSM Incident Manager Contact to associate the plan.
     */
    @JvmName("ngwaiakcwrubqjko")
    public suspend fun contactId(`value`: Output) {
        this.contactId = value
    }

    /**
     * @param value Rotation Ids to associate with Oncall Contact for engagement.
     */
    @JvmName("kdreetmbwembwcsr")
    public suspend fun rotationIds(`value`: Output>) {
        this.rotationIds = value
    }

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

    /**
     * @param values Rotation Ids to associate with Oncall Contact for engagement.
     */
    @JvmName("lswufknvcusinjrw")
    public suspend fun rotationIds(values: List>) {
        this.rotationIds = Output.all(values)
    }

    /**
     * @param value The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("pgqwomtdisnbrgdn")
    public suspend fun stages(`value`: Output>) {
        this.stages = value
    }

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

    /**
     * @param values The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("hvwodtkagkgweoey")
    public suspend fun stages(values: List>) {
        this.stages = Output.all(values)
    }

    /**
     * @param value Contact ID for the AWS SSM Incident Manager Contact to associate the plan.
     */
    @JvmName("tqdiavvlhsehsdrx")
    public suspend fun contactId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contactId = mapped
    }

    /**
     * @param value Rotation Ids to associate with Oncall Contact for engagement.
     */
    @JvmName("hxapxyifylbsgyfj")
    public suspend fun rotationIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rotationIds = mapped
    }

    /**
     * @param values Rotation Ids to associate with Oncall Contact for engagement.
     */
    @JvmName("hdjcuwmsefmjlafr")
    public suspend fun rotationIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rotationIds = mapped
    }

    /**
     * @param value The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("hybjsehwodasjhil")
    public suspend fun stages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stages = mapped
    }

    /**
     * @param argument The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("oxyywynccvlywkxu")
    public suspend fun stages(argument: List Unit>) {
        val toBeMapped = argument.toList().map { PlanStageArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.stages = mapped
    }

    /**
     * @param argument The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("wigewohrlftenhdw")
    public suspend fun stages(vararg argument: suspend PlanStageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { PlanStageArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.stages = mapped
    }

    /**
     * @param argument The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("liuaujlsehorfock")
    public suspend fun stages(argument: suspend PlanStageArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PlanStageArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.stages = mapped
    }

    /**
     * @param values The stages that an escalation plan or engagement plan engages contacts and contact methods in.
     */
    @JvmName("reewwdbpxkraedxt")
    public suspend fun stages(vararg values: PlanStageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.stages = mapped
    }

    internal fun build(): PlanArgs = PlanArgs(
        contactId = contactId,
        rotationIds = rotationIds,
        stages = stages,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy