tencentcloud.TsfApplicationFileConfig
Explore with Pulumi AI
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:
- Application
Id string - Config file associated application ID.
- Config
File stringName - Config file name.
- Config
File stringPath - config release path.
- Config
File stringValue - 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 string - Config Name.
- Config
Version string - Config version.
- Config
File stringCode - 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 stringCmd - post command.
- Config
Version stringDesc - config version description.
- Encode
With boolBase64 - the config value is encoded with base64 or not.
- Program
Id List<string>Lists - datasource for auth.
- Tsf
Application stringFile Config Id - ID of the resource.
- Application
Id string - Config file associated application ID.
- Config
File stringName - Config file name.
- Config
File stringPath - config release path.
- Config
File stringValue - 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 string - Config Name.
- Config
Version string - Config version.
- Config
File stringCode - 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 stringCmd - post command.
- Config
Version stringDesc - config version description.
- Encode
With boolBase64 - the config value is encoded with base64 or not.
- Program
Id []stringLists - datasource for auth.
- Tsf
Application stringFile Config Id - ID of the resource.
- application
Id String - Config file associated application ID.
- config
File StringName - Config file name.
- config
File StringPath - config release path.
- config
File StringValue - 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 String - Config Name.
- config
Version String - Config version.
- config
File StringCode - 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 StringCmd - post command.
- config
Version StringDesc - config version description.
- encode
With BooleanBase64 - the config value is encoded with base64 or not.
- program
Id List<String>Lists - datasource for auth.
- tsf
Application StringFile Config Id - ID of the resource.
- application
Id string - Config file associated application ID.
- config
File stringName - Config file name.
- config
File stringPath - config release path.
- config
File stringValue - 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 string - Config Name.
- config
Version string - Config version.
- config
File stringCode - 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 stringCmd - post command.
- config
Version stringDesc - config version description.
- encode
With booleanBase64 - the config value is encoded with base64 or not.
- program
Id string[]Lists - datasource for auth.
- tsf
Application stringFile Config Id - ID of the resource.
- application_
id str - Config file associated application ID.
- config_
file_ strname - Config file name.
- config_
file_ strpath - config release path.
- config_
file_ strvalue - 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_ strcode - 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_ strcmd - post command.
- config_
version_ strdesc - config version description.
- encode_
with_ boolbase64 - the config value is encoded with base64 or not.
- program_
id_ Sequence[str]lists - datasource for auth.
- tsf_
application_ strfile_ config_ id - ID of the resource.
- application
Id String - Config file associated application ID.
- config
File StringName - Config file name.
- config
File StringPath - config release path.
- config
File StringValue - 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 String - Config Name.
- config
Version String - Config version.
- config
File StringCode - 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 StringCmd - post command.
- config
Version StringDesc - config version description.
- encode
With BooleanBase64 - the config value is encoded with base64 or not.
- program
Id List<String>Lists - datasource for auth.
- tsf
Application StringFile Config Id - 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.
- Application
Id string - Config file associated application ID.
- Config
File stringCode - 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 stringName - Config file name.
- Config
File stringPath - config release path.
- Config
File stringValue - 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 string - Config Name.
- Config
Post stringCmd - post command.
- Config
Version string - Config version.
- Config
Version stringDesc - config version description.
- Encode
With boolBase64 - the config value is encoded with base64 or not.
- Program
Id List<string>Lists - datasource for auth.
- Tsf
Application stringFile Config Id - ID of the resource.
- Application
Id string - Config file associated application ID.
- Config
File stringCode - 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 stringName - Config file name.
- Config
File stringPath - config release path.
- Config
File stringValue - 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 string - Config Name.
- Config
Post stringCmd - post command.
- Config
Version string - Config version.
- Config
Version stringDesc - config version description.
- Encode
With boolBase64 - the config value is encoded with base64 or not.
- Program
Id []stringLists - datasource for auth.
- Tsf
Application stringFile Config Id - ID of the resource.
- application
Id String - Config file associated application ID.
- config
File StringCode - 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 StringName - Config file name.
- config
File StringPath - config release path.
- config
File StringValue - 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 String - Config Name.
- config
Post StringCmd - post command.
- config
Version String - Config version.
- config
Version StringDesc - config version description.
- encode
With BooleanBase64 - the config value is encoded with base64 or not.
- program
Id List<String>Lists - datasource for auth.
- tsf
Application StringFile Config Id - ID of the resource.
- application
Id string - Config file associated application ID.
- config
File stringCode - 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 stringName - Config file name.
- config
File stringPath - config release path.
- config
File stringValue - 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 string - Config Name.
- config
Post stringCmd - post command.
- config
Version string - Config version.
- config
Version stringDesc - config version description.
- encode
With booleanBase64 - the config value is encoded with base64 or not.
- program
Id string[]Lists - datasource for auth.
- tsf
Application stringFile Config Id - ID of the resource.
- application_
id str - Config file associated application ID.
- config_
file_ strcode - 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_ strname - Config file name.
- config_
file_ strpath - config release path.
- config_
file_ strvalue - 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_ strcmd - post command.
- config_
version str - Config version.
- config_
version_ strdesc - config version description.
- encode_
with_ boolbase64 - the config value is encoded with base64 or not.
- program_
id_ Sequence[str]lists - datasource for auth.
- tsf_
application_ strfile_ config_ id - ID of the resource.
- application
Id String - Config file associated application ID.
- config
File StringCode - 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 StringName - Config file name.
- config
File StringPath - config release path.
- config
File StringValue - 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 String - Config Name.
- config
Post StringCmd - post command.
- config
Version String - Config version.
- config
Version StringDesc - config version description.
- encode
With BooleanBase64 - the config value is encoded with base64 or not.
- program
Id List<String>Lists - datasource for auth.
- tsf
Application StringFile Config Id - ID of the resource.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.