aws-sdk-costexplorer 1.115.0

AWS SDK for AWS Cost Explorer Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateCostCategoryDefinition`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`cost_category_arn(impl Into<String>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::cost_category_arn) / [`set_cost_category_arn(Option<String>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::set_cost_category_arn):<br>required: **true**<br><p>The unique identifier for your cost category.</p><br>
    ///   - [`effective_start(impl Into<String>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::effective_start) / [`set_effective_start(Option<String>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::set_effective_start):<br>required: **false**<br><p>The cost category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.</p><br>
    ///   - [`rule_version(CostCategoryRuleVersion)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::rule_version) / [`set_rule_version(Option<CostCategoryRuleVersion>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::set_rule_version):<br>required: **true**<br><p>The rule schema version in this particular cost category.</p><br>
    ///   - [`rules(CostCategoryRule)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::rules) / [`set_rules(Option<Vec::<CostCategoryRule>>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::set_rules):<br>required: **true**<br><p>The <code>Expression</code> object used to categorize costs. For more information, see <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html">CostCategoryRule </a>.</p><br>
    ///   - [`default_value(impl Into<String>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::default_value) / [`set_default_value(Option<String>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::set_default_value):<br>required: **false**<br><p>The default value for the cost category.</p><br>
    ///   - [`split_charge_rules(CostCategorySplitChargeRule)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::split_charge_rules) / [`set_split_charge_rules(Option<Vec::<CostCategorySplitChargeRule>>)`](crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::set_split_charge_rules):<br>required: **false**<br><p>The split charge rules used to allocate your charges between your cost category values.</p><br>
    /// - On success, responds with [`UpdateCostCategoryDefinitionOutput`](crate::operation::update_cost_category_definition::UpdateCostCategoryDefinitionOutput) with field(s):
    ///   - [`cost_category_arn(Option<String>)`](crate::operation::update_cost_category_definition::UpdateCostCategoryDefinitionOutput::cost_category_arn): <p>The unique identifier for your cost category.</p>
    ///   - [`effective_start(Option<String>)`](crate::operation::update_cost_category_definition::UpdateCostCategoryDefinitionOutput::effective_start): <p>The cost category's effective start date. It can only be a billing start date (first day of the month).</p>
    /// - On failure, responds with [`SdkError<UpdateCostCategoryDefinitionError>`](crate::operation::update_cost_category_definition::UpdateCostCategoryDefinitionError)
    pub fn update_cost_category_definition(
        &self,
    ) -> crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder {
        crate::operation::update_cost_category_definition::builders::UpdateCostCategoryDefinitionFluentBuilder::new(self.handle.clone())
    }
}