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
| Member | Description |
|---|---|
AWS | For integrating the API method request with an AWS service action, including the Lambda function-invoking action. |
AWS_PROXY | For integrating the API method request with the Lambda function-invoking action with the client request passed through as-is. |
HTTP | For integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC. |
HTTP_PROXY | For 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. |
MOCK | For integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend. |
Referenced by
IntegrationConfig.typetypetypeTypeTypeIntegrationProps.typetypetypeTypeType