Skip to main content

Documenting

After you import your Lambda function you can start to add documentation to the resource.

The generated markdown file is split into two main parts:

  • frontmatter
    • Stores information about the Lambda function.
  • markdown
    • Stores documentation about your Lambda function.

Here is an example of a lambda resource markdown file.

---
service: payment-service
description: Automates the sending of payment emails
name: Payment emails
AWS:
Arn: >-
arn:aws:lambda:us-west-2:1234567891234:function:payment-emails
FunctionName: payment-emails
MemorySize: 1024
Runtime: nodejs16.x
Handler: index.handler
LastModified: 2022-11-22T10:55:10.000+0000
CodeSize: 210432
Service: lambda
Account: 123245789
catalog:
updatedAt: "2024-01-02T20:41:55.360Z"
parent: lambda
path: payment-emails
owners:
- dboyne
- mSmith
- payment-team
---

### What does this function do?

The Lambda function is designed to streamline the process of sending payment emails in a highly efficient and automated manner. Once triggered, it meticulously gathers necessary payment details and recipient information from a designated data source. Utilizing this information, the function then dynamically generates personalized payment emails, ensuring that each message includes all relevant details such as payment amount, transaction ID, and due date. The emails are formatted for clarity and professionalism, adhering to predefined templates that maintain brand consistency. Upon successful generation, the Lambda function dispatches these emails to the respective recipients, providing them with timely and accurate payment notifications. This process not only enhances the speed and reliability of payment communications but also significantly reduces the manual effort required, thereby optimizing operational efficiency.

Example resource page

Example of what the above resource would render.

Lambda Example