Class CfnCostCategory

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:15.204Z") @Stability(Stable) public class CfnCostCategory extends CfnResource implements IInspectable
The AWS::CE::CostCategory resource creates groupings of cost that you can use across products in the AWS Billing and Cost Management console, such as Cost Explorer and AWS Budgets.

For more information, see Managing Your Costs with Cost Categories in the AWS Billing and Cost Management User Guide .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ce.*;
 CfnCostCategory cfnCostCategory = CfnCostCategory.Builder.create(this, "MyCfnCostCategory")
         .name("name")
         .rules("rules")
         .ruleVersion("ruleVersion")
         // the properties below are optional
         .defaultValue("defaultValue")
         .splitChargeRules("splitChargeRules")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnCostCategory

      protected CfnCostCategory(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnCostCategory

      protected CfnCostCategory(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnCostCategory

      @Stability(Stable) public CfnCostCategory(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCostCategoryProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The unique identifier for your Cost Category.
    • getAttrEffectiveStart

      @Stability(Stable) @NotNull public String getAttrEffectiveStart()
      The Cost Category's effective start date.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getName

      @Stability(Stable) @NotNull public String getName()
      The unique name of the Cost Category.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The unique name of the Cost Category.
    • getRules

      @Stability(Stable) @NotNull public String getRules()
      The array of CostCategoryRule in JSON array format.
    • setRules

      @Stability(Stable) public void setRules(@NotNull String value)
      The array of CostCategoryRule in JSON array format.
    • getRuleVersion

      @Stability(Stable) @NotNull public String getRuleVersion()
      The rule schema version in this particular Cost Category.
    • setRuleVersion

      @Stability(Stable) public void setRuleVersion(@NotNull String value)
      The rule schema version in this particular Cost Category.
    • getDefaultValue

      @Stability(Stable) @Nullable public String getDefaultValue()
      The default value for the cost category.
    • setDefaultValue

      @Stability(Stable) public void setDefaultValue(@Nullable String value)
      The default value for the cost category.
    • getSplitChargeRules

      @Stability(Stable) @Nullable public String getSplitChargeRules()
      The split charge rules that are used to allocate your charges between your Cost Category values.
    • setSplitChargeRules

      @Stability(Stable) public void setSplitChargeRules(@Nullable String value)
      The split charge rules that are used to allocate your charges between your Cost Category values.