Skip to content

/AWS1/CL_LSA=>CREATECERTIFICATE()

About CreateCertificate

Creates an SSL/TLS certificate for an Amazon Lightsail content delivery network (CDN) distribution and a container service.

After the certificate is valid, use the AttachCertificateToDistribution action to use the certificate and its domains with your distribution. Or use the UpdateContainerService action to use the certificate and its domains with your container service.

Only certificates created in the us-east-1 Amazon Web Services Region can be attached to Lightsail distributions. Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in the us-east-1 Region.

Method Signature

IMPORTING

Required arguments:

IV_CERTIFICATENAME TYPE /AWS1/LSACERTIFICATENAME /AWS1/LSACERTIFICATENAME

The name for the certificate.

IV_DOMAINNAME TYPE /AWS1/LSADOMAINNAME /AWS1/LSADOMAINNAME

The domain name (example.com) for the certificate.

Optional arguments:

IT_SUBJECTALTERNATIVENAMES TYPE /AWS1/CL_LSASUBJECTALTERNATI00=>TT_SUBJECTALTERNATIVENAMELIST TT_SUBJECTALTERNATIVENAMELIST

An array of strings that specify the alternate domains (example2.com) and subdomains (blog.example.com) for the certificate.

You can specify a maximum of nine alternate domains (in addition to the primary domain name).

Wildcard domain entries (*.example.com) are not supported.

IT_TAGS TYPE /AWS1/CL_LSATAG=>TT_TAGLIST TT_TAGLIST

The tag keys and optional values to add to the certificate during create.

Use the TagResource action to tag a resource after it's created.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LSACREATECERTRESULT /AWS1/CL_LSACREATECERTRESULT