Skip to content
v2.274.0

ConnectionType Enum ​

Example ​

ts
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';

const vpc = new ec2.Vpc(this, 'VPC');
const nlb = new elbv2.NetworkLoadBalancer(this, 'NLB', {
  vpc,
});
const link = new apigateway.VpcLink(this, 'link', {
  targets: [nlb],
});

const integration = new apigateway.Integration({
  type: apigateway.IntegrationType.HTTP_PROXY,
  integrationHttpMethod: 'ANY',
  options: {
    connectionType: apigateway.ConnectionType.VPC_LINK,
    vpcLink: link,
  },
});

Members ​

MemberDescription
INTERNETFor connections through the public routable internet.
VPC_LINKFor private connections between API Gateway and a network load balancer in a VPC.

Referenced by ​

  • IntegrationOptions.connectionTypeconnection_typeconnectionTypeConnectionTypeConnectionType