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.

CreateTrafficPolicyInput

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

type CreateTrafficPolicyInput struct { Comment *string `type:"string"` Document *string `type:"string" required:"true"` Name *string `type:"string" required:"true"` }

A complex type that contains information about the traffic policy that you want to create.

Comment

Type: *string

(Optional) Any comments that you want to include about the traffic policy.

Document

Type: *string

The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format (https://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html).

Document is a required field

Name

Type: *string

The name of the traffic policy.

Name is a required field

Method

GoString

func (s CreateTrafficPolicyInput) GoString() string

GoString returns the string representation

SetComment

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

SetComment sets the Comment field's value.

SetDocument

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

SetDocument sets the Document field's value.

SetName

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

SetName sets the Name field's value.

String

func (s CreateTrafficPolicyInput) String() string

String returns the string representation

Validate

func (s *CreateTrafficPolicyInput) Validate() error

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

On this page: