All Implemented Interfaces:
IConstruct, IDependable, IResource, IVpcLink,, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.316Z") @Stability(Experimental) public class VpcLink extends Resource implements IVpcLink
(experimental) Define a new VPC Link Specifies an API Gateway VPC link for a HTTP API to access resources in an Amazon Virtual Private Cloud (VPC).


 Vpc vpc = new Vpc(this, "VPC");
 VpcLink vpcLink = VpcLink.Builder.create(this, "VpcLink").vpc(vpc).build();
  • Constructor Details

    • VpcLink

      protected VpcLink( objRef)
    • VpcLink

      protected VpcLink( initializationMode)
    • VpcLink

      @Stability(Experimental) public VpcLink(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VpcLinkProps props)
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromVpcLinkAttributes

      @Stability(Experimental) @NotNull public static IVpcLink fromVpcLinkAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull VpcLinkAttributes attrs)
      (experimental) Import a VPC Link by specifying its attributes.

      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • addSecurityGroups

      @Stability(Experimental) public void addSecurityGroups(@NotNull @NotNull ISecurityGroup... groups)
      (experimental) Adds the provided security groups to the vpc link.

      groups - This parameter is required.
    • addSubnets

      @Stability(Experimental) public void addSubnets(@NotNull @NotNull ISubnet... subnets)
      (experimental) Adds the provided subnets to the vpc link.

      subnets - This parameter is required.
    • getVpc

      @Stability(Experimental) @NotNull public IVpc getVpc()
      (experimental) The VPC to which this VPC Link is associated with.
      Specified by:
      getVpc in interface IVpcLink
    • getVpcLinkId

      @Stability(Experimental) @NotNull public String getVpcLinkId()
      (experimental) Physical ID of the VpcLink resource.
      Specified by:
      getVpcLinkId in interface IVpcLink