tencentcloud.TsfApplicationPublicConfig
Explore with Pulumi AI
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:
- Config
Name string - Config Name.
- Config
Value string - config value, only yaml file allowed.
- Config
Version string - config version.
- Config
Type string - Config type.
- 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 stringPublic Config Id - ID of the resource.
- Config
Name string - Config Name.
- Config
Value string - config value, only yaml file allowed.
- Config
Version string - config version.
- Config
Type string - Config type.
- 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 stringPublic Config Id - ID of the resource.
- config
Name String - Config Name.
- config
Value String - config value, only yaml file allowed.
- config
Version String - config version.
- config
Type String - Config type.
- 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 StringPublic Config Id - ID of the resource.
- config
Name string - Config Name.
- config
Value string - config value, only yaml file allowed.
- config
Version string - config version.
- config
Type string - Config type.
- 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 stringPublic Config Id - 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_ 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_ strpublic_ config_ id - ID of the resource.
- config
Name String - Config Name.
- config
Value String - config value, only yaml file allowed.
- config
Version String - config version.
- config
Type String - Config type.
- 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 StringPublic Config Id - 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.
- Config
Name string - Config Name.
- Config
Type string - Config type.
- Config
Value string - config value, only yaml file allowed.
- 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 stringPublic Config Id - ID of the resource.
- Config
Name string - Config Name.
- Config
Type string - Config type.
- Config
Value string - config value, only yaml file allowed.
- 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 stringPublic Config Id - ID of the resource.
- config
Name String - Config Name.
- config
Type String - Config type.
- config
Value String - config value, only yaml file allowed.
- 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 StringPublic Config Id - ID of the resource.
- config
Name string - Config Name.
- config
Type string - Config type.
- config
Value string - config value, only yaml file allowed.
- 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 stringPublic Config Id - 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_ 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_ strpublic_ config_ id - ID of the resource.
- config
Name String - Config Name.
- config
Type String - Config type.
- config
Value String - config value, only yaml file allowed.
- 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 StringPublic 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.