aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 1.08 kB
JavaScript
Object.defineProperty(exports,"__esModule",{value:!0}),exports.HttpPrivateIntegration=void 0;var aws_apigatewayv2_1=()=>{var tmp=require("../../../../aws-apigatewayv2");return aws_apigatewayv2_1=()=>tmp,tmp},errors_1=()=>{var tmp=require("../../../../core/lib/errors");return errors_1=()=>tmp,tmp};class HttpPrivateIntegration extends aws_apigatewayv2_1().HttpRouteIntegration{constructor(){super(...arguments),this.httpMethod=aws_apigatewayv2_1().HttpMethod.ANY,this.payloadFormatVersion=aws_apigatewayv2_1().PayloadFormatVersion.VERSION_1_0,this.integrationType=aws_apigatewayv2_1().HttpIntegrationType.HTTP_PROXY,this.connectionType=aws_apigatewayv2_1().HttpConnectionType.VPC_LINK}_configureVpcLink(bindOptions,configOptions){let vpcLink=configOptions.vpcLink;if(!vpcLink){if(!configOptions.vpc)throw new(errors_1()).ValidationError("One of vpcLink or vpc should be provided for private integration",bindOptions.scope);vpcLink=bindOptions.route.httpApi.addVpcLink({vpc:configOptions.vpc})}return vpcLink}}exports.HttpPrivateIntegration=HttpPrivateIntegration;
;