aws_sdk_costexplorer/client/
get_anomalies.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAnomalies`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`monitor_arn(impl Into<String>)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::monitor_arn) / [`set_monitor_arn(Option<String>)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::set_monitor_arn):<br>required: **false**<br><p>Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).</p><br>
    ///   - [`date_interval(AnomalyDateInterval)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::date_interval) / [`set_date_interval(Option<AnomalyDateInterval>)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::set_date_interval):<br>required: **true**<br><p>Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an <code>AnomalyEndDate</code> in the specified time range.</p><br>
    ///   - [`feedback(AnomalyFeedbackType)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::feedback) / [`set_feedback(Option<AnomalyFeedbackType>)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::set_feedback):<br>required: **false**<br><p>Filters anomaly results by the feedback field on the anomaly object.</p><br>
    ///   - [`total_impact(TotalImpactFilter)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::total_impact) / [`set_total_impact(Option<TotalImpactFilter>)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::set_total_impact):<br>required: **false**<br><p>Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies <code>GREATER_THAN 200.00</code> to retrieve anomalies, with an estimated dollar impact greater than 200.</p><br>
    ///   - [`next_page_token(impl Into<String>)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::next_page_token) / [`set_next_page_token(Option<String>)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::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>
    ///   - [`max_results(i32)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::set_max_results):<br>required: **false**<br><p>The number of entries a paginated response contains.</p><br>
    /// - On success, responds with [`GetAnomaliesOutput`](crate::operation::get_anomalies::GetAnomaliesOutput) with field(s):
    ///   - [`anomalies(Vec::<Anomaly>)`](crate::operation::get_anomalies::GetAnomaliesOutput::anomalies): <p>A list of cost anomalies.</p>
    ///   - [`next_page_token(Option<String>)`](crate::operation::get_anomalies::GetAnomaliesOutput::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>
    /// - On failure, responds with [`SdkError<GetAnomaliesError>`](crate::operation::get_anomalies::GetAnomaliesError)
    pub fn get_anomalies(&self) -> crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder {
        crate::operation::get_anomalies::builders::GetAnomaliesFluentBuilder::new(self.handle.clone())
    }
}