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

tencentcloud.TsfApplicationFileConfig

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 application_file_config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const applicationFileConfig = new tencentcloud.TsfApplicationFileConfig("applicationFileConfig", {
        applicationId: "application-a24x29xv",
        configFileCode: "UTF-8",
        configFileName: "application.yaml",
        configFilePath: "/etc/nginx",
        configFileValue: "test: 1",
        configName: "terraform-test",
        configPostCmd: "source .bashrc",
        configVersion: "1.0",
        configVersionDesc: "1.0",
        encodeWithBase64: true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    application_file_config = tencentcloud.TsfApplicationFileConfig("applicationFileConfig",
        application_id="application-a24x29xv",
        config_file_code="UTF-8",
        config_file_name="application.yaml",
        config_file_path="/etc/nginx",
        config_file_value="test: 1",
        config_name="terraform-test",
        config_post_cmd="source .bashrc",
        config_version="1.0",
        config_version_desc="1.0",
        encode_with_base64=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.NewTsfApplicationFileConfig(ctx, "applicationFileConfig", &tencentcloud.TsfApplicationFileConfigArgs{
    			ApplicationId:     pulumi.String("application-a24x29xv"),
    			ConfigFileCode:    pulumi.String("UTF-8"),
    			ConfigFileName:    pulumi.String("application.yaml"),
    			ConfigFilePath:    pulumi.String("/etc/nginx"),
    			ConfigFileValue:   pulumi.String("test: 1"),
    			ConfigName:        pulumi.String("terraform-test"),
    			ConfigPostCmd:     pulumi.String("source .bashrc"),
    			ConfigVersion:     pulumi.String("1.0"),
    			ConfigVersionDesc: pulumi.String("1.0"),
    			EncodeWithBase64:  pulumi.Bool(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 applicationFileConfig = new Tencentcloud.TsfApplicationFileConfig("applicationFileConfig", new()
        {
            ApplicationId = "application-a24x29xv",
            ConfigFileCode = "UTF-8",
            ConfigFileName = "application.yaml",
            ConfigFilePath = "/etc/nginx",
            ConfigFileValue = "test: 1",
            ConfigName = "terraform-test",
            ConfigPostCmd = "source .bashrc",
            ConfigVersion = "1.0",
            ConfigVersionDesc = "1.0",
            EncodeWithBase64 = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TsfApplicationFileConfig;
    import com.pulumi.tencentcloud.TsfApplicationFileConfigArgs;
    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 applicationFileConfig = new TsfApplicationFileConfig("applicationFileConfig", TsfApplicationFileConfigArgs.builder()
                .applicationId("application-a24x29xv")
                .configFileCode("UTF-8")
                .configFileName("application.yaml")
                .configFilePath("/etc/nginx")
                .configFileValue("test: 1")
                .configName("terraform-test")
                .configPostCmd("source .bashrc")
                .configVersion("1.0")
                .configVersionDesc("1.0")
                .encodeWithBase64(true)
                .build());
    
        }
    }
    
    resources:
      applicationFileConfig:
        type: tencentcloud:TsfApplicationFileConfig
        properties:
          applicationId: application-a24x29xv
          configFileCode: UTF-8
          configFileName: application.yaml
          configFilePath: /etc/nginx
          configFileValue: 'test: 1'
          configName: terraform-test
          configPostCmd: source .bashrc
          configVersion: '1.0'
          configVersionDesc: '1.0'
          encodeWithBase64: true
    

    Create TsfApplicationFileConfig Resource

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

    Constructor syntax

    new TsfApplicationFileConfig(name: string, args: TsfApplicationFileConfigArgs, opts?: CustomResourceOptions);
    @overload
    def TsfApplicationFileConfig(resource_name: str,
                                 args: TsfApplicationFileConfigArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def TsfApplicationFileConfig(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 application_id: Optional[str] = None,
                                 config_file_name: Optional[str] = None,
                                 config_file_path: Optional[str] = None,
                                 config_file_value: Optional[str] = None,
                                 config_name: Optional[str] = None,
                                 config_version: Optional[str] = None,
                                 config_file_code: Optional[str] = None,
                                 config_post_cmd: Optional[str] = None,
                                 config_version_desc: Optional[str] = None,
                                 encode_with_base64: Optional[bool] = None,
                                 program_id_lists: Optional[Sequence[str]] = None,
                                 tsf_application_file_config_id: Optional[str] = None)
    func NewTsfApplicationFileConfig(ctx *Context, name string, args TsfApplicationFileConfigArgs, opts ...ResourceOption) (*TsfApplicationFileConfig, error)
    public TsfApplicationFileConfig(string name, TsfApplicationFileConfigArgs args, CustomResourceOptions? opts = null)
    public TsfApplicationFileConfig(String name, TsfApplicationFileConfigArgs args)
    public TsfApplicationFileConfig(String name, TsfApplicationFileConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TsfApplicationFileConfig
    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 TsfApplicationFileConfigArgs
    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 TsfApplicationFileConfigArgs
    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 TsfApplicationFileConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TsfApplicationFileConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TsfApplicationFileConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ApplicationId string
    Config file associated application ID.
    ConfigFileName string
    Config file name.
    ConfigFilePath string
    config release path.
    ConfigFileValue string
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    ConfigName string
    Config Name.
    ConfigVersion string
    Config version.
    ConfigFileCode string
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    ConfigPostCmd string
    post command.
    ConfigVersionDesc string
    config version description.
    EncodeWithBase64 bool
    the config value is encoded with base64 or not.
    ProgramIdLists List<string>
    datasource for auth.
    TsfApplicationFileConfigId string
    ID of the resource.
    ApplicationId string
    Config file associated application ID.
    ConfigFileName string
    Config file name.
    ConfigFilePath string
    config release path.
    ConfigFileValue string
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    ConfigName string
    Config Name.
    ConfigVersion string
    Config version.
    ConfigFileCode string
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    ConfigPostCmd string
    post command.
    ConfigVersionDesc string
    config version description.
    EncodeWithBase64 bool
    the config value is encoded with base64 or not.
    ProgramIdLists []string
    datasource for auth.
    TsfApplicationFileConfigId string
    ID of the resource.
    applicationId String
    Config file associated application ID.
    configFileName String
    Config file name.
    configFilePath String
    config release path.
    configFileValue String
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    configName String
    Config Name.
    configVersion String
    Config version.
    configFileCode String
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    configPostCmd String
    post command.
    configVersionDesc String
    config version description.
    encodeWithBase64 Boolean
    the config value is encoded with base64 or not.
    programIdLists List<String>
    datasource for auth.
    tsfApplicationFileConfigId String
    ID of the resource.
    applicationId string
    Config file associated application ID.
    configFileName string
    Config file name.
    configFilePath string
    config release path.
    configFileValue string
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    configName string
    Config Name.
    configVersion string
    Config version.
    configFileCode string
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    configPostCmd string
    post command.
    configVersionDesc string
    config version description.
    encodeWithBase64 boolean
    the config value is encoded with base64 or not.
    programIdLists string[]
    datasource for auth.
    tsfApplicationFileConfigId string
    ID of the resource.
    application_id str
    Config file associated application ID.
    config_file_name str
    Config file name.
    config_file_path str
    config release path.
    config_file_value str
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    config_name str
    Config Name.
    config_version str
    Config version.
    config_file_code str
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    config_post_cmd str
    post command.
    config_version_desc str
    config version description.
    encode_with_base64 bool
    the config value is encoded with base64 or not.
    program_id_lists Sequence[str]
    datasource for auth.
    tsf_application_file_config_id str
    ID of the resource.
    applicationId String
    Config file associated application ID.
    configFileName String
    Config file name.
    configFilePath String
    config release path.
    configFileValue String
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    configName String
    Config Name.
    configVersion String
    Config version.
    configFileCode String
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    configPostCmd String
    post command.
    configVersionDesc String
    config version description.
    encodeWithBase64 Boolean
    the config value is encoded with base64 or not.
    programIdLists List<String>
    datasource for auth.
    tsfApplicationFileConfigId String
    ID of the resource.

    Outputs

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

    Get an existing TsfApplicationFileConfig 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?: TsfApplicationFileConfigState, opts?: CustomResourceOptions): TsfApplicationFileConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_id: Optional[str] = None,
            config_file_code: Optional[str] = None,
            config_file_name: Optional[str] = None,
            config_file_path: Optional[str] = None,
            config_file_value: Optional[str] = None,
            config_name: Optional[str] = None,
            config_post_cmd: Optional[str] = None,
            config_version: Optional[str] = None,
            config_version_desc: Optional[str] = None,
            encode_with_base64: Optional[bool] = None,
            program_id_lists: Optional[Sequence[str]] = None,
            tsf_application_file_config_id: Optional[str] = None) -> TsfApplicationFileConfig
    func GetTsfApplicationFileConfig(ctx *Context, name string, id IDInput, state *TsfApplicationFileConfigState, opts ...ResourceOption) (*TsfApplicationFileConfig, error)
    public static TsfApplicationFileConfig Get(string name, Input<string> id, TsfApplicationFileConfigState? state, CustomResourceOptions? opts = null)
    public static TsfApplicationFileConfig get(String name, Output<String> id, TsfApplicationFileConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TsfApplicationFileConfig    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:
    ApplicationId string
    Config file associated application ID.
    ConfigFileCode string
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    ConfigFileName string
    Config file name.
    ConfigFilePath string
    config release path.
    ConfigFileValue string
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    ConfigName string
    Config Name.
    ConfigPostCmd string
    post command.
    ConfigVersion string
    Config version.
    ConfigVersionDesc string
    config version description.
    EncodeWithBase64 bool
    the config value is encoded with base64 or not.
    ProgramIdLists List<string>
    datasource for auth.
    TsfApplicationFileConfigId string
    ID of the resource.
    ApplicationId string
    Config file associated application ID.
    ConfigFileCode string
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    ConfigFileName string
    Config file name.
    ConfigFilePath string
    config release path.
    ConfigFileValue string
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    ConfigName string
    Config Name.
    ConfigPostCmd string
    post command.
    ConfigVersion string
    Config version.
    ConfigVersionDesc string
    config version description.
    EncodeWithBase64 bool
    the config value is encoded with base64 or not.
    ProgramIdLists []string
    datasource for auth.
    TsfApplicationFileConfigId string
    ID of the resource.
    applicationId String
    Config file associated application ID.
    configFileCode String
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    configFileName String
    Config file name.
    configFilePath String
    config release path.
    configFileValue String
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    configName String
    Config Name.
    configPostCmd String
    post command.
    configVersion String
    Config version.
    configVersionDesc String
    config version description.
    encodeWithBase64 Boolean
    the config value is encoded with base64 or not.
    programIdLists List<String>
    datasource for auth.
    tsfApplicationFileConfigId String
    ID of the resource.
    applicationId string
    Config file associated application ID.
    configFileCode string
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    configFileName string
    Config file name.
    configFilePath string
    config release path.
    configFileValue string
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    configName string
    Config Name.
    configPostCmd string
    post command.
    configVersion string
    Config version.
    configVersionDesc string
    config version description.
    encodeWithBase64 boolean
    the config value is encoded with base64 or not.
    programIdLists string[]
    datasource for auth.
    tsfApplicationFileConfigId string
    ID of the resource.
    application_id str
    Config file associated application ID.
    config_file_code str
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    config_file_name str
    Config file name.
    config_file_path str
    config release path.
    config_file_value str
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    config_name str
    Config Name.
    config_post_cmd str
    post command.
    config_version str
    Config version.
    config_version_desc str
    config version description.
    encode_with_base64 bool
    the config value is encoded with base64 or not.
    program_id_lists Sequence[str]
    datasource for auth.
    tsf_application_file_config_id str
    ID of the resource.
    applicationId String
    Config file associated application ID.
    configFileCode String
    Configuration file encoding, utf-8 or gbk. Note: If you choose gbk, you need the support of a new version of tsf-consul-template (public cloud virtual machines need to use 1.32 tsf-agent, and containers need to obtain the latest tsf-consul-template-docker.tar.gz from the documentation).
    configFileName String
    Config file name.
    configFilePath String
    config release path.
    configFileValue String
    Configuration file content (the original content encoding needs to be in utf-8 format, if the ConfigFileCode is gbk, it will be converted in the background).
    configName String
    Config Name.
    configPostCmd String
    post command.
    configVersion String
    Config version.
    configVersionDesc String
    config version description.
    encodeWithBase64 Boolean
    the config value is encoded with base64 or not.
    programIdLists List<String>
    datasource for auth.
    tsfApplicationFileConfigId String
    ID of the resource.

    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