{"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,"search_vec":"'2.0.949':21 'aw':5,24 'cdk':1,6,25 'construct':7,28 'creat':9 'popul':13 'queri':19 'queue':3,12 'releas':22 'search':18 'sqs':11,26 'tweet':2,15,27 'version':20 'week':23","created_at":"2026-05-09T05:51:17.510107+00:00","updated_at":"2026-05-09T05:51:17.510107+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/cdklabs/cdk-tweet-queue","docs":null,"changelog":null,"pypi":"https://pypi.org/project/cdk-tweet-queue/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["aws","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}