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 Summary
Modifier and TypeMethodDescriptionbuild()
static VpcLink.Builder
securityGroups
(List<? extends ISecurityGroup> securityGroups) A list of security groups for the VPC link.subnets
(SubnetSelection subnets) A list of subnets for the VPC link.The VPC in which the private resources reside.vpcLinkName
(String vpcLinkName) The name used to label and identify the VPC link.
-
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
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
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
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
-