aws-cdk-lib.aws_ce.CfnCostCategoryProps

interface CfnCostCategoryProps

LanguageType name
.NETAmazon.CDK.AWS.CE.CfnCostCategoryProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsce#CfnCostCategoryProps
Javasoftware.amazon.awscdk.services.ce.CfnCostCategoryProps
Pythonaws_cdk.aws_ce.CfnCostCategoryProps
TypeScript aws-cdk-lib » aws_ce » CfnCostCategoryProps

Properties for defining a CfnCostCategory.

Example

// 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',
};

Properties

NameTypeDescription
namestringThe unique name of the Cost Category.
ruleVersionstringThe rule schema version in this particular Cost Category.
rulesstringThe array of CostCategoryRule in JSON array format.
defaultValue?stringThe default value for the cost category.
splitChargeRules?stringThe split charge rules that are used to allocate your charges between your Cost Category values.

name

Type: string

The unique name of the Cost Category.


ruleVersion

Type: string

The rule schema version in this particular Cost Category.


rules

Type: 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.


defaultValue?

Type: string (optional)

The default value for the cost category.


splitChargeRules?

Type: string (optional)

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