You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ElasticLoadBalancing::Types::LoadBalancerAttributes

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/types.rb

Overview

Note:

When making an API call, you may pass LoadBalancerAttributes data as a hash:

{
  cross_zone_load_balancing: {
    enabled: false, # required
  },
  access_log: {
    enabled: false, # required
    s3_bucket_name: "S3BucketName",
    emit_interval: 1,
    s3_bucket_prefix: "AccessLogPrefix",
  },
  connection_draining: {
    enabled: false, # required
    timeout: 1,
  },
  connection_settings: {
    idle_timeout: 1, # required
  },
  additional_attributes: [
    {
      key: "AdditionalAttributeKey",
      value: "AdditionalAttributeValue",
    },
  ],
}

The attributes for a load balancer.

Instance Attribute Summary collapse

Instance Attribute Details

#access_logTypes::AccessLog

If enabled, the load balancer captures detailed information of all requests and delivers the information to the Amazon S3 bucket that you specify.

For more information, see Enable Access Logs in the Classic Load Balancer Guide.

Returns:



1505
1506
1507
1508
1509
1510
1511
1512
# File 'gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/types.rb', line 1505

class LoadBalancerAttributes < Struct.new(
  :cross_zone_load_balancing,
  :access_log,
  :connection_draining,
  :connection_settings,
  :additional_attributes)
  include Aws::Structure
end

#additional_attributesArray<Types::AdditionalAttribute>

This parameter is reserved.

Returns:



1505
1506
1507
1508
1509
1510
1511
1512
# File 'gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/types.rb', line 1505

class LoadBalancerAttributes < Struct.new(
  :cross_zone_load_balancing,
  :access_log,
  :connection_draining,
  :connection_settings,
  :additional_attributes)
  include Aws::Structure
end

#connection_drainingTypes::ConnectionDraining

If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy instance.

For more information, see Configure Connection Draining in the Classic Load Balancer Guide.



1505
1506
1507
1508
1509
1510
1511
1512
# File 'gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/types.rb', line 1505

class LoadBalancerAttributes < Struct.new(
  :cross_zone_load_balancing,
  :access_log,
  :connection_draining,
  :connection_settings,
  :additional_attributes)
  include Aws::Structure
end

#connection_settingsTypes::ConnectionSettings

If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration.

By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. For more information, see Configure Idle Connection Timeout in the Classic Load Balancer Guide.



1505
1506
1507
1508
1509
1510
1511
1512
# File 'gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/types.rb', line 1505

class LoadBalancerAttributes < Struct.new(
  :cross_zone_load_balancing,
  :access_log,
  :connection_draining,
  :connection_settings,
  :additional_attributes)
  include Aws::Structure
end

#cross_zone_load_balancingTypes::CrossZoneLoadBalancing

If enabled, the load balancer routes the request traffic evenly across all instances regardless of the Availability Zones.

For more information, see Configure Cross-Zone Load Balancing in the Classic Load Balancer Guide.



1505
1506
1507
1508
1509
1510
1511
1512
# File 'gems/aws-sdk-elasticloadbalancing/lib/aws-sdk-elasticloadbalancing/types.rb', line 1505

class LoadBalancerAttributes < Struct.new(
  :cross_zone_load_balancing,
  :access_log,
  :connection_draining,
  :connection_settings,
  :additional_attributes)
  include Aws::Structure
end