// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateCostCategoryDefinition`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::set_name):<br>required: **true**<br><p>The unique name of the cost category.</p><br>
/// - [`effective_start(impl Into<String>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::effective_start) / [`set_effective_start(Option<String>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::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::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::rule_version) / [`set_rule_version(Option<CostCategoryRuleVersion>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::set_rule_version):<br>required: **true**<br><p>The rule schema version in this particular cost category.</p><br>
/// - [`rules(CostCategoryRule)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::rules) / [`set_rules(Option<Vec::<CostCategoryRule>>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::set_rules):<br>required: **true**<br><p>The cost category rules 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::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::default_value) / [`set_default_value(Option<String>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::set_default_value):<br>required: **false**<br><p>The default value for the cost category.</p><br>
/// - [`split_charge_rules(CostCategorySplitChargeRule)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::split_charge_rules) / [`set_split_charge_rules(Option<Vec::<CostCategorySplitChargeRule>>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::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>
/// - [`resource_tags(ResourceTag)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::resource_tags) / [`set_resource_tags(Option<Vec::<ResourceTag>>)`](crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::set_resource_tags):<br>required: **false**<br><p>An optional list of tags to associate with the specified <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategory.html"> <code>CostCategory</code> </a>. You can use resource tags to control access to your <code>cost category</code> using IAM policies.</p> <p>Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:</p> <ul> <li> <p>Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use</p></li> <li> <p>The maximum length of a key is 128 characters</p></li> <li> <p>The maximum length of a value is 256 characters</p></li> <li> <p>Keys and values can only contain alphanumeric characters, spaces, and any of the following: <code>_.:/=+@-</code></p></li> <li> <p>Keys and values are case sensitive</p></li> <li> <p>Keys and values are trimmed for any leading or trailing whitespaces</p></li> <li> <p>Don’t use <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon Web Services use</p></li> </ul><br>
/// - On success, responds with [`CreateCostCategoryDefinitionOutput`](crate::operation::create_cost_category_definition::CreateCostCategoryDefinitionOutput) with field(s):
/// - [`cost_category_arn(Option<String>)`](crate::operation::create_cost_category_definition::CreateCostCategoryDefinitionOutput::cost_category_arn): <p>The unique identifier for your newly created cost category.</p>
/// - [`effective_start(Option<String>)`](crate::operation::create_cost_category_definition::CreateCostCategoryDefinitionOutput::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<CreateCostCategoryDefinitionError>`](crate::operation::create_cost_category_definition::CreateCostCategoryDefinitionError)
pub fn create_cost_category_definition(
&self,
) -> crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder {
crate::operation::create_cost_category_definition::builders::CreateCostCategoryDefinitionFluentBuilder::new(self.handle.clone())
}
}