1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoFunctionComponentBinding
Viewing docs for tencentcloud 1.83.7
published on Tuesday, Jun 30, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.7
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 apply or destroy operations 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:

    FunctionComponentBindings List<TeoFunctionComponentBindingFunctionComponentBinding>
    List of function component bindings.
    FunctionId string
    Function ID.
    ZoneId string
    Site ID.
    TeoFunctionComponentBindingId string
    ID of the resource.
    FunctionComponentBindings []TeoFunctionComponentBindingFunctionComponentBindingArgs
    List of function component bindings.
    FunctionId string
    Function ID.
    ZoneId string
    Site ID.
    TeoFunctionComponentBindingId string
    ID of the resource.
    function_component_bindings list(object)
    List of function component bindings.
    function_id string
    Function ID.
    zone_id string
    Site ID.
    teo_function_component_binding_id string
    ID of the resource.
    functionComponentBindings List<TeoFunctionComponentBindingFunctionComponentBinding>
    List of function component bindings.
    functionId String
    Function ID.
    zoneId String
    Site ID.
    teoFunctionComponentBindingId String
    ID of the resource.
    functionComponentBindings TeoFunctionComponentBindingFunctionComponentBinding[]
    List of function component bindings.
    functionId string
    Function ID.
    zoneId string
    Site ID.
    teoFunctionComponentBindingId string
    ID of the resource.
    functionComponentBindings List<Property Map>
    List of function component bindings.
    functionId String
    Function ID.
    zoneId String
    Site ID.
    teoFunctionComponentBindingId String
    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) -> TeoFunctionComponentBinding
    func 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.
    The following state arguments are supported:
    FunctionComponentBindings List<TeoFunctionComponentBindingFunctionComponentBinding>
    List of function component bindings.
    FunctionId string
    Function ID.
    TeoFunctionComponentBindingId string
    ID of the resource.
    ZoneId string
    Site ID.
    FunctionComponentBindings []TeoFunctionComponentBindingFunctionComponentBindingArgs
    List of function component bindings.
    FunctionId string
    Function ID.
    TeoFunctionComponentBindingId string
    ID of the resource.
    ZoneId string
    Site ID.
    function_component_bindings list(object)
    List of function component bindings.
    function_id string
    Function ID.
    teo_function_component_binding_id string
    ID of the resource.
    zone_id string
    Site ID.
    functionComponentBindings List<TeoFunctionComponentBindingFunctionComponentBinding>
    List of function component bindings.
    functionId String
    Function ID.
    teoFunctionComponentBindingId String
    ID of the resource.
    zoneId String
    Site ID.
    functionComponentBindings TeoFunctionComponentBindingFunctionComponentBinding[]
    List of function component bindings.
    functionId string
    Function ID.
    teoFunctionComponentBindingId string
    ID of the resource.
    zoneId string
    Site ID.
    functionComponentBindings List<Property Map>
    List of function component bindings.
    functionId String
    Function ID.
    teoFunctionComponentBindingId String
    ID of the resource.
    zoneId String
    Site ID.

    Supporting Types

    TeoFunctionComponentBindingFunctionComponentBinding, TeoFunctionComponentBindingFunctionComponentBindingArgs

    Type string
    Component type. Valid values: kv_namespace.
    VariableName string
    Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
    KvNamespaceParameters TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParameters
    KV namespace configuration parameters. Required when type is kv_namespace.
    Type string
    Component type. Valid values: kv_namespace.
    VariableName string
    Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
    KvNamespaceParameters TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParameters
    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_parameters object
    KV namespace configuration parameters. Required when type is kv_namespace.
    type String
    Component type. Valid values: kv_namespace.
    variableName String
    Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
    kvNamespaceParameters TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParameters
    KV namespace configuration parameters. Required when type is kv_namespace.
    type string
    Component type. Valid values: kv_namespace.
    variableName string
    Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
    kvNamespaceParameters TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParameters
    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_parameters TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParameters
    KV namespace configuration parameters. Required when type is kv_namespace.
    type String
    Component type. Valid values: kv_namespace.
    variableName String
    Variable name for binding, 1-50 characters, alphanumeric and underscore, cannot start with a number.
    kvNamespaceParameters Property Map
    KV namespace configuration parameters. Required when type is kv_namespace.

    TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParameters, TeoFunctionComponentBindingFunctionComponentBindingKvNamespaceParametersArgs

    Namespace string
    KV namespace name.
    ZoneId string
    Zone ID of the KV namespace.
    Namespace string
    KV namespace name.
    ZoneId string
    Zone ID of the KV namespace.
    namespace string
    KV namespace name.
    zone_id string
    Zone ID of the KV namespace.
    namespace String
    KV namespace name.
    zoneId String
    Zone ID of the KV namespace.
    namespace string
    KV namespace name.
    zoneId string
    Zone ID of the KV namespace.
    namespace str
    KV namespace name.
    zone_id str
    Zone ID of the KV namespace.
    namespace String
    KV namespace name.
    zoneId String
    Zone ID of the KV namespace.

    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 tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.83.7
    published on Tuesday, Jun 30, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial