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,
]
)
[REQUIRED]
The name of the load balancer.
[REQUIRED]
The client port numbers of the listeners.
dict
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': {
'...': '...',
},
}