aws-cdk.aws-neptune-alpha
The CDK Construct Library for AWS::Neptune
What it is and what it does
This package is the AWS CDK construct library for Amazon Neptune, a managed graph database service. It provides Python classes to define Neptune database clusters and instances declaratively within AWS CDK infrastructure-as-code projects, handling the underlying CloudFormation resource generation. The package lets you configure cluster topology (writer and replica instances), instance types, parameter groups, IAM authentication, logging to CloudWatch, and networking via VPC security groups—all through high-level Python objects rather than raw CloudFormation templates.
Neptune is optimized for storing and querying highly connected datasets using Apache TinkerPop Gremlin or W3C SPARQL query languages. The construct library abstracts away the complexity of setting up a production-grade graph database by providing sensible defaults (port 8182, VPC requirement, automatic endpoint management) while allowing fine-grained control over performance tuning, monitoring, and access policies. It integrates with the broader AWS CDK ecosystem, so you can combine Neptune constructs with other AWS services in a single deployment.
Use it for:
- Define a Neptune cluster with read replicas and IAM authentication in a CDK stack for a knowledge graph application.
- Configure audit logging and CloudWatch exports for a Neptune cluster to meet compliance and monitoring requirements.
- Set custom parameter groups (e.g., query timeout, audit logging) for Neptune instances via CDK without manual AWS Console configuration.
- Grant an IAM role permissions to connect to a Neptune cluster using the grant_connect() helper method.
- Provision Neptune instances with specific engine versions and parameter group families (1.2, 1.3, 1.4) for version-specific feature support.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AWS CDK constructs for defining and managing Amazon Neptune graph database clusters and instances in infrastructure-as-code Python.
Yes. This package is worth installing if you are using AWS CDK to manage infrastructure and need to provision Neptune graph databases. It has low install friction, active maintenance, no known vulnerabilities, and a permissive license. The only caveat is that the APIs are marked experimental and subject to breaking changes between versions, so pin your version and review release notes before upgrading.
Install
aws-cdk-aws-neptune-alpha on PyPI
pip
pip install aws-cdk-aws-neptune-alphauv
uv add aws-cdk-aws-neptune-alphapoetry
poetry add aws-cdk-aws-neptune-alphaInstalling aws-cdk.aws-neptune-alpha
Before you install
Low friction installation with four stable runtime dependencies (aws-cdk-lib, constructs, jsii, publication). Package is actively maintained with recent releases and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows commercial and private use with attribution; no restrictions on modification or distribution.
Quickstart
pip install aws-cdk-aws-neptune-alpha
import aws_cdk.aws_neptune_alpha as neptune
cluster = neptune.DatabaseCluster(self, "Database",
vpc=vpc,
instance_type=neptune.InstanceType.R5_LARGE
)
Requires Python 3.10 or later; requires an existing AWS VPC to launch Neptune clusters into.
Verify before relying
- Whether parameter group families (NEPTUNE_1_2, NEPTUNE_1_3, NEPTUNE_1_4) are all currently supported or if some are deprecated.
- Whether the 2-to-3 week stabilization window for auto minor version upgrades is configurable or fixed.
- Current support status for Neptune engine versions 1.2.0.0 and 1.4 series mentioned in the description.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — aws-cdk-lib, constructs, jsii, publication |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 138,277/month — #11,333 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk_aws_neptune_alpha-2.265.0a0-py3-none-any.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
aws-cdk.aws-ec2Provides AWS CDK constructs for defining EC2…
permissive · top 15,000 on PyPI
aws-cdk.aws-redshift-alphaDefines AWS Redshift clusters and database…
permissive · top 15,000 on PyPI
aws-cdk.aws-location-alphaProvides AWS CDK constructs for building…
permissive · top 15,000 on PyPI
aws-cdk.aws-ecsProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-iot-alphaProvides AWS CDK constructs for defining AWS…
permissive · top 15,000 on PyPI
aws-cdk.aws-ecrProvides AWS CDK constructs for defining,…
permissive · top 15,000 on PyPI
aws-cdk.aws-logsProvides AWS CDK constructs for creating and…
permissive · top 15,000 on PyPI
cdk-iam-floydGenerates AWS IAM policy statements with a…
permissive · top 15,000 on PyPI
aws-cdk.aws-iamProvides Python constructs for defining AWS IAM…
permissive · top 15,000 on PyPI
aws-cdk.aws-glue-alphaProvides AWS CDK L2 constructs for defining AWS…
permissive · top 5,000 on PyPI