amazonka-elbv2-1.6.1: Amazon Elastic Load Balancing SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ELBv2.CreateListener

Contents

Description

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

Creating a Request

createListener Source #

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
Eq CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Data CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateListener -> c CreateListener #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateListener #

toConstr :: CreateListener -> Constr #

dataTypeOf :: CreateListener -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateListener) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateListener) #

gmapT :: (forall b. Data b => b -> b) -> CreateListener -> CreateListener #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateListener -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateListener -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateListener -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateListener -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateListener -> m CreateListener #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateListener -> m CreateListener #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateListener -> m CreateListener #

Read CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Show CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Generic CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Associated Types

type Rep CreateListener :: Type -> Type #

Hashable CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

AWSRequest CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Associated Types

type Rs CreateListener :: Type #

ToHeaders CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

ToPath CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

ToQuery CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

NFData CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Methods

rnf :: CreateListener -> () #

type Rep CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

type Rep CreateListener = D1 (MetaData "CreateListener" "Network.AWS.ELBv2.CreateListener" "amazonka-elbv2-1.6.1-E4uu6EqNDMk4f08ZYDVKwx" False) (C1 (MetaCons "CreateListener'" PrefixI True) ((S1 (MetaSel (Just "_clSSLPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_clCertificates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Certificate])) :*: S1 (MetaSel (Just "_clLoadBalancerARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_clProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ProtocolEnum) :*: (S1 (MetaSel (Just "_clPort") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat) :*: S1 (MetaSel (Just "_clDefaultActions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Action])))))
type Rs CreateListener Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

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.

clPort :: Lens' CreateListener Natural Source #

The port on which the load balancer is listening.

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:

data CreateListenerResponse Source #

See: createListenerResponse smart constructor.

Instances
Eq CreateListenerResponse Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Data CreateListenerResponse Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateListenerResponse -> c CreateListenerResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateListenerResponse #

toConstr :: CreateListenerResponse -> Constr #

dataTypeOf :: CreateListenerResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateListenerResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateListenerResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateListenerResponse -> CreateListenerResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateListenerResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateListenerResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateListenerResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateListenerResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateListenerResponse -> m CreateListenerResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateListenerResponse -> m CreateListenerResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateListenerResponse -> m CreateListenerResponse #

Read CreateListenerResponse Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Show CreateListenerResponse Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Generic CreateListenerResponse Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Associated Types

type Rep CreateListenerResponse :: Type -> Type #

NFData CreateListenerResponse Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

Methods

rnf :: CreateListenerResponse -> () #

type Rep CreateListenerResponse Source # 
Instance details

Defined in Network.AWS.ELBv2.CreateListener

type Rep CreateListenerResponse = D1 (MetaData "CreateListenerResponse" "Network.AWS.ELBv2.CreateListener" "amazonka-elbv2-1.6.1-E4uu6EqNDMk4f08ZYDVKwx" False) (C1 (MetaCons "CreateListenerResponse'" PrefixI True) (S1 (MetaSel (Just "_clrsListeners") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Listener])) :*: S1 (MetaSel (Just "_clrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

clrsListeners :: Lens' CreateListenerResponse [Listener] Source #

Information about the listener.

clrsResponseStatus :: Lens' CreateListenerResponse Int Source #

  • - | The response status code.