aws_sdk_billingconductor/client/
create_pricing_plan.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 [`CreatePricingPlan`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::set_name):<br>required: **true**<br><p>The name of the pricing plan. The names must be unique to each pricing plan.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::set_description):<br>required: **false**<br><p>The description of the pricing plan.</p><br>
9    ///   - [`pricing_rule_arns(impl Into<String>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::pricing_rule_arns) / [`set_pricing_rule_arns(Option<Vec::<String>>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::set_pricing_rule_arns):<br>required: **false**<br><p>A list of Amazon Resource Names (ARNs) that define the pricing plan parameters.</p><br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::set_tags):<br>required: **false**<br><p>A map that contains tag keys and tag values that are attached to a pricing plan.</p><br>
11    /// - On success, responds with [`CreatePricingPlanOutput`](crate::operation::create_pricing_plan::CreatePricingPlanOutput) with field(s):
12    ///   - [`arn(Option<String>)`](crate::operation::create_pricing_plan::CreatePricingPlanOutput::arn): <p>The Amazon Resource Name (ARN) of the created pricing plan.</p>
13    /// - On failure, responds with [`SdkError<CreatePricingPlanError>`](crate::operation::create_pricing_plan::CreatePricingPlanError)
14    pub fn create_pricing_plan(&self) -> crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder {
15        crate::operation::create_pricing_plan::builders::CreatePricingPlanFluentBuilder::new(self.handle.clone())
16    }
17}