UNPKG

1.19 kBTypeScriptView Raw
1import { IResource } from '@aws-cdk/core';
2/**
3 * Imported or created hosted zone
4 */
5export interface IHostedZone extends IResource {
6 /**
7 * ID of this hosted zone, such as "Z23ABC4XYZL05B"
8 *
9 * @attribute
10 */
11 readonly hostedZoneId: string;
12 /**
13 * FQDN of this hosted zone
14 */
15 readonly zoneName: string;
16 /**
17 * ARN of this hosted zone, such as arn:${Partition}:route53:::hostedzone/${Id}
18 *
19 * @attribute
20 */
21 readonly hostedZoneArn: string;
22 /**
23 * Returns the set of name servers for the specific hosted zone. For example:
24 * ns1.example.com.
25 *
26 * This attribute will be undefined for private hosted zones or hosted zones imported from another stack.
27 *
28 * @attribute
29 */
30 readonly hostedZoneNameServers?: string[];
31}
32/**
33 * Reference to a hosted zone
34 */
35export interface HostedZoneAttributes {
36 /**
37 * Identifier of the hosted zone
38 */
39 readonly hostedZoneId: string;
40 /**
41 * Name of the hosted zone
42 */
43 readonly zoneName: string;
44}
45/**
46 * Reference to a public hosted zone
47 */
48export interface PublicHostedZoneAttributes extends HostedZoneAttributes {
49}