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

com.pulumi.awsnative.ssmcontacts.kotlin.RotationArgs.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.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.ssmcontacts.RotationArgs.builder
import com.pulumi.awsnative.ssmcontacts.kotlin.inputs.RotationRecurrenceSettingsArgs
import com.pulumi.awsnative.ssmcontacts.kotlin.inputs.RotationRecurrenceSettingsArgsBuilder
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

/**
 * Resource Type definition for AWS::SSMContacts::Rotation.
 * @property contactIds Members of the rotation
 * @property name Name of the Rotation
 * @property recurrence Information about the rule that specifies when shift team members rotate.
 * @property startTime Start time of the first shift of Oncall Schedule
 * @property tags Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see [Tagging Incident Manager resources](https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html) in the *Incident Manager User Guide* .
 * @property timeZoneId TimeZone Identifier for the Oncall Schedule
 */
public data class RotationArgs(
    public val contactIds: Output>? = null,
    public val name: Output? = null,
    public val recurrence: Output? = null,
    public val startTime: Output? = null,
    public val tags: Output>? = null,
    public val timeZoneId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmcontacts.RotationArgs =
        com.pulumi.awsnative.ssmcontacts.RotationArgs.builder()
            .contactIds(contactIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .recurrence(recurrence?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .startTime(startTime?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .timeZoneId(timeZoneId?.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    private var recurrence: Output? = null

    private var startTime: Output? = null

    private var tags: Output>? = null

    private var timeZoneId: Output? = null

    /**
     * @param value Members of the rotation
     */
    @JvmName("pfetwklbmrjclcyw")
    public suspend fun contactIds(`value`: Output>) {
        this.contactIds = value
    }

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

    /**
     * @param values Members of the rotation
     */
    @JvmName("omdxlnelsxgeepxa")
    public suspend fun contactIds(values: List>) {
        this.contactIds = Output.all(values)
    }

    /**
     * @param value Name of the Rotation
     */
    @JvmName("jnkejfieowqiuoqp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Information about the rule that specifies when shift team members rotate.
     */
    @JvmName("bqjohfapaslaosyo")
    public suspend fun recurrence(`value`: Output) {
        this.recurrence = value
    }

    /**
     * @param value Start time of the first shift of Oncall Schedule
     */
    @JvmName("jcaqybdyfxfujqnt")
    public suspend fun startTime(`value`: Output) {
        this.startTime = value
    }

    /**
     * @param value Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see [Tagging Incident Manager resources](https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html) in the *Incident Manager User Guide* .
     */
    @JvmName("kvwnafsfdgniclcg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see [Tagging Incident Manager resources](https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html) in the *Incident Manager User Guide* .
     */
    @JvmName("vqueqykisbotunpx")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value TimeZone Identifier for the Oncall Schedule
     */
    @JvmName("ssyvistyfjygkujs")
    public suspend fun timeZoneId(`value`: Output) {
        this.timeZoneId = value
    }

    /**
     * @param value Members of the rotation
     */
    @JvmName("jebpikqjhhyngymv")
    public suspend fun contactIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contactIds = mapped
    }

    /**
     * @param values Members of the rotation
     */
    @JvmName("rnoxfwrhehcfaywg")
    public suspend fun contactIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contactIds = mapped
    }

    /**
     * @param value Name of the Rotation
     */
    @JvmName("gdelpgxvqipwpger")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Information about the rule that specifies when shift team members rotate.
     */
    @JvmName("kpmcpalsfgfhoeyg")
    public suspend fun recurrence(`value`: RotationRecurrenceSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recurrence = mapped
    }

    /**
     * @param argument Information about the rule that specifies when shift team members rotate.
     */
    @JvmName("mpfxnuiftrkvylhv")
    public suspend fun recurrence(argument: suspend RotationRecurrenceSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = RotationRecurrenceSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.recurrence = mapped
    }

    /**
     * @param value Start time of the first shift of Oncall Schedule
     */
    @JvmName("vsnfnuituyqmajur")
    public suspend fun startTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTime = mapped
    }

    /**
     * @param value Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see [Tagging Incident Manager resources](https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html) in the *Incident Manager User Guide* .
     */
    @JvmName("jvpwliirpcselrta")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see [Tagging Incident Manager resources](https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html) in the *Incident Manager User Guide* .
     */
    @JvmName("muaxcsmirncyocqi")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see [Tagging Incident Manager resources](https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html) in the *Incident Manager User Guide* .
     */
    @JvmName("oduesvaqintwhbpv")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see [Tagging Incident Manager resources](https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html) in the *Incident Manager User Guide* .
     */
    @JvmName("xlsykdvyvctrisyc")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Optional metadata to assign to the rotation. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For more information, see [Tagging Incident Manager resources](https://docs.aws.amazon.com/incident-manager/latest/userguide/tagging.html) in the *Incident Manager User Guide* .
     */
    @JvmName("ymfmaepkbtxmkgmc")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value TimeZone Identifier for the Oncall Schedule
     */
    @JvmName("gsfdyqugsscxjpvm")
    public suspend fun timeZoneId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeZoneId = mapped
    }

    internal fun build(): RotationArgs = RotationArgs(
        contactIds = contactIds,
        name = name,
        recurrence = recurrence,
        startTime = startTime,
        tags = tags,
        timeZoneId = timeZoneId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy