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.

ConnectionDraining

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

type ConnectionDraining struct { Enabled *bool `type:"boolean" required:"true"` Timeout *int64 `type:"integer"` }

Information about the ConnectionDraining attribute.

Enabled

Type: *bool

Specifies whether connection draining is enabled for the load balancer.

Enabled is a required field

Timeout

Type: *int64

The maximum time, in seconds, to keep the existing connections open before deregistering the instances.

Method

GoString

func (s ConnectionDraining) GoString() string

GoString returns the string representation

SetEnabled

func (s *ConnectionDraining) SetEnabled(v bool) *ConnectionDraining

SetEnabled sets the Enabled field's value.

SetTimeout

func (s *ConnectionDraining) SetTimeout(v int64) *ConnectionDraining

SetTimeout sets the Timeout field's value.

String

func (s ConnectionDraining) String() string

String returns the string representation

Validate

func (s *ConnectionDraining) Validate() error

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

On this page: