Class VpcLink.Builder

java.lang.Object
software.amazon.awscdk.services.apigatewayv2.VpcLink.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<VpcLink>
Enclosing class:
VpcLink

@Stability(Experimental) public static final class VpcLink.Builder extends Object implements software.amazon.jsii.Builder<VpcLink>
(experimental) A fluent builder for VpcLink.
  • Method Details

    • create

      @Stability(Experimental) public static VpcLink.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of VpcLink.Builder.
    • vpc

      @Stability(Experimental) public VpcLink.Builder vpc(IVpc vpc)
      (experimental) The VPC in which the private resources reside.

      Parameters:
      vpc - The VPC in which the private resources reside. This parameter is required.
      Returns:
      this
    • securityGroups

      @Stability(Experimental) public VpcLink.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
      (experimental) A list of security groups for the VPC link.

      Default: - no security groups. Use `addSecurityGroups` to add security groups

      Parameters:
      securityGroups - A list of security groups for the VPC link. This parameter is required.
      Returns:
      this
    • subnets

      @Stability(Experimental) public VpcLink.Builder subnets(SubnetSelection subnets)
      (experimental) A list of subnets for the VPC link.

      Default: - private subnets of the provided VPC. Use `addSubnets` to add more subnets

      Parameters:
      subnets - A list of subnets for the VPC link. This parameter is required.
      Returns:
      this
    • vpcLinkName

      @Stability(Experimental) public VpcLink.Builder vpcLinkName(String vpcLinkName)
      (experimental) The name used to label and identify the VPC link.

      Default: - automatically generated name

      Parameters:
      vpcLinkName - The name used to label and identify the VPC link. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public VpcLink build()
      Specified by:
      build in interface software.amazon.jsii.Builder<VpcLink>
      Returns:
      a newly built instance of VpcLink.