tencentcloud.TeoFunctionRuntimeEnvironment
Explore with Pulumi AI
Provides a resource to create a teo teo_function_runtime_environment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const teoFunctionRuntimeEnvironment = new tencentcloud.TeoFunctionRuntimeEnvironment("teoFunctionRuntimeEnvironment", {
environmentVariables: [
{
key: "test-a",
type: "string",
value: "AAA",
},
{
key: "test-b",
type: "string",
value: "BBB",
},
],
functionId: "ef-txx7fnua",
zoneId: "zone-2qtuhspy7cr6",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
teo_function_runtime_environment = tencentcloud.TeoFunctionRuntimeEnvironment("teoFunctionRuntimeEnvironment",
environment_variables=[
{
"key": "test-a",
"type": "string",
"value": "AAA",
},
{
"key": "test-b",
"type": "string",
"value": "BBB",
},
],
function_id="ef-txx7fnua",
zone_id="zone-2qtuhspy7cr6")
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.NewTeoFunctionRuntimeEnvironment(ctx, "teoFunctionRuntimeEnvironment", &tencentcloud.TeoFunctionRuntimeEnvironmentArgs{
EnvironmentVariables: tencentcloud.TeoFunctionRuntimeEnvironmentEnvironmentVariableArray{
&tencentcloud.TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs{
Key: pulumi.String("test-a"),
Type: pulumi.String("string"),
Value: pulumi.String("AAA"),
},
&tencentcloud.TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs{
Key: pulumi.String("test-b"),
Type: pulumi.String("string"),
Value: pulumi.String("BBB"),
},
},
FunctionId: pulumi.String("ef-txx7fnua"),
ZoneId: pulumi.String("zone-2qtuhspy7cr6"),
})
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 teoFunctionRuntimeEnvironment = new Tencentcloud.TeoFunctionRuntimeEnvironment("teoFunctionRuntimeEnvironment", new()
{
EnvironmentVariables = new[]
{
new Tencentcloud.Inputs.TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs
{
Key = "test-a",
Type = "string",
Value = "AAA",
},
new Tencentcloud.Inputs.TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs
{
Key = "test-b",
Type = "string",
Value = "BBB",
},
},
FunctionId = "ef-txx7fnua",
ZoneId = "zone-2qtuhspy7cr6",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoFunctionRuntimeEnvironment;
import com.pulumi.tencentcloud.TeoFunctionRuntimeEnvironmentArgs;
import com.pulumi.tencentcloud.inputs.TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs;
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 teoFunctionRuntimeEnvironment = new TeoFunctionRuntimeEnvironment("teoFunctionRuntimeEnvironment", TeoFunctionRuntimeEnvironmentArgs.builder()
.environmentVariables(
TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs.builder()
.key("test-a")
.type("string")
.value("AAA")
.build(),
TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs.builder()
.key("test-b")
.type("string")
.value("BBB")
.build())
.functionId("ef-txx7fnua")
.zoneId("zone-2qtuhspy7cr6")
.build());
}
}
resources:
teoFunctionRuntimeEnvironment:
type: tencentcloud:TeoFunctionRuntimeEnvironment
properties:
environmentVariables:
- key: test-a
type: string
value: AAA
- key: test-b
type: string
value: BBB
functionId: ef-txx7fnua
zoneId: zone-2qtuhspy7cr6
Create TeoFunctionRuntimeEnvironment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoFunctionRuntimeEnvironment(name: string, args: TeoFunctionRuntimeEnvironmentArgs, opts?: CustomResourceOptions);
@overload
def TeoFunctionRuntimeEnvironment(resource_name: str,
args: TeoFunctionRuntimeEnvironmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoFunctionRuntimeEnvironment(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_variables: Optional[Sequence[TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs]] = None,
function_id: Optional[str] = None,
zone_id: Optional[str] = None,
teo_function_runtime_environment_id: Optional[str] = None)
func NewTeoFunctionRuntimeEnvironment(ctx *Context, name string, args TeoFunctionRuntimeEnvironmentArgs, opts ...ResourceOption) (*TeoFunctionRuntimeEnvironment, error)
public TeoFunctionRuntimeEnvironment(string name, TeoFunctionRuntimeEnvironmentArgs args, CustomResourceOptions? opts = null)
public TeoFunctionRuntimeEnvironment(String name, TeoFunctionRuntimeEnvironmentArgs args)
public TeoFunctionRuntimeEnvironment(String name, TeoFunctionRuntimeEnvironmentArgs args, CustomResourceOptions options)
type: tencentcloud:TeoFunctionRuntimeEnvironment
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 TeoFunctionRuntimeEnvironmentArgs
- 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 TeoFunctionRuntimeEnvironmentArgs
- 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 TeoFunctionRuntimeEnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoFunctionRuntimeEnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoFunctionRuntimeEnvironmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoFunctionRuntimeEnvironment 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 TeoFunctionRuntimeEnvironment resource accepts the following input properties:
- Environment
Variables List<TeoFunction Runtime Environment Environment Variable> - The environment variable list.
- Function
Id string - ID of the Function.
- Zone
Id string - ID of the site.
- Teo
Function stringRuntime Environment Id - ID of the resource.
- Environment
Variables []TeoFunction Runtime Environment Environment Variable Args - The environment variable list.
- Function
Id string - ID of the Function.
- Zone
Id string - ID of the site.
- Teo
Function stringRuntime Environment Id - ID of the resource.
- environment
Variables List<TeoFunction Runtime Environment Environment Variable> - The environment variable list.
- function
Id String - ID of the Function.
- zone
Id String - ID of the site.
- teo
Function StringRuntime Environment Id - ID of the resource.
- environment
Variables TeoFunction Runtime Environment Environment Variable[] - The environment variable list.
- function
Id string - ID of the Function.
- zone
Id string - ID of the site.
- teo
Function stringRuntime Environment Id - ID of the resource.
- environment_
variables Sequence[TeoFunction Runtime Environment Environment Variable Args] - The environment variable list.
- function_
id str - ID of the Function.
- zone_
id str - ID of the site.
- teo_
function_ strruntime_ environment_ id - ID of the resource.
- environment
Variables List<Property Map> - The environment variable list.
- function
Id String - ID of the Function.
- zone
Id String - ID of the site.
- teo
Function StringRuntime Environment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoFunctionRuntimeEnvironment 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 TeoFunctionRuntimeEnvironment Resource
Get an existing TeoFunctionRuntimeEnvironment 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?: TeoFunctionRuntimeEnvironmentState, opts?: CustomResourceOptions): TeoFunctionRuntimeEnvironment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
environment_variables: Optional[Sequence[TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs]] = None,
function_id: Optional[str] = None,
teo_function_runtime_environment_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoFunctionRuntimeEnvironment
func GetTeoFunctionRuntimeEnvironment(ctx *Context, name string, id IDInput, state *TeoFunctionRuntimeEnvironmentState, opts ...ResourceOption) (*TeoFunctionRuntimeEnvironment, error)
public static TeoFunctionRuntimeEnvironment Get(string name, Input<string> id, TeoFunctionRuntimeEnvironmentState? state, CustomResourceOptions? opts = null)
public static TeoFunctionRuntimeEnvironment get(String name, Output<String> id, TeoFunctionRuntimeEnvironmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TeoFunctionRuntimeEnvironment 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.
- Environment
Variables List<TeoFunction Runtime Environment Environment Variable> - The environment variable list.
- Function
Id string - ID of the Function.
- Teo
Function stringRuntime Environment Id - ID of the resource.
- Zone
Id string - ID of the site.
- Environment
Variables []TeoFunction Runtime Environment Environment Variable Args - The environment variable list.
- Function
Id string - ID of the Function.
- Teo
Function stringRuntime Environment Id - ID of the resource.
- Zone
Id string - ID of the site.
- environment
Variables List<TeoFunction Runtime Environment Environment Variable> - The environment variable list.
- function
Id String - ID of the Function.
- teo
Function StringRuntime Environment Id - ID of the resource.
- zone
Id String - ID of the site.
- environment
Variables TeoFunction Runtime Environment Environment Variable[] - The environment variable list.
- function
Id string - ID of the Function.
- teo
Function stringRuntime Environment Id - ID of the resource.
- zone
Id string - ID of the site.
- environment_
variables Sequence[TeoFunction Runtime Environment Environment Variable Args] - The environment variable list.
- function_
id str - ID of the Function.
- teo_
function_ strruntime_ environment_ id - ID of the resource.
- zone_
id str - ID of the site.
- environment
Variables List<Property Map> - The environment variable list.
- function
Id String - ID of the Function.
- teo
Function StringRuntime Environment Id - ID of the resource.
- zone
Id String - ID of the site.
Supporting Types
TeoFunctionRuntimeEnvironmentEnvironmentVariable, TeoFunctionRuntimeEnvironmentEnvironmentVariableArgs
- Key string
- The name of the variable, which is limited to alphanumeric characters and the special characters
@
,.
,-
, and_
. It can have a maximum of 64 bytes and should not be duplicated. - Type string
- The type of the variable can have the following values: -
string
: Represents a string type. -json
: Represents a JSON object type. - Value string
- The value of the variable, which is limited to a maximum of 5000 bytes. The default value is empty.
- Key string
- The name of the variable, which is limited to alphanumeric characters and the special characters
@
,.
,-
, and_
. It can have a maximum of 64 bytes and should not be duplicated. - Type string
- The type of the variable can have the following values: -
string
: Represents a string type. -json
: Represents a JSON object type. - Value string
- The value of the variable, which is limited to a maximum of 5000 bytes. The default value is empty.
- key String
- The name of the variable, which is limited to alphanumeric characters and the special characters
@
,.
,-
, and_
. It can have a maximum of 64 bytes and should not be duplicated. - type String
- The type of the variable can have the following values: -
string
: Represents a string type. -json
: Represents a JSON object type. - value String
- The value of the variable, which is limited to a maximum of 5000 bytes. The default value is empty.
- key string
- The name of the variable, which is limited to alphanumeric characters and the special characters
@
,.
,-
, and_
. It can have a maximum of 64 bytes and should not be duplicated. - type string
- The type of the variable can have the following values: -
string
: Represents a string type. -json
: Represents a JSON object type. - value string
- The value of the variable, which is limited to a maximum of 5000 bytes. The default value is empty.
- key str
- The name of the variable, which is limited to alphanumeric characters and the special characters
@
,.
,-
, and_
. It can have a maximum of 64 bytes and should not be duplicated. - type str
- The type of the variable can have the following values: -
string
: Represents a string type. -json
: Represents a JSON object type. - value str
- The value of the variable, which is limited to a maximum of 5000 bytes. The default value is empty.
- key String
- The name of the variable, which is limited to alphanumeric characters and the special characters
@
,.
,-
, and_
. It can have a maximum of 64 bytes and should not be duplicated. - type String
- The type of the variable can have the following values: -
string
: Represents a string type. -json
: Represents a JSON object type. - value String
- The value of the variable, which is limited to a maximum of 5000 bytes. The default value is empty.
Import
teo teo_function_runtime_environment can be imported using the id, e.g.
$ pulumi import tencentcloud:index/teoFunctionRuntimeEnvironment:TeoFunctionRuntimeEnvironment teo_function_runtime_environment zone_id#function_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.