
com.pulumi.awsnative.arczonalshift.kotlin.outputs.ZonalAutoshiftConfigurationPracticeRunConfiguration.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.arczonalshift.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 ZonalAutoshiftConfigurationPracticeRunConfiguration(
public val blockedDates: List? = null,
public val blockedWindows: List? = null,
public val blockingAlarms: List? = null,
public val outcomeAlarms: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.arczonalshift.outputs.ZonalAutoshiftConfigurationPracticeRunConfiguration): ZonalAutoshiftConfigurationPracticeRunConfiguration =
ZonalAutoshiftConfigurationPracticeRunConfiguration(
blockedDates = javaType.blockedDates().map({ args0 -> args0 }),
blockedWindows = javaType.blockedWindows().map({ args0 -> args0 }),
blockingAlarms = javaType.blockingAlarms().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.arczonalshift.kotlin.outputs.ZonalAutoshiftConfigurationControlCondition.Companion.toKotlin(args0)
})
}),
outcomeAlarms = javaType.outcomeAlarms().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.arczonalshift.kotlin.outputs.ZonalAutoshiftConfigurationControlCondition.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy