1. Packages
  2. AWS Native
  3. API Docs
  4. ce
  5. CostCategory

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws-native.ce.CostCategory

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 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.

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

    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

    The CostCategory resource accepts the following input properties:

    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
    DefaultValue string
    The default value for the cost category
    Name string
    The unique name of the Cost Category.
    SplitChargeRules string
    Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
    RuleVersion CostCategoryRuleVersion
    The rule schema version in this particular Cost Category.
    Rules string
    JSON array format of Expression in Billing and Cost Management API
    DefaultValue string
    The default value for the cost category
    Name string
    The unique name of the Cost Category.
    SplitChargeRules string
    Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
    ruleVersion CostCategoryRuleVersion
    The rule schema version in this particular Cost Category.
    rules String
    JSON array format of Expression in Billing and Cost Management API
    defaultValue String
    The default value for the cost category
    name String
    The unique name of the Cost Category.
    splitChargeRules String
    Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
    ruleVersion CostCategoryRuleVersion
    The rule schema version in this particular Cost Category.
    rules string
    JSON array format of Expression in Billing and Cost Management API
    defaultValue string
    The default value for the cost category
    name string
    The unique name of the Cost Category.
    splitChargeRules string
    Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
    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
    default_value str
    The default value for the cost category
    name str
    The unique name of the Cost Category.
    split_charge_rules str
    Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
    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
    defaultValue String
    The default value for the cost category
    name String
    The unique name of the Cost Category.
    splitChargeRules String
    Json array format of CostCategorySplitChargeRule in Billing and Cost Management API

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CostCategory resource produces the following output properties:

    Arn string
    Cost category ARN
    EffectiveStart string
    The Cost Category's effective start date.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    Cost category ARN
    EffectiveStart string
    The Cost Category's effective start date.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    Cost category ARN
    effectiveStart String
    The Cost Category's effective start date.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    Cost category ARN
    effectiveStart 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
    effectiveStart String
    The Cost Category's effective start date.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    CostCategoryRuleVersion, CostCategoryRuleVersionArgs

    CostCategoryExpressionV1
    CostCategoryExpression.v1
    CostCategoryRuleVersionCostCategoryExpressionV1
    CostCategoryExpression.v1
    CostCategoryExpressionV1
    CostCategoryExpression.v1
    CostCategoryExpressionV1
    CostCategoryExpression.v1
    COST_CATEGORY_EXPRESSION_V1
    CostCategoryExpression.v1
    "CostCategoryExpression.v1"
    CostCategoryExpression.v1

    Package Details

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

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi