Class GroupInstanceRefreshPreferencesArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.autoscaling.inputs.GroupInstanceRefreshPreferencesArgs.Builder
-
- Enclosing class:
- GroupInstanceRefreshPreferencesArgs
public static final class GroupInstanceRefreshPreferencesArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GroupInstanceRefreshPreferencesArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GroupInstanceRefreshPreferencesArgs defaults)
-
-
Method Detail
-
alarmSpecification
public GroupInstanceRefreshPreferencesArgs.Builder alarmSpecification(@Nullable com.pulumi.core.Output<GroupInstanceRefreshPreferencesAlarmSpecificationArgs> alarmSpecification)
- Parameters:
alarmSpecification
- Alarm Specification for Instance Refresh.- Returns:
- builder
-
alarmSpecification
public GroupInstanceRefreshPreferencesArgs.Builder alarmSpecification(GroupInstanceRefreshPreferencesAlarmSpecificationArgs alarmSpecification)
- Parameters:
alarmSpecification
- Alarm Specification for Instance Refresh.- Returns:
- builder
-
autoRollback
public GroupInstanceRefreshPreferencesArgs.Builder autoRollback(@Nullable com.pulumi.core.Output<java.lang.Boolean> autoRollback)
- Parameters:
autoRollback
- Automatically rollback if instance refresh fails. Defaults to `false`. This option may only be set to `true` when specifying a `launch_template` or `mixed_instances_policy`.- Returns:
- builder
-
autoRollback
public GroupInstanceRefreshPreferencesArgs.Builder autoRollback(java.lang.Boolean autoRollback)
- Parameters:
autoRollback
- Automatically rollback if instance refresh fails. Defaults to `false`. This option may only be set to `true` when specifying a `launch_template` or `mixed_instances_policy`.- Returns:
- builder
-
checkpointDelay
public GroupInstanceRefreshPreferencesArgs.Builder checkpointDelay(@Nullable com.pulumi.core.Output<java.lang.String> checkpointDelay)
- Parameters:
checkpointDelay
- Number of seconds to wait after a checkpoint. Defaults to `3600`.- Returns:
- builder
-
checkpointDelay
public GroupInstanceRefreshPreferencesArgs.Builder checkpointDelay(java.lang.String checkpointDelay)
- Parameters:
checkpointDelay
- Number of seconds to wait after a checkpoint. Defaults to `3600`.- Returns:
- builder
-
checkpointPercentages
public GroupInstanceRefreshPreferencesArgs.Builder checkpointPercentages(@Nullable com.pulumi.core.Output<java.util.List<java.lang.Integer>> checkpointPercentages)
- Parameters:
checkpointPercentages
- List of percentages for each checkpoint. Values must be unique and in ascending order. To replace all instances, the final number must be `100`.- Returns:
- builder
-
checkpointPercentages
public GroupInstanceRefreshPreferencesArgs.Builder checkpointPercentages(java.util.List<java.lang.Integer> checkpointPercentages)
- Parameters:
checkpointPercentages
- List of percentages for each checkpoint. Values must be unique and in ascending order. To replace all instances, the final number must be `100`.- Returns:
- builder
-
checkpointPercentages
public GroupInstanceRefreshPreferencesArgs.Builder checkpointPercentages(java.lang.Integer... checkpointPercentages)
- Parameters:
checkpointPercentages
- List of percentages for each checkpoint. Values must be unique and in ascending order. To replace all instances, the final number must be `100`.- Returns:
- builder
-
instanceWarmup
public GroupInstanceRefreshPreferencesArgs.Builder instanceWarmup(@Nullable com.pulumi.core.Output<java.lang.String> instanceWarmup)
- Parameters:
instanceWarmup
- Number of seconds until a newly launched instance is configured and ready to use. Default behavior is to use the Auto Scaling Group's health check grace period.- Returns:
- builder
-
instanceWarmup
public GroupInstanceRefreshPreferencesArgs.Builder instanceWarmup(java.lang.String instanceWarmup)
- Parameters:
instanceWarmup
- Number of seconds until a newly launched instance is configured and ready to use. Default behavior is to use the Auto Scaling Group's health check grace period.- Returns:
- builder
-
maxHealthyPercentage
public GroupInstanceRefreshPreferencesArgs.Builder maxHealthyPercentage(@Nullable com.pulumi.core.Output<java.lang.Integer> maxHealthyPercentage)
- Parameters:
maxHealthyPercentage
- Amount of capacity in the Auto Scaling group that can be in service and healthy, or pending, to support your workload when an instance refresh is in place, as a percentage of the desired capacity of the Auto Scaling group. Values must be between `100` and `200`, defaults to `100`.- Returns:
- builder
-
maxHealthyPercentage
public GroupInstanceRefreshPreferencesArgs.Builder maxHealthyPercentage(java.lang.Integer maxHealthyPercentage)
- Parameters:
maxHealthyPercentage
- Amount of capacity in the Auto Scaling group that can be in service and healthy, or pending, to support your workload when an instance refresh is in place, as a percentage of the desired capacity of the Auto Scaling group. Values must be between `100` and `200`, defaults to `100`.- Returns:
- builder
-
minHealthyPercentage
public GroupInstanceRefreshPreferencesArgs.Builder minHealthyPercentage(@Nullable com.pulumi.core.Output<java.lang.Integer> minHealthyPercentage)
- Parameters:
minHealthyPercentage
- Amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group. Defaults to `90`.- Returns:
- builder
-
minHealthyPercentage
public GroupInstanceRefreshPreferencesArgs.Builder minHealthyPercentage(java.lang.Integer minHealthyPercentage)
- Parameters:
minHealthyPercentage
- Amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group. Defaults to `90`.- Returns:
- builder
-
scaleInProtectedInstances
public GroupInstanceRefreshPreferencesArgs.Builder scaleInProtectedInstances(@Nullable com.pulumi.core.Output<java.lang.String> scaleInProtectedInstances)
- Parameters:
scaleInProtectedInstances
- Behavior when encountering instances protected from scale in are found. Available behaviors are `Refresh`, `Ignore`, and `Wait`. Default is `Ignore`.- Returns:
- builder
-
scaleInProtectedInstances
public GroupInstanceRefreshPreferencesArgs.Builder scaleInProtectedInstances(java.lang.String scaleInProtectedInstances)
- Parameters:
scaleInProtectedInstances
- Behavior when encountering instances protected from scale in are found. Available behaviors are `Refresh`, `Ignore`, and `Wait`. Default is `Ignore`.- Returns:
- builder
-
skipMatching
public GroupInstanceRefreshPreferencesArgs.Builder skipMatching(@Nullable com.pulumi.core.Output<java.lang.Boolean> skipMatching)
- Parameters:
skipMatching
- Replace instances that already have your desired configuration. Defaults to `false`.- Returns:
- builder
-
skipMatching
public GroupInstanceRefreshPreferencesArgs.Builder skipMatching(java.lang.Boolean skipMatching)
- Parameters:
skipMatching
- Replace instances that already have your desired configuration. Defaults to `false`.- Returns:
- builder
-
standbyInstances
public GroupInstanceRefreshPreferencesArgs.Builder standbyInstances(@Nullable com.pulumi.core.Output<java.lang.String> standbyInstances)
- Parameters:
standbyInstances
- Behavior when encountering instances in the `Standby` state in are found. Available behaviors are `Terminate`, `Ignore`, and `Wait`. Default is `Ignore`.- Returns:
- builder
-
standbyInstances
public GroupInstanceRefreshPreferencesArgs.Builder standbyInstances(java.lang.String standbyInstances)
- Parameters:
standbyInstances
- Behavior when encountering instances in the `Standby` state in are found. Available behaviors are `Terminate`, `Ignore`, and `Wait`. Default is `Ignore`.- Returns:
- builder
-
build
public GroupInstanceRefreshPreferencesArgs build()
-
-