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

tencentcloud.TsfApplicationPublicConfig

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_public_config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const applicationPublicConfig = new tencentcloud.TsfApplicationPublicConfig("applicationPublicConfig", {
        configName: "my_config",
        configType: "P",
        configValue: "test: 1",
        configVersion: "1.0",
        configVersionDesc: "product version",
        encodeWithBase64: true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    application_public_config = tencentcloud.TsfApplicationPublicConfig("applicationPublicConfig",
        config_name="my_config",
        config_type="P",
        config_value="test: 1",
        config_version="1.0",
        config_version_desc="product version",
        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.NewTsfApplicationPublicConfig(ctx, "applicationPublicConfig", &tencentcloud.TsfApplicationPublicConfigArgs{
    			ConfigName:        pulumi.String("my_config"),
    			ConfigType:        pulumi.String("P"),
    			ConfigValue:       pulumi.String("test: 1"),
    			ConfigVersion:     pulumi.String("1.0"),
    			ConfigVersionDesc: pulumi.String("product version"),
    			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 applicationPublicConfig = new Tencentcloud.TsfApplicationPublicConfig("applicationPublicConfig", new()
        {
            ConfigName = "my_config",
            ConfigType = "P",
            ConfigValue = "test: 1",
            ConfigVersion = "1.0",
            ConfigVersionDesc = "product version",
            EncodeWithBase64 = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TsfApplicationPublicConfig;
    import com.pulumi.tencentcloud.TsfApplicationPublicConfigArgs;
    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 applicationPublicConfig = new TsfApplicationPublicConfig("applicationPublicConfig", TsfApplicationPublicConfigArgs.builder()
                .configName("my_config")
                .configType("P")
                .configValue("test: 1")
                .configVersion("1.0")
                .configVersionDesc("product version")
                .encodeWithBase64(true)
                .build());
    
        }
    }
    
    resources:
      applicationPublicConfig:
        type: tencentcloud:TsfApplicationPublicConfig
        properties:
          configName: my_config
          configType: P
          configValue: 'test: 1'
          configVersion: '1.0'
          configVersionDesc: product version
          encodeWithBase64: true
    

    Create TsfApplicationPublicConfig Resource

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

    Constructor syntax

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

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

    ConfigName string
    Config Name.
    ConfigValue string
    config value, only yaml file allowed.
    ConfigVersion string
    config version.
    ConfigType string
    Config type.
    ConfigVersionDesc string
    Config version description.
    EncodeWithBase64 bool
    the config value is encoded with base64 or not.
    ProgramIdLists List<string>
    datasource for auth.
    TsfApplicationPublicConfigId string
    ID of the resource.
    ConfigName string
    Config Name.
    ConfigValue string
    config value, only yaml file allowed.
    ConfigVersion string
    config version.
    ConfigType string
    Config type.
    ConfigVersionDesc string
    Config version description.
    EncodeWithBase64 bool
    the config value is encoded with base64 or not.
    ProgramIdLists []string
    datasource for auth.
    TsfApplicationPublicConfigId string
    ID of the resource.
    configName String
    Config Name.
    configValue String
    config value, only yaml file allowed.
    configVersion String
    config version.
    configType String
    Config type.
    configVersionDesc String
    Config version description.
    encodeWithBase64 Boolean
    the config value is encoded with base64 or not.
    programIdLists List<String>
    datasource for auth.
    tsfApplicationPublicConfigId String
    ID of the resource.
    configName string
    Config Name.
    configValue string
    config value, only yaml file allowed.
    configVersion string
    config version.
    configType string
    Config type.
    configVersionDesc string
    Config version description.
    encodeWithBase64 boolean
    the config value is encoded with base64 or not.
    programIdLists string[]
    datasource for auth.
    tsfApplicationPublicConfigId string
    ID of the resource.
    config_name str
    Config Name.
    config_value str
    config value, only yaml file allowed.
    config_version str
    config version.
    config_type str
    Config type.
    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_public_config_id str
    ID of the resource.
    configName String
    Config Name.
    configValue String
    config value, only yaml file allowed.
    configVersion String
    config version.
    configType String
    Config type.
    configVersionDesc String
    Config version description.
    encodeWithBase64 Boolean
    the config value is encoded with base64 or not.
    programIdLists List<String>
    datasource for auth.
    tsfApplicationPublicConfigId String
    ID of the resource.

    Outputs

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

    Get an existing TsfApplicationPublicConfig 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?: TsfApplicationPublicConfigState, opts?: CustomResourceOptions): TsfApplicationPublicConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config_name: Optional[str] = None,
            config_type: Optional[str] = None,
            config_value: 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_public_config_id: Optional[str] = None) -> TsfApplicationPublicConfig
    func GetTsfApplicationPublicConfig(ctx *Context, name string, id IDInput, state *TsfApplicationPublicConfigState, opts ...ResourceOption) (*TsfApplicationPublicConfig, error)
    public static TsfApplicationPublicConfig Get(string name, Input<string> id, TsfApplicationPublicConfigState? state, CustomResourceOptions? opts = null)
    public static TsfApplicationPublicConfig get(String name, Output<String> id, TsfApplicationPublicConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TsfApplicationPublicConfig    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:
    ConfigName string
    Config Name.
    ConfigType string
    Config type.
    ConfigValue string
    config value, only yaml file allowed.
    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.
    TsfApplicationPublicConfigId string
    ID of the resource.
    ConfigName string
    Config Name.
    ConfigType string
    Config type.
    ConfigValue string
    config value, only yaml file allowed.
    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.
    TsfApplicationPublicConfigId string
    ID of the resource.
    configName String
    Config Name.
    configType String
    Config type.
    configValue String
    config value, only yaml file allowed.
    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.
    tsfApplicationPublicConfigId String
    ID of the resource.
    configName string
    Config Name.
    configType string
    Config type.
    configValue string
    config value, only yaml file allowed.
    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.
    tsfApplicationPublicConfigId string
    ID of the resource.
    config_name str
    Config Name.
    config_type str
    Config type.
    config_value str
    config value, only yaml file allowed.
    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_public_config_id str
    ID of the resource.
    configName String
    Config Name.
    configType String
    Config type.
    configValue String
    config value, only yaml file allowed.
    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.
    tsfApplicationPublicConfigId 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