tencentcloud.TsfGroup
Explore with Pulumi AI
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:
- Application
Id string - The application ID to which the group belongs.
- Cluster
Id string - Cluster ID.
- Group
Name string - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- Namespace
Id string - ID of the namespace to which the group belongs.
- Alias string
- Deployment Group Notes.
- Group
Desc string - Group description.
- Dictionary<string, string>
- Tag description list.
- Tsf
Group stringId - ID of the resource.
- Application
Id string - The application ID to which the group belongs.
- Cluster
Id string - Cluster ID.
- Group
Name string - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- Namespace
Id string - ID of the namespace to which the group belongs.
- Alias string
- Deployment Group Notes.
- Group
Desc string - Group description.
- map[string]string
- Tag description list.
- Tsf
Group stringId - ID of the resource.
- application
Id String - The application ID to which the group belongs.
- cluster
Id String - Cluster ID.
- group
Name String - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- namespace
Id String - ID of the namespace to which the group belongs.
- alias String
- Deployment Group Notes.
- group
Desc String - Group description.
- Map<String,String>
- Tag description list.
- tsf
Group StringId - ID of the resource.
- application
Id string - The application ID to which the group belongs.
- cluster
Id string - Cluster ID.
- group
Name string - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- namespace
Id string - ID of the namespace to which the group belongs.
- alias string
- Deployment Group Notes.
- group
Desc string - Group description.
- {[key: string]: string}
- Tag description list.
- tsf
Group stringId - 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.
- Mapping[str, str]
- Tag description list.
- tsf_
group_ strid - ID of the resource.
- application
Id String - The application ID to which the group belongs.
- cluster
Id String - Cluster ID.
- group
Name String - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- namespace
Id String - ID of the namespace to which the group belongs.
- alias String
- Deployment Group Notes.
- group
Desc String - Group description.
- Map<String>
- Tag description list.
- tsf
Group StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TsfGroup resource produces the following output properties:
- Group
Resource stringType - Deployment Group Resource Type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Group
Resource stringType - Deployment Group Resource Type.
- Id string
- The provider-assigned unique ID for this managed resource.
- group
Resource StringType - Deployment Group Resource Type.
- id String
- The provider-assigned unique ID for this managed resource.
- group
Resource stringType - Deployment Group Resource Type.
- id string
- The provider-assigned unique ID for this managed resource.
- group_
resource_ strtype - Deployment Group Resource Type.
- id str
- The provider-assigned unique ID for this managed resource.
- group
Resource StringType - 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.
- Alias string
- Deployment Group Notes.
- Application
Id string - The application ID to which the group belongs.
- Cluster
Id string - Cluster ID.
- Group
Desc string - Group description.
- Group
Name string - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- Group
Resource stringType - Deployment Group Resource Type.
- Namespace
Id string - ID of the namespace to which the group belongs.
- Dictionary<string, string>
- Tag description list.
- Tsf
Group stringId - ID of the resource.
- Alias string
- Deployment Group Notes.
- Application
Id string - The application ID to which the group belongs.
- Cluster
Id string - Cluster ID.
- Group
Desc string - Group description.
- Group
Name string - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- Group
Resource stringType - Deployment Group Resource Type.
- Namespace
Id string - ID of the namespace to which the group belongs.
- map[string]string
- Tag description list.
- Tsf
Group stringId - ID of the resource.
- alias String
- Deployment Group Notes.
- application
Id String - The application ID to which the group belongs.
- cluster
Id String - Cluster ID.
- group
Desc String - Group description.
- group
Name String - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- group
Resource StringType - Deployment Group Resource Type.
- namespace
Id String - ID of the namespace to which the group belongs.
- Map<String,String>
- Tag description list.
- tsf
Group StringId - ID of the resource.
- alias string
- Deployment Group Notes.
- application
Id string - The application ID to which the group belongs.
- cluster
Id string - Cluster ID.
- group
Desc string - Group description.
- group
Name string - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- group
Resource stringType - Deployment Group Resource Type.
- namespace
Id string - ID of the namespace to which the group belongs.
- {[key: string]: string}
- Tag description list.
- tsf
Group stringId - 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_ strtype - Deployment Group Resource Type.
- namespace_
id str - ID of the namespace to which the group belongs.
- Mapping[str, str]
- Tag description list.
- tsf_
group_ strid - ID of the resource.
- alias String
- Deployment Group Notes.
- application
Id String - The application ID to which the group belongs.
- cluster
Id String - Cluster ID.
- group
Desc String - Group description.
- group
Name String - Group name field, length 1~60, beginning with a letter or underscore, can contain alphanumeric underscore.
- group
Resource StringType - Deployment Group Resource Type.
- namespace
Id String - ID of the namespace to which the group belongs.
- Map<String>
- Tag description list.
- tsf
Group StringId - 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.