Skip to content

Resource: awsCeCostCategory

Provides details about a specific CostExplorer Cost Category.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCeCostCategory.DataAwsCeCostCategory(this, "example", {
  costCategoryArn: "costCategoryARN",
});

Argument Reference

The following arguments are required:

  • costCategoryArn - (Required) Unique name for the Cost Category.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the cost category.
  • defaultValue - Default value for the cost category.
  • effectiveEnd - Effective end data of your Cost Category.
  • effectiveStart - Effective state data of your Cost Category.
  • id - Unique ID of the cost category.
  • rule - Configuration block for the Cost Category rules used to categorize costs. See below.
  • ruleVersion - Rule schema version in this particular Cost Category.
  • splitChargeRule - Configuration block for the split charge rules used to allocate your charges between your Cost Category values. See below.
  • tags - Resource tags.

rule

  • inheritedValue - Configuration block for the value the line item is categorized as if the line item contains the matched dimension. See below.
  • rule - Configuration block for the expression object used to categorize costs. See below.
  • type - You can define the CostCategoryRule rule type as either regular or INHERITED_VALUE.
  • value - Default value for the cost category.

inheritedValue

  • dimensionKey - Key to extract cost category values.
  • dimensionName - Name of the dimension that's used to group costs. If you specify LINKED_ACCOUNT_NAME, the cost category value is based on account name. If you specify tag, the cost category value will be based on the value of the specified tag key. Valid values are LINKED_ACCOUNT_NAME, tag

rule

  • and - Return results that match both dimension objects.
  • costCategory - Configuration block for the filter that's based on costCategory values. See below.
  • dimension - Configuration block for the specific dimension to use for expression. See below.
  • not - Return results that do not match the dimension object.
  • or - Return results that match either dimension object.
  • tags - Configuration block for the specific tag to use for expression. See below.

costCategory

  • key - Unique name of the Cost Category.
  • matchOptions - Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is equals and CASE_SENSITIVE. Valid values are: equals, absent, STARTS_WITH, ENDS_WITH, contains, CASE_SENSITIVE, CASE_INSENSITIVE.
  • values - Specific value of the Cost Category.

dimension

  • key - Unique name of the Cost Category.
  • matchOptions - Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is equals and CASE_SENSITIVE. Valid values are: equals, absent, STARTS_WITH, ENDS_WITH, contains, CASE_SENSITIVE, CASE_INSENSITIVE.
  • values - Specific value of the Cost Category.

tags

  • key - Key for the tag.
  • matchOptions - Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is equals and CASE_SENSITIVE. Valid values are: equals, absent, STARTS_WITH, ENDS_WITH, contains, CASE_SENSITIVE, CASE_INSENSITIVE.
  • values - Specific value of the Cost Category.

splitChargeRule

  • method - Method that's used to define how to split your source costs across your targets. Valid values are fixed, proportional, even
  • parameter - Configuration block for the parameters for a split charge method. This is only required for the fixed method. See below.
  • source - Cost Category value that you want to split.
  • targets - Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules.

parameter

  • type - Parameter type.
  • values - Parameter values.