Smaws_Client_ElasticLoadBalancingv2.RegisterTargetsRegisters the specified targets with the specified target group.
If the target is an EC2 instance, it must be in the running state when you register it.
By default, the load balancer routes requests to registered targets using the protocol and port for the target group. Alternatively, you can override the port for a target when you register it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.
For more information, see the following:
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `InvalidTargetException of Types.invalid_target_exception
| `TargetGroupNotFoundException of Types.target_group_not_found_exception
| `TooManyRegistrationsForTargetIdException of
Types.too_many_registrations_for_target_id_exception
| `TooManyTargetsException of Types.too_many_targets_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.register_targets_input ->
(Types.register_targets_output,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InvalidTargetException of Types.invalid_target_exception
| `TargetGroupNotFoundException of Types.target_group_not_found_exception
| `TooManyRegistrationsForTargetIdException of
Types.too_many_registrations_for_target_id_exception
| `TooManyTargetsException of Types.too_many_targets_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.register_targets_input ->
(Types.register_targets_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InvalidTargetException of Types.invalid_target_exception
| `TargetGroupNotFoundException of Types.target_group_not_found_exception
| `TooManyRegistrationsForTargetIdException of
Types.too_many_registrations_for_target_id_exception
| `TooManyTargetsException of Types.too_many_targets_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result