Skip to main content

load_balancer_tls_certificates

Creates, updates, deletes, gets or lists a load_balancer_tls_certificates resource.

Overview

Nameload_balancer_tls_certificates
TypeResource
Idaws.lightsail.load_balancer_tls_certificates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tls_certificatesarrayAn array of LoadBalancerTlsCertificate objects describing your SSL/TLS certificates.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_load_balancer_tls_certificatesselectregionReturns information about the TLS certificates that are associated with the specified Lightsail load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL). You can have a maximum of 2 certificates associated with a Lightsail load balancer. One is active and the other is inactive.
create_load_balancer_tls_certificateinsertregion, loadBalancerName, certificateName, certificateDomainNameCreates an SSL/TLS certificate for an Amazon Lightsail load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL). The CreateLoadBalancerTlsCertificate 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.
attach_load_balancer_tls_certificateupdateregion, loadBalancerName, certificateNameAttaches 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.
delete_load_balancer_tls_certificatedeleteregionDeletes an SSL/TLS certificate associated with a Lightsail load balancer. The DeleteLoadBalancerTlsCertificate 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about the TLS certificates that are associated with the specified Lightsail load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL). You can have a maximum of 2 certificates associated with a Lightsail load balancer. One is active and the other is inactive.

SELECT
tls_certificates
FROM aws.lightsail.load_balancer_tls_certificates
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an SSL/TLS certificate for an Amazon Lightsail load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL). The CreateLoadBalancerTlsCertificate 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.

INSERT INTO aws.lightsail.load_balancer_tls_certificates (
loadBalancerName,
certificateName,
certificateDomainName,
certificateAlternativeNames,
tags,
region
)
SELECT
'{{ loadBalancerName }}' /* required */,
'{{ certificateName }}' /* required */,
'{{ certificateDomainName }}' /* required */,
'{{ certificateAlternativeNames }}',
'{{ tags }}',
'{{ region }}'
RETURNING
operations
;

UPDATE examples

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.

UPDATE aws.lightsail.load_balancer_tls_certificates
SET
loadBalancerName = '{{ loadBalancerName }}',
certificateName = '{{ certificateName }}'
WHERE
region = '{{ region }}' --required
AND loadBalancerName = '{{ loadBalancerName }}' --required
AND certificateName = '{{ certificateName }}' --required
RETURNING
operations;

DELETE examples

Deletes an SSL/TLS certificate associated with a Lightsail load balancer. The DeleteLoadBalancerTlsCertificate 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.

DELETE FROM aws.lightsail.load_balancer_tls_certificates
WHERE region = '{{ region }}' --required
;