com.pulumi.awsnative.ssmcontacts.kotlin.PlanArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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