"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AlbTarget=exports.AlbArnTarget=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),elbv2=require("../../aws-elasticloadbalancingv2");class AlbArnTarget{constructor(albArn,port){this.albArn=albArn,this.port=port}attachToNetworkTargetGroup(targetGroup){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_elasticloadbalancingv2_INetworkTargetGroup(targetGroup)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.attachToNetworkTargetGroup),error}return this.attach(targetGroup)}attach(_targetGroup){return{targetType:elbv2.TargetType.ALB,targetJson:{id:this.albArn,port:this.port}}}}exports.AlbArnTarget=AlbArnTarget,_a=JSII_RTTI_SYMBOL_1,AlbArnTarget[_a]={fqn:"aws-cdk-lib.aws_elasticloadbalancingv2_targets.AlbArnTarget",version:"2.96.1"};class AlbTarget extends AlbArnTarget{constructor(alb,port){super(alb.loadBalancerArn,port);try{jsiiDeprecationWarnings.aws_cdk_lib_aws_elasticloadbalancingv2_ApplicationLoadBalancer(alb)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AlbTarget),error}}}exports.AlbTarget=AlbTarget,_b=JSII_RTTI_SYMBOL_1,AlbTarget[_b]={fqn:"aws-cdk-lib.aws_elasticloadbalancingv2_targets.AlbTarget",version:"2.96.1"};
