aws-sdk-amp 1.109.0

AWS SDK for Amazon Prometheus Service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListAnomalyDetectors`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`workspace_id(impl Into<String>)`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::workspace_id) / [`set_workspace_id(Option<String>)`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::set_workspace_id):<br>required: **true**<br><p>The identifier of the workspace containing the anomaly detectors to list.</p><br>
    ///   - [`alias(impl Into<String>)`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::alias) / [`set_alias(Option<String>)`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::set_alias):<br>required: **false**<br><p>Filters the results to anomaly detectors with the specified alias.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single call. Valid range is 1 to 1000.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token to continue retrieving results.</p><br>
    /// - On success, responds with [`ListAnomalyDetectorsOutput`](crate::operation::list_anomaly_detectors::ListAnomalyDetectorsOutput) with field(s):
    ///   - [`anomaly_detectors(Vec::<AnomalyDetectorSummary>)`](crate::operation::list_anomaly_detectors::ListAnomalyDetectorsOutput::anomaly_detectors): <p>The list of anomaly detectors in the workspace.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_anomaly_detectors::ListAnomalyDetectorsOutput::next_token): <p>The pagination token to retrieve the next set of results.</p>
    /// - On failure, responds with [`SdkError<ListAnomalyDetectorsError>`](crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError)
    pub fn list_anomaly_detectors(&self) -> crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder {
        crate::operation::list_anomaly_detectors::builders::ListAnomalyDetectorsFluentBuilder::new(self.handle.clone())
    }
}