Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.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