amazonka-elbv2-2.0: Amazon Elastic Load Balancing SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data RegisterTargets Source #

See: newRegisterTargets smart constructor.

Constructors

RegisterTargets' 

Fields

Instances

Instances details
ToHeaders RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

ToPath RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

ToQuery RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

AWSRequest RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

Associated Types

type AWSResponse RegisterTargets #

Generic RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

Associated Types

type Rep RegisterTargets :: Type -> Type #

Read RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

Show RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

NFData RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

Methods

rnf :: RegisterTargets -> () #

Eq RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

Hashable RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

type AWSResponse RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

type Rep RegisterTargets Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

type Rep RegisterTargets = D1 ('MetaData "RegisterTargets" "Amazonka.ELBV2.RegisterTargets" "amazonka-elbv2-2.0-361J9F5fkBoAtGaOoJg8Ev" 'False) (C1 ('MetaCons "RegisterTargets'" 'PrefixI 'True) (S1 ('MetaSel ('Just "targetGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TargetDescription])))

newRegisterTargets Source #

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:

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.

Destructuring the Response

data RegisterTargetsResponse Source #

See: newRegisterTargetsResponse smart constructor.

Constructors

RegisterTargetsResponse' 

Fields

Instances

Instances details
Generic RegisterTargetsResponse Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

Associated Types

type Rep RegisterTargetsResponse :: Type -> Type #

Read RegisterTargetsResponse Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

Show RegisterTargetsResponse Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

NFData RegisterTargetsResponse Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

Methods

rnf :: RegisterTargetsResponse -> () #

Eq RegisterTargetsResponse Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

type Rep RegisterTargetsResponse Source # 
Instance details

Defined in Amazonka.ELBV2.RegisterTargets

type Rep RegisterTargetsResponse = D1 ('MetaData "RegisterTargetsResponse" "Amazonka.ELBV2.RegisterTargets" "amazonka-elbv2-2.0-361J9F5fkBoAtGaOoJg8Ev" 'False) (C1 ('MetaCons "RegisterTargetsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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