Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a listener for the specified Application Load Balancer or Network 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
.
This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple listeners with the same settings, each call succeeds.
For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide and Listeners for Your Network Load Balancers in the Network Load Balancers Guide .
Synopsis
- 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
- [HTTPS listeners] The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.clCertificates
- [HTTPS listeners] The SSL server certificate. You must provide exactly one certificate.clLoadBalancerARN
- The Amazon Resource Name (ARN) of the load balancer.clProtocol
- The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocol is TCP.clPort
- The port on which the load balancer is listening.clDefaultActions
- The default action for the listener. For Application Load Balancers, the protocol of the specified target group must be HTTP or HTTPS. For Network Load Balancers, the protocol of the specified target group must be TCP.
data CreateListener Source #
See: createListener
smart constructor.
Instances
Request Lenses
clSSLPolicy :: Lens' CreateListener (Maybe Text) Source #
- HTTPS listeners
- The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.
clCertificates :: Lens' CreateListener [Certificate] Source #
- HTTPS listeners
- The SSL server certificate. You must provide exactly one certificate.
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. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocol is TCP.
clDefaultActions :: Lens' CreateListener [Action] Source #
The default action for the listener. For Application Load Balancers, the protocol of the specified target group must be HTTP or HTTPS. For Network Load Balancers, the protocol of the specified target group must be TCP.
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 #
See: createListenerResponse
smart constructor.
Instances
Response Lenses
clrsListeners :: Lens' CreateListenerResponse [Listener] Source #
Information about the listener.
clrsResponseStatus :: Lens' CreateListenerResponse Int Source #
- - | The response status code.