Skip to content
v2.273.0

IntegrationType 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
AWSFor integrating the API method request with an AWS service action, including the Lambda function-invoking action.
AWS_PROXYFor integrating the API method request with the Lambda function-invoking action with the client request passed through as-is.
HTTPFor integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC.
HTTP_PROXYFor integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is.
MOCKFor integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.

Referenced by ​