1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. cr
  6. VpcEndpoint
Viewing docs for bytepluscc v0.0.42
published on Monday, Jul 20, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.42
published on Monday, Jul 20, 2026 by Byteplus

    VPC access endpoint

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const cRVpcEndpointDemo = new bytepluscc.cr.VpcEndpoint("CRVpcEndpointDemo", {
        registry: "registry_xxxxxx",
        vpcs: [{
            account_id: 21000000000000,
            subnet_id: "subnet_id_xxxx",
            vpc_id: "vpc_id_xxxx",
        }],
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    c_r_vpc_endpoint_demo = bytepluscc.cr.VpcEndpoint("CRVpcEndpointDemo",
        registry="registry_xxxxxx",
        vpcs=[{
            "account_id": 21000000000000,
            "subnet_id": "subnet_id_xxxx",
            "vpc_id": "vpc_id_xxxx",
        }])
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/cr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cr.NewVpcEndpoint(ctx, "CRVpcEndpointDemo", &cr.VpcEndpointArgs{
    			Registry: pulumi.String("registry_xxxxxx"),
    			Vpcs: cr.VpcEndpointVpcArray{
    				&cr.VpcEndpointVpcArgs{
    					Account_id: 21000000000000,
    					Subnet_id:  "subnet_id_xxxx",
    					Vpc_id:     "vpc_id_xxxx",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var cRVpcEndpointDemo = new Bytepluscc.Cr.VpcEndpoint("CRVpcEndpointDemo", new()
        {
            Registry = "registry_xxxxxx",
            Vpcs = new[]
            {
                new Bytepluscc.Cr.Inputs.VpcEndpointVpcArgs
                {
                    Account_id = 21000000000000,
                    Subnet_id = "subnet_id_xxxx",
                    Vpc_id = "vpc_id_xxxx",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.cr.VpcEndpoint;
    import com.byteplus.bytepluscc.cr.VpcEndpointArgs;
    import com.pulumi.bytepluscc.cr.inputs.VpcEndpointVpcArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 cRVpcEndpointDemo = new VpcEndpoint("cRVpcEndpointDemo", VpcEndpointArgs.builder()
                .registry("registry_xxxxxx")
                .vpcs(VpcEndpointVpcArgs.builder()
                    .account_id(21000000000000)
                    .subnet_id("subnet_id_xxxx")
                    .vpc_id("vpc_id_xxxx")
                    .build())
                .build());
    
        }
    }
    
    resources:
      cRVpcEndpointDemo:
        type: bytepluscc:cr:VpcEndpoint
        name: CRVpcEndpointDemo
        properties:
          registry: registry_xxxxxx
          vpcs:
            - account_id: 2.1e+13
              subnet_id: subnet_id_xxxx
              vpc_id: vpc_id_xxxx
    
    pulumi {
      required_providers {
        bytepluscc = {
          source = "pulumi/bytepluscc"
        }
      }
    }
    
    resource "bytepluscc_cr_vpcendpoint" "CRVpcEndpointDemo" {
      registry = "registry_xxxxxx"
      vpcs {
        account_id = 21000000000000
        subnet_id  = "subnet_id_xxxx"
        vpc_id     = "vpc_id_xxxx"
      }
    }
    

    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,
                    registry: Optional[str] = None,
                    vpcs: Optional[Sequence[VpcEndpointVpcArgs]] = 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: bytepluscc:cr:VpcEndpoint
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "bytepluscc_cr_vpcendpoint" "name" {
        # resource properties
    }

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vpcEndpointResource = new Bytepluscc.Cr.VpcEndpoint("vpcEndpointResource", new()
    {
        Registry = "string",
        Vpcs = new[]
        {
            new Bytepluscc.Cr.Inputs.VpcEndpointVpcArgs
            {
                AccountId = 0,
                SubnetId = "string",
                VpcId = "string",
            },
        },
    });
    
    example, err := cr.NewVpcEndpoint(ctx, "vpcEndpointResource", &cr.VpcEndpointArgs{
    	Registry: pulumi.String("string"),
    	Vpcs: cr.VpcEndpointVpcArray{
    		&cr.VpcEndpointVpcArgs{
    			AccountId: pulumi.Int(0),
    			SubnetId:  pulumi.String("string"),
    			VpcId:     pulumi.String("string"),
    		},
    	},
    })
    
    resource "bytepluscc_cr_vpcendpoint" "vpcEndpointResource" {
      registry = "string"
      vpcs {
        account_id = 0
        subnet_id  = "string"
        vpc_id     = "string"
      }
    }
    
    var vpcEndpointResource = new com.byteplus.bytepluscc.cr.VpcEndpoint("vpcEndpointResource", com.byteplus.bytepluscc.cr.VpcEndpointArgs.builder()
        .registry("string")
        .vpcs(VpcEndpointVpcArgs.builder()
            .accountId(0)
            .subnetId("string")
            .vpcId("string")
            .build())
        .build());
    
    vpc_endpoint_resource = bytepluscc.cr.VpcEndpoint("vpcEndpointResource",
        registry="string",
        vpcs=[{
            "account_id": 0,
            "subnet_id": "string",
            "vpc_id": "string",
        }])
    
    const vpcEndpointResource = new bytepluscc.cr.VpcEndpoint("vpcEndpointResource", {
        registry: "string",
        vpcs: [{
            accountId: 0,
            subnetId: "string",
            vpcId: "string",
        }],
    });
    
    type: bytepluscc:cr:VpcEndpoint
    properties:
        registry: string
        vpcs:
            - accountId: 0
              subnetId: string
              vpcId: string
    

    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:

    Registry string
    Image repository instance name
    Vpcs List<Byteplus.VpcEndpointVpc>
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    Registry string
    Image repository instance name
    Vpcs []VpcEndpointVpcArgs
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry string
    Image repository instance name
    vpcs list(object)
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry String
    Image repository instance name
    vpcs List<VpcEndpointVpc>
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry string
    Image repository instance name
    vpcs VpcEndpointVpc[]
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry str
    Image repository instance name
    vpcs Sequence[VpcEndpointVpcArgs]
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry String
    Image repository instance name
    vpcs List<Property Map>
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcEndpoint 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 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,
            registry: Optional[str] = None,
            vpcs: Optional[Sequence[VpcEndpointVpcArgs]] = 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: bytepluscc:cr:VpcEndpoint    get:      id: ${id}
    import {
      to = bytepluscc_cr_vpcendpoint.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:
    Registry string
    Image repository instance name
    Vpcs List<Byteplus.VpcEndpointVpc>
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    Registry string
    Image repository instance name
    Vpcs []VpcEndpointVpcArgs
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry string
    Image repository instance name
    vpcs list(object)
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry String
    Image repository instance name
    vpcs List<VpcEndpointVpc>
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry string
    Image repository instance name
    vpcs VpcEndpointVpc[]
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry str
    Image repository instance name
    vpcs Sequence[VpcEndpointVpcArgs]
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    registry String
    Image repository instance name
    vpcs List<Property Map>
    Specify which VPCs can access this Standard Edition image repository instance Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.

    Supporting Types

    VpcEndpointVpc, VpcEndpointVpcArgs

    AccountId int
    Primary account ID for the VPC
    SubnetId string
    Subnet ID
    VpcId string
    VPC ID。
    AccountId int
    Primary account ID for the VPC
    SubnetId string
    Subnet ID
    VpcId string
    VPC ID。
    account_id number
    Primary account ID for the VPC
    subnet_id string
    Subnet ID
    vpc_id string
    VPC ID。
    accountId Integer
    Primary account ID for the VPC
    subnetId String
    Subnet ID
    vpcId String
    VPC ID。
    accountId number
    Primary account ID for the VPC
    subnetId string
    Subnet ID
    vpcId string
    VPC ID。
    account_id int
    Primary account ID for the VPC
    subnet_id str
    Subnet ID
    vpc_id str
    VPC ID。
    accountId Number
    Primary account ID for the VPC
    subnetId String
    Subnet ID
    vpcId String
    VPC ID。

    Import

    $ pulumi import bytepluscc:cr/vpcEndpoint:VpcEndpoint example "registry"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.42
    published on Monday, Jul 20, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial