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.

HostedZone

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

type HostedZone struct { CallerReference *string `min:"1" type:"string" required:"true"` Config *HostedZoneConfig `type:"structure"` Id *string `type:"string" required:"true"` LinkedService *LinkedService `type:"structure"` Name *string `type:"string" required:"true"` ResourceRecordSetCount *int64 `type:"long"` }

A complex type that contains general information about the hosted zone.

CallerReference

Type: *string

The value that you specified for CallerReference when you created the hosted zone.

CallerReference is a required field

Config

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.

Id

Type: *string

The ID that Amazon Route 53 assigned to the hosted zone when you created it.

Id is a required field

LinkedService

If a health check or hosted zone was created by another service, LinkedService is a complex type that describes the service that created the resource. When a resource is created by another service, you can't edit or delete it using Amazon Route 53.

Name

Type: *string

The name of the domain. For public hosted zones, this is the name that you have registered with your DNS registrar.

For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see CreateHostedZone.

Name is a required field

ResourceRecordSetCount

Type: *int64

The number of resource record sets in the hosted zone.

Method

GoString

func (s HostedZone) GoString() string

GoString returns the string representation

SetCallerReference

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

SetCallerReference sets the CallerReference field's value.

SetConfig

func (s *HostedZone) SetConfig(v *HostedZoneConfig) *HostedZone

SetConfig sets the Config field's value.

SetId

func (s *HostedZone) SetId(v string) *HostedZone

SetId sets the Id field's value.

SetLinkedService

func (s *HostedZone) SetLinkedService(v *LinkedService) *HostedZone

SetLinkedService sets the LinkedService field's value.

SetName

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

SetName sets the Name field's value.

SetResourceRecordSetCount

func (s *HostedZone) SetResourceRecordSetCount(v int64) *HostedZone

SetResourceRecordSetCount sets the ResourceRecordSetCount field's value.

String

func (s HostedZone) String() string

String returns the string representation

On this page: