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.

AssociateVPCWithHostedZoneInput

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

type AssociateVPCWithHostedZoneInput struct { Comment *string `type:"string"` HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"` VPC *VPC `type:"structure" required:"true"` }

A complex type that contains information about the request to associate a VPC with a private hosted zone.

Comment

Type: *string

Optional: A comment about the association request.

HostedZoneId

Type: *string

The ID of the private hosted zone that you want to associate an Amazon VPC with.

Note that you can't associate a VPC with a hosted zone that doesn't have an existing VPC association.

HostedZoneId is a required field

VPC

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

Method

GoString

func (s AssociateVPCWithHostedZoneInput) GoString() string

GoString returns the string representation

SetComment

func (s *AssociateVPCWithHostedZoneInput) SetComment(v string) *AssociateVPCWithHostedZoneInput

SetComment sets the Comment field's value.

SetHostedZoneId

func (s *AssociateVPCWithHostedZoneInput) SetHostedZoneId(v string) *AssociateVPCWithHostedZoneInput

SetHostedZoneId sets the HostedZoneId field's value.

SetVPC

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

SetVPC sets the VPC field's value.

String

func (s AssociateVPCWithHostedZoneInput) String() string

String returns the string representation

Validate

func (s *AssociateVPCWithHostedZoneInput) Validate() error

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

On this page: