Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a listener for the specified Application Load Balancer.
You can create up to 10 listeners per load balancer.
To update a listener, use ModifyListener
. When you are finished with a listener, you can delete it using DeleteListener
. If you are finished with both the listener and the load balancer, you can delete them both using DeleteLoadBalancer
.
For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide .
- createListener :: Text -> ProtocolEnum -> Natural -> CreateListener
- data CreateListener
- clSSLPolicy :: Lens' CreateListener (Maybe Text)
- clCertificates :: Lens' CreateListener [Certificate]
- clLoadBalancerARN :: Lens' CreateListener Text
- clProtocol :: Lens' CreateListener ProtocolEnum
- clPort :: Lens' CreateListener Natural
- clDefaultActions :: Lens' CreateListener [Action]
- createListenerResponse :: Int -> CreateListenerResponse
- data CreateListenerResponse
- clrsListeners :: Lens' CreateListenerResponse [Listener]
- clrsResponseStatus :: Lens' CreateListenerResponse Int
Creating a Request
Creates a value of CreateListener
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
clSSLPolicy
- The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.clCertificates
- The SSL server certificate. You must provide exactly one certificate if the protocol is HTTPS.clLoadBalancerARN
- The Amazon Resource Name (ARN) of the load balancer.clProtocol
- The protocol for connections from clients to the load balancer.clPort
- The port on which the load balancer is listening.clDefaultActions
- The default action for the listener.
data CreateListener Source #
Contains the parameters for CreateListener.
See: createListener
smart constructor.
Request Lenses
clSSLPolicy :: Lens' CreateListener (Maybe Text) Source #
The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.
clCertificates :: Lens' CreateListener [Certificate] Source #
The SSL server certificate. You must provide exactly one certificate if the protocol is HTTPS.
clLoadBalancerARN :: Lens' CreateListener Text Source #
The Amazon Resource Name (ARN) of the load balancer.
clProtocol :: Lens' CreateListener ProtocolEnum Source #
The protocol for connections from clients to the load balancer.
clDefaultActions :: Lens' CreateListener [Action] Source #
The default action for the listener.
Destructuring the Response
createListenerResponse Source #
Creates a value of CreateListenerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
clrsListeners
- Information about the listener.clrsResponseStatus
- -- | The response status code.
data CreateListenerResponse Source #
Contains the output of CreateListener.
See: createListenerResponse
smart constructor.
Response Lenses
clrsListeners :: Lens' CreateListenerResponse [Listener] Source #
Information about the listener.
clrsResponseStatus :: Lens' CreateListenerResponse Int Source #
- - | The response status code.