updateTargetGroup method
Future<UpdateTargetGroupResponse>
updateTargetGroup({
- required HealthCheckConfig healthCheck,
- required String targetGroupIdentifier,
Updates the specified target group.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter healthCheck :
The health check configuration.
Parameter targetGroupIdentifier :
The ID or ARN of the target group.
Implementation
Future<UpdateTargetGroupResponse> updateTargetGroup({
required HealthCheckConfig healthCheck,
required String targetGroupIdentifier,
}) async {
final $payload = <String, dynamic>{
'healthCheck': healthCheck,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/targetgroups/${Uri.encodeComponent(targetGroupIdentifier)}',
exceptionFnMap: _exceptionFns,
);
return UpdateTargetGroupResponse.fromJson(response);
}