1. Packages
  2. Volcengine
  3. API Docs
  4. cr
  5. VpcEndpoint
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.cr.VpcEndpoint

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Provides a resource to manage cr vpc endpoint

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Cr.VpcEndpoint("foo", new()
        {
            Registry = "enterprise-1",
            Vpcs = new[]
            {
                new Volcengine.Cr.Inputs.VpcEndpointVpcArgs
                {
                    AccountId = 0,
                    VpcId = "vpc-3resbfzl3xgjk5zsk2iuq3vhk",
                },
                new Volcengine.Cr.Inputs.VpcEndpointVpcArgs
                {
                    SubnetId = "subnet-2d62do4697i8058ozfdszxl30",
                    VpcId = "vpc-3red9li8dd8g05zsk2iadytvy",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cr"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cr.NewVpcEndpoint(ctx, "foo", &cr.VpcEndpointArgs{
    			Registry: pulumi.String("enterprise-1"),
    			Vpcs: cr.VpcEndpointVpcArray{
    				&cr.VpcEndpointVpcArgs{
    					AccountId: pulumi.Int(0),
    					VpcId:     pulumi.String("vpc-3resbfzl3xgjk5zsk2iuq3vhk"),
    				},
    				&cr.VpcEndpointVpcArgs{
    					SubnetId: pulumi.String("subnet-2d62do4697i8058ozfdszxl30"),
    					VpcId:    pulumi.String("vpc-3red9li8dd8g05zsk2iadytvy"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cr.VpcEndpoint;
    import com.pulumi.volcengine.cr.VpcEndpointArgs;
    import com.pulumi.volcengine.cr.inputs.VpcEndpointVpcArgs;
    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 foo = new VpcEndpoint("foo", VpcEndpointArgs.builder()        
                .registry("enterprise-1")
                .vpcs(            
                    VpcEndpointVpcArgs.builder()
                        .accountId(0)
                        .vpcId("vpc-3resbfzl3xgjk5zsk2iuq3vhk")
                        .build(),
                    VpcEndpointVpcArgs.builder()
                        .subnetId("subnet-2d62do4697i8058ozfdszxl30")
                        .vpcId("vpc-3red9li8dd8g05zsk2iadytvy")
                        .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cr.VpcEndpoint("foo",
        registry="enterprise-1",
        vpcs=[
            volcengine.cr.VpcEndpointVpcArgs(
                account_id=0,
                vpc_id="vpc-3resbfzl3xgjk5zsk2iuq3vhk",
            ),
            volcengine.cr.VpcEndpointVpcArgs(
                subnet_id="subnet-2d62do4697i8058ozfdszxl30",
                vpc_id="vpc-3red9li8dd8g05zsk2iadytvy",
            ),
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.cr.VpcEndpoint("foo", {
        registry: "enterprise-1",
        vpcs: [
            {
                accountId: 0,
                vpcId: "vpc-3resbfzl3xgjk5zsk2iuq3vhk",
            },
            {
                subnetId: "subnet-2d62do4697i8058ozfdszxl30",
                vpcId: "vpc-3red9li8dd8g05zsk2iadytvy",
            },
        ],
    });
    
    resources:
      foo:
        type: volcengine:cr:VpcEndpoint
        properties:
          registry: enterprise-1
          vpcs:
            - accountId: 0
              vpcId: vpc-3resbfzl3xgjk5zsk2iuq3vhk
            - subnetId: subnet-2d62do4697i8058ozfdszxl30
              vpcId: vpc-3red9li8dd8g05zsk2iadytvy
    

    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: volcengine:cr: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.

    Constructor example

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

    var vpcEndpointResource = new Volcengine.Cr.VpcEndpoint("vpcEndpointResource", new()
    {
        Registry = "string",
        Vpcs = new[]
        {
            new Volcengine.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"),
    		},
    	},
    })
    
    var vpcEndpointResource = new VpcEndpoint("vpcEndpointResource", VpcEndpointArgs.builder()
        .registry("string")
        .vpcs(VpcEndpointVpcArgs.builder()
            .accountId(0)
            .subnetId("string")
            .vpcId("string")
            .build())
        .build());
    
    vpc_endpoint_resource = volcengine.cr.VpcEndpoint("vpcEndpointResource",
        registry="string",
        vpcs=[volcengine.cr.VpcEndpointVpcArgs(
            account_id=0,
            subnet_id="string",
            vpc_id="string",
        )])
    
    const vpcEndpointResource = new volcengine.cr.VpcEndpoint("vpcEndpointResource", {
        registry: "string",
        vpcs: [{
            accountId: 0,
            subnetId: "string",
            vpcId: "string",
        }],
    });
    
    type: volcengine: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

    The VpcEndpoint resource accepts the following input properties:

    Registry string
    The Cr Registry name.
    Vpcs List<Pulumi.Volcengine.Cr.Inputs.VpcEndpointVpc>
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    Registry string
    The Cr Registry name.
    Vpcs []VpcEndpointVpcArgs
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    registry String
    The Cr Registry name.
    vpcs List<VpcEndpointVpc>
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    registry string
    The Cr Registry name.
    vpcs VpcEndpointVpc[]
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    registry str
    The Cr Registry name.
    vpcs Sequence[VpcEndpointVpcArgs]
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    registry String
    The Cr Registry name.
    vpcs List<Property Map>
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.

    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 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)
    Resource lookup is not supported in YAML
    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
    The Cr Registry name.
    Vpcs List<Pulumi.Volcengine.Cr.Inputs.VpcEndpointVpc>
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    Registry string
    The Cr Registry name.
    Vpcs []VpcEndpointVpcArgs
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    registry String
    The Cr Registry name.
    vpcs List<VpcEndpointVpc>
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    registry string
    The Cr Registry name.
    vpcs VpcEndpointVpc[]
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    registry str
    The Cr Registry name.
    vpcs Sequence[VpcEndpointVpcArgs]
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.
    registry String
    The Cr Registry name.
    vpcs List<Property Map>
    List of vpc meta. When apply is executed for the first time, the vpcs in the tf file will be added to the existing vpcs, and subsequent apply will overwrite the existing vpcs with the vpcs in the tf file.

    Supporting Types

    VpcEndpointVpc, VpcEndpointVpcArgs

    AccountId int
    The id of the account. When you need to expose the Enterprise Edition instance to a VPC under another primary account, you need to specify the ID of the primary account to which the VPC belongs.
    SubnetId string
    The id of the subnet. If not specified, the subnet with the most remaining IPs under the VPC will be automatically selected.
    VpcId string
    The id of the vpc.
    AccountId int
    The id of the account. When you need to expose the Enterprise Edition instance to a VPC under another primary account, you need to specify the ID of the primary account to which the VPC belongs.
    SubnetId string
    The id of the subnet. If not specified, the subnet with the most remaining IPs under the VPC will be automatically selected.
    VpcId string
    The id of the vpc.
    accountId Integer
    The id of the account. When you need to expose the Enterprise Edition instance to a VPC under another primary account, you need to specify the ID of the primary account to which the VPC belongs.
    subnetId String
    The id of the subnet. If not specified, the subnet with the most remaining IPs under the VPC will be automatically selected.
    vpcId String
    The id of the vpc.
    accountId number
    The id of the account. When you need to expose the Enterprise Edition instance to a VPC under another primary account, you need to specify the ID of the primary account to which the VPC belongs.
    subnetId string
    The id of the subnet. If not specified, the subnet with the most remaining IPs under the VPC will be automatically selected.
    vpcId string
    The id of the vpc.
    account_id int
    The id of the account. When you need to expose the Enterprise Edition instance to a VPC under another primary account, you need to specify the ID of the primary account to which the VPC belongs.
    subnet_id str
    The id of the subnet. If not specified, the subnet with the most remaining IPs under the VPC will be automatically selected.
    vpc_id str
    The id of the vpc.
    accountId Number
    The id of the account. When you need to expose the Enterprise Edition instance to a VPC under another primary account, you need to specify the ID of the primary account to which the VPC belongs.
    subnetId String
    The id of the subnet. If not specified, the subnet with the most remaining IPs under the VPC will be automatically selected.
    vpcId String
    The id of the vpc.

    Import

    CR Vpc endpoint can be imported using the crVpcEndpoint:registry, e.g.

     $ pulumi import volcengine:cr/vpcEndpoint:VpcEndpoint default crVpcEndpoint:cr-basic
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine