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.

TrafficPolicy

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

type TrafficPolicy struct { Comment *string `type:"string"` Document *string `type:"string" required:"true"` Id *string `min:"1" type:"string" required:"true"` Name *string `type:"string" required:"true"` Type *string `type:"string" required:"true" enum:"RRType"` Version *int64 `min:"1" type:"integer" required:"true"` }

A complex type that contains settings for a traffic policy.

Comment

Type: *string

The comment that you specify in the CreateTrafficPolicy request, if any.

Document

Type: *string

The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy in the CreateTrafficPolicy request. For more information about the JSON format, 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

Id

Type: *string

The ID that Amazon Route 53 assigned to a traffic policy when you created it.

Id is a required field

Name

Type: *string

The name that you specified when you created the traffic policy.

Name is a required field

Type

Type: *string

The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.

Type is a required field

Version

Type: *int64

The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of Version is always 1.

Version is a required field

Method

GoString

func (s TrafficPolicy) GoString() string

GoString returns the string representation

SetComment

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

SetComment sets the Comment field's value.

SetDocument

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

SetDocument sets the Document field's value.

SetId

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

SetId sets the Id field's value.

SetName

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

SetName sets the Name field's value.

SetType

func (s *TrafficPolicy) SetType(v string) *TrafficPolicy

SetType sets the Type field's value.

SetVersion

func (s *TrafficPolicy) SetVersion(v int64) *TrafficPolicy

SetVersion sets the Version field's value.

String

func (s TrafficPolicy) String() string

String returns the string representation

On this page: