
com.pulumi.awsnative.applicationsignals.kotlin.outputs.ServiceLevelObjectiveInterval.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.applicationsignals.kotlin.outputs
import kotlin.Suppress
/**
* The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
* If you omit this parameter, a rolling interval of 7 days is used.
* @property calendarInterval If the interval is a calendar interval, this structure contains the interval specifications.
* @property rollingInterval If the interval is a rolling interval, this structure contains the interval specifications.
*/
public data class ServiceLevelObjectiveInterval(
public val calendarInterval: ServiceLevelObjectiveCalendarInterval? = null,
public val rollingInterval: ServiceLevelObjectiveRollingInterval? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.applicationsignals.outputs.ServiceLevelObjectiveInterval): ServiceLevelObjectiveInterval = ServiceLevelObjectiveInterval(
calendarInterval = javaType.calendarInterval().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.applicationsignals.kotlin.outputs.ServiceLevelObjectiveCalendarInterval.Companion.toKotlin(args0)
})
}).orElse(null),
rollingInterval = javaType.rollingInterval().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.applicationsignals.kotlin.outputs.ServiceLevelObjectiveRollingInterval.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy