"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Route53RecordTarget=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class Route53RecordTarget{constructor(record){this.record=record;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_route53_IRecordSet(record)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Route53RecordTarget),error}}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}if(!zone)throw new Error("Cannot bind to record without a zone");return{dnsName:this.record.domainName,hostedZoneId:zone.hostedZoneId}}}exports.Route53RecordTarget=Route53RecordTarget,_a=JSII_RTTI_SYMBOL_1,Route53RecordTarget[_a]={fqn:"aws-cdk-lib.aws_route53_targets.Route53RecordTarget",version:"2.148.1"};
