aws_sdk_billing/client/create_billing_view.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 [`CreateBillingView`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::set_name):<br>required: **true**<br><p>The name of the billing view.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::set_description):<br>required: **false**<br><p>The description of the billing view.</p><br>
8 /// - [`source_views(impl Into<String>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::source_views) / [`set_source_views(Option<Vec::<String>>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::set_source_views):<br>required: **true**<br><p>A list of billing views used as the data source for the custom billing view.</p><br>
9 /// - [`data_filter_expression(Expression)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::data_filter_expression) / [`set_data_filter_expression(Option<Expression>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::set_data_filter_expression):<br>required: **false**<br><p>See <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html">Expression</a>. Billing view only supports <code>LINKED_ACCOUNT</code> and <code>Tags</code>.</p><br>
10 /// - [`client_token(impl Into<String>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. If the original request completes successfully, any subsequent retries complete successfully without performing any further actions with an idempotent request.</p><br>
11 /// - [`resource_tags(ResourceTag)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::resource_tags) / [`set_resource_tags(Option<Vec::<ResourceTag>>)`](crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::set_resource_tags):<br>required: **false**<br><p>A list of key value map specifying tags associated to the billing view being created.</p><br>
12 /// - On success, responds with [`CreateBillingViewOutput`](crate::operation::create_billing_view::CreateBillingViewOutput) with field(s):
13 /// - [`arn(String)`](crate::operation::create_billing_view::CreateBillingViewOutput::arn): <p>The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.</p>
14 /// - [`created_at(Option<DateTime>)`](crate::operation::create_billing_view::CreateBillingViewOutput::created_at): <p>The time when the billing view was created.</p>
15 /// - On failure, responds with [`SdkError<CreateBillingViewError>`](crate::operation::create_billing_view::CreateBillingViewError)
16 pub fn create_billing_view(&self) -> crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder {
17 crate::operation::create_billing_view::builders::CreateBillingViewFluentBuilder::new(self.handle.clone())
18 }
19}