TagInheritanceSettingArgs

data class TagInheritanceSettingArgs(val eTag: Output<String>? = null, 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 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/v2"
"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}

Constructors

Link copied to clipboard
constructor(eTag: Output<String>? = null, kind: Output<String>? = null, properties: Output<TagInheritancePropertiesArgs>? = null, scope: Output<String>? = null, type: Output<String>? = null)

Properties

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

eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.

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

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

Link copied to clipboard

The properties of the tag inheritance setting.

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

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.

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

Setting type.

Functions

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