1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DlcUserVpcConnection
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack

tencentcloud.DlcUserVpcConnection

Deploy with Pulumi
tencentcloud logo
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack

    Provides a resource to create a DLC user vpc connection

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.DlcUserVpcConnection("example", {
        engineNetworkId: "DataEngine-Network-2mfg9icb",
        userSubnetId: "subnet-ds2t3udw",
        userVpcEndpointName: "tf-example",
        userVpcId: "vpc-f7fa1fu5",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.DlcUserVpcConnection("example",
        engine_network_id="DataEngine-Network-2mfg9icb",
        user_subnet_id="subnet-ds2t3udw",
        user_vpc_endpoint_name="tf-example",
        user_vpc_id="vpc-f7fa1fu5")
    
    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.NewDlcUserVpcConnection(ctx, "example", &tencentcloud.DlcUserVpcConnectionArgs{
    			EngineNetworkId:     pulumi.String("DataEngine-Network-2mfg9icb"),
    			UserSubnetId:        pulumi.String("subnet-ds2t3udw"),
    			UserVpcEndpointName: pulumi.String("tf-example"),
    			UserVpcId:           pulumi.String("vpc-f7fa1fu5"),
    		})
    		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.DlcUserVpcConnection("example", new()
        {
            EngineNetworkId = "DataEngine-Network-2mfg9icb",
            UserSubnetId = "subnet-ds2t3udw",
            UserVpcEndpointName = "tf-example",
            UserVpcId = "vpc-f7fa1fu5",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DlcUserVpcConnection;
    import com.pulumi.tencentcloud.DlcUserVpcConnectionArgs;
    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 DlcUserVpcConnection("example", DlcUserVpcConnectionArgs.builder()
                .engineNetworkId("DataEngine-Network-2mfg9icb")
                .userSubnetId("subnet-ds2t3udw")
                .userVpcEndpointName("tf-example")
                .userVpcId("vpc-f7fa1fu5")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:DlcUserVpcConnection
        properties:
          engineNetworkId: DataEngine-Network-2mfg9icb
          userSubnetId: subnet-ds2t3udw
          userVpcEndpointName: tf-example
          userVpcId: vpc-f7fa1fu5
    

    Or

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.DlcUserVpcConnection("example", {
        engineNetworkId: "DataEngine-Network-2mfg9icb",
        userSubnetId: "subnet-ds2t3udw",
        userVpcEndpointName: "tf-example",
        userVpcEndpointVip: "10.0.1.10",
        userVpcId: "vpc-f7fa1fu5",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.DlcUserVpcConnection("example",
        engine_network_id="DataEngine-Network-2mfg9icb",
        user_subnet_id="subnet-ds2t3udw",
        user_vpc_endpoint_name="tf-example",
        user_vpc_endpoint_vip="10.0.1.10",
        user_vpc_id="vpc-f7fa1fu5")
    
    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.NewDlcUserVpcConnection(ctx, "example", &tencentcloud.DlcUserVpcConnectionArgs{
    			EngineNetworkId:     pulumi.String("DataEngine-Network-2mfg9icb"),
    			UserSubnetId:        pulumi.String("subnet-ds2t3udw"),
    			UserVpcEndpointName: pulumi.String("tf-example"),
    			UserVpcEndpointVip:  pulumi.String("10.0.1.10"),
    			UserVpcId:           pulumi.String("vpc-f7fa1fu5"),
    		})
    		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.DlcUserVpcConnection("example", new()
        {
            EngineNetworkId = "DataEngine-Network-2mfg9icb",
            UserSubnetId = "subnet-ds2t3udw",
            UserVpcEndpointName = "tf-example",
            UserVpcEndpointVip = "10.0.1.10",
            UserVpcId = "vpc-f7fa1fu5",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DlcUserVpcConnection;
    import com.pulumi.tencentcloud.DlcUserVpcConnectionArgs;
    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 DlcUserVpcConnection("example", DlcUserVpcConnectionArgs.builder()
                .engineNetworkId("DataEngine-Network-2mfg9icb")
                .userSubnetId("subnet-ds2t3udw")
                .userVpcEndpointName("tf-example")
                .userVpcEndpointVip("10.0.1.10")
                .userVpcId("vpc-f7fa1fu5")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:DlcUserVpcConnection
        properties:
          engineNetworkId: DataEngine-Network-2mfg9icb
          userSubnetId: subnet-ds2t3udw
          userVpcEndpointName: tf-example
          userVpcEndpointVip: 10.0.1.10
          userVpcId: vpc-f7fa1fu5
    

    Create DlcUserVpcConnection Resource

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

    Constructor syntax

    new DlcUserVpcConnection(name: string, args: DlcUserVpcConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def DlcUserVpcConnection(resource_name: str,
                             args: DlcUserVpcConnectionArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def DlcUserVpcConnection(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             engine_network_id: Optional[str] = None,
                             user_subnet_id: Optional[str] = None,
                             user_vpc_endpoint_name: Optional[str] = None,
                             user_vpc_id: Optional[str] = None,
                             dlc_user_vpc_connection_id: Optional[str] = None,
                             user_vpc_endpoint_vip: Optional[str] = None)
    func NewDlcUserVpcConnection(ctx *Context, name string, args DlcUserVpcConnectionArgs, opts ...ResourceOption) (*DlcUserVpcConnection, error)
    public DlcUserVpcConnection(string name, DlcUserVpcConnectionArgs args, CustomResourceOptions? opts = null)
    public DlcUserVpcConnection(String name, DlcUserVpcConnectionArgs args)
    public DlcUserVpcConnection(String name, DlcUserVpcConnectionArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DlcUserVpcConnection
    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 DlcUserVpcConnectionArgs
    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 DlcUserVpcConnectionArgs
    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 DlcUserVpcConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DlcUserVpcConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DlcUserVpcConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    EngineNetworkId string
    Engine network ID.
    UserSubnetId string
    User subnet ID.
    UserVpcEndpointName string
    User vpc endpoint name.
    UserVpcId string
    User vpc ID.
    DlcUserVpcConnectionId string
    ID of the resource.
    UserVpcEndpointVip string
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    EngineNetworkId string
    Engine network ID.
    UserSubnetId string
    User subnet ID.
    UserVpcEndpointName string
    User vpc endpoint name.
    UserVpcId string
    User vpc ID.
    DlcUserVpcConnectionId string
    ID of the resource.
    UserVpcEndpointVip string
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    engineNetworkId String
    Engine network ID.
    userSubnetId String
    User subnet ID.
    userVpcEndpointName String
    User vpc endpoint name.
    userVpcId String
    User vpc ID.
    dlcUserVpcConnectionId String
    ID of the resource.
    userVpcEndpointVip String
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    engineNetworkId string
    Engine network ID.
    userSubnetId string
    User subnet ID.
    userVpcEndpointName string
    User vpc endpoint name.
    userVpcId string
    User vpc ID.
    dlcUserVpcConnectionId string
    ID of the resource.
    userVpcEndpointVip string
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    engine_network_id str
    Engine network ID.
    user_subnet_id str
    User subnet ID.
    user_vpc_endpoint_name str
    User vpc endpoint name.
    user_vpc_id str
    User vpc ID.
    dlc_user_vpc_connection_id str
    ID of the resource.
    user_vpc_endpoint_vip str
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    engineNetworkId String
    Engine network ID.
    userSubnetId String
    User subnet ID.
    userVpcEndpointName String
    User vpc endpoint name.
    userVpcId String
    User vpc ID.
    dlcUserVpcConnectionId String
    ID of the resource.
    userVpcEndpointVip String
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DlcUserVpcConnection resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    UserVpcEndpointId string
    User endpoint ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    UserVpcEndpointId string
    User endpoint ID.
    id String
    The provider-assigned unique ID for this managed resource.
    userVpcEndpointId String
    User endpoint ID.
    id string
    The provider-assigned unique ID for this managed resource.
    userVpcEndpointId string
    User endpoint ID.
    id str
    The provider-assigned unique ID for this managed resource.
    user_vpc_endpoint_id str
    User endpoint ID.
    id String
    The provider-assigned unique ID for this managed resource.
    userVpcEndpointId String
    User endpoint ID.

    Look up Existing DlcUserVpcConnection Resource

    Get an existing DlcUserVpcConnection 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?: DlcUserVpcConnectionState, opts?: CustomResourceOptions): DlcUserVpcConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dlc_user_vpc_connection_id: Optional[str] = None,
            engine_network_id: Optional[str] = None,
            user_subnet_id: Optional[str] = None,
            user_vpc_endpoint_id: Optional[str] = None,
            user_vpc_endpoint_name: Optional[str] = None,
            user_vpc_endpoint_vip: Optional[str] = None,
            user_vpc_id: Optional[str] = None) -> DlcUserVpcConnection
    func GetDlcUserVpcConnection(ctx *Context, name string, id IDInput, state *DlcUserVpcConnectionState, opts ...ResourceOption) (*DlcUserVpcConnection, error)
    public static DlcUserVpcConnection Get(string name, Input<string> id, DlcUserVpcConnectionState? state, CustomResourceOptions? opts = null)
    public static DlcUserVpcConnection get(String name, Output<String> id, DlcUserVpcConnectionState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DlcUserVpcConnection    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.
    The following state arguments are supported:
    DlcUserVpcConnectionId string
    ID of the resource.
    EngineNetworkId string
    Engine network ID.
    UserSubnetId string
    User subnet ID.
    UserVpcEndpointId string
    User endpoint ID.
    UserVpcEndpointName string
    User vpc endpoint name.
    UserVpcEndpointVip string
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    UserVpcId string
    User vpc ID.
    DlcUserVpcConnectionId string
    ID of the resource.
    EngineNetworkId string
    Engine network ID.
    UserSubnetId string
    User subnet ID.
    UserVpcEndpointId string
    User endpoint ID.
    UserVpcEndpointName string
    User vpc endpoint name.
    UserVpcEndpointVip string
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    UserVpcId string
    User vpc ID.
    dlcUserVpcConnectionId String
    ID of the resource.
    engineNetworkId String
    Engine network ID.
    userSubnetId String
    User subnet ID.
    userVpcEndpointId String
    User endpoint ID.
    userVpcEndpointName String
    User vpc endpoint name.
    userVpcEndpointVip String
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    userVpcId String
    User vpc ID.
    dlcUserVpcConnectionId string
    ID of the resource.
    engineNetworkId string
    Engine network ID.
    userSubnetId string
    User subnet ID.
    userVpcEndpointId string
    User endpoint ID.
    userVpcEndpointName string
    User vpc endpoint name.
    userVpcEndpointVip string
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    userVpcId string
    User vpc ID.
    dlc_user_vpc_connection_id str
    ID of the resource.
    engine_network_id str
    Engine network ID.
    user_subnet_id str
    User subnet ID.
    user_vpc_endpoint_id str
    User endpoint ID.
    user_vpc_endpoint_name str
    User vpc endpoint name.
    user_vpc_endpoint_vip str
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    user_vpc_id str
    User vpc ID.
    dlcUserVpcConnectionId String
    ID of the resource.
    engineNetworkId String
    Engine network ID.
    userSubnetId String
    User subnet ID.
    userVpcEndpointId String
    User endpoint ID.
    userVpcEndpointName String
    User vpc endpoint name.
    userVpcEndpointVip String
    Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.
    userVpcId String
    User vpc ID.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate