1 | {
|
2 | "version": "2",
|
3 | "toolVersion": "1.60.0",
|
4 | "snippets": {
|
5 | "9b3365b0b516f3f406547311fb9155a01fc5d7a33ff5432f1098fc522e7713e4": {
|
6 | "translations": {
|
7 | "python": {
|
8 | "source": "my_topic = sns.Topic(self, \"MyTopic\")",
|
9 | "version": "2"
|
10 | },
|
11 | "csharp": {
|
12 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");",
|
13 | "version": "1"
|
14 | },
|
15 | "java": {
|
16 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");",
|
17 | "version": "1"
|
18 | },
|
19 | "go": {
|
20 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))",
|
21 | "version": "1"
|
22 | },
|
23 | "$": {
|
24 | "source": "const myTopic = new sns.Topic(this, 'MyTopic');",
|
25 | "version": "0"
|
26 | }
|
27 | },
|
28 | "location": {
|
29 | "api": {
|
30 | "api": "moduleReadme",
|
31 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
32 | },
|
33 | "field": {
|
34 | "field": "markdown",
|
35 | "line": 29
|
36 | }
|
37 | },
|
38 | "didCompile": true,
|
39 | "fqnsReferenced": [
|
40 | "@aws-cdk/aws-sns.Topic",
|
41 | "constructs.Construct"
|
42 | ],
|
43 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'MyTopic');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
44 | "syntaxKindCounter": {
|
45 | "10": 1,
|
46 | "75": 3,
|
47 | "104": 1,
|
48 | "194": 1,
|
49 | "197": 1,
|
50 | "225": 1,
|
51 | "242": 1,
|
52 | "243": 1
|
53 | },
|
54 | "fqnsFingerprint": "61c5d274b72c99008597b804f25d2cf4cf4f420c2d139cada7197fe437409ee1"
|
55 | },
|
56 | "3b4a129e1ea865e816668e13c4bdb5567da59db6b866cfb10e24c74fef37ffcb": {
|
57 | "translations": {
|
58 | "python": {
|
59 | "source": "my_topic = sns.Topic(self, \"MyTopic\")\n\nmy_topic.add_subscription(subscriptions.UrlSubscription(\"https://foobar.com/\"))",
|
60 | "version": "2"
|
61 | },
|
62 | "csharp": {
|
63 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");\n\nmyTopic.AddSubscription(new UrlSubscription(\"https://foobar.com/\"));",
|
64 | "version": "1"
|
65 | },
|
66 | "java": {
|
67 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");\n\nmyTopic.addSubscription(new UrlSubscription(\"https://foobar.com/\"));",
|
68 | "version": "1"
|
69 | },
|
70 | "go": {
|
71 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))\n\nmyTopic.addSubscription(subscriptions.NewUrlSubscription(jsii.String(\"https://foobar.com/\")))",
|
72 | "version": "1"
|
73 | },
|
74 | "$": {
|
75 | "source": "const myTopic = new sns.Topic(this, 'MyTopic');\n\nmyTopic.addSubscription(new subscriptions.UrlSubscription('https://foobar.com/'));",
|
76 | "version": "0"
|
77 | }
|
78 | },
|
79 | "location": {
|
80 | "api": {
|
81 | "api": "moduleReadme",
|
82 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
83 | },
|
84 | "field": {
|
85 | "field": "markdown",
|
86 | "line": 37
|
87 | }
|
88 | },
|
89 | "didCompile": true,
|
90 | "fqnsReferenced": [
|
91 | "@aws-cdk/aws-sns-subscriptions.UrlSubscription",
|
92 | "@aws-cdk/aws-sns.ITopicSubscription",
|
93 | "@aws-cdk/aws-sns.Topic",
|
94 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
95 | "constructs.Construct"
|
96 | ],
|
97 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'MyTopic');\n\nmyTopic.addSubscription(new subscriptions.UrlSubscription('https://foobar.com/'));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
98 | "syntaxKindCounter": {
|
99 | "10": 2,
|
100 | "75": 7,
|
101 | "104": 1,
|
102 | "194": 3,
|
103 | "196": 1,
|
104 | "197": 2,
|
105 | "225": 1,
|
106 | "226": 1,
|
107 | "242": 1,
|
108 | "243": 1
|
109 | },
|
110 | "fqnsFingerprint": "ff638095bad2d85bc46b14046c2e2854d61ab42f794b081409b46fc794c664f5"
|
111 | },
|
112 | "7ed66238a915019fe0d4117b757d70dc1897c710048ce146982d0c852b518f63": {
|
113 | "translations": {
|
114 | "python": {
|
115 | "source": "my_topic = sns.Topic(self, \"MyTopic\")\nurl = CfnParameter(self, \"url-param\")\n\nmy_topic.add_subscription(subscriptions.UrlSubscription(url.value_as_string))",
|
116 | "version": "2"
|
117 | },
|
118 | "csharp": {
|
119 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");\nCfnParameter url = new CfnParameter(this, \"url-param\");\n\nmyTopic.AddSubscription(new UrlSubscription(url.ValueAsString));",
|
120 | "version": "1"
|
121 | },
|
122 | "java": {
|
123 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");\nCfnParameter url = new CfnParameter(this, \"url-param\");\n\nmyTopic.addSubscription(new UrlSubscription(url.getValueAsString()));",
|
124 | "version": "1"
|
125 | },
|
126 | "go": {
|
127 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))\nurl := awscdkcore.NewCfnParameter(this, jsii.String(\"url-param\"))\n\nmyTopic.addSubscription(subscriptions.NewUrlSubscription(url.valueAsString))",
|
128 | "version": "1"
|
129 | },
|
130 | "$": {
|
131 | "source": "const myTopic = new sns.Topic(this, 'MyTopic');\nconst url = new CfnParameter(this, 'url-param');\n\nmyTopic.addSubscription(new subscriptions.UrlSubscription(url.valueAsString));",
|
132 | "version": "0"
|
133 | }
|
134 | },
|
135 | "location": {
|
136 | "api": {
|
137 | "api": "moduleReadme",
|
138 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
139 | },
|
140 | "field": {
|
141 | "field": "markdown",
|
142 | "line": 48
|
143 | }
|
144 | },
|
145 | "didCompile": true,
|
146 | "fqnsReferenced": [
|
147 | "@aws-cdk/aws-sns-subscriptions.UrlSubscription",
|
148 | "@aws-cdk/aws-sns.ITopicSubscription",
|
149 | "@aws-cdk/aws-sns.Topic",
|
150 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
151 | "@aws-cdk/core.CfnParameter",
|
152 | "constructs.Construct"
|
153 | ],
|
154 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'MyTopic');\nconst url = new CfnParameter(this, 'url-param');\n\nmyTopic.addSubscription(new subscriptions.UrlSubscription(url.valueAsString));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
155 | "syntaxKindCounter": {
|
156 | "10": 2,
|
157 | "75": 11,
|
158 | "104": 2,
|
159 | "194": 4,
|
160 | "196": 1,
|
161 | "197": 3,
|
162 | "225": 2,
|
163 | "226": 1,
|
164 | "242": 2,
|
165 | "243": 2
|
166 | },
|
167 | "fqnsFingerprint": "2a6db2891bed7745729060276e23fe49a009ab32ae4ed66d58bb23330bb36b2d"
|
168 | },
|
169 | "c179ec018819784d9c003621d0568d6b4de9364512a34c3728ea4631a1e3431f": {
|
170 | "translations": {
|
171 | "python": {
|
172 | "source": "my_queue = sqs.Queue(self, \"MyQueue\")\nmy_topic = sns.Topic(self, \"MyTopic\")\n\nmy_topic.add_subscription(subscriptions.SqsSubscription(my_queue))",
|
173 | "version": "2"
|
174 | },
|
175 | "csharp": {
|
176 | "source": "Queue myQueue = new Queue(this, \"MyQueue\");\nTopic myTopic = new Topic(this, \"MyTopic\");\n\nmyTopic.AddSubscription(new SqsSubscription(myQueue));",
|
177 | "version": "1"
|
178 | },
|
179 | "java": {
|
180 | "source": "Queue myQueue = new Queue(this, \"MyQueue\");\nTopic myTopic = new Topic(this, \"MyTopic\");\n\nmyTopic.addSubscription(new SqsSubscription(myQueue));",
|
181 | "version": "1"
|
182 | },
|
183 | "go": {
|
184 | "source": "myQueue := sqs.NewQueue(this, jsii.String(\"MyQueue\"))\nmyTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))\n\nmyTopic.addSubscription(subscriptions.NewSqsSubscription(myQueue))",
|
185 | "version": "1"
|
186 | },
|
187 | "$": {
|
188 | "source": "const myQueue = new sqs.Queue(this, 'MyQueue');\nconst myTopic = new sns.Topic(this, 'MyTopic');\n\nmyTopic.addSubscription(new subscriptions.SqsSubscription(myQueue));",
|
189 | "version": "0"
|
190 | }
|
191 | },
|
192 | "location": {
|
193 | "api": {
|
194 | "api": "moduleReadme",
|
195 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
196 | },
|
197 | "field": {
|
198 | "field": "markdown",
|
199 | "line": 59
|
200 | }
|
201 | },
|
202 | "didCompile": true,
|
203 | "fqnsReferenced": [
|
204 | "@aws-cdk/aws-sns-subscriptions.SqsSubscription",
|
205 | "@aws-cdk/aws-sns.ITopicSubscription",
|
206 | "@aws-cdk/aws-sns.Topic",
|
207 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
208 | "@aws-cdk/aws-sqs.IQueue",
|
209 | "@aws-cdk/aws-sqs.Queue",
|
210 | "constructs.Construct"
|
211 | ],
|
212 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myQueue = new sqs.Queue(this, 'MyQueue');\nconst myTopic = new sns.Topic(this, 'MyTopic');\n\nmyTopic.addSubscription(new subscriptions.SqsSubscription(myQueue));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
213 | "syntaxKindCounter": {
|
214 | "10": 2,
|
215 | "75": 11,
|
216 | "104": 2,
|
217 | "194": 4,
|
218 | "196": 1,
|
219 | "197": 3,
|
220 | "225": 2,
|
221 | "226": 1,
|
222 | "242": 2,
|
223 | "243": 2
|
224 | },
|
225 | "fqnsFingerprint": "161e51861d9be47777e64999ff262596db32fc28f2a6a899b11f24b955431c19"
|
226 | },
|
227 | "41cf3e91f1e955b71deb95ce41cb1db22d64be929b774a373fcc9073d3796b70": {
|
228 | "translations": {
|
229 | "python": {
|
230 | "source": "import aws_cdk.aws_lambda as lambda_\n# my_function: lambda.Function\n\n\nmy_topic = sns.Topic(self, \"myTopic\")\nmy_topic.add_subscription(subscriptions.LambdaSubscription(my_function))",
|
231 | "version": "2"
|
232 | },
|
233 | "csharp": {
|
234 | "source": "using Amazon.CDK.AWS.Lambda;\nFunction myFunction;\n\n\nTopic myTopic = new Topic(this, \"myTopic\");\nmyTopic.AddSubscription(new LambdaSubscription(myFunction));",
|
235 | "version": "1"
|
236 | },
|
237 | "java": {
|
238 | "source": "import software.amazon.awscdk.services.lambda.*;\nFunction myFunction;\n\n\nTopic myTopic = new Topic(this, \"myTopic\");\nmyTopic.addSubscription(new LambdaSubscription(myFunction));",
|
239 | "version": "1"
|
240 | },
|
241 | "go": {
|
242 | "source": "import lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\nvar myFunction function\n\n\nmyTopic := sns.NewTopic(this, jsii.String(\"myTopic\"))\nmyTopic.addSubscription(subscriptions.NewLambdaSubscription(myFunction))",
|
243 | "version": "1"
|
244 | },
|
245 | "$": {
|
246 | "source": "import * as lambda from '@aws-cdk/aws-lambda';\n\nconst myTopic = new sns.Topic(this, 'myTopic');\ndeclare const myFunction: lambda.Function;\nmyTopic.addSubscription(new subscriptions.LambdaSubscription(myFunction));",
|
247 | "version": "0"
|
248 | }
|
249 | },
|
250 | "location": {
|
251 | "api": {
|
252 | "api": "moduleReadme",
|
253 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
254 | },
|
255 | "field": {
|
256 | "field": "markdown",
|
257 | "line": 76
|
258 | }
|
259 | },
|
260 | "didCompile": true,
|
261 | "fqnsReferenced": [
|
262 | "@aws-cdk/aws-lambda.IFunction",
|
263 | "@aws-cdk/aws-sns-subscriptions.LambdaSubscription",
|
264 | "@aws-cdk/aws-sns.ITopicSubscription",
|
265 | "@aws-cdk/aws-sns.Topic",
|
266 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
267 | "constructs.Construct"
|
268 | ],
|
269 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as lambda from '@aws-cdk/aws-lambda';\ndeclare const myFunction: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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 myTopic = new sns.Topic(this, 'myTopic');\nmyTopic.addSubscription(new subscriptions.LambdaSubscription(myFunction));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
270 | "syntaxKindCounter": {
|
271 | "10": 2,
|
272 | "75": 12,
|
273 | "104": 1,
|
274 | "130": 1,
|
275 | "153": 1,
|
276 | "169": 1,
|
277 | "194": 3,
|
278 | "196": 1,
|
279 | "197": 2,
|
280 | "225": 2,
|
281 | "226": 1,
|
282 | "242": 2,
|
283 | "243": 2,
|
284 | "254": 1,
|
285 | "255": 1,
|
286 | "256": 1,
|
287 | "290": 1
|
288 | },
|
289 | "fqnsFingerprint": "d736c26a1f0a8c352f2e776d1cfb48be76653755a375238e01d0bd5c856fb6f0"
|
290 | },
|
291 | "2b67aa0f3757e800fc0c1c22636ffdfb57fea49967be36859d6e8f400395e93e": {
|
292 | "translations": {
|
293 | "python": {
|
294 | "source": "my_topic = sns.Topic(self, \"MyTopic\")\nmy_topic.add_subscription(subscriptions.EmailSubscription(\"foo@bar.com\"))",
|
295 | "version": "2"
|
296 | },
|
297 | "csharp": {
|
298 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");\nmyTopic.AddSubscription(new EmailSubscription(\"foo@bar.com\"));",
|
299 | "version": "1"
|
300 | },
|
301 | "java": {
|
302 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");\nmyTopic.addSubscription(new EmailSubscription(\"foo@bar.com\"));",
|
303 | "version": "1"
|
304 | },
|
305 | "go": {
|
306 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))\nmyTopic.addSubscription(subscriptions.NewEmailSubscription(jsii.String(\"foo@bar.com\")))",
|
307 | "version": "1"
|
308 | },
|
309 | "$": {
|
310 | "source": "const myTopic = new sns.Topic(this, 'MyTopic');\nmyTopic.addSubscription(new subscriptions.EmailSubscription('foo@bar.com'));",
|
311 | "version": "0"
|
312 | }
|
313 | },
|
314 | "location": {
|
315 | "api": {
|
316 | "api": "moduleReadme",
|
317 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
318 | },
|
319 | "field": {
|
320 | "field": "markdown",
|
321 | "line": 88
|
322 | }
|
323 | },
|
324 | "didCompile": true,
|
325 | "fqnsReferenced": [
|
326 | "@aws-cdk/aws-sns-subscriptions.EmailSubscription",
|
327 | "@aws-cdk/aws-sns.ITopicSubscription",
|
328 | "@aws-cdk/aws-sns.Topic",
|
329 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
330 | "constructs.Construct"
|
331 | ],
|
332 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'MyTopic');\nmyTopic.addSubscription(new subscriptions.EmailSubscription('foo@bar.com'));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
333 | "syntaxKindCounter": {
|
334 | "10": 2,
|
335 | "75": 7,
|
336 | "104": 1,
|
337 | "194": 3,
|
338 | "196": 1,
|
339 | "197": 2,
|
340 | "225": 1,
|
341 | "226": 1,
|
342 | "242": 1,
|
343 | "243": 1
|
344 | },
|
345 | "fqnsFingerprint": "e23658b28945abd51dbec91fa6938d127160091797d970541cf2ce48a53c7b32"
|
346 | },
|
347 | "ccb1682470afb3f95d509ec23552acfd02b418f0b612389b815323d75ae75b69": {
|
348 | "translations": {
|
349 | "python": {
|
350 | "source": "my_topic = sns.Topic(self, \"Topic\")\nemail_address = CfnParameter(self, \"email-param\")\n\nmy_topic.add_subscription(subscriptions.EmailSubscription(email_address.value_as_string))",
|
351 | "version": "2"
|
352 | },
|
353 | "csharp": {
|
354 | "source": "Topic myTopic = new Topic(this, \"Topic\");\nCfnParameter emailAddress = new CfnParameter(this, \"email-param\");\n\nmyTopic.AddSubscription(new EmailSubscription(emailAddress.ValueAsString));",
|
355 | "version": "1"
|
356 | },
|
357 | "java": {
|
358 | "source": "Topic myTopic = new Topic(this, \"Topic\");\nCfnParameter emailAddress = new CfnParameter(this, \"email-param\");\n\nmyTopic.addSubscription(new EmailSubscription(emailAddress.getValueAsString()));",
|
359 | "version": "1"
|
360 | },
|
361 | "go": {
|
362 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"Topic\"))\nemailAddress := awscdkcore.NewCfnParameter(this, jsii.String(\"email-param\"))\n\nmyTopic.addSubscription(subscriptions.NewEmailSubscription(emailAddress.valueAsString))",
|
363 | "version": "1"
|
364 | },
|
365 | "$": {
|
366 | "source": "const myTopic = new sns.Topic(this, 'Topic');\nconst emailAddress = new CfnParameter(this, 'email-param');\n\nmyTopic.addSubscription(new subscriptions.EmailSubscription(emailAddress.valueAsString));",
|
367 | "version": "0"
|
368 | }
|
369 | },
|
370 | "location": {
|
371 | "api": {
|
372 | "api": "moduleReadme",
|
373 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
374 | },
|
375 | "field": {
|
376 | "field": "markdown",
|
377 | "line": 98
|
378 | }
|
379 | },
|
380 | "didCompile": true,
|
381 | "fqnsReferenced": [
|
382 | "@aws-cdk/aws-sns-subscriptions.EmailSubscription",
|
383 | "@aws-cdk/aws-sns.ITopicSubscription",
|
384 | "@aws-cdk/aws-sns.Topic",
|
385 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
386 | "@aws-cdk/core.CfnParameter",
|
387 | "constructs.Construct"
|
388 | ],
|
389 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'Topic');\nconst emailAddress = new CfnParameter(this, 'email-param');\n\nmyTopic.addSubscription(new subscriptions.EmailSubscription(emailAddress.valueAsString));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
390 | "syntaxKindCounter": {
|
391 | "10": 2,
|
392 | "75": 11,
|
393 | "104": 2,
|
394 | "194": 4,
|
395 | "196": 1,
|
396 | "197": 3,
|
397 | "225": 2,
|
398 | "226": 1,
|
399 | "242": 2,
|
400 | "243": 2
|
401 | },
|
402 | "fqnsFingerprint": "adf148d24db19272446937c34671643d563b62adb855041057cd0f6a7287f635"
|
403 | },
|
404 | "c4739a06bd84768cf5ba449d0b60f337d00fd78c0434201ca05c3d684735ad16": {
|
405 | "translations": {
|
406 | "python": {
|
407 | "source": "my_topic = sns.Topic(self, \"Topic\")\n\nmy_topic.add_subscription(subscriptions.SmsSubscription(\"+15551231234\"))",
|
408 | "version": "2"
|
409 | },
|
410 | "csharp": {
|
411 | "source": "Topic myTopic = new Topic(this, \"Topic\");\n\nmyTopic.AddSubscription(new SmsSubscription(\"+15551231234\"));",
|
412 | "version": "1"
|
413 | },
|
414 | "java": {
|
415 | "source": "Topic myTopic = new Topic(this, \"Topic\");\n\nmyTopic.addSubscription(new SmsSubscription(\"+15551231234\"));",
|
416 | "version": "1"
|
417 | },
|
418 | "go": {
|
419 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"Topic\"))\n\nmyTopic.addSubscription(subscriptions.NewSmsSubscription(jsii.String(\"+15551231234\")))",
|
420 | "version": "1"
|
421 | },
|
422 | "$": {
|
423 | "source": "const myTopic = new sns.Topic(this, 'Topic');\n\nmyTopic.addSubscription(new subscriptions.SmsSubscription('+15551231234'));",
|
424 | "version": "0"
|
425 | }
|
426 | },
|
427 | "location": {
|
428 | "api": {
|
429 | "api": "moduleReadme",
|
430 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
431 | },
|
432 | "field": {
|
433 | "field": "markdown",
|
434 | "line": 112
|
435 | }
|
436 | },
|
437 | "didCompile": true,
|
438 | "fqnsReferenced": [
|
439 | "@aws-cdk/aws-sns-subscriptions.SmsSubscription",
|
440 | "@aws-cdk/aws-sns.ITopicSubscription",
|
441 | "@aws-cdk/aws-sns.Topic",
|
442 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
443 | "constructs.Construct"
|
444 | ],
|
445 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'Topic');\n\nmyTopic.addSubscription(new subscriptions.SmsSubscription('+15551231234'));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
446 | "syntaxKindCounter": {
|
447 | "10": 2,
|
448 | "75": 7,
|
449 | "104": 1,
|
450 | "194": 3,
|
451 | "196": 1,
|
452 | "197": 2,
|
453 | "225": 1,
|
454 | "226": 1,
|
455 | "242": 1,
|
456 | "243": 1
|
457 | },
|
458 | "fqnsFingerprint": "854d2764b1a50c2fa105adc9e982b4a127dd22edf609138963f338c49378e8c6"
|
459 | },
|
460 | "8e8f301b4e7e195059248abb88cbf9003617b0b86ac76260b20c64a86e7b9cf5": {
|
461 | "translations": {
|
462 | "python": {
|
463 | "source": "my_topic = sns.Topic(self, \"Topic\")\nsms_number = CfnParameter(self, \"sms-param\")\n\nmy_topic.add_subscription(subscriptions.SmsSubscription(sms_number.value_as_string))",
|
464 | "version": "2"
|
465 | },
|
466 | "csharp": {
|
467 | "source": "Topic myTopic = new Topic(this, \"Topic\");\nCfnParameter smsNumber = new CfnParameter(this, \"sms-param\");\n\nmyTopic.AddSubscription(new SmsSubscription(smsNumber.ValueAsString));",
|
468 | "version": "1"
|
469 | },
|
470 | "java": {
|
471 | "source": "Topic myTopic = new Topic(this, \"Topic\");\nCfnParameter smsNumber = new CfnParameter(this, \"sms-param\");\n\nmyTopic.addSubscription(new SmsSubscription(smsNumber.getValueAsString()));",
|
472 | "version": "1"
|
473 | },
|
474 | "go": {
|
475 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"Topic\"))\nsmsNumber := awscdkcore.NewCfnParameter(this, jsii.String(\"sms-param\"))\n\nmyTopic.addSubscription(subscriptions.NewSmsSubscription(smsNumber.valueAsString))",
|
476 | "version": "1"
|
477 | },
|
478 | "$": {
|
479 | "source": "const myTopic = new sns.Topic(this, 'Topic');\nconst smsNumber = new CfnParameter(this, 'sms-param');\n\nmyTopic.addSubscription(new subscriptions.SmsSubscription(smsNumber.valueAsString));",
|
480 | "version": "0"
|
481 | }
|
482 | },
|
483 | "location": {
|
484 | "api": {
|
485 | "api": "moduleReadme",
|
486 | "moduleFqn": "@aws-cdk/aws-sns-subscriptions"
|
487 | },
|
488 | "field": {
|
489 | "field": "markdown",
|
490 | "line": 123
|
491 | }
|
492 | },
|
493 | "didCompile": true,
|
494 | "fqnsReferenced": [
|
495 | "@aws-cdk/aws-sns-subscriptions.SmsSubscription",
|
496 | "@aws-cdk/aws-sns.ITopicSubscription",
|
497 | "@aws-cdk/aws-sns.Topic",
|
498 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
499 | "@aws-cdk/core.CfnParameter",
|
500 | "constructs.Construct"
|
501 | ],
|
502 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'Topic');\nconst smsNumber = new CfnParameter(this, 'sms-param');\n\nmyTopic.addSubscription(new subscriptions.SmsSubscription(smsNumber.valueAsString));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
503 | "syntaxKindCounter": {
|
504 | "10": 2,
|
505 | "75": 11,
|
506 | "104": 2,
|
507 | "194": 4,
|
508 | "196": 1,
|
509 | "197": 3,
|
510 | "225": 2,
|
511 | "226": 1,
|
512 | "242": 2,
|
513 | "243": 2
|
514 | },
|
515 | "fqnsFingerprint": "cfe1adfd2de4c2efdf493b1e3ae74e07edba727f1db8202ccde8057b9fe4bbff"
|
516 | },
|
517 | "add82c474b189ca8363addd16cdb05177b55c883778d731d1e06dd240dcf7ebd": {
|
518 | "translations": {
|
519 | "python": {
|
520 | "source": "my_topic = sns.Topic(self, \"Topic\")\nemail_address = CfnParameter(self, \"email-param\")\n\nmy_topic.add_subscription(subscriptions.EmailSubscription(email_address.value_as_string))",
|
521 | "version": "2"
|
522 | },
|
523 | "csharp": {
|
524 | "source": "Topic myTopic = new Topic(this, \"Topic\");\nCfnParameter emailAddress = new CfnParameter(this, \"email-param\");\n\nmyTopic.AddSubscription(new EmailSubscription(emailAddress.ValueAsString));",
|
525 | "version": "1"
|
526 | },
|
527 | "java": {
|
528 | "source": "Topic myTopic = new Topic(this, \"Topic\");\nCfnParameter emailAddress = new CfnParameter(this, \"email-param\");\n\nmyTopic.addSubscription(new EmailSubscription(emailAddress.getValueAsString()));",
|
529 | "version": "1"
|
530 | },
|
531 | "go": {
|
532 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"Topic\"))\nemailAddress := awscdkcore.NewCfnParameter(this, jsii.String(\"email-param\"))\n\nmyTopic.addSubscription(subscriptions.NewEmailSubscription(emailAddress.valueAsString))",
|
533 | "version": "1"
|
534 | },
|
535 | "$": {
|
536 | "source": "const myTopic = new sns.Topic(this, 'Topic');\nconst emailAddress = new CfnParameter(this, 'email-param');\n\nmyTopic.addSubscription(new subscriptions.EmailSubscription(emailAddress.valueAsString));",
|
537 | "version": "0"
|
538 | }
|
539 | },
|
540 | "location": {
|
541 | "api": {
|
542 | "api": "type",
|
543 | "fqn": "@aws-cdk/aws-sns-subscriptions.EmailSubscription"
|
544 | },
|
545 | "field": {
|
546 | "field": "example"
|
547 | }
|
548 | },
|
549 | "didCompile": true,
|
550 | "fqnsReferenced": [
|
551 | "@aws-cdk/aws-sns-subscriptions.EmailSubscription",
|
552 | "@aws-cdk/aws-sns.ITopicSubscription",
|
553 | "@aws-cdk/aws-sns.Topic",
|
554 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
555 | "@aws-cdk/core.CfnParameter",
|
556 | "constructs.Construct"
|
557 | ],
|
558 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'Topic');\nconst emailAddress = new CfnParameter(this, 'email-param');\n\nmyTopic.addSubscription(new subscriptions.EmailSubscription(emailAddress.valueAsString));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
559 | "syntaxKindCounter": {
|
560 | "10": 2,
|
561 | "75": 11,
|
562 | "104": 2,
|
563 | "194": 4,
|
564 | "196": 1,
|
565 | "197": 3,
|
566 | "225": 2,
|
567 | "226": 1,
|
568 | "242": 2,
|
569 | "243": 2
|
570 | },
|
571 | "fqnsFingerprint": "adf148d24db19272446937c34671643d563b62adb855041057cd0f6a7287f635"
|
572 | },
|
573 | "ecf1ba7bb7a40baca0dc74153f7276e19a76ebe7738c451d4398298c1c4b32ff": {
|
574 | "translations": {
|
575 | "python": {
|
576 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_sns as sns\nimport aws_cdk.aws_sns_subscriptions as sns_subscriptions\nimport aws_cdk.aws_sqs as sqs\n\n# queue: sqs.Queue\n# subscription_filter: sns.SubscriptionFilter\n\nemail_subscription_props = sns_subscriptions.EmailSubscriptionProps(\n dead_letter_queue=queue,\n filter_policy={\n \"filter_policy_key\": subscription_filter\n },\n json=False\n)",
|
577 | "version": "2"
|
578 | },
|
579 | "csharp": {
|
580 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.SNS;\nusing Amazon.CDK.AWS.SNS.Subscriptions;\nusing Amazon.CDK.AWS.SQS;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nEmailSubscriptionProps emailSubscriptionProps = new EmailSubscriptionProps {\n DeadLetterQueue = queue,\n FilterPolicy = new Dictionary<string, SubscriptionFilter> {\n { \"filterPolicyKey\", subscriptionFilter }\n },\n Json = false\n};",
|
581 | "version": "1"
|
582 | },
|
583 | "java": {
|
584 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.sns.*;\nimport software.amazon.awscdk.services.sns.subscriptions.*;\nimport software.amazon.awscdk.services.sqs.*;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nEmailSubscriptionProps emailSubscriptionProps = EmailSubscriptionProps.builder()\n .deadLetterQueue(queue)\n .filterPolicy(Map.of(\n \"filterPolicyKey\", subscriptionFilter))\n .json(false)\n .build();",
|
585 | "version": "1"
|
586 | },
|
587 | "go": {
|
588 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport sns \"github.com/aws-samples/dummy/awscdkawssns\"\nimport sns_subscriptions \"github.com/aws-samples/dummy/awscdkawssnssubscriptions\"\nimport sqs \"github.com/aws-samples/dummy/awscdkawssqs\"\n\nvar queue queue\nvar subscriptionFilter subscriptionFilter\n\nemailSubscriptionProps := &emailSubscriptionProps{\n\tdeadLetterQueue: queue,\n\tfilterPolicy: map[string]*subscriptionFilter{\n\t\t\"filterPolicyKey\": subscriptionFilter,\n\t},\n\tjson: jsii.Boolean(false),\n}",
|
589 | "version": "1"
|
590 | },
|
591 | "$": {
|
592 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\nconst emailSubscriptionProps: sns_subscriptions.EmailSubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n json: false,\n};",
|
593 | "version": "0"
|
594 | }
|
595 | },
|
596 | "location": {
|
597 | "api": {
|
598 | "api": "type",
|
599 | "fqn": "@aws-cdk/aws-sns-subscriptions.EmailSubscriptionProps"
|
600 | },
|
601 | "field": {
|
602 | "field": "example"
|
603 | }
|
604 | },
|
605 | "didCompile": true,
|
606 | "fqnsReferenced": [
|
607 | "@aws-cdk/aws-sns-subscriptions.EmailSubscriptionProps",
|
608 | "@aws-cdk/aws-sns.SubscriptionFilter",
|
609 | "@aws-cdk/aws-sqs.IQueue"
|
610 | ],
|
611 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst emailSubscriptionProps: sns_subscriptions.EmailSubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n json: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
612 | "syntaxKindCounter": {
|
613 | "10": 3,
|
614 | "75": 18,
|
615 | "91": 1,
|
616 | "130": 2,
|
617 | "153": 3,
|
618 | "169": 3,
|
619 | "193": 2,
|
620 | "225": 3,
|
621 | "242": 3,
|
622 | "243": 3,
|
623 | "254": 3,
|
624 | "255": 3,
|
625 | "256": 3,
|
626 | "281": 4,
|
627 | "290": 1
|
628 | },
|
629 | "fqnsFingerprint": "d33eb3733849ae989571abf9f20af87181840cac7c73e32b1d0d78dbb3603850"
|
630 | },
|
631 | "f99f142a0061092d21483a8e177670bec399468591b00c4fe65f5613c3417e8a": {
|
632 | "translations": {
|
633 | "python": {
|
634 | "source": "import aws_cdk.aws_lambda as lambda_\n# fn: lambda.Function\n\n\nmy_topic = sns.Topic(self, \"MyTopic\")\n\n# Lambda should receive only message matching the following conditions on attributes:\n# color: 'red' or 'orange' or begins with 'bl'\n# size: anything but 'small' or 'medium'\n# price: between 100 and 200 or greater than 300\n# store: attribute must be present\nmy_topic.add_subscription(subscriptions.LambdaSubscription(fn,\n filter_policy={\n \"color\": sns.SubscriptionFilter.string_filter(\n allowlist=[\"red\", \"orange\"],\n match_prefixes=[\"bl\"]\n ),\n \"size\": sns.SubscriptionFilter.string_filter(\n denylist=[\"small\", \"medium\"]\n ),\n \"price\": sns.SubscriptionFilter.numeric_filter(\n between=sns.BetweenCondition(start=100, stop=200),\n greater_than=300\n ),\n \"store\": sns.SubscriptionFilter.exists_filter()\n }\n))",
|
635 | "version": "2"
|
636 | },
|
637 | "csharp": {
|
638 | "source": "using Amazon.CDK.AWS.Lambda;\nFunction fn;\n\n\nTopic myTopic = new Topic(this, \"MyTopic\");\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.AddSubscription(new LambdaSubscription(fn, new LambdaSubscriptionProps {\n FilterPolicy = new Dictionary<string, SubscriptionFilter> {\n { \"color\", SubscriptionFilter.StringFilter(new StringConditions {\n Allowlist = new [] { \"red\", \"orange\" },\n MatchPrefixes = new [] { \"bl\" }\n }) },\n { \"size\", SubscriptionFilter.StringFilter(new StringConditions {\n Denylist = new [] { \"small\", \"medium\" }\n }) },\n { \"price\", SubscriptionFilter.NumericFilter(new NumericConditions {\n Between = new BetweenCondition { Start = 100, Stop = 200 },\n GreaterThan = 300\n }) },\n { \"store\", SubscriptionFilter.ExistsFilter() }\n }\n}));",
|
639 | "version": "1"
|
640 | },
|
641 | "java": {
|
642 | "source": "import software.amazon.awscdk.services.lambda.*;\nFunction fn;\n\n\nTopic myTopic = new Topic(this, \"MyTopic\");\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.addSubscription(LambdaSubscription.Builder.create(fn)\n .filterPolicy(Map.of(\n \"color\", SubscriptionFilter.stringFilter(StringConditions.builder()\n .allowlist(List.of(\"red\", \"orange\"))\n .matchPrefixes(List.of(\"bl\"))\n .build()),\n \"size\", SubscriptionFilter.stringFilter(StringConditions.builder()\n .denylist(List.of(\"small\", \"medium\"))\n .build()),\n \"price\", SubscriptionFilter.numericFilter(NumericConditions.builder()\n .between(BetweenCondition.builder().start(100).stop(200).build())\n .greaterThan(300)\n .build()),\n \"store\", SubscriptionFilter.existsFilter()))\n .build());",
|
643 | "version": "1"
|
644 | },
|
645 | "go": {
|
646 | "source": "import lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\nvar fn function\n\n\nmyTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.addSubscription(subscriptions.NewLambdaSubscription(fn, &lambdaSubscriptionProps{\n\tfilterPolicy: map[string]subscriptionFilter{\n\t\t\"color\": sns.*subscriptionFilter.stringFilter(&StringConditions{\n\t\t\t\"allowlist\": []*string{\n\t\t\t\tjsii.String(\"red\"),\n\t\t\t\tjsii.String(\"orange\"),\n\t\t\t},\n\t\t\t\"matchPrefixes\": []*string{\n\t\t\t\tjsii.String(\"bl\"),\n\t\t\t},\n\t\t}),\n\t\t\"size\": sns.*subscriptionFilter.stringFilter(&StringConditions{\n\t\t\t\"denylist\": []*string{\n\t\t\t\tjsii.String(\"small\"),\n\t\t\t\tjsii.String(\"medium\"),\n\t\t\t},\n\t\t}),\n\t\t\"price\": sns.*subscriptionFilter.numericFilter(&NumericConditions{\n\t\t\t\"between\": &BetweenCondition{\n\t\t\t\t\"start\": jsii.Number(100),\n\t\t\t\t\"stop\": jsii.Number(200),\n\t\t\t},\n\t\t\t\"greaterThan\": jsii.Number(300),\n\t\t}),\n\t\t\"store\": sns.*subscriptionFilter.existsFilter(),\n\t},\n}))",
|
647 | "version": "1"
|
648 | },
|
649 | "$": {
|
650 | "source": "import * as lambda from '@aws-cdk/aws-lambda';\n\nconst myTopic = new sns.Topic(this, 'MyTopic');\ndeclare const fn: lambda.Function;\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.addSubscription(new subscriptions.LambdaSubscription(fn, {\n filterPolicy: {\n color: sns.SubscriptionFilter.stringFilter({\n allowlist: ['red', 'orange'],\n matchPrefixes: ['bl'],\n }),\n size: sns.SubscriptionFilter.stringFilter({\n denylist: ['small', 'medium'],\n }),\n price: sns.SubscriptionFilter.numericFilter({\n between: { start: 100, stop: 200 },\n greaterThan: 300,\n }),\n store: sns.SubscriptionFilter.existsFilter(),\n },\n}));",
|
651 | "version": "0"
|
652 | }
|
653 | },
|
654 | "location": {
|
655 | "api": {
|
656 | "api": "type",
|
657 | "fqn": "@aws-cdk/aws-sns-subscriptions.LambdaSubscription"
|
658 | },
|
659 | "field": {
|
660 | "field": "example"
|
661 | }
|
662 | },
|
663 | "didCompile": true,
|
664 | "fqnsReferenced": [
|
665 | "@aws-cdk/aws-lambda.IFunction",
|
666 | "@aws-cdk/aws-sns-subscriptions.LambdaSubscription",
|
667 | "@aws-cdk/aws-sns-subscriptions.LambdaSubscriptionProps",
|
668 | "@aws-cdk/aws-sns.BetweenCondition",
|
669 | "@aws-cdk/aws-sns.ITopicSubscription",
|
670 | "@aws-cdk/aws-sns.NumericConditions",
|
671 | "@aws-cdk/aws-sns.StringConditions",
|
672 | "@aws-cdk/aws-sns.SubscriptionFilter",
|
673 | "@aws-cdk/aws-sns.SubscriptionFilter#existsFilter",
|
674 | "@aws-cdk/aws-sns.SubscriptionFilter#numericFilter",
|
675 | "@aws-cdk/aws-sns.SubscriptionFilter#stringFilter",
|
676 | "@aws-cdk/aws-sns.Topic",
|
677 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
678 | "constructs.Construct"
|
679 | ],
|
680 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as lambda from '@aws-cdk/aws-lambda';\ndeclare const fn: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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 myTopic = new sns.Topic(this, 'MyTopic');\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.addSubscription(new subscriptions.LambdaSubscription(fn, {\n filterPolicy: {\n color: sns.SubscriptionFilter.stringFilter({\n allowlist: ['red', 'orange'],\n matchPrefixes: ['bl'],\n }),\n size: sns.SubscriptionFilter.stringFilter({\n denylist: ['small', 'medium'],\n }),\n price: sns.SubscriptionFilter.numericFilter({\n between: { start: 100, stop: 200 },\n greaterThan: 300,\n }),\n store: sns.SubscriptionFilter.existsFilter(),\n },\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
681 | "syntaxKindCounter": {
|
682 | "8": 3,
|
683 | "10": 7,
|
684 | "75": 36,
|
685 | "104": 1,
|
686 | "130": 1,
|
687 | "153": 1,
|
688 | "169": 1,
|
689 | "192": 3,
|
690 | "193": 6,
|
691 | "194": 11,
|
692 | "196": 5,
|
693 | "197": 2,
|
694 | "225": 2,
|
695 | "226": 1,
|
696 | "242": 2,
|
697 | "243": 2,
|
698 | "254": 1,
|
699 | "255": 1,
|
700 | "256": 1,
|
701 | "281": 12,
|
702 | "290": 1
|
703 | },
|
704 | "fqnsFingerprint": "8c7bb70023359406a1af025ccc8fbedda44119aa7e8437c102325097a1e294e1"
|
705 | },
|
706 | "c1cf045bb87ee13ce2b83ec8e7ee134717581c05e272f71e50be3948efffbc45": {
|
707 | "translations": {
|
708 | "python": {
|
709 | "source": "import aws_cdk.aws_lambda as lambda_\n# fn: lambda.Function\n\n\nmy_topic = sns.Topic(self, \"MyTopic\")\n\n# Lambda should receive only message matching the following conditions on attributes:\n# color: 'red' or 'orange' or begins with 'bl'\n# size: anything but 'small' or 'medium'\n# price: between 100 and 200 or greater than 300\n# store: attribute must be present\nmy_topic.add_subscription(subscriptions.LambdaSubscription(fn,\n filter_policy={\n \"color\": sns.SubscriptionFilter.string_filter(\n allowlist=[\"red\", \"orange\"],\n match_prefixes=[\"bl\"]\n ),\n \"size\": sns.SubscriptionFilter.string_filter(\n denylist=[\"small\", \"medium\"]\n ),\n \"price\": sns.SubscriptionFilter.numeric_filter(\n between=sns.BetweenCondition(start=100, stop=200),\n greater_than=300\n ),\n \"store\": sns.SubscriptionFilter.exists_filter()\n }\n))",
|
710 | "version": "2"
|
711 | },
|
712 | "csharp": {
|
713 | "source": "using Amazon.CDK.AWS.Lambda;\nFunction fn;\n\n\nTopic myTopic = new Topic(this, \"MyTopic\");\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.AddSubscription(new LambdaSubscription(fn, new LambdaSubscriptionProps {\n FilterPolicy = new Dictionary<string, SubscriptionFilter> {\n { \"color\", SubscriptionFilter.StringFilter(new StringConditions {\n Allowlist = new [] { \"red\", \"orange\" },\n MatchPrefixes = new [] { \"bl\" }\n }) },\n { \"size\", SubscriptionFilter.StringFilter(new StringConditions {\n Denylist = new [] { \"small\", \"medium\" }\n }) },\n { \"price\", SubscriptionFilter.NumericFilter(new NumericConditions {\n Between = new BetweenCondition { Start = 100, Stop = 200 },\n GreaterThan = 300\n }) },\n { \"store\", SubscriptionFilter.ExistsFilter() }\n }\n}));",
|
714 | "version": "1"
|
715 | },
|
716 | "java": {
|
717 | "source": "import software.amazon.awscdk.services.lambda.*;\nFunction fn;\n\n\nTopic myTopic = new Topic(this, \"MyTopic\");\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.addSubscription(LambdaSubscription.Builder.create(fn)\n .filterPolicy(Map.of(\n \"color\", SubscriptionFilter.stringFilter(StringConditions.builder()\n .allowlist(List.of(\"red\", \"orange\"))\n .matchPrefixes(List.of(\"bl\"))\n .build()),\n \"size\", SubscriptionFilter.stringFilter(StringConditions.builder()\n .denylist(List.of(\"small\", \"medium\"))\n .build()),\n \"price\", SubscriptionFilter.numericFilter(NumericConditions.builder()\n .between(BetweenCondition.builder().start(100).stop(200).build())\n .greaterThan(300)\n .build()),\n \"store\", SubscriptionFilter.existsFilter()))\n .build());",
|
718 | "version": "1"
|
719 | },
|
720 | "go": {
|
721 | "source": "import lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\nvar fn function\n\n\nmyTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.addSubscription(subscriptions.NewLambdaSubscription(fn, &lambdaSubscriptionProps{\n\tfilterPolicy: map[string]subscriptionFilter{\n\t\t\"color\": sns.*subscriptionFilter.stringFilter(&StringConditions{\n\t\t\t\"allowlist\": []*string{\n\t\t\t\tjsii.String(\"red\"),\n\t\t\t\tjsii.String(\"orange\"),\n\t\t\t},\n\t\t\t\"matchPrefixes\": []*string{\n\t\t\t\tjsii.String(\"bl\"),\n\t\t\t},\n\t\t}),\n\t\t\"size\": sns.*subscriptionFilter.stringFilter(&StringConditions{\n\t\t\t\"denylist\": []*string{\n\t\t\t\tjsii.String(\"small\"),\n\t\t\t\tjsii.String(\"medium\"),\n\t\t\t},\n\t\t}),\n\t\t\"price\": sns.*subscriptionFilter.numericFilter(&NumericConditions{\n\t\t\t\"between\": &BetweenCondition{\n\t\t\t\t\"start\": jsii.Number(100),\n\t\t\t\t\"stop\": jsii.Number(200),\n\t\t\t},\n\t\t\t\"greaterThan\": jsii.Number(300),\n\t\t}),\n\t\t\"store\": sns.*subscriptionFilter.existsFilter(),\n\t},\n}))",
|
722 | "version": "1"
|
723 | },
|
724 | "$": {
|
725 | "source": "import * as lambda from '@aws-cdk/aws-lambda';\n\nconst myTopic = new sns.Topic(this, 'MyTopic');\ndeclare const fn: lambda.Function;\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.addSubscription(new subscriptions.LambdaSubscription(fn, {\n filterPolicy: {\n color: sns.SubscriptionFilter.stringFilter({\n allowlist: ['red', 'orange'],\n matchPrefixes: ['bl'],\n }),\n size: sns.SubscriptionFilter.stringFilter({\n denylist: ['small', 'medium'],\n }),\n price: sns.SubscriptionFilter.numericFilter({\n between: { start: 100, stop: 200 },\n greaterThan: 300,\n }),\n store: sns.SubscriptionFilter.existsFilter(),\n },\n}));",
|
726 | "version": "0"
|
727 | }
|
728 | },
|
729 | "location": {
|
730 | "api": {
|
731 | "api": "type",
|
732 | "fqn": "@aws-cdk/aws-sns-subscriptions.LambdaSubscriptionProps"
|
733 | },
|
734 | "field": {
|
735 | "field": "example"
|
736 | }
|
737 | },
|
738 | "didCompile": true,
|
739 | "fqnsReferenced": [
|
740 | "@aws-cdk/aws-lambda.IFunction",
|
741 | "@aws-cdk/aws-sns-subscriptions.LambdaSubscription",
|
742 | "@aws-cdk/aws-sns-subscriptions.LambdaSubscriptionProps",
|
743 | "@aws-cdk/aws-sns.BetweenCondition",
|
744 | "@aws-cdk/aws-sns.ITopicSubscription",
|
745 | "@aws-cdk/aws-sns.NumericConditions",
|
746 | "@aws-cdk/aws-sns.StringConditions",
|
747 | "@aws-cdk/aws-sns.SubscriptionFilter",
|
748 | "@aws-cdk/aws-sns.SubscriptionFilter#existsFilter",
|
749 | "@aws-cdk/aws-sns.SubscriptionFilter#numericFilter",
|
750 | "@aws-cdk/aws-sns.SubscriptionFilter#stringFilter",
|
751 | "@aws-cdk/aws-sns.Topic",
|
752 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
753 | "constructs.Construct"
|
754 | ],
|
755 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as lambda from '@aws-cdk/aws-lambda';\ndeclare const fn: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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 myTopic = new sns.Topic(this, 'MyTopic');\n\n// Lambda should receive only message matching the following conditions on attributes:\n// color: 'red' or 'orange' or begins with 'bl'\n// size: anything but 'small' or 'medium'\n// price: between 100 and 200 or greater than 300\n// store: attribute must be present\nmyTopic.addSubscription(new subscriptions.LambdaSubscription(fn, {\n filterPolicy: {\n color: sns.SubscriptionFilter.stringFilter({\n allowlist: ['red', 'orange'],\n matchPrefixes: ['bl'],\n }),\n size: sns.SubscriptionFilter.stringFilter({\n denylist: ['small', 'medium'],\n }),\n price: sns.SubscriptionFilter.numericFilter({\n between: { start: 100, stop: 200 },\n greaterThan: 300,\n }),\n store: sns.SubscriptionFilter.existsFilter(),\n },\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
756 | "syntaxKindCounter": {
|
757 | "8": 3,
|
758 | "10": 7,
|
759 | "75": 36,
|
760 | "104": 1,
|
761 | "130": 1,
|
762 | "153": 1,
|
763 | "169": 1,
|
764 | "192": 3,
|
765 | "193": 6,
|
766 | "194": 11,
|
767 | "196": 5,
|
768 | "197": 2,
|
769 | "225": 2,
|
770 | "226": 1,
|
771 | "242": 2,
|
772 | "243": 2,
|
773 | "254": 1,
|
774 | "255": 1,
|
775 | "256": 1,
|
776 | "281": 12,
|
777 | "290": 1
|
778 | },
|
779 | "fqnsFingerprint": "8c7bb70023359406a1af025ccc8fbedda44119aa7e8437c102325097a1e294e1"
|
780 | },
|
781 | "09befa91b21168c1918ff559193c3c7e98ca19bbd582346e97ebcfda34be9a7c": {
|
782 | "translations": {
|
783 | "python": {
|
784 | "source": "my_topic = sns.Topic(self, \"Topic\")\n\nmy_topic.add_subscription(subscriptions.SmsSubscription(\"+15551231234\"))",
|
785 | "version": "2"
|
786 | },
|
787 | "csharp": {
|
788 | "source": "Topic myTopic = new Topic(this, \"Topic\");\n\nmyTopic.AddSubscription(new SmsSubscription(\"+15551231234\"));",
|
789 | "version": "1"
|
790 | },
|
791 | "java": {
|
792 | "source": "Topic myTopic = new Topic(this, \"Topic\");\n\nmyTopic.addSubscription(new SmsSubscription(\"+15551231234\"));",
|
793 | "version": "1"
|
794 | },
|
795 | "go": {
|
796 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"Topic\"))\n\nmyTopic.addSubscription(subscriptions.NewSmsSubscription(jsii.String(\"+15551231234\")))",
|
797 | "version": "1"
|
798 | },
|
799 | "$": {
|
800 | "source": "const myTopic = new sns.Topic(this, 'Topic');\n\nmyTopic.addSubscription(new subscriptions.SmsSubscription('+15551231234'));",
|
801 | "version": "0"
|
802 | }
|
803 | },
|
804 | "location": {
|
805 | "api": {
|
806 | "api": "type",
|
807 | "fqn": "@aws-cdk/aws-sns-subscriptions.SmsSubscription"
|
808 | },
|
809 | "field": {
|
810 | "field": "example"
|
811 | }
|
812 | },
|
813 | "didCompile": true,
|
814 | "fqnsReferenced": [
|
815 | "@aws-cdk/aws-sns-subscriptions.SmsSubscription",
|
816 | "@aws-cdk/aws-sns.ITopicSubscription",
|
817 | "@aws-cdk/aws-sns.Topic",
|
818 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
819 | "constructs.Construct"
|
820 | ],
|
821 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { CfnParameter, Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'Topic');\n\nmyTopic.addSubscription(new subscriptions.SmsSubscription('+15551231234'));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
822 | "syntaxKindCounter": {
|
823 | "10": 2,
|
824 | "75": 7,
|
825 | "104": 1,
|
826 | "194": 3,
|
827 | "196": 1,
|
828 | "197": 2,
|
829 | "225": 1,
|
830 | "226": 1,
|
831 | "242": 1,
|
832 | "243": 1
|
833 | },
|
834 | "fqnsFingerprint": "854d2764b1a50c2fa105adc9e982b4a127dd22edf609138963f338c49378e8c6"
|
835 | },
|
836 | "7d5e1957b98a3fd5733d2107ccf9e9f36ef21211c47fe7c42181d1e38f03816e": {
|
837 | "translations": {
|
838 | "python": {
|
839 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_sns as sns\nimport aws_cdk.aws_sns_subscriptions as sns_subscriptions\nimport aws_cdk.aws_sqs as sqs\n\n# queue: sqs.Queue\n# subscription_filter: sns.SubscriptionFilter\n\nsms_subscription_props = sns_subscriptions.SmsSubscriptionProps(\n dead_letter_queue=queue,\n filter_policy={\n \"filter_policy_key\": subscription_filter\n }\n)",
|
840 | "version": "2"
|
841 | },
|
842 | "csharp": {
|
843 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.SNS;\nusing Amazon.CDK.AWS.SNS.Subscriptions;\nusing Amazon.CDK.AWS.SQS;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nSmsSubscriptionProps smsSubscriptionProps = new SmsSubscriptionProps {\n DeadLetterQueue = queue,\n FilterPolicy = new Dictionary<string, SubscriptionFilter> {\n { \"filterPolicyKey\", subscriptionFilter }\n }\n};",
|
844 | "version": "1"
|
845 | },
|
846 | "java": {
|
847 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.sns.*;\nimport software.amazon.awscdk.services.sns.subscriptions.*;\nimport software.amazon.awscdk.services.sqs.*;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nSmsSubscriptionProps smsSubscriptionProps = SmsSubscriptionProps.builder()\n .deadLetterQueue(queue)\n .filterPolicy(Map.of(\n \"filterPolicyKey\", subscriptionFilter))\n .build();",
|
848 | "version": "1"
|
849 | },
|
850 | "go": {
|
851 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport sns \"github.com/aws-samples/dummy/awscdkawssns\"\nimport sns_subscriptions \"github.com/aws-samples/dummy/awscdkawssnssubscriptions\"\nimport sqs \"github.com/aws-samples/dummy/awscdkawssqs\"\n\nvar queue queue\nvar subscriptionFilter subscriptionFilter\n\nsmsSubscriptionProps := &smsSubscriptionProps{\n\tdeadLetterQueue: queue,\n\tfilterPolicy: map[string]*subscriptionFilter{\n\t\t\"filterPolicyKey\": subscriptionFilter,\n\t},\n}",
|
852 | "version": "1"
|
853 | },
|
854 | "$": {
|
855 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\nconst smsSubscriptionProps: sns_subscriptions.SmsSubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n};",
|
856 | "version": "0"
|
857 | }
|
858 | },
|
859 | "location": {
|
860 | "api": {
|
861 | "api": "type",
|
862 | "fqn": "@aws-cdk/aws-sns-subscriptions.SmsSubscriptionProps"
|
863 | },
|
864 | "field": {
|
865 | "field": "example"
|
866 | }
|
867 | },
|
868 | "didCompile": true,
|
869 | "fqnsReferenced": [
|
870 | "@aws-cdk/aws-sns-subscriptions.SmsSubscriptionProps",
|
871 | "@aws-cdk/aws-sns.SubscriptionFilter",
|
872 | "@aws-cdk/aws-sqs.IQueue"
|
873 | ],
|
874 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst smsSubscriptionProps: sns_subscriptions.SmsSubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
875 | "syntaxKindCounter": {
|
876 | "10": 3,
|
877 | "75": 17,
|
878 | "130": 2,
|
879 | "153": 3,
|
880 | "169": 3,
|
881 | "193": 2,
|
882 | "225": 3,
|
883 | "242": 3,
|
884 | "243": 3,
|
885 | "254": 3,
|
886 | "255": 3,
|
887 | "256": 3,
|
888 | "281": 3,
|
889 | "290": 1
|
890 | },
|
891 | "fqnsFingerprint": "fad7e0d99dc58bd0b5658762aeea3942fd2b430b79b952df440e0990c2e54012"
|
892 | },
|
893 | "3c42a2514e26b094bc5f3b561e8725ed1716b38d52c4126cb57072720928cdbe": {
|
894 | "translations": {
|
895 | "python": {
|
896 | "source": "# queue: sqs.Queue\n\nmy_topic = sns.Topic(self, \"MyTopic\")\n\nmy_topic.add_subscription(subscriptions.SqsSubscription(queue))",
|
897 | "version": "2"
|
898 | },
|
899 | "csharp": {
|
900 | "source": "Queue queue;\n\nTopic myTopic = new Topic(this, \"MyTopic\");\n\nmyTopic.AddSubscription(new SqsSubscription(queue));",
|
901 | "version": "1"
|
902 | },
|
903 | "java": {
|
904 | "source": "Queue queue;\n\nTopic myTopic = new Topic(this, \"MyTopic\");\n\nmyTopic.addSubscription(new SqsSubscription(queue));",
|
905 | "version": "1"
|
906 | },
|
907 | "go": {
|
908 | "source": "var queue queue\n\nmyTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))\n\nmyTopic.addSubscription(subscriptions.NewSqsSubscription(queue))",
|
909 | "version": "1"
|
910 | },
|
911 | "$": {
|
912 | "source": "declare const queue: sqs.Queue;\nconst myTopic = new sns.Topic(this, 'MyTopic');\n\nmyTopic.addSubscription(new subscriptions.SqsSubscription(queue));",
|
913 | "version": "0"
|
914 | }
|
915 | },
|
916 | "location": {
|
917 | "api": {
|
918 | "api": "type",
|
919 | "fqn": "@aws-cdk/aws-sns-subscriptions.SqsSubscription"
|
920 | },
|
921 | "field": {
|
922 | "field": "example"
|
923 | }
|
924 | },
|
925 | "didCompile": true,
|
926 | "fqnsReferenced": [
|
927 | "@aws-cdk/aws-sns-subscriptions.SqsSubscription",
|
928 | "@aws-cdk/aws-sns.ITopicSubscription",
|
929 | "@aws-cdk/aws-sns.Topic",
|
930 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
931 | "@aws-cdk/aws-sqs.IQueue",
|
932 | "constructs.Construct"
|
933 | ],
|
934 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const queue: sqs.Queue;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'MyTopic');\n\nmyTopic.addSubscription(new subscriptions.SqsSubscription(queue));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
935 | "syntaxKindCounter": {
|
936 | "10": 1,
|
937 | "75": 11,
|
938 | "104": 1,
|
939 | "130": 1,
|
940 | "153": 1,
|
941 | "169": 1,
|
942 | "194": 3,
|
943 | "196": 1,
|
944 | "197": 2,
|
945 | "225": 2,
|
946 | "226": 1,
|
947 | "242": 2,
|
948 | "243": 2,
|
949 | "290": 1
|
950 | },
|
951 | "fqnsFingerprint": "7d14c477cdbc0daf3505924691be98650177106e430bb34a6c3de5a35e271977"
|
952 | },
|
953 | "469c9019dbfeb3ee7226f674c9012815be46feb5e53926d26102591efcb14890": {
|
954 | "translations": {
|
955 | "python": {
|
956 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_sns as sns\nimport aws_cdk.aws_sns_subscriptions as sns_subscriptions\nimport aws_cdk.aws_sqs as sqs\n\n# queue: sqs.Queue\n# subscription_filter: sns.SubscriptionFilter\n\nsqs_subscription_props = sns_subscriptions.SqsSubscriptionProps(\n dead_letter_queue=queue,\n filter_policy={\n \"filter_policy_key\": subscription_filter\n },\n raw_message_delivery=False\n)",
|
957 | "version": "2"
|
958 | },
|
959 | "csharp": {
|
960 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.SNS;\nusing Amazon.CDK.AWS.SNS.Subscriptions;\nusing Amazon.CDK.AWS.SQS;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nSqsSubscriptionProps sqsSubscriptionProps = new SqsSubscriptionProps {\n DeadLetterQueue = queue,\n FilterPolicy = new Dictionary<string, SubscriptionFilter> {\n { \"filterPolicyKey\", subscriptionFilter }\n },\n RawMessageDelivery = false\n};",
|
961 | "version": "1"
|
962 | },
|
963 | "java": {
|
964 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.sns.*;\nimport software.amazon.awscdk.services.sns.subscriptions.*;\nimport software.amazon.awscdk.services.sqs.*;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nSqsSubscriptionProps sqsSubscriptionProps = SqsSubscriptionProps.builder()\n .deadLetterQueue(queue)\n .filterPolicy(Map.of(\n \"filterPolicyKey\", subscriptionFilter))\n .rawMessageDelivery(false)\n .build();",
|
965 | "version": "1"
|
966 | },
|
967 | "go": {
|
968 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport sns \"github.com/aws-samples/dummy/awscdkawssns\"\nimport sns_subscriptions \"github.com/aws-samples/dummy/awscdkawssnssubscriptions\"\nimport sqs \"github.com/aws-samples/dummy/awscdkawssqs\"\n\nvar queue queue\nvar subscriptionFilter subscriptionFilter\n\nsqsSubscriptionProps := &sqsSubscriptionProps{\n\tdeadLetterQueue: queue,\n\tfilterPolicy: map[string]*subscriptionFilter{\n\t\t\"filterPolicyKey\": subscriptionFilter,\n\t},\n\trawMessageDelivery: jsii.Boolean(false),\n}",
|
969 | "version": "1"
|
970 | },
|
971 | "$": {
|
972 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\nconst sqsSubscriptionProps: sns_subscriptions.SqsSubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n rawMessageDelivery: false,\n};",
|
973 | "version": "0"
|
974 | }
|
975 | },
|
976 | "location": {
|
977 | "api": {
|
978 | "api": "type",
|
979 | "fqn": "@aws-cdk/aws-sns-subscriptions.SqsSubscriptionProps"
|
980 | },
|
981 | "field": {
|
982 | "field": "example"
|
983 | }
|
984 | },
|
985 | "didCompile": true,
|
986 | "fqnsReferenced": [
|
987 | "@aws-cdk/aws-sns-subscriptions.SqsSubscriptionProps",
|
988 | "@aws-cdk/aws-sns.SubscriptionFilter",
|
989 | "@aws-cdk/aws-sqs.IQueue"
|
990 | ],
|
991 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst sqsSubscriptionProps: sns_subscriptions.SqsSubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n rawMessageDelivery: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
992 | "syntaxKindCounter": {
|
993 | "10": 3,
|
994 | "75": 18,
|
995 | "91": 1,
|
996 | "130": 2,
|
997 | "153": 3,
|
998 | "169": 3,
|
999 | "193": 2,
|
1000 | "225": 3,
|
1001 | "242": 3,
|
1002 | "243": 3,
|
1003 | "254": 3,
|
1004 | "255": 3,
|
1005 | "256": 3,
|
1006 | "281": 4,
|
1007 | "290": 1
|
1008 | },
|
1009 | "fqnsFingerprint": "ce9e7bf07dd227be77732796721aae0d4c0a172a3b3b7907faecd7a7db41ae57"
|
1010 | },
|
1011 | "4250b60ed21b2b361ececad3ceb2f17319da33d216acd1e80979e0510d5d00e7": {
|
1012 | "translations": {
|
1013 | "python": {
|
1014 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_sns as sns\nimport aws_cdk.aws_sns_subscriptions as sns_subscriptions\nimport aws_cdk.aws_sqs as sqs\n\n# queue: sqs.Queue\n# subscription_filter: sns.SubscriptionFilter\n\nsubscription_props = sns_subscriptions.SubscriptionProps(\n dead_letter_queue=queue,\n filter_policy={\n \"filter_policy_key\": subscription_filter\n }\n)",
|
1015 | "version": "2"
|
1016 | },
|
1017 | "csharp": {
|
1018 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.SNS;\nusing Amazon.CDK.AWS.SNS.Subscriptions;\nusing Amazon.CDK.AWS.SQS;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nSubscriptionProps subscriptionProps = new SubscriptionProps {\n DeadLetterQueue = queue,\n FilterPolicy = new Dictionary<string, SubscriptionFilter> {\n { \"filterPolicyKey\", subscriptionFilter }\n }\n};",
|
1019 | "version": "1"
|
1020 | },
|
1021 | "java": {
|
1022 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.sns.*;\nimport software.amazon.awscdk.services.sns.subscriptions.*;\nimport software.amazon.awscdk.services.sqs.*;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nSubscriptionProps subscriptionProps = SubscriptionProps.builder()\n .deadLetterQueue(queue)\n .filterPolicy(Map.of(\n \"filterPolicyKey\", subscriptionFilter))\n .build();",
|
1023 | "version": "1"
|
1024 | },
|
1025 | "go": {
|
1026 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport sns \"github.com/aws-samples/dummy/awscdkawssns\"\nimport sns_subscriptions \"github.com/aws-samples/dummy/awscdkawssnssubscriptions\"\nimport sqs \"github.com/aws-samples/dummy/awscdkawssqs\"\n\nvar queue queue\nvar subscriptionFilter subscriptionFilter\n\nsubscriptionProps := &subscriptionProps{\n\tdeadLetterQueue: queue,\n\tfilterPolicy: map[string]*subscriptionFilter{\n\t\t\"filterPolicyKey\": subscriptionFilter,\n\t},\n}",
|
1027 | "version": "1"
|
1028 | },
|
1029 | "$": {
|
1030 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\nconst subscriptionProps: sns_subscriptions.SubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n};",
|
1031 | "version": "0"
|
1032 | }
|
1033 | },
|
1034 | "location": {
|
1035 | "api": {
|
1036 | "api": "type",
|
1037 | "fqn": "@aws-cdk/aws-sns-subscriptions.SubscriptionProps"
|
1038 | },
|
1039 | "field": {
|
1040 | "field": "example"
|
1041 | }
|
1042 | },
|
1043 | "didCompile": true,
|
1044 | "fqnsReferenced": [
|
1045 | "@aws-cdk/aws-sns-subscriptions.SubscriptionProps",
|
1046 | "@aws-cdk/aws-sns.SubscriptionFilter",
|
1047 | "@aws-cdk/aws-sqs.IQueue"
|
1048 | ],
|
1049 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst subscriptionProps: sns_subscriptions.SubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1050 | "syntaxKindCounter": {
|
1051 | "10": 3,
|
1052 | "75": 17,
|
1053 | "130": 2,
|
1054 | "153": 3,
|
1055 | "169": 3,
|
1056 | "193": 2,
|
1057 | "225": 3,
|
1058 | "242": 3,
|
1059 | "243": 3,
|
1060 | "254": 3,
|
1061 | "255": 3,
|
1062 | "256": 3,
|
1063 | "281": 3,
|
1064 | "290": 1
|
1065 | },
|
1066 | "fqnsFingerprint": "1b4ac025b82729b97b1e7e84a6bf4e7d770001f530f824fee32f31fa5289d39c"
|
1067 | },
|
1068 | "9b338fbb1a2988613373399dfc81778c10c5aefcb2b2c7b22c74a4cfd7206765": {
|
1069 | "translations": {
|
1070 | "python": {
|
1071 | "source": "my_topic = sns.Topic(self, \"MyTopic\")\n\nmy_topic.add_subscription(subscriptions.UrlSubscription(\"https://foobar.com/\"))",
|
1072 | "version": "2"
|
1073 | },
|
1074 | "csharp": {
|
1075 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");\n\nmyTopic.AddSubscription(new UrlSubscription(\"https://foobar.com/\"));",
|
1076 | "version": "1"
|
1077 | },
|
1078 | "java": {
|
1079 | "source": "Topic myTopic = new Topic(this, \"MyTopic\");\n\nmyTopic.addSubscription(new UrlSubscription(\"https://foobar.com/\"));",
|
1080 | "version": "1"
|
1081 | },
|
1082 | "go": {
|
1083 | "source": "myTopic := sns.NewTopic(this, jsii.String(\"MyTopic\"))\n\nmyTopic.addSubscription(subscriptions.NewUrlSubscription(jsii.String(\"https://foobar.com/\")))",
|
1084 | "version": "1"
|
1085 | },
|
1086 | "$": {
|
1087 | "source": "const myTopic = new sns.Topic(this, 'MyTopic');\n\nmyTopic.addSubscription(new subscriptions.UrlSubscription('https://foobar.com/'));",
|
1088 | "version": "0"
|
1089 | }
|
1090 | },
|
1091 | "location": {
|
1092 | "api": {
|
1093 | "api": "type",
|
1094 | "fqn": "@aws-cdk/aws-sns-subscriptions.UrlSubscription"
|
1095 | },
|
1096 | "field": {
|
1097 | "field": "example"
|
1098 | }
|
1099 | },
|
1100 | "didCompile": true,
|
1101 | "fqnsReferenced": [
|
1102 | "@aws-cdk/aws-sns-subscriptions.UrlSubscription",
|
1103 | "@aws-cdk/aws-sns.ITopicSubscription",
|
1104 | "@aws-cdk/aws-sns.Topic",
|
1105 | "@aws-cdk/aws-sns.TopicBase#addSubscription",
|
1106 | "constructs.Construct"
|
1107 | ],
|
1108 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst myTopic = new sns.Topic(this, 'MyTopic');\n\nmyTopic.addSubscription(new subscriptions.UrlSubscription('https://foobar.com/'));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
1109 | "syntaxKindCounter": {
|
1110 | "10": 2,
|
1111 | "75": 7,
|
1112 | "104": 1,
|
1113 | "194": 3,
|
1114 | "196": 1,
|
1115 | "197": 2,
|
1116 | "225": 1,
|
1117 | "226": 1,
|
1118 | "242": 1,
|
1119 | "243": 1
|
1120 | },
|
1121 | "fqnsFingerprint": "ff638095bad2d85bc46b14046c2e2854d61ab42f794b081409b46fc794c664f5"
|
1122 | },
|
1123 | "cd96a1baba055bf3acdfb79360e238f6bf97eaeda83a7439eabb6dffea3af669": {
|
1124 | "translations": {
|
1125 | "python": {
|
1126 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_sns as sns\nimport aws_cdk.aws_sns_subscriptions as sns_subscriptions\nimport aws_cdk.aws_sqs as sqs\n\n# queue: sqs.Queue\n# subscription_filter: sns.SubscriptionFilter\n\nurl_subscription_props = sns_subscriptions.UrlSubscriptionProps(\n dead_letter_queue=queue,\n filter_policy={\n \"filter_policy_key\": subscription_filter\n },\n protocol=sns.SubscriptionProtocol.HTTP,\n raw_message_delivery=False\n)",
|
1127 | "version": "2"
|
1128 | },
|
1129 | "csharp": {
|
1130 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.SNS;\nusing Amazon.CDK.AWS.SNS.Subscriptions;\nusing Amazon.CDK.AWS.SQS;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nUrlSubscriptionProps urlSubscriptionProps = new UrlSubscriptionProps {\n DeadLetterQueue = queue,\n FilterPolicy = new Dictionary<string, SubscriptionFilter> {\n { \"filterPolicyKey\", subscriptionFilter }\n },\n Protocol = SubscriptionProtocol.HTTP,\n RawMessageDelivery = false\n};",
|
1131 | "version": "1"
|
1132 | },
|
1133 | "java": {
|
1134 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.sns.*;\nimport software.amazon.awscdk.services.sns.subscriptions.*;\nimport software.amazon.awscdk.services.sqs.*;\n\nQueue queue;\nSubscriptionFilter subscriptionFilter;\n\nUrlSubscriptionProps urlSubscriptionProps = UrlSubscriptionProps.builder()\n .deadLetterQueue(queue)\n .filterPolicy(Map.of(\n \"filterPolicyKey\", subscriptionFilter))\n .protocol(SubscriptionProtocol.HTTP)\n .rawMessageDelivery(false)\n .build();",
|
1135 | "version": "1"
|
1136 | },
|
1137 | "go": {
|
1138 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport sns \"github.com/aws-samples/dummy/awscdkawssns\"\nimport sns_subscriptions \"github.com/aws-samples/dummy/awscdkawssnssubscriptions\"\nimport sqs \"github.com/aws-samples/dummy/awscdkawssqs\"\n\nvar queue queue\nvar subscriptionFilter subscriptionFilter\n\nurlSubscriptionProps := &urlSubscriptionProps{\n\tdeadLetterQueue: queue,\n\tfilterPolicy: map[string]*subscriptionFilter{\n\t\t\"filterPolicyKey\": subscriptionFilter,\n\t},\n\tprotocol: sns.subscriptionProtocol_HTTP,\n\trawMessageDelivery: jsii.Boolean(false),\n}",
|
1139 | "version": "1"
|
1140 | },
|
1141 | "$": {
|
1142 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\nconst urlSubscriptionProps: sns_subscriptions.UrlSubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n protocol: sns.SubscriptionProtocol.HTTP,\n rawMessageDelivery: false,\n};",
|
1143 | "version": "0"
|
1144 | }
|
1145 | },
|
1146 | "location": {
|
1147 | "api": {
|
1148 | "api": "type",
|
1149 | "fqn": "@aws-cdk/aws-sns-subscriptions.UrlSubscriptionProps"
|
1150 | },
|
1151 | "field": {
|
1152 | "field": "example"
|
1153 | }
|
1154 | },
|
1155 | "didCompile": true,
|
1156 | "fqnsReferenced": [
|
1157 | "@aws-cdk/aws-sns-subscriptions.UrlSubscriptionProps",
|
1158 | "@aws-cdk/aws-sns.SubscriptionFilter",
|
1159 | "@aws-cdk/aws-sns.SubscriptionProtocol",
|
1160 | "@aws-cdk/aws-sns.SubscriptionProtocol#HTTP",
|
1161 | "@aws-cdk/aws-sqs.IQueue"
|
1162 | ],
|
1163 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sns_subscriptions from '@aws-cdk/aws-sns-subscriptions';\nimport * as sqs from '@aws-cdk/aws-sqs';\n\ndeclare const queue: sqs.Queue;\ndeclare const subscriptionFilter: sns.SubscriptionFilter;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst urlSubscriptionProps: sns_subscriptions.UrlSubscriptionProps = {\n deadLetterQueue: queue,\n filterPolicy: {\n filterPolicyKey: subscriptionFilter,\n },\n protocol: sns.SubscriptionProtocol.HTTP,\n rawMessageDelivery: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1164 | "syntaxKindCounter": {
|
1165 | "10": 3,
|
1166 | "75": 22,
|
1167 | "91": 1,
|
1168 | "130": 2,
|
1169 | "153": 3,
|
1170 | "169": 3,
|
1171 | "193": 2,
|
1172 | "194": 2,
|
1173 | "225": 3,
|
1174 | "242": 3,
|
1175 | "243": 3,
|
1176 | "254": 3,
|
1177 | "255": 3,
|
1178 | "256": 3,
|
1179 | "281": 5,
|
1180 | "290": 1
|
1181 | },
|
1182 | "fqnsFingerprint": "5f83d2338565570d4e5b3310a9866fb7171c5d36ec416a63aa11f76242c9ce10"
|
1183 | }
|
1184 | }
|
1185 | }
|