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.

CreateTrafficPolicyInstanceInput

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

type CreateTrafficPolicyInstanceInput struct { HostedZoneId *string `type:"string" required:"true"` Name *string `type:"string" required:"true"` TTL *int64 `type:"long" required:"true"` TrafficPolicyId *string `min:"1" type:"string" required:"true"` TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"` }

A complex type that contains information about the resource record sets that you want to create based on a specified traffic policy.

HostedZoneId

Type: *string

The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy.

HostedZoneId is a required field

Name

Type: *string

The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.

Name is a required field

TTL

Type: *int64

(Optional) The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it creates in the specified hosted zone.

TTL is a required field

TrafficPolicyId

Type: *string

The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

TrafficPolicyId is a required field

TrafficPolicyVersion

Type: *int64

The version of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

TrafficPolicyVersion is a required field

Method

GoString

func (s CreateTrafficPolicyInstanceInput) GoString() string

GoString returns the string representation

SetHostedZoneId

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

SetHostedZoneId sets the HostedZoneId field's value.

SetName

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

SetName sets the Name field's value.

SetTTL

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

SetTTL sets the TTL field's value.

SetTrafficPolicyId

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

SetTrafficPolicyId sets the TrafficPolicyId field's value.

SetTrafficPolicyVersion

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

SetTrafficPolicyVersion sets the TrafficPolicyVersion field's value.

String

func (s CreateTrafficPolicyInstanceInput) String() string

String returns the string representation

Validate

func (s *CreateTrafficPolicyInstanceInput) Validate() error

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

On this page: