AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Lightsail::LoadBalancerTlsCertificate

CfnLoadBalancerTlsCertificate

The `AWS::Lightsail::LoadBalancerTlsCertificate` resource specifies a TLS certificate that can be used with a Lightsail load balancer.

Import

import { CfnLoadBalancerTlsCertificate } from 'aws-cdk-lib/aws-lightsail';

Or use the module namespace:

import * as lightsail from 'aws-cdk-lib/aws-lightsail';
// lightsail.CfnLoadBalancerTlsCertificate

Properties

Configuration passed to the constructor as CfnLoadBalancerTlsCertificateProps.

certificateDomainNameRequired
string

The domain name for the SSL/TLS certificate. For example, `example.com` or `www.example.com` .

certificateNameRequired
string

The name of the SSL/TLS certificate.

loadBalancerNameRequired
string

The name of the load balancer that the SSL/TLS certificate is attached to.

certificateAlternativeNamesOptional
string[]

An array of alternative domain names and subdomain names for your SSL/TLS certificate. In addition to the primary domain name, you can have up to nine alternative domain names. Wildcards (such as `*.example.com` ) are not supported.

httpsRedirectionEnabledOptional
boolean | IResolvable

A Boolean value indicating whether HTTPS redirection is enabled for the load balancer that the TLS certificate is attached to.

isAttachedOptional
boolean | IResolvable

A Boolean value indicating whether the SSL/TLS certificate is attached to a Lightsail load balancer.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter