Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Attaches one or more Lightsail instances to a load balancer.
After some time, the instances are attached to the load balancer and the health check status is available.
- attachInstancesToLoadBalancer :: Text -> AttachInstancesToLoadBalancer
- data AttachInstancesToLoadBalancer
- aitlbLoadBalancerName :: Lens' AttachInstancesToLoadBalancer Text
- aitlbInstanceNames :: Lens' AttachInstancesToLoadBalancer [Text]
- attachInstancesToLoadBalancerResponse :: Int -> AttachInstancesToLoadBalancerResponse
- data AttachInstancesToLoadBalancerResponse
- aitlbrsOperations :: Lens' AttachInstancesToLoadBalancerResponse [Operation]
- aitlbrsResponseStatus :: Lens' AttachInstancesToLoadBalancerResponse Int
Creating a Request
attachInstancesToLoadBalancer Source #
Creates a value of AttachInstancesToLoadBalancer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aitlbLoadBalancerName
- The name of the load balancer.aitlbInstanceNames
- An array of strings representing the instance name(s) you want to attach to your load balancer. An instance must berunning
before you can attach it to your load balancer. There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
data AttachInstancesToLoadBalancer Source #
See: attachInstancesToLoadBalancer
smart constructor.
Request Lenses
aitlbLoadBalancerName :: Lens' AttachInstancesToLoadBalancer Text Source #
The name of the load balancer.
aitlbInstanceNames :: Lens' AttachInstancesToLoadBalancer [Text] Source #
An array of strings representing the instance name(s) you want to attach to your load balancer. An instance must be running
before you can attach it to your load balancer. There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
Destructuring the Response
attachInstancesToLoadBalancerResponse Source #
Creates a value of AttachInstancesToLoadBalancerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aitlbrsOperations
- An object representing the API operations.aitlbrsResponseStatus
- -- | The response status code.
data AttachInstancesToLoadBalancerResponse Source #
See: attachInstancesToLoadBalancerResponse
smart constructor.
Response Lenses
aitlbrsOperations :: Lens' AttachInstancesToLoadBalancerResponse [Operation] Source #
An object representing the API operations.
aitlbrsResponseStatus :: Lens' AttachInstancesToLoadBalancerResponse Int Source #
- - | The response status code.