ElasticLoadBalancingv2 / Client / delete_listener

delete_listener#

ElasticLoadBalancingv2.Client.delete_listener(**kwargs)#

Deletes the specified listener.

Alternatively, your listener is deleted when you delete the load balancer to which it is attached.

See also: AWS API Documentation

Request Syntax

response = client.delete_listener(
    ListenerArn='string'
)
Parameters:

ListenerArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the listener.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

Examples

This example deletes the specified listener.

response = client.delete_listener(
    ListenerArn='arn:aws:elasticloadbalancing:ua-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}