Interface VpcLinkProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
VpcLinkProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:10.792Z") @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();
 
  • Method Details

    • getVpc

      @Stability(Stable) @NotNull IVpc getVpc()
      The VPC in which the private resources reside.
    • getSecurityGroups

      @Stability(Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
      A list of security groups for the VPC link.

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

    • getSubnets

      @Stability(Stable) @Nullable default SubnetSelection getSubnets()
      A list of subnets for the VPC link.

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

    • getVpcLinkName

      @Stability(Stable) @Nullable default String getVpcLinkName()
      The name used to label and identify the VPC link.

      Default: - automatically generated name

    • builder

      @Stability(Stable) static VpcLinkProps.Builder builder()
      Returns:
      a VpcLinkProps.Builder of VpcLinkProps