API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type CreateHostedZoneInput struct { CallerReference *string `min:"1" type:"string" required:"true"` DelegationSetId *string `type:"string"` HostedZoneConfig *HostedZoneConfig `type:"structure"` Name *string `type:"string" required:"true"` VPC *VPC `type:"structure"` }

A complex type that contains information about the request to create a public or private hosted zone.


Type: *string

A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you submit a CreateHostedZone request. CallerReference can be any unique string, for example, a date/time stamp.

CallerReference is a required field


Type: *string

If you want to associate a reusable delegation set with this hosted zone, the ID that Amazon Route 53 assigned to the reusable delegation set when you created it. For more information about reusable delegation sets, see CreateReusableDelegationSet.


A complex type that contains an optional comment about your hosted zone. If you don't want to specify a comment, omit both the HostedZoneConfig and Comment elements.


Type: *string

The name of the domain. Specify a fully qualified domain name, for example, The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Route 53 treats (without a trailing dot) and (with a trailing dot) as identical.

If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Route 53, change the name servers for your domain to the set of NameServers that CreateHostedZone returns in DelegationSet.

Name is a required field


(Private hosted zones only) A complex type that contains information about an Amazon VPC.



func (s CreateHostedZoneInput) GoString() string

GoString returns the string representation


func (s *CreateHostedZoneInput) SetCallerReference(v string) *CreateHostedZoneInput

SetCallerReference sets the CallerReference field's value.


func (s *CreateHostedZoneInput) SetDelegationSetId(v string) *CreateHostedZoneInput

SetDelegationSetId sets the DelegationSetId field's value.


func (s *CreateHostedZoneInput) SetHostedZoneConfig(v *HostedZoneConfig) *CreateHostedZoneInput

SetHostedZoneConfig sets the HostedZoneConfig field's value.


func (s *CreateHostedZoneInput) SetName(v string) *CreateHostedZoneInput

SetName sets the Name field's value.


func (s *CreateHostedZoneInput) SetVPC(v *VPC) *CreateHostedZoneInput

SetVPC sets the VPC field's value.


func (s CreateHostedZoneInput) String() string

String returns the string representation


func (s *CreateHostedZoneInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: