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

com.pulumi.awsnative.arczonalshift.kotlin.inputs.ZonalAutoshiftConfigurationPracticeRunConfigurationArgs.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.arczonalshift.kotlin.inputs

import com.pulumi.awsnative.arczonalshift.inputs.ZonalAutoshiftConfigurationPracticeRunConfigurationArgs.builder
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property blockedDates An array of one or more dates that you can specify when AWS does not start practice runs for a resource. Dates are in UTC.
 * Specify blocked dates in the format `YYYY-MM-DD` , separated by spaces.
 * @property blockedWindows An array of one or more days and times that you can specify when Route 53 ARC does not start practice runs for a resource. Days and times are in UTC.
 * Specify blocked windows in the format `DAY:HH:MM-DAY:HH:MM` , separated by spaces. For example, `MON:18:30-MON:19:30 TUE:18:30-TUE:19:30` .
 * @property blockingAlarms An optional alarm that you can specify that blocks practice runs when the alarm is in an `ALARM` state. When a blocking alarm goes into an `ALARM` state, it prevents practice runs from being started, and ends practice runs that are in progress.
 * @property outcomeAlarms The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an `ALARM` state, the practice run is ended and the outcome is set to `FAILED` .
 */
public data class ZonalAutoshiftConfigurationPracticeRunConfigurationArgs(
    public val blockedDates: Output>? = null,
    public val blockedWindows: Output>? = null,
    public val blockingAlarms: Output>? = null,
    public val outcomeAlarms: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.arczonalshift.inputs.ZonalAutoshiftConfigurationPracticeRunConfigurationArgs =
        com.pulumi.awsnative.arczonalshift.inputs.ZonalAutoshiftConfigurationPracticeRunConfigurationArgs.builder()
            .blockedDates(blockedDates?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .blockedWindows(blockedWindows?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .blockingAlarms(
                blockingAlarms?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .outcomeAlarms(
                outcomeAlarms.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var blockedWindows: Output>? = null

    private var blockingAlarms: Output>? = null

    private var outcomeAlarms: Output>? = null

    /**
     * @param value An array of one or more dates that you can specify when AWS does not start practice runs for a resource. Dates are in UTC.
     * Specify blocked dates in the format `YYYY-MM-DD` , separated by spaces.
     */
    @JvmName("dtbiqbxfdtavokju")
    public suspend fun blockedDates(`value`: Output>) {
        this.blockedDates = value
    }

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

    /**
     * @param values An array of one or more dates that you can specify when AWS does not start practice runs for a resource. Dates are in UTC.
     * Specify blocked dates in the format `YYYY-MM-DD` , separated by spaces.
     */
    @JvmName("rbhcpnfoloykkctd")
    public suspend fun blockedDates(values: List>) {
        this.blockedDates = Output.all(values)
    }

    /**
     * @param value An array of one or more days and times that you can specify when Route 53 ARC does not start practice runs for a resource. Days and times are in UTC.
     * Specify blocked windows in the format `DAY:HH:MM-DAY:HH:MM` , separated by spaces. For example, `MON:18:30-MON:19:30 TUE:18:30-TUE:19:30` .
     */
    @JvmName("favkgpytjwigxtkm")
    public suspend fun blockedWindows(`value`: Output>) {
        this.blockedWindows = value
    }

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

    /**
     * @param values An array of one or more days and times that you can specify when Route 53 ARC does not start practice runs for a resource. Days and times are in UTC.
     * Specify blocked windows in the format `DAY:HH:MM-DAY:HH:MM` , separated by spaces. For example, `MON:18:30-MON:19:30 TUE:18:30-TUE:19:30` .
     */
    @JvmName("njupomvfnlmyivjq")
    public suspend fun blockedWindows(values: List>) {
        this.blockedWindows = Output.all(values)
    }

    /**
     * @param value An optional alarm that you can specify that blocks practice runs when the alarm is in an `ALARM` state. When a blocking alarm goes into an `ALARM` state, it prevents practice runs from being started, and ends practice runs that are in progress.
     */
    @JvmName("cvkrhqyghcdnjdsc")
    public suspend fun blockingAlarms(`value`: Output>) {
        this.blockingAlarms = value
    }

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

    /**
     * @param values An optional alarm that you can specify that blocks practice runs when the alarm is in an `ALARM` state. When a blocking alarm goes into an `ALARM` state, it prevents practice runs from being started, and ends practice runs that are in progress.
     */
    @JvmName("hgovrfvvsgewagky")
    public suspend fun blockingAlarms(values: List>) {
        this.blockingAlarms = Output.all(values)
    }

    /**
     * @param value The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an `ALARM` state, the practice run is ended and the outcome is set to `FAILED` .
     */
    @JvmName("mluxrgfauephoywj")
    public suspend fun outcomeAlarms(`value`: Output>) {
        this.outcomeAlarms = value
    }

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

    /**
     * @param values The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an `ALARM` state, the practice run is ended and the outcome is set to `FAILED` .
     */
    @JvmName("xmqfdfvigidykyom")
    public suspend fun outcomeAlarms(values: List>) {
        this.outcomeAlarms = Output.all(values)
    }

    /**
     * @param value An array of one or more dates that you can specify when AWS does not start practice runs for a resource. Dates are in UTC.
     * Specify blocked dates in the format `YYYY-MM-DD` , separated by spaces.
     */
    @JvmName("thdlmnjkfhwrjfvy")
    public suspend fun blockedDates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blockedDates = mapped
    }

    /**
     * @param values An array of one or more dates that you can specify when AWS does not start practice runs for a resource. Dates are in UTC.
     * Specify blocked dates in the format `YYYY-MM-DD` , separated by spaces.
     */
    @JvmName("hnqxqkcafeuvovxs")
    public suspend fun blockedDates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.blockedDates = mapped
    }

    /**
     * @param value An array of one or more days and times that you can specify when Route 53 ARC does not start practice runs for a resource. Days and times are in UTC.
     * Specify blocked windows in the format `DAY:HH:MM-DAY:HH:MM` , separated by spaces. For example, `MON:18:30-MON:19:30 TUE:18:30-TUE:19:30` .
     */
    @JvmName("kdlqwbqychetvwum")
    public suspend fun blockedWindows(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blockedWindows = mapped
    }

    /**
     * @param values An array of one or more days and times that you can specify when Route 53 ARC does not start practice runs for a resource. Days and times are in UTC.
     * Specify blocked windows in the format `DAY:HH:MM-DAY:HH:MM` , separated by spaces. For example, `MON:18:30-MON:19:30 TUE:18:30-TUE:19:30` .
     */
    @JvmName("lcbndfplbvaurxli")
    public suspend fun blockedWindows(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.blockedWindows = mapped
    }

    /**
     * @param value An optional alarm that you can specify that blocks practice runs when the alarm is in an `ALARM` state. When a blocking alarm goes into an `ALARM` state, it prevents practice runs from being started, and ends practice runs that are in progress.
     */
    @JvmName("hqrugjchwjsrkgfu")
    public suspend fun blockingAlarms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blockingAlarms = mapped
    }

    /**
     * @param argument An optional alarm that you can specify that blocks practice runs when the alarm is in an `ALARM` state. When a blocking alarm goes into an `ALARM` state, it prevents practice runs from being started, and ends practice runs that are in progress.
     */
    @JvmName("rdyapxixyfmwjqxo")
    public suspend fun blockingAlarms(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ZonalAutoshiftConfigurationControlConditionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.blockingAlarms = mapped
    }

    /**
     * @param argument An optional alarm that you can specify that blocks practice runs when the alarm is in an `ALARM` state. When a blocking alarm goes into an `ALARM` state, it prevents practice runs from being started, and ends practice runs that are in progress.
     */
    @JvmName("pmhcgqkasdnwebqo")
    public suspend fun blockingAlarms(vararg argument: suspend ZonalAutoshiftConfigurationControlConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ZonalAutoshiftConfigurationControlConditionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.blockingAlarms = mapped
    }

    /**
     * @param argument An optional alarm that you can specify that blocks practice runs when the alarm is in an `ALARM` state. When a blocking alarm goes into an `ALARM` state, it prevents practice runs from being started, and ends practice runs that are in progress.
     */
    @JvmName("bghvukcptsbyccvv")
    public suspend fun blockingAlarms(argument: suspend ZonalAutoshiftConfigurationControlConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ZonalAutoshiftConfigurationControlConditionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.blockingAlarms = mapped
    }

    /**
     * @param values An optional alarm that you can specify that blocks practice runs when the alarm is in an `ALARM` state. When a blocking alarm goes into an `ALARM` state, it prevents practice runs from being started, and ends practice runs that are in progress.
     */
    @JvmName("xnfkqxtaagqokapc")
    public suspend fun blockingAlarms(vararg values: ZonalAutoshiftConfigurationControlConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.blockingAlarms = mapped
    }

    /**
     * @param value The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an `ALARM` state, the practice run is ended and the outcome is set to `FAILED` .
     */
    @JvmName("kvpdoxidcujvdisq")
    public suspend fun outcomeAlarms(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outcomeAlarms = mapped
    }

    /**
     * @param argument The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an `ALARM` state, the practice run is ended and the outcome is set to `FAILED` .
     */
    @JvmName("ctfqfnqfyhokapdh")
    public suspend fun outcomeAlarms(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ZonalAutoshiftConfigurationControlConditionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.outcomeAlarms = mapped
    }

    /**
     * @param argument The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an `ALARM` state, the practice run is ended and the outcome is set to `FAILED` .
     */
    @JvmName("ekwfieyfuubmvfvy")
    public suspend fun outcomeAlarms(vararg argument: suspend ZonalAutoshiftConfigurationControlConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ZonalAutoshiftConfigurationControlConditionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.outcomeAlarms = mapped
    }

    /**
     * @param argument The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an `ALARM` state, the practice run is ended and the outcome is set to `FAILED` .
     */
    @JvmName("ylckixlskcyuejgy")
    public suspend fun outcomeAlarms(argument: suspend ZonalAutoshiftConfigurationControlConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ZonalAutoshiftConfigurationControlConditionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.outcomeAlarms = mapped
    }

    /**
     * @param values The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an `ALARM` state, the practice run is ended and the outcome is set to `FAILED` .
     */
    @JvmName("mfwcyfiagsktlefe")
    public suspend fun outcomeAlarms(vararg values: ZonalAutoshiftConfigurationControlConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outcomeAlarms = mapped
    }

    internal fun build(): ZonalAutoshiftConfigurationPracticeRunConfigurationArgs =
        ZonalAutoshiftConfigurationPracticeRunConfigurationArgs(
            blockedDates = blockedDates,
            blockedWindows = blockedWindows,
            blockingAlarms = blockingAlarms,
            outcomeAlarms = outcomeAlarms ?: throw PulumiNullFieldException("outcomeAlarms"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy