aws-native logo
AWS Native v0.55.0, Mar 28 23

aws-native.ce.getCostCategory

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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws-native:ce:getCostCategory
  arguments:
    # arguments dictionary

The 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

DefaultValue string

The default value for the cost category

EffectiveStart string
RuleVersion Pulumi.AwsNative.CE.CostCategoryRuleVersion
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

Arn string

Cost category ARN

DefaultValue string

The default value for the cost category

EffectiveStart string
RuleVersion CostCategoryRuleVersion
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

arn String

Cost category ARN

defaultValue String

The default value for the cost category

effectiveStart String
ruleVersion CostCategoryRuleVersion
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

arn string

Cost category ARN

defaultValue string

The default value for the cost category

effectiveStart string
ruleVersion CostCategoryRuleVersion
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

arn str

Cost category ARN

default_value str

The default value for the cost category

effective_start str
rule_version CostCategoryRuleVersion
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

arn String

Cost category ARN

defaultValue String

The default value for the cost category

effectiveStart String
ruleVersion "CostCategoryExpression.v1"
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

Supporting Types

CostCategoryRuleVersion

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0