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 |
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.
The attach instances to load balancer
operation supports tag-based
access control via resource tags applied to the resource identified by
load balancer name
. For more information, see the
Lightsail Developer Guide.
Synopsis
- data AttachInstancesToLoadBalancer = AttachInstancesToLoadBalancer' {
- loadBalancerName :: Text
- instanceNames :: [Text]
- newAttachInstancesToLoadBalancer :: Text -> AttachInstancesToLoadBalancer
- attachInstancesToLoadBalancer_loadBalancerName :: Lens' AttachInstancesToLoadBalancer Text
- attachInstancesToLoadBalancer_instanceNames :: Lens' AttachInstancesToLoadBalancer [Text]
- data AttachInstancesToLoadBalancerResponse = AttachInstancesToLoadBalancerResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newAttachInstancesToLoadBalancerResponse :: Int -> AttachInstancesToLoadBalancerResponse
- attachInstancesToLoadBalancerResponse_operations :: Lens' AttachInstancesToLoadBalancerResponse (Maybe [Operation])
- attachInstancesToLoadBalancerResponse_httpStatus :: Lens' AttachInstancesToLoadBalancerResponse Int
Creating a Request
data AttachInstancesToLoadBalancer Source #
See: newAttachInstancesToLoadBalancer
smart constructor.
AttachInstancesToLoadBalancer' | |
|
Instances
newAttachInstancesToLoadBalancer Source #
Create a value of AttachInstancesToLoadBalancer
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:loadBalancerName:AttachInstancesToLoadBalancer'
, attachInstancesToLoadBalancer_loadBalancerName
- The name of the load balancer.
$sel:instanceNames:AttachInstancesToLoadBalancer'
, attachInstancesToLoadBalancer_instanceNames
- 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).
Request Lenses
attachInstancesToLoadBalancer_loadBalancerName :: Lens' AttachInstancesToLoadBalancer Text Source #
The name of the load balancer.
attachInstancesToLoadBalancer_instanceNames :: 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
data AttachInstancesToLoadBalancerResponse Source #
See: newAttachInstancesToLoadBalancerResponse
smart constructor.
AttachInstancesToLoadBalancerResponse' | |
|
Instances
newAttachInstancesToLoadBalancerResponse Source #
Create a value of AttachInstancesToLoadBalancerResponse
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:operations:AttachInstancesToLoadBalancerResponse'
, attachInstancesToLoadBalancerResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:AttachInstancesToLoadBalancerResponse'
, attachInstancesToLoadBalancerResponse_httpStatus
- The response's http status code.
Response Lenses
attachInstancesToLoadBalancerResponse_operations :: Lens' AttachInstancesToLoadBalancerResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
attachInstancesToLoadBalancerResponse_httpStatus :: Lens' AttachInstancesToLoadBalancerResponse Int Source #
The response's http status code.