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.

LoadBalancerAttribute

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

type LoadBalancerAttribute struct { Key *string `type:"string"` Value *string `type:"string"` }

Information about a load balancer attribute.

Key

Type: *string

The name of the attribute.

The following attributes are supported by both Application Load Balancers and Network Load Balancers:

  • access_logs.s3.enabled - Indicates whether access logs are enabled. The value is true or false. The default is false.

  • access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permissions to write to the bucket.

  • access_logs.s3.prefix - The prefix for the location in the S3 bucket for the access logs.

  • deletion_protection.enabled - Indicates whether deletion protection is enabled. The value is true or false. The default is false.

The following attributes are supported by only Application Load Balancers:

  • idle_timeout.timeout_seconds - The idle timeout value, in seconds. The valid range is 1-4000 seconds. The default is 60 seconds.

  • routing.http2.enabled - Indicates whether HTTP/2 is enabled. The value is true or false. The default is true.

The following attributes are supported by only Network Load Balancers:

  • load_balancing.cross_zone.enabled - Indicates whether cross-zone load balancing is enabled. The value is true or false. The default is false.

Value

Type: *string

The value of the attribute.

Method

GoString

func (s LoadBalancerAttribute) GoString() string

GoString returns the string representation

SetKey

func (s *LoadBalancerAttribute) SetKey(v string) *LoadBalancerAttribute

SetKey sets the Key field's value.

SetValue

func (s *LoadBalancerAttribute) SetValue(v string) *LoadBalancerAttribute

SetValue sets the Value field's value.

String

func (s LoadBalancerAttribute) String() string

String returns the string representation

On this page: