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 |
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
action with the
non-attached certificate, and it will replace the existing one and
become the attached certificate.
The AttachLoadBalancerTlsCertificate
operation supports tag-based
access control via resource tags applied to the resource identified by
load balancer name
. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data AttachLoadBalancerTlsCertificate = AttachLoadBalancerTlsCertificate' {}
- newAttachLoadBalancerTlsCertificate :: Text -> Text -> AttachLoadBalancerTlsCertificate
- attachLoadBalancerTlsCertificate_loadBalancerName :: Lens' AttachLoadBalancerTlsCertificate Text
- attachLoadBalancerTlsCertificate_certificateName :: Lens' AttachLoadBalancerTlsCertificate Text
- data AttachLoadBalancerTlsCertificateResponse = AttachLoadBalancerTlsCertificateResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newAttachLoadBalancerTlsCertificateResponse :: Int -> AttachLoadBalancerTlsCertificateResponse
- attachLoadBalancerTlsCertificateResponse_operations :: Lens' AttachLoadBalancerTlsCertificateResponse (Maybe [Operation])
- attachLoadBalancerTlsCertificateResponse_httpStatus :: Lens' AttachLoadBalancerTlsCertificateResponse Int
Creating a Request
data AttachLoadBalancerTlsCertificate Source #
See: newAttachLoadBalancerTlsCertificate
smart constructor.
AttachLoadBalancerTlsCertificate' | |
|
Instances
newAttachLoadBalancerTlsCertificate Source #
Create a value of AttachLoadBalancerTlsCertificate
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:loadBalancerName:AttachLoadBalancerTlsCertificate'
, attachLoadBalancerTlsCertificate_loadBalancerName
- The name of the load balancer to which you want to associate the
SSL/TLS certificate.
$sel:certificateName:AttachLoadBalancerTlsCertificate'
, attachLoadBalancerTlsCertificate_certificateName
- The name of your SSL/TLS certificate.
Request Lenses
attachLoadBalancerTlsCertificate_loadBalancerName :: Lens' AttachLoadBalancerTlsCertificate Text Source #
The name of the load balancer to which you want to associate the SSL/TLS certificate.
attachLoadBalancerTlsCertificate_certificateName :: Lens' AttachLoadBalancerTlsCertificate Text Source #
The name of your SSL/TLS certificate.
Destructuring the Response
data AttachLoadBalancerTlsCertificateResponse Source #
See: newAttachLoadBalancerTlsCertificateResponse
smart constructor.
AttachLoadBalancerTlsCertificateResponse' | |
|
Instances
newAttachLoadBalancerTlsCertificateResponse Source #
Create a value of AttachLoadBalancerTlsCertificateResponse
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:operations:AttachLoadBalancerTlsCertificateResponse'
, attachLoadBalancerTlsCertificateResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
These SSL/TLS certificates are only usable by Lightsail load balancers. You can't get the certificate and use it for another purpose.
$sel:httpStatus:AttachLoadBalancerTlsCertificateResponse'
, attachLoadBalancerTlsCertificateResponse_httpStatus
- The response's http status code.
Response Lenses
attachLoadBalancerTlsCertificateResponse_operations :: Lens' AttachLoadBalancerTlsCertificateResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
These SSL/TLS certificates are only usable by Lightsail load balancers. You can't get the certificate and use it for another purpose.
attachLoadBalancerTlsCertificateResponse_httpStatus :: Lens' AttachLoadBalancerTlsCertificateResponse Int Source #
The response's http status code.