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

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

Creating a Request

data AttachInstancesToLoadBalancer Source #

See: newAttachInstancesToLoadBalancer smart constructor.

Constructors

AttachInstancesToLoadBalancer' 

Fields

  • loadBalancerName :: Text

    The name of the load balancer.

  • instanceNames :: [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).

Instances

Instances details
Eq AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

Read AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

Show AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

Generic AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

Associated Types

type Rep AttachInstancesToLoadBalancer :: Type -> Type #

NFData AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

Hashable AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

ToJSON AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

AWSRequest AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

ToHeaders AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

ToPath AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

ToQuery AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

type Rep AttachInstancesToLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

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

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

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

Constructors

AttachInstancesToLoadBalancerResponse' 

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 AttachInstancesToLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

Read AttachInstancesToLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

Show AttachInstancesToLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

Generic AttachInstancesToLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

NFData AttachInstancesToLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

type Rep AttachInstancesToLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachInstancesToLoadBalancer

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

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.