aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
55 lines (54 loc) • 1.36 kB
TypeScript
import * as iam from '../../aws-iam';
import { IResource } from '../../core';
/**
* Imported or created hosted zone
*/
export interface IHostedZone extends IResource {
/**
* ID of this hosted zone, such as "Z23ABC4XYZL05B"
*
* @attribute
*/
readonly hostedZoneId: string;
/**
* FQDN of this hosted zone
*/
readonly zoneName: string;
/**
* ARN of this hosted zone, such as arn:${Partition}:route53:::hostedzone/${Id}
*
* @attribute
*/
readonly hostedZoneArn: string;
/**
* Returns the set of name servers for the specific hosted zone. For example:
* ns1.example.com.
*
* This attribute will be undefined for private hosted zones or hosted zones imported from another stack.
*
* @attribute
*/
readonly hostedZoneNameServers?: string[];
/**
* Grant permissions to add delegation records to this zone
*/
grantDelegation(grantee: iam.IGrantable): iam.Grant;
}
/**
* Reference to a hosted zone
*/
export interface HostedZoneAttributes {
/**
* Identifier of the hosted zone
*/
readonly hostedZoneId: string;
/**
* Name of the hosted zone
*/
readonly zoneName: string;
}
/**
* Reference to a public hosted zone
*/
export interface PublicHostedZoneAttributes extends HostedZoneAttributes {
}