"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Route53RecordTarget=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class Route53RecordTarget{constructor(record){this.record=record,jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_IRecordSet(record)}bind(_record,zone){if(jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_IRecordSet(_record),jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_IHostedZone(zone),!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.13.0"};
//# sourceMappingURL=route53-record.js.map
