configureHealthCheck method
Future<ConfigureHealthCheckOutput>
configureHealthCheck({
- required HealthCheck healthCheck,
- required String loadBalancerName,
Specifies the health check settings to use when evaluating the health state of your EC2 instances.
For more information, see Configure Health Checks for Your Load Balancer in the Classic Load Balancers Guide.
May throw AccessPointNotFoundException.
Parameter healthCheck
:
The configuration information.
Parameter loadBalancerName
:
The name of the load balancer.
Implementation
Future<ConfigureHealthCheckOutput> configureHealthCheck({
required HealthCheck healthCheck,
required String loadBalancerName,
}) async {
ArgumentError.checkNotNull(healthCheck, 'healthCheck');
ArgumentError.checkNotNull(loadBalancerName, 'loadBalancerName');
final $request = <String, dynamic>{};
$request['HealthCheck'] = healthCheck;
$request['LoadBalancerName'] = loadBalancerName;
final $result = await _protocol.send(
$request,
action: 'ConfigureHealthCheck',
version: '2012-06-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ConfigureHealthCheckInput'],
shapes: shapes,
resultWrapper: 'ConfigureHealthCheckResult',
);
return ConfigureHealthCheckOutput.fromXml($result);
}