"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApiGateway=exports.ApiGatewayDomain=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class ApiGatewayDomain{constructor(domainName){this.domainName=domainName,jsiiDeprecationWarnings.aws_cdk_lib_aws_apigateway_IDomainName(domainName)}bind(_record,_zone){return jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_IRecordSet(_record),jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_IHostedZone(_zone),{dnsName:this.domainName.domainNameAliasDomainName,hostedZoneId:this.domainName.domainNameAliasHostedZoneId}}}exports.ApiGatewayDomain=ApiGatewayDomain,_a=JSII_RTTI_SYMBOL_1,ApiGatewayDomain[_a]={fqn:"aws-cdk-lib.aws_route53_targets.ApiGatewayDomain",version:"2.13.0"};class ApiGateway extends ApiGatewayDomain{constructor(api){if(jsiiDeprecationWarnings.aws_cdk_lib_aws_apigateway_RestApiBase(api),!api.domainName)throw new Error("API does not define a default domain name");super(api.domainName)}}exports.ApiGateway=ApiGateway,_b=JSII_RTTI_SYMBOL_1,ApiGateway[_b]={fqn:"aws-cdk-lib.aws_route53_targets.ApiGateway",version:"2.13.0"};
//# sourceMappingURL=api-gateway-domain-name.js.map
