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.

Container for the parameters to the CreateLoadBalancer operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Lightsail.AmazonLightsailRequest
      Amazon.Lightsail.Model.CreateLoadBalancerRequest

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

Syntax

C#
public class CreateLoadBalancerRequest : AmazonLightsailRequest
         IAmazonWebServiceRequest

The CreateLoadBalancerRequest type exposes the following members

Constructors

NameDescription
Public Method CreateLoadBalancerRequest()

Properties

NameTypeDescription
Public Property CertificateAlternativeNames System.Collections.Generic.List<System.String>

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

Public Property CertificateDomainName System.String

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

Public Property CertificateName System.String

Gets and sets the property CertificateName.

The name of the SSL/TLS certificate.

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

Public Property HealthCheckPath System.String

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

Public Property InstancePort System.Int32

Gets and sets the property InstancePort.

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

Public Property LoadBalancerName System.String

Gets and sets the property LoadBalancerName.

The name of your 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