1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TemEnvironment
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.TemEnvironment

Explore with Pulumi AI

Provides a resource to create a tem environment

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const environment = new tencentcloud.TemEnvironment("environment", {
    description: "demo for test",
    environmentName: "demo",
    subnetIds: [
        "subnet-rdkj0agk",
        "subnet-r1c4pn5m",
        "subnet-02hcj95c",
    ],
    tags: {
        created: "terraform",
    },
    vpc: "vpc-2hfyray3",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

environment = tencentcloud.TemEnvironment("environment",
    description="demo for test",
    environment_name="demo",
    subnet_ids=[
        "subnet-rdkj0agk",
        "subnet-r1c4pn5m",
        "subnet-02hcj95c",
    ],
    tags={
        "created": "terraform",
    },
    vpc="vpc-2hfyray3")
Copy
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.NewTemEnvironment(ctx, "environment", &tencentcloud.TemEnvironmentArgs{
			Description:     pulumi.String("demo for test"),
			EnvironmentName: pulumi.String("demo"),
			SubnetIds: pulumi.StringArray{
				pulumi.String("subnet-rdkj0agk"),
				pulumi.String("subnet-r1c4pn5m"),
				pulumi.String("subnet-02hcj95c"),
			},
			Tags: pulumi.StringMap{
				"created": pulumi.String("terraform"),
			},
			Vpc: pulumi.String("vpc-2hfyray3"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var environment = new Tencentcloud.TemEnvironment("environment", new()
    {
        Description = "demo for test",
        EnvironmentName = "demo",
        SubnetIds = new[]
        {
            "subnet-rdkj0agk",
            "subnet-r1c4pn5m",
            "subnet-02hcj95c",
        },
        Tags = 
        {
            { "created", "terraform" },
        },
        Vpc = "vpc-2hfyray3",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TemEnvironment;
import com.pulumi.tencentcloud.TemEnvironmentArgs;
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 environment = new TemEnvironment("environment", TemEnvironmentArgs.builder()
            .description("demo for test")
            .environmentName("demo")
            .subnetIds(            
                "subnet-rdkj0agk",
                "subnet-r1c4pn5m",
                "subnet-02hcj95c")
            .tags(Map.of("created", "terraform"))
            .vpc("vpc-2hfyray3")
            .build());

    }
}
Copy
resources:
  environment:
    type: tencentcloud:TemEnvironment
    properties:
      description: demo for test
      environmentName: demo
      subnetIds:
        - subnet-rdkj0agk
        - subnet-r1c4pn5m
        - subnet-02hcj95c
      tags:
        created: terraform
      vpc: vpc-2hfyray3
Copy

Create TemEnvironment Resource

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

Constructor syntax

new TemEnvironment(name: string, args: TemEnvironmentArgs, opts?: CustomResourceOptions);
@overload
def TemEnvironment(resource_name: str,
                   args: TemEnvironmentArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def TemEnvironment(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   environment_name: Optional[str] = None,
                   subnet_ids: Optional[Sequence[str]] = None,
                   vpc: Optional[str] = None,
                   description: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   tem_environment_id: Optional[str] = None)
func NewTemEnvironment(ctx *Context, name string, args TemEnvironmentArgs, opts ...ResourceOption) (*TemEnvironment, error)
public TemEnvironment(string name, TemEnvironmentArgs args, CustomResourceOptions? opts = null)
public TemEnvironment(String name, TemEnvironmentArgs args)
public TemEnvironment(String name, TemEnvironmentArgs args, CustomResourceOptions options)
type: tencentcloud:TemEnvironment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TemEnvironmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TemEnvironmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TemEnvironmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TemEnvironmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TemEnvironmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

EnvironmentName This property is required. string
environment name.
SubnetIds This property is required. List<string>
subnet IDs.
Vpc This property is required. string
vpc ID.
Description string
environment description.
Tags Dictionary<string, string>
environment tag list.
TemEnvironmentId string
ID of the resource.
EnvironmentName This property is required. string
environment name.
SubnetIds This property is required. []string
subnet IDs.
Vpc This property is required. string
vpc ID.
Description string
environment description.
Tags map[string]string
environment tag list.
TemEnvironmentId string
ID of the resource.
environmentName This property is required. String
environment name.
subnetIds This property is required. List<String>
subnet IDs.
vpc This property is required. String
vpc ID.
description String
environment description.
tags Map<String,String>
environment tag list.
temEnvironmentId String
ID of the resource.
environmentName This property is required. string
environment name.
subnetIds This property is required. string[]
subnet IDs.
vpc This property is required. string
vpc ID.
description string
environment description.
tags {[key: string]: string}
environment tag list.
temEnvironmentId string
ID of the resource.
environment_name This property is required. str
environment name.
subnet_ids This property is required. Sequence[str]
subnet IDs.
vpc This property is required. str
vpc ID.
description str
environment description.
tags Mapping[str, str]
environment tag list.
tem_environment_id str
ID of the resource.
environmentName This property is required. String
environment name.
subnetIds This property is required. List<String>
subnet IDs.
vpc This property is required. String
vpc ID.
description String
environment description.
tags Map<String>
environment tag list.
temEnvironmentId String
ID of the resource.

Outputs

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

Get an existing TemEnvironment 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?: TemEnvironmentState, opts?: CustomResourceOptions): TemEnvironment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        environment_name: Optional[str] = None,
        subnet_ids: Optional[Sequence[str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tem_environment_id: Optional[str] = None,
        vpc: Optional[str] = None) -> TemEnvironment
func GetTemEnvironment(ctx *Context, name string, id IDInput, state *TemEnvironmentState, opts ...ResourceOption) (*TemEnvironment, error)
public static TemEnvironment Get(string name, Input<string> id, TemEnvironmentState? state, CustomResourceOptions? opts = null)
public static TemEnvironment get(String name, Output<String> id, TemEnvironmentState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:TemEnvironment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Description string
environment description.
EnvironmentName string
environment name.
SubnetIds List<string>
subnet IDs.
Tags Dictionary<string, string>
environment tag list.
TemEnvironmentId string
ID of the resource.
Vpc string
vpc ID.
Description string
environment description.
EnvironmentName string
environment name.
SubnetIds []string
subnet IDs.
Tags map[string]string
environment tag list.
TemEnvironmentId string
ID of the resource.
Vpc string
vpc ID.
description String
environment description.
environmentName String
environment name.
subnetIds List<String>
subnet IDs.
tags Map<String,String>
environment tag list.
temEnvironmentId String
ID of the resource.
vpc String
vpc ID.
description string
environment description.
environmentName string
environment name.
subnetIds string[]
subnet IDs.
tags {[key: string]: string}
environment tag list.
temEnvironmentId string
ID of the resource.
vpc string
vpc ID.
description str
environment description.
environment_name str
environment name.
subnet_ids Sequence[str]
subnet IDs.
tags Mapping[str, str]
environment tag list.
tem_environment_id str
ID of the resource.
vpc str
vpc ID.
description String
environment description.
environmentName String
environment name.
subnetIds List<String>
subnet IDs.
tags Map<String>
environment tag list.
temEnvironmentId String
ID of the resource.
vpc String
vpc ID.

Import

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

$ pulumi import tencentcloud:index/temEnvironment:TemEnvironment environment environment_id
Copy

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.