"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HostedZoneGrants=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var util_1=()=>{var tmp=require("./util");return util_1=()=>tmp,tmp};class HostedZoneGrants{hostedZone;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_route53.HostedZoneGrants",version:"2.256.1"};static fromHostedZone(hostedZone){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_route53_INamedHostedZoneRef(hostedZone)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromHostedZone),error}return new HostedZoneGrants(hostedZone)}constructor(hostedZone){this.hostedZone=hostedZone}delegation(grantee,delegationOptions){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_iam_IGrantable(grantee),jsiiDeprecationWarnings().aws_cdk_lib_aws_route53_GrantDelegationOptions(delegationOptions)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.delegation),error}return(0,util_1().makeGrantDelegation)(grantee,this.hostedZone,delegationOptions)}}exports.HostedZoneGrants=HostedZoneGrants;
