aws_sdk_devopsguru/client/get_cost_estimation.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 [`GetCostEstimation`](crate::operation::get_cost_estimation::builders::GetCostEstimationFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_cost_estimation::builders::GetCostEstimationFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::get_cost_estimation::builders::GetCostEstimationFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_cost_estimation::builders::GetCostEstimationFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</p><br>
8 /// - On success, responds with [`GetCostEstimationOutput`](crate::operation::get_cost_estimation::GetCostEstimationOutput) with field(s):
9 /// - [`resource_collection(Option<CostEstimationResourceCollectionFilter>)`](crate::operation::get_cost_estimation::GetCostEstimationOutput::resource_collection): <p>The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.</p>
10 /// - [`status(Option<CostEstimationStatus>)`](crate::operation::get_cost_estimation::GetCostEstimationOutput::status): <p>The status of creating this cost estimate. If it's still in progress, the status <code>ONGOING</code> is returned. If it is finished, the status <code>COMPLETED</code> is returned.</p>
11 /// - [`costs(Option<Vec::<ServiceResourceCost>>)`](crate::operation::get_cost_estimation::GetCostEstimationOutput::costs): <p>An array of <code>ResourceCost</code> objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.</p>
12 /// - [`time_range(Option<CostEstimationTimeRange>)`](crate::operation::get_cost_estimation::GetCostEstimationOutput::time_range): <p>The start and end time of the cost estimation.</p>
13 /// - [`total_cost(f64)`](crate::operation::get_cost_estimation::GetCostEstimationOutput::total_cost): <p>The estimated monthly cost to analyze the Amazon Web Services resources. This value is the sum of the estimated costs to analyze each resource in the <code>Costs</code> object in this response.</p>
14 /// - [`next_token(Option<String>)`](crate::operation::get_cost_estimation::GetCostEstimationOutput::next_token): <p>The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.</p>
15 /// - On failure, responds with [`SdkError<GetCostEstimationError>`](crate::operation::get_cost_estimation::GetCostEstimationError)
16 pub fn get_cost_estimation(&self) -> crate::operation::get_cost_estimation::builders::GetCostEstimationFluentBuilder {
17 crate::operation::get_cost_estimation::builders::GetCostEstimationFluentBuilder::new(self.handle.clone())
18 }
19}