amazonka-lightsail-1.6.0: Amazon Lightsail 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.Lightsail.AttachLoadBalancerTLSCertificate

Contents

Description

Attaches a Transport Layer Security (TLS) certificate to your load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL).

Once you create and validate your certificate, you can attach it to your load balancer. You can also use this API to rotate the certificates on your account. Use the AttachLoadBalancerTlsCertificate operation with the non-attached certificate, and it will replace the existing one and become the attached certificate.

Synopsis

Creating a Request

attachLoadBalancerTLSCertificate #

Creates a value of AttachLoadBalancerTLSCertificate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AttachLoadBalancerTLSCertificate #

See: attachLoadBalancerTLSCertificate smart constructor.

Instances

Eq AttachLoadBalancerTLSCertificate # 
Data AttachLoadBalancerTLSCertificate # 

Methods

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

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

toConstr :: AttachLoadBalancerTLSCertificate -> Constr #

dataTypeOf :: AttachLoadBalancerTLSCertificate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachLoadBalancerTLSCertificate # 
Show AttachLoadBalancerTLSCertificate # 
Generic AttachLoadBalancerTLSCertificate # 
Hashable AttachLoadBalancerTLSCertificate # 
ToJSON AttachLoadBalancerTLSCertificate # 
NFData AttachLoadBalancerTLSCertificate # 
AWSRequest AttachLoadBalancerTLSCertificate # 
ToHeaders AttachLoadBalancerTLSCertificate # 
ToPath AttachLoadBalancerTLSCertificate # 
ToQuery AttachLoadBalancerTLSCertificate # 
type Rep AttachLoadBalancerTLSCertificate # 
type Rep AttachLoadBalancerTLSCertificate = D1 * (MetaData "AttachLoadBalancerTLSCertificate" "Network.AWS.Lightsail.AttachLoadBalancerTLSCertificate" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" False) (C1 * (MetaCons "AttachLoadBalancerTLSCertificate'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_albtcLoadBalancerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_albtcCertificateName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs AttachLoadBalancerTLSCertificate # 

Request Lenses

albtcLoadBalancerName :: Lens' AttachLoadBalancerTLSCertificate Text #

The name of the load balancer to which you want to associate the SSL/TLS certificate.

albtcCertificateName :: Lens' AttachLoadBalancerTLSCertificate Text #

The name of your SSL/TLS certificate.

Destructuring the Response

attachLoadBalancerTLSCertificateResponse #

Creates a value of AttachLoadBalancerTLSCertificateResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • albtcrsOperations - An object representing the API operations. These SSL/TLS certificates are only usable by Lightsail load balancers. You can't get the certificate and use it for another purpose.
  • albtcrsResponseStatus - -- | The response status code.

data AttachLoadBalancerTLSCertificateResponse #

Instances

Eq AttachLoadBalancerTLSCertificateResponse # 
Data AttachLoadBalancerTLSCertificateResponse # 

Methods

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

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

toConstr :: AttachLoadBalancerTLSCertificateResponse -> Constr #

dataTypeOf :: AttachLoadBalancerTLSCertificateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachLoadBalancerTLSCertificateResponse # 
Show AttachLoadBalancerTLSCertificateResponse # 
Generic AttachLoadBalancerTLSCertificateResponse # 
NFData AttachLoadBalancerTLSCertificateResponse # 
type Rep AttachLoadBalancerTLSCertificateResponse # 
type Rep AttachLoadBalancerTLSCertificateResponse = D1 * (MetaData "AttachLoadBalancerTLSCertificateResponse" "Network.AWS.Lightsail.AttachLoadBalancerTLSCertificate" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" False) (C1 * (MetaCons "AttachLoadBalancerTLSCertificateResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_albtcrsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Operation]))) (S1 * (MetaSel (Just Symbol "_albtcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

albtcrsOperations :: Lens' AttachLoadBalancerTLSCertificateResponse [Operation] #

An object representing the API operations. These SSL/TLS certificates are only usable by Lightsail load balancers. You can't get the certificate and use it for another purpose.