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

tencentcloud.TemAppConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tem appConfig

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const appConfig = new tencentcloud.TemAppConfig("appConfig", {
        configDatas: [
            {
                key: "key",
                value: "value",
            },
            {
                key: "key1",
                value: "value1",
            },
        ],
        environmentId: "en-o5edaepv",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    app_config = tencentcloud.TemAppConfig("appConfig",
        config_datas=[
            {
                "key": "key",
                "value": "value",
            },
            {
                "key": "key1",
                "value": "value1",
            },
        ],
        environment_id="en-o5edaepv")
    
    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.NewTemAppConfig(ctx, "appConfig", &tencentcloud.TemAppConfigArgs{
    			ConfigDatas: tencentcloud.TemAppConfigConfigDataArray{
    				&tencentcloud.TemAppConfigConfigDataArgs{
    					Key:   pulumi.String("key"),
    					Value: pulumi.String("value"),
    				},
    				&tencentcloud.TemAppConfigConfigDataArgs{
    					Key:   pulumi.String("key1"),
    					Value: pulumi.String("value1"),
    				},
    			},
    			EnvironmentId: pulumi.String("en-o5edaepv"),
    		})
    		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 appConfig = new Tencentcloud.TemAppConfig("appConfig", new()
        {
            ConfigDatas = new[]
            {
                new Tencentcloud.Inputs.TemAppConfigConfigDataArgs
                {
                    Key = "key",
                    Value = "value",
                },
                new Tencentcloud.Inputs.TemAppConfigConfigDataArgs
                {
                    Key = "key1",
                    Value = "value1",
                },
            },
            EnvironmentId = "en-o5edaepv",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TemAppConfig;
    import com.pulumi.tencentcloud.TemAppConfigArgs;
    import com.pulumi.tencentcloud.inputs.TemAppConfigConfigDataArgs;
    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 appConfig = new TemAppConfig("appConfig", TemAppConfigArgs.builder()
                .configDatas(            
                    TemAppConfigConfigDataArgs.builder()
                        .key("key")
                        .value("value")
                        .build(),
                    TemAppConfigConfigDataArgs.builder()
                        .key("key1")
                        .value("value1")
                        .build())
                .environmentId("en-o5edaepv")
                .build());
    
        }
    }
    
    resources:
      appConfig:
        type: tencentcloud:TemAppConfig
        properties:
          configDatas:
            - key: key
              value: value
            - key: key1
              value: value1
          environmentId: en-o5edaepv
    

    Create TemAppConfig Resource

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

    Constructor syntax

    new TemAppConfig(name: string, args: TemAppConfigArgs, opts?: CustomResourceOptions);
    @overload
    def TemAppConfig(resource_name: str,
                     args: TemAppConfigArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TemAppConfig(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     config_datas: Optional[Sequence[TemAppConfigConfigDataArgs]] = None,
                     environment_id: Optional[str] = None,
                     name: Optional[str] = None,
                     tem_app_config_id: Optional[str] = None)
    func NewTemAppConfig(ctx *Context, name string, args TemAppConfigArgs, opts ...ResourceOption) (*TemAppConfig, error)
    public TemAppConfig(string name, TemAppConfigArgs args, CustomResourceOptions? opts = null)
    public TemAppConfig(String name, TemAppConfigArgs args)
    public TemAppConfig(String name, TemAppConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TemAppConfig
    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 TemAppConfigArgs
    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 TemAppConfigArgs
    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 TemAppConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemAppConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemAppConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ConfigDatas List<TemAppConfigConfigData>
    payload.
    EnvironmentId string
    environment ID.
    Name string
    appConfig name.
    TemAppConfigId string
    ID of the resource.
    ConfigDatas []TemAppConfigConfigDataArgs
    payload.
    EnvironmentId string
    environment ID.
    Name string
    appConfig name.
    TemAppConfigId string
    ID of the resource.
    configDatas List<TemAppConfigConfigData>
    payload.
    environmentId String
    environment ID.
    name String
    appConfig name.
    temAppConfigId String
    ID of the resource.
    configDatas TemAppConfigConfigData[]
    payload.
    environmentId string
    environment ID.
    name string
    appConfig name.
    temAppConfigId string
    ID of the resource.
    config_datas Sequence[TemAppConfigConfigDataArgs]
    payload.
    environment_id str
    environment ID.
    name str
    appConfig name.
    tem_app_config_id str
    ID of the resource.
    configDatas List<Property Map>
    payload.
    environmentId String
    environment ID.
    name String
    appConfig name.
    temAppConfigId String
    ID of the resource.

    Outputs

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

    Get an existing TemAppConfig 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?: TemAppConfigState, opts?: CustomResourceOptions): TemAppConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config_datas: Optional[Sequence[TemAppConfigConfigDataArgs]] = None,
            environment_id: Optional[str] = None,
            name: Optional[str] = None,
            tem_app_config_id: Optional[str] = None) -> TemAppConfig
    func GetTemAppConfig(ctx *Context, name string, id IDInput, state *TemAppConfigState, opts ...ResourceOption) (*TemAppConfig, error)
    public static TemAppConfig Get(string name, Input<string> id, TemAppConfigState? state, CustomResourceOptions? opts = null)
    public static TemAppConfig get(String name, Output<String> id, TemAppConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TemAppConfig    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:
    ConfigDatas List<TemAppConfigConfigData>
    payload.
    EnvironmentId string
    environment ID.
    Name string
    appConfig name.
    TemAppConfigId string
    ID of the resource.
    ConfigDatas []TemAppConfigConfigDataArgs
    payload.
    EnvironmentId string
    environment ID.
    Name string
    appConfig name.
    TemAppConfigId string
    ID of the resource.
    configDatas List<TemAppConfigConfigData>
    payload.
    environmentId String
    environment ID.
    name String
    appConfig name.
    temAppConfigId String
    ID of the resource.
    configDatas TemAppConfigConfigData[]
    payload.
    environmentId string
    environment ID.
    name string
    appConfig name.
    temAppConfigId string
    ID of the resource.
    config_datas Sequence[TemAppConfigConfigDataArgs]
    payload.
    environment_id str
    environment ID.
    name str
    appConfig name.
    tem_app_config_id str
    ID of the resource.
    configDatas List<Property Map>
    payload.
    environmentId String
    environment ID.
    name String
    appConfig name.
    temAppConfigId String
    ID of the resource.

    Supporting Types

    TemAppConfigConfigData, TemAppConfigConfigDataArgs

    Key string
    key.
    Value string
    value.
    Key string
    key.
    Value string
    value.
    key String
    key.
    value String
    value.
    key string
    key.
    value string
    value.
    key str
    key.
    value str
    value.
    key String
    key.
    value String
    value.

    Import

    tem appConfig can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/temAppConfig:TemAppConfig appConfig environmentId#name
    

    To learn more about importing existing cloud resources, see Importing resources.

    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