{"id":27636,"library":"cdk-tweet-queue","title":"CDK Tweet Queue","description":"An AWS CDK construct that creates an SQS queue populated with tweets from a search query. Version 2.0.949, released weekly.","status":"active","version":"2.0.949","language":"python","source_language":"en","source_url":"https://github.com/cdklabs/cdk-tweet-queue","tags":["aws","cdk","sqs","tweets","construct"],"install":[{"cmd":"pip install cdk-tweet-queue","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"CDK library integration","package":"aws-cdk-lib","optional":false},{"reason":"Core construct class","package":"constructs","optional":false}],"imports":[{"note":"Package name uses underscores, not hyphens","wrong":"from tweet_queue import TweetQueue","symbol":"TweetQueue","correct":"from cdk_tweet_queue import TweetQueue"}],"quickstart":{"code":"from aws_cdk import App, Stack\nfrom aws_cdk import aws_sqs as sqs\nfrom cdk_tweet_queue import TweetQueue\n\napp = App()\nstack = Stack(app, \"MyStack\")\n\nqueue = TweetQueue(\n    stack,\n    \"MyTweetQueue\",\n    query=\"#python\",\n    consumer_timeout=300,\n    max_receive_count=3,\n    retry_attempts=3,\n)\n\napp.synth()","lang":"python","description":"Create an SQS queue that streams tweets matching a search query."},"warnings":[{"fix":"Access the queue via `queue.queue` after construction.","message":"The construct creates an SQS queue internally; do not provide your own queue – use the exposed queue attribute.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Ensure your Twitter developer credentials are for API v2. See changelog for migration.","message":"The `query` parameter previously supported Twitter API v1.1 endpoints; migrate to v2 if using OAuth 2.0.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Set `consumer_timeout` to a value >= 60 seconds, e.g., 300.","message":"The `consumer_timeout` must be a positive integer (in seconds). Negative or zero values cause deployment failure.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use `from cdk_tweet_queue import TweetQueue`","cause":"Import path uses incorrect hyphenated name instead of underscores.","error":"ModuleNotFoundError: No module named 'tweet_queue'"},{"fix":"Do not provide a queue; use `queue.queue` to reference the created queue.","cause":"Trying to pass an existing SQS queue to the construct which creates its own.","error":"jsii.errors.JSIIError: Cannot resolve resource 'arn:aws:sqs:...'"},{"fix":"Use `queue.queue.queue_arn` or the `queue` attribute.","cause":"Old property name before v2 update.","error":"AttributeError: 'TweetQueue' object has no attribute 'queue_arn'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}