Tag Inheritance Setting Args
data class TagInheritanceSettingArgs(val kind: Output<String>? = null, val properties: Output<TagInheritancePropertiesArgs>? = null, val scope: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<TagInheritanceSettingArgs>
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(kind: Output<String>? = null, properties: Output<TagInheritancePropertiesArgs>? = null, scope: Output<String>? = null, type: Output<String>? = null)
Properties
Link copied to clipboard
The properties of the tag inheritance setting.
Link copied to clipboard
The scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.