Skip to main content

load_balancer_tls_certificates

Creates, updates, deletes or gets a load_balancer_tls_certificate resource or lists load_balancer_tls_certificates in a region

Overview

Nameload_balancer_tls_certificates
TypeResource
DescriptionResource Type definition for AWS::Lightsail::LoadBalancerTlsCertificate
Idaws.lightsail.load_balancer_tls_certificates

Fields

NameDatatypeDescription
load_balancer_namestringThe name of your load balancer.
certificate_namestringThe SSL/TLS certificate name.
certificate_domain_namestringThe domain name (e.g., example.com ) for your SSL/TLS certificate.
certificate_alternative_namesarrayAn array of strings listing alternative domains and subdomains for your SSL/TLS certificate.
load_balancer_tls_certificate_arnstring
is_attachedbooleanWhen true, the SSL/TLS certificate is attached to the Lightsail load balancer.
https_redirection_enabledbooleanA Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.
statusstringThe validation status of the SSL/TLS certificate.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTLoadBalancerName, CertificateName, CertificateDomainName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all load_balancer_tls_certificates in a region.

SELECT
region,
load_balancer_name,
certificate_name,
certificate_domain_name,
certificate_alternative_names,
load_balancer_tls_certificate_arn,
is_attached,
https_redirection_enabled,
status
FROM aws.lightsail.load_balancer_tls_certificates
WHERE region = 'us-east-1';

Gets all properties from an individual load_balancer_tls_certificate.

SELECT
region,
load_balancer_name,
certificate_name,
certificate_domain_name,
certificate_alternative_names,
load_balancer_tls_certificate_arn,
is_attached,
https_redirection_enabled,
status
FROM aws.lightsail.load_balancer_tls_certificates
WHERE region = 'us-east-1' AND data__Identifier = '<CertificateName>|<LoadBalancerName>';

INSERT example

Use the following StackQL query and manifest file to create a new load_balancer_tls_certificate resource, using stack-deploy.

/*+ create */
INSERT INTO aws.lightsail.load_balancer_tls_certificates (
LoadBalancerName,
CertificateName,
CertificateDomainName,
region
)
SELECT
'{{ LoadBalancerName }}',
'{{ CertificateName }}',
'{{ CertificateDomainName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.lightsail.load_balancer_tls_certificates
WHERE data__Identifier = '<CertificateName|LoadBalancerName>'
AND region = 'us-east-1';

Permissions

To operate on the load_balancer_tls_certificates resource, the following permissions are required:

Create

lightsail:CreateLoadBalancerTlsCertificate,
lightsail:GetLoadBalancerTlsCertificates,
lightsail:GetLoadBalancer,
lightsail:AttachLoadBalancerTlsCertificate,
lightsail:UpdateLoadBalancerAttribute

Read

lightsail:GetLoadBalancerTlsCertificates,
lightsail:GetLoadBalancer

Update

lightsail:AttachLoadBalancerTlsCertificate,
lightsail:GetLoadBalancerTlsCertificates,
lightsail:GetLoadBalancer,
lightsail:UpdateLoadBalancerAttribute

Delete

lightsail:DeleteLoadBalancerTlsCertificate,
lightsail:GetLoadBalancerTlsCertificates,
lightsail:GetLoadBalancer

List

lightsail:GetLoadBalancerTlsCertificates,
lightsail:GetLoadBalancer