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 |
Network.AWS.Lightsail.AttachInstancesToLoadBalancer
Description
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 #
Arguments
:: Text | |
-> AttachInstancesToLoadBalancer |
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 #
See: attachInstancesToLoadBalancer
smart constructor.
Instances
Request Lenses
aitlbLoadBalancerName :: Lens' AttachInstancesToLoadBalancer Text #
The name of the load balancer.
aitlbInstanceNames :: Lens' AttachInstancesToLoadBalancer [Text] #
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 #
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 #
See: attachInstancesToLoadBalancerResponse
smart constructor.
Instances
Response Lenses
aitlbrsOperations :: Lens' AttachInstancesToLoadBalancerResponse [Operation] #
An object representing the API operations.
aitlbrsResponseStatus :: Lens' AttachInstancesToLoadBalancerResponse Int #
- - | The response status code.