| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.ELBV2.RegisterTargets
Description
Registers 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.
With a Network Load Balancer, you cannot register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1. You can register instances of these types by IP address.
Synopsis
- data RegisterTargets = RegisterTargets' {}
- newRegisterTargets :: Text -> RegisterTargets
- registerTargets_targetGroupArn :: Lens' RegisterTargets Text
- registerTargets_targets :: Lens' RegisterTargets [TargetDescription]
- data RegisterTargetsResponse = RegisterTargetsResponse' {
- httpStatus :: Int
- newRegisterTargetsResponse :: Int -> RegisterTargetsResponse
- registerTargetsResponse_httpStatus :: Lens' RegisterTargetsResponse Int
Creating a Request
data RegisterTargets Source #
See: newRegisterTargets smart constructor.
Constructors
| RegisterTargets' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> RegisterTargets |
Create a value of RegisterTargets with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:targetGroupArn:RegisterTargets', registerTargets_targetGroupArn - The Amazon Resource Name (ARN) of the target group.
$sel:targets:RegisterTargets', registerTargets_targets - The targets.
Request Lenses
registerTargets_targetGroupArn :: Lens' RegisterTargets Text Source #
The Amazon Resource Name (ARN) of the target group.
registerTargets_targets :: Lens' RegisterTargets [TargetDescription] Source #
The targets.
Destructuring the Response
data RegisterTargetsResponse Source #
See: newRegisterTargetsResponse smart constructor.
Constructors
| RegisterTargetsResponse' | |
Fields
| |
Instances
newRegisterTargetsResponse Source #
Create a value of RegisterTargetsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:RegisterTargetsResponse', registerTargetsResponse_httpStatus - The response's http status code.
Response Lenses
registerTargetsResponse_httpStatus :: Lens' RegisterTargetsResponse Int Source #
The response's http status code.