
com.pulumi.awsnative.ssmcontacts.kotlin.outputs.RotationRecurrenceSettings.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Information about when an on-call rotation is in effect and how long the rotation period lasts.
* @property dailySettings Information about on-call rotations that recur daily.
* @property monthlySettings Information about on-call rotations that recur monthly.
* @property numberOfOnCalls Number of Oncalls per shift.
* @property recurrenceMultiplier The number of days, weeks, or months a single rotation lasts.
* @property shiftCoverages Information about the days of the week included in on-call rotation coverage.
* @property weeklySettings Information about on-call rotations that recur weekly.
*/
public data class RotationRecurrenceSettings(
public val dailySettings: List? = null,
public val monthlySettings: List? = null,
public val numberOfOnCalls: Int? = null,
public val recurrenceMultiplier: Int? = null,
public val shiftCoverages: List? = null,
public val weeklySettings: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ssmcontacts.outputs.RotationRecurrenceSettings): RotationRecurrenceSettings = RotationRecurrenceSettings(
dailySettings = javaType.dailySettings().map({ args0 -> args0 }),
monthlySettings = javaType.monthlySettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ssmcontacts.kotlin.outputs.RotationMonthlySetting.Companion.toKotlin(args0)
})
}),
numberOfOnCalls = javaType.numberOfOnCalls().map({ args0 -> args0 }).orElse(null),
recurrenceMultiplier = javaType.recurrenceMultiplier().map({ args0 -> args0 }).orElse(null),
shiftCoverages = javaType.shiftCoverages().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ssmcontacts.kotlin.outputs.RotationShiftCoverage.Companion.toKotlin(args0)
})
}),
weeklySettings = javaType.weeklySettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ssmcontacts.kotlin.outputs.RotationWeeklySetting.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy