We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Resource Type definition for AWS::CE::CostCategory. Cost Category enables you to map your cost and usage into meaningful categories. You can use Cost Category to organize your costs using a rule-based engine.
Create CostCategory Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CostCategory(name: string, args: CostCategoryArgs, opts?: CustomResourceOptions);@overload
def CostCategory(resource_name: str,
args: CostCategoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CostCategory(resource_name: str,
opts: Optional[ResourceOptions] = None,
rule_version: Optional[CostCategoryRuleVersion] = None,
rules: Optional[str] = None,
default_value: Optional[str] = None,
name: Optional[str] = None,
split_charge_rules: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewCostCategory(ctx *Context, name string, args CostCategoryArgs, opts ...ResourceOption) (*CostCategory, error)public CostCategory(string name, CostCategoryArgs args, CustomResourceOptions? opts = null)
public CostCategory(String name, CostCategoryArgs args)
public CostCategory(String name, CostCategoryArgs args, CustomResourceOptions options)
type: aws-native:ce:CostCategory
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_ce_cost_category" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CostCategoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CostCategoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CostCategoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CostCategoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CostCategoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CostCategory Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CostCategory resource accepts the following input properties:
- Rule
Version Pulumi.Aws Native. Ce. Cost Category Rule Version - The rule schema version in this particular Cost Category.
- Rules string
- JSON array format of Expression in Billing and Cost Management API
- Default
Value string - The default value for the cost category
- Name string
- The unique name of the Cost Category.
- Split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
-
List<Pulumi.
Aws Native. Inputs. Tag> - Tags to assign to the cost category.
- Rule
Version CostCategory Rule Version - The rule schema version in this particular Cost Category.
- Rules string
- JSON array format of Expression in Billing and Cost Management API
- Default
Value string - The default value for the cost category
- Name string
- The unique name of the Cost Category.
- Split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
-
Tag
Args - Tags to assign to the cost category.
- rule_
version "CostCategory Expression.v1" - The rule schema version in this particular Cost Category.
- rules string
- JSON array format of Expression in Billing and Cost Management API
- default_
value string - The default value for the cost category
- name string
- The unique name of the Cost Category.
- split_
charge_ stringrules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- list(object)
- Tags to assign to the cost category.
- rule
Version CostCategory Rule Version - The rule schema version in this particular Cost Category.
- rules String
- JSON array format of Expression in Billing and Cost Management API
- default
Value String - The default value for the cost category
- name String
- The unique name of the Cost Category.
- split
Charge StringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- List<Tag>
- Tags to assign to the cost category.
- rule
Version CostCategory Rule Version - The rule schema version in this particular Cost Category.
- rules string
- JSON array format of Expression in Billing and Cost Management API
- default
Value string - The default value for the cost category
- name string
- The unique name of the Cost Category.
- split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- Tag[]
- Tags to assign to the cost category.
- rule_
version CostCategory Rule Version - The rule schema version in this particular Cost Category.
- rules str
- JSON array format of Expression in Billing and Cost Management API
- default_
value str - The default value for the cost category
- name str
- The unique name of the Cost Category.
- split_
charge_ strrules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
-
Sequence[Tag
Args] - Tags to assign to the cost category.
- rule
Version "CostCategory Expression.v1" - The rule schema version in this particular Cost Category.
- rules String
- JSON array format of Expression in Billing and Cost Management API
- default
Value String - The default value for the cost category
- name String
- The unique name of the Cost Category.
- split
Charge StringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- List<Property Map>
- Tags to assign to the cost category.
Outputs
All input properties are implicitly available as output properties. Additionally, the CostCategory resource produces the following output properties:
- Arn string
- Cost category ARN
- Effective
Start string - The Cost Category's effective start date.
- Id string
- The provider-assigned unique ID for this managed resource.
- Arn string
- Cost category ARN
- Effective
Start string - The Cost Category's effective start date.
- Id string
- The provider-assigned unique ID for this managed resource.
- arn string
- Cost category ARN
- effective_
start string - The Cost Category's effective start date.
- id string
- The provider-assigned unique ID for this managed resource.
- arn String
- Cost category ARN
- effective
Start String - The Cost Category's effective start date.
- id String
- The provider-assigned unique ID for this managed resource.
- arn string
- Cost category ARN
- effective
Start string - The Cost Category's effective start date.
- id string
- The provider-assigned unique ID for this managed resource.
- arn str
- Cost category ARN
- effective_
start str - The Cost Category's effective start date.
- id str
- The provider-assigned unique ID for this managed resource.
- arn String
- Cost category ARN
- effective
Start String - The Cost Category's effective start date.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CostCategory Resource
Get an existing CostCategory resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): CostCategory@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> CostCategoryfunc GetCostCategory(ctx *Context, name string, id IDInput, state *CostCategoryState, opts ...ResourceOption) (*CostCategory, error)public static CostCategory Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static CostCategory get(String name, Output<String> id, CustomResourceOptions options)resources: existingCostCategory: type: aws-native:ce:CostCategory get: id: ${id}import {
to = aws-native_ce_cost_category.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state CostCategoryState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
CostCategoryRuleVersion
The rule schema version in this particular Cost Category.
| Name | Value |
|---|---|
| Cost | CostCategoryExpression.v1 |
| Name | Value |
|---|---|
| Cost | CostCategoryExpression.v1 |
| Value |
|---|
CostCategoryExpression.v1 |
| Name | Value |
|---|---|
| Cost | CostCategoryExpression.v1 |
| Name | Value |
|---|---|
| Cost | CostCategoryExpression.v1 |
| Name | Value |
|---|---|
| COST_CATEGORY_EXPRESSION_V1 | CostCategoryExpression.v1 |
| Value |
|---|
CostCategoryExpression.v1 |
Tag, TagArgs
A set of tags to apply to the resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi