CfnCostCategoryProps Struct
Properties for defining a CfnCostCategory.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ce as ce } from 'aws-cdk-lib';
const cfnCostCategoryProps: ce.CfnCostCategoryProps = {
name: 'name',
rules: 'rules',
ruleVersion: 'ruleVersion',
// the properties below are optional
defaultValue: 'defaultValue',
splitChargeRules: 'splitChargeRules',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
The default value for the cost category.
The unique name of the Cost Category.
The array of CostCategoryRule in JSON array format.
Rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.
The rule schema version in this particular Cost Category.
splitChargeRulesstringsplit_charge_rulesstrsplitChargeRulesStringSplitChargeRulesstringSplitChargeRules*string#The split charge rules that are used to allocate your charges between your cost category values.
tagsCfnCostCategory.ResourceTagProperty[]tagstyping.List[ResourceTagProperty]tagsList<ResourceTagProperty>TagsResourceTagProperty[]Tags*[]ResourceTagProperty#Tags to assign to the cost category.