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 |
Detaches the specified instances from a Lightsail load balancer.
This operation waits until the instances are no longer needed before they are detached from the load balancer.
The detach instances from 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
Amazon Lightsail Developer Guide.
Synopsis
- data DetachInstancesFromLoadBalancer = DetachInstancesFromLoadBalancer' {
- loadBalancerName :: Text
- instanceNames :: [Text]
- newDetachInstancesFromLoadBalancer :: Text -> DetachInstancesFromLoadBalancer
- detachInstancesFromLoadBalancer_loadBalancerName :: Lens' DetachInstancesFromLoadBalancer Text
- detachInstancesFromLoadBalancer_instanceNames :: Lens' DetachInstancesFromLoadBalancer [Text]
- data DetachInstancesFromLoadBalancerResponse = DetachInstancesFromLoadBalancerResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDetachInstancesFromLoadBalancerResponse :: Int -> DetachInstancesFromLoadBalancerResponse
- detachInstancesFromLoadBalancerResponse_operations :: Lens' DetachInstancesFromLoadBalancerResponse (Maybe [Operation])
- detachInstancesFromLoadBalancerResponse_httpStatus :: Lens' DetachInstancesFromLoadBalancerResponse Int
Creating a Request
data DetachInstancesFromLoadBalancer Source #
See: newDetachInstancesFromLoadBalancer
smart constructor.
DetachInstancesFromLoadBalancer' | |
|
Instances
newDetachInstancesFromLoadBalancer Source #
Create a value of DetachInstancesFromLoadBalancer
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:DetachInstancesFromLoadBalancer'
, detachInstancesFromLoadBalancer_loadBalancerName
- The name of the Lightsail load balancer.
$sel:instanceNames:DetachInstancesFromLoadBalancer'
, detachInstancesFromLoadBalancer_instanceNames
- An array of strings containing the names of the instances you want to
detach from the load balancer.
Request Lenses
detachInstancesFromLoadBalancer_loadBalancerName :: Lens' DetachInstancesFromLoadBalancer Text Source #
The name of the Lightsail load balancer.
detachInstancesFromLoadBalancer_instanceNames :: Lens' DetachInstancesFromLoadBalancer [Text] Source #
An array of strings containing the names of the instances you want to detach from the load balancer.
Destructuring the Response
data DetachInstancesFromLoadBalancerResponse Source #
See: newDetachInstancesFromLoadBalancerResponse
smart constructor.
DetachInstancesFromLoadBalancerResponse' | |
|
Instances
newDetachInstancesFromLoadBalancerResponse Source #
Create a value of DetachInstancesFromLoadBalancerResponse
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:DetachInstancesFromLoadBalancerResponse'
, detachInstancesFromLoadBalancerResponse_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:DetachInstancesFromLoadBalancerResponse'
, detachInstancesFromLoadBalancerResponse_httpStatus
- The response's http status code.
Response Lenses
detachInstancesFromLoadBalancerResponse_operations :: Lens' DetachInstancesFromLoadBalancerResponse (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.
detachInstancesFromLoadBalancerResponse_httpStatus :: Lens' DetachInstancesFromLoadBalancerResponse Int Source #
The response's http status code.