HostedZone
A resource of the AWS provider, version 0.3.0, in its DNS group. Import it with:
import HostedZone from "aws/dns"Example
resource HostedZone example {
name = "example-value"
comment = "example-value"
privateZone = false
vpcId = "example-value"
vpcRegion = "example-value"
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | The domain name for the hosted zone (e.g., 'example.com') |
comment | string | — | No | A comment for the hosted zone |
privateZone | boolean | false | No | Whether this is a private hosted zone |
vpcId | string | — | No | VPC ID to associate with private hosted zone |
vpcRegion | string | — | No | VPC region for private hosted zone |
tags | object | — | No | Tags to apply to the hosted zone |
Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
hostedZoneId | string | No | The hosted zone ID (without /hostedzone/ prefix) |
nameServers | any[] | No | The name servers for the hosted zone |
resourceRecordSetCount | number | No | The number of resource record sets in the hosted zone |
callerReference | string | No | A unique string that identifies the request to create the zone |
arn | string | Yes | The Amazon Resource Name (ARN) of the hosted zone |