Package com.pulumi.gcp.compute.inputs
Class RegionInstanceGroupManagerUpdatePolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerUpdatePolicyArgs.Builder
-
- Enclosing class:
- RegionInstanceGroupManagerUpdatePolicyArgs
public static final class RegionInstanceGroupManagerUpdatePolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(RegionInstanceGroupManagerUpdatePolicyArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(RegionInstanceGroupManagerUpdatePolicyArgs defaults)
-
-
Method Detail
-
instanceRedistributionType
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder instanceRedistributionType(@Nullable com.pulumi.core.Output<java.lang.String> instanceRedistributionType)
- Parameters:
instanceRedistributionType
- The instance redistribution policy for regional managed instance groups. Valid values are: `"PROACTIVE"`, `"NONE"`. If `PROACTIVE` (default), the group attempts to maintain an even distribution of VM instances across zones in the region. If `NONE`, proactive redistribution is disabled.- Returns:
- builder
-
instanceRedistributionType
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder instanceRedistributionType(java.lang.String instanceRedistributionType)
- Parameters:
instanceRedistributionType
- The instance redistribution policy for regional managed instance groups. Valid values are: `"PROACTIVE"`, `"NONE"`. If `PROACTIVE` (default), the group attempts to maintain an even distribution of VM instances across zones in the region. If `NONE`, proactive redistribution is disabled.- Returns:
- builder
-
maxSurgeFixed
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder maxSurgeFixed(@Nullable com.pulumi.core.Output<java.lang.Integer> maxSurgeFixed)
- Parameters:
maxSurgeFixed
- , The maximum number of instances that can be created above the specified targetSize during the update process. Conflicts with `max_surge_percent`. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one of `max_unavailable_fixed` or `max_surge_fixed` must be greater than 0.- Returns:
- builder
-
maxSurgeFixed
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder maxSurgeFixed(java.lang.Integer maxSurgeFixed)
- Parameters:
maxSurgeFixed
- , The maximum number of instances that can be created above the specified targetSize during the update process. Conflicts with `max_surge_percent`. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one of `max_unavailable_fixed` or `max_surge_fixed` must be greater than 0.- Returns:
- builder
-
maxSurgePercent
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder maxSurgePercent(@Nullable com.pulumi.core.Output<java.lang.Integer> maxSurgePercent)
- Parameters:
maxSurgePercent
- , The maximum number of instances(calculated as percentage) that can be created above the specified targetSize during the update process. Conflicts with `max_surge_fixed`. Percent value is only allowed for regional managed instance groups with size at least 10.- Returns:
- builder
-
maxSurgePercent
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder maxSurgePercent(java.lang.Integer maxSurgePercent)
- Parameters:
maxSurgePercent
- , The maximum number of instances(calculated as percentage) that can be created above the specified targetSize during the update process. Conflicts with `max_surge_fixed`. Percent value is only allowed for regional managed instance groups with size at least 10.- Returns:
- builder
-
maxUnavailableFixed
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder maxUnavailableFixed(@Nullable com.pulumi.core.Output<java.lang.Integer> maxUnavailableFixed)
- Parameters:
maxUnavailableFixed
- , The maximum number of instances that can be unavailable during the update process. Conflicts with `max_unavailable_percent`. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one of `max_unavailable_fixed` or `max_surge_fixed` must be greater than 0.- Returns:
- builder
-
maxUnavailableFixed
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder maxUnavailableFixed(java.lang.Integer maxUnavailableFixed)
- Parameters:
maxUnavailableFixed
- , The maximum number of instances that can be unavailable during the update process. Conflicts with `max_unavailable_percent`. It has to be either 0 or at least equal to the number of zones. If fixed values are used, at least one of `max_unavailable_fixed` or `max_surge_fixed` must be greater than 0.- Returns:
- builder
-
maxUnavailablePercent
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder maxUnavailablePercent(@Nullable com.pulumi.core.Output<java.lang.Integer> maxUnavailablePercent)
- Parameters:
maxUnavailablePercent
- , The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with `max_unavailable_fixed`. Percent value is only allowed for regional managed instance groups with size at least 10.- Returns:
- builder
-
maxUnavailablePercent
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder maxUnavailablePercent(java.lang.Integer maxUnavailablePercent)
- Parameters:
maxUnavailablePercent
- , The maximum number of instances(calculated as percentage) that can be unavailable during the update process. Conflicts with `max_unavailable_fixed`. Percent value is only allowed for regional managed instance groups with size at least 10.- Returns:
- builder
-
minReadySec
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder minReadySec(@Nullable com.pulumi.core.Output<java.lang.Integer> minReadySec)
- Parameters:
minReadySec
- ), Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]- Returns:
- builder
-
minReadySec
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder minReadySec(java.lang.Integer minReadySec)
- Parameters:
minReadySec
- ), Minimum number of seconds to wait for after a newly created instance becomes available. This value must be from range [0, 3600]- Returns:
- builder
-
minimalAction
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder minimalAction(com.pulumi.core.Output<java.lang.String> minimalAction)
- Parameters:
minimalAction
- Minimal action to be taken on an instance. You can specify either `REFRESH` to update without stopping instances, `RESTART` to restart existing instances or `REPLACE` to delete and create new instances from the target template. If you specify a `REFRESH`, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action.- Returns:
- builder
-
minimalAction
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder minimalAction(java.lang.String minimalAction)
- Parameters:
minimalAction
- Minimal action to be taken on an instance. You can specify either `REFRESH` to update without stopping instances, `RESTART` to restart existing instances or `REPLACE` to delete and create new instances from the target template. If you specify a `REFRESH`, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action.- Returns:
- builder
-
mostDisruptiveAllowedAction
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder mostDisruptiveAllowedAction(@Nullable com.pulumi.core.Output<java.lang.String> mostDisruptiveAllowedAction)
- Parameters:
mostDisruptiveAllowedAction
- Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.- Returns:
- builder
-
mostDisruptiveAllowedAction
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder mostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction)
- Parameters:
mostDisruptiveAllowedAction
- Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.- Returns:
- builder
-
replacementMethod
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder replacementMethod(@Nullable com.pulumi.core.Output<java.lang.String> replacementMethod)
- Parameters:
replacementMethod
- , The instance replacement method for managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set max_unavailable_fixed or max_unavailable_percent to be greater than 0. ***- Returns:
- builder
-
replacementMethod
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder replacementMethod(java.lang.String replacementMethod)
- Parameters:
replacementMethod
- , The instance replacement method for managed instance groups. Valid values are: "RECREATE", "SUBSTITUTE". If SUBSTITUTE (default), the group replaces VM instances with new instances that have randomly generated names. If RECREATE, instance names are preserved. You must also set max_unavailable_fixed or max_unavailable_percent to be greater than 0. ***- Returns:
- builder
-
type
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder type(com.pulumi.core.Output<java.lang.String> type)
- Parameters:
type
- The type of update process. You can specify either `PROACTIVE` so that the instance group manager proactively executes actions in order to bring instances to their target versions or `OPPORTUNISTIC` so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).- Returns:
- builder
-
type
public RegionInstanceGroupManagerUpdatePolicyArgs.Builder type(java.lang.String type)
- Parameters:
type
- The type of update process. You can specify either `PROACTIVE` so that the instance group manager proactively executes actions in order to bring instances to their target versions or `OPPORTUNISTIC` so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).- Returns:
- builder
-
build
public RegionInstanceGroupManagerUpdatePolicyArgs build()
-
-