Socket
Socket
Sign inDemoInstall

@aws-cdk/aws-certificatemanager

Package Overview
Dependencies
Maintainers
4
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-certificatemanager

The CDK Construct Library for AWS::CertificateManager


Version published
Weekly downloads
122K
increased by56.29%
Maintainers
4
Weekly downloads
 
Created

What is @aws-cdk/aws-certificatemanager?

@aws-cdk/aws-certificatemanager is an AWS CDK library that allows you to manage AWS Certificate Manager (ACM) certificates. It provides constructs for creating and managing SSL/TLS certificates for use with AWS services and your own applications.

What are @aws-cdk/aws-certificatemanager's main functionalities?

Create a Certificate

This feature allows you to create an SSL/TLS certificate for a specified domain name. The certificate is validated using DNS validation.

const cdk = require('aws-cdk-lib');
const certificatemanager = require('@aws-cdk/aws-certificatemanager');

const app = new cdk.App();
const stack = new cdk.Stack(app, 'MyStack');

const certificate = new certificatemanager.Certificate(stack, 'MyCertificate', {
  domainName: 'example.com',
  validation: certificatemanager.CertificateValidation.fromDns(),
});

app.synth();

Import an Existing Certificate

This feature allows you to import an existing ACM certificate using its ARN. This is useful if you want to use a certificate that was created outside of your CDK application.

const cdk = require('aws-cdk-lib');
const certificatemanager = require('@aws-cdk/aws-certificatemanager');

const app = new cdk.App();
const stack = new cdk.Stack(app, 'MyStack');

const certificateArn = 'arn:aws:acm:region:account-id:certificate/certificate-id';
const certificate = certificatemanager.Certificate.fromCertificateArn(stack, 'ImportedCertificate', certificateArn);

app.synth();

Create a Certificate with Email Validation

This feature allows you to create an SSL/TLS certificate for a specified domain name with email validation. ACM will send validation emails to the domain's registered email addresses.

const cdk = require('aws-cdk-lib');
const certificatemanager = require('@aws-cdk/aws-certificatemanager');

const app = new cdk.App();
const stack = new cdk.Stack(app, 'MyStack');

const certificate = new certificatemanager.Certificate(stack, 'MyCertificate', {
  domainName: 'example.com',
  validation: certificatemanager.CertificateValidation.fromEmail(),
});

app.synth();

Other packages similar to @aws-cdk/aws-certificatemanager

Keywords

FAQs

Package last updated on 15 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc