deleteLoadBalancerListeners method
Deletes the specified listeners from the specified load balancer.
May throw AccessPointNotFoundException.
Parameter loadBalancerName
:
The name of the load balancer.
Parameter loadBalancerPorts
:
The client port numbers of the listeners.
Implementation
Future<void> deleteLoadBalancerListeners({
required String loadBalancerName,
required List<int> loadBalancerPorts,
}) async {
ArgumentError.checkNotNull(loadBalancerName, 'loadBalancerName');
ArgumentError.checkNotNull(loadBalancerPorts, 'loadBalancerPorts');
final $request = <String, dynamic>{};
$request['LoadBalancerName'] = loadBalancerName;
$request['LoadBalancerPorts'] = loadBalancerPorts;
await _protocol.send(
$request,
action: 'DeleteLoadBalancerListeners',
version: '2012-06-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteLoadBalancerListenerInput'],
shapes: shapes,
resultWrapper: 'DeleteLoadBalancerListenersResult',
);
}