aws_sdk_costexplorer/client/
get_anomaly_monitors.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 [`GetAnomalyMonitors`](crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`monitor_arn_list(impl Into<String>)`](crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder::monitor_arn_list) / [`set_monitor_arn_list(Option<Vec::<String>>)`](crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder::set_monitor_arn_list):<br>required: **false**<br><p>A list of cost anomaly monitor ARNs.</p><br>
8    ///   - [`next_page_token(impl Into<String>)`](crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder::next_page_token) / [`set_next_page_token(Option<String>)`](crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder::set_next_page_token):<br>required: **false**<br><p>The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder::set_max_results):<br>required: **false**<br><p>The number of entries that a paginated response contains.</p><br>
10    /// - On success, responds with [`GetAnomalyMonitorsOutput`](crate::operation::get_anomaly_monitors::GetAnomalyMonitorsOutput) with field(s):
11    ///   - [`anomaly_monitors(Vec::<AnomalyMonitor>)`](crate::operation::get_anomaly_monitors::GetAnomalyMonitorsOutput::anomaly_monitors): <p>A list of cost anomaly monitors that includes the detailed metadata for each monitor.</p>
12    ///   - [`next_page_token(Option<String>)`](crate::operation::get_anomaly_monitors::GetAnomalyMonitorsOutput::next_page_token): <p>The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.</p>
13    /// - On failure, responds with [`SdkError<GetAnomalyMonitorsError>`](crate::operation::get_anomaly_monitors::GetAnomalyMonitorsError)
14    pub fn get_anomaly_monitors(&self) -> crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder {
15        crate::operation::get_anomaly_monitors::builders::GetAnomalyMonitorsFluentBuilder::new(self.handle.clone())
16    }
17}