modifyLoadBalancerAttributes method
Future<ModifyLoadBalancerAttributesOutput>
modifyLoadBalancerAttributes({
- required List<
LoadBalancerAttribute> attributes, - required String loadBalancerArn,
Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values.
May throw LoadBalancerNotFoundException. May throw InvalidConfigurationRequestException.
Parameter attributes
:
The load balancer attributes.
Parameter loadBalancerArn
:
The Amazon Resource Name (ARN) of the load balancer.
Implementation
Future<ModifyLoadBalancerAttributesOutput> modifyLoadBalancerAttributes({
required List<LoadBalancerAttribute> attributes,
required String loadBalancerArn,
}) async {
ArgumentError.checkNotNull(attributes, 'attributes');
ArgumentError.checkNotNull(loadBalancerArn, 'loadBalancerArn');
final $request = <String, dynamic>{};
$request['Attributes'] = attributes;
$request['LoadBalancerArn'] = loadBalancerArn;
final $result = await _protocol.send(
$request,
action: 'ModifyLoadBalancerAttributes',
version: '2015-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ModifyLoadBalancerAttributesInput'],
shapes: shapes,
resultWrapper: 'ModifyLoadBalancerAttributesResult',
);
return ModifyLoadBalancerAttributesOutput.fromXml($result);
}