@@ -103,35 +103,6 @@ const getDefaultLambdaOptions = (
103103/**
104104 * A construct that creates a TypeScript-based AWS Lambda function with all necessary AWS resources.
105105 *
106- * This construct creates:
107- * - A Lambda function with TypeScript bundling
108- * - CloudWatch log group with KMS encryption
109- * - Managed IAM policy for writing logs
110- * - IAM role for execution with necessary permissions
111- * - Subscription filter on logs so they are forwarded to splunk
112- * - Managed IAM policy for invoking the Lambda function
113- *
114- * It also
115- * - attaches the Lambda Insights layer for monitoring.
116- * - adds cfnGuard suppressions for common issues.
117- * - adds cdk-nag suppressions for common issues.
118- *
119- * @example
120- * ```typescript
121- * const lambdaFunction = new TypescriptLambdaFunction(this, 'MyFunction', {
122- * functionName: 'my-lambda',
123- * packageBasePath: 'packages/my-lambda',
124- * entryPoint: 'src/handler.ts',
125- * environmentVariables: {
126- * TABLE_NAME: 'my-table'
127- * },
128- * logRetentionInDays: 30,
129- * logLevel: 'INFO',
130- * version: '1.0.0',
131- * commitId: 'abc123',
132- * baseDir: '/path/to/monorepo'
133- * });
134- * ```
135106 */
136107export class TypescriptLambdaFunction extends Construct {
137108 /**
@@ -167,6 +138,34 @@ export class TypescriptLambdaFunction extends Construct {
167138 /**
168139 * Creates a new TypescriptLambdaFunction construct.
169140 *
141+ * This construct creates:
142+ * - A Lambda function with TypeScript bundling
143+ * - CloudWatch log group with KMS encryption
144+ * - Managed IAM policy for writing logs
145+ * - IAM role for execution with necessary permissions
146+ * - Subscription filter on logs so they are forwarded to splunk
147+ * - Managed IAM policy for invoking the Lambda function
148+ *
149+ * It also
150+ * - attaches the Lambda Insights layer for monitoring.
151+ * - adds cfnGuard suppressions for common issues.
152+ * - adds cdk-nag suppressions for common issues.
153+ *
154+ * @example
155+ * ```typescript
156+ * const lambdaFunction = new TypescriptLambdaFunction(this, 'MyFunction', {
157+ * functionName: 'my-lambda',
158+ * packageBasePath: 'packages/my-lambda',
159+ * entryPoint: 'src/handler.ts',
160+ * environmentVariables: {
161+ * TABLE_NAME: 'my-table'
162+ * },
163+ * logRetentionInDays: 30,
164+ * logLevel: 'INFO',
165+ * version: '1.0.0',
166+ * commitId: 'abc123',
167+ * baseDir: '/path/to/monorepo'
168+ * });
170169 * @param scope - The scope in which to define this construct
171170 * @param id - The scoped construct ID. Must be unique amongst siblings in the same scope
172171 * @param props - Configuration properties for the Lambda function
0 commit comments