1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VpcEndPointService
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.VpcEndPointService

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a VPC end point service

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.VpcEndPointService("example", {
        autoAcceptFlag: false,
        endPointServiceName: "tf-example",
        serviceInstanceId: "lb-jvb31e26",
        serviceType: "CLB",
        vpcId: "vpc-9r35gtih",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.VpcEndPointService("example",
        auto_accept_flag=False,
        end_point_service_name="tf-example",
        service_instance_id="lb-jvb31e26",
        service_type="CLB",
        vpc_id="vpc-9r35gtih")
    
    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.NewVpcEndPointService(ctx, "example", &tencentcloud.VpcEndPointServiceArgs{
    			AutoAcceptFlag:      pulumi.Bool(false),
    			EndPointServiceName: pulumi.String("tf-example"),
    			ServiceInstanceId:   pulumi.String("lb-jvb31e26"),
    			ServiceType:         pulumi.String("CLB"),
    			VpcId:               pulumi.String("vpc-9r35gtih"),
    		})
    		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.VpcEndPointService("example", new()
        {
            AutoAcceptFlag = false,
            EndPointServiceName = "tf-example",
            ServiceInstanceId = "lb-jvb31e26",
            ServiceType = "CLB",
            VpcId = "vpc-9r35gtih",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VpcEndPointService;
    import com.pulumi.tencentcloud.VpcEndPointServiceArgs;
    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 VpcEndPointService("example", VpcEndPointServiceArgs.builder()
                .autoAcceptFlag(false)
                .endPointServiceName("tf-example")
                .serviceInstanceId("lb-jvb31e26")
                .serviceType("CLB")
                .vpcId("vpc-9r35gtih")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:VpcEndPointService
        properties:
          autoAcceptFlag: false
          endPointServiceName: tf-example
          serviceInstanceId: lb-jvb31e26
          serviceType: CLB
          vpcId: vpc-9r35gtih
    

    Create VpcEndPointService Resource

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

    Constructor syntax

    new VpcEndPointService(name: string, args: VpcEndPointServiceArgs, opts?: CustomResourceOptions);
    @overload
    def VpcEndPointService(resource_name: str,
                           args: VpcEndPointServiceArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcEndPointService(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           auto_accept_flag: Optional[bool] = None,
                           end_point_service_name: Optional[str] = None,
                           service_instance_id: Optional[str] = None,
                           vpc_id: Optional[str] = None,
                           service_type: Optional[str] = None,
                           vpc_end_point_service_id: Optional[str] = None)
    func NewVpcEndPointService(ctx *Context, name string, args VpcEndPointServiceArgs, opts ...ResourceOption) (*VpcEndPointService, error)
    public VpcEndPointService(string name, VpcEndPointServiceArgs args, CustomResourceOptions? opts = null)
    public VpcEndPointService(String name, VpcEndPointServiceArgs args)
    public VpcEndPointService(String name, VpcEndPointServiceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VpcEndPointService
    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 VpcEndPointServiceArgs
    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 VpcEndPointServiceArgs
    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 VpcEndPointServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcEndPointServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcEndPointServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AutoAcceptFlag bool
    Whether to automatically accept.
    EndPointServiceName string
    Name of end point service.
    ServiceInstanceId string
    Id of service instance, like lb-xxx.
    VpcId string
    ID of vpc instance.
    ServiceType string
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    VpcEndPointServiceId string
    ID of the resource.
    AutoAcceptFlag bool
    Whether to automatically accept.
    EndPointServiceName string
    Name of end point service.
    ServiceInstanceId string
    Id of service instance, like lb-xxx.
    VpcId string
    ID of vpc instance.
    ServiceType string
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    VpcEndPointServiceId string
    ID of the resource.
    autoAcceptFlag Boolean
    Whether to automatically accept.
    endPointServiceName String
    Name of end point service.
    serviceInstanceId String
    Id of service instance, like lb-xxx.
    vpcId String
    ID of vpc instance.
    serviceType String
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    vpcEndPointServiceId String
    ID of the resource.
    autoAcceptFlag boolean
    Whether to automatically accept.
    endPointServiceName string
    Name of end point service.
    serviceInstanceId string
    Id of service instance, like lb-xxx.
    vpcId string
    ID of vpc instance.
    serviceType string
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    vpcEndPointServiceId string
    ID of the resource.
    auto_accept_flag bool
    Whether to automatically accept.
    end_point_service_name str
    Name of end point service.
    service_instance_id str
    Id of service instance, like lb-xxx.
    vpc_id str
    ID of vpc instance.
    service_type str
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    vpc_end_point_service_id str
    ID of the resource.
    autoAcceptFlag Boolean
    Whether to automatically accept.
    endPointServiceName String
    Name of end point service.
    serviceInstanceId String
    Id of service instance, like lb-xxx.
    vpcId String
    ID of vpc instance.
    serviceType String
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    vpcEndPointServiceId String
    ID of the resource.

    Outputs

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

    CdcId string
    CDC instance ID.
    CreateTime string
    Create Time.
    EndPointCount double
    Count of end point.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceOwner string
    APPID.
    ServiceVip string
    VIP of backend service.
    CdcId string
    CDC instance ID.
    CreateTime string
    Create Time.
    EndPointCount float64
    Count of end point.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceOwner string
    APPID.
    ServiceVip string
    VIP of backend service.
    cdcId String
    CDC instance ID.
    createTime String
    Create Time.
    endPointCount Double
    Count of end point.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceOwner String
    APPID.
    serviceVip String
    VIP of backend service.
    cdcId string
    CDC instance ID.
    createTime string
    Create Time.
    endPointCount number
    Count of end point.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceOwner string
    APPID.
    serviceVip string
    VIP of backend service.
    cdc_id str
    CDC instance ID.
    create_time str
    Create Time.
    end_point_count float
    Count of end point.
    id str
    The provider-assigned unique ID for this managed resource.
    service_owner str
    APPID.
    service_vip str
    VIP of backend service.
    cdcId String
    CDC instance ID.
    createTime String
    Create Time.
    endPointCount Number
    Count of end point.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceOwner String
    APPID.
    serviceVip String
    VIP of backend service.

    Look up Existing VpcEndPointService Resource

    Get an existing VpcEndPointService 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?: VpcEndPointServiceState, opts?: CustomResourceOptions): VpcEndPointService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_accept_flag: Optional[bool] = None,
            cdc_id: Optional[str] = None,
            create_time: Optional[str] = None,
            end_point_count: Optional[float] = None,
            end_point_service_name: Optional[str] = None,
            service_instance_id: Optional[str] = None,
            service_owner: Optional[str] = None,
            service_type: Optional[str] = None,
            service_vip: Optional[str] = None,
            vpc_end_point_service_id: Optional[str] = None,
            vpc_id: Optional[str] = None) -> VpcEndPointService
    func GetVpcEndPointService(ctx *Context, name string, id IDInput, state *VpcEndPointServiceState, opts ...ResourceOption) (*VpcEndPointService, error)
    public static VpcEndPointService Get(string name, Input<string> id, VpcEndPointServiceState? state, CustomResourceOptions? opts = null)
    public static VpcEndPointService get(String name, Output<String> id, VpcEndPointServiceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VpcEndPointService    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:
    AutoAcceptFlag bool
    Whether to automatically accept.
    CdcId string
    CDC instance ID.
    CreateTime string
    Create Time.
    EndPointCount double
    Count of end point.
    EndPointServiceName string
    Name of end point service.
    ServiceInstanceId string
    Id of service instance, like lb-xxx.
    ServiceOwner string
    APPID.
    ServiceType string
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    ServiceVip string
    VIP of backend service.
    VpcEndPointServiceId string
    ID of the resource.
    VpcId string
    ID of vpc instance.
    AutoAcceptFlag bool
    Whether to automatically accept.
    CdcId string
    CDC instance ID.
    CreateTime string
    Create Time.
    EndPointCount float64
    Count of end point.
    EndPointServiceName string
    Name of end point service.
    ServiceInstanceId string
    Id of service instance, like lb-xxx.
    ServiceOwner string
    APPID.
    ServiceType string
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    ServiceVip string
    VIP of backend service.
    VpcEndPointServiceId string
    ID of the resource.
    VpcId string
    ID of vpc instance.
    autoAcceptFlag Boolean
    Whether to automatically accept.
    cdcId String
    CDC instance ID.
    createTime String
    Create Time.
    endPointCount Double
    Count of end point.
    endPointServiceName String
    Name of end point service.
    serviceInstanceId String
    Id of service instance, like lb-xxx.
    serviceOwner String
    APPID.
    serviceType String
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    serviceVip String
    VIP of backend service.
    vpcEndPointServiceId String
    ID of the resource.
    vpcId String
    ID of vpc instance.
    autoAcceptFlag boolean
    Whether to automatically accept.
    cdcId string
    CDC instance ID.
    createTime string
    Create Time.
    endPointCount number
    Count of end point.
    endPointServiceName string
    Name of end point service.
    serviceInstanceId string
    Id of service instance, like lb-xxx.
    serviceOwner string
    APPID.
    serviceType string
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    serviceVip string
    VIP of backend service.
    vpcEndPointServiceId string
    ID of the resource.
    vpcId string
    ID of vpc instance.
    auto_accept_flag bool
    Whether to automatically accept.
    cdc_id str
    CDC instance ID.
    create_time str
    Create Time.
    end_point_count float
    Count of end point.
    end_point_service_name str
    Name of end point service.
    service_instance_id str
    Id of service instance, like lb-xxx.
    service_owner str
    APPID.
    service_type str
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    service_vip str
    VIP of backend service.
    vpc_end_point_service_id str
    ID of the resource.
    vpc_id str
    ID of vpc instance.
    autoAcceptFlag Boolean
    Whether to automatically accept.
    cdcId String
    CDC instance ID.
    createTime String
    Create Time.
    endPointCount Number
    Count of end point.
    endPointServiceName String
    Name of end point service.
    serviceInstanceId String
    Id of service instance, like lb-xxx.
    serviceOwner String
    APPID.
    serviceType String
    Type of service instance, like CLB, CDB, CRS, default is CLB.
    serviceVip String
    VIP of backend service.
    vpcEndPointServiceId String
    ID of the resource.
    vpcId String
    ID of vpc instance.

    Import

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

    $ pulumi import tencentcloud:index/vpcEndPointService:VpcEndPointService example vpcsvc-l770dxs5
    

    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.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack