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 Balancers 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 TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.

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 Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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