AWS::Lightsail::Certificate
The AWS::Lightsail::Certificate resource specifies an SSL/TLS certificate
that you can use with a content delivery network (CDN) distribution and a container
service.
Note
For information about certificates that you can use with a load balancer, see AWS::Lightsail::LoadBalancerTlsCertificate.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Lightsail::Certificate", "Properties" : { "CertificateName" :String, "DomainName" :String, "SubjectAlternativeNames" :[ String, ... ], "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::Lightsail::Certificate Properties: CertificateName:StringDomainName:StringSubjectAlternativeNames:- StringTags:- Tag
Properties
CertificateName-
The name of the certificate.
Required: Yes
Type: String
Update requires: Replacement
DomainName-
The domain name of the certificate.
Required: Yes
Type: String
Update requires: Updates are not supported.
SubjectAlternativeNames-
An array of strings that specify the alternate domains (such as
example.org) and subdomains (such asblog.example.com) of the certificate.Required: No
Type: List of String
Update requires: Updates are not supported.
Tags-
An array of key-value pairs to apply to this resource.
For more information, see Tag in the Amazon CloudFormation User Guide.
Note
The
ValueofTagsis optional for Lightsail resources.Required: No
Type: List of Tag
Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns a unique identifier for this resource.
Fn::GetAtt
The Fn::GetAttintrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAttintrinsic function, see Fn::GetAtt.