Elastic Load Balancing

2024/09/03 - Elastic Load Balancing - 2 new api methods

Changes  This release adds support for configuring TCP idle timeout on NLB and GWLB listeners.

ModifyListenerAttributes (new) Link ¶

Modifies the specified attributes of the specified listener.

See also: AWS API Documentation

Request Syntax

client.modify_listener_attributes(
    ListenerArn='string',
    Attributes=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type ListenerArn

string

param ListenerArn

[REQUIRED]

The Amazon Resource Name (ARN) of the listener.

type Attributes

list

param Attributes

[REQUIRED]

The listener attributes.

  • (dict) --

    Information about a listener attribute.

    • Key (string) --

      The name of the attribute.

      The following attribute is supported by Network Load Balancers, and Gateway Load Balancers.

      • tcp.idle_timeout.seconds - The tcp idle timeout value, in seconds. The valid range is 60-6000 seconds. The default is 350 seconds.

    • Value (string) --

      The value of the attribute.

rtype

dict

returns

Response Syntax

{
    'Attributes': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Attributes (list) --

      Information about the listener attributes.

      • (dict) --

        Information about a listener attribute.

        • Key (string) --

          The name of the attribute.

          The following attribute is supported by Network Load Balancers, and Gateway Load Balancers.

          • tcp.idle_timeout.seconds - The tcp idle timeout value, in seconds. The valid range is 60-6000 seconds. The default is 350 seconds.

        • Value (string) --

          The value of the attribute.

DescribeListenerAttributes (new) Link ¶

Describes the attributes for the specified listener.

See also: AWS API Documentation

Request Syntax

client.describe_listener_attributes(
    ListenerArn='string'
)
type ListenerArn

string

param ListenerArn

[REQUIRED]

The Amazon Resource Name (ARN) of the listener.

rtype

dict

returns

Response Syntax

{
    'Attributes': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Attributes (list) --

      Information about the listener attributes.

      • (dict) --

        Information about a listener attribute.

        • Key (string) --

          The name of the attribute.

          The following attribute is supported by Network Load Balancers, and Gateway Load Balancers.

          • tcp.idle_timeout.seconds - The tcp idle timeout value, in seconds. The valid range is 60-6000 seconds. The default is 350 seconds.

        • Value (string) --

          The value of the attribute.