aws_sdk_cloudwatchlogs/client/get_scheduled_query_history.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 [`GetScheduledQueryHistory`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`identifier(impl Into<String>)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::set_identifier):<br>required: **true**<br><p>The ARN or name of the scheduled query to retrieve history for.</p><br>
8 /// - [`start_time(i64)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::start_time) / [`set_start_time(Option<i64>)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::set_start_time):<br>required: **true**<br><p>The start time for the history query in Unix epoch format.</p><br>
9 /// - [`end_time(i64)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::end_time) / [`set_end_time(Option<i64>)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::set_end_time):<br>required: **true**<br><p>The end time for the history query in Unix epoch format.</p><br>
10 /// - [`execution_statuses(ExecutionStatus)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::execution_statuses) / [`set_execution_statuses(Option<Vec::<ExecutionStatus>>)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::set_execution_statuses):<br>required: **false**<br><p>An array of execution statuses to filter the history results. Only executions with the specified statuses are returned.</p><br>
11 /// - [`max_results(i32)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of history records to return. Valid range is 1 to 1000.</p><br>
12 /// - [`next_token(impl Into<String>)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of items to return. The token expires after 24 hours.</p><br>
13 /// - On success, responds with [`GetScheduledQueryHistoryOutput`](crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryOutput) with field(s):
14 /// - [`name(Option<String>)`](crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryOutput::name): <p>The name of the scheduled query.</p>
15 /// - [`scheduled_query_arn(Option<String>)`](crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryOutput::scheduled_query_arn): <p>The ARN of the scheduled query.</p>
16 /// - [`trigger_history(Option<Vec::<TriggerHistoryRecord>>)`](crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryOutput::trigger_history): <p>An array of execution history records for the scheduled query.</p>
17 /// - [`next_token(Option<String>)`](crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryOutput::next_token): <p>The token for the next set of items to return. The token expires after 24 hours.</p>
18 /// - On failure, responds with [`SdkError<GetScheduledQueryHistoryError>`](crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError)
19 pub fn get_scheduled_query_history(&self) -> crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder {
20 crate::operation::get_scheduled_query_history::builders::GetScheduledQueryHistoryFluentBuilder::new(self.handle.clone())
21 }
22}