AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

Secret

A Secrets Manager secret for storing sensitive data

Import

import { Secret } from 'aws-cdk-lib/aws-secretsmanager';

Or use the module namespace:

import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
// secretsmanager.Secret

Underlying CloudFormation Resources

This L2 construct creates and manages the following CloudFormation resources.

Learn AWS the Practical Way

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

Subscribe to Newsletter