AWS SDK for .NET Documentation
Listener Class
AmazonAmazon.ElasticLoadBalancing.ModelListener Did this page help you?   Yes   No    Tell us about it...

The Listener data type.

Declaration Syntax
C#
public class Listener
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
Listener()()()()
Default constructor for a new Listener object. Callers should use the properties or fluent setter (With...) methods to initialize this object after creating it.

Listener(String, Int32, Int32)
Constructs a new Listener object. Callers should use the properties or fluent setter (With...) methods to initialize any additional object members.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InstancePort
Specifies the TCP port on which the instance server is listening. This property cannot be modified for the life of the load balancer.

Constraints:

Range
1 - 65535


InstanceProtocol
Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or SSL. This property cannot be modified for the life of the load balancer.
Note:
If the front-end protocol is HTTP or HTTPS, InstanceProtocol has to be at the same protocol layer, i.e., HTTP or HTTPS. Likewise, if the front-end protocol is TCP or SSL, InstanceProtocol has to be TCP or SSL.
Note:
If there is another listener with the same InstancePort whose InstanceProtocol is secure, i.e., HTTPS or SSL, the listener's InstanceProtocol has to be secure, i.e., HTTPS or SSL. If there is another listener with the same InstancePort whose InstanceProtocol is HTTP or TCP, the listener's InstanceProtocol must be either HTTP or TCP.

LoadBalancerPort
Specifies the external load balancer port number. This property cannot be modified for the life of the load balancer.

Protocol
Specifies the load balancer transport protocol to use for routing - HTTP, HTTPS, TCP or SSL. This property cannot be modified for the life of the load balancer.

SSLCertificateId
The ARN string of the server certificate. To get the ARN of the server certificate, call the AWS Identity and Access Management UploadServerCertificate API.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithInstancePort(Int32) Obsolete.
Sets the InstancePort property

WithInstanceProtocol(String) Obsolete.
Sets the InstanceProtocol property

WithLoadBalancerPort(Int32) Obsolete.
Sets the LoadBalancerPort property

WithProtocol(String) Obsolete.
Sets the Protocol property

WithSSLCertificateId(String) Obsolete.
Sets the SSLCertificateId property

Inheritance Hierarchy
Object
Listener

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)