Class InstanceRefresh
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<InstanceRefresh.Builder,
InstanceRefresh>
Describes an instance refresh for an Auto Scaling group.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The name of the Auto Scaling group.static InstanceRefresh.Builder
builder()
final DesiredConfiguration
Describes the desired configuration for the instance refresh.final Instant
endTime()
The date and time at which the instance refresh ended.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
The instance refresh ID.final Integer
The number of instances remaining to update before the instance refresh is complete.final Integer
The percentage of the instance refresh that is complete.final RefreshPreferences
The preferences for an instance refresh.Additional progress details for an Auto Scaling group that has a warm pool.final RollbackDetails
The rollback details.static Class
<? extends InstanceRefresh.Builder> final Instant
The date and time at which the instance refresh began.final InstanceRefreshStatus
status()
The current status for the instance refresh operation:final String
The current status for the instance refresh operation:final String
The explanation for the specific status assigned to this operation.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
instanceRefreshId
-
autoScalingGroupName
The name of the Auto Scaling group.
- Returns:
- The name of the Auto Scaling group.
-
status
The current status for the instance refresh operation:
-
Pending
- The request was created, but the instance refresh has not started. -
InProgress
- An instance refresh is in progress. -
Successful
- An instance refresh completed successfully. -
Failed
- An instance refresh failed to complete. You can troubleshoot using the status reason and the scaling activities. -
Cancelling
- An ongoing instance refresh is being cancelled. -
Cancelled
- The instance refresh is cancelled. -
RollbackInProgress
- An instance refresh is being rolled back. -
RollbackFailed
- The rollback failed to complete. You can troubleshoot using the status reason and the scaling activities. -
RollbackSuccessful
- The rollback completed successfully. -
Baking
- Waiting the specified bake time after an instance refresh has finished updating instances.
If the service returns an enum value that is not available in the current SDK version,
status
will returnInstanceRefreshStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The current status for the instance refresh operation:
-
Pending
- The request was created, but the instance refresh has not started. -
InProgress
- An instance refresh is in progress. -
Successful
- An instance refresh completed successfully. -
Failed
- An instance refresh failed to complete. You can troubleshoot using the status reason and the scaling activities. -
Cancelling
- An ongoing instance refresh is being cancelled. -
Cancelled
- The instance refresh is cancelled. -
RollbackInProgress
- An instance refresh is being rolled back. -
RollbackFailed
- The rollback failed to complete. You can troubleshoot using the status reason and the scaling activities. -
RollbackSuccessful
- The rollback completed successfully. -
Baking
- Waiting the specified bake time after an instance refresh has finished updating instances.
-
- See Also:
-
-
statusAsString
The current status for the instance refresh operation:
-
Pending
- The request was created, but the instance refresh has not started. -
InProgress
- An instance refresh is in progress. -
Successful
- An instance refresh completed successfully. -
Failed
- An instance refresh failed to complete. You can troubleshoot using the status reason and the scaling activities. -
Cancelling
- An ongoing instance refresh is being cancelled. -
Cancelled
- The instance refresh is cancelled. -
RollbackInProgress
- An instance refresh is being rolled back. -
RollbackFailed
- The rollback failed to complete. You can troubleshoot using the status reason and the scaling activities. -
RollbackSuccessful
- The rollback completed successfully. -
Baking
- Waiting the specified bake time after an instance refresh has finished updating instances.
If the service returns an enum value that is not available in the current SDK version,
status
will returnInstanceRefreshStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The current status for the instance refresh operation:
-
Pending
- The request was created, but the instance refresh has not started. -
InProgress
- An instance refresh is in progress. -
Successful
- An instance refresh completed successfully. -
Failed
- An instance refresh failed to complete. You can troubleshoot using the status reason and the scaling activities. -
Cancelling
- An ongoing instance refresh is being cancelled. -
Cancelled
- The instance refresh is cancelled. -
RollbackInProgress
- An instance refresh is being rolled back. -
RollbackFailed
- The rollback failed to complete. You can troubleshoot using the status reason and the scaling activities. -
RollbackSuccessful
- The rollback completed successfully. -
Baking
- Waiting the specified bake time after an instance refresh has finished updating instances.
-
- See Also:
-
-
statusReason
The explanation for the specific status assigned to this operation.
- Returns:
- The explanation for the specific status assigned to this operation.
-
startTime
The date and time at which the instance refresh began.
- Returns:
- The date and time at which the instance refresh began.
-
endTime
The date and time at which the instance refresh ended.
- Returns:
- The date and time at which the instance refresh ended.
-
percentageComplete
The percentage of the instance refresh that is complete. For each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and the specified warm-up time passes, the instance is considered updated and is added to the percentage complete.
PercentageComplete
does not include instances that are replaced during a rollback. This value gradually goes back down to zero during a rollback.- Returns:
- The percentage of the instance refresh that is complete. For each instance replacement, Amazon EC2 Auto
Scaling tracks the instance's health status and warm-up time. When the instance's health status changes
to healthy and the specified warm-up time passes, the instance is considered updated and is added to the
percentage complete.
PercentageComplete
does not include instances that are replaced during a rollback. This value gradually goes back down to zero during a rollback.
-
instancesToUpdate
The number of instances remaining to update before the instance refresh is complete.
If you roll back the instance refresh,
InstancesToUpdate
shows you the number of instances that were not yet updated by the instance refresh. Therefore, these instances don't need to be replaced as part of the rollback.- Returns:
- The number of instances remaining to update before the instance refresh is complete.
If you roll back the instance refresh,
InstancesToUpdate
shows you the number of instances that were not yet updated by the instance refresh. Therefore, these instances don't need to be replaced as part of the rollback.
-
progressDetails
Additional progress details for an Auto Scaling group that has a warm pool.
- Returns:
- Additional progress details for an Auto Scaling group that has a warm pool.
-
preferences
The preferences for an instance refresh.
- Returns:
- The preferences for an instance refresh.
-
desiredConfiguration
Describes the desired configuration for the instance refresh.
- Returns:
- Describes the desired configuration for the instance refresh.
-
rollbackDetails
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<InstanceRefresh.Builder,
InstanceRefresh> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-