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

Description

 
Synopsis

Documentation

data LoadBalancer Source #

Describes a load balancer.

See: newLoadBalancer smart constructor.

Constructors

LoadBalancer' 

Fields

Instances

Instances details
FromJSON LoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LoadBalancer

Generic LoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LoadBalancer

Associated Types

type Rep LoadBalancer :: Type -> Type #

Read LoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LoadBalancer

Show LoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LoadBalancer

NFData LoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LoadBalancer

Methods

rnf :: LoadBalancer -> () #

Eq LoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LoadBalancer

Hashable LoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LoadBalancer

type Rep LoadBalancer Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LoadBalancer

type Rep LoadBalancer = D1 ('MetaData "LoadBalancer" "Amazonka.Lightsail.Types.LoadBalancer" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "LoadBalancer'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "configurationOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap LoadBalancerAttributeName Text)))) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "dnsName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "healthCheckPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpsRedirectionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "instanceHealthSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceHealthSummary])) :*: (S1 ('MetaSel ('Just "instancePort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "ipAddressType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IpAddressType)))))) :*: (((S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceLocation)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoadBalancerProtocol)) :*: (S1 ('MetaSel ('Just "publicPorts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Int])) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceType))))) :*: ((S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoadBalancerState)) :*: S1 ('MetaSel ('Just "supportCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "tlsCertificateSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LoadBalancerTlsCertificateSummary])) :*: S1 ('MetaSel ('Just "tlsPolicyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))))

newLoadBalancer :: LoadBalancer Source #

Create a value of LoadBalancer 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:arn:LoadBalancer', loadBalancer_arn - The Amazon Resource Name (ARN) of the load balancer.

$sel:configurationOptions:LoadBalancer', loadBalancer_configurationOptions - A string to string map of the configuration options for your load balancer. Valid values are listed below.

$sel:createdAt:LoadBalancer', loadBalancer_createdAt - The date when your load balancer was created.

$sel:dnsName:LoadBalancer', loadBalancer_dnsName - The DNS name of your Lightsail load balancer.

$sel:healthCheckPath:LoadBalancer', loadBalancer_healthCheckPath - The path you specified to perform your health checks. If no path is specified, the load balancer tries to make a request to the default (root) page.

$sel:httpsRedirectionEnabled:LoadBalancer', loadBalancer_httpsRedirectionEnabled - A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.

$sel:instanceHealthSummary:LoadBalancer', loadBalancer_instanceHealthSummary - An array of InstanceHealthSummary objects describing the health of the load balancer.

$sel:instancePort:LoadBalancer', loadBalancer_instancePort - The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

$sel:ipAddressType:LoadBalancer', loadBalancer_ipAddressType - The IP address type of the load balancer.

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

$sel:location:LoadBalancer', loadBalancer_location - The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail automatically creates your load balancer across Availability Zones.

LoadBalancer, loadBalancer_name - The name of the load balancer (e.g., my-load-balancer).

$sel:protocol:LoadBalancer', loadBalancer_protocol - The protocol you have enabled for your load balancer. Valid values are below.

You can't just have HTTP_HTTPS, but you can have just HTTP.

$sel:publicPorts:LoadBalancer', loadBalancer_publicPorts - An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.

$sel:resourceType:LoadBalancer', loadBalancer_resourceType - The resource type (e.g., LoadBalancer.

$sel:state:LoadBalancer', loadBalancer_state - The status of your load balancer. Valid values are below.

$sel:supportCode:LoadBalancer', loadBalancer_supportCode - The support code. Include this code in your email to support when you have questions about your Lightsail load balancer. This code enables our support team to look up your Lightsail information more easily.

$sel:tags:LoadBalancer', loadBalancer_tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

$sel:tlsCertificateSummaries:LoadBalancer', loadBalancer_tlsCertificateSummaries - An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS certificates. For example, if true, the certificate is attached to the load balancer.

$sel:tlsPolicyName:LoadBalancer', loadBalancer_tlsPolicyName - The name of the TLS security policy for the load balancer.

loadBalancer_arn :: Lens' LoadBalancer (Maybe Text) Source #

The Amazon Resource Name (ARN) of the load balancer.

loadBalancer_configurationOptions :: Lens' LoadBalancer (Maybe (HashMap LoadBalancerAttributeName Text)) Source #

A string to string map of the configuration options for your load balancer. Valid values are listed below.

loadBalancer_createdAt :: Lens' LoadBalancer (Maybe UTCTime) Source #

The date when your load balancer was created.

loadBalancer_dnsName :: Lens' LoadBalancer (Maybe Text) Source #

The DNS name of your Lightsail load balancer.

loadBalancer_healthCheckPath :: Lens' LoadBalancer (Maybe Text) Source #

The path you specified to perform your health checks. If no path is specified, the load balancer tries to make a request to the default (root) page.

loadBalancer_httpsRedirectionEnabled :: Lens' LoadBalancer (Maybe Bool) Source #

A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.

loadBalancer_instanceHealthSummary :: Lens' LoadBalancer (Maybe [InstanceHealthSummary]) Source #

An array of InstanceHealthSummary objects describing the health of the load balancer.

loadBalancer_instancePort :: Lens' LoadBalancer (Maybe Int) Source #

The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

loadBalancer_ipAddressType :: Lens' LoadBalancer (Maybe IpAddressType) Source #

The IP address type of the load balancer.

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

loadBalancer_location :: Lens' LoadBalancer (Maybe ResourceLocation) Source #

The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail automatically creates your load balancer across Availability Zones.

loadBalancer_name :: Lens' LoadBalancer (Maybe Text) Source #

The name of the load balancer (e.g., my-load-balancer).

loadBalancer_protocol :: Lens' LoadBalancer (Maybe LoadBalancerProtocol) Source #

The protocol you have enabled for your load balancer. Valid values are below.

You can't just have HTTP_HTTPS, but you can have just HTTP.

loadBalancer_publicPorts :: Lens' LoadBalancer (Maybe [Int]) Source #

An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.

loadBalancer_resourceType :: Lens' LoadBalancer (Maybe ResourceType) Source #

The resource type (e.g., LoadBalancer.

loadBalancer_state :: Lens' LoadBalancer (Maybe LoadBalancerState) Source #

The status of your load balancer. Valid values are below.

loadBalancer_supportCode :: Lens' LoadBalancer (Maybe Text) Source #

The support code. Include this code in your email to support when you have questions about your Lightsail load balancer. This code enables our support team to look up your Lightsail information more easily.

loadBalancer_tags :: Lens' LoadBalancer (Maybe [Tag]) Source #

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

loadBalancer_tlsCertificateSummaries :: Lens' LoadBalancer (Maybe [LoadBalancerTlsCertificateSummary]) Source #

An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS certificates. For example, if true, the certificate is attached to the load balancer.

loadBalancer_tlsPolicyName :: Lens' LoadBalancer (Maybe Text) Source #

The name of the TLS security policy for the load balancer.