1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. TmsTags
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.TmsTags

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages TMS tags resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const test = new flexibleengine.TmsTags("test", {tags: [{
        key: "foo",
        value: "bar",
    }]});
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    test = flexibleengine.TmsTags("test", tags=[{
        "key": "foo",
        "value": "bar",
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewTmsTags(ctx, "test", &flexibleengine.TmsTagsArgs{
    			Tags: flexibleengine.TmsTagsTagArray{
    				&flexibleengine.TmsTagsTagArgs{
    					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 Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Flexibleengine.TmsTags("test", new()
        {
            Tags = new[]
            {
                new Flexibleengine.Inputs.TmsTagsTagArgs
                {
                    Key = "foo",
                    Value = "bar",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.TmsTags;
    import com.pulumi.flexibleengine.TmsTagsArgs;
    import com.pulumi.flexibleengine.inputs.TmsTagsTagArgs;
    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 TmsTags("test", TmsTagsArgs.builder()
                .tags(TmsTagsTagArgs.builder()
                    .key("foo")
                    .value("bar")
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: flexibleengine:TmsTags
        properties:
          tags:
            - key: foo
              value: bar
    

    Create TmsTags Resource

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

    Constructor syntax

    new TmsTags(name: string, args: TmsTagsArgs, opts?: CustomResourceOptions);
    @overload
    def TmsTags(resource_name: str,
                args: TmsTagsArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def TmsTags(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                tags: Optional[Sequence[TmsTagsTagArgs]] = None,
                timeouts: Optional[TmsTagsTimeoutsArgs] = None,
                tms_tags_id: Optional[str] = None)
    func NewTmsTags(ctx *Context, name string, args TmsTagsArgs, opts ...ResourceOption) (*TmsTags, error)
    public TmsTags(string name, TmsTagsArgs args, CustomResourceOptions? opts = null)
    public TmsTags(String name, TmsTagsArgs args)
    public TmsTags(String name, TmsTagsArgs args, CustomResourceOptions options)
    
    type: flexibleengine:TmsTags
    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 TmsTagsArgs
    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 TmsTagsArgs
    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 TmsTagsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TmsTagsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TmsTagsArgs
    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 tmsTagsResource = new Flexibleengine.TmsTags("tmsTagsResource", new()
    {
        Tags = new[]
        {
            new Flexibleengine.Inputs.TmsTagsTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        Timeouts = new Flexibleengine.Inputs.TmsTagsTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        TmsTagsId = "string",
    });
    
    example, err := flexibleengine.NewTmsTags(ctx, "tmsTagsResource", &flexibleengine.TmsTagsArgs{
    	Tags: flexibleengine.TmsTagsTagArray{
    		&flexibleengine.TmsTagsTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	Timeouts: &flexibleengine.TmsTagsTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	TmsTagsId: pulumi.String("string"),
    })
    
    var tmsTagsResource = new TmsTags("tmsTagsResource", TmsTagsArgs.builder()
        .tags(TmsTagsTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .timeouts(TmsTagsTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .tmsTagsId("string")
        .build());
    
    tms_tags_resource = flexibleengine.TmsTags("tmsTagsResource",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        timeouts={
            "create": "string",
            "delete": "string",
        },
        tms_tags_id="string")
    
    const tmsTagsResource = new flexibleengine.TmsTags("tmsTagsResource", {
        tags: [{
            key: "string",
            value: "string",
        }],
        timeouts: {
            create: "string",
            "delete": "string",
        },
        tmsTagsId: "string",
    });
    
    type: flexibleengine:TmsTags
    properties:
        tags:
            - key: string
              value: string
        timeouts:
            create: string
            delete: string
        tmsTagsId: string
    

    TmsTags 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 TmsTags resource accepts the following input properties:

    Tags List<TmsTagsTag>
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    Timeouts TmsTagsTimeouts
    TmsTagsId string
    The resource ID.
    Tags []TmsTagsTagArgs
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    Timeouts TmsTagsTimeoutsArgs
    TmsTagsId string
    The resource ID.
    tags List<TmsTagsTag>
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    timeouts TmsTagsTimeouts
    tmsTagsId String
    The resource ID.
    tags TmsTagsTag[]
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    timeouts TmsTagsTimeouts
    tmsTagsId string
    The resource ID.
    tags Sequence[TmsTagsTagArgs]
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    timeouts TmsTagsTimeoutsArgs
    tms_tags_id str
    The resource ID.
    tags List<Property Map>
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    timeouts Property Map
    tmsTagsId String
    The resource ID.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TmsTags 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 TmsTags Resource

    Get an existing TmsTags 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?: TmsTagsState, opts?: CustomResourceOptions): TmsTags
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            tags: Optional[Sequence[TmsTagsTagArgs]] = None,
            timeouts: Optional[TmsTagsTimeoutsArgs] = None,
            tms_tags_id: Optional[str] = None) -> TmsTags
    func GetTmsTags(ctx *Context, name string, id IDInput, state *TmsTagsState, opts ...ResourceOption) (*TmsTags, error)
    public static TmsTags Get(string name, Input<string> id, TmsTagsState? state, CustomResourceOptions? opts = null)
    public static TmsTags get(String name, Output<String> id, TmsTagsState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:TmsTags    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<TmsTagsTag>
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    Timeouts TmsTagsTimeouts
    TmsTagsId string
    The resource ID.
    Tags []TmsTagsTagArgs
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    Timeouts TmsTagsTimeoutsArgs
    TmsTagsId string
    The resource ID.
    tags List<TmsTagsTag>
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    timeouts TmsTagsTimeouts
    tmsTagsId String
    The resource ID.
    tags TmsTagsTag[]
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    timeouts TmsTagsTimeouts
    tmsTagsId string
    The resource ID.
    tags Sequence[TmsTagsTagArgs]
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    timeouts TmsTagsTimeoutsArgs
    tms_tags_id str
    The resource ID.
    tags List<Property Map>
    Specifies an array of one or more predefined tags. The tags object structure is documented below. Changing this will create a new resource.
    timeouts Property Map
    tmsTagsId String
    The resource ID.

    Supporting Types

    TmsTagsTag, TmsTagsTagArgs

    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.
    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. Changing this will create a new resource.

    TmsTagsTimeouts, TmsTagsTimeoutsArgs

    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
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud