aws-cdk.aws-sam
The CDK Construct Library for the AWS Serverless Application Model (SAM) resources
What it is and what it does
This package is part of AWS CDK v1 and provides low-level (L1) constructs for the Serverless Application Model (SAM), allowing you to define serverless AWS resources as Python code. It translates those definitions into CloudFormation templates that AWS can deploy.
Because AWS CDK v1 reached end-of-support on 2023-06-01, this package is no longer maintained or updated. The description explicitly recommends migrating to AWS CDK v2 instead. If you are starting a new project, you should use v2; this package is suitable only for maintaining existing v1 codebases, not for new development.
Use it for:
- Maintaining existing AWS CDK v1 projects that define serverless infrastructure in Python
- Converting CloudFormation SAM templates to CDK code using L1 constructs as a bridge
- Learning CDK fundamentals through v1 documentation before migrating to v2
- Defining serverless resources declaratively in code for existing v1 deployments
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AWS CDK v1 constructs for defining Serverless Application Model (SAM) resources in Python, enabling Infrastructure-as-Code definitions of serverless AWS applications.
No, unless you are actively maintaining an existing AWS CDK v1 codebase. The package is end-of-support as of 2023-06-01 and receives no updates. New projects should use AWS CDK v2 instead. Existing v1 users should plan a migration to v2.
Install
aws-cdk-aws-sam on PyPI
pip
pip install aws-cdk-aws-samuv
uv add aws-cdk-aws-sampoetry
poetry add aws-cdk-aws-samInstalling aws-cdk.aws-sam
Before you install
Low install friction with a stable dependency chain. However, this package reached end-of-support on 2023-06-01 and is no longer being updated; AWS CDK v1 has been superseded by v2, and users are advised to migrate rather than adopt this version.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install aws-cdk.aws-sam==1.204.0
import aws_cdk.aws_sam as serverless
AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer maintained; new projects should use AWS CDK v2 instead.
Verify before relying
- Whether L1 constructs remain functional with current AWS CloudFormation SAM resource definitions
- Migration path complexity and tooling support for moving from v1 to v2
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — aws-cdk.core, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 145,070/month — #11,136 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk.aws_sam-1.204.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
aws-cdk.aws-imagebuilderProvides AWS CDK L1 constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-ssmProvides CDK constructs for defining AWS…
permissive · top 15,000 on PyPI
aws-cdk.aws-stepfunctionsProvides Python constructs for defining AWS…
permissive · top 15,000 on PyPI
aws-cdk.coreProvides the core construct classes and stack…
permissive · top 15,000 on PyPI
aws-sam-translatorTransforms AWS Serverless Application Model…
permissive · top 1,000 on PyPI
aws-cdk.aws-amplify-alphaDefines AWS Amplify hosting infrastructure as…
permissive · top 15,000 on PyPI
aws-sam-cliAWS SAM CLI is a command-line tool for…
permissive · top 5,000 on PyPI
aws-cdk.aws-lambda-python-alphaProvides AWS CDK constructs for defining,…
permissive · top 5,000 on PyPI
aws-cdk.aws-sqsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-cloudformationDefines AWS CloudFormation resources…
permissive · top 15,000 on PyPI