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.

TrafficPolicyInstance

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

type TrafficPolicyInstance struct { HostedZoneId *string `type:"string" required:"true"` Id *string `min:"1" type:"string" required:"true"` Message *string `type:"string" required:"true"` Name *string `type:"string" required:"true"` State *string `type:"string" required:"true"` TTL *int64 `type:"long" required:"true"` TrafficPolicyId *string `min:"1" type:"string" required:"true"` TrafficPolicyType *string `type:"string" required:"true" enum:"RRType"` TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"` }

A complex type that contains settings for the new traffic policy instance.

HostedZoneId

Type: *string

The ID of the hosted zone that Amazon Route 53 created resource record sets in.

HostedZoneId is a required field

Id

Type: *string

The ID that Amazon Route 53 assigned to the new traffic policy instance.

Id is a required field

Message

Type: *string

If State is Failed, an explanation of the reason for the failure. If State is another value, Message is empty.

Message is a required field

Name

Type: *string

The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.

Name is a required field

State

Type: *string

The value of State is one of the following values:

AppliedAmazon Route 53 has finished creating resource record sets, and changes have propagated to all Route 53 edge locations.

CreatingRoute 53 is creating the resource record sets. Use GetTrafficPolicyInstance to confirm that the CreateTrafficPolicyInstance request completed successfully.

FailedRoute 53 wasn't able to create or update the resource record sets. When the value of State is Failed, see Message for an explanation of what caused the request to fail.

State is a required field

TTL

Type: *int64

The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.

TTL is a required field

TrafficPolicyId

Type: *string

The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.

TrafficPolicyId is a required field

TrafficPolicyType

Type: *string

The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.

TrafficPolicyType is a required field

TrafficPolicyVersion

Type: *int64

The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.

TrafficPolicyVersion is a required field

Method

GoString

func (s TrafficPolicyInstance) GoString() string

GoString returns the string representation

SetHostedZoneId

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

SetHostedZoneId sets the HostedZoneId field's value.

SetId

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

SetId sets the Id field's value.

SetMessage

func (s *TrafficPolicyInstance) SetMessage(v string) *TrafficPolicyInstance

SetMessage sets the Message field's value.

SetName

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

SetName sets the Name field's value.

SetState

func (s *TrafficPolicyInstance) SetState(v string) *TrafficPolicyInstance

SetState sets the State field's value.

SetTTL

func (s *TrafficPolicyInstance) SetTTL(v int64) *TrafficPolicyInstance

SetTTL sets the TTL field's value.

SetTrafficPolicyId

func (s *TrafficPolicyInstance) SetTrafficPolicyId(v string) *TrafficPolicyInstance

SetTrafficPolicyId sets the TrafficPolicyId field's value.

SetTrafficPolicyType

func (s *TrafficPolicyInstance) SetTrafficPolicyType(v string) *TrafficPolicyInstance

SetTrafficPolicyType sets the TrafficPolicyType field's value.

SetTrafficPolicyVersion

func (s *TrafficPolicyInstance) SetTrafficPolicyVersion(v int64) *TrafficPolicyInstance

SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value.

String

func (s TrafficPolicyInstance) String() string

String returns the string representation

On this page: