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.

CreateTrafficPolicyVersionInput

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

type CreateTrafficPolicyVersionInput struct { Comment *string `type:"string"` Document *string `type:"string" required:"true"` Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` }

A complex type that contains information about the traffic policy that you want to create a new version for.

Comment

Type: *string

The comment that you specified in the CreateTrafficPolicyVersion request, if any.

Document

Type: *string

The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion request. For more information about the JSON format, see CreateTrafficPolicy.

Document is a required field

Id

Type: *string

The ID of the traffic policy for which you want to create a new version.

Id is a required field

Method

GoString

func (s CreateTrafficPolicyVersionInput) GoString() string

GoString returns the string representation

SetComment

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

SetComment sets the Comment field's value.

SetDocument

func (s *CreateTrafficPolicyVersionInput) SetDocument(v string) *CreateTrafficPolicyVersionInput

SetDocument sets the Document field's value.

SetId

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

SetId sets the Id field's value.

String

func (s CreateTrafficPolicyVersionInput) String() string

String returns the string representation

Validate

func (s *CreateTrafficPolicyVersionInput) Validate() error

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

On this page: