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 |
Describes the state of the specified instances with respect to the specified load balancer. If no instances are specified, the call describes the state of all instances that are currently registered with the load balancer. If instances are specified, their state is returned even if they are no longer registered with the load balancer. The state of terminated instances is not returned.
Synopsis
- data DescribeInstanceHealth = DescribeInstanceHealth' {
- instances :: Maybe [Instance]
- loadBalancerName :: Text
- newDescribeInstanceHealth :: Text -> DescribeInstanceHealth
- describeInstanceHealth_instances :: Lens' DescribeInstanceHealth (Maybe [Instance])
- describeInstanceHealth_loadBalancerName :: Lens' DescribeInstanceHealth Text
- data DescribeInstanceHealthResponse = DescribeInstanceHealthResponse' {}
- newDescribeInstanceHealthResponse :: Int -> DescribeInstanceHealthResponse
- describeInstanceHealthResponse_instanceStates :: Lens' DescribeInstanceHealthResponse (Maybe [InstanceState])
- describeInstanceHealthResponse_httpStatus :: Lens' DescribeInstanceHealthResponse Int
Creating a Request
data DescribeInstanceHealth Source #
Contains the parameters for DescribeInstanceHealth.
See: newDescribeInstanceHealth
smart constructor.
DescribeInstanceHealth' | |
|
Instances
newDescribeInstanceHealth Source #
Create a value of DescribeInstanceHealth
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:instances:DescribeInstanceHealth'
, describeInstanceHealth_instances
- The IDs of the instances.
$sel:loadBalancerName:DescribeInstanceHealth'
, describeInstanceHealth_loadBalancerName
- The name of the load balancer.
Request Lenses
describeInstanceHealth_instances :: Lens' DescribeInstanceHealth (Maybe [Instance]) Source #
The IDs of the instances.
describeInstanceHealth_loadBalancerName :: Lens' DescribeInstanceHealth Text Source #
The name of the load balancer.
Destructuring the Response
data DescribeInstanceHealthResponse Source #
Contains the output for DescribeInstanceHealth.
See: newDescribeInstanceHealthResponse
smart constructor.
DescribeInstanceHealthResponse' | |
|
Instances
Eq DescribeInstanceHealthResponse Source # | |
Read DescribeInstanceHealthResponse Source # | |
Show DescribeInstanceHealthResponse Source # | |
Defined in Amazonka.ELB.DescribeInstanceHealth | |
Generic DescribeInstanceHealthResponse Source # | |
NFData DescribeInstanceHealthResponse Source # | |
Defined in Amazonka.ELB.DescribeInstanceHealth rnf :: DescribeInstanceHealthResponse -> () # | |
type Rep DescribeInstanceHealthResponse Source # | |
Defined in Amazonka.ELB.DescribeInstanceHealth type Rep DescribeInstanceHealthResponse = D1 ('MetaData "DescribeInstanceHealthResponse" "Amazonka.ELB.DescribeInstanceHealth" "libZSservicesZSamazonka-elbZSamazonka-elb" 'False) (C1 ('MetaCons "DescribeInstanceHealthResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceState])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDescribeInstanceHealthResponse Source #
Create a value of DescribeInstanceHealthResponse
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:instanceStates:DescribeInstanceHealthResponse'
, describeInstanceHealthResponse_instanceStates
- Information about the health of the instances.
$sel:httpStatus:DescribeInstanceHealthResponse'
, describeInstanceHealthResponse_httpStatus
- The response's http status code.
Response Lenses
describeInstanceHealthResponse_instanceStates :: Lens' DescribeInstanceHealthResponse (Maybe [InstanceState]) Source #
Information about the health of the instances.
describeInstanceHealthResponse_httpStatus :: Lens' DescribeInstanceHealthResponse Int Source #
The response's http status code.