interface CfnCostCategoryProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CE.CfnCostCategoryProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsce#CfnCostCategoryProps |
Java | software.amazon.awscdk.services.ce.CfnCostCategoryProps |
Python | aws_cdk.aws_ce.CfnCostCategoryProps |
TypeScript | aws-cdk-lib » aws_ce » CfnCostCategoryProps |
Properties for defining a CfnCostCategory
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-costcategory.html
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
Name | Type | Description |
---|---|---|
name | string | The unique name of the Cost Category. |
rule | string | The rule schema version in this particular Cost Category. |
rules | string | The array of CostCategoryRule in JSON array format. |
default | string | The default value for the cost category. |
split | string | The 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.