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

tencentcloud.TsfConfigTemplate

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 config_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const configTemplate = new tencentcloud.TsfConfigTemplate("configTemplate", {
        configTemplateDesc: "terraform-test",
        configTemplateName: "terraform-template-name",
        configTemplateType: "Ribbon",
        configTemplateValue: `  ribbon.ReadTimeout: 5000
      ribbon.ConnectTimeout: 2000
      ribbon.MaxAutoRetries: 0
      ribbon.MaxAutoRetriesNextServer: 1
      ribbon.OkToRetryOnAllOperations: true
    
    `,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config_template = tencentcloud.TsfConfigTemplate("configTemplate",
        config_template_desc="terraform-test",
        config_template_name="terraform-template-name",
        config_template_type="Ribbon",
        config_template_value="""  ribbon.ReadTimeout: 5000
      ribbon.ConnectTimeout: 2000
      ribbon.MaxAutoRetries: 0
      ribbon.MaxAutoRetriesNextServer: 1
      ribbon.OkToRetryOnAllOperations: true
    
    """)
    
    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.NewTsfConfigTemplate(ctx, "configTemplate", &tencentcloud.TsfConfigTemplateArgs{
    			ConfigTemplateDesc: pulumi.String("terraform-test"),
    			ConfigTemplateName: pulumi.String("terraform-template-name"),
    			ConfigTemplateType: pulumi.String("Ribbon"),
    			ConfigTemplateValue: pulumi.String(`  ribbon.ReadTimeout: 5000
      ribbon.ConnectTimeout: 2000
      ribbon.MaxAutoRetries: 0
      ribbon.MaxAutoRetriesNextServer: 1
      ribbon.OkToRetryOnAllOperations: true
    
    `),
    		})
    		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 configTemplate = new Tencentcloud.TsfConfigTemplate("configTemplate", new()
        {
            ConfigTemplateDesc = "terraform-test",
            ConfigTemplateName = "terraform-template-name",
            ConfigTemplateType = "Ribbon",
            ConfigTemplateValue = @"  ribbon.ReadTimeout: 5000
      ribbon.ConnectTimeout: 2000
      ribbon.MaxAutoRetries: 0
      ribbon.MaxAutoRetriesNextServer: 1
      ribbon.OkToRetryOnAllOperations: true
    
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TsfConfigTemplate;
    import com.pulumi.tencentcloud.TsfConfigTemplateArgs;
    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 configTemplate = new TsfConfigTemplate("configTemplate", TsfConfigTemplateArgs.builder()
                .configTemplateDesc("terraform-test")
                .configTemplateName("terraform-template-name")
                .configTemplateType("Ribbon")
                .configTemplateValue("""
      ribbon.ReadTimeout: 5000
      ribbon.ConnectTimeout: 2000
      ribbon.MaxAutoRetries: 0
      ribbon.MaxAutoRetriesNextServer: 1
      ribbon.OkToRetryOnAllOperations: true
    
                """)
                .build());
    
        }
    }
    
    resources:
      configTemplate:
        type: tencentcloud:TsfConfigTemplate
        properties:
          configTemplateDesc: terraform-test
          configTemplateName: terraform-template-name
          configTemplateType: Ribbon
          configTemplateValue: |2+
              ribbon.ReadTimeout: 5000
              ribbon.ConnectTimeout: 2000
              ribbon.MaxAutoRetries: 0
              ribbon.MaxAutoRetriesNextServer: 1
              ribbon.OkToRetryOnAllOperations: true
    

    Create TsfConfigTemplate Resource

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

    Constructor syntax

    new TsfConfigTemplate(name: string, args: TsfConfigTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def TsfConfigTemplate(resource_name: str,
                          args: TsfConfigTemplateArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def TsfConfigTemplate(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          config_template_name: Optional[str] = None,
                          config_template_type: Optional[str] = None,
                          config_template_value: Optional[str] = None,
                          config_template_desc: Optional[str] = None,
                          program_id_lists: Optional[Sequence[str]] = None,
                          tsf_config_template_id: Optional[str] = None)
    func NewTsfConfigTemplate(ctx *Context, name string, args TsfConfigTemplateArgs, opts ...ResourceOption) (*TsfConfigTemplate, error)
    public TsfConfigTemplate(string name, TsfConfigTemplateArgs args, CustomResourceOptions? opts = null)
    public TsfConfigTemplate(String name, TsfConfigTemplateArgs args)
    public TsfConfigTemplate(String name, TsfConfigTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TsfConfigTemplate
    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 TsfConfigTemplateArgs
    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 TsfConfigTemplateArgs
    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 TsfConfigTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TsfConfigTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TsfConfigTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ConfigTemplateName string
    Configuration template name.
    ConfigTemplateType string
    Configure the microservice framework corresponding to the template.
    ConfigTemplateValue string
    Configure template data.
    ConfigTemplateDesc string
    Configuration template description.
    ProgramIdLists List<string>
    Program id list.
    TsfConfigTemplateId string
    ID of the resource.
    ConfigTemplateName string
    Configuration template name.
    ConfigTemplateType string
    Configure the microservice framework corresponding to the template.
    ConfigTemplateValue string
    Configure template data.
    ConfigTemplateDesc string
    Configuration template description.
    ProgramIdLists []string
    Program id list.
    TsfConfigTemplateId string
    ID of the resource.
    configTemplateName String
    Configuration template name.
    configTemplateType String
    Configure the microservice framework corresponding to the template.
    configTemplateValue String
    Configure template data.
    configTemplateDesc String
    Configuration template description.
    programIdLists List<String>
    Program id list.
    tsfConfigTemplateId String
    ID of the resource.
    configTemplateName string
    Configuration template name.
    configTemplateType string
    Configure the microservice framework corresponding to the template.
    configTemplateValue string
    Configure template data.
    configTemplateDesc string
    Configuration template description.
    programIdLists string[]
    Program id list.
    tsfConfigTemplateId string
    ID of the resource.
    config_template_name str
    Configuration template name.
    config_template_type str
    Configure the microservice framework corresponding to the template.
    config_template_value str
    Configure template data.
    config_template_desc str
    Configuration template description.
    program_id_lists Sequence[str]
    Program id list.
    tsf_config_template_id str
    ID of the resource.
    configTemplateName String
    Configuration template name.
    configTemplateType String
    Configure the microservice framework corresponding to the template.
    configTemplateValue String
    Configure template data.
    configTemplateDesc String
    Configuration template description.
    programIdLists List<String>
    Program id list.
    tsfConfigTemplateId String
    ID of the resource.

    Outputs

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

    ConfigTemplateId string
    Template Id.
    CreateTime string
    creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    update time.
    ConfigTemplateId string
    Template Id.
    CreateTime string
    creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    update time.
    configTemplateId String
    Template Id.
    createTime String
    creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    update time.
    configTemplateId string
    Template Id.
    createTime string
    creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    update time.
    config_template_id str
    Template Id.
    create_time str
    creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time str
    update time.
    configTemplateId String
    Template Id.
    createTime String
    creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    update time.

    Look up Existing TsfConfigTemplate Resource

    Get an existing TsfConfigTemplate 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?: TsfConfigTemplateState, opts?: CustomResourceOptions): TsfConfigTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config_template_desc: Optional[str] = None,
            config_template_id: Optional[str] = None,
            config_template_name: Optional[str] = None,
            config_template_type: Optional[str] = None,
            config_template_value: Optional[str] = None,
            create_time: Optional[str] = None,
            program_id_lists: Optional[Sequence[str]] = None,
            tsf_config_template_id: Optional[str] = None,
            update_time: Optional[str] = None) -> TsfConfigTemplate
    func GetTsfConfigTemplate(ctx *Context, name string, id IDInput, state *TsfConfigTemplateState, opts ...ResourceOption) (*TsfConfigTemplate, error)
    public static TsfConfigTemplate Get(string name, Input<string> id, TsfConfigTemplateState? state, CustomResourceOptions? opts = null)
    public static TsfConfigTemplate get(String name, Output<String> id, TsfConfigTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TsfConfigTemplate    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:
    ConfigTemplateDesc string
    Configuration template description.
    ConfigTemplateId string
    Template Id.
    ConfigTemplateName string
    Configuration template name.
    ConfigTemplateType string
    Configure the microservice framework corresponding to the template.
    ConfigTemplateValue string
    Configure template data.
    CreateTime string
    creation time.
    ProgramIdLists List<string>
    Program id list.
    TsfConfigTemplateId string
    ID of the resource.
    UpdateTime string
    update time.
    ConfigTemplateDesc string
    Configuration template description.
    ConfigTemplateId string
    Template Id.
    ConfigTemplateName string
    Configuration template name.
    ConfigTemplateType string
    Configure the microservice framework corresponding to the template.
    ConfigTemplateValue string
    Configure template data.
    CreateTime string
    creation time.
    ProgramIdLists []string
    Program id list.
    TsfConfigTemplateId string
    ID of the resource.
    UpdateTime string
    update time.
    configTemplateDesc String
    Configuration template description.
    configTemplateId String
    Template Id.
    configTemplateName String
    Configuration template name.
    configTemplateType String
    Configure the microservice framework corresponding to the template.
    configTemplateValue String
    Configure template data.
    createTime String
    creation time.
    programIdLists List<String>
    Program id list.
    tsfConfigTemplateId String
    ID of the resource.
    updateTime String
    update time.
    configTemplateDesc string
    Configuration template description.
    configTemplateId string
    Template Id.
    configTemplateName string
    Configuration template name.
    configTemplateType string
    Configure the microservice framework corresponding to the template.
    configTemplateValue string
    Configure template data.
    createTime string
    creation time.
    programIdLists string[]
    Program id list.
    tsfConfigTemplateId string
    ID of the resource.
    updateTime string
    update time.
    config_template_desc str
    Configuration template description.
    config_template_id str
    Template Id.
    config_template_name str
    Configuration template name.
    config_template_type str
    Configure the microservice framework corresponding to the template.
    config_template_value str
    Configure template data.
    create_time str
    creation time.
    program_id_lists Sequence[str]
    Program id list.
    tsf_config_template_id str
    ID of the resource.
    update_time str
    update time.
    configTemplateDesc String
    Configuration template description.
    configTemplateId String
    Template Id.
    configTemplateName String
    Configuration template name.
    configTemplateType String
    Configure the microservice framework corresponding to the template.
    configTemplateValue String
    Configure template data.
    createTime String
    creation time.
    programIdLists List<String>
    Program id list.
    tsfConfigTemplateId String
    ID of the resource.
    updateTime String
    update time.

    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