"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.NetworkLoadBalancerEndpoint=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var _util_1=()=>{var tmp=require("./_util");return _util_1=()=>tmp,tmp};class NetworkLoadBalancerEndpoint{constructor(loadBalancer,options={}){this.loadBalancer=loadBalancer,this.options=options;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_elasticloadbalancingv2_INetworkLoadBalancer(loadBalancer),jsiiDeprecationWarnings().aws_cdk_lib_aws_globalaccelerator_endpoints_NetworkLoadBalancerEndpointProps(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,NetworkLoadBalancerEndpoint),error}(0,_util_1().validateWeight)(options.weight),this.region=loadBalancer.env.region}renderEndpointConfiguration(){return{endpointId:this.loadBalancer.loadBalancerArn,weight:this.options.weight,clientIpPreservationEnabled:this.options.preserveClientIp}}}exports.NetworkLoadBalancerEndpoint=NetworkLoadBalancerEndpoint,_a=JSII_RTTI_SYMBOL_1,NetworkLoadBalancerEndpoint[_a]={fqn:"aws-cdk-lib.aws_globalaccelerator_endpoints.NetworkLoadBalancerEndpoint",version:"2.148.1"};
