#[non_exhaustive]pub struct GetCostEstimationOutput {
pub resource_collection: Option<CostEstimationResourceCollectionFilter>,
pub status: Option<CostEstimationStatus>,
pub costs: Option<Vec<ServiceResourceCost>>,
pub time_range: Option<CostEstimationTimeRange>,
pub total_cost: f64,
pub next_token: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource_collection: Option<CostEstimationResourceCollectionFilter>
The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.
status: Option<CostEstimationStatus>
The status of creating this cost estimate. If it's still in progress, the status ONGOING
is returned. If it is finished, the status COMPLETED
is returned.
costs: Option<Vec<ServiceResourceCost>>
An array of ResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.
time_range: Option<CostEstimationTimeRange>
The start and end time of the cost estimation.
total_cost: f64
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 Costs
object in this response.
next_token: Option<String>
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.
Implementations§
source§impl GetCostEstimationOutput
impl GetCostEstimationOutput
sourcepub fn resource_collection(
&self
) -> Option<&CostEstimationResourceCollectionFilter>
pub fn resource_collection( &self ) -> Option<&CostEstimationResourceCollectionFilter>
The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate.
sourcepub fn status(&self) -> Option<&CostEstimationStatus>
pub fn status(&self) -> Option<&CostEstimationStatus>
The status of creating this cost estimate. If it's still in progress, the status ONGOING
is returned. If it is finished, the status COMPLETED
is returned.
sourcepub fn costs(&self) -> &[ServiceResourceCost]
pub fn costs(&self) -> &[ServiceResourceCost]
An array of ResourceCost
objects that each contains details about the monthly cost estimate to analyze one of your Amazon Web Services resources.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .costs.is_none()
.
sourcepub fn time_range(&self) -> Option<&CostEstimationTimeRange>
pub fn time_range(&self) -> Option<&CostEstimationTimeRange>
The start and end time of the cost estimation.
sourcepub fn total_cost(&self) -> f64
pub fn total_cost(&self) -> f64
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 Costs
object in this response.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
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.
source§impl GetCostEstimationOutput
impl GetCostEstimationOutput
sourcepub fn builder() -> GetCostEstimationOutputBuilder
pub fn builder() -> GetCostEstimationOutputBuilder
Creates a new builder-style object to manufacture GetCostEstimationOutput
.
Trait Implementations§
source§impl Clone for GetCostEstimationOutput
impl Clone for GetCostEstimationOutput
source§fn clone(&self) -> GetCostEstimationOutput
fn clone(&self) -> GetCostEstimationOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetCostEstimationOutput
impl Debug for GetCostEstimationOutput
source§impl PartialEq for GetCostEstimationOutput
impl PartialEq for GetCostEstimationOutput
source§fn eq(&self, other: &GetCostEstimationOutput) -> bool
fn eq(&self, other: &GetCostEstimationOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetCostEstimationOutput
impl RequestId for GetCostEstimationOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.