{"library":"aws-cdk-lib","type":"library","category":null,"description":"AWS Cloud Development Kit v2 — define AWS infrastructure as Python code. Current version: 2.244.0 (Mar 2026). CDK v1 (aws-cdk.core + individual service packages) reached EOL June 2023. v2 consolidates all stable constructs into single 'aws-cdk-lib' package. Import paths completely changed from v1. Construct class moved to separate 'constructs' package. Experimental constructs use '-alpha' suffix packages. Requires CDK CLI ('npm install -g aws-cdk') and 'cdk bootstrap' for each AWS account/region.","language":"python","status":"active","version":"2.244.0","tags":["aws-cdk","aws","iac","infrastructure","python","cdk","cloudformation"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install aws-cdk-lib constructs","imports":["import aws_cdk as cdk\nfrom aws_cdk import (\n    Stack,\n    App,\n    Duration,\n    RemovalPolicy,\n    aws_s3 as s3,\n    aws_lambda as lambda_,\n    aws_iam as iam,\n)\nfrom constructs import Construct\n\nclass MyStack(Stack):\n    def __init__(self, scope: Construct, id: str, **kwargs):\n        super().__init__(scope, id, **kwargs)\n\n        bucket = s3.Bucket(\n            self, 'MyBucket',\n            removal_policy=RemovalPolicy.DESTROY,\n            versioned=True\n        )\n\napp = App()\nMyStack(app, 'MyStack')\napp.synth()","# Stable constructs — from aws_cdk\nfrom aws_cdk import aws_s3 as s3\nfrom aws_cdk import aws_lambda as lambda_\n\n# Experimental constructs — separate alpha package\n# pip install aws-cdk.aws-apigatewayv2-alpha\nfrom aws_cdk.aws_apigatewayv2_alpha import HttpApi\n\n# Check stability before using — alpha APIs may break between minor versions"]},{"cmd":"npm install -g aws-cdk","imports":[]}],"homepage":"https://aws.amazon.com/cdk","github":"https://github.com/aws/aws-cdk","docs":null,"changelog":null,"pypi":"https://pypi.org/project/aws-cdk-lib/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":50,"avg_install_s":17.2,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/aws-cdk-lib/compatibility"}}