1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TsfGroup
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TsfGroup

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tsf group

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const group = new tencentcloud.TsfGroup("group", {
        alias: "terraform test",
        applicationId: "application-xxx",
        clusterId: "cluster-vwgjxxxx",
        groupDesc: "terraform desc",
        groupName: "terraform-test",
        namespaceId: "namespace-aemrxxx",
        tags: {
            createdBy: "terraform",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    group = tencentcloud.TsfGroup("group",
        alias="terraform test",
        application_id="application-xxx",
        cluster_id="cluster-vwgjxxxx",
        group_desc="terraform desc",
        group_name="terraform-test",
        namespace_id="namespace-aemrxxx",
        tags={
            "createdBy": "terraform",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTsfGroup(ctx, "group", &tencentcloud.TsfGroupArgs{
    			Alias:         pulumi.String("terraform test"),
    			ApplicationId: pulumi.String("application-xxx"),
    			ClusterId:     pulumi.String("cluster-vwgjxxxx"),
    			GroupDesc:     pulumi.String("terraform desc"),
    			GroupName:     pulumi.String("terraform-test"),
    			NamespaceId:   pulumi.String("namespace-aemrxxx"),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @group = new Tencentcloud.TsfGroup("group", new()
        {
            Alias = "terraform test",
            ApplicationId = "application-xxx",
            ClusterId = "cluster-vwgjxxxx",
            GroupDesc = "terraform desc",
            GroupName = "terraform-test",
            NamespaceId = "namespace-aemrxxx",
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TsfGroup;
    import com.pulumi.tencentcloud.TsfGroupArgs;
    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 group = new TsfGroup("group", TsfGroupArgs.builder()
                .alias("terraform test")
                .applicationId("application-xxx")
                .clusterId("cluster-vwgjxxxx")
                .groupDesc("terraform desc")
                .groupName("terraform-test")
                .namespaceId("namespace-aemrxxx")
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
        }
    }
    
    resources:
      group:
        type: tencentcloud:TsfGroup
        properties:
          alias: terraform test
          applicationId: application-xxx
          clusterId: cluster-vwgjxxxx
          groupDesc: terraform desc
          groupName: terraform-test
          namespaceId: namespace-aemrxxx
          tags:
            createdBy: terraform
    

    Create TsfGroup Resource

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

    Constructor syntax

    new TsfGroup(name: string, args: TsfGroupArgs, opts?: CustomResourceOptions);
    @overload
    def TsfGroup(resource_name: str,
                 args: TsfGroupArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def TsfGroup(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 application_id: Optional[str] = None,
                 cluster_id: Optional[str] = None,
                 group_name: Optional[str] = None,
                 namespace_id: Optional[str] = None,
                 alias: Optional[str] = None,
                 group_desc: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 tsf_group_id: Optional[str] = None)
    func NewTsfGroup(ctx *Context, name string, args TsfGroupArgs, opts ...ResourceOption) (*TsfGroup, error)
    public TsfGroup(string name, TsfGroupArgs args, CustomResourceOptions? opts = null)
    public TsfGroup(String name, TsfGroupArgs args)
    public TsfGroup(String name, TsfGroupArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TsfGroup
    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 TsfGroupArgs
    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 TsfGroupArgs
    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 TsfGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TsfGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TsfGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ApplicationId string
    The application ID to which the group belongs.
    ClusterId string
    Cluster ID.
    GroupName string
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    NamespaceId string
    ID of the namespace to which the group belongs.
    Alias string
    Deployment Group Notes.
    GroupDesc string
    Group description.
    Tags Dictionary<string, string>
    Tag description list.
    TsfGroupId string
    ID of the resource.
    ApplicationId string
    The application ID to which the group belongs.
    ClusterId string
    Cluster ID.
    GroupName string
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    NamespaceId string
    ID of the namespace to which the group belongs.
    Alias string
    Deployment Group Notes.
    GroupDesc string
    Group description.
    Tags map[string]string
    Tag description list.
    TsfGroupId string
    ID of the resource.
    applicationId String
    The application ID to which the group belongs.
    clusterId String
    Cluster ID.
    groupName String
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    namespaceId String
    ID of the namespace to which the group belongs.
    alias String
    Deployment Group Notes.
    groupDesc String
    Group description.
    tags Map<String,String>
    Tag description list.
    tsfGroupId String
    ID of the resource.
    applicationId string
    The application ID to which the group belongs.
    clusterId string
    Cluster ID.
    groupName string
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    namespaceId string
    ID of the namespace to which the group belongs.
    alias string
    Deployment Group Notes.
    groupDesc string
    Group description.
    tags {[key: string]: string}
    Tag description list.
    tsfGroupId string
    ID of the resource.
    application_id str
    The application ID to which the group belongs.
    cluster_id str
    Cluster ID.
    group_name str
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    namespace_id str
    ID of the namespace to which the group belongs.
    alias str
    Deployment Group Notes.
    group_desc str
    Group description.
    tags Mapping[str, str]
    Tag description list.
    tsf_group_id str
    ID of the resource.
    applicationId String
    The application ID to which the group belongs.
    clusterId String
    Cluster ID.
    groupName String
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    namespaceId String
    ID of the namespace to which the group belongs.
    alias String
    Deployment Group Notes.
    groupDesc String
    Group description.
    tags Map<String>
    Tag description list.
    tsfGroupId String
    ID of the resource.

    Outputs

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

    GroupResourceType string
    Deployment Group Resource Type.
    Id string
    The provider-assigned unique ID for this managed resource.
    GroupResourceType string
    Deployment Group Resource Type.
    Id string
    The provider-assigned unique ID for this managed resource.
    groupResourceType String
    Deployment Group Resource Type.
    id String
    The provider-assigned unique ID for this managed resource.
    groupResourceType string
    Deployment Group Resource Type.
    id string
    The provider-assigned unique ID for this managed resource.
    group_resource_type str
    Deployment Group Resource Type.
    id str
    The provider-assigned unique ID for this managed resource.
    groupResourceType String
    Deployment Group Resource Type.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TsfGroup Resource

    Get an existing TsfGroup 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?: TsfGroupState, opts?: CustomResourceOptions): TsfGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alias: Optional[str] = None,
            application_id: Optional[str] = None,
            cluster_id: Optional[str] = None,
            group_desc: Optional[str] = None,
            group_name: Optional[str] = None,
            group_resource_type: Optional[str] = None,
            namespace_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tsf_group_id: Optional[str] = None) -> TsfGroup
    func GetTsfGroup(ctx *Context, name string, id IDInput, state *TsfGroupState, opts ...ResourceOption) (*TsfGroup, error)
    public static TsfGroup Get(string name, Input<string> id, TsfGroupState? state, CustomResourceOptions? opts = null)
    public static TsfGroup get(String name, Output<String> id, TsfGroupState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TsfGroup    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:
    Alias string
    Deployment Group Notes.
    ApplicationId string
    The application ID to which the group belongs.
    ClusterId string
    Cluster ID.
    GroupDesc string
    Group description.
    GroupName string
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    GroupResourceType string
    Deployment Group Resource Type.
    NamespaceId string
    ID of the namespace to which the group belongs.
    Tags Dictionary<string, string>
    Tag description list.
    TsfGroupId string
    ID of the resource.
    Alias string
    Deployment Group Notes.
    ApplicationId string
    The application ID to which the group belongs.
    ClusterId string
    Cluster ID.
    GroupDesc string
    Group description.
    GroupName string
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    GroupResourceType string
    Deployment Group Resource Type.
    NamespaceId string
    ID of the namespace to which the group belongs.
    Tags map[string]string
    Tag description list.
    TsfGroupId string
    ID of the resource.
    alias String
    Deployment Group Notes.
    applicationId String
    The application ID to which the group belongs.
    clusterId String
    Cluster ID.
    groupDesc String
    Group description.
    groupName String
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    groupResourceType String
    Deployment Group Resource Type.
    namespaceId String
    ID of the namespace to which the group belongs.
    tags Map<String,String>
    Tag description list.
    tsfGroupId String
    ID of the resource.
    alias string
    Deployment Group Notes.
    applicationId string
    The application ID to which the group belongs.
    clusterId string
    Cluster ID.
    groupDesc string
    Group description.
    groupName string
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    groupResourceType string
    Deployment Group Resource Type.
    namespaceId string
    ID of the namespace to which the group belongs.
    tags {[key: string]: string}
    Tag description list.
    tsfGroupId string
    ID of the resource.
    alias str
    Deployment Group Notes.
    application_id str
    The application ID to which the group belongs.
    cluster_id str
    Cluster ID.
    group_desc str
    Group description.
    group_name str
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    group_resource_type str
    Deployment Group Resource Type.
    namespace_id str
    ID of the namespace to which the group belongs.
    tags Mapping[str, str]
    Tag description list.
    tsf_group_id str
    ID of the resource.
    alias String
    Deployment Group Notes.
    applicationId String
    The application ID to which the group belongs.
    clusterId String
    Cluster ID.
    groupDesc String
    Group description.
    groupName String
    Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
    groupResourceType String
    Deployment Group Resource Type.
    namespaceId String
    ID of the namespace to which the group belongs.
    tags Map<String>
    Tag description list.
    tsfGroupId String
    ID of the resource.

    Import

    tsf group can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tsfGroup:TsfGroup group group-axxx
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack