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

com.pulumi.googlenative.compute.beta.kotlin.enums.InstanceGroupManagerUpdatePolicyMinimalAction.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.beta.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * Minimal action to be taken on an instance. Use this option to minimize disruption as much as possible or to apply a more disruptive action than is necessary. - To limit disruption as much as possible, set the minimal action to REFRESH. If your update requires a more disruptive action, Compute Engine performs the necessary action to execute the update. - To apply a more disruptive action than is strictly necessary, set the minimal action to RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its metadata. But if your application reads instance metadata only when a VM is restarted, you can set the minimal action to RESTART in order to pick up metadata changes.
 */
public enum class InstanceGroupManagerUpdatePolicyMinimalAction(
    public val javaValue: com.pulumi.googlenative.compute.beta.enums.InstanceGroupManagerUpdatePolicyMinimalAction,
) :
    ConvertibleToJava {
    /**
     * Do not perform any action.
     */
    None(com.pulumi.googlenative.compute.beta.enums.InstanceGroupManagerUpdatePolicyMinimalAction.None),

    /**
     * Updates applied in runtime, instances will not be disrupted.
     */
    Refresh(com.pulumi.googlenative.compute.beta.enums.InstanceGroupManagerUpdatePolicyMinimalAction.Refresh),

    /**
     * Old instances will be deleted. New instances will be created from the target template.
     */
    Replace(com.pulumi.googlenative.compute.beta.enums.InstanceGroupManagerUpdatePolicyMinimalAction.Replace),

    /**
     * Every instance will be restarted.
     */
    Restart(com.pulumi.googlenative.compute.beta.enums.InstanceGroupManagerUpdatePolicyMinimalAction.Restart),
    ;

    override fun toJava(): com.pulumi.googlenative.compute.beta.enums.InstanceGroupManagerUpdatePolicyMinimalAction =
        javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.compute.beta.enums.InstanceGroupManagerUpdatePolicyMinimalAction): InstanceGroupManagerUpdatePolicyMinimalAction =
            InstanceGroupManagerUpdatePolicyMinimalAction.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy