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 StringThe name of the Auto Scaling group.static InstanceRefresh.Builderbuilder()final DesiredConfigurationDescribes the desired configuration for the instance refresh.final InstantendTime()The date and time at which the instance refresh ended.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe instance refresh ID.final IntegerThe number of instances remaining to update before the instance refresh is complete.final IntegerThe percentage of the instance refresh that is complete.final RefreshPreferencesThe preferences for an instance refresh.Additional progress details for an Auto Scaling group that has a warm pool.final RollbackDetailsThe rollback details.static Class<? extends InstanceRefresh.Builder>final InstantThe date and time at which the instance refresh began.final InstanceRefreshStatusstatus()The current status for the instance refresh operation:final StringThe current status for the instance refresh operation:final StringThe explanation for the specific status assigned to this operation.final RefreshStrategystrategy()The strategy to use for the instance refresh.final StringThe strategy to use for the instance refresh.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
instanceRefreshId
The instance refresh ID.
- Returns:
- The instance refresh ID.
-
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,
statuswill 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,
statuswill 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.
PercentageCompletedoes 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.
PercentageCompletedoes 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,
InstancesToUpdateshows 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,
InstancesToUpdateshows 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
The rollback details.
- Returns:
- The rollback details.
-
strategy
The strategy to use for the instance refresh. This determines how instances in the Auto Scaling group are updated. Default is Rolling.
-
Rolling– Terminates instances and launches replacements in batches -
ReplaceRootVolume– Updates instances by replacing only the root volume without terminating the instance
If the service returns an enum value that is not available in the current SDK version,
strategywill returnRefreshStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstrategyAsString().- Returns:
- The strategy to use for the instance refresh. This determines how instances in the Auto Scaling group are
updated. Default is Rolling.
-
Rolling– Terminates instances and launches replacements in batches -
ReplaceRootVolume– Updates instances by replacing only the root volume without terminating the instance
-
- See Also:
-
-
strategyAsString
The strategy to use for the instance refresh. This determines how instances in the Auto Scaling group are updated. Default is Rolling.
-
Rolling– Terminates instances and launches replacements in batches -
ReplaceRootVolume– Updates instances by replacing only the root volume without terminating the instance
If the service returns an enum value that is not available in the current SDK version,
strategywill returnRefreshStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstrategyAsString().- Returns:
- The strategy to use for the instance refresh. This determines how instances in the Auto Scaling group are
updated. Default is Rolling.
-
Rolling– Terminates instances and launches replacements in batches -
ReplaceRootVolume– Updates instances by replacing only the root volume without terminating the instance
-
- See Also:
-
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceRefresh.Builder,InstanceRefresh>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-