AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Describes the Lightsail load balancer.

Inheritance Hierarchy

System.Object
  Amazon.Lightsail.Model.LoadBalancer

Namespace: Amazon.Lightsail.Model
Assembly: AWSSDK.Lightsail.dll
Version: 3.x.y.z

Syntax

C#
public class LoadBalancer

The LoadBalancer type exposes the following members

Constructors

NameDescription
Public Method LoadBalancer()

Properties

NameTypeDescription
Public Property Arn System.String

Gets and sets the property Arn.

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

Public Property ConfigurationOptions System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property ConfigurationOptions.

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

Public Property CreatedAt System.DateTime

Gets and sets the property CreatedAt.

The date when your load balancer was created.

Public Property DnsName System.String

Gets and sets the property DnsName.

The DNS name of your Lightsail load balancer.

Public Property HealthCheckPath System.String

Gets and sets the property 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.

Public Property InstanceHealthSummary System.Collections.Generic.List<Amazon.Lightsail.Model.InstanceHealthSummary>

Gets and sets the property InstanceHealthSummary.

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

Public Property InstancePort System.Int32

Gets and sets the property 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.

Public Property Location Amazon.Lightsail.Model.ResourceLocation

Gets and sets the property Location.

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

Public Property Name System.String

Gets and sets the property Name.

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

Public Property Protocol Amazon.Lightsail.LoadBalancerProtocol

Gets and sets the property 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.

Public Property PublicPorts System.Collections.Generic.List<System.Int32>

Gets and sets the property PublicPorts.

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

Public Property ResourceType Amazon.Lightsail.ResourceType

Gets and sets the property ResourceType.

The resource type (e.g., LoadBalancer.

Public Property State Amazon.Lightsail.LoadBalancerState

Gets and sets the property State.

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

Public Property SupportCode System.String

Gets and sets the property 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.

Public Property TlsCertificateSummaries System.Collections.Generic.List<Amazon.Lightsail.Model.LoadBalancerTlsCertificateSummary>

Gets and sets the property 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.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms