{"id":9521,"library":"aws-cdk-aws-kinesisfirehose-destinations-alpha","title":"AWS CDK Kinesis Firehose Destinations (Alpha - Deprecated)","description":"This Python package provided experimental (alpha) AWS CDK constructs for defining destinations for Kinesis Firehose delivery streams. It is officially deprecated as of CDK v2.186.0a0, and all its constructs have been merged into the main `aws-cdk-lib` package. Users should migrate to the equivalent constructs within `aws_cdk.aws_kinesisfirehose_destinations` for stable and actively maintained functionality. This package will no longer receive updates.","status":"deprecated","version":"2.186.0a0","language":"en","source_language":"en","source_url":"https://github.com/aws/aws-cdk.git","tags":["aws","cdk","kinesis","firehose","cloud","infrastructure","deprecated"],"install":[{"cmd":"pip install aws-cdk-lib","lang":"bash","label":"Install the replacement stable library"},{"cmd":"pip install aws-cdk-aws-kinesisfirehose-destinations-alpha","lang":"bash","label":"Install the deprecated alpha package (not recommended)"}],"dependencies":[{"reason":"This library's functionality has been integrated into `aws-cdk-lib`. It is the recommended replacement.","package":"aws-cdk-lib","optional":false}],"imports":[{"note":"The alpha module's constructs have been moved to `aws_cdk.aws_kinesisfirehose_destinations` within `aws-cdk-lib`.","wrong":"from aws_cdk_aws_kinesisfirehose_destinations_alpha import S3BucketDestination","symbol":"S3BucketDestination","correct":"from aws_cdk.aws_kinesisfirehose_destinations import S3BucketDestination"}],"quickstart":{"code":"import os\nfrom aws_cdk import (\n    App,\n    Stack,\n    Environment,\n    aws_s3 as s3,\n    aws_kinesisfirehose as kinesisfirehose,\n    aws_kinesisfirehose_destinations as kinesisfirehose_destinations,\n)\nfrom constructs import Construct\n\nclass MyFirehoseStack(Stack):\n    def __init__(self, scope: Construct, id: str, **kwargs) -> None:\n        super().__init__(scope, id, **kwargs)\n\n        # Create an S3 Bucket for the Firehose destination\n        bucket = s3.Bucket(\n            self, \"FirehoseDestinationBucket\",\n            bucket_name=f\"my-firehose-target-{self.account}-{self.region}\",\n        )\n\n        # Define the S3 destination for Kinesis Firehose using the stable module\n        s3_destination = kinesisfirehose_destinations.S3BucketDestination(\n            bucket,\n            # Optional: configure compression, buffer, etc.\n            # compression=kinesisfirehose_destinations.Compression.GZIP,\n        )\n\n        # Create a Kinesis Firehose Delivery Stream\n        firehose_stream = kinesisfirehose.DeliveryStream(\n            self, \"MyFirehoseStream\",\n            destinations=[s3_destination],\n            delivery_stream_name=\"my-app-firehose-stream-stable\",\n        )\n\napp = App()\nMyFirehoseStack(app, \"MyFirehoseStack\",\n    env=Environment(\n        account=os.environ.get('CDK_DEFAULT_ACCOUNT', '123456789012'),\n        region=os.environ.get('CDK_DEFAULT_REGION', 'us-east-1')\n    )\n)\napp.synth()","lang":"python","description":"This quickstart demonstrates how to create a Kinesis Firehose delivery stream with an S3 destination using the stable `aws-cdk-lib` imports, which replaced the functionality of the deprecated `aws-cdk-aws-kinesisfirehose-destinations-alpha`."},"warnings":[{"fix":"Migrate all imports and construct usages to `aws_cdk.aws_kinesisfirehose_destinations` within `aws-cdk-lib`.","message":"This entire module is deprecated and its constructs have been moved into `aws-cdk-lib`. Relying on `aws-cdk-aws-kinesisfirehose-destinations-alpha` will lead to broken deployments and lack of future support.","severity":"breaking","affected_versions":">=2.186.0a0"},{"fix":"Always check the official AWS CDK documentation and release notes for 'alpha' modules. Prefer stable constructs when available for production environments.","message":"Using 'alpha' modules in AWS CDK signifies experimental, potentially unstable APIs. These modules can change significantly or be merged into the main library without traditional major version bumps, leading to unexpected breaking changes.","severity":"gotcha","affected_versions":"<2.186.0a0"},{"fix":"Update your CDK code to use the stable constructs from `aws-cdk-lib`, specifically `aws_cdk.aws_kinesisfirehose_destinations` for destination-related resources.","message":"The AWS CDK CLI or synthesis process will emit warnings if it detects usage of deprecated alpha constructs. For example, 'The \"@aws-cdk/aws-kinesisfirehose-destinations-alpha\" module has been deprecated and its constructs are now available in the \"@aws-cdk/aws-kinesisfirehose\" module.'","severity":"deprecated","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-17T00:00:00.000Z","next_check":"2026-07-16T00:00:00.000Z","problems":[{"fix":"Install `aws-cdk-lib` and update your import statements to `from aws_cdk.aws_kinesisfirehose_destinations import ...`.","cause":"You are trying to import from the deprecated standalone alpha package, which is either not installed or has been explicitly uninstalled.","error":"ModuleNotFoundError: No module named 'aws_cdk_aws_kinesisfirehose_destinations_alpha'"},{"fix":"Consult the `aws-cdk-lib` documentation for `aws_cdk.aws_kinesisfirehose_destinations` to find the correct class names and their usage.","cause":"Even if the deprecated package is installed, the specific construct name or its API might have changed during its migration from alpha to the stable `aws-cdk-lib`.","error":"AttributeError: module 'aws_cdk_aws_kinesisfirehose_destinations_alpha' has no attribute 'S3BucketDestination'"}]}