All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.lab.kotlin.outputs.LabAutoShutdown.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.lab.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property disconnectDelay The amount of time a VM will stay running after a user disconnects if this behavior is enabled. This value must be formatted as an ISO 8601 string.
 * > **NOTE:** The `shutdownOnDisconnect` is `Disabled` when `disconnect_delay` isn't specified.
 * @property idleDelay The amount of time a VM will idle before it is shutdown if this behavior is enabled. This value must be formatted as an ISO 8601 string.
 * @property noConnectDelay The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. This value must be formatted as an ISO 8601 string.
 * > **NOTE:** The `shutdownWhenNotConnected` is `Disabled` when `no_connect_delay` isn't specified.
 * @property shutdownOnIdle A VM will get shutdown when it has idled for a period of time. Possible values are `LowUsage` and `UserAbsence`.
 * > **NOTE:** This property is `None` when it isn't specified. No need to set `idle_delay` when `shutdown_on_idle` isn't specified.
 */
public data class LabAutoShutdown(
    public val disconnectDelay: String? = null,
    public val idleDelay: String? = null,
    public val noConnectDelay: String? = null,
    public val shutdownOnIdle: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.lab.outputs.LabAutoShutdown): LabAutoShutdown =
            LabAutoShutdown(
                disconnectDelay = javaType.disconnectDelay().map({ args0 -> args0 }).orElse(null),
                idleDelay = javaType.idleDelay().map({ args0 -> args0 }).orElse(null),
                noConnectDelay = javaType.noConnectDelay().map({ args0 -> args0 }).orElse(null),
                shutdownOnIdle = javaType.shutdownOnIdle().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy