CostCategory

class CostCategory : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the cost category.

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

Default value for the cost category.

Link copied to clipboard
val effectiveEnd: Output<String>

Effective end data of your Cost Category.

Link copied to clipboard
val effectiveStart: Output<String>

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 id: Output<String>
Link copied to clipboard
val name: Output<String>

Unique name for the Cost Category.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val ruleVersion: Output<String>

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

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>