UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 862 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HttpServiceDiscoveryIntegration=void 0;var integration_1=()=>{var tmp=require("./private/integration");return integration_1=()=>tmp,tmp};class HttpServiceDiscoveryIntegration extends integration_1().HttpPrivateIntegration{constructor(id,service,props={}){super(id),this.service=service,this.props=props}bind(_options){if(!this.props.vpcLink)throw new Error("The vpcLink property is mandatory");return{method:this.props.method??this.httpMethod,payloadFormatVersion:this.payloadFormatVersion,type:this.integrationType,connectionType:this.connectionType,connectionId:this.props.vpcLink.vpcLinkId,uri:this.service.serviceArn,secureServerName:this.props.secureServerName,parameterMapping:this.props.parameterMapping}}}exports.HttpServiceDiscoveryIntegration=HttpServiceDiscoveryIntegration;