1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. TmsTagsV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.TmsTagsV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for TMS Tags you can get at documentation portal

    Manages TMS tags resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = new opentelekomcloud.TmsTagsV1("test", {tags: [{
        key: "foo",
        value: "bar",
    }]});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.TmsTagsV1("test", tags=[{
        "key": "foo",
        "value": "bar",
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewTmsTagsV1(ctx, "test", &opentelekomcloud.TmsTagsV1Args{
    			Tags: opentelekomcloud.TmsTagsV1TagArray{
    				&opentelekomcloud.TmsTagsV1TagArgs{
    					Key:   pulumi.String("foo"),
    					Value: pulumi.String("bar"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Opentelekomcloud.TmsTagsV1("test", new()
        {
            Tags = new[]
            {
                new Opentelekomcloud.Inputs.TmsTagsV1TagArgs
                {
                    Key = "foo",
                    Value = "bar",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.TmsTagsV1;
    import com.pulumi.opentelekomcloud.TmsTagsV1Args;
    import com.pulumi.opentelekomcloud.inputs.TmsTagsV1TagArgs;
    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 TmsTagsV1("test", TmsTagsV1Args.builder()
                .tags(TmsTagsV1TagArgs.builder()
                    .key("foo")
                    .value("bar")
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: opentelekomcloud:TmsTagsV1
        properties:
          tags:
            - key: foo
              value: bar
    

    Create TmsTagsV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TmsTagsV1(name: string, args: TmsTagsV1Args, opts?: CustomResourceOptions);
    @overload
    def TmsTagsV1(resource_name: str,
                  args: TmsTagsV1Args,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TmsTagsV1(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  tags: Optional[Sequence[TmsTagsV1TagArgs]] = None,
                  timeouts: Optional[TmsTagsV1TimeoutsArgs] = None,
                  tms_tags_v1_id: Optional[str] = None)
    func NewTmsTagsV1(ctx *Context, name string, args TmsTagsV1Args, opts ...ResourceOption) (*TmsTagsV1, error)
    public TmsTagsV1(string name, TmsTagsV1Args args, CustomResourceOptions? opts = null)
    public TmsTagsV1(String name, TmsTagsV1Args args)
    public TmsTagsV1(String name, TmsTagsV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:TmsTagsV1
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TmsTagsV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TmsTagsV1Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TmsTagsV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TmsTagsV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TmsTagsV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var tmsTagsV1Resource = new Opentelekomcloud.TmsTagsV1("tmsTagsV1Resource", new()
    {
        Tags = new[]
        {
            new Opentelekomcloud.Inputs.TmsTagsV1TagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        Timeouts = new Opentelekomcloud.Inputs.TmsTagsV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        TmsTagsV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewTmsTagsV1(ctx, "tmsTagsV1Resource", &opentelekomcloud.TmsTagsV1Args{
    	Tags: opentelekomcloud.TmsTagsV1TagArray{
    		&opentelekomcloud.TmsTagsV1TagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	Timeouts: &opentelekomcloud.TmsTagsV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	TmsTagsV1Id: pulumi.String("string"),
    })
    
    var tmsTagsV1Resource = new TmsTagsV1("tmsTagsV1Resource", TmsTagsV1Args.builder()
        .tags(TmsTagsV1TagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .timeouts(TmsTagsV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .tmsTagsV1Id("string")
        .build());
    
    tms_tags_v1_resource = opentelekomcloud.TmsTagsV1("tmsTagsV1Resource",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        timeouts={
            "create": "string",
            "delete": "string",
        },
        tms_tags_v1_id="string")
    
    const tmsTagsV1Resource = new opentelekomcloud.TmsTagsV1("tmsTagsV1Resource", {
        tags: [{
            key: "string",
            value: "string",
        }],
        timeouts: {
            create: "string",
            "delete": "string",
        },
        tmsTagsV1Id: "string",
    });
    
    type: opentelekomcloud:TmsTagsV1
    properties:
        tags:
            - key: string
              value: string
        timeouts:
            create: string
            delete: string
        tmsTagsV1Id: string
    

    TmsTagsV1 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TmsTagsV1 resource accepts the following input properties:

    Tags List<TmsTagsV1Tag>
    Specifies an array of one or more predefined tags.
    Timeouts TmsTagsV1Timeouts
    TmsTagsV1Id string
    The resource ID.
    Tags []TmsTagsV1TagArgs
    Specifies an array of one or more predefined tags.
    Timeouts TmsTagsV1TimeoutsArgs
    TmsTagsV1Id string
    The resource ID.
    tags List<TmsTagsV1Tag>
    Specifies an array of one or more predefined tags.
    timeouts TmsTagsV1Timeouts
    tmsTagsV1Id String
    The resource ID.
    tags TmsTagsV1Tag[]
    Specifies an array of one or more predefined tags.
    timeouts TmsTagsV1Timeouts
    tmsTagsV1Id string
    The resource ID.
    tags Sequence[TmsTagsV1TagArgs]
    Specifies an array of one or more predefined tags.
    timeouts TmsTagsV1TimeoutsArgs
    tms_tags_v1_id str
    The resource ID.
    tags List<Property Map>
    Specifies an array of one or more predefined tags.
    timeouts Property Map
    tmsTagsV1Id String
    The resource ID.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TmsTagsV1 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TmsTagsV1 Resource

    Get an existing TmsTagsV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TmsTagsV1State, opts?: CustomResourceOptions): TmsTagsV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            tags: Optional[Sequence[TmsTagsV1TagArgs]] = None,
            timeouts: Optional[TmsTagsV1TimeoutsArgs] = None,
            tms_tags_v1_id: Optional[str] = None) -> TmsTagsV1
    func GetTmsTagsV1(ctx *Context, name string, id IDInput, state *TmsTagsV1State, opts ...ResourceOption) (*TmsTagsV1, error)
    public static TmsTagsV1 Get(string name, Input<string> id, TmsTagsV1State? state, CustomResourceOptions? opts = null)
    public static TmsTagsV1 get(String name, Output<String> id, TmsTagsV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:TmsTagsV1    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Tags List<TmsTagsV1Tag>
    Specifies an array of one or more predefined tags.
    Timeouts TmsTagsV1Timeouts
    TmsTagsV1Id string
    The resource ID.
    Tags []TmsTagsV1TagArgs
    Specifies an array of one or more predefined tags.
    Timeouts TmsTagsV1TimeoutsArgs
    TmsTagsV1Id string
    The resource ID.
    tags List<TmsTagsV1Tag>
    Specifies an array of one or more predefined tags.
    timeouts TmsTagsV1Timeouts
    tmsTagsV1Id String
    The resource ID.
    tags TmsTagsV1Tag[]
    Specifies an array of one or more predefined tags.
    timeouts TmsTagsV1Timeouts
    tmsTagsV1Id string
    The resource ID.
    tags Sequence[TmsTagsV1TagArgs]
    Specifies an array of one or more predefined tags.
    timeouts TmsTagsV1TimeoutsArgs
    tms_tags_v1_id str
    The resource ID.
    tags List<Property Map>
    Specifies an array of one or more predefined tags.
    timeouts Property Map
    tmsTagsV1Id String
    The resource ID.

    Supporting Types

    TmsTagsV1Tag, TmsTagsV1TagArgs

    Key string
    Specifies the tag key. The value can contain up to 36 characters. Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    Value string
    Specifies the tag value. The value can contain up to 43 characters. Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    Key string
    Specifies the tag key. The value can contain up to 36 characters. Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    Value string
    Specifies the tag value. The value can contain up to 43 characters. Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    key String
    Specifies the tag key. The value can contain up to 36 characters. Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    value String
    Specifies the tag value. The value can contain up to 43 characters. Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    key string
    Specifies the tag key. The value can contain up to 36 characters. Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    value string
    Specifies the tag value. The value can contain up to 43 characters. Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    key str
    Specifies the tag key. The value can contain up to 36 characters. Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    value str
    Specifies the tag value. The value can contain up to 43 characters. Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    key String
    Specifies the tag key. The value can contain up to 36 characters. Only letters, digits, hyphens (-), underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.
    value String
    Specifies the tag value. The value can contain up to 43 characters. Only letters, digits, periods (.), hyphens (-), and underscores (_), and Unicode characters from \u4e00 to \u9fff are allowed.

    TmsTagsV1Timeouts, TmsTagsV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud