"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApplicationLoadBalancerEndpoint=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),_util_1=require("./_util");class ApplicationLoadBalancerEndpoint{constructor(loadBalancer,options={}){this.loadBalancer=loadBalancer,this.options=options,jsiiDeprecationWarnings.aws_cdk_lib_aws_elasticloadbalancingv2_IApplicationLoadBalancer(loadBalancer),jsiiDeprecationWarnings.aws_cdk_lib_aws_globalaccelerator_endpoints_ApplicationLoadBalancerEndpointOptions(options),_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.ApplicationLoadBalancerEndpoint=ApplicationLoadBalancerEndpoint,_a=JSII_RTTI_SYMBOL_1,ApplicationLoadBalancerEndpoint[_a]={fqn:"aws-cdk-lib.aws_globalaccelerator_endpoints.ApplicationLoadBalancerEndpoint",version:"2.13.0"};
//# sourceMappingURL=alb.js.map
