AWS SDK for Go (PILOT)
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 https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateHostedZoneInput

import "github.com/aws/aws-sdk-go/service/route53"

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.

CallerReference

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

DelegationSetId

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.

HostedZoneConfig

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.

Name

Type: *string

The name of the domain. Specify a fully qualified domain name, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (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

VPC

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

Method

GoString

func (s CreateHostedZoneInput) GoString() string

GoString returns the string representation

SetCallerReference

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

SetCallerReference sets the CallerReference field's value.

SetDelegationSetId

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

SetDelegationSetId sets the DelegationSetId field's value.

SetHostedZoneConfig

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

SetHostedZoneConfig sets the HostedZoneConfig field's value.

SetName

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

SetName sets the Name field's value.

SetVPC

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

SetVPC sets the VPC field's value.

String

func (s CreateHostedZoneInput) String() string

String returns the string representation

Validate

func (s *CreateHostedZoneInput) Validate() error

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

On this page: