aws-cdk.cx-api
Cloud executable protocol
What it is and what it does
aws-cdk.cx-api is the protocol layer and context API that underpins the AWS Cloud Development Kit. It defines how CDK synthesizes infrastructure code into cloud assembly artifacts—the intermediate representation that gets deployed to CloudFormation and other AWS services. The package handles serialization of CDK constructs, manages feature flags that control CDK behavior across versions, and provides the runtime context needed for CDK applications to generate correct CloudFormation templates.
This is a low-level component primarily consumed by other CDK modules rather than directly by application code. It depends on jsii for language bindings, cloud-assembly-schema for artifact structure, and publication for distribution. The package is actively maintained as part of the AWS CDK project and supports Python 3.10 through 3.14.
Use it for:
- Building custom CDK constructs or extensions that need to interact with the cloud assembly protocol.
- Configuring CDK feature flags in cdk.json to control S3 bucket policies, SNS-SQS security, API Gateway CloudWatch roles, and other infrastructure behaviors.
- Integrating CDK-generated infrastructure with custom deployment or validation tooling that consumes cloud assembly artifacts.
- Debugging CDK synthesis by accessing the context API and cloud executable format directly.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides the cloud executable protocol and context API for AWS CDK, enabling the CDK to serialize and communicate infrastructure definitions to CloudFormation and other deployment targets.
Yes, but typically as a transitive dependency rather than a direct install. If you are building AWS CDK applications in Python, this package will be installed automatically. Install it directly only if you are extending CDK with custom constructs, building tooling around CDK synthesis, or need to configure advanced feature flags for your infrastructure code.
Install
aws-cdk-cx-api on PyPI
pip
pip install aws-cdk-cx-apiuv
uv add aws-cdk-cx-apipoetry
poetry add aws-cdk-cx-apiInstalling aws-cdk.cx-api
Before you install
Active maintenance with a release 1 day old. Low install friction with only 3 runtime dependencies. Part of the core AWS CDK ecosystem with strong repository signals (12868 stars, current commits).
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—standard for AWS CDK components.
Quickstart
pip install aws-cdk.cx-api
from aws_cdk.cloud_assembly_schema import CloudAssembly
from aws_cdk.cx_api import CloudAssemblyBuilder
builder = CloudAssemblyBuilder()
# Use builder to construct cloud assembly artifacts
Requires Python 3.10 or later; intended as an internal AWS CDK component, not typically installed directly by end users.
Verify before relying
- Whether this package is intended for direct use or primarily as an internal CDK dependency.
- Specific use cases and APIs beyond feature flag configuration documented in the excerpt.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — aws-cdk.cloud-assembly-schema, jsii, publication |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 203,758/month — #9,625 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk_cx_api-2.265.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
aws-cdk.cloud-assembly-schemaProvides the schema and structures for AWS CDK…
permissive · top 5,000 on PyPI
aws-cdk.coreProvides the core construct classes and stack…
permissive · top 15,000 on PyPI
aws-cdk.aws-cloudformationDefines AWS CloudFormation resources…
permissive · top 15,000 on PyPI
aws-cdk.assetsProvides Python bindings for AWS CDK asset…
permissive · top 15,000 on PyPI
aws-cdk.aws-s3-deploymentDeploys files and directories to AWS S3 buckets…
permissive · top 15,000 on PyPI
aws-cdk.aws-s3Defines AWS S3 buckets and related resources as…
permissive · top 15,000 on PyPI
aws-cdk.aws-cloudfrontDefines AWS CloudFront distributions and…
permissive · top 15,000 on PyPI
aws-cdk.aws-codebuildDefines AWS CodeBuild projects and build…
permissive · top 15,000 on PyPI
aws-cdk-libProvides Python APIs to define and deploy AWS…
permissive · top 5,000 on PyPI
aws-cdk.aws-imagebuilderProvides AWS CDK L1 constructs for defining and…
permissive · top 15,000 on PyPI