CfnCostCategoryProps

class aws_cdk.aws_ce.CfnCostCategoryProps(*, name, rules, rule_version, default_value=None, split_charge_rules=None)

Bases: object

Properties for defining a CfnCostCategory.

Parameters:
  • name (str) – The unique name of the Cost Category.

  • rules (str) – The array of CostCategoryRule in JSON array format. .. epigraph:: 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.

  • rule_version (str) – The rule schema version in this particular Cost Category.

  • default_value (Optional[str]) – The default value for the cost category.

  • split_charge_rules (Optional[str]) – The split charge rules that are used to allocate your charges between your Cost Category values.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ce as ce

cfn_cost_category_props = ce.CfnCostCategoryProps(
    name="name",
    rules="rules",
    rule_version="ruleVersion",

    # the properties below are optional
    default_value="defaultValue",
    split_charge_rules="splitChargeRules"
)

Attributes

default_value

The default value for the cost category.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html#cfn-ce-costcategory-defaultvalue

name

The unique name of the Cost Category.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html#cfn-ce-costcategory-name

rule_version

The rule schema version in this particular Cost Category.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html#cfn-ce-costcategory-ruleversion

rules

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.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html#cfn-ce-costcategory-rules

split_charge_rules

The split charge rules that are used to allocate your charges between your Cost Category values.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html#cfn-ce-costcategory-splitchargerules