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

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

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

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

import com.pulumi.core.annotations.EnumType;
import java.lang.String;
import java.util.Objects;
import java.util.StringJoiner;

    /**
     * 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.
     * 
     */
    @EnumType
    public enum InstanceGroupManagerUpdatePolicyMinimalAction {
        /**
         * Do not perform any action.
         * 
         */
        None("NONE"),
        /**
         * Updates applied in runtime, instances will not be disrupted.
         * 
         */
        Refresh("REFRESH"),
        /**
         * Old instances will be deleted. New instances will be created from the target template.
         * 
         */
        Replace("REPLACE"),
        /**
         * Every instance will be restarted.
         * 
         */
        Restart("RESTART");

        private final String value;

        InstanceGroupManagerUpdatePolicyMinimalAction(String value) {
            this.value = Objects.requireNonNull(value);
        }

        @EnumType.Converter
        public String getValue() {
            return this.value;
        }

        @Override
        public String toString() {
            return new StringJoiner(", ", "InstanceGroupManagerUpdatePolicyMinimalAction[", "]")
                .add("value='" + this.value + "'")
                .toString();
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy