"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.InterfaceVpcEndpointTarget=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core");class InterfaceVpcEndpointTarget{constructor(vpcEndpoint){this.vpcEndpoint=vpcEndpoint;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ec2_InterfaceVpcEndpoint(vpcEndpoint)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,InterfaceVpcEndpointTarget),error}this.cfnVpcEndpoint=this.vpcEndpoint.node.findChild("Resource")}bind(_record,_zone){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_IRecordSet(_record),jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_IHostedZone(_zone)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{dnsName:cdk.Fn.select(1,cdk.Fn.split(":",cdk.Fn.select(0,this.cfnVpcEndpoint.attrDnsEntries))),hostedZoneId:cdk.Fn.select(0,cdk.Fn.split(":",cdk.Fn.select(0,this.cfnVpcEndpoint.attrDnsEntries)))}}}exports.InterfaceVpcEndpointTarget=InterfaceVpcEndpointTarget,_a=JSII_RTTI_SYMBOL_1,InterfaceVpcEndpointTarget[_a]={fqn:"aws-cdk-lib.aws_route53_targets.InterfaceVpcEndpointTarget",version:"2.96.1"};
