ElasticLoadBalancing / Client / delete_load_balancer_listeners
delete_load_balancer_listeners#
- ElasticLoadBalancing.Client.delete_load_balancer_listeners(**kwargs)#
Deletes the specified listeners from the specified load balancer.
See also: AWS API Documentation
Request Syntax
response = client.delete_load_balancer_listeners( LoadBalancerName='string', LoadBalancerPorts=[ 123, ] )
- Parameters:
LoadBalancerName (string) –
[REQUIRED]
The name of the load balancer.
LoadBalancerPorts (list) –
[REQUIRED]
The client port numbers of the listeners.
(integer) –
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Contains the output of DeleteLoadBalancerListeners.
Exceptions
ElasticLoadBalancing.Client.exceptions.AccessPointNotFoundException
Examples
This example deletes the listener for the specified port from the specified load balancer.
response = client.delete_load_balancer_listeners( LoadBalancerName='my-load-balancer', LoadBalancerPorts=[ 80, ], ) print(response)
Expected Output:
{ 'ResponseMetadata': { '...': '...', }, }