skillfed

aws-cdk.aws-neptune-alpha

The CDK Construct Library for AWS::Neptune

aws-cdk-aws-neptune-alpha v2.265.0a0 138.3K downloads/30d#11,333 on PyPI12,868
Permissive license Apache-2.0 Active released

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

uv

uv add aws-cdk-aws-neptune-alpha

poetry

poetry add aws-cdk-aws-neptune-alpha

Installing 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

Development Status :: 4 - BetaFramework :: 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 neptune databasegraph database infrastructure codeaws neptune cluster constructcdk managed databaseneptune iam authenticationgraph database provisioningaws neptune cloudformation
aws-cdkinfrastructure-as-codegraph-database

More Database packages

psycopg2-binary

psycopg2-binary is a PostgreSQL database…

copyleft · top 1,000 on PyPI

redis

Python client library for connecting to and…

permissive · top 1,000 on PyPI

ydb

YDB Python SDK is the official client library…

permissive · top 1,000 on PyPI

snowflake-connector-python

Connects Python applications to Snowflake data…

permissive · top 1,000 on PyPI

sqlparse

sqlparse tokenizes SQL text into a tree of…

permissive · top 1,000 on PyPI

dbt-adapters

Provides base adapter protocols and shared…

permissive · top 1,000 on PyPI

aws-cdk.aws-ec2

Provides AWS CDK constructs for defining EC2…

permissive · top 15,000 on PyPI

aws-cdk.aws-redshift-alpha

Defines AWS Redshift clusters and database…

permissive · top 15,000 on PyPI

aws-cdk.aws-location-alpha

Provides AWS CDK constructs for building…

permissive · top 15,000 on PyPI

aws-cdk.aws-ecs

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-iot-alpha

Provides AWS CDK constructs for defining AWS…

permissive · top 15,000 on PyPI

aws-cdk.aws-ecr

Provides AWS CDK constructs for defining,…

permissive · top 15,000 on PyPI

aws-cdk.aws-logs

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI

cdk-iam-floyd

Generates AWS IAM policy statements with a…

permissive · top 15,000 on PyPI

aws-cdk.aws-iam

Provides Python constructs for defining AWS IAM…

permissive · top 15,000 on PyPI

aws-cdk.aws-glue-alpha

Provides AWS CDK L2 constructs for defining AWS…

permissive · top 5,000 on PyPI