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(Stable) public static final class VpcLink.Builder extends Object implements software.amazon.jsii.Builder<VpcLink>
A fluent builder for VpcLink.
  • Method Details

    • create

      @Stability(Stable) 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(Stable) public VpcLink.Builder vpc(IVpc vpc)
      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(Stable) public VpcLink.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
      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(Stable) public VpcLink.Builder subnets(SubnetSelection subnets)
      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(Stable) public VpcLink.Builder vpcLinkName(String vpcLinkName)
      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(Stable) public VpcLink build()
      Specified by:
      build in interface software.amazon.jsii.Builder<VpcLink>
      Returns:
      a newly built instance of VpcLink.