aws-cdk-lib.aws_apigateway.ConnectionType

enum ConnectionType

LanguageType name
.NETAmazon.CDK.AWS.APIGateway.ConnectionType
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#ConnectionType
Javasoftware.amazon.awscdk.services.apigateway.ConnectionType
Pythonaws_cdk.aws_apigateway.ConnectionType
TypeScript (source)aws-cdk-lib » aws_apigateway » ConnectionType

Example

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,
  options: {
    connectionType: apigateway.ConnectionType.VPC_LINK,
    vpcLink: link,
  },
});

Members

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

INTERNET

For connections through the public routable internet.


VPC_LINK

For private connections between API Gateway and a network load balancer in a VPC.