CostCategoryArgs

data class CostCategoryArgs(val defaultValue: Output<String>? = null, val effectiveStart: Output<String>? = null, val name: Output<String>? = null, val ruleVersion: Output<String>? = null, val rules: Output<List<CostCategoryRuleArgs>>? = null, val splitChargeRules: Output<List<CostCategorySplitChargeRuleArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CostCategoryArgs>

Provides a CE Cost Category.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.costexplorer.CostCategory;
import com.pulumi.aws.costexplorer.CostCategoryArgs;
import com.pulumi.aws.costexplorer.inputs.CostCategoryRuleArgs;
import com.pulumi.aws.costexplorer.inputs.CostCategoryRuleRuleArgs;
import com.pulumi.aws.costexplorer.inputs.CostCategoryRuleRuleDimensionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new CostCategory("test", CostCategoryArgs.builder()
.rules(
CostCategoryRuleArgs.builder()
.rule(CostCategoryRuleRuleArgs.builder()
.dimension(CostCategoryRuleRuleDimensionArgs.builder()
.key("LINKED_ACCOUNT_NAME")
.matchOptions("ENDS_WITH")
.values("-prod")
.build())
.build())
.value("production")
.build(),
CostCategoryRuleArgs.builder()
.rule(CostCategoryRuleRuleArgs.builder()
.dimension(CostCategoryRuleRuleDimensionArgs.builder()
.key("LINKED_ACCOUNT_NAME")
.matchOptions("ENDS_WITH")
.values("-stg")
.build())
.build())
.value("staging")
.build(),
CostCategoryRuleArgs.builder()
.rule(CostCategoryRuleRuleArgs.builder()
.dimension(CostCategoryRuleRuleDimensionArgs.builder()
.key("LINKED_ACCOUNT_NAME")
.matchOptions("ENDS_WITH")
.values("-dev")
.build())
.build())
.value("testing")
.build())
.ruleVersion("CostCategoryExpression.v1")
.build());
}
}

Import

aws_ce_cost_category can be imported using the id, e.g.

$ pulumi import aws:costexplorer/costCategory:CostCategory example costCategoryARN

Constructors

Link copied to clipboard
constructor(defaultValue: Output<String>? = null, effectiveStart: Output<String>? = null, name: Output<String>? = null, ruleVersion: Output<String>? = null, rules: Output<List<CostCategoryRuleArgs>>? = null, splitChargeRules: Output<List<CostCategorySplitChargeRuleArgs>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val defaultValue: Output<String>? = null

Default value for the cost category.

Link copied to clipboard
val effectiveStart: Output<String>? = null

The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future. For example 2022-11-01T00:00:00Z. The following arguments are optional:

Link copied to clipboard
val name: Output<String>? = null

Unique name for the Cost Category.

Link copied to clipboard
val rules: Output<List<CostCategoryRuleArgs>>? = null

Configuration block for the Cost Category rules used to categorize costs. See below.

Link copied to clipboard
val ruleVersion: Output<String>? = null

Rule schema version in this particular Cost Category.

Link copied to clipboard

Configuration block for the split charge rules used to allocate your charges between your Cost Category values. See below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): CostCategoryArgs