aws_sdk_billingconductor/client/
update_pricing_rule.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 [`UpdatePricingRule`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`arn(impl Into<String>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the pricing rule to update.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::set_name):<br>required: **false**<br><p>The new name of the pricing rule. The name must be unique to each pricing rule.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::set_description):<br>required: **false**<br><p>The new description for the pricing rule.</p><br>
9    ///   - [`r#type(PricingRuleType)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::type) / [`set_type(Option<PricingRuleType>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::set_type):<br>required: **false**<br><p>The new pricing rule type.</p><br>
10    ///   - [`modifier_percentage(f64)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::modifier_percentage) / [`set_modifier_percentage(Option<f64>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::set_modifier_percentage):<br>required: **false**<br><p>The new modifier to show pricing plan rates as a percentage. Your entry will be rounded to the nearest 2 decimal places.</p><br>
11    ///   - [`tiering(UpdateTieringInput)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::tiering) / [`set_tiering(Option<UpdateTieringInput>)`](crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::set_tiering):<br>required: **false**<br><p>The set of tiering configurations for the pricing rule.</p><br>
12    /// - On success, responds with [`UpdatePricingRuleOutput`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput) with field(s):
13    ///   - [`arn(Option<String>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::arn): <p>The Amazon Resource Name (ARN) of the successfully updated pricing rule.</p>
14    ///   - [`name(Option<String>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::name): <p>The new name of the pricing rule. The name must be unique to each pricing rule.</p>
15    ///   - [`description(Option<String>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::description): <p>The new description for the pricing rule.</p>
16    ///   - [`scope(Option<PricingRuleScope>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::scope): <p>The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.</p>
17    ///   - [`r#type(Option<PricingRuleType>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::type): <p>The new pricing rule type.</p>
18    ///   - [`modifier_percentage(Option<f64>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::modifier_percentage): <p>The new modifier to show pricing plan rates as a percentage.</p>
19    ///   - [`service(Option<String>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::service): <p>If the <code>Scope</code> attribute is set to <code>SERVICE</code>, the attribute indicates which service the <code>PricingRule</code> is applicable for.</p>
20    ///   - [`associated_pricing_plan_count(i64)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::associated_pricing_plan_count): <p>The pricing plans count that this pricing rule is associated with.</p>
21    ///   - [`last_modified_time(i64)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::last_modified_time): <p>The most recent time the pricing rule was modified.</p>
22    ///   - [`billing_entity(Option<String>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::billing_entity): <p>The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.</p>
23    ///   - [`tiering(Option<UpdateTieringInput>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::tiering): <p>The set of tiering configurations for the pricing rule.</p>
24    ///   - [`usage_type(Option<String>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::usage_type): <p>Usage type is the unit that each service uses to measure the usage of a specific type of resource.</p> <p>If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates which usage type the <code>PricingRule</code> is modifying. For example, <code>USW2-BoxUsage:m2.2xlarge</code> describes an <code>M2 High Memory Double Extra Large</code> instance in the US West (Oregon) Region.</p>
25    ///   - [`operation(Option<String>)`](crate::operation::update_pricing_rule::UpdatePricingRuleOutput::operation): <p>Operation refers to the specific Amazon Web Services covered by this line item. This describes the specific usage of the line item.</p> <p>If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates which operation the <code>PricingRule</code> is modifying. For example, a value of <code>RunInstances:0202</code> indicates the operation of running an Amazon EC2 instance.</p>
26    /// - On failure, responds with [`SdkError<UpdatePricingRuleError>`](crate::operation::update_pricing_rule::UpdatePricingRuleError)
27    pub fn update_pricing_rule(&self) -> crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder {
28        crate::operation::update_pricing_rule::builders::UpdatePricingRuleFluentBuilder::new(self.handle.clone())
29    }
30}