Interface VpcLinkProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcLinkProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T10:47:11.808Z")
@Stability(Stable)
public interface VpcLinkProps
extends software.amazon.jsii.JsiiSerializable
Properties for a VpcLink.
Example:
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
import software.amazon.awscdk.aws_apigatewayv2_integrations.HttpAlbIntegration;
Vpc vpc = new Vpc(this, "VPC");
ApplicationLoadBalancer alb = ApplicationLoadBalancer.Builder.create(this, "AppLoadBalancer").vpc(vpc).build();
VpcLink vpcLink = VpcLink.Builder.create(this, "VpcLink").vpc(vpc).build();
// Creating an HTTP ALB Integration:
HttpAlbIntegration albIntegration = HttpAlbIntegration.Builder.create("ALBIntegration", alb.getListeners()[0]).build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpcLinkPropsstatic final classAn implementation forVpcLinkProps -
Method Summary
Modifier and TypeMethodDescriptionstatic VpcLinkProps.Builderbuilder()default List<ISecurityGroupRef> A list of security groups for the VPC link.default SubnetSelectionA list of subnets for the VPC link.getVpc()The VPC in which the private resources reside.default StringThe name used to label and identify the VPC link.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
The VPC in which the private resources reside. -
getSecurityGroups
A list of security groups for the VPC link.Default: - no security groups. Use `addSecurityGroups` to add security groups
-
getSubnets
A list of subnets for the VPC link.Default: - private subnets of the provided VPC. Use `addSubnets` to add more subnets
-
getVpcLinkName
The name used to label and identify the VPC link.Default: - automatically generated name
-
builder
- Returns:
- a
VpcLinkProps.BuilderofVpcLinkProps
-