UNPKG

cdk-tweet-queue

Version:

Defines an SQS queue with tweet stream from a search

1 lines 4.95 kB
{"version":"2","toolVersion":"5.9.28","snippets":{"119690a6198e7237013b2c6421795694ba7eadd1df3e21917b7a3c7db5367577":{"translations":{"python":{"source":"from cdk_tweet_queue import TweetQueue\n\n\nqueue = TweetQueue(self, \"TweetStream\",\n # this is the ARN of the secret you stored\n secret_arn=\"arn:aws:secretsmanager:us-east-1:1234567891234:secret:xxxxxxxxx\",\n\n # twitter search query\n # see https://developer.twitter.com/en/docs/tweets/search/guides/standard-operators\n query=\"#awscdk\",\n\n # optional properties\n interval_min=60, # optional: polling interval in minutes\n retention_period_sec=60, # optional: queue retention period\n visibility_timeout_sec=60\n)","version":"2"},"csharp":{"source":"using Cdklabs.CdkTweetQueue;\n\n\nvar queue = new TweetQueue(this, \"TweetStream\", new TweetQueueProps {\n // this is the ARN of the secret you stored\n SecretArn = \"arn:aws:secretsmanager:us-east-1:1234567891234:secret:xxxxxxxxx\",\n\n // twitter search query\n // see https://developer.twitter.com/en/docs/tweets/search/guides/standard-operators\n Query = \"#awscdk\",\n\n // optional properties\n IntervalMin = 60, // optional: polling interval in minutes\n RetentionPeriodSec = 60, // optional: queue retention period\n VisibilityTimeoutSec = 60\n});","version":"1"},"java":{"source":"import io.github.cdklabs.tweetqueue.TweetQueue;\n\n\nTweetQueue queue = TweetQueue.Builder.create(this, \"TweetStream\")\n // this is the ARN of the secret you stored\n .secretArn(\"arn:aws:secretsmanager:us-east-1:1234567891234:secret:xxxxxxxxx\")\n\n // twitter search query\n // see https://developer.twitter.com/en/docs/tweets/search/guides/standard-operators\n .query(\"#awscdk\")\n\n // optional properties\n .intervalMin(60) // optional: polling interval in minutes\n .retentionPeriodSec(60) // optional: queue retention period\n .visibilityTimeoutSec(60)\n .build();","version":"1"},"go":{"source":"import \"github.com/aws-samples/dummy/cdktweetqueue\"\n\n\nqueue := cdktweetqueue.NewTweetQueue(this, jsii.String(\"TweetStream\"), &TweetQueueProps{\n\t// this is the ARN of the secret you stored\n\tSecretArn: jsii.String(\"arn:aws:secretsmanager:us-east-1:1234567891234:secret:xxxxxxxxx\"),\n\n\t// twitter search query\n\t// see https://developer.twitter.com/en/docs/tweets/search/guides/standard-operators\n\tQuery: jsii.String(\"#awscdk\"),\n\n\t// optional properties\n\tIntervalMin: jsii.Number(60),\n\t // optional: polling interval in minutes\n\tRetentionPeriodSec: jsii.Number(60),\n\t // optional: queue retention period\n\tVisibilityTimeoutSec: jsii.Number(60),\n})","version":"1"},"$":{"source":"import { TweetQueue } from 'cdk-tweet-queue';\n\nconst queue = new TweetQueue(this, 'TweetStream', {\n // this is the ARN of the secret you stored\n secretArn: 'arn:aws:secretsmanager:us-east-1:1234567891234:secret:xxxxxxxxx',\n\n // twitter search query\n // see https://developer.twitter.com/en/docs/tweets/search/guides/standard-operators\n query: '#awscdk',\n\n // optional properties\n intervalMin: 60, // optional: polling interval in minutes\n retentionPeriodSec: 60, // optional: queue retention period\n visibilityTimeoutSec: 60, // optional: queue visilibity timeout\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-tweet-queue"},"field":{"field":"markdown","line":53}},"didCompile":true,"fqnsReferenced":["cdk-tweet-queue.TweetQueue","cdk-tweet-queue.TweetQueueProps","constructs.Construct"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\nimport { TweetQueue } from 'cdk-tweet-queue';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport {\n Stack,\n} from 'aws-cdk-lib';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst queue = new TweetQueue(this, 'TweetStream', {\n // this is the ARN of the secret you stored\n secretArn: 'arn:aws:secretsmanager:us-east-1:1234567891234:secret:xxxxxxxxx',\n\n // twitter search query\n // see https://developer.twitter.com/en/docs/tweets/search/guides/standard-operators\n query: '#awscdk',\n\n // optional properties\n intervalMin: 60, // optional: polling interval in minutes\n retentionPeriodSec: 60, // optional: queue retention period\n visibilityTimeoutSec: 60, // optional: queue visilibity timeout\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}","syntaxKindCounter":{"9":3,"11":4,"80":8,"110":1,"211":1,"215":1,"244":1,"261":1,"262":1,"273":1,"274":1,"276":1,"277":1,"304":5,"308":1},"fqnsFingerprint":"5bf1f2ec20c44c293599c2abb6106bb49fd320dd2c3f79857236b98a814f8897"}}}