TagInheritanceSetting

class TagInheritanceSetting : KotlinCustomResource

Tag Inheritance Setting definition. Uses Azure REST API version 2024-08-01. In version 2.x of the Azure Native provider, it used API version 2022-10-05-preview.

Example Usage

CreateOrUpdateSettingByScope

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var tagInheritanceSetting = new AzureNative.CostManagement.TagInheritanceSetting("tagInheritanceSetting", new()
{
Kind = "taginheritance",
Properties = new AzureNative.CostManagement.Inputs.TagInheritancePropertiesArgs
{
PreferContainerTags = false,
},
Scope = "subscriptions/00000000-0000-0000-0000-000000000000",
Type = "taginheritance",
});
});
package main
import (
costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := costmanagement.NewTagInheritanceSetting(ctx, "tagInheritanceSetting", &costmanagement.TagInheritanceSettingArgs{
Kind: pulumi.String("taginheritance"),
Properties: &costmanagement.TagInheritancePropertiesArgs{
PreferContainerTags: pulumi.Bool(false),
},
Scope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
Type: pulumi.String("taginheritance"),
})
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.azurenative.costmanagement.TagInheritanceSetting;
import com.pulumi.azurenative.costmanagement.TagInheritanceSettingArgs;
import com.pulumi.azurenative.costmanagement.inputs.TagInheritancePropertiesArgs;
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 tagInheritanceSetting = new TagInheritanceSetting("tagInheritanceSetting", TagInheritanceSettingArgs.builder()
.kind("taginheritance")
.properties(TagInheritancePropertiesArgs.builder()
.preferContainerTags(false)
.build())
.scope("subscriptions/00000000-0000-0000-0000-000000000000")
.type("taginheritance")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:costmanagement:TagInheritanceSetting taginheritance /{scope}/providers/Microsoft.CostManagement/settings/{type}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>

Specifies the kind of settings. Expected value is 'taginheritance'.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The properties of the tag inheritance setting.

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

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>