"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppSyncTarget=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};class AppSyncTarget{graphqlApi;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_route53_targets.AppSyncTarget",version:"2.256.1"};constructor(graphqlApi){this.graphqlApi=graphqlApi;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_appsync_GraphqlApi(graphqlApi)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AppSyncTarget),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:this.graphqlApi.appSyncDomainName,hostedZoneId:cloudfront_target_1().CloudFrontTarget.getHostedZoneId(this.graphqlApi)}}}exports.AppSyncTarget=AppSyncTarget;
