skillfed

aws-cdk.cx-api

Cloud executable protocol

aws-cdk-cx-api v2.265.0 203.8K downloads/30d#9,625 on PyPI12,868
Permissive license Apache-2.0 Active released

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-api

uv

uv add aws-cdk-cx-api

poetry

poetry add aws-cdk-cx-api

Installing 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

Development Status :: 5 - Production/StableFramework :: AWS CDKFramework :: AWS CDK :: 2Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

AWS CDK cloud assemblyCDK context APIinfrastructure serializationCDK protocol layercloud executable formatCDK deployment protocolAWS infrastructure as code runtime
aws-cdkinfrastructure-as-codecloudformation

More Build Tools packages

packaging

Provides reusable utilities for Python…

permissive · top 100 on PyPI

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

pip

pip is the standard installer for Python…

permissive · top 100 on PyPI

hatchling

Hatchling is a standards-compliant Python build…

permissive · top 100 on PyPI

grpcio-tools

Generates Python gRPC service stubs and message…

permissive · top 1,000 on PyPI

pre-commit

pre-commit is a framework for installing and…

permissive · top 1,000 on PyPI

aws-cdk.cloud-assembly-schema

Provides the schema and structures for AWS CDK…

permissive · top 5,000 on PyPI

aws-cdk.core

Provides the core construct classes and stack…

permissive · top 15,000 on PyPI

aws-cdk.aws-cloudformation

Defines AWS CloudFormation resources…

permissive · top 15,000 on PyPI

aws-cdk.assets

Provides Python bindings for AWS CDK asset…

permissive · top 15,000 on PyPI

aws-cdk.aws-s3-deployment

Deploys files and directories to AWS S3 buckets…

permissive · top 15,000 on PyPI

aws-cdk.aws-s3

Defines AWS S3 buckets and related resources as…

permissive · top 15,000 on PyPI

aws-cdk.aws-cloudfront

Defines AWS CloudFront distributions and…

permissive · top 15,000 on PyPI

aws-cdk.aws-codebuild

Defines AWS CodeBuild projects and build…

permissive · top 15,000 on PyPI

aws-cdk-lib

Provides Python APIs to define and deploy AWS…

permissive · top 5,000 on PyPI

aws-cdk.aws-imagebuilder

Provides AWS CDK L1 constructs for defining and…

permissive · top 15,000 on PyPI