aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 1.28 kB
JavaScript
;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.252.0"};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;