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.

Information about a listener.

For information about the protocols and the ports supported by Elastic Load Balancing, see Listeners for Your Classic Load Balancer in the Classic Load Balancer Guide.

Inheritance Hierarchy

System.Object
  Amazon.ElasticLoadBalancing.Model.Listener

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

Syntax

C#
public class Listener

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 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 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