Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Listener = Listener' {}
- newListener :: Text -> Int -> Natural -> Listener
- listener_instanceProtocol :: Lens' Listener (Maybe Text)
- listener_sSLCertificateId :: Lens' Listener (Maybe Text)
- listener_protocol :: Lens' Listener Text
- listener_loadBalancerPort :: Lens' Listener Int
- listener_instancePort :: Lens' Listener Natural
Documentation
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.
See: newListener
smart constructor.
Listener' | |
|
Instances
Create a value of Listener
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:instanceProtocol:Listener'
, listener_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.
$sel:sSLCertificateId:Listener'
, listener_sSLCertificateId
- The Amazon Resource Name (ARN) of the server certificate.
$sel:protocol:Listener'
, listener_protocol
- The load balancer transport protocol to use for routing: HTTP, HTTPS,
TCP, or SSL.
$sel:loadBalancerPort:Listener'
, listener_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.
$sel:instancePort:Listener'
, listener_instancePort
- The port on which the instance is listening.
listener_instanceProtocol :: Lens' Listener (Maybe Text) Source #
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.
listener_sSLCertificateId :: Lens' Listener (Maybe Text) Source #
The Amazon Resource Name (ARN) of the server certificate.
listener_protocol :: Lens' Listener Text Source #
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.