registerTargets method
Registers the targets with the target group. If it's a Lambda target, you can only have one target in a target group.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter targetGroupIdentifier :
The ID or ARN of the target group.
Parameter targets :
The targets.
Implementation
Future<RegisterTargetsResponse> registerTargets({
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)}/registertargets',
exceptionFnMap: _exceptionFns,
);
return RegisterTargetsResponse.fromJson(response);
}