opentelekomcloud.TmsResourceTagsV1
Explore with Pulumi AI
Up-to-date reference of API arguments for TMS Resource Tags you can get at documentation portal
Using this resource to manage tags of other service resources in batches within OpenTelekomCloud.
The
tags
parameters of this resource and each service resource will affect each other, and should be managed in only one way as much as possible. You can uselifecycle.ignore_changes
to ignore resource changes.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
configuration:
resourcesProjectId:
type: dynamic
resourcesConfiguration:
type: list(object({id = union(none, string), type = union(none, string)}))
resources:
test:
type: opentelekomcloud:TmsResourceTagsV1
properties:
projectId: ${resourcesProjectId}
dynamic:
- forEach: ${resourcesConfiguration}
content:
- resourceType: ${resources.value.type}
resourceId: ${resources.value.id}
tags:
foo: bar
owner: terraform
Create TmsResourceTagsV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TmsResourceTagsV1(name: string, args: TmsResourceTagsV1Args, opts?: CustomResourceOptions);
@overload
def TmsResourceTagsV1(resource_name: str,
args: TmsResourceTagsV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def TmsResourceTagsV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
resources: Optional[Sequence[TmsResourceTagsV1ResourceArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
project_id: Optional[str] = None,
tms_resource_tags_v1_id: Optional[str] = None)
func NewTmsResourceTagsV1(ctx *Context, name string, args TmsResourceTagsV1Args, opts ...ResourceOption) (*TmsResourceTagsV1, error)
public TmsResourceTagsV1(string name, TmsResourceTagsV1Args args, CustomResourceOptions? opts = null)
public TmsResourceTagsV1(String name, TmsResourceTagsV1Args args)
public TmsResourceTagsV1(String name, TmsResourceTagsV1Args args, CustomResourceOptions options)
type: opentelekomcloud:TmsResourceTagsV1
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 TmsResourceTagsV1Args
- 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 TmsResourceTagsV1Args
- 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 TmsResourceTagsV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TmsResourceTagsV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TmsResourceTagsV1Args
- 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 tmsResourceTagsV1Resource = new Opentelekomcloud.TmsResourceTagsV1("tmsResourceTagsV1Resource", new()
{
Resources = new[]
{
new Opentelekomcloud.Inputs.TmsResourceTagsV1ResourceArgs
{
ResourceId = "string",
ResourceType = "string",
},
},
Tags =
{
{ "string", "string" },
},
ProjectId = "string",
TmsResourceTagsV1Id = "string",
});
example, err := opentelekomcloud.NewTmsResourceTagsV1(ctx, "tmsResourceTagsV1Resource", &opentelekomcloud.TmsResourceTagsV1Args{
Resources: opentelekomcloud.TmsResourceTagsV1ResourceArray{
&opentelekomcloud.TmsResourceTagsV1ResourceArgs{
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ProjectId: pulumi.String("string"),
TmsResourceTagsV1Id: pulumi.String("string"),
})
var tmsResourceTagsV1Resource = new TmsResourceTagsV1("tmsResourceTagsV1Resource", TmsResourceTagsV1Args.builder()
.resources(TmsResourceTagsV1ResourceArgs.builder()
.resourceId("string")
.resourceType("string")
.build())
.tags(Map.of("string", "string"))
.projectId("string")
.tmsResourceTagsV1Id("string")
.build());
tms_resource_tags_v1_resource = opentelekomcloud.TmsResourceTagsV1("tmsResourceTagsV1Resource",
resources=[{
"resource_id": "string",
"resource_type": "string",
}],
tags={
"string": "string",
},
project_id="string",
tms_resource_tags_v1_id="string")
const tmsResourceTagsV1Resource = new opentelekomcloud.TmsResourceTagsV1("tmsResourceTagsV1Resource", {
resources: [{
resourceId: "string",
resourceType: "string",
}],
tags: {
string: "string",
},
projectId: "string",
tmsResourceTagsV1Id: "string",
});
type: opentelekomcloud:TmsResourceTagsV1
properties:
projectId: string
resources:
- resourceId: string
resourceType: string
tags:
string: string
tmsResourceTagsV1Id: string
TmsResourceTagsV1 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 TmsResourceTagsV1 resource accepts the following input properties:
- Resources
List<Tms
Resource Tags V1Resource> - Specifies the managed resource configuration. The resources structure is documented below.
- Dictionary<string, string>
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- Project
Id string - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- string
- The resource ID.
- Resources
[]Tms
Resource Tags V1Resource Args - Specifies the managed resource configuration. The resources structure is documented below.
- map[string]string
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- Project
Id string - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- string
- The resource ID.
- resources
List<Tms
Resource Tags V1Resource> - Specifies the managed resource configuration. The resources structure is documented below.
- Map<String,String>
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- project
Id String - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- String
- The resource ID.
- resources
Tms
Resource Tags V1Resource[] - Specifies the managed resource configuration. The resources structure is documented below.
- {[key: string]: string}
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- project
Id string - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- string
- The resource ID.
- resources
Sequence[Tms
Resource Tags V1Resource Args] - Specifies the managed resource configuration. The resources structure is documented below.
- Mapping[str, str]
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- project_
id str - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- str
- The resource ID.
- resources List<Property Map>
- Specifies the managed resource configuration. The resources structure is documented below.
- Map<String>
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- project
Id String - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- String
- The resource ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the TmsResourceTagsV1 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 TmsResourceTagsV1 Resource
Get an existing TmsResourceTagsV1 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?: TmsResourceTagsV1State, opts?: CustomResourceOptions): TmsResourceTagsV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
resources: Optional[Sequence[TmsResourceTagsV1ResourceArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tms_resource_tags_v1_id: Optional[str] = None) -> TmsResourceTagsV1
func GetTmsResourceTagsV1(ctx *Context, name string, id IDInput, state *TmsResourceTagsV1State, opts ...ResourceOption) (*TmsResourceTagsV1, error)
public static TmsResourceTagsV1 Get(string name, Input<string> id, TmsResourceTagsV1State? state, CustomResourceOptions? opts = null)
public static TmsResourceTagsV1 get(String name, Output<String> id, TmsResourceTagsV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:TmsResourceTagsV1 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.
- Project
Id string - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- Resources
List<Tms
Resource Tags V1Resource> - Specifies the managed resource configuration. The resources structure is documented below.
- Dictionary<string, string>
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- string
- The resource ID.
- Project
Id string - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- Resources
[]Tms
Resource Tags V1Resource Args - Specifies the managed resource configuration. The resources structure is documented below.
- map[string]string
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- string
- The resource ID.
- project
Id String - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- resources
List<Tms
Resource Tags V1Resource> - Specifies the managed resource configuration. The resources structure is documented below.
- Map<String,String>
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- String
- The resource ID.
- project
Id string - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- resources
Tms
Resource Tags V1Resource[] - Specifies the managed resource configuration. The resources structure is documented below.
- {[key: string]: string}
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- string
- The resource ID.
- project_
id str - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- resources
Sequence[Tms
Resource Tags V1Resource Args] - Specifies the managed resource configuration. The resources structure is documented below.
- Mapping[str, str]
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- str
- The resource ID.
- project
Id String - Specifies project ID to which the managed resources belong. Required if the resources are project level. Changing this will create a new resource.
- resources List<Property Map>
- Specifies the managed resource configuration. The resources structure is documented below.
- Map<String>
Specifies resource tags for batch management.
- The valid length of the tag key is limited from
1
to36
, only letters, digits, hyphens (-), underscores (_) and Chinese characters are allowed. - The valid length of the tag value is limited from
0
to43
, only letters, digits, periods (.), hyphens (-), underscores (_) and Chinese characters are allowed.
The
resources
block supports:- The valid length of the tag key is limited from
- String
- The resource ID.
Supporting Types
TmsResourceTagsV1Resource, TmsResourceTagsV1ResourceArgs
- Resource
Id string - Specifies the resource ID.
- Resource
Type string - Specifies the resource type.
- Resource
Id string - Specifies the resource ID.
- Resource
Type string - Specifies the resource type.
- resource
Id String - Specifies the resource ID.
- resource
Type String - Specifies the resource type.
- resource
Id string - Specifies the resource ID.
- resource
Type string - Specifies the resource type.
- resource_
id str - Specifies the resource ID.
- resource_
type str - Specifies the resource type.
- resource
Id String - Specifies the resource ID.
- resource
Type String - Specifies the resource type.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.