"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HttpServiceDiscoveryIntegration=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var integration_1=()=>{var tmp=require("./private/integration");return integration_1=()=>tmp,tmp},errors_1=()=>{var tmp=require("../../../core/lib/errors");return errors_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};class HttpServiceDiscoveryIntegration extends integration_1().HttpPrivateIntegration{service;props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_apigatewayv2_integrations.HttpServiceDiscoveryIntegration",version:"2.256.1"};constructor(id,service,props={}){super(id),this.service=service,this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_servicediscovery_IServiceRef(service),jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_integrations_HttpServiceDiscoveryIntegrationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,HttpServiceDiscoveryIntegration),error}}bind(options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_HttpRouteIntegrationBindOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}if(!this.props.vpcLink)throw new(errors_1()).ValidationError((0,literal_string_1().lit)`VpcLinkPropertyMandatory`,"The vpcLink property is mandatory",options.scope);return{method:this.props.method??this.httpMethod,payloadFormatVersion:this.payloadFormatVersion,type:this.integrationType,connectionType:this.connectionType,connectionId:this.props.vpcLink.vpcLinkId,uri:this.service.serviceRef.serviceArn,secureServerName:this.props.secureServerName,parameterMapping:this.props.parameterMapping}}}exports.HttpServiceDiscoveryIntegration=HttpServiceDiscoveryIntegration;
