1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ce
  5. getCostCategory

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.ce.getCostCategory

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 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>
Copy
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]
Copy
func LookupCostCategory(ctx *Context, args *LookupCostCategoryArgs, opts ...InvokeOption) (*LookupCostCategoryResult, error)
func LookupCostCategoryOutput(ctx *Context, args *LookupCostCategoryOutputArgs, opts ...InvokeOption) LookupCostCategoryResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCostCategoryResult> getCostCategory(GetCostCategoryArgs args, InvokeOptions options)
public static Output<GetCostCategoryResult> getCostCategory(GetCostCategoryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ce:getCostCategory
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Arn This property is required. string
Cost category ARN
Arn This property is required. string
Cost category ARN
arn This property is required. String
Cost category ARN
arn This property is required. string
Cost category ARN
arn This property is required. str
Cost category ARN
arn This property is required. String
Cost category ARN

getCostCategory Result

The following output properties are available:

Arn string
Cost category ARN
DefaultValue string
The default value for the cost category
EffectiveStart string
The Cost Category's effective start date.
RuleVersion Pulumi.AwsNative.Ce.CostCategoryRuleVersion
The rule schema version in this particular Cost Category.
Rules string
JSON array format of Expression in Billing and Cost Management API
SplitChargeRules string
Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
Tags List<Pulumi.AwsNative.Outputs.Tag>
Tags to assign to the cost category.
Arn string
Cost category ARN
DefaultValue string
The default value for the cost category
EffectiveStart string
The Cost Category's effective start date.
RuleVersion CostCategoryRuleVersion
The rule schema version in this particular Cost Category.
Rules string
JSON array format of Expression in Billing and Cost Management API
SplitChargeRules string
Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
Tags Tag
Tags to assign to the cost category.
arn String
Cost category ARN
defaultValue String
The default value for the cost category
effectiveStart String
The Cost Category's effective start date.
ruleVersion CostCategoryRuleVersion
The rule schema version in this particular Cost Category.
rules String
JSON array format of Expression in Billing and Cost Management API
splitChargeRules String
Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
tags List<Tag>
Tags to assign to the cost category.
arn string
Cost category ARN
defaultValue string
The default value for the cost category
effectiveStart string
The Cost Category's effective start date.
ruleVersion CostCategoryRuleVersion
The rule schema version in this particular Cost Category.
rules string
JSON array format of Expression in Billing and Cost Management API
splitChargeRules string
Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
tags 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 CostCategoryRuleVersion
The rule schema version in this particular Cost Category.
rules str
JSON array format of Expression in Billing and Cost Management API
split_charge_rules str
Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
tags Sequence[root_Tag]
Tags to assign to the cost category.
arn String
Cost category ARN
defaultValue String
The default value for the cost category
effectiveStart String
The Cost Category's effective start date.
ruleVersion "CostCategoryExpression.v1"
The rule schema version in this particular Cost Category.
rules String
JSON array format of Expression in Billing and Cost Management API
splitChargeRules String
Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
tags List<Property Map>
Tags to assign to the cost category.

Supporting Types

CostCategoryRuleVersion

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the 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.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi