deregisterTargets method
Deregisters the specified targets from the specified target group.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter targetGroupIdentifier :
The ID or ARN of the target group.
Parameter targets :
The targets to deregister.
Implementation
Future<DeregisterTargetsResponse> deregisterTargets({
required String targetGroupIdentifier,
required List<Target> targets,
}) async {
final $payload = <String, dynamic>{
'targets': targets,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/targetgroups/${Uri.encodeComponent(targetGroupIdentifier)}/deregistertargets',
exceptionFnMap: _exceptionFns,
);
return DeregisterTargetsResponse.fromJson(response);
}