"use strict";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");var errors_1=()=>{var tmp=require("../../core/lib/errors");return errors_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};class Route53RecordTarget{record;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_route53_targets.Route53RecordTarget",version:"2.256.1"};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(errors_1()).ValidationError((0,literal_string_1().lit)`CannotBindRecordWithoutZone`,"Cannot bind to record without a zone",record);return{dnsName:this.record.domainName,hostedZoneId:zone.hostedZoneId}}}exports.Route53RecordTarget=Route53RecordTarget;
