AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CE::CostCategory

CfnCostCategory

The `AWS::CE::CostCategory` resource creates groupings of cost that you can use across products in the Billing and Cost Management console, such as Cost Explorer and AWS Budgets. For more information, see [Managing Your Costs with Cost Categories](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-cost-categories.html) in the *Billing and Cost Management User Guide* .

Import

import { CfnCostCategory } from 'aws-cdk-lib/aws-ce';

Or use the module namespace:

import * as ce from 'aws-cdk-lib/aws-ce';
// ce.CfnCostCategory

Properties

Configuration passed to the constructor as CfnCostCategoryProps.

nameRequired
string

The unique name of the Cost Category.

rulesRequired
string

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.

ruleVersionRequired
string

The rule schema version in this particular Cost Category.

defaultValueOptional
string

The default value for the cost category.

splitChargeRulesOptional
string

The split charge rules that are used to allocate your charges between your cost category values.

tagsOptional
ResourceTagProperty[]

Tags to assign to the cost category.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-ce
CFN TypeAWS::CE::CostCategory
Properties6

External Links