LoadBalancer class

Describes the Lightsail load balancer.

Constructors

LoadBalancer({String? arn, Map<LoadBalancerAttributeName, String>? configurationOptions, DateTime? createdAt, String? dnsName, String? healthCheckPath, List<InstanceHealthSummary>? instanceHealthSummary, int? instancePort, ResourceLocation? location, String? name, LoadBalancerProtocol? protocol, List<int>? publicPorts, ResourceType? resourceType, LoadBalancerState? state, String? supportCode, List<Tag>? tags, List<LoadBalancerTlsCertificateSummary>? tlsCertificateSummaries})
LoadBalancer.fromJson(Map<String, dynamic> json)
factory

Properties

arn String?
The Amazon Resource Name (ARN) of the load balancer.
final
configurationOptions Map<LoadBalancerAttributeName, String>?
A string to string map of the configuration options for your load balancer. Valid values are listed below.
final
createdAt DateTime?
The date when your load balancer was created.
final
dnsName String?
The DNS name of your Lightsail load balancer.
final
hashCode int
The hash code for this object.
no setterinherited
healthCheckPath String?
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.
final
instanceHealthSummary List<InstanceHealthSummary>?
An array of InstanceHealthSummary objects describing the health of the load balancer.
final
instancePort int?
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.
final
location ResourceLocation?
The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail automatically creates your load balancer across Availability Zones.
final
name String?
The name of the load balancer (e.g., my-load-balancer).
final
protocol LoadBalancerProtocol?
The protocol you have enabled for your load balancer. Valid values are below.
final
publicPorts List<int>?
An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.
final
resourceType ResourceType?
The resource type (e.g., LoadBalancer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state LoadBalancerState?
The status of your load balancer. Valid values are below.
final
supportCode String?
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.
final
tags List<Tag>?
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
final
tlsCertificateSummaries List<LoadBalancerTlsCertificateSummary>?
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited