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.

EndpointConfiguration

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

type EndpointConfiguration struct { EndpointId *string `type:"string"` Weight *int64 `type:"integer"` }

A complex type for endpoints.

EndpointId

Type: *string

An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID.

Weight

Type: *int64

The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint Weights (https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints-endpoint-weights.html) in the AWS Global Accelerator Developer Guide.

Method

GoString

func (s EndpointConfiguration) GoString() string

GoString returns the string representation

SetEndpointId

func (s *EndpointConfiguration) SetEndpointId(v string) *EndpointConfiguration

SetEndpointId sets the EndpointId field's value.

SetWeight

func (s *EndpointConfiguration) SetWeight(v int64) *EndpointConfiguration

SetWeight sets the Weight field's value.

String

func (s EndpointConfiguration) String() string

String returns the string representation

On this page: