aws_sdk_ec2/client/
describe_instance_sql_ha_history_states.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 [`DescribeInstanceSqlHaHistoryStates`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_ids(impl Into<String>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::instance_ids) / [`set_instance_ids(Option<Vec::<String>>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::set_instance_ids):<br>required: **false**<br><p>The IDs of the SQL Server High Availability instances to describe. If omitted, the API returns historical states for all SQL Server High Availability instances.</p><br>
7    ///   - [`start_time(DateTime)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::start_time) / [`set_start_time(Option<DateTime>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::set_start_time):<br>required: **false**<br><p>The start data and time of the period for which to get the historical SQL Server High Availability states. If omitted, the API returns all available historical states.</p> <p>Timezone: UTC</p> <p>Format: <code>YYYY-MM-DDThh:mm:ss.sssZ</code></p><br>
8    ///   - [`end_time(DateTime)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::end_time) / [`set_end_time(Option<DateTime>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::set_end_time):<br>required: **false**<br><p>The end data and time of the period for which to get historical SQL Server High Availability states. If omitted, the API returns historical states up to the current date and time.</p> <p>Timezone: UTC</p> <p>Format: <code>YYYY-MM-DDThh:mm:ss.sssZ</code></p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to use to retrieve the next page of results.</p><br>
10    ///   - [`max_results(i32)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned <code>nextToken</code> value.</p><br>
11    ///   - [`filters(Filter)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::set_filters):<br>required: **false**<br><p>One or more filters to apply to the results. Supported filters include:</p> <ul>  <li>   <p><code>tag:<key></key></code> - The tag key and value pair assigned to the instance. For example, to find all instances tagged with <code>Owner:TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p></li>  <li>   <p><code>tag-key</code> - The tag key assigned to the instance.</p></li>  <li>   <p><code>haStatus</code> - The SQL Server High Availability status of the SQL Server High Availability instance (<code>processing</code> | <code>active</code> | <code>standby</code> | <code>invalid</code>).</p></li>  <li>   <p><code>sqlServerLicenseUsage</code> - The license type for the SQL Server license (<code>full</code> | <code>waived</code>).</p></li> </ul><br>
12    ///   - [`dry_run(bool)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, 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>
13    /// - On success, responds with [`DescribeInstanceSqlHaHistoryStatesOutput`](crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesOutput) with field(s):
14    ///   - [`instances(Option<Vec::<RegisteredInstance>>)`](crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesOutput::instances): <p>Information about the historical SQL Server High Availability states of the SQL Server High Availability instances.</p>
15    ///   - [`next_token(Option<String>)`](crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesOutput::next_token): <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
16    /// - On failure, responds with [`SdkError<DescribeInstanceSqlHaHistoryStatesError>`](crate::operation::describe_instance_sql_ha_history_states::DescribeInstanceSqlHaHistoryStatesError)
17    pub fn describe_instance_sql_ha_history_states(
18        &self,
19    ) -> crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder {
20        crate::operation::describe_instance_sql_ha_history_states::builders::DescribeInstanceSqlHaHistoryStatesFluentBuilder::new(self.handle.clone())
21    }
22}