aws_sdk_ec2/client/describe_instance_status.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DescribeInstanceStatus`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`instance_ids(impl Into<String>)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::instance_ids) / [`set_instance_ids(Option<Vec::<String>>)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::set_instance_ids):<br>required: **false**<br><p>The instance IDs.</p> <p>Default: Describes all your instances.</p> <p>Constraints: Maximum 100 explicitly specified instance IDs.</p><br>
8 /// - [`max_results(i32)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p> <p>You cannot specify this parameter and the instance IDs parameter in the same request.</p><br>
9 /// - [`next_token(impl Into<String>)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::set_next_token):<br>required: **false**<br><p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p><br>
10 /// - [`dry_run(bool)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
11 /// - [`filters(Filter)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::set_filters):<br>required: **false**<br><p>The filters.</p> <ul> <li> <p><code>availability-zone</code> - The Availability Zone of the instance.</p></li> <li> <p><code>event.code</code> - The code for the scheduled event (<code>instance-reboot</code> | <code>system-reboot</code> | <code>system-maintenance</code> | <code>instance-retirement</code> | <code>instance-stop</code>).</p></li> <li> <p><code>event.description</code> - A description of the event.</p></li> <li> <p><code>event.instance-event-id</code> - The ID of the event whose date and time you are modifying.</p></li> <li> <p><code>event.not-after</code> - The latest end time for the scheduled event (for example, <code>2014-09-15T17:15:20.000Z</code>).</p></li> <li> <p><code>event.not-before</code> - The earliest start time for the scheduled event (for example, <code>2014-09-15T17:15:20.000Z</code>).</p></li> <li> <p><code>event.not-before-deadline</code> - The deadline for starting the event (for example, <code>2014-09-15T17:15:20.000Z</code>).</p></li> <li> <p><code>instance-state-code</code> - The code for the instance state, as a 16-bit unsigned integer. The high byte is used for internal purposes 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).</p></li> <li> <p><code>instance-state-name</code> - The state of the instance (<code>pending</code> | <code>running</code> | <code>shutting-down</code> | <code>terminated</code> | <code>stopping</code> | <code>stopped</code>).</p></li> <li> <p><code>instance-status.reachability</code> - Filters on instance status where the name is <code>reachability</code> (<code>passed</code> | <code>failed</code> | <code>initializing</code> | <code>insufficient-data</code>).</p></li> <li> <p><code>instance-status.status</code> - The status of the instance (<code>ok</code> | <code>impaired</code> | <code>initializing</code> | <code>insufficient-data</code> | <code>not-applicable</code>).</p></li> <li> <p><code>operator.managed</code> - A Boolean that indicates whether this is a managed instance.</p></li> <li> <p><code>operator.principal</code> - The principal that manages the instance. Only valid for managed instances, where <code>managed</code> is <code>true</code>.</p></li> <li> <p><code>system-status.reachability</code> - Filters on system status where the name is <code>reachability</code> (<code>passed</code> | <code>failed</code> | <code>initializing</code> | <code>insufficient-data</code>).</p></li> <li> <p><code>system-status.status</code> - The system status of the instance (<code>ok</code> | <code>impaired</code> | <code>initializing</code> | <code>insufficient-data</code> | <code>not-applicable</code>).</p></li> <li> <p><code>attached-ebs-status.status</code> - The status of the attached EBS volume for the instance (<code>ok</code> | <code>impaired</code> | <code>initializing</code> | <code>insufficient-data</code> | <code>not-applicable</code>).</p></li> </ul><br>
12 /// - [`include_all_instances(bool)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::include_all_instances) / [`set_include_all_instances(Option<bool>)`](crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::set_include_all_instances):<br>required: **false**<br><p>When <code>true</code>, includes the health status for all instances. When <code>false</code>, includes the health status for running instances only.</p> <p>Default: <code>false</code></p><br>
13 /// - On success, responds with [`DescribeInstanceStatusOutput`](crate::operation::describe_instance_status::DescribeInstanceStatusOutput) with field(s):
14 /// - [`instance_statuses(Option<Vec::<InstanceStatus>>)`](crate::operation::describe_instance_status::DescribeInstanceStatusOutput::instance_statuses): <p>Information about the status of the instances.</p>
15 /// - [`next_token(Option<String>)`](crate::operation::describe_instance_status::DescribeInstanceStatusOutput::next_token): <p>The token to include in another request to get the next page of items. This value is <code>null</code> when there are no more items to return.</p>
16 /// - On failure, responds with [`SdkError<DescribeInstanceStatusError>`](crate::operation::describe_instance_status::DescribeInstanceStatusError)
17 pub fn describe_instance_status(&self) -> crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder {
18 crate::operation::describe_instance_status::builders::DescribeInstanceStatusFluentBuilder::new(self.handle.clone())
19 }
20}