amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON 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

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

Read DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Show DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

NFData DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Eq DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Hashable DetachInstancesFromLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "DetachInstancesFromLoadBalancer'" 'PrefixI 'True) (S1 ('MetaSel ('Just "loadBalancerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "instanceNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))

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:

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
Generic 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

NFData DetachInstancesFromLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachInstancesFromLoadBalancer

Eq 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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.