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.
Namespace: Amazon.ElasticLoadBalancing.Model
Assembly: AWSSDK.ElasticLoadBalancing.dll
Version: 3.x.y.z
public class Listener
The Listener type exposes the following members
Name | Description | |
---|---|---|
Listener() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
Listener(string, int, int) |
Instantiates Listener with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
InstancePort | System.Int32 |
Gets and sets the property InstancePort. The port on which the instance is listening. |
|
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
If there is another listener with the same |
|
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. |
|
Protocol | System.String |
Gets and sets the property Protocol. The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL. |
|
SSLCertificateId | System.String |
Gets and sets the property SSLCertificateId. The Amazon Resource Name (ARN) of the server certificate. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5