
com.pulumi.awsnative.applicationsignals.kotlin.outputs.ServiceLevelObjectiveCalendarInterval.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.applicationsignals.kotlin.outputs
import com.pulumi.awsnative.applicationsignals.kotlin.enums.ServiceLevelObjectiveDurationUnit
import kotlin.Int
import kotlin.Suppress
/**
* If the interval for this service level objective is a calendar interval, this structure contains the interval specifications.
* @property duration Specifies the duration of each calendar interval. For example, if `Duration` is `1` and `DurationUnit` is `MONTH` , each interval is one month, aligned with the calendar.
* @property durationUnit Specifies the calendar interval unit.
* @property startTime Epoch time in seconds you want the first interval to start. Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m.
* As soon as one calendar interval ends, another automatically begins.
*/
public data class ServiceLevelObjectiveCalendarInterval(
public val duration: Int,
public val durationUnit: ServiceLevelObjectiveDurationUnit,
public val startTime: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.applicationsignals.outputs.ServiceLevelObjectiveCalendarInterval): ServiceLevelObjectiveCalendarInterval = ServiceLevelObjectiveCalendarInterval(
duration = javaType.duration(),
durationUnit = javaType.durationUnit().let({ args0 ->
com.pulumi.awsnative.applicationsignals.kotlin.enums.ServiceLevelObjectiveDurationUnit.Companion.toKotlin(args0)
}),
startTime = javaType.startTime(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy