1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VpcEndPoint
tencentcloud 1.81.188 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.VpcEndPoint

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.188 published on Monday, Apr 28, 2025 by tencentcloudstack

    Provides a resource to create a VPC end point

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.VpcEndPoint("example", {
        endPointName: "tf-example",
        endPointServiceId: "vpcsvc-69y13tdb",
        endPointVip: "10.0.2.1",
        securityGroupsIds: [
            "sg-ghvp9djf",
            "sg-if748odn",
            "sg-3k7vtgf7",
        ],
        subnetId: "subnet-ljyn7h30",
        vpcId: "vpc-391sv4w3",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.VpcEndPoint("example",
        end_point_name="tf-example",
        end_point_service_id="vpcsvc-69y13tdb",
        end_point_vip="10.0.2.1",
        security_groups_ids=[
            "sg-ghvp9djf",
            "sg-if748odn",
            "sg-3k7vtgf7",
        ],
        subnet_id="subnet-ljyn7h30",
        vpc_id="vpc-391sv4w3")
    
    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.NewVpcEndPoint(ctx, "example", &tencentcloud.VpcEndPointArgs{
    			EndPointName:      pulumi.String("tf-example"),
    			EndPointServiceId: pulumi.String("vpcsvc-69y13tdb"),
    			EndPointVip:       pulumi.String("10.0.2.1"),
    			SecurityGroupsIds: pulumi.StringArray{
    				pulumi.String("sg-ghvp9djf"),
    				pulumi.String("sg-if748odn"),
    				pulumi.String("sg-3k7vtgf7"),
    			},
    			SubnetId: pulumi.String("subnet-ljyn7h30"),
    			VpcId:    pulumi.String("vpc-391sv4w3"),
    		})
    		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.VpcEndPoint("example", new()
        {
            EndPointName = "tf-example",
            EndPointServiceId = "vpcsvc-69y13tdb",
            EndPointVip = "10.0.2.1",
            SecurityGroupsIds = new[]
            {
                "sg-ghvp9djf",
                "sg-if748odn",
                "sg-3k7vtgf7",
            },
            SubnetId = "subnet-ljyn7h30",
            VpcId = "vpc-391sv4w3",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VpcEndPoint;
    import com.pulumi.tencentcloud.VpcEndPointArgs;
    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 VpcEndPoint("example", VpcEndPointArgs.builder()
                .endPointName("tf-example")
                .endPointServiceId("vpcsvc-69y13tdb")
                .endPointVip("10.0.2.1")
                .securityGroupsIds(            
                    "sg-ghvp9djf",
                    "sg-if748odn",
                    "sg-3k7vtgf7")
                .subnetId("subnet-ljyn7h30")
                .vpcId("vpc-391sv4w3")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:VpcEndPoint
        properties:
          endPointName: tf-example
          endPointServiceId: vpcsvc-69y13tdb
          endPointVip: 10.0.2.1
          securityGroupsIds:
            - sg-ghvp9djf
            - sg-if748odn
            - sg-3k7vtgf7
          subnetId: subnet-ljyn7h30
          vpcId: vpc-391sv4w3
    

    Create VpcEndPoint Resource

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

    Constructor syntax

    new VpcEndPoint(name: string, args: VpcEndPointArgs, opts?: CustomResourceOptions);
    @overload
    def VpcEndPoint(resource_name: str,
                    args: VpcEndPointArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcEndPoint(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    end_point_name: Optional[str] = None,
                    end_point_service_id: Optional[str] = None,
                    subnet_id: Optional[str] = None,
                    vpc_id: Optional[str] = None,
                    end_point_vip: Optional[str] = None,
                    security_groups_ids: Optional[Sequence[str]] = None,
                    vpc_end_point_id: Optional[str] = None)
    func NewVpcEndPoint(ctx *Context, name string, args VpcEndPointArgs, opts ...ResourceOption) (*VpcEndPoint, error)
    public VpcEndPoint(string name, VpcEndPointArgs args, CustomResourceOptions? opts = null)
    public VpcEndPoint(String name, VpcEndPointArgs args)
    public VpcEndPoint(String name, VpcEndPointArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VpcEndPoint
    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 VpcEndPointArgs
    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 VpcEndPointArgs
    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 VpcEndPointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcEndPointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcEndPointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    EndPointName string
    Name of endpoint.
    EndPointServiceId string
    ID of endpoint service.
    SubnetId string
    ID of subnet instance.
    VpcId string
    ID of vpc instance.
    EndPointVip string
    VIP of endpoint ip.
    SecurityGroupsIds List<string>
    Ordered security groups associated with the endpoint.
    VpcEndPointId string
    ID of the resource.
    EndPointName string
    Name of endpoint.
    EndPointServiceId string
    ID of endpoint service.
    SubnetId string
    ID of subnet instance.
    VpcId string
    ID of vpc instance.
    EndPointVip string
    VIP of endpoint ip.
    SecurityGroupsIds []string
    Ordered security groups associated with the endpoint.
    VpcEndPointId string
    ID of the resource.
    endPointName String
    Name of endpoint.
    endPointServiceId String
    ID of endpoint service.
    subnetId String
    ID of subnet instance.
    vpcId String
    ID of vpc instance.
    endPointVip String
    VIP of endpoint ip.
    securityGroupsIds List<String>
    Ordered security groups associated with the endpoint.
    vpcEndPointId String
    ID of the resource.
    endPointName string
    Name of endpoint.
    endPointServiceId string
    ID of endpoint service.
    subnetId string
    ID of subnet instance.
    vpcId string
    ID of vpc instance.
    endPointVip string
    VIP of endpoint ip.
    securityGroupsIds string[]
    Ordered security groups associated with the endpoint.
    vpcEndPointId string
    ID of the resource.
    end_point_name str
    Name of endpoint.
    end_point_service_id str
    ID of endpoint service.
    subnet_id str
    ID of subnet instance.
    vpc_id str
    ID of vpc instance.
    end_point_vip str
    VIP of endpoint ip.
    security_groups_ids Sequence[str]
    Ordered security groups associated with the endpoint.
    vpc_end_point_id str
    ID of the resource.
    endPointName String
    Name of endpoint.
    endPointServiceId String
    ID of endpoint service.
    subnetId String
    ID of subnet instance.
    vpcId String
    ID of vpc instance.
    endPointVip String
    VIP of endpoint ip.
    securityGroupsIds List<String>
    Ordered security groups associated with the endpoint.
    vpcEndPointId String
    ID of the resource.

    Outputs

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

    CdcId string
    CDC instance ID.
    CreateTime string
    Create Time.
    EndPointOwner string
    APPID.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    state of end point.
    CdcId string
    CDC instance ID.
    CreateTime string
    Create Time.
    EndPointOwner string
    APPID.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    state of end point.
    cdcId String
    CDC instance ID.
    createTime String
    Create Time.
    endPointOwner String
    APPID.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    state of end point.
    cdcId string
    CDC instance ID.
    createTime string
    Create Time.
    endPointOwner string
    APPID.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    state of end point.
    cdc_id str
    CDC instance ID.
    create_time str
    Create Time.
    end_point_owner str
    APPID.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    state of end point.
    cdcId String
    CDC instance ID.
    createTime String
    Create Time.
    endPointOwner String
    APPID.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    state of end point.

    Look up Existing VpcEndPoint Resource

    Get an existing VpcEndPoint 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?: VpcEndPointState, opts?: CustomResourceOptions): VpcEndPoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cdc_id: Optional[str] = None,
            create_time: Optional[str] = None,
            end_point_name: Optional[str] = None,
            end_point_owner: Optional[str] = None,
            end_point_service_id: Optional[str] = None,
            end_point_vip: Optional[str] = None,
            security_groups_ids: Optional[Sequence[str]] = None,
            state: Optional[str] = None,
            subnet_id: Optional[str] = None,
            vpc_end_point_id: Optional[str] = None,
            vpc_id: Optional[str] = None) -> VpcEndPoint
    func GetVpcEndPoint(ctx *Context, name string, id IDInput, state *VpcEndPointState, opts ...ResourceOption) (*VpcEndPoint, error)
    public static VpcEndPoint Get(string name, Input<string> id, VpcEndPointState? state, CustomResourceOptions? opts = null)
    public static VpcEndPoint get(String name, Output<String> id, VpcEndPointState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VpcEndPoint    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:
    CdcId string
    CDC instance ID.
    CreateTime string
    Create Time.
    EndPointName string
    Name of endpoint.
    EndPointOwner string
    APPID.
    EndPointServiceId string
    ID of endpoint service.
    EndPointVip string
    VIP of endpoint ip.
    SecurityGroupsIds List<string>
    Ordered security groups associated with the endpoint.
    State string
    state of end point.
    SubnetId string
    ID of subnet instance.
    VpcEndPointId string
    ID of the resource.
    VpcId string
    ID of vpc instance.
    CdcId string
    CDC instance ID.
    CreateTime string
    Create Time.
    EndPointName string
    Name of endpoint.
    EndPointOwner string
    APPID.
    EndPointServiceId string
    ID of endpoint service.
    EndPointVip string
    VIP of endpoint ip.
    SecurityGroupsIds []string
    Ordered security groups associated with the endpoint.
    State string
    state of end point.
    SubnetId string
    ID of subnet instance.
    VpcEndPointId string
    ID of the resource.
    VpcId string
    ID of vpc instance.
    cdcId String
    CDC instance ID.
    createTime String
    Create Time.
    endPointName String
    Name of endpoint.
    endPointOwner String
    APPID.
    endPointServiceId String
    ID of endpoint service.
    endPointVip String
    VIP of endpoint ip.
    securityGroupsIds List<String>
    Ordered security groups associated with the endpoint.
    state String
    state of end point.
    subnetId String
    ID of subnet instance.
    vpcEndPointId String
    ID of the resource.
    vpcId String
    ID of vpc instance.
    cdcId string
    CDC instance ID.
    createTime string
    Create Time.
    endPointName string
    Name of endpoint.
    endPointOwner string
    APPID.
    endPointServiceId string
    ID of endpoint service.
    endPointVip string
    VIP of endpoint ip.
    securityGroupsIds string[]
    Ordered security groups associated with the endpoint.
    state string
    state of end point.
    subnetId string
    ID of subnet instance.
    vpcEndPointId string
    ID of the resource.
    vpcId string
    ID of vpc instance.
    cdc_id str
    CDC instance ID.
    create_time str
    Create Time.
    end_point_name str
    Name of endpoint.
    end_point_owner str
    APPID.
    end_point_service_id str
    ID of endpoint service.
    end_point_vip str
    VIP of endpoint ip.
    security_groups_ids Sequence[str]
    Ordered security groups associated with the endpoint.
    state str
    state of end point.
    subnet_id str
    ID of subnet instance.
    vpc_end_point_id str
    ID of the resource.
    vpc_id str
    ID of vpc instance.
    cdcId String
    CDC instance ID.
    createTime String
    Create Time.
    endPointName String
    Name of endpoint.
    endPointOwner String
    APPID.
    endPointServiceId String
    ID of endpoint service.
    endPointVip String
    VIP of endpoint ip.
    securityGroupsIds List<String>
    Ordered security groups associated with the endpoint.
    state String
    state of end point.
    subnetId String
    ID of subnet instance.
    vpcEndPointId String
    ID of the resource.
    vpcId String
    ID of vpc instance.

    Import

    VPC end point can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/vpcEndPoint:VpcEndPoint example vpce-ntv3vy9k
    

    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.
    tencentcloud logo
    tencentcloud 1.81.188 published on Monday, Apr 28, 2025 by tencentcloudstack