CostCategoryRule - AWS Cost Explorer Service


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.



An Expression object used to categorize costs. This supports dimensions, tags, and nested expressions. Currently the only dimensions supported are LINKED_ACCOUNT, SERVICE_CODE, RECORD_TYPE, and LINKED_ACCOUNT_NAME.

Root level OR is not supported. We recommend that you create a separate rule instead.

RECORD_TYPE is a dimension used for Cost Explorer APIs, and is also supported for Cost Category expressions. This dimension uses different terms, depending on whether you're using the console or API/JSON editor. For a detailed comparison, see Term Comparisons in the AWS Billing and Cost Management User Guide.

Type: Expression object

Required: Yes


The value a line item will be categorized as, if it matches the rule.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: ^(?! )[\p{L}\p{N}\p{Z}-_]*(?<! )$

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: