aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
20 lines (19 loc) • 671 B
TypeScript
import type { GrantDelegationOptions, INamedHostedZoneRef } from './hosted-zone-ref';
import type { IGrantable } from '../../aws-iam';
import type { Grant } from '../../aws-iam/lib/grant';
/**
* Collection of grant methods for a INamedHostedZoneRef
*/
export declare class HostedZoneGrants {
private readonly hostedZone;
/**
* Creates grants for INamedHostedZoneRef
*
*/
static fromHostedZone(hostedZone: INamedHostedZoneRef): HostedZoneGrants;
private constructor();
/**
* Grant permissions to add delegation records to this zone
*/
delegation(grantee: IGrantable, delegationOptions?: GrantDelegationOptions): Grant;
}