aws_sdk_billing/client/list_billing_views.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 [`ListBillingViews`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`active_time_range(ActiveTimeRange)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::active_time_range) / [`set_active_time_range(Option<ActiveTimeRange>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::set_active_time_range):<br>required: **false**<br><p>The time range for the billing views listed. <code>PRIMARY</code> billing view is always listed. <code>BILLING_GROUP</code> billing views are listed for time ranges when the associated billing group resource in Billing Conductor is active. The time range must be within one calendar month.</p><br>
8 /// - [`arns(impl Into<String>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::arns) / [`set_arns(Option<Vec::<String>>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::set_arns):<br>required: **false**<br><p>The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.</p><br>
9 /// - [`billing_view_types(BillingViewType)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::billing_view_types) / [`set_billing_view_types(Option<Vec::<BillingViewType>>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::set_billing_view_types):<br>required: **false**<br><p>The type of billing view.</p><br>
10 /// - [`names(StringSearch)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::names) / [`set_names(Option<Vec::<StringSearch>>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::set_names):<br>required: **false**<br><p>Filters the list of billing views by name. You can specify search criteria to match billing view names based on the search option provided.</p><br>
11 /// - [`owner_account_id(impl Into<String>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::owner_account_id) / [`set_owner_account_id(Option<String>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::set_owner_account_id):<br>required: **false**<br><p>The list of owners of the billing view.</p><br>
12 /// - [`source_account_id(impl Into<String>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::source_account_id) / [`set_source_account_id(Option<String>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::set_source_account_id):<br>required: **false**<br><p>Filters the results to include only billing views that use the specified account as a source.</p><br>
13 /// - [`max_results(i32)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of billing views to retrieve. Default is 100.</p><br>
14 /// - [`next_token(impl Into<String>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token that is used on subsequent calls to list billing views.</p><br>
15 /// - On success, responds with [`ListBillingViewsOutput`](crate::operation::list_billing_views::ListBillingViewsOutput) with field(s):
16 /// - [`billing_views(Vec::<BillingViewListElement>)`](crate::operation::list_billing_views::ListBillingViewsOutput::billing_views): <p>A list of <code>BillingViewListElement</code> retrieved.</p>
17 /// - [`next_token(Option<String>)`](crate::operation::list_billing_views::ListBillingViewsOutput::next_token): <p>The pagination token to use on subsequent calls to list billing views.</p>
18 /// - On failure, responds with [`SdkError<ListBillingViewsError>`](crate::operation::list_billing_views::ListBillingViewsError)
19 pub fn list_billing_views(&self) -> crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder {
20 crate::operation::list_billing_views::builders::ListBillingViewsFluentBuilder::new(self.handle.clone())
21 }
22}