Class InstanceRefresh

    • Method Detail

      • instanceRefreshId

        public final String instanceRefreshId()

        The instance refresh ID.

        Returns:
        The instance refresh ID.
      • autoScalingGroupName

        public final String autoScalingGroupName()

        The name of the Auto Scaling group.

        Returns:
        The name of the Auto Scaling group.
      • status

        public final InstanceRefreshStatus 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.

        If the service returns an enum value that is not available in the current SDK version, status will return InstanceRefreshStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        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.

        See Also:
        InstanceRefreshStatus
      • statusAsString

        public final String 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.

        If the service returns an enum value that is not available in the current SDK version, status will return InstanceRefreshStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        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.

        See Also:
        InstanceRefreshStatus
      • statusReason

        public final String statusReason()

        The explanation for the specific status assigned to this operation.

        Returns:
        The explanation for the specific status assigned to this operation.
      • startTime

        public final Instant startTime()

        The date and time at which the instance refresh began.

        Returns:
        The date and time at which the instance refresh began.
      • endTime

        public final Instant endTime()

        The date and time at which the instance refresh ended.

        Returns:
        The date and time at which the instance refresh ended.
      • percentageComplete

        public final Integer 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

        public final Integer 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

        public final InstanceRefreshProgressDetails 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

        public final RefreshPreferences preferences()

        The preferences for an instance refresh.

        Returns:
        The preferences for an instance refresh.
      • desiredConfiguration

        public final DesiredConfiguration desiredConfiguration()

        Describes the desired configuration for the instance refresh.

        Returns:
        Describes the desired configuration for the instance refresh.
      • rollbackDetails

        public final RollbackDetails rollbackDetails()

        The rollback details.

        Returns:
        The rollback details.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)