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

Description

Creates a Lightsail load balancer. To learn more about deciding whether to load balance your application, see Configure your Lightsail instances for load balancing. You can create up to 5 load balancers per AWS Region in your account.

When you create a load balancer, you can specify a unique name and port settings. To change additional load balancer settings, use the UpdateLoadBalancerAttribute operation.

The create load balancer operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data CreateLoadBalancer Source #

See: newCreateLoadBalancer smart constructor.

Constructors

CreateLoadBalancer' 

Fields

  • healthCheckPath :: Maybe Text

    The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").

    You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.

  • certificateName :: Maybe Text

    The name of the SSL/TLS certificate.

    If you specify certificateName, then certificateDomainName is required (and vice-versa).

  • certificateDomainName :: Maybe Text

    The domain name with which your certificate is associated (e.g., example.com).

    If you specify certificateDomainName, then certificateName is required (and vice-versa).

  • certificateAlternativeNames :: Maybe [Text]

    The optional alternative domains and subdomains to use with your SSL/TLS certificate (e.g., www.example.com, example.com, m.example.com, blog.example.com).

  • ipAddressType :: Maybe IpAddressType

    The IP address type for the load balancer.

    The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

  • tags :: Maybe [Tag]

    The tag keys and optional values to add to the resource during create.

    Use the TagResource action to tag a resource after it's created.

  • loadBalancerName :: Text

    The name of your load balancer.

  • instancePort :: Int

    The instance port where you're creating your load balancer.

Instances

Instances details
Eq CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Read CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Show CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Generic CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Associated Types

type Rep CreateLoadBalancer :: Type -> Type #

NFData CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Methods

rnf :: CreateLoadBalancer -> () #

Hashable CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

ToJSON CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

AWSRequest CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Associated Types

type AWSResponse CreateLoadBalancer #

ToHeaders CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

ToPath CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

ToQuery CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

type Rep CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

type Rep CreateLoadBalancer = D1 ('MetaData "CreateLoadBalancer" "Amazonka.Lightsail.CreateLoadBalancer" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateLoadBalancer'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "healthCheckPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "certificateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "certificateDomainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "certificateAlternativeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "ipAddressType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IpAddressType)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "loadBalancerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "instancePort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))
type AWSResponse CreateLoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

newCreateLoadBalancer Source #

Create a value of CreateLoadBalancer 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:healthCheckPath:CreateLoadBalancer', createLoadBalancer_healthCheckPath - The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").

You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.

$sel:certificateName:CreateLoadBalancer', createLoadBalancer_certificateName - The name of the SSL/TLS certificate.

If you specify certificateName, then certificateDomainName is required (and vice-versa).

$sel:certificateDomainName:CreateLoadBalancer', createLoadBalancer_certificateDomainName - The domain name with which your certificate is associated (e.g., example.com).

If you specify certificateDomainName, then certificateName is required (and vice-versa).

$sel:certificateAlternativeNames:CreateLoadBalancer', createLoadBalancer_certificateAlternativeNames - The optional alternative domains and subdomains to use with your SSL/TLS certificate (e.g., www.example.com, example.com, m.example.com, blog.example.com).

$sel:ipAddressType:CreateLoadBalancer', createLoadBalancer_ipAddressType - The IP address type for the load balancer.

The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

The default value is dualstack.

$sel:tags:CreateLoadBalancer', createLoadBalancer_tags - The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

$sel:loadBalancerName:CreateLoadBalancer', createLoadBalancer_loadBalancerName - The name of your load balancer.

$sel:instancePort:CreateLoadBalancer', createLoadBalancer_instancePort - The instance port where you're creating your load balancer.

Request Lenses

createLoadBalancer_healthCheckPath :: Lens' CreateLoadBalancer (Maybe Text) Source #

The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., "/").

You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.

createLoadBalancer_certificateName :: Lens' CreateLoadBalancer (Maybe Text) Source #

The name of the SSL/TLS certificate.

If you specify certificateName, then certificateDomainName is required (and vice-versa).

createLoadBalancer_certificateDomainName :: Lens' CreateLoadBalancer (Maybe Text) Source #

The domain name with which your certificate is associated (e.g., example.com).

If you specify certificateDomainName, then certificateName is required (and vice-versa).

createLoadBalancer_certificateAlternativeNames :: Lens' CreateLoadBalancer (Maybe [Text]) Source #

The optional alternative domains and subdomains to use with your SSL/TLS certificate (e.g., www.example.com, example.com, m.example.com, blog.example.com).

createLoadBalancer_ipAddressType :: Lens' CreateLoadBalancer (Maybe IpAddressType) Source #

The IP address type for the load balancer.

The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

The default value is dualstack.

createLoadBalancer_tags :: Lens' CreateLoadBalancer (Maybe [Tag]) Source #

The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

createLoadBalancer_instancePort :: Lens' CreateLoadBalancer Int Source #

The instance port where you're creating your load balancer.

Destructuring the Response

data CreateLoadBalancerResponse Source #

See: newCreateLoadBalancerResponse smart constructor.

Constructors

CreateLoadBalancerResponse' 

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

Defined in Amazonka.Lightsail.CreateLoadBalancer

Read CreateLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Show CreateLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Generic CreateLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

Associated Types

type Rep CreateLoadBalancerResponse :: Type -> Type #

NFData CreateLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

type Rep CreateLoadBalancerResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateLoadBalancer

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

newCreateLoadBalancerResponse Source #

Create a value of CreateLoadBalancerResponse 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:CreateLoadBalancerResponse', createLoadBalancerResponse_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:CreateLoadBalancerResponse', createLoadBalancerResponse_httpStatus - The response's http status code.

Response Lenses

createLoadBalancerResponse_operations :: Lens' CreateLoadBalancerResponse (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.