1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. TmsTagsV1
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.TmsTagsV1

Explore with Pulumi AI

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",
}]});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

test = opentelekomcloud.TmsTagsV1("test", tags=[{
    "key": "foo",
    "value": "bar",
}])
Copy
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
	})
}
Copy
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",
            },
        },
    });

});
Copy
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());

    }
}
Copy
resources:
  test:
    type: opentelekomcloud:TmsTagsV1
    properties:
      tags:
        - key: foo
          value: bar
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. TmsTagsV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. TmsTagsV1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TmsTagsV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
tms_tags_v1_resource = opentelekomcloud.TmsTagsV1("tmsTagsV1Resource",
    tags=[{
        "key": "string",
        "value": "string",
    }],
    timeouts={
        "create": "string",
        "delete": "string",
    },
    tms_tags_v1_id="string")
Copy
const tmsTagsV1Resource = new opentelekomcloud.TmsTagsV1("tmsTagsV1Resource", {
    tags: [{
        key: "string",
        value: "string",
    }],
    timeouts: {
        create: "string",
        "delete": "string",
    },
    tmsTagsV1Id: "string",
});
Copy
type: opentelekomcloud:TmsTagsV1
properties:
    tags:
        - key: string
          value: string
    timeouts:
        create: string
        delete: string
    tmsTagsV1Id: string
Copy

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 This property is required. List<TmsTagsV1Tag>
Specifies an array of one or more predefined tags.
Timeouts TmsTagsV1Timeouts
TmsTagsV1Id string
The resource ID.
Tags This property is required. []TmsTagsV1TagArgs
Specifies an array of one or more predefined tags.
Timeouts TmsTagsV1TimeoutsArgs
TmsTagsV1Id string
The resource ID.
tags This property is required. List<TmsTagsV1Tag>
Specifies an array of one or more predefined tags.
timeouts TmsTagsV1Timeouts
tmsTagsV1Id String
The resource ID.
tags This property is required. TmsTagsV1Tag[]
Specifies an array of one or more predefined tags.
timeouts TmsTagsV1Timeouts
tmsTagsV1Id string
The resource ID.
tags This property is required. Sequence[TmsTagsV1TagArgs]
Specifies an array of one or more predefined tags.
timeouts TmsTagsV1TimeoutsArgs
tms_tags_v1_id str
The resource ID.
tags This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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.