@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RefreshPreferences extends Object implements Serializable, Cloneable
Describes the preferences for an instance refresh.
Constructor and Description |
---|
RefreshPreferences() |
Modifier and Type | Method and Description |
---|---|
RefreshPreferences |
clone() |
boolean |
equals(Object obj) |
AlarmSpecification |
getAlarmSpecification()
(Optional) The CloudWatch alarm specification.
|
Boolean |
getAutoRollback()
(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance
refresh fails or a CloudWatch alarm threshold is met.
|
Integer |
getCheckpointDelay()
(Optional) The amount of time, in seconds, to wait after a checkpoint before continuing.
|
List<Integer> |
getCheckpointPercentages()
(Optional) Threshold values for each checkpoint in ascending order.
|
Integer |
getInstanceWarmup()
A time period, in seconds, during which an instance refresh waits before moving on to replacing the next instance
after a new instance enters the
InService state. |
Integer |
getMaxHealthyPercentage()
Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support your
workload when replacing instances.
|
Integer |
getMinHealthyPercentage()
Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support your
workload to allow the operation to continue.
|
String |
getScaleInProtectedInstances()
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
|
Boolean |
getSkipMatching()
(Optional) Indicates whether skip matching is enabled.
|
String |
getStandbyInstances()
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in
Standby state are
found. |
int |
hashCode() |
Boolean |
isAutoRollback()
(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance
refresh fails or a CloudWatch alarm threshold is met.
|
Boolean |
isSkipMatching()
(Optional) Indicates whether skip matching is enabled.
|
void |
setAlarmSpecification(AlarmSpecification alarmSpecification)
(Optional) The CloudWatch alarm specification.
|
void |
setAutoRollback(Boolean autoRollback)
(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance
refresh fails or a CloudWatch alarm threshold is met.
|
void |
setCheckpointDelay(Integer checkpointDelay)
(Optional) The amount of time, in seconds, to wait after a checkpoint before continuing.
|
void |
setCheckpointPercentages(Collection<Integer> checkpointPercentages)
(Optional) Threshold values for each checkpoint in ascending order.
|
void |
setInstanceWarmup(Integer instanceWarmup)
A time period, in seconds, during which an instance refresh waits before moving on to replacing the next instance
after a new instance enters the
InService state. |
void |
setMaxHealthyPercentage(Integer maxHealthyPercentage)
Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support your
workload when replacing instances.
|
void |
setMinHealthyPercentage(Integer minHealthyPercentage)
Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support your
workload to allow the operation to continue.
|
void |
setScaleInProtectedInstances(String scaleInProtectedInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
|
void |
setSkipMatching(Boolean skipMatching)
(Optional) Indicates whether skip matching is enabled.
|
void |
setStandbyInstances(String standbyInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in
Standby state are
found. |
String |
toString()
Returns a string representation of this object.
|
RefreshPreferences |
withAlarmSpecification(AlarmSpecification alarmSpecification)
(Optional) The CloudWatch alarm specification.
|
RefreshPreferences |
withAutoRollback(Boolean autoRollback)
(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance
refresh fails or a CloudWatch alarm threshold is met.
|
RefreshPreferences |
withCheckpointDelay(Integer checkpointDelay)
(Optional) The amount of time, in seconds, to wait after a checkpoint before continuing.
|
RefreshPreferences |
withCheckpointPercentages(Collection<Integer> checkpointPercentages)
(Optional) Threshold values for each checkpoint in ascending order.
|
RefreshPreferences |
withCheckpointPercentages(Integer... checkpointPercentages)
(Optional) Threshold values for each checkpoint in ascending order.
|
RefreshPreferences |
withInstanceWarmup(Integer instanceWarmup)
A time period, in seconds, during which an instance refresh waits before moving on to replacing the next instance
after a new instance enters the
InService state. |
RefreshPreferences |
withMaxHealthyPercentage(Integer maxHealthyPercentage)
Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support your
workload when replacing instances.
|
RefreshPreferences |
withMinHealthyPercentage(Integer minHealthyPercentage)
Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support your
workload to allow the operation to continue.
|
RefreshPreferences |
withScaleInProtectedInstances(ScaleInProtectedInstances scaleInProtectedInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
|
RefreshPreferences |
withScaleInProtectedInstances(String scaleInProtectedInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
|
RefreshPreferences |
withSkipMatching(Boolean skipMatching)
(Optional) Indicates whether skip matching is enabled.
|
RefreshPreferences |
withStandbyInstances(StandbyInstances standbyInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in
Standby state are
found. |
RefreshPreferences |
withStandbyInstances(String standbyInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in
Standby state are
found. |
public void setMinHealthyPercentage(Integer minHealthyPercentage)
Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support your workload to allow the operation to continue. The value is expressed as a percentage of the desired capacity of the Auto Scaling group. Value range is 0 to 100.
If you do not specify this property, the default is 90 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
minHealthyPercentage
- Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support
your workload to allow the operation to continue. The value is expressed as a percentage of the desired
capacity of the Auto Scaling group. Value range is 0 to 100.
If you do not specify this property, the default is 90 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
public Integer getMinHealthyPercentage()
Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support your workload to allow the operation to continue. The value is expressed as a percentage of the desired capacity of the Auto Scaling group. Value range is 0 to 100.
If you do not specify this property, the default is 90 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
If you do not specify this property, the default is 90 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
public RefreshPreferences withMinHealthyPercentage(Integer minHealthyPercentage)
Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support your workload to allow the operation to continue. The value is expressed as a percentage of the desired capacity of the Auto Scaling group. Value range is 0 to 100.
If you do not specify this property, the default is 90 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
minHealthyPercentage
- Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support
your workload to allow the operation to continue. The value is expressed as a percentage of the desired
capacity of the Auto Scaling group. Value range is 0 to 100.
If you do not specify this property, the default is 90 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
public void setInstanceWarmup(Integer instanceWarmup)
A time period, in seconds, during which an instance refresh waits before moving on to replacing the next instance
after a new instance enters the InService
state.
This property is not required for normal usage. Instead, use the DefaultInstanceWarmup
property of
the Auto Scaling group. The InstanceWarmup
and DefaultInstanceWarmup
properties work
the same way. Only specify this property if you must override the DefaultInstanceWarmup
property.
If you do not specify this property, the instance warmup by default is the value of the
DefaultInstanceWarmup
property, if defined (which is recommended in all cases), or the
HealthCheckGracePeriod
property otherwise.
instanceWarmup
- A time period, in seconds, during which an instance refresh waits before moving on to replacing the next
instance after a new instance enters the InService
state.
This property is not required for normal usage. Instead, use the DefaultInstanceWarmup
property of the Auto Scaling group. The InstanceWarmup
and DefaultInstanceWarmup
properties work the same way. Only specify this property if you must override the
DefaultInstanceWarmup
property.
If you do not specify this property, the instance warmup by default is the value of the
DefaultInstanceWarmup
property, if defined (which is recommended in all cases), or the
HealthCheckGracePeriod
property otherwise.
public Integer getInstanceWarmup()
A time period, in seconds, during which an instance refresh waits before moving on to replacing the next instance
after a new instance enters the InService
state.
This property is not required for normal usage. Instead, use the DefaultInstanceWarmup
property of
the Auto Scaling group. The InstanceWarmup
and DefaultInstanceWarmup
properties work
the same way. Only specify this property if you must override the DefaultInstanceWarmup
property.
If you do not specify this property, the instance warmup by default is the value of the
DefaultInstanceWarmup
property, if defined (which is recommended in all cases), or the
HealthCheckGracePeriod
property otherwise.
InService
state.
This property is not required for normal usage. Instead, use the DefaultInstanceWarmup
property of the Auto Scaling group. The InstanceWarmup
and
DefaultInstanceWarmup
properties work the same way. Only specify this property if you must
override the DefaultInstanceWarmup
property.
If you do not specify this property, the instance warmup by default is the value of the
DefaultInstanceWarmup
property, if defined (which is recommended in all cases), or the
HealthCheckGracePeriod
property otherwise.
public RefreshPreferences withInstanceWarmup(Integer instanceWarmup)
A time period, in seconds, during which an instance refresh waits before moving on to replacing the next instance
after a new instance enters the InService
state.
This property is not required for normal usage. Instead, use the DefaultInstanceWarmup
property of
the Auto Scaling group. The InstanceWarmup
and DefaultInstanceWarmup
properties work
the same way. Only specify this property if you must override the DefaultInstanceWarmup
property.
If you do not specify this property, the instance warmup by default is the value of the
DefaultInstanceWarmup
property, if defined (which is recommended in all cases), or the
HealthCheckGracePeriod
property otherwise.
instanceWarmup
- A time period, in seconds, during which an instance refresh waits before moving on to replacing the next
instance after a new instance enters the InService
state.
This property is not required for normal usage. Instead, use the DefaultInstanceWarmup
property of the Auto Scaling group. The InstanceWarmup
and DefaultInstanceWarmup
properties work the same way. Only specify this property if you must override the
DefaultInstanceWarmup
property.
If you do not specify this property, the instance warmup by default is the value of the
DefaultInstanceWarmup
property, if defined (which is recommended in all cases), or the
HealthCheckGracePeriod
property otherwise.
public List<Integer> getCheckpointPercentages()
(Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all
instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Add checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
100
.
For usage examples, see Add checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
public void setCheckpointPercentages(Collection<Integer> checkpointPercentages)
(Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all
instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Add checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
checkpointPercentages
- (Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace
all instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Add checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
public RefreshPreferences withCheckpointPercentages(Integer... checkpointPercentages)
(Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all
instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Add checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setCheckpointPercentages(java.util.Collection)
or
withCheckpointPercentages(java.util.Collection)
if you want to override the existing values.
checkpointPercentages
- (Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace
all instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Add checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
public RefreshPreferences withCheckpointPercentages(Collection<Integer> checkpointPercentages)
(Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace all
instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Add checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
checkpointPercentages
- (Optional) Threshold values for each checkpoint in ascending order. Each number must be unique. To replace
all instances in the Auto Scaling group, the last number in the array must be 100
.
For usage examples, see Add checkpoints to an instance refresh in the Amazon EC2 Auto Scaling User Guide.
public void setCheckpointDelay(Integer checkpointDelay)
(Optional) The amount of time, in seconds, to wait after a checkpoint before continuing. This property is
optional, but if you specify a value for it, you must also specify a value for CheckpointPercentages
. If you specify a value for CheckpointPercentages
and not for CheckpointDelay
, the
CheckpointDelay
defaults to 3600
(1 hour).
checkpointDelay
- (Optional) The amount of time, in seconds, to wait after a checkpoint before continuing. This property is
optional, but if you specify a value for it, you must also specify a value for
CheckpointPercentages
. If you specify a value for CheckpointPercentages
and not
for CheckpointDelay
, the CheckpointDelay
defaults to 3600
(1 hour).public Integer getCheckpointDelay()
(Optional) The amount of time, in seconds, to wait after a checkpoint before continuing. This property is
optional, but if you specify a value for it, you must also specify a value for CheckpointPercentages
. If you specify a value for CheckpointPercentages
and not for CheckpointDelay
, the
CheckpointDelay
defaults to 3600
(1 hour).
CheckpointPercentages
. If you specify a value for CheckpointPercentages
and not
for CheckpointDelay
, the CheckpointDelay
defaults to 3600
(1
hour).public RefreshPreferences withCheckpointDelay(Integer checkpointDelay)
(Optional) The amount of time, in seconds, to wait after a checkpoint before continuing. This property is
optional, but if you specify a value for it, you must also specify a value for CheckpointPercentages
. If you specify a value for CheckpointPercentages
and not for CheckpointDelay
, the
CheckpointDelay
defaults to 3600
(1 hour).
checkpointDelay
- (Optional) The amount of time, in seconds, to wait after a checkpoint before continuing. This property is
optional, but if you specify a value for it, you must also specify a value for
CheckpointPercentages
. If you specify a value for CheckpointPercentages
and not
for CheckpointDelay
, the CheckpointDelay
defaults to 3600
(1 hour).public void setSkipMatching(Boolean skipMatching)
(Optional) Indicates whether skip matching is enabled. If enabled (true
), then Amazon EC2 Auto
Scaling skips replacing instances that match the desired configuration. If no desired configuration is specified,
then it skips replacing instances that have the same launch template and instance types that the Auto Scaling
group was using before the start of the instance refresh. The default is false
.
For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide.
skipMatching
- (Optional) Indicates whether skip matching is enabled. If enabled (true
), then Amazon EC2
Auto Scaling skips replacing instances that match the desired configuration. If no desired configuration
is specified, then it skips replacing instances that have the same launch template and instance types that
the Auto Scaling group was using before the start of the instance refresh. The default is
false
.
For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide.
public Boolean getSkipMatching()
(Optional) Indicates whether skip matching is enabled. If enabled (true
), then Amazon EC2 Auto
Scaling skips replacing instances that match the desired configuration. If no desired configuration is specified,
then it skips replacing instances that have the same launch template and instance types that the Auto Scaling
group was using before the start of the instance refresh. The default is false
.
For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide.
true
), then Amazon EC2
Auto Scaling skips replacing instances that match the desired configuration. If no desired configuration
is specified, then it skips replacing instances that have the same launch template and instance types
that the Auto Scaling group was using before the start of the instance refresh. The default is
false
.
For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide.
public RefreshPreferences withSkipMatching(Boolean skipMatching)
(Optional) Indicates whether skip matching is enabled. If enabled (true
), then Amazon EC2 Auto
Scaling skips replacing instances that match the desired configuration. If no desired configuration is specified,
then it skips replacing instances that have the same launch template and instance types that the Auto Scaling
group was using before the start of the instance refresh. The default is false
.
For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide.
skipMatching
- (Optional) Indicates whether skip matching is enabled. If enabled (true
), then Amazon EC2
Auto Scaling skips replacing instances that match the desired configuration. If no desired configuration
is specified, then it skips replacing instances that have the same launch template and instance types that
the Auto Scaling group was using before the start of the instance refresh. The default is
false
.
For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide.
public Boolean isSkipMatching()
(Optional) Indicates whether skip matching is enabled. If enabled (true
), then Amazon EC2 Auto
Scaling skips replacing instances that match the desired configuration. If no desired configuration is specified,
then it skips replacing instances that have the same launch template and instance types that the Auto Scaling
group was using before the start of the instance refresh. The default is false
.
For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide.
true
), then Amazon EC2
Auto Scaling skips replacing instances that match the desired configuration. If no desired configuration
is specified, then it skips replacing instances that have the same launch template and instance types
that the Auto Scaling group was using before the start of the instance refresh. The default is
false
.
For more information, see Use an instance refresh with skip matching in the Amazon EC2 Auto Scaling User Guide.
public void setAutoRollback(Boolean autoRollback)
(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance
refresh fails or a CloudWatch alarm threshold is met. The default is false
.
A rollback is not supported in the following situations:
There is no desired configuration specified for the instance refresh.
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead
of an AMI ID for the ImageId
property.
The Auto Scaling group uses the launch template's $Latest
or $Default
version.
For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
autoRollback
- (Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the
instance refresh fails or a CloudWatch alarm threshold is met. The default is false
.
A rollback is not supported in the following situations:
There is no desired configuration specified for the instance refresh.
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter
instead of an AMI ID for the ImageId
property.
The Auto Scaling group uses the launch template's $Latest
or $Default
version.
For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
public Boolean getAutoRollback()
(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance
refresh fails or a CloudWatch alarm threshold is met. The default is false
.
A rollback is not supported in the following situations:
There is no desired configuration specified for the instance refresh.
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead
of an AMI ID for the ImageId
property.
The Auto Scaling group uses the launch template's $Latest
or $Default
version.
For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
false
.
A rollback is not supported in the following situations:
There is no desired configuration specified for the instance refresh.
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter
instead of an AMI ID for the ImageId
property.
The Auto Scaling group uses the launch template's $Latest
or $Default
version.
For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
public RefreshPreferences withAutoRollback(Boolean autoRollback)
(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance
refresh fails or a CloudWatch alarm threshold is met. The default is false
.
A rollback is not supported in the following situations:
There is no desired configuration specified for the instance refresh.
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead
of an AMI ID for the ImageId
property.
The Auto Scaling group uses the launch template's $Latest
or $Default
version.
For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
autoRollback
- (Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the
instance refresh fails or a CloudWatch alarm threshold is met. The default is false
.
A rollback is not supported in the following situations:
There is no desired configuration specified for the instance refresh.
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter
instead of an AMI ID for the ImageId
property.
The Auto Scaling group uses the launch template's $Latest
or $Default
version.
For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
public Boolean isAutoRollback()
(Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance
refresh fails or a CloudWatch alarm threshold is met. The default is false
.
A rollback is not supported in the following situations:
There is no desired configuration specified for the instance refresh.
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead
of an AMI ID for the ImageId
property.
The Auto Scaling group uses the launch template's $Latest
or $Default
version.
For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
false
.
A rollback is not supported in the following situations:
There is no desired configuration specified for the instance refresh.
The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter
instead of an AMI ID for the ImageId
property.
The Auto Scaling group uses the launch template's $Latest
or $Default
version.
For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
public void setScaleInProtectedInstances(String scaleInProtectedInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
The following lists the valid values:
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances that are not protected.
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh will fail.
scaleInProtectedInstances
- Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are
found.
The following lists the valid values:
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances that are not protected.
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh will fail.
ScaleInProtectedInstances
public String getScaleInProtectedInstances()
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
The following lists the valid values:
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances that are not protected.
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh will fail.
The following lists the valid values:
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances that are not protected.
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh will fail.
ScaleInProtectedInstances
public RefreshPreferences withScaleInProtectedInstances(String scaleInProtectedInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
The following lists the valid values:
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances that are not protected.
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh will fail.
scaleInProtectedInstances
- Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are
found.
The following lists the valid values:
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances that are not protected.
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh will fail.
ScaleInProtectedInstances
public RefreshPreferences withScaleInProtectedInstances(ScaleInProtectedInstances scaleInProtectedInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are found.
The following lists the valid values:
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances that are not protected.
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh will fail.
scaleInProtectedInstances
- Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected from scale in are
found.
The following lists the valid values:
Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues to replace instances that are not protected.
Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise, the instance refresh will fail.
ScaleInProtectedInstances
public void setStandbyInstances(String standbyInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in Standby
state are
found.
The following lists the valid values:
Amazon EC2 Auto Scaling terminates instances that are in Standby
.
Amazon EC2 Auto Scaling ignores instances that are in Standby
and continues to replace instances
that are in the InService
state.
Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
standbyInstances
- Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in Standby
state are found.
The following lists the valid values:
Amazon EC2 Auto Scaling terminates instances that are in Standby
.
Amazon EC2 Auto Scaling ignores instances that are in Standby
and continues to replace
instances that are in the InService
state.
Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
StandbyInstances
public String getStandbyInstances()
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in Standby
state are
found.
The following lists the valid values:
Amazon EC2 Auto Scaling terminates instances that are in Standby
.
Amazon EC2 Auto Scaling ignores instances that are in Standby
and continues to replace instances
that are in the InService
state.
Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
Standby
state are found.
The following lists the valid values:
Amazon EC2 Auto Scaling terminates instances that are in Standby
.
Amazon EC2 Auto Scaling ignores instances that are in Standby
and continues to replace
instances that are in the InService
state.
Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
StandbyInstances
public RefreshPreferences withStandbyInstances(String standbyInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in Standby
state are
found.
The following lists the valid values:
Amazon EC2 Auto Scaling terminates instances that are in Standby
.
Amazon EC2 Auto Scaling ignores instances that are in Standby
and continues to replace instances
that are in the InService
state.
Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
standbyInstances
- Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in Standby
state are found.
The following lists the valid values:
Amazon EC2 Auto Scaling terminates instances that are in Standby
.
Amazon EC2 Auto Scaling ignores instances that are in Standby
and continues to replace
instances that are in the InService
state.
Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
StandbyInstances
public RefreshPreferences withStandbyInstances(StandbyInstances standbyInstances)
Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in Standby
state are
found.
The following lists the valid values:
Amazon EC2 Auto Scaling terminates instances that are in Standby
.
Amazon EC2 Auto Scaling ignores instances that are in Standby
and continues to replace instances
that are in the InService
state.
Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
standbyInstances
- Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in Standby
state are found.
The following lists the valid values:
Amazon EC2 Auto Scaling terminates instances that are in Standby
.
Amazon EC2 Auto Scaling ignores instances that are in Standby
and continues to replace
instances that are in the InService
state.
Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
StandbyInstances
public void setAlarmSpecification(AlarmSpecification alarmSpecification)
(Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and fail the operation if an alarm threshold is met.
alarmSpecification
- (Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and
fail the operation if an alarm threshold is met.public AlarmSpecification getAlarmSpecification()
(Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and fail the operation if an alarm threshold is met.
public RefreshPreferences withAlarmSpecification(AlarmSpecification alarmSpecification)
(Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and fail the operation if an alarm threshold is met.
alarmSpecification
- (Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and
fail the operation if an alarm threshold is met.public void setMaxHealthyPercentage(Integer maxHealthyPercentage)
Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support your workload when replacing instances. The value is expressed as a percentage of the desired capacity of the Auto Scaling group. Value range is 100 to 200.
If you specify MaxHealthyPercentage
, you must also specify MinHealthyPercentage
, and
the difference between them cannot be greater than 100. A larger range increases the number of instances that can
be replaced at the same time.
If you do not specify this property, the default is 100 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
maxHealthyPercentage
- Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support
your workload when replacing instances. The value is expressed as a percentage of the desired capacity of
the Auto Scaling group. Value range is 100 to 200.
If you specify MaxHealthyPercentage
, you must also specify MinHealthyPercentage
,
and the difference between them cannot be greater than 100. A larger range increases the number of
instances that can be replaced at the same time.
If you do not specify this property, the default is 100 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
public Integer getMaxHealthyPercentage()
Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support your workload when replacing instances. The value is expressed as a percentage of the desired capacity of the Auto Scaling group. Value range is 100 to 200.
If you specify MaxHealthyPercentage
, you must also specify MinHealthyPercentage
, and
the difference between them cannot be greater than 100. A larger range increases the number of instances that can
be replaced at the same time.
If you do not specify this property, the default is 100 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
If you specify MaxHealthyPercentage
, you must also specify MinHealthyPercentage
, and the difference between them cannot be greater than 100. A larger range increases the number of
instances that can be replaced at the same time.
If you do not specify this property, the default is 100 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
public RefreshPreferences withMaxHealthyPercentage(Integer maxHealthyPercentage)
Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support your workload when replacing instances. The value is expressed as a percentage of the desired capacity of the Auto Scaling group. Value range is 100 to 200.
If you specify MaxHealthyPercentage
, you must also specify MinHealthyPercentage
, and
the difference between them cannot be greater than 100. A larger range increases the number of instances that can
be replaced at the same time.
If you do not specify this property, the default is 100 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
maxHealthyPercentage
- Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support
your workload when replacing instances. The value is expressed as a percentage of the desired capacity of
the Auto Scaling group. Value range is 100 to 200.
If you specify MaxHealthyPercentage
, you must also specify MinHealthyPercentage
,
and the difference between them cannot be greater than 100. A larger range increases the number of
instances that can be replaced at the same time.
If you do not specify this property, the default is 100 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
public String toString()
toString
in class Object
Object.toString()
public RefreshPreferences clone()