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.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.ce.getCostCategory

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    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
    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
    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
    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
    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
    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
    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

    Supporting Types

    CostCategoryRuleVersion

    Package Details

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

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

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi