How to use the ACM function from aws-sdk
Find comprehensive JavaScript aws-sdk.ACM code examples handpicked from public code repositorys.
The AWS SDK ACM (AWS Certificate Manager) allows users to manage SSL/TLS certificates on AWS.
34 35 36 37 38 39 40 41 42 43 44 45
function checkCertificate(event, context, nextCall) { if (nextCall > 0) { const certificateARN = event.ResourceProperties.certificateARN; const acm = new aws.ACM({apiVersion: '2015-12-08', region: 'us-east-1'}); acm.describeCertificate({CertificateArn: certificateARN}, function(err, data) { if (err == undefined) {
9 10 11 12 13 14 15 16 17 18 19 20 21 22
}; function getCertificateInfo(certificateARN, resultHandler) { var acm = new aws.ACM({apiVersion: '2015-12-08', region: 'us-east-1'}); acm.describeCertificate({CertificateArn: certificateARN}, function(err, data) { if (err == undefined) {
How does aws-sdk.ACM work?
The AWS SDK ACM (AWS Certificate Manager) provides a set of APIs for managing SSL/TLS certificates and automating the renewal process of the certificates in AWS.
The ACM
object in the AWS SDK allows you to create, manage, and delete public and private SSL/TLS certificates that are used to secure network connections between a client and a server.
With ACM
, you can request, issue, and renew SSL/TLS certificates in AWS, and manage them through the console or programmatically via the AWS SDK.
You can also use the ACM
APIs to configure the certificate rotation policy for your AWS resources, ensuring that they are always up-to-date with the latest certificate versions.
Ai Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14
const AWS = require("aws-sdk"); const acm = new AWS.ACM({ region: "us-east-1" }); acm.describeCertificate( { CertificateArn: "arn:aws:acm:us-east-1:123456789012:certificate/abcdabcd-abcd-abcd-abcd-abcdabcdabcd", }, function (err, data) { if (err) console.log(err, err.stack); else console.log(data); } );
This code creates a new instance of the ACM class with the AWS SDK, sets the region to us-east-1, and then uses the describeCertificate method to get information about a specific certificate, identified by its ARN. If the operation is successful, the data about the certificate is logged to the console.
aws-sdk.S3 is the most popular function in aws-sdk (7245 examples)