aws_sdk_appmonetization/client/get_app_infra_cost_summary.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 [`GetAppInfraCostSummary`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`app_id(impl Into<String>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
7 /// - [`started_at(DateTime)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::started_at) / [`set_started_at(Option<DateTime>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::set_started_at):<br>required: **true**<br>Start of the reporting window.<br>
8 /// - [`ended_at(DateTime)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::ended_at) / [`set_ended_at(Option<DateTime>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::set_ended_at):<br>required: **true**<br>End of the reporting window. Must be after startedAt, at most 720 hours after it, and not in the future.<br>
9 /// - [`cost_type(CostType)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::cost_type) / [`set_cost_type(Option<CostType>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::set_cost_type):<br>required: **true**<br>Specifies which cost data to return.<br>
10 /// - [`group_by(InfraCostSummaryDimension)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::group_by) / [`set_group_by(Option<InfraCostSummaryDimension>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::set_group_by):<br>required: **false**<br>The breakdown dimension. Defaults to SERVICE when omitted.<br>
11 /// - [`filter_by(InfraCostSummaryDimension, Vec::<String>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::filter_by) / [`set_filter_by(Option<HashMap::<InfraCostSummaryDimension, Vec::<String>>>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::set_filter_by):<br>required: **false**<br>Filter constraints keyed by dimension. A filter dimension may differ from groupBy.<br>
12 /// - [`scope(RequestScope)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox.<br>
13 /// - On success, responds with [`GetAppInfraCostSummaryOutput`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput) with field(s):
14 /// - [`app_id(String)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::app_id): The ID of the app.
15 /// - [`cost_type(CostType)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::cost_type): The cost data that this summary reflects (echoes the request).
16 /// - [`currency(Currency)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::currency): The ISO 4217 currency code of the cost amounts.
17 /// - [`group_by(InfraCostSummaryDimension)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::group_by): The dimension that the summary is grouped by.
18 /// - [`total(String)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::total): The total cost for the window.
19 /// - [`groups(Vec::<CostGroup>)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::groups): One row per value of the groupBy dimension (cost per service, user, or UTC day).
20 /// - [`started_at(DateTime)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::started_at): Start of the reporting window the summary covers.
21 /// - [`ended_at(DateTime)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::ended_at): End of the reporting window the summary covers.
22 /// - [`updated_at(DateTime)`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryOutput::updated_at): The time the summary was last updated.
23 /// - On failure, responds with [`SdkError<GetAppInfraCostSummaryError>`](crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError)
24 pub fn get_app_infra_cost_summary(&self) -> crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder {
25 crate::operation::get_app_infra_cost_summary::builders::GetAppInfraCostSummaryFluentBuilder::new(self.handle.clone())
26 }
27}