tencentcloud.TsfConfigTemplate
Explore with Pulumi AI
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:
- Config
Template stringName - Configuration template name.
- Config
Template stringType - Configure the microservice framework corresponding to the template.
- Config
Template stringValue - Configure template data.
- Config
Template stringDesc - Configuration template description.
- Program
Id List<string>Lists - Program id list.
- Tsf
Config stringTemplate Id - ID of the resource.
- Config
Template stringName - Configuration template name.
- Config
Template stringType - Configure the microservice framework corresponding to the template.
- Config
Template stringValue - Configure template data.
- Config
Template stringDesc - Configuration template description.
- Program
Id []stringLists - Program id list.
- Tsf
Config stringTemplate Id - ID of the resource.
- config
Template StringName - Configuration template name.
- config
Template StringType - Configure the microservice framework corresponding to the template.
- config
Template StringValue - Configure template data.
- config
Template StringDesc - Configuration template description.
- program
Id List<String>Lists - Program id list.
- tsf
Config StringTemplate Id - ID of the resource.
- config
Template stringName - Configuration template name.
- config
Template stringType - Configure the microservice framework corresponding to the template.
- config
Template stringValue - Configure template data.
- config
Template stringDesc - Configuration template description.
- program
Id string[]Lists - Program id list.
- tsf
Config stringTemplate Id - ID of the resource.
- config_
template_ strname - Configuration template name.
- config_
template_ strtype - Configure the microservice framework corresponding to the template.
- config_
template_ strvalue - Configure template data.
- config_
template_ strdesc - Configuration template description.
- program_
id_ Sequence[str]lists - Program id list.
- tsf_
config_ strtemplate_ id - ID of the resource.
- config
Template StringName - Configuration template name.
- config
Template StringType - Configure the microservice framework corresponding to the template.
- config
Template StringValue - Configure template data.
- config
Template StringDesc - Configuration template description.
- program
Id List<String>Lists - Program id list.
- tsf
Config StringTemplate Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TsfConfigTemplate resource produces the following output properties:
- Config
Template stringId - Template Id.
- Create
Time string - creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - update time.
- Config
Template stringId - Template Id.
- Create
Time string - creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - update time.
- config
Template StringId - Template Id.
- create
Time String - creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - update time.
- config
Template stringId - Template Id.
- create
Time string - creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - update time.
- config_
template_ strid - Template Id.
- create_
time str - creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - update time.
- config
Template StringId - Template Id.
- create
Time String - creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time 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.
- Config
Template stringDesc - Configuration template description.
- Config
Template stringId - Template Id.
- Config
Template stringName - Configuration template name.
- Config
Template stringType - Configure the microservice framework corresponding to the template.
- Config
Template stringValue - Configure template data.
- Create
Time string - creation time.
- Program
Id List<string>Lists - Program id list.
- Tsf
Config stringTemplate Id - ID of the resource.
- Update
Time string - update time.
- Config
Template stringDesc - Configuration template description.
- Config
Template stringId - Template Id.
- Config
Template stringName - Configuration template name.
- Config
Template stringType - Configure the microservice framework corresponding to the template.
- Config
Template stringValue - Configure template data.
- Create
Time string - creation time.
- Program
Id []stringLists - Program id list.
- Tsf
Config stringTemplate Id - ID of the resource.
- Update
Time string - update time.
- config
Template StringDesc - Configuration template description.
- config
Template StringId - Template Id.
- config
Template StringName - Configuration template name.
- config
Template StringType - Configure the microservice framework corresponding to the template.
- config
Template StringValue - Configure template data.
- create
Time String - creation time.
- program
Id List<String>Lists - Program id list.
- tsf
Config StringTemplate Id - ID of the resource.
- update
Time String - update time.
- config
Template stringDesc - Configuration template description.
- config
Template stringId - Template Id.
- config
Template stringName - Configuration template name.
- config
Template stringType - Configure the microservice framework corresponding to the template.
- config
Template stringValue - Configure template data.
- create
Time string - creation time.
- program
Id string[]Lists - Program id list.
- tsf
Config stringTemplate Id - ID of the resource.
- update
Time string - update time.
- config_
template_ strdesc - Configuration template description.
- config_
template_ strid - Template Id.
- config_
template_ strname - Configuration template name.
- config_
template_ strtype - Configure the microservice framework corresponding to the template.
- config_
template_ strvalue - Configure template data.
- create_
time str - creation time.
- program_
id_ Sequence[str]lists - Program id list.
- tsf_
config_ strtemplate_ id - ID of the resource.
- update_
time str - update time.
- config
Template StringDesc - Configuration template description.
- config
Template StringId - Template Id.
- config
Template StringName - Configuration template name.
- config
Template StringType - Configure the microservice framework corresponding to the template.
- config
Template StringValue - Configure template data.
- create
Time String - creation time.
- program
Id List<String>Lists - Program id list.
- tsf
Config StringTemplate Id - ID of the resource.
- update
Time String - update time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.