deleteLoadBalancerPolicy method
Deletes the specified policy from the specified load balancer. This policy must not be enabled for any listeners.
May throw AccessPointNotFoundException. May throw InvalidConfigurationRequestException.
Parameter loadBalancerName
:
The name of the load balancer.
Parameter policyName
:
The name of the policy.
Implementation
Future<void> deleteLoadBalancerPolicy({
required String loadBalancerName,
required String policyName,
}) async {
ArgumentError.checkNotNull(loadBalancerName, 'loadBalancerName');
ArgumentError.checkNotNull(policyName, 'policyName');
final $request = <String, dynamic>{};
$request['LoadBalancerName'] = loadBalancerName;
$request['PolicyName'] = policyName;
await _protocol.send(
$request,
action: 'DeleteLoadBalancerPolicy',
version: '2012-06-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteLoadBalancerPolicyInput'],
shapes: shapes,
resultWrapper: 'DeleteLoadBalancerPolicyResult',
);
}