AWS SDK Version 2 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.

.NET Framework 4.5
 
Information about a listener.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.

Inheritance Hierarchy

System.Object
  Amazon.ElasticLoadBalancing.Model.Listener

Namespace: Amazon.ElasticLoadBalancing.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class Listener : Object

The Listener type exposes the following members

Constructors

NameDescription
Public Method Listener() Empty constructor used to set properties independently even when a simple constructor is available
Public Method Listener(string, int, int) Instantiates Listener with the parameterized properties

Properties

NameTypeDescription
Public Property InstancePort System.Int32 Gets and sets the property InstancePort.

The port on which the instance is listening.

Public Property InstanceProtocol System.String Gets and sets the property InstanceProtocol.

The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.

If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must be at the same protocol.

If there is another listener with the same InstancePort whose InstanceProtocol is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.

If there is another listener with the same InstancePort whose InstanceProtocol is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.

Public Property LoadBalancerPort System.Int32 Gets and sets the property LoadBalancerPort.

The port on which the load balancer is listening. On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.

Public Property Protocol System.String Gets and sets the property Protocol.

The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.

Public Property SSLCertificateId System.String Gets and sets the property SSLCertificateId.

The Amazon Resource Name (ARN) of the server certificate.

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8