libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Description

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

Creating a Request

data DetachInstancesFromLoadBalancer Source #

See: newDetachInstancesFromLoadBalancer smart constructor.

Constructors

DetachInstancesFromLoadBalancer' 

Fields

  • loadBalancerName :: Text

    The name of the Lightsail load balancer.

  • instanceNames :: [Text]

    An array of strings containing the names of the instances you want to detach from the load balancer.

Instances

Instances details
Eq DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Read DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Show DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Generic DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Associated Types

type Rep DetachInstancesFromLoadBalancer :: Type -> Type #

NFData DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Hashable DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

ToJSON DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

AWSRequest DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

ToHeaders DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

ToPath DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

ToQuery DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

type Rep DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

type Rep DetachInstancesFromLoadBalancer = D1 ('MetaData "DetachInstancesFromLoadBalancer" "Amazonka.Lightsail.DetachInstancesFromLoadBalancer" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DetachInstancesFromLoadBalancer'" 'PrefixI 'True) (S1 ('MetaSel ('Just "loadBalancerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "instanceNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))
type AWSResponse DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

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_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 #

Constructors

DetachInstancesFromLoadBalancerResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DetachInstancesFromLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Read DetachInstancesFromLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Show DetachInstancesFromLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Generic DetachInstancesFromLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

NFData DetachInstancesFromLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

type Rep DetachInstancesFromLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

type Rep DetachInstancesFromLoadBalancerResponse = D1 ('MetaData "DetachInstancesFromLoadBalancerResponse" "Amazonka.Lightsail.DetachInstancesFromLoadBalancer" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DetachInstancesFromLoadBalancerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.