CostAllocationTag

class CostAllocationTag : KotlinCustomResource

Provides a CE Cost Allocation Tag.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.costexplorer.CostAllocationTag("example", {
tagKey: "example",
status: "Active",
});
import pulumi
import pulumi_aws as aws
example = aws.costexplorer.CostAllocationTag("example",
tag_key="example",
status="Active")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CostExplorer.CostAllocationTag("example", new()
{
TagKey = "example",
Status = "Active",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/costexplorer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := costexplorer.NewCostAllocationTag(ctx, "example", &costexplorer.CostAllocationTagArgs{
TagKey: pulumi.String("example"),
Status: pulumi.String("Active"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.costexplorer.CostAllocationTag;
import com.pulumi.aws.costexplorer.CostAllocationTagArgs;
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 example = new CostAllocationTag("example", CostAllocationTagArgs.builder()
.tagKey("example")
.status("Active")
.build());
}
}
resources:
example:
type: aws:costexplorer:CostAllocationTag
properties:
tagKey: example
status: Active

Import

Using pulumi import, import aws_ce_cost_allocation_tag using the id. For example:

$ pulumi import aws:costexplorer/costAllocationTag:CostAllocationTag example key

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The status of a cost allocation tag. Valid values are Active and Inactive.

Link copied to clipboard
val tagKey: Output<String>

The key for the cost allocation tag.

Link copied to clipboard
val type: Output<String>

The type of cost allocation tag.

Link copied to clipboard
val urn: Output<String>