Try AWS Native preview for resources not in the classic version.
aws.route53.Zone
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Manages a Route53 Hosted Zone. For managing Domain Name System Security Extensions (DNSSEC), see the aws.route53.KeySigningKey
and aws.route53.HostedZoneDnsSec
resources.
Example Usage
Public Zone
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var primary = new Aws.Route53.Zone("primary");
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53.NewZone(ctx, "primary", nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.Zone;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var primary = new Zone("primary");
}
}
import pulumi
import pulumi_aws as aws
primary = aws.route53.Zone("primary")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const primary = new aws.route53.Zone("primary", {});
resources:
primary:
type: aws:route53:Zone
Public Subdomain Zone
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var main = new Aws.Route53.Zone("main");
var dev = new Aws.Route53.Zone("dev", new()
{
Tags =
{
{ "Environment", "dev" },
},
});
var dev_ns = new Aws.Route53.Record("dev-ns", new()
{
ZoneId = main.ZoneId,
Name = "dev.example.com",
Type = "NS",
Ttl = 30,
Records = dev.NameServers,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := route53.NewZone(ctx, "main", nil)
if err != nil {
return err
}
dev, err := route53.NewZone(ctx, "dev", &route53.ZoneArgs{
Tags: pulumi.StringMap{
"Environment": pulumi.String("dev"),
},
})
if err != nil {
return err
}
_, err = route53.NewRecord(ctx, "dev-ns", &route53.RecordArgs{
ZoneId: main.ZoneId,
Name: pulumi.String("dev.example.com"),
Type: pulumi.String("NS"),
Ttl: pulumi.Int(30),
Records: dev.NameServers,
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.Zone;
import com.pulumi.aws.route53.ZoneArgs;
import com.pulumi.aws.route53.Record;
import com.pulumi.aws.route53.RecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var main = new Zone("main");
var dev = new Zone("dev", ZoneArgs.builder()
.tags(Map.of("Environment", "dev"))
.build());
var dev_ns = new Record("dev-ns", RecordArgs.builder()
.zoneId(main.zoneId())
.name("dev.example.com")
.type("NS")
.ttl("30")
.records(dev.nameServers())
.build());
}
}
import pulumi
import pulumi_aws as aws
main = aws.route53.Zone("main")
dev = aws.route53.Zone("dev", tags={
"Environment": "dev",
})
dev_ns = aws.route53.Record("dev-ns",
zone_id=main.zone_id,
name="dev.example.com",
type="NS",
ttl=30,
records=dev.name_servers)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const main = new aws.route53.Zone("main", {});
const dev = new aws.route53.Zone("dev", {tags: {
Environment: "dev",
}});
const dev_ns = new aws.route53.Record("dev-ns", {
zoneId: main.zoneId,
name: "dev.example.com",
type: "NS",
ttl: 30,
records: dev.nameServers,
});
resources:
main:
type: aws:route53:Zone
dev:
type: aws:route53:Zone
properties:
tags:
Environment: dev
dev-ns:
type: aws:route53:Record
properties:
zoneId: ${main.zoneId}
name: dev.example.com
type: NS
ttl: '30'
records: ${dev.nameServers}
Private Zone
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var @private = new Aws.Route53.Zone("private", new()
{
Vpcs = new[]
{
new Aws.Route53.Inputs.ZoneVpcArgs
{
VpcId = aws_vpc.Example.Id,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53.NewZone(ctx, "private", &route53.ZoneArgs{
Vpcs: route53.ZoneVpcArray{
&route53.ZoneVpcArgs{
VpcId: pulumi.Any(aws_vpc.Example.Id),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.Zone;
import com.pulumi.aws.route53.ZoneArgs;
import com.pulumi.aws.route53.inputs.ZoneVpcArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var private_ = new Zone("private", ZoneArgs.builder()
.vpcs(ZoneVpcArgs.builder()
.vpcId(aws_vpc.example().id())
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
private = aws.route53.Zone("private", vpcs=[aws.route53.ZoneVpcArgs(
vpc_id=aws_vpc["example"]["id"],
)])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const _private = new aws.route53.Zone("private", {vpcs: [{
vpcId: aws_vpc.example.id,
}]});
resources:
private:
type: aws:route53:Zone
properties:
vpcs:
- vpcId: ${aws_vpc.example.id}
Create Zone Resource
new Zone(name: string, args?: ZoneArgs, opts?: CustomResourceOptions);
@overload
def Zone(resource_name: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
delegation_set_id: Optional[str] = None,
force_destroy: Optional[bool] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpcs: Optional[Sequence[ZoneVpcArgs]] = None)
@overload
def Zone(resource_name: str,
args: Optional[ZoneArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewZone(ctx *Context, name string, args *ZoneArgs, opts ...ResourceOption) (*Zone, error)
public Zone(string name, ZoneArgs? args = null, CustomResourceOptions? opts = null)
type: aws:route53:Zone
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Zone Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Zone resource accepts the following input properties:
- Comment string
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- Delegation
Set stringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- Force
Destroy bool Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- Name string
This is the name of the hosted zone.
- Dictionary<string, string>
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Vpcs
List<Zone
Vpc> Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.
- Comment string
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- Delegation
Set stringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- Force
Destroy bool Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- Name string
This is the name of the hosted zone.
- map[string]string
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Vpcs
[]Zone
Vpc Args Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.
- comment String
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- delegation
Set StringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- force
Destroy Boolean Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- name String
This is the name of the hosted zone.
- Map<String,String>
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- vpcs
List<Zone
Vpc> Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.
- comment string
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- delegation
Set stringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- force
Destroy boolean Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- name string
This is the name of the hosted zone.
- {[key: string]: string}
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- vpcs
Zone
Vpc[] Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.
- comment str
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- delegation_
set_ strid The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- force_
destroy bool Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- name str
This is the name of the hosted zone.
- Mapping[str, str]
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- vpcs
Sequence[Zone
Vpc Args] Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.
- comment String
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- delegation
Set StringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- force
Destroy Boolean Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- name String
This is the name of the hosted zone.
- Map<String>
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- vpcs List<Property Map>
Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Zone resource produces the following output properties:
- Arn string
The Amazon Resource Name (ARN) of the Hosted Zone.
- Id string
The provider-assigned unique ID for this managed resource.
- Name
Servers List<string> A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- Primary
Name stringServer The Route 53 name server that created the SOA record.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Zone
Id string The Hosted Zone ID. This can be referenced by zone records.
- Arn string
The Amazon Resource Name (ARN) of the Hosted Zone.
- Id string
The provider-assigned unique ID for this managed resource.
- Name
Servers []string A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- Primary
Name stringServer The Route 53 name server that created the SOA record.
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Zone
Id string The Hosted Zone ID. This can be referenced by zone records.
- arn String
The Amazon Resource Name (ARN) of the Hosted Zone.
- id String
The provider-assigned unique ID for this managed resource.
- name
Servers List<String> A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- primary
Name StringServer The Route 53 name server that created the SOA record.
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- zone
Id String The Hosted Zone ID. This can be referenced by zone records.
- arn string
The Amazon Resource Name (ARN) of the Hosted Zone.
- id string
The provider-assigned unique ID for this managed resource.
- name
Servers string[] A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- primary
Name stringServer The Route 53 name server that created the SOA record.
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- zone
Id string The Hosted Zone ID. This can be referenced by zone records.
- arn str
The Amazon Resource Name (ARN) of the Hosted Zone.
- id str
The provider-assigned unique ID for this managed resource.
- name_
servers Sequence[str] A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- primary_
name_ strserver The Route 53 name server that created the SOA record.
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- zone_
id str The Hosted Zone ID. This can be referenced by zone records.
- arn String
The Amazon Resource Name (ARN) of the Hosted Zone.
- id String
The provider-assigned unique ID for this managed resource.
- name
Servers List<String> A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- primary
Name StringServer The Route 53 name server that created the SOA record.
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- zone
Id String The Hosted Zone ID. This can be referenced by zone records.
Look up Existing Zone Resource
Get an existing Zone resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZoneState, opts?: CustomResourceOptions): Zone
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
comment: Optional[str] = None,
delegation_set_id: Optional[str] = None,
force_destroy: Optional[bool] = None,
name: Optional[str] = None,
name_servers: Optional[Sequence[str]] = None,
primary_name_server: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
vpcs: Optional[Sequence[ZoneVpcArgs]] = None,
zone_id: Optional[str] = None) -> Zone
func GetZone(ctx *Context, name string, id IDInput, state *ZoneState, opts ...ResourceOption) (*Zone, error)
public static Zone Get(string name, Input<string> id, ZoneState? state, CustomResourceOptions? opts = null)
public static Zone get(String name, Output<String> id, ZoneState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
The Amazon Resource Name (ARN) of the Hosted Zone.
- Comment string
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- Delegation
Set stringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- Force
Destroy bool Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- Name string
This is the name of the hosted zone.
- Name
Servers List<string> A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- Primary
Name stringServer The Route 53 name server that created the SOA record.
- Dictionary<string, string>
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Vpcs
List<Zone
Vpc> Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.- Zone
Id string The Hosted Zone ID. This can be referenced by zone records.
- Arn string
The Amazon Resource Name (ARN) of the Hosted Zone.
- Comment string
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- Delegation
Set stringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- Force
Destroy bool Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- Name string
This is the name of the hosted zone.
- Name
Servers []string A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- Primary
Name stringServer The Route 53 name server that created the SOA record.
- map[string]string
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Vpcs
[]Zone
Vpc Args Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.- Zone
Id string The Hosted Zone ID. This can be referenced by zone records.
- arn String
The Amazon Resource Name (ARN) of the Hosted Zone.
- comment String
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- delegation
Set StringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- force
Destroy Boolean Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- name String
This is the name of the hosted zone.
- name
Servers List<String> A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- primary
Name StringServer The Route 53 name server that created the SOA record.
- Map<String,String>
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- vpcs
List<Zone
Vpc> Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.- zone
Id String The Hosted Zone ID. This can be referenced by zone records.
- arn string
The Amazon Resource Name (ARN) of the Hosted Zone.
- comment string
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- delegation
Set stringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- force
Destroy boolean Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- name string
This is the name of the hosted zone.
- name
Servers string[] A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- primary
Name stringServer The Route 53 name server that created the SOA record.
- {[key: string]: string}
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- vpcs
Zone
Vpc[] Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.- zone
Id string The Hosted Zone ID. This can be referenced by zone records.
- arn str
The Amazon Resource Name (ARN) of the Hosted Zone.
- comment str
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- delegation_
set_ strid The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- force_
destroy bool Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- name str
This is the name of the hosted zone.
- name_
servers Sequence[str] A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- primary_
name_ strserver The Route 53 name server that created the SOA record.
- Mapping[str, str]
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- vpcs
Sequence[Zone
Vpc Args] Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.- zone_
id str The Hosted Zone ID. This can be referenced by zone records.
- arn String
The Amazon Resource Name (ARN) of the Hosted Zone.
- comment String
A comment for the hosted zone. Defaults to 'Managed by Pulumi'.
- delegation
Set StringId The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with
vpc
as delegation sets can only be used for public zones.- force
Destroy Boolean Whether to destroy all records (possibly managed outside of this provider) in the zone when destroying the zone.
- name String
This is the name of the hosted zone.
- name
Servers List<String> A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs.
- primary
Name StringServer The Route 53 name server that created the SOA record.
- Map<String>
A mapping of tags to assign to the zone. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- vpcs List<Property Map>
Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the
delegation_set_id
argument in this resource and anyaws.route53.ZoneAssociation
resource specifying the same zone ID. Detailed below.- zone
Id String The Hosted Zone ID. This can be referenced by zone records.
Supporting Types
ZoneVpc, ZoneVpcArgs
- vpc_
id str ID of the VPC to associate.
- vpc_
region str Region of the VPC to associate. Defaults to AWS provider region.
Import
Using pulumi import
, import Route53 Zones using the zone id
. For example:
$ pulumi import aws:route53/zone:Zone myzone Z1D633PJN98FT9
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.