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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args TemEnvironmentArgs
- 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 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 string
- The unique name of the resource.
- args TemEnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemEnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Environment
Name string - environment name.
- Subnet
Ids List<string> - subnet IDs.
- Vpc string
- vpc ID.
- Description string
- environment description.
- Dictionary<string, string>
- environment tag list.
- Tem
Environment stringId - ID of the resource.
- Environment
Name string - environment name.
- Subnet
Ids []string - subnet IDs.
- Vpc string
- vpc ID.
- Description string
- environment description.
- map[string]string
- environment tag list.
- Tem
Environment stringId - ID of the resource.
- environment
Name String - environment name.
- subnet
Ids List<String> - subnet IDs.
- vpc String
- vpc ID.
- description String
- environment description.
- Map<String,String>
- environment tag list.
- tem
Environment StringId - ID of the resource.
- environment
Name string - environment name.
- subnet
Ids string[] - subnet IDs.
- vpc string
- vpc ID.
- description string
- environment description.
- {[key: string]: string}
- environment tag list.
- tem
Environment stringId - ID of the resource.
- environment_
name str - environment name.
- subnet_
ids Sequence[str] - subnet IDs.
- vpc str
- vpc ID.
- description str
- environment description.
- Mapping[str, str]
- environment tag list.
- tem_
environment_ strid - ID of the resource.
- environment
Name String - environment name.
- subnet
Ids List<String> - subnet IDs.
- vpc String
- vpc ID.
- description String
- environment description.
- Map<String>
- environment tag list.
- tem
Environment StringId - 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
- 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.
- Description string
- environment description.
- Environment
Name string - environment name.
- Subnet
Ids List<string> - subnet IDs.
- Dictionary<string, string>
- environment tag list.
- Tem
Environment stringId - ID of the resource.
- Vpc string
- vpc ID.
- Description string
- environment description.
- Environment
Name string - environment name.
- Subnet
Ids []string - subnet IDs.
- map[string]string
- environment tag list.
- Tem
Environment stringId - ID of the resource.
- Vpc string
- vpc ID.
- description String
- environment description.
- environment
Name String - environment name.
- subnet
Ids List<String> - subnet IDs.
- Map<String,String>
- environment tag list.
- tem
Environment StringId - ID of the resource.
- vpc String
- vpc ID.
- description string
- environment description.
- environment
Name string - environment name.
- subnet
Ids string[] - subnet IDs.
- {[key: string]: string}
- environment tag list.
- tem
Environment stringId - ID of the resource.
- vpc string
- vpc ID.
- description str
- environment description.
- environment_
name str - environment name.
- subnet_
ids Sequence[str] - subnet IDs.
- Mapping[str, str]
- environment tag list.
- tem_
environment_ strid - ID of the resource.
- vpc str
- vpc ID.
- description String
- environment description.
- environment
Name String - environment name.
- subnet
Ids List<String> - subnet IDs.
- Map<String>
- environment tag list.
- tem
Environment StringId - 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
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.