public class DescribeInstanceStatusRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeInstanceStatusRequest>
DescribeInstanceStatus operation
.
Describes the status of one or more instances, including any scheduled events.
Instance status has two main components:
System Status reports impaired functionality that stems from issues related to the systems that support an instance, such as such as hardware failures and network connectivity problems. This call reports such problems as impaired reachability.
Instance Status reports impaired functionality that arises from problems internal to the instance. This call reports such problems as impaired reachability.
Instance status provides information about four types of scheduled events for an instance that may require your attention:
Scheduled Reboot: When Amazon EC2 determines that an instance must be
rebooted, the instances status returns one of two event codes:
system-reboot
or instance-reboot
. System
reboot commonly occurs if certain maintenance or upgrade operations
require a reboot of the underlying host that supports an instance.
Instance reboot commonly occurs if the instance must be rebooted,
rather than the underlying host. Rebooting events include a scheduled
start and end time.
System Maintenance: When Amazon EC2 determines that an instance
requires maintenance that requires power or network impact, the
instance status is the event code system-maintenance
.
System maintenance is either power maintenance or network maintenance.
For power maintenance, your instance will be unavailable for a brief
period of time and then rebooted. For network maintenance, your
instance will experience a brief loss of network connectivity. System
maintenance events include a scheduled start and end time. You will
also be notified by email if one of your instances is set for system
maintenance. The email message indicates when your instance is
scheduled for maintenance.
Scheduled Retirement: When Amazon EC2 determines that an instance must
be shut down, the instance status is the event code
instance-retirement
. Retirement commonly occurs when the
underlying host is degraded and must be replaced. Retirement events
include a scheduled start and end time. You will also be notified by
email if one of your instances is set to retiring. The email message
indicates when your instance will be permanently retired.
Scheduled Stop: When Amazon EC2 determines that an instance must be
shut down, the instances status returns an event code called
instance-stop
.
Stop events include a scheduled start and end time. You will
also be notified by email if one of your instances is set to stop. The
email message indicates when your instance will be stopped.
When your instance is retired, it will either be terminated (if its
root device type is the instance-store) or stopped (if its root device
type is an EBS volume). Instances stopped due to retirement will not
be restarted, but you can do so manually. You can also avoid
retirement of EBS-backed instances by manually restarting your
instance when its event code is instance-retirement
.
This ensures that your instance is started on a different underlying
host.
For more information about failed status checks, see Troubleshooting Instances with Failed Status Checks in the Amazon Elastic Compute Cloud User Guide . For more information about working with scheduled events, see Working with an Instance That Has a Scheduled Event in the Amazon Elastic Compute Cloud User Guide .
NOOP
Constructor and Description |
---|
DescribeInstanceStatusRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DescribeInstanceStatusRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
One or more filters.
|
Boolean |
getIncludeAllInstances()
When
true , includes the health status for all instances. |
List<String> |
getInstanceIds()
One or more instance IDs.
|
Integer |
getMaxResults()
The maximum number of paginated instance items per response.
|
String |
getNextToken()
The next paginated set of results to return.
|
int |
hashCode() |
Boolean |
isIncludeAllInstances()
When
true , includes the health status for all instances. |
void |
setFilters(Collection<Filter> filters)
One or more filters.
|
void |
setIncludeAllInstances(Boolean includeAllInstances)
When
true , includes the health status for all instances. |
void |
setInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
void |
setMaxResults(Integer maxResults)
The maximum number of paginated instance items per response.
|
void |
setNextToken(String nextToken)
The next paginated set of results to return.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeInstanceStatusRequest |
withFilters(Collection<Filter> filters)
One or more filters.
|
DescribeInstanceStatusRequest |
withFilters(Filter... filters)
One or more filters.
|
DescribeInstanceStatusRequest |
withIncludeAllInstances(Boolean includeAllInstances)
When
true , includes the health status for all instances. |
DescribeInstanceStatusRequest |
withInstanceIds(Collection<String> instanceIds)
One or more instance IDs.
|
DescribeInstanceStatusRequest |
withInstanceIds(String... instanceIds)
One or more instance IDs.
|
DescribeInstanceStatusRequest |
withMaxResults(Integer maxResults)
The maximum number of paginated instance items per response.
|
DescribeInstanceStatusRequest |
withNextToken(String nextToken)
The next paginated set of results to return.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public List<String> getInstanceIds()
Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
public void setInstanceIds(Collection<String> instanceIds)
Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
instanceIds
- One or more instance IDs. Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
public DescribeInstanceStatusRequest withInstanceIds(String... instanceIds)
Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs. Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
public DescribeInstanceStatusRequest withInstanceIds(Collection<String> instanceIds)
Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs. Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
public List<Filter> getFilters()
availability-zone
- The
Availability Zone of the instance.
event.code
- The code identifying the type of event
(instance-reboot
| system-reboot
|
system-maintenance
| instance-retirement
|
instance-stop
).
event.description
- A description of the event.
event.not-after
- The latest end time for the
scheduled event.
event.not-before
- The
earliest start time for the scheduled event.
instance-state-code
- A code representing the state of
the instance, as a 16-bit unsigned integer. The high byte is an opaque
internal value and should be ignored. The low byte is set based on the
state represented. The valid values are 0 (pending), 16 (running), 32
(shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name
- The state of the
instance (pending
| running
|
shutting-down
| terminated
|
stopping
| stopped
).
instance-status.reachability
- Filters on instance
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
instance-status.status
- The status of the instance
(ok
| impaired
| initializing
|
insufficient-data
| not-applicable
).
system-status.reachability
- Filters on system
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
system-status.status
- The system status of the
instance (ok
| impaired
|
initializing
| insufficient-data
|
not-applicable
).
availability-zone
- The
Availability Zone of the instance.
event.code
- The code identifying the type of event
(instance-reboot
| system-reboot
|
system-maintenance
| instance-retirement
|
instance-stop
).
event.description
- A description of the event.
event.not-after
- The latest end time for the
scheduled event.
event.not-before
- The
earliest start time for the scheduled event.
instance-state-code
- A code representing the state of
the instance, as a 16-bit unsigned integer. The high byte is an opaque
internal value and should be ignored. The low byte is set based on the
state represented. The valid values are 0 (pending), 16 (running), 32
(shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name
- The state of the
instance (pending
| running
|
shutting-down
| terminated
|
stopping
| stopped
).
instance-status.reachability
- Filters on instance
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
instance-status.status
- The status of the instance
(ok
| impaired
| initializing
|
insufficient-data
| not-applicable
).
system-status.reachability
- Filters on system
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
system-status.status
- The system status of the
instance (ok
| impaired
|
initializing
| insufficient-data
|
not-applicable
).
public void setFilters(Collection<Filter> filters)
availability-zone
- The
Availability Zone of the instance.
event.code
- The code identifying the type of event
(instance-reboot
| system-reboot
|
system-maintenance
| instance-retirement
|
instance-stop
).
event.description
- A description of the event.
event.not-after
- The latest end time for the
scheduled event.
event.not-before
- The
earliest start time for the scheduled event.
instance-state-code
- A code representing the state of
the instance, as a 16-bit unsigned integer. The high byte is an opaque
internal value and should be ignored. The low byte is set based on the
state represented. The valid values are 0 (pending), 16 (running), 32
(shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name
- The state of the
instance (pending
| running
|
shutting-down
| terminated
|
stopping
| stopped
).
instance-status.reachability
- Filters on instance
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
instance-status.status
- The status of the instance
(ok
| impaired
| initializing
|
insufficient-data
| not-applicable
).
system-status.reachability
- Filters on system
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
system-status.status
- The system status of the
instance (ok
| impaired
|
initializing
| insufficient-data
|
not-applicable
).
filters
- One or more filters. availability-zone
- The
Availability Zone of the instance.
event.code
- The code identifying the type of event
(instance-reboot
| system-reboot
|
system-maintenance
| instance-retirement
|
instance-stop
).
event.description
- A description of the event.
event.not-after
- The latest end time for the
scheduled event.
event.not-before
- The
earliest start time for the scheduled event.
instance-state-code
- A code representing the state of
the instance, as a 16-bit unsigned integer. The high byte is an opaque
internal value and should be ignored. The low byte is set based on the
state represented. The valid values are 0 (pending), 16 (running), 32
(shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name
- The state of the
instance (pending
| running
|
shutting-down
| terminated
|
stopping
| stopped
).
instance-status.reachability
- Filters on instance
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
instance-status.status
- The status of the instance
(ok
| impaired
| initializing
|
insufficient-data
| not-applicable
).
system-status.reachability
- Filters on system
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
system-status.status
- The system status of the
instance (ok
| impaired
|
initializing
| insufficient-data
|
not-applicable
).
public DescribeInstanceStatusRequest withFilters(Filter... filters)
availability-zone
- The
Availability Zone of the instance.
event.code
- The code identifying the type of event
(instance-reboot
| system-reboot
|
system-maintenance
| instance-retirement
|
instance-stop
).
event.description
- A description of the event.
event.not-after
- The latest end time for the
scheduled event.
event.not-before
- The
earliest start time for the scheduled event.
instance-state-code
- A code representing the state of
the instance, as a 16-bit unsigned integer. The high byte is an opaque
internal value and should be ignored. The low byte is set based on the
state represented. The valid values are 0 (pending), 16 (running), 32
(shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name
- The state of the
instance (pending
| running
|
shutting-down
| terminated
|
stopping
| stopped
).
instance-status.reachability
- Filters on instance
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
instance-status.status
- The status of the instance
(ok
| impaired
| initializing
|
insufficient-data
| not-applicable
).
system-status.reachability
- Filters on system
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
system-status.status
- The system status of the
instance (ok
| impaired
|
initializing
| insufficient-data
|
not-applicable
).
Returns a reference to this object so that method calls can be chained together.
filters
- One or more filters. availability-zone
- The
Availability Zone of the instance.
event.code
- The code identifying the type of event
(instance-reboot
| system-reboot
|
system-maintenance
| instance-retirement
|
instance-stop
).
event.description
- A description of the event.
event.not-after
- The latest end time for the
scheduled event.
event.not-before
- The
earliest start time for the scheduled event.
instance-state-code
- A code representing the state of
the instance, as a 16-bit unsigned integer. The high byte is an opaque
internal value and should be ignored. The low byte is set based on the
state represented. The valid values are 0 (pending), 16 (running), 32
(shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name
- The state of the
instance (pending
| running
|
shutting-down
| terminated
|
stopping
| stopped
).
instance-status.reachability
- Filters on instance
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
instance-status.status
- The status of the instance
(ok
| impaired
| initializing
|
insufficient-data
| not-applicable
).
system-status.reachability
- Filters on system
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
system-status.status
- The system status of the
instance (ok
| impaired
|
initializing
| insufficient-data
|
not-applicable
).
public DescribeInstanceStatusRequest withFilters(Collection<Filter> filters)
availability-zone
- The
Availability Zone of the instance.
event.code
- The code identifying the type of event
(instance-reboot
| system-reboot
|
system-maintenance
| instance-retirement
|
instance-stop
).
event.description
- A description of the event.
event.not-after
- The latest end time for the
scheduled event.
event.not-before
- The
earliest start time for the scheduled event.
instance-state-code
- A code representing the state of
the instance, as a 16-bit unsigned integer. The high byte is an opaque
internal value and should be ignored. The low byte is set based on the
state represented. The valid values are 0 (pending), 16 (running), 32
(shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name
- The state of the
instance (pending
| running
|
shutting-down
| terminated
|
stopping
| stopped
).
instance-status.reachability
- Filters on instance
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
instance-status.status
- The status of the instance
(ok
| impaired
| initializing
|
insufficient-data
| not-applicable
).
system-status.reachability
- Filters on system
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
system-status.status
- The system status of the
instance (ok
| impaired
|
initializing
| insufficient-data
|
not-applicable
).
Returns a reference to this object so that method calls can be chained together.
filters
- One or more filters. availability-zone
- The
Availability Zone of the instance.
event.code
- The code identifying the type of event
(instance-reboot
| system-reboot
|
system-maintenance
| instance-retirement
|
instance-stop
).
event.description
- A description of the event.
event.not-after
- The latest end time for the
scheduled event.
event.not-before
- The
earliest start time for the scheduled event.
instance-state-code
- A code representing the state of
the instance, as a 16-bit unsigned integer. The high byte is an opaque
internal value and should be ignored. The low byte is set based on the
state represented. The valid values are 0 (pending), 16 (running), 32
(shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name
- The state of the
instance (pending
| running
|
shutting-down
| terminated
|
stopping
| stopped
).
instance-status.reachability
- Filters on instance
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
instance-status.status
- The status of the instance
(ok
| impaired
| initializing
|
insufficient-data
| not-applicable
).
system-status.reachability
- Filters on system
status where the name is reachability
(passed
| failed
| initializing
| insufficient-data
).
system-status.status
- The system status of the
instance (ok
| impaired
|
initializing
| insufficient-data
|
not-applicable
).
public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The next paginated set of results to return.public DescribeInstanceStatusRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The next paginated set of results to return.public Integer getMaxResults()
Default: 1000
Default: 1000
public void setMaxResults(Integer maxResults)
Default: 1000
maxResults
- The maximum number of paginated instance items per response.
Default: 1000
public DescribeInstanceStatusRequest withMaxResults(Integer maxResults)
Default: 1000
Returns a reference to this object so that method calls can be chained together.
maxResults
- The maximum number of paginated instance items per response.
Default: 1000
public Boolean isIncludeAllInstances()
true
, includes the health status for all instances.
When false
, includes the health status for running
instances only. Default: false
true
, includes the health status for all instances.
When false
, includes the health status for running
instances only. Default: false
public void setIncludeAllInstances(Boolean includeAllInstances)
true
, includes the health status for all instances.
When false
, includes the health status for running
instances only. Default: false
includeAllInstances
- When true
, includes the health status for all instances.
When false
, includes the health status for running
instances only. Default: false
public DescribeInstanceStatusRequest withIncludeAllInstances(Boolean includeAllInstances)
true
, includes the health status for all instances.
When false
, includes the health status for running
instances only. Default: false
Returns a reference to this object so that method calls can be chained together.
includeAllInstances
- When true
, includes the health status for all instances.
When false
, includes the health status for running
instances only. Default: false
public Boolean getIncludeAllInstances()
true
, includes the health status for all instances.
When false
, includes the health status for running
instances only. Default: false
true
, includes the health status for all instances.
When false
, includes the health status for running
instances only. Default: false
public Request<DescribeInstanceStatusRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeInstanceStatusRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.