We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 30, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 30, 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.
Using getCostCategory
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCostCategory(args: GetCostCategoryArgs, opts?: InvokeOptions): Promise<GetCostCategoryResult>
function getCostCategoryOutput(args: GetCostCategoryOutputArgs, opts?: InvokeOptions): Output<GetCostCategoryResult>def get_cost_category(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCostCategoryResult
def get_cost_category_output(arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCostCategoryResult]func LookupCostCategory(ctx *Context, args *LookupCostCategoryArgs, opts ...InvokeOption) (*LookupCostCategoryResult, error)
func LookupCostCategoryOutput(ctx *Context, args *LookupCostCategoryOutputArgs, opts ...InvokeOption) LookupCostCategoryResultOutput> Note: This function is named LookupCostCategory in the Go SDK.
public static class GetCostCategory
{
public static Task<GetCostCategoryResult> InvokeAsync(GetCostCategoryArgs args, InvokeOptions? opts = null)
public static Output<GetCostCategoryResult> Invoke(GetCostCategoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCostCategoryResult> getCostCategory(GetCostCategoryArgs args, InvokeOptions options)
public static Output<GetCostCategoryResult> getCostCategory(GetCostCategoryArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:ce:getCostCategory
arguments:
# arguments dictionaryThe following arguments are supported:
- Arn string
- Cost category ARN
- Arn string
- Cost category ARN
- arn String
- Cost category ARN
- arn string
- Cost category ARN
- arn str
- Cost category ARN
- arn String
- Cost category ARN
getCostCategory Result
The following output properties are available:
- Arn string
- Cost category ARN
- Default
Value string - The default value for the cost category
- Effective
Start string - The Cost Category's effective start date.
- 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
- Split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
-
List<Pulumi.
Aws Native. Outputs. Tag> - Tags to assign to the cost category.
- Arn string
- Cost category ARN
- Default
Value string - The default value for the cost category
- Effective
Start string - The Cost Category's effective start date.
- 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
- Split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- Tag
- Tags to assign to the cost category.
- arn String
- Cost category ARN
- default
Value String - The default value for the cost category
- effective
Start String - The Cost Category's effective start date.
- 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
- split
Charge StringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- List<Tag>
- Tags to assign to the cost category.
- arn string
- Cost category ARN
- default
Value string - The default value for the cost category
- effective
Start string - The Cost Category's effective start date.
- 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
- split
Charge stringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- Tag[]
- Tags to assign to the cost category.
- arn str
- Cost category ARN
- default_
value str - The default value for the cost category
- effective_
start str - The Cost Category's effective start date.
- 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
- split_
charge_ strrules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- Sequence[root_Tag]
- Tags to assign to the cost category.
- arn String
- Cost category ARN
- default
Value String - The default value for the cost category
- effective
Start String - The Cost Category's effective start date.
- 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
- split
Charge StringRules - Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
- List<Property Map>
- Tags to assign to the cost category.
Supporting Types
CostCategoryRuleVersion
Tag
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 Monday, Mar 30, 2026 by Pulumi
