"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserPoolDomainTarget=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cloudfront_target_1=()=>{var tmp=require("./cloudfront-target");return cloudfront_target_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp},cx_api_1=()=>{var tmp=require("../../cx-api");return cx_api_1=()=>tmp,tmp};class UserPoolDomainTarget{domain;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_route53_targets.UserPoolDomainTarget",version:"2.256.1"};constructor(domain){this.domain=domain;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_UserPoolDomain(domain)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,UserPoolDomainTarget),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}return{dnsName:core_1().FeatureFlags.of(record).isEnabled(cx_api_1().USER_POOL_DOMAIN_NAME_METHOD_WITHOUT_CUSTOM_RESOURCE)?this.domain.cloudFrontEndpoint:this.domain.cloudFrontDomainName,hostedZoneId:cloudfront_target_1().CloudFrontTarget.getHostedZoneId(this.domain)}}}exports.UserPoolDomainTarget=UserPoolDomainTarget;
