published on Tuesday, Jun 30, 2026 by tencentcloudstack
published on Tuesday, Jun 30, 2026 by tencentcloudstack
Provides a resource to manage TEO edge function component binding configuration
NOTE: If this resource management method is used, it must be the sole method employed; management via other channels—such as the console, API, or CLI—is prohibited. Doing so would result in unintended changes or cause
applyordestroyoperations to overwrite existing configurations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TeoFunctionComponentBinding("example", {
zoneId: "zone-2qtuhspy7cr6",
functionId: "ef-txx7fnua",
functionComponentBindings: [{
type: "kv_namespace",
variableName: "MY_KV",
kvNamespaceParameters: {
zoneId: "zone-2qtuhspy7cr6",
namespace: "my-namespace",
},
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TeoFunctionComponentBinding("example",
zone_id="zone-2qtuhspy7cr6",
function_id="ef-txx7fnua",
function_component_bindings=[{
"type": "kv_namespace",
"variable_name": "MY_KV",
"kv_namespace_parameters": {
"zone_id": "zone-2qtuhspy7cr6",
"namespace": "my-namespace",
},
}])
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.NewTeoFunctionComponentBinding(ctx, "example", &tencentcloud.TeoFunctionComponentBindingArgs{
ZoneId: pulumi.String("zone-2qtuhspy7cr6"),
FunctionId: pulumi.String("ef-txx7fnua"),
FunctionComponentBindings: tencentcloud.TeoFunctionComponentBindingFunctionComponentBindingArray{
&tencentcloud.TeoFunctionComponentBindingFunctionComponentBindingArgs{
Type: pulumi.String("kv_namespace"),
VariableName: pulumi.String("MY_KV"),
KvNamespaceParameters: &tencentcloud.TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParametersArgs{
ZoneId: pulumi.String("zone-2qtuhspy7cr6"),
Namespace: pulumi.String("my-namespace"),
},
},
},
})
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 example = new Tencentcloud.TeoFunctionComponentBinding("example", new()
{
ZoneId = "zone-2qtuhspy7cr6",
FunctionId = "ef-txx7fnua",
FunctionComponentBindings = new[]
{
new Tencentcloud.Inputs.TeoFunctionComponentBindingFunctionComponentBindingArgs
{
Type = "kv_namespace",
VariableName = "MY_KV",
KvNamespaceParameters = new Tencentcloud.Inputs.TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParametersArgs
{
ZoneId = "zone-2qtuhspy7cr6",
Namespace = "my-namespace",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoFunctionComponentBinding;
import com.pulumi.tencentcloud.TeoFunctionComponentBindingArgs;
import com.pulumi.tencentcloud.inputs.TeoFunctionComponentBindingFunctionComponentBindingArgs;
import com.pulumi.tencentcloud.inputs.TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParametersArgs;
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 example = new TeoFunctionComponentBinding("example", TeoFunctionComponentBindingArgs.builder()
.zoneId("zone-2qtuhspy7cr6")
.functionId("ef-txx7fnua")
.functionComponentBindings(TeoFunctionComponentBindingFunctionComponentBindingArgs.builder()
.type("kv_namespace")
.variableName("MY_KV")
.kvNamespaceParameters(TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParametersArgs.builder()
.zoneId("zone-2qtuhspy7cr6")
.namespace("my-namespace")
.build())
.build())
.build());
}
}
resources:
example:
type: tencentcloud:TeoFunctionComponentBinding
properties:
zoneId: zone-2qtuhspy7cr6
functionId: ef-txx7fnua
functionComponentBindings:
- type: kv_namespace
variableName: MY_KV
kvNamespaceParameters:
zoneId: zone-2qtuhspy7cr6
namespace: my-namespace
Example coming soon!
Create TeoFunctionComponentBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoFunctionComponentBinding(name: string, args: TeoFunctionComponentBindingArgs, opts?: CustomResourceOptions);@overload
def TeoFunctionComponentBinding(resource_name: str,
args: TeoFunctionComponentBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoFunctionComponentBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_component_bindings: Optional[Sequence[TeoFunctionComponentBindingFunctionComponentBindingArgs]] = None,
function_id: Optional[str] = None,
zone_id: Optional[str] = None,
teo_function_component_binding_id: Optional[str] = None)func NewTeoFunctionComponentBinding(ctx *Context, name string, args TeoFunctionComponentBindingArgs, opts ...ResourceOption) (*TeoFunctionComponentBinding, error)public TeoFunctionComponentBinding(string name, TeoFunctionComponentBindingArgs args, CustomResourceOptions? opts = null)
public TeoFunctionComponentBinding(String name, TeoFunctionComponentBindingArgs args)
public TeoFunctionComponentBinding(String name, TeoFunctionComponentBindingArgs args, CustomResourceOptions options)
type: tencentcloud:TeoFunctionComponentBinding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_teofunctioncomponentbinding" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TeoFunctionComponentBindingArgs
- 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 TeoFunctionComponentBindingArgs
- 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 TeoFunctionComponentBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoFunctionComponentBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoFunctionComponentBindingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoFunctionComponentBinding 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 TeoFunctionComponentBinding resource accepts the following input properties:
- Function
Component List<TeoBindings Function Component Binding Function Component Binding> - List of function component bindings.
- Function
Id string - Function ID.
- Zone
Id string - Site ID.
- Teo
Function stringComponent Binding Id - ID of the resource.
- Function
Component []TeoBindings Function Component Binding Function Component Binding Args - List of function component bindings.
- Function
Id string - Function ID.
- Zone
Id string - Site ID.
- Teo
Function stringComponent Binding Id - ID of the resource.
- function_
component_ list(object)bindings - List of function component bindings.
- function_
id string - Function ID.
- zone_
id string - Site ID.
- teo_
function_ stringcomponent_ binding_ id - ID of the resource.
- function
Component List<TeoBindings Function Component Binding Function Component Binding> - List of function component bindings.
- function
Id String - Function ID.
- zone
Id String - Site ID.
- teo
Function StringComponent Binding Id - ID of the resource.
- function
Component TeoBindings Function Component Binding Function Component Binding[] - List of function component bindings.
- function
Id string - Function ID.
- zone
Id string - Site ID.
- teo
Function stringComponent Binding Id - ID of the resource.
- function_
component_ Sequence[Teobindings Function Component Binding Function Component Binding Args] - List of function component bindings.
- function_
id str - Function ID.
- zone_
id str - Site ID.
- teo_
function_ strcomponent_ binding_ id - ID of the resource.
- function
Component List<Property Map>Bindings - List of function component bindings.
- function
Id String - Function ID.
- zone
Id String - Site ID.
- teo
Function StringComponent Binding Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoFunctionComponentBinding 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 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 TeoFunctionComponentBinding Resource
Get an existing TeoFunctionComponentBinding 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?: TeoFunctionComponentBindingState, opts?: CustomResourceOptions): TeoFunctionComponentBinding@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
function_component_bindings: Optional[Sequence[TeoFunctionComponentBindingFunctionComponentBindingArgs]] = None,
function_id: Optional[str] = None,
teo_function_component_binding_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoFunctionComponentBindingfunc GetTeoFunctionComponentBinding(ctx *Context, name string, id IDInput, state *TeoFunctionComponentBindingState, opts ...ResourceOption) (*TeoFunctionComponentBinding, error)public static TeoFunctionComponentBinding Get(string name, Input<string> id, TeoFunctionComponentBindingState? state, CustomResourceOptions? opts = null)public static TeoFunctionComponentBinding get(String name, Output<String> id, TeoFunctionComponentBindingState state, CustomResourceOptions options)resources: _: type: tencentcloud:TeoFunctionComponentBinding get: id: ${id}import {
to = tencentcloud_teofunctioncomponentbinding.example
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.
- Function
Component List<TeoBindings Function Component Binding Function Component Binding> - List of function component bindings.
- Function
Id string - Function ID.
- Teo
Function stringComponent Binding Id - ID of the resource.
- Zone
Id string - Site ID.
- Function
Component []TeoBindings Function Component Binding Function Component Binding Args - List of function component bindings.
- Function
Id string - Function ID.
- Teo
Function stringComponent Binding Id - ID of the resource.
- Zone
Id string - Site ID.
- function_
component_ list(object)bindings - List of function component bindings.
- function_
id string - Function ID.
- teo_
function_ stringcomponent_ binding_ id - ID of the resource.
- zone_
id string - Site ID.
- function
Component List<TeoBindings Function Component Binding Function Component Binding> - List of function component bindings.
- function
Id String - Function ID.
- teo
Function StringComponent Binding Id - ID of the resource.
- zone
Id String - Site ID.
- function
Component TeoBindings Function Component Binding Function Component Binding[] - List of function component bindings.
- function
Id string - Function ID.
- teo
Function stringComponent Binding Id - ID of the resource.
- zone
Id string - Site ID.
- function_
component_ Sequence[Teobindings Function Component Binding Function Component Binding Args] - List of function component bindings.
- function_
id str - Function ID.
- teo_
function_ strcomponent_ binding_ id - ID of the resource.
- zone_
id str - Site ID.
- function
Component List<Property Map>Bindings - List of function component bindings.
- function
Id String - Function ID.
- teo
Function StringComponent Binding Id - ID of the resource.
- zone
Id String - Site ID.
Supporting Types
TeoFunctionComponentBindingFunctionComponentBinding, TeoFunctionComponentBindingFunctionComponentBindingArgs
- Type string
- Component type. Valid values:
kv_namespace. - Variable
Name string - Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
- Kv
Namespace TeoParameters Function Component Binding Function Component Binding Kv Namespace Parameters - KV namespace configuration parameters. Required when type is
kv_namespace.
- Type string
- Component type. Valid values:
kv_namespace. - Variable
Name string - Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
- Kv
Namespace TeoParameters Function Component Binding Function Component Binding Kv Namespace Parameters - KV namespace configuration parameters. Required when type is
kv_namespace.
- type string
- Component type. Valid values:
kv_namespace. - variable_
name string - Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
- kv_
namespace_ objectparameters - KV namespace configuration parameters. Required when type is
kv_namespace.
- type String
- Component type. Valid values:
kv_namespace. - variable
Name String - Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
- kv
Namespace TeoParameters Function Component Binding Function Component Binding Kv Namespace Parameters - KV namespace configuration parameters. Required when type is
kv_namespace.
- type string
- Component type. Valid values:
kv_namespace. - variable
Name string - Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
- kv
Namespace TeoParameters Function Component Binding Function Component Binding Kv Namespace Parameters - KV namespace configuration parameters. Required when type is
kv_namespace.
- type str
- Component type. Valid values:
kv_namespace. - variable_
name str - Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
- kv_
namespace_ Teoparameters Function Component Binding Function Component Binding Kv Namespace Parameters - KV namespace configuration parameters. Required when type is
kv_namespace.
- type String
- Component type. Valid values:
kv_namespace. - variable
Name String - Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
- kv
Namespace Property MapParameters - KV namespace configuration parameters. Required when type is
kv_namespace.
TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParameters, TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParametersArgs
Import
teo function_component_binding can be imported using the composite id (zone_id#function_id), e.g.
$ pulumi import tencentcloud:index/teoFunctionComponentBinding:TeoFunctionComponentBinding example zone-2qtuhspy7cr6#ef-txx7fnua
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
tencentcloudTerraform Provider.
published on Tuesday, Jun 30, 2026 by tencentcloudstack