@aws-amplify/graphql-model-transformer 0.9.2-geo.0 → 0.10.0-GqlExtensibility.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/lib/definitions.d.ts +1 -0
  3. package/lib/definitions.d.ts.map +1 -1
  4. package/lib/definitions.js +2 -1
  5. package/lib/definitions.js.map +1 -1
  6. package/lib/graphql-model-transformer.d.ts +2 -1
  7. package/lib/graphql-model-transformer.d.ts.map +1 -1
  8. package/lib/graphql-model-transformer.js +129 -76
  9. package/lib/graphql-model-transformer.js.map +1 -1
  10. package/lib/graphql-types/common.d.ts +6 -2
  11. package/lib/graphql-types/common.d.ts.map +1 -1
  12. package/lib/graphql-types/common.js +67 -3
  13. package/lib/graphql-types/common.js.map +1 -1
  14. package/lib/graphql-types/mutation.js +3 -3
  15. package/lib/graphql-types/mutation.js.map +1 -1
  16. package/lib/graphql-types/query.js +1 -1
  17. package/lib/graphql-types/query.js.map +1 -1
  18. package/lib/resolvers/common.d.ts +1 -1
  19. package/lib/resolvers/common.d.ts.map +1 -1
  20. package/lib/resolvers/common.js +20 -21
  21. package/lib/resolvers/common.js.map +1 -1
  22. package/lib/resolvers/mutation.js +128 -128
  23. package/lib/resolvers/mutation.js.map +1 -1
  24. package/lib/resolvers/query.js +69 -69
  25. package/lib/resolvers/query.js.map +1 -1
  26. package/lib/resolvers/subscriptions.js +4 -4
  27. package/lib/resolvers/subscriptions.js.map +1 -1
  28. package/lib/wrappers/object-definition-wrapper.js +5 -5
  29. package/lib/wrappers/object-definition-wrapper.js.map +1 -1
  30. package/package.json +10 -7
  31. package/src/__tests__/__snapshots__/model-transformer.test.ts.snap +3 -3
  32. package/src/__tests__/__snapshots__/model-transformer1.test.ts.snap +3009 -0
  33. package/src/__tests__/model-transformer.test.ts +132 -37
  34. package/src/__tests__/model-transformer1.test.ts +41 -0
  35. package/src/__tests__/overrides/build/override.js +9 -0
  36. package/src/definitions.ts +2 -0
  37. package/src/graphql-model-transformer.ts +78 -8
  38. package/src/graphql-types/common.ts +97 -1
  39. package/src/resolvers/common.ts +1 -3
  40. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,3009 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ModelTransformer: should override model objects when given override config 1`] = `
4
+ Object {
5
+ "Conditions": Object {
6
+ "HasEnvironmentParameter": Object {
7
+ "Fn::Not": Array [
8
+ Object {
9
+ "Fn::Equals": Array [
10
+ Object {
11
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
12
+ },
13
+ "NONE",
14
+ ],
15
+ },
16
+ ],
17
+ },
18
+ "ShouldUsePayPerRequestBilling": Object {
19
+ "Fn::Equals": Array [
20
+ Object {
21
+ "Ref": "DynamoDBBillingMode",
22
+ },
23
+ "PAY_PER_REQUEST",
24
+ ],
25
+ },
26
+ "ShouldUsePointInTimeRecovery": Object {
27
+ "Fn::Equals": Array [
28
+ Object {
29
+ "Ref": "DynamoDBEnablePointInTimeRecovery",
30
+ },
31
+ "true",
32
+ ],
33
+ },
34
+ "ShouldUseServerSideEncryption": Object {
35
+ "Fn::Equals": Array [
36
+ Object {
37
+ "Ref": "DynamoDBEnableServerSideEncryption",
38
+ },
39
+ "true",
40
+ ],
41
+ },
42
+ },
43
+ "Outputs": Object {
44
+ "GetAttPostDataSourceName": Object {
45
+ "Description": "Your model DataSource name.",
46
+ "Export": Object {
47
+ "Name": Object {
48
+ "Fn::Join": Array [
49
+ ":",
50
+ Array [
51
+ Object {
52
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
53
+ },
54
+ "GetAtt:PostDataSource:Name",
55
+ ],
56
+ ],
57
+ },
58
+ },
59
+ "Value": Object {
60
+ "Fn::GetAtt": Array [
61
+ "PostDataSource",
62
+ "Name",
63
+ ],
64
+ },
65
+ },
66
+ "GetAttPostTableName": Object {
67
+ "Description": "Your DynamoDB table name.",
68
+ "Export": Object {
69
+ "Name": Object {
70
+ "Fn::Join": Array [
71
+ ":",
72
+ Array [
73
+ Object {
74
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
75
+ },
76
+ "GetAtt:PostTable:Name",
77
+ ],
78
+ ],
79
+ },
80
+ },
81
+ "Value": Object {
82
+ "Ref": "PostTable",
83
+ },
84
+ },
85
+ "GetAttPostTableStreamArn": Object {
86
+ "Description": "Your DynamoDB table StreamArn.",
87
+ "Export": Object {
88
+ "Name": Object {
89
+ "Fn::Join": Array [
90
+ ":",
91
+ Array [
92
+ Object {
93
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
94
+ },
95
+ "GetAtt:PostTable:StreamArn",
96
+ ],
97
+ ],
98
+ },
99
+ },
100
+ "Value": Object {
101
+ "Fn::GetAtt": Array [
102
+ "PostTable",
103
+ "StreamArn",
104
+ ],
105
+ },
106
+ },
107
+ },
108
+ "Parameters": Object {
109
+ "DynamoDBBillingMode": Object {
110
+ "AllowedValues": Array [
111
+ "PAY_PER_REQUEST",
112
+ "PROVISIONED",
113
+ ],
114
+ "Default": "PAY_PER_REQUEST",
115
+ "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes.",
116
+ "Type": "String",
117
+ },
118
+ "DynamoDBEnablePointInTimeRecovery": Object {
119
+ "AllowedValues": Array [
120
+ "true",
121
+ "false",
122
+ ],
123
+ "Default": "false",
124
+ "Description": "Whether to enable Point in Time Recovery on the table.",
125
+ "Type": "String",
126
+ },
127
+ "DynamoDBEnableServerSideEncryption": Object {
128
+ "AllowedValues": Array [
129
+ "true",
130
+ "false",
131
+ ],
132
+ "Default": "true",
133
+ "Description": "Enable server side encryption powered by KMS.",
134
+ "Type": "String",
135
+ },
136
+ "DynamoDBModelTableReadIOPS": Object {
137
+ "Default": 5,
138
+ "Description": "The number of read IOPS the table should support.",
139
+ "Type": "Number",
140
+ },
141
+ "DynamoDBModelTableWriteIOPS": Object {
142
+ "Default": 5,
143
+ "Description": "The number of write IOPS the table should support.",
144
+ "Type": "Number",
145
+ },
146
+ "referencetotransformerrootstackGraphQLAPI20497F53ApiId": Object {
147
+ "Type": "String",
148
+ },
149
+ "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": Object {
150
+ "Type": "String",
151
+ },
152
+ "referencetotransformerrootstackS3DeploymentBucket7592718ARef": Object {
153
+ "Type": "String",
154
+ },
155
+ "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": Object {
156
+ "Type": "String",
157
+ },
158
+ "referencetotransformerrootstackenv10C5A902Ref": Object {
159
+ "Type": "String",
160
+ },
161
+ },
162
+ "Resources": Object {
163
+ "CreatePostResolver": Object {
164
+ "Properties": Object {
165
+ "ApiId": Object {
166
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
167
+ },
168
+ "FieldName": "createPost",
169
+ "Kind": "PIPELINE",
170
+ "PipelineConfig": Object {
171
+ "Functions": Array [
172
+ Object {
173
+ "Fn::GetAtt": Array [
174
+ "MutationcreatePostinit0FunctionMutationcreatePostinit0FunctionAppSyncFunction9E444A7F",
175
+ "FunctionId",
176
+ ],
177
+ },
178
+ Object {
179
+ "Fn::GetAtt": Array [
180
+ "MutationcreatePostpostAuth0FunctionMutationcreatePostpostAuth0FunctionAppSyncFunction2C708069",
181
+ "FunctionId",
182
+ ],
183
+ },
184
+ Object {
185
+ "Fn::GetAtt": Array [
186
+ "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000",
187
+ "FunctionId",
188
+ ],
189
+ },
190
+ ],
191
+ },
192
+ "RequestMappingTemplate": Object {
193
+ "Fn::Join": Array [
194
+ "",
195
+ Array [
196
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Mutation\\"))
197
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"createPost\\"))
198
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
199
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
200
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
201
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
202
+ Object {
203
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
204
+ },
205
+ "\\"))
206
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
207
+ Object {
208
+ "Ref": "PostTable",
209
+ },
210
+ "\\"))
211
+ $util.toJson({})",
212
+ ],
213
+ ],
214
+ },
215
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
216
+ "TypeName": "Mutation",
217
+ },
218
+ "Type": "AWS::AppSync::Resolver",
219
+ },
220
+ "DeletePostResolver": Object {
221
+ "Properties": Object {
222
+ "ApiId": Object {
223
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
224
+ },
225
+ "FieldName": "deletePost",
226
+ "Kind": "PIPELINE",
227
+ "PipelineConfig": Object {
228
+ "Functions": Array [
229
+ Object {
230
+ "Fn::GetAtt": Array [
231
+ "MutationdeletePostpostAuth0FunctionMutationdeletePostpostAuth0FunctionAppSyncFunctionFF4E884F",
232
+ "FunctionId",
233
+ ],
234
+ },
235
+ Object {
236
+ "Fn::GetAtt": Array [
237
+ "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12",
238
+ "FunctionId",
239
+ ],
240
+ },
241
+ ],
242
+ },
243
+ "RequestMappingTemplate": Object {
244
+ "Fn::Join": Array [
245
+ "",
246
+ Array [
247
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Mutation\\"))
248
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"deletePost\\"))
249
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
250
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
251
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
252
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
253
+ Object {
254
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
255
+ },
256
+ "\\"))
257
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
258
+ Object {
259
+ "Ref": "PostTable",
260
+ },
261
+ "\\"))
262
+ $util.toJson({})",
263
+ ],
264
+ ],
265
+ },
266
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
267
+ "TypeName": "Mutation",
268
+ },
269
+ "Type": "AWS::AppSync::Resolver",
270
+ },
271
+ "DynamoDBAccess71ABE5AE": Object {
272
+ "Properties": Object {
273
+ "PolicyDocument": Object {
274
+ "Statement": Array [
275
+ Object {
276
+ "Action": Array [
277
+ "dynamodb:BatchGetItem",
278
+ "dynamodb:BatchWriteItem",
279
+ "dynamodb:PutItem",
280
+ "dynamodb:DeleteItem",
281
+ "dynamodb:GetItem",
282
+ "dynamodb:Scan",
283
+ "dynamodb:Query",
284
+ "dynamodb:UpdateItem",
285
+ ],
286
+ "Effect": "Allow",
287
+ "Resource": Array [
288
+ Object {
289
+ "Fn::Sub": Array [
290
+ "arn:aws:dynamodb:\${AWS::Region}:\${AWS::AccountId}:table/\${tablename}",
291
+ Object {
292
+ "tablename": Object {
293
+ "Fn::Join": Array [
294
+ "",
295
+ Array [
296
+ "Post-",
297
+ Object {
298
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
299
+ },
300
+ "-",
301
+ Object {
302
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
303
+ },
304
+ ],
305
+ ],
306
+ },
307
+ },
308
+ ],
309
+ },
310
+ Object {
311
+ "Fn::Sub": Array [
312
+ "arn:aws:dynamodb:\${AWS::Region}:\${AWS::AccountId}:table/\${tablename}/*",
313
+ Object {
314
+ "tablename": Object {
315
+ "Fn::Join": Array [
316
+ "",
317
+ Array [
318
+ "Post-",
319
+ Object {
320
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
321
+ },
322
+ "-",
323
+ Object {
324
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
325
+ },
326
+ ],
327
+ ],
328
+ },
329
+ },
330
+ ],
331
+ },
332
+ ],
333
+ },
334
+ ],
335
+ "Version": "2012-10-17",
336
+ },
337
+ "PolicyName": "DynamoDBAccess71ABE5AE",
338
+ "Roles": Array [
339
+ Object {
340
+ "Ref": "PostIAMRole83BF708F",
341
+ },
342
+ ],
343
+ },
344
+ "Type": "AWS::IAM::Policy",
345
+ },
346
+ "GetPostResolver": Object {
347
+ "Properties": Object {
348
+ "ApiId": Object {
349
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
350
+ },
351
+ "FieldName": "getPost",
352
+ "Kind": "PIPELINE",
353
+ "PipelineConfig": Object {
354
+ "Functions": Array [
355
+ Object {
356
+ "Fn::GetAtt": Array [
357
+ "QuerygetPostpostAuth0FunctionQuerygetPostpostAuth0FunctionAppSyncFunctionC72E5C0F",
358
+ "FunctionId",
359
+ ],
360
+ },
361
+ Object {
362
+ "Fn::GetAtt": Array [
363
+ "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190",
364
+ "FunctionId",
365
+ ],
366
+ },
367
+ ],
368
+ },
369
+ "RequestMappingTemplate": Object {
370
+ "Fn::Join": Array [
371
+ "",
372
+ Array [
373
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Query\\"))
374
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"getPost\\"))
375
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
376
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
377
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
378
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
379
+ Object {
380
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
381
+ },
382
+ "\\"))
383
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
384
+ Object {
385
+ "Ref": "PostTable",
386
+ },
387
+ "\\"))
388
+ $util.toJson({})",
389
+ ],
390
+ ],
391
+ },
392
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
393
+ "TypeName": "Query",
394
+ },
395
+ "Type": "AWS::AppSync::Resolver",
396
+ },
397
+ "ListPostResolver": Object {
398
+ "Properties": Object {
399
+ "ApiId": Object {
400
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
401
+ },
402
+ "FieldName": "listPosts",
403
+ "Kind": "PIPELINE",
404
+ "PipelineConfig": Object {
405
+ "Functions": Array [
406
+ Object {
407
+ "Fn::GetAtt": Array [
408
+ "QuerylistPostspostAuth0FunctionQuerylistPostspostAuth0FunctionAppSyncFunction3585C8F4",
409
+ "FunctionId",
410
+ ],
411
+ },
412
+ Object {
413
+ "Fn::GetAtt": Array [
414
+ "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7",
415
+ "FunctionId",
416
+ ],
417
+ },
418
+ ],
419
+ },
420
+ "RequestMappingTemplate": Object {
421
+ "Fn::Join": Array [
422
+ "",
423
+ Array [
424
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Query\\"))
425
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"listPosts\\"))
426
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
427
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
428
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
429
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
430
+ Object {
431
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
432
+ },
433
+ "\\"))
434
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
435
+ Object {
436
+ "Ref": "PostTable",
437
+ },
438
+ "\\"))
439
+ $util.toJson({})",
440
+ ],
441
+ ],
442
+ },
443
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
444
+ "TypeName": "Query",
445
+ },
446
+ "Type": "AWS::AppSync::Resolver",
447
+ },
448
+ "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000": Object {
449
+ "DependsOn": Array [
450
+ "PostDataSource",
451
+ ],
452
+ "Properties": Object {
453
+ "ApiId": Object {
454
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
455
+ },
456
+ "DataSourceName": Object {
457
+ "Fn::GetAtt": Array [
458
+ "PostDataSource",
459
+ "Name",
460
+ ],
461
+ },
462
+ "FunctionVersion": "2018-05-29",
463
+ "Name": "MutationCreatePostDataResolverFn",
464
+ "RequestMappingTemplateS3Location": Object {
465
+ "Fn::Join": Array [
466
+ "",
467
+ Array [
468
+ "s3://",
469
+ Object {
470
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
471
+ },
472
+ "/",
473
+ Object {
474
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
475
+ },
476
+ "/resolvers/Mutation.createPost.req.vtl",
477
+ ],
478
+ ],
479
+ },
480
+ "ResponseMappingTemplateS3Location": Object {
481
+ "Fn::Join": Array [
482
+ "",
483
+ Array [
484
+ "s3://",
485
+ Object {
486
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
487
+ },
488
+ "/",
489
+ Object {
490
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
491
+ },
492
+ "/resolvers/Mutation.createPost.res.vtl",
493
+ ],
494
+ ],
495
+ },
496
+ },
497
+ "Type": "AWS::AppSync::FunctionConfiguration",
498
+ },
499
+ "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12": Object {
500
+ "DependsOn": Array [
501
+ "PostDataSource",
502
+ ],
503
+ "Properties": Object {
504
+ "ApiId": Object {
505
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
506
+ },
507
+ "DataSourceName": Object {
508
+ "Fn::GetAtt": Array [
509
+ "PostDataSource",
510
+ "Name",
511
+ ],
512
+ },
513
+ "FunctionVersion": "2018-05-29",
514
+ "Name": "MutationDeletePostDataResolverFn",
515
+ "RequestMappingTemplateS3Location": Object {
516
+ "Fn::Join": Array [
517
+ "",
518
+ Array [
519
+ "s3://",
520
+ Object {
521
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
522
+ },
523
+ "/",
524
+ Object {
525
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
526
+ },
527
+ "/resolvers/Mutation.deletePost.req.vtl",
528
+ ],
529
+ ],
530
+ },
531
+ "ResponseMappingTemplateS3Location": Object {
532
+ "Fn::Join": Array [
533
+ "",
534
+ Array [
535
+ "s3://",
536
+ Object {
537
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
538
+ },
539
+ "/",
540
+ Object {
541
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
542
+ },
543
+ "/resolvers/Mutation.deletePost.res.vtl",
544
+ ],
545
+ ],
546
+ },
547
+ },
548
+ "Type": "AWS::AppSync::FunctionConfiguration",
549
+ },
550
+ "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D": Object {
551
+ "DependsOn": Array [
552
+ "PostDataSource",
553
+ ],
554
+ "Properties": Object {
555
+ "ApiId": Object {
556
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
557
+ },
558
+ "DataSourceName": Object {
559
+ "Fn::GetAtt": Array [
560
+ "PostDataSource",
561
+ "Name",
562
+ ],
563
+ },
564
+ "FunctionVersion": "2018-05-29",
565
+ "Name": "MutationUpdatePostDataResolverFn",
566
+ "RequestMappingTemplateS3Location": Object {
567
+ "Fn::Join": Array [
568
+ "",
569
+ Array [
570
+ "s3://",
571
+ Object {
572
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
573
+ },
574
+ "/",
575
+ Object {
576
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
577
+ },
578
+ "/resolvers/Mutation.updatePost.req.vtl",
579
+ ],
580
+ ],
581
+ },
582
+ "ResponseMappingTemplateS3Location": Object {
583
+ "Fn::Join": Array [
584
+ "",
585
+ Array [
586
+ "s3://",
587
+ Object {
588
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
589
+ },
590
+ "/",
591
+ Object {
592
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
593
+ },
594
+ "/resolvers/Mutation.updatePost.res.vtl",
595
+ ],
596
+ ],
597
+ },
598
+ },
599
+ "Type": "AWS::AppSync::FunctionConfiguration",
600
+ },
601
+ "MutationcreatePostinit0FunctionMutationcreatePostinit0FunctionAppSyncFunction9E444A7F": Object {
602
+ "Properties": Object {
603
+ "ApiId": Object {
604
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
605
+ },
606
+ "DataSourceName": Object {
607
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
608
+ },
609
+ "FunctionVersion": "2018-05-29",
610
+ "Name": "MutationcreatePostinit0Function",
611
+ "RequestMappingTemplateS3Location": Object {
612
+ "Fn::Join": Array [
613
+ "",
614
+ Array [
615
+ "s3://",
616
+ Object {
617
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
618
+ },
619
+ "/",
620
+ Object {
621
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
622
+ },
623
+ "/resolvers/Mutation.createPost.init.1.req.vtl",
624
+ ],
625
+ ],
626
+ },
627
+ "ResponseMappingTemplate": "$util.toJson({})",
628
+ },
629
+ "Type": "AWS::AppSync::FunctionConfiguration",
630
+ },
631
+ "MutationcreatePostpostAuth0FunctionMutationcreatePostpostAuth0FunctionAppSyncFunction2C708069": Object {
632
+ "Properties": Object {
633
+ "ApiId": Object {
634
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
635
+ },
636
+ "DataSourceName": Object {
637
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
638
+ },
639
+ "FunctionVersion": "2018-05-29",
640
+ "Name": "MutationcreatePostpostAuth0Function",
641
+ "RequestMappingTemplateS3Location": Object {
642
+ "Fn::Join": Array [
643
+ "",
644
+ Array [
645
+ "s3://",
646
+ Object {
647
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
648
+ },
649
+ "/",
650
+ Object {
651
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
652
+ },
653
+ "/resolvers/Mutation.createPost.postAuth.1.req.vtl",
654
+ ],
655
+ ],
656
+ },
657
+ "ResponseMappingTemplate": "$util.toJson({})",
658
+ },
659
+ "Type": "AWS::AppSync::FunctionConfiguration",
660
+ },
661
+ "MutationdeletePostpostAuth0FunctionMutationdeletePostpostAuth0FunctionAppSyncFunctionFF4E884F": Object {
662
+ "Properties": Object {
663
+ "ApiId": Object {
664
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
665
+ },
666
+ "DataSourceName": Object {
667
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
668
+ },
669
+ "FunctionVersion": "2018-05-29",
670
+ "Name": "MutationdeletePostpostAuth0Function",
671
+ "RequestMappingTemplateS3Location": Object {
672
+ "Fn::Join": Array [
673
+ "",
674
+ Array [
675
+ "s3://",
676
+ Object {
677
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
678
+ },
679
+ "/",
680
+ Object {
681
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
682
+ },
683
+ "/resolvers/Mutation.deletePost.postAuth.1.req.vtl",
684
+ ],
685
+ ],
686
+ },
687
+ "ResponseMappingTemplate": "$util.toJson({})",
688
+ },
689
+ "Type": "AWS::AppSync::FunctionConfiguration",
690
+ },
691
+ "MutationupdatePostinit0FunctionMutationupdatePostinit0FunctionAppSyncFunctionBAC7D532": Object {
692
+ "Properties": Object {
693
+ "ApiId": Object {
694
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
695
+ },
696
+ "DataSourceName": Object {
697
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
698
+ },
699
+ "FunctionVersion": "2018-05-29",
700
+ "Name": "MutationupdatePostinit0Function",
701
+ "RequestMappingTemplateS3Location": Object {
702
+ "Fn::Join": Array [
703
+ "",
704
+ Array [
705
+ "s3://",
706
+ Object {
707
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
708
+ },
709
+ "/",
710
+ Object {
711
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
712
+ },
713
+ "/resolvers/Mutation.updatePost.init.1.req.vtl",
714
+ ],
715
+ ],
716
+ },
717
+ "ResponseMappingTemplate": "$util.toJson({})",
718
+ },
719
+ "Type": "AWS::AppSync::FunctionConfiguration",
720
+ },
721
+ "MutationupdatePostpostAuth0FunctionMutationupdatePostpostAuth0FunctionAppSyncFunctionB977D8DD": Object {
722
+ "Properties": Object {
723
+ "ApiId": Object {
724
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
725
+ },
726
+ "DataSourceName": Object {
727
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
728
+ },
729
+ "FunctionVersion": "2018-05-29",
730
+ "Name": "MutationupdatePostpostAuth0Function",
731
+ "RequestMappingTemplateS3Location": Object {
732
+ "Fn::Join": Array [
733
+ "",
734
+ Array [
735
+ "s3://",
736
+ Object {
737
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
738
+ },
739
+ "/",
740
+ Object {
741
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
742
+ },
743
+ "/resolvers/Mutation.updatePost.postAuth.1.req.vtl",
744
+ ],
745
+ ],
746
+ },
747
+ "ResponseMappingTemplate": "$util.toJson({})",
748
+ },
749
+ "Type": "AWS::AppSync::FunctionConfiguration",
750
+ },
751
+ "PostDataSource": Object {
752
+ "DependsOn": Array [
753
+ "PostIAMRole83BF708F",
754
+ ],
755
+ "Properties": Object {
756
+ "ApiId": Object {
757
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
758
+ },
759
+ "DynamoDBConfig": Object {
760
+ "AwsRegion": Object {
761
+ "Ref": "AWS::Region",
762
+ },
763
+ "TableName": Object {
764
+ "Ref": "PostTable",
765
+ },
766
+ },
767
+ "Name": "PostTable",
768
+ "ServiceRoleArn": Object {
769
+ "Fn::GetAtt": Array [
770
+ "PostIAMRole83BF708F",
771
+ "Arn",
772
+ ],
773
+ },
774
+ "Type": "AMAZON_DYNAMODB",
775
+ },
776
+ "Type": "AWS::AppSync::DataSource",
777
+ },
778
+ "PostIAMRole83BF708F": Object {
779
+ "Properties": Object {
780
+ "AssumeRolePolicyDocument": Object {
781
+ "Statement": Array [
782
+ Object {
783
+ "Action": "sts:AssumeRole",
784
+ "Effect": "Allow",
785
+ "Principal": Object {
786
+ "Service": "appsync.amazonaws.com",
787
+ },
788
+ },
789
+ ],
790
+ "Version": "2012-10-17",
791
+ },
792
+ "RoleName": Object {
793
+ "Fn::Join": Array [
794
+ "",
795
+ Array [
796
+ "PostIAMRolebbce9b-",
797
+ Object {
798
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
799
+ },
800
+ "-",
801
+ Object {
802
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
803
+ },
804
+ ],
805
+ ],
806
+ },
807
+ },
808
+ "Type": "AWS::IAM::Role",
809
+ },
810
+ "PostIAMRoleDefaultPolicy04190CA0": Object {
811
+ "Properties": Object {
812
+ "PolicyDocument": Object {
813
+ "Statement": Array [
814
+ Object {
815
+ "Action": Array [
816
+ "dynamodb:BatchGetItem",
817
+ "dynamodb:GetRecords",
818
+ "dynamodb:GetShardIterator",
819
+ "dynamodb:Query",
820
+ "dynamodb:GetItem",
821
+ "dynamodb:Scan",
822
+ "dynamodb:ConditionCheckItem",
823
+ "dynamodb:BatchWriteItem",
824
+ "dynamodb:PutItem",
825
+ "dynamodb:UpdateItem",
826
+ "dynamodb:DeleteItem",
827
+ ],
828
+ "Effect": "Allow",
829
+ "Resource": Array [
830
+ Object {
831
+ "Fn::GetAtt": Array [
832
+ "PostTable",
833
+ "Arn",
834
+ ],
835
+ },
836
+ Object {
837
+ "Ref": "AWS::NoValue",
838
+ },
839
+ ],
840
+ },
841
+ ],
842
+ "Version": "2012-10-17",
843
+ },
844
+ "PolicyName": "PostIAMRoleDefaultPolicy04190CA0",
845
+ "Roles": Array [
846
+ Object {
847
+ "Ref": "PostIAMRole83BF708F",
848
+ },
849
+ ],
850
+ },
851
+ "Type": "AWS::IAM::Policy",
852
+ },
853
+ "PostTable": Object {
854
+ "DeletionPolicy": "Delete",
855
+ "Properties": Object {
856
+ "AttributeDefinitions": Array [
857
+ Object {
858
+ "AttributeName": "id",
859
+ "AttributeType": "S",
860
+ },
861
+ ],
862
+ "BillingMode": "PROVISIONED",
863
+ "KeySchema": Array [
864
+ Object {
865
+ "AttributeName": "id",
866
+ "KeyType": "HASH",
867
+ },
868
+ ],
869
+ "PointInTimeRecoverySpecification": Object {
870
+ "Fn::If": Array [
871
+ "ShouldUsePointInTimeRecovery",
872
+ Object {
873
+ "PointInTimeRecoveryEnabled": true,
874
+ },
875
+ Object {
876
+ "Ref": "AWS::NoValue",
877
+ },
878
+ ],
879
+ },
880
+ "ProvisionedThroughput": Object {
881
+ "Fn::If": Array [
882
+ "ShouldUsePayPerRequestBilling",
883
+ Object {
884
+ "Ref": "AWS::NoValue",
885
+ },
886
+ Object {
887
+ "ReadCapacityUnits": Object {
888
+ "Ref": "DynamoDBModelTableReadIOPS",
889
+ },
890
+ "WriteCapacityUnits": Object {
891
+ "Ref": "DynamoDBModelTableWriteIOPS",
892
+ },
893
+ },
894
+ ],
895
+ },
896
+ "SSESpecification": Object {
897
+ "SSEEnabled": Object {
898
+ "Fn::If": Array [
899
+ "ShouldUseServerSideEncryption",
900
+ true,
901
+ false,
902
+ ],
903
+ },
904
+ },
905
+ "StreamSpecification": Object {
906
+ "StreamViewType": "NEW_AND_OLD_IMAGES",
907
+ },
908
+ "TableName": Object {
909
+ "Fn::Join": Array [
910
+ "",
911
+ Array [
912
+ "Post-",
913
+ Object {
914
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
915
+ },
916
+ "-",
917
+ Object {
918
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
919
+ },
920
+ ],
921
+ ],
922
+ },
923
+ },
924
+ "Type": "AWS::DynamoDB::Table",
925
+ "UpdateReplacePolicy": "Delete",
926
+ },
927
+ "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190": Object {
928
+ "DependsOn": Array [
929
+ "PostDataSource",
930
+ ],
931
+ "Properties": Object {
932
+ "ApiId": Object {
933
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
934
+ },
935
+ "DataSourceName": Object {
936
+ "Fn::GetAtt": Array [
937
+ "PostDataSource",
938
+ "Name",
939
+ ],
940
+ },
941
+ "FunctionVersion": "2018-05-29",
942
+ "Name": "QueryGetPostDataResolverFn",
943
+ "RequestMappingTemplateS3Location": Object {
944
+ "Fn::Join": Array [
945
+ "",
946
+ Array [
947
+ "s3://",
948
+ Object {
949
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
950
+ },
951
+ "/",
952
+ Object {
953
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
954
+ },
955
+ "/resolvers/Query.getPost.req.vtl",
956
+ ],
957
+ ],
958
+ },
959
+ "ResponseMappingTemplateS3Location": Object {
960
+ "Fn::Join": Array [
961
+ "",
962
+ Array [
963
+ "s3://",
964
+ Object {
965
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
966
+ },
967
+ "/",
968
+ Object {
969
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
970
+ },
971
+ "/resolvers/Query.getPost.res.vtl",
972
+ ],
973
+ ],
974
+ },
975
+ },
976
+ "Type": "AWS::AppSync::FunctionConfiguration",
977
+ },
978
+ "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7": Object {
979
+ "DependsOn": Array [
980
+ "PostDataSource",
981
+ ],
982
+ "Properties": Object {
983
+ "ApiId": Object {
984
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
985
+ },
986
+ "DataSourceName": Object {
987
+ "Fn::GetAtt": Array [
988
+ "PostDataSource",
989
+ "Name",
990
+ ],
991
+ },
992
+ "FunctionVersion": "2018-05-29",
993
+ "Name": "QueryListPostsDataResolverFn",
994
+ "RequestMappingTemplateS3Location": Object {
995
+ "Fn::Join": Array [
996
+ "",
997
+ Array [
998
+ "s3://",
999
+ Object {
1000
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1001
+ },
1002
+ "/",
1003
+ Object {
1004
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1005
+ },
1006
+ "/resolvers/Query.listPosts.req.vtl",
1007
+ ],
1008
+ ],
1009
+ },
1010
+ "ResponseMappingTemplateS3Location": Object {
1011
+ "Fn::Join": Array [
1012
+ "",
1013
+ Array [
1014
+ "s3://",
1015
+ Object {
1016
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1017
+ },
1018
+ "/",
1019
+ Object {
1020
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1021
+ },
1022
+ "/resolvers/Query.listPosts.res.vtl",
1023
+ ],
1024
+ ],
1025
+ },
1026
+ },
1027
+ "Type": "AWS::AppSync::FunctionConfiguration",
1028
+ },
1029
+ "QuerygetPostpostAuth0FunctionQuerygetPostpostAuth0FunctionAppSyncFunctionC72E5C0F": Object {
1030
+ "Properties": Object {
1031
+ "ApiId": Object {
1032
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1033
+ },
1034
+ "DataSourceName": Object {
1035
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
1036
+ },
1037
+ "FunctionVersion": "2018-05-29",
1038
+ "Name": "QuerygetPostpostAuth0Function",
1039
+ "RequestMappingTemplateS3Location": Object {
1040
+ "Fn::Join": Array [
1041
+ "",
1042
+ Array [
1043
+ "s3://",
1044
+ Object {
1045
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1046
+ },
1047
+ "/",
1048
+ Object {
1049
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1050
+ },
1051
+ "/resolvers/Query.getPost.postAuth.1.req.vtl",
1052
+ ],
1053
+ ],
1054
+ },
1055
+ "ResponseMappingTemplate": "$util.toJson({})",
1056
+ },
1057
+ "Type": "AWS::AppSync::FunctionConfiguration",
1058
+ },
1059
+ "QuerylistPostspostAuth0FunctionQuerylistPostspostAuth0FunctionAppSyncFunction3585C8F4": Object {
1060
+ "Properties": Object {
1061
+ "ApiId": Object {
1062
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1063
+ },
1064
+ "DataSourceName": Object {
1065
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
1066
+ },
1067
+ "FunctionVersion": "2018-05-29",
1068
+ "Name": "QuerylistPostspostAuth0Function",
1069
+ "RequestMappingTemplateS3Location": Object {
1070
+ "Fn::Join": Array [
1071
+ "",
1072
+ Array [
1073
+ "s3://",
1074
+ Object {
1075
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1076
+ },
1077
+ "/",
1078
+ Object {
1079
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1080
+ },
1081
+ "/resolvers/Query.listPosts.postAuth.1.req.vtl",
1082
+ ],
1083
+ ],
1084
+ },
1085
+ "ResponseMappingTemplate": "$util.toJson({})",
1086
+ },
1087
+ "Type": "AWS::AppSync::FunctionConfiguration",
1088
+ },
1089
+ "SubscriptionOnCreatePostDataResolverFnSubscriptionOnCreatePostDataResolverFnAppSyncFunctionB4572868": Object {
1090
+ "Properties": Object {
1091
+ "ApiId": Object {
1092
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1093
+ },
1094
+ "DataSourceName": Object {
1095
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
1096
+ },
1097
+ "FunctionVersion": "2018-05-29",
1098
+ "Name": "SubscriptionOnCreatePostDataResolverFn",
1099
+ "RequestMappingTemplateS3Location": Object {
1100
+ "Fn::Join": Array [
1101
+ "",
1102
+ Array [
1103
+ "s3://",
1104
+ Object {
1105
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1106
+ },
1107
+ "/",
1108
+ Object {
1109
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1110
+ },
1111
+ "/resolvers/Subscription.onCreatePost.req.vtl",
1112
+ ],
1113
+ ],
1114
+ },
1115
+ "ResponseMappingTemplateS3Location": Object {
1116
+ "Fn::Join": Array [
1117
+ "",
1118
+ Array [
1119
+ "s3://",
1120
+ Object {
1121
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1122
+ },
1123
+ "/",
1124
+ Object {
1125
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1126
+ },
1127
+ "/resolvers/Subscription.onCreatePost.res.vtl",
1128
+ ],
1129
+ ],
1130
+ },
1131
+ },
1132
+ "Type": "AWS::AppSync::FunctionConfiguration",
1133
+ },
1134
+ "SubscriptionOnDeletePostDataResolverFnSubscriptionOnDeletePostDataResolverFnAppSyncFunction9D84E829": Object {
1135
+ "Properties": Object {
1136
+ "ApiId": Object {
1137
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1138
+ },
1139
+ "DataSourceName": Object {
1140
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
1141
+ },
1142
+ "FunctionVersion": "2018-05-29",
1143
+ "Name": "SubscriptionOnDeletePostDataResolverFn",
1144
+ "RequestMappingTemplateS3Location": Object {
1145
+ "Fn::Join": Array [
1146
+ "",
1147
+ Array [
1148
+ "s3://",
1149
+ Object {
1150
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1151
+ },
1152
+ "/",
1153
+ Object {
1154
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1155
+ },
1156
+ "/resolvers/Subscription.onDeletePost.req.vtl",
1157
+ ],
1158
+ ],
1159
+ },
1160
+ "ResponseMappingTemplateS3Location": Object {
1161
+ "Fn::Join": Array [
1162
+ "",
1163
+ Array [
1164
+ "s3://",
1165
+ Object {
1166
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1167
+ },
1168
+ "/",
1169
+ Object {
1170
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1171
+ },
1172
+ "/resolvers/Subscription.onDeletePost.res.vtl",
1173
+ ],
1174
+ ],
1175
+ },
1176
+ },
1177
+ "Type": "AWS::AppSync::FunctionConfiguration",
1178
+ },
1179
+ "SubscriptionOnUpdatePostDataResolverFnSubscriptionOnUpdatePostDataResolverFnAppSyncFunction325AAFC9": Object {
1180
+ "Properties": Object {
1181
+ "ApiId": Object {
1182
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1183
+ },
1184
+ "DataSourceName": Object {
1185
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
1186
+ },
1187
+ "FunctionVersion": "2018-05-29",
1188
+ "Name": "SubscriptionOnUpdatePostDataResolverFn",
1189
+ "RequestMappingTemplateS3Location": Object {
1190
+ "Fn::Join": Array [
1191
+ "",
1192
+ Array [
1193
+ "s3://",
1194
+ Object {
1195
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1196
+ },
1197
+ "/",
1198
+ Object {
1199
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1200
+ },
1201
+ "/resolvers/Subscription.onUpdatePost.req.vtl",
1202
+ ],
1203
+ ],
1204
+ },
1205
+ "ResponseMappingTemplateS3Location": Object {
1206
+ "Fn::Join": Array [
1207
+ "",
1208
+ Array [
1209
+ "s3://",
1210
+ Object {
1211
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1212
+ },
1213
+ "/",
1214
+ Object {
1215
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1216
+ },
1217
+ "/resolvers/Subscription.onUpdatePost.res.vtl",
1218
+ ],
1219
+ ],
1220
+ },
1221
+ },
1222
+ "Type": "AWS::AppSync::FunctionConfiguration",
1223
+ },
1224
+ "SubscriptiononCreatePostResolver": Object {
1225
+ "Properties": Object {
1226
+ "ApiId": Object {
1227
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1228
+ },
1229
+ "FieldName": "onCreatePost",
1230
+ "Kind": "PIPELINE",
1231
+ "PipelineConfig": Object {
1232
+ "Functions": Array [
1233
+ Object {
1234
+ "Fn::GetAtt": Array [
1235
+ "SubscriptiononCreatePostpostAuth0FunctionSubscriptiononCreatePostpostAuth0FunctionAppSyncFunction3197D95D",
1236
+ "FunctionId",
1237
+ ],
1238
+ },
1239
+ Object {
1240
+ "Fn::GetAtt": Array [
1241
+ "SubscriptionOnCreatePostDataResolverFnSubscriptionOnCreatePostDataResolverFnAppSyncFunctionB4572868",
1242
+ "FunctionId",
1243
+ ],
1244
+ },
1245
+ ],
1246
+ },
1247
+ "RequestMappingTemplate": Object {
1248
+ "Fn::Join": Array [
1249
+ "",
1250
+ Array [
1251
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Subscription\\"))
1252
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"onCreatePost\\"))
1253
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
1254
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
1255
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"NONE\\"))
1256
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
1257
+ Object {
1258
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1259
+ },
1260
+ "\\"))
1261
+
1262
+ $util.toJson({})",
1263
+ ],
1264
+ ],
1265
+ },
1266
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
1267
+ "TypeName": "Subscription",
1268
+ },
1269
+ "Type": "AWS::AppSync::Resolver",
1270
+ },
1271
+ "SubscriptiononCreatePostpostAuth0FunctionSubscriptiononCreatePostpostAuth0FunctionAppSyncFunction3197D95D": Object {
1272
+ "Properties": Object {
1273
+ "ApiId": Object {
1274
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1275
+ },
1276
+ "DataSourceName": Object {
1277
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
1278
+ },
1279
+ "FunctionVersion": "2018-05-29",
1280
+ "Name": "SubscriptiononCreatePostpostAuth0Function",
1281
+ "RequestMappingTemplateS3Location": Object {
1282
+ "Fn::Join": Array [
1283
+ "",
1284
+ Array [
1285
+ "s3://",
1286
+ Object {
1287
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1288
+ },
1289
+ "/",
1290
+ Object {
1291
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1292
+ },
1293
+ "/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl",
1294
+ ],
1295
+ ],
1296
+ },
1297
+ "ResponseMappingTemplate": "$util.toJson({})",
1298
+ },
1299
+ "Type": "AWS::AppSync::FunctionConfiguration",
1300
+ },
1301
+ "SubscriptiononDeletePostResolver": Object {
1302
+ "Properties": Object {
1303
+ "ApiId": Object {
1304
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1305
+ },
1306
+ "FieldName": "onDeletePost",
1307
+ "Kind": "PIPELINE",
1308
+ "PipelineConfig": Object {
1309
+ "Functions": Array [
1310
+ Object {
1311
+ "Fn::GetAtt": Array [
1312
+ "SubscriptiononDeletePostpostAuth0FunctionSubscriptiononDeletePostpostAuth0FunctionAppSyncFunction80B1275A",
1313
+ "FunctionId",
1314
+ ],
1315
+ },
1316
+ Object {
1317
+ "Fn::GetAtt": Array [
1318
+ "SubscriptionOnDeletePostDataResolverFnSubscriptionOnDeletePostDataResolverFnAppSyncFunction9D84E829",
1319
+ "FunctionId",
1320
+ ],
1321
+ },
1322
+ ],
1323
+ },
1324
+ "RequestMappingTemplate": Object {
1325
+ "Fn::Join": Array [
1326
+ "",
1327
+ Array [
1328
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Subscription\\"))
1329
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"onDeletePost\\"))
1330
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
1331
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
1332
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"NONE\\"))
1333
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
1334
+ Object {
1335
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1336
+ },
1337
+ "\\"))
1338
+
1339
+ $util.toJson({})",
1340
+ ],
1341
+ ],
1342
+ },
1343
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
1344
+ "TypeName": "Subscription",
1345
+ },
1346
+ "Type": "AWS::AppSync::Resolver",
1347
+ },
1348
+ "SubscriptiononDeletePostpostAuth0FunctionSubscriptiononDeletePostpostAuth0FunctionAppSyncFunction80B1275A": Object {
1349
+ "Properties": Object {
1350
+ "ApiId": Object {
1351
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1352
+ },
1353
+ "DataSourceName": Object {
1354
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
1355
+ },
1356
+ "FunctionVersion": "2018-05-29",
1357
+ "Name": "SubscriptiononDeletePostpostAuth0Function",
1358
+ "RequestMappingTemplateS3Location": Object {
1359
+ "Fn::Join": Array [
1360
+ "",
1361
+ Array [
1362
+ "s3://",
1363
+ Object {
1364
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1365
+ },
1366
+ "/",
1367
+ Object {
1368
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1369
+ },
1370
+ "/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl",
1371
+ ],
1372
+ ],
1373
+ },
1374
+ "ResponseMappingTemplate": "$util.toJson({})",
1375
+ },
1376
+ "Type": "AWS::AppSync::FunctionConfiguration",
1377
+ },
1378
+ "SubscriptiononUpdatePostResolver": Object {
1379
+ "Properties": Object {
1380
+ "ApiId": Object {
1381
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1382
+ },
1383
+ "FieldName": "onUpdatePost",
1384
+ "Kind": "PIPELINE",
1385
+ "PipelineConfig": Object {
1386
+ "Functions": Array [
1387
+ Object {
1388
+ "Fn::GetAtt": Array [
1389
+ "SubscriptiononUpdatePostpostAuth0FunctionSubscriptiononUpdatePostpostAuth0FunctionAppSyncFunction3D79B6CB",
1390
+ "FunctionId",
1391
+ ],
1392
+ },
1393
+ Object {
1394
+ "Fn::GetAtt": Array [
1395
+ "SubscriptionOnUpdatePostDataResolverFnSubscriptionOnUpdatePostDataResolverFnAppSyncFunction325AAFC9",
1396
+ "FunctionId",
1397
+ ],
1398
+ },
1399
+ ],
1400
+ },
1401
+ "RequestMappingTemplate": "mockTemplate",
1402
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
1403
+ "TypeName": "Subscription",
1404
+ },
1405
+ "Type": "AWS::AppSync::Resolver",
1406
+ },
1407
+ "SubscriptiononUpdatePostpostAuth0FunctionSubscriptiononUpdatePostpostAuth0FunctionAppSyncFunction3D79B6CB": Object {
1408
+ "Properties": Object {
1409
+ "ApiId": Object {
1410
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1411
+ },
1412
+ "DataSourceName": Object {
1413
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
1414
+ },
1415
+ "FunctionVersion": "2018-05-29",
1416
+ "Name": "SubscriptiononUpdatePostpostAuth0Function",
1417
+ "RequestMappingTemplateS3Location": Object {
1418
+ "Fn::Join": Array [
1419
+ "",
1420
+ Array [
1421
+ "s3://",
1422
+ Object {
1423
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
1424
+ },
1425
+ "/",
1426
+ Object {
1427
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
1428
+ },
1429
+ "/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl",
1430
+ ],
1431
+ ],
1432
+ },
1433
+ "ResponseMappingTemplate": "$util.toJson({})",
1434
+ },
1435
+ "Type": "AWS::AppSync::FunctionConfiguration",
1436
+ },
1437
+ "UpdatePostResolver": Object {
1438
+ "Properties": Object {
1439
+ "ApiId": Object {
1440
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1441
+ },
1442
+ "FieldName": "updatePost",
1443
+ "Kind": "PIPELINE",
1444
+ "PipelineConfig": Object {
1445
+ "Functions": Array [
1446
+ Object {
1447
+ "Fn::GetAtt": Array [
1448
+ "MutationupdatePostinit0FunctionMutationupdatePostinit0FunctionAppSyncFunctionBAC7D532",
1449
+ "FunctionId",
1450
+ ],
1451
+ },
1452
+ Object {
1453
+ "Fn::GetAtt": Array [
1454
+ "MutationupdatePostpostAuth0FunctionMutationupdatePostpostAuth0FunctionAppSyncFunctionB977D8DD",
1455
+ "FunctionId",
1456
+ ],
1457
+ },
1458
+ Object {
1459
+ "Fn::GetAtt": Array [
1460
+ "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D",
1461
+ "FunctionId",
1462
+ ],
1463
+ },
1464
+ ],
1465
+ },
1466
+ "RequestMappingTemplate": Object {
1467
+ "Fn::Join": Array [
1468
+ "",
1469
+ Array [
1470
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Mutation\\"))
1471
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"updatePost\\"))
1472
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
1473
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
1474
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
1475
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
1476
+ Object {
1477
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1478
+ },
1479
+ "\\"))
1480
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
1481
+ Object {
1482
+ "Ref": "PostTable",
1483
+ },
1484
+ "\\"))
1485
+ $util.toJson({})",
1486
+ ],
1487
+ ],
1488
+ },
1489
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
1490
+ "TypeName": "Mutation",
1491
+ },
1492
+ "Type": "AWS::AppSync::Resolver",
1493
+ },
1494
+ },
1495
+ }
1496
+ `;
1497
+
1498
+ exports[`ModelTransformer: should override model objects when given override config 2`] = `
1499
+ Object {
1500
+ "Conditions": Object {
1501
+ "HasEnvironmentParameter": Object {
1502
+ "Fn::Not": Array [
1503
+ Object {
1504
+ "Fn::Equals": Array [
1505
+ Object {
1506
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
1507
+ },
1508
+ "NONE",
1509
+ ],
1510
+ },
1511
+ ],
1512
+ },
1513
+ "ShouldUsePayPerRequestBilling": Object {
1514
+ "Fn::Equals": Array [
1515
+ Object {
1516
+ "Ref": "DynamoDBBillingMode",
1517
+ },
1518
+ "PAY_PER_REQUEST",
1519
+ ],
1520
+ },
1521
+ "ShouldUsePointInTimeRecovery": Object {
1522
+ "Fn::Equals": Array [
1523
+ Object {
1524
+ "Ref": "DynamoDBEnablePointInTimeRecovery",
1525
+ },
1526
+ "true",
1527
+ ],
1528
+ },
1529
+ "ShouldUseServerSideEncryption": Object {
1530
+ "Fn::Equals": Array [
1531
+ Object {
1532
+ "Ref": "DynamoDBEnableServerSideEncryption",
1533
+ },
1534
+ "true",
1535
+ ],
1536
+ },
1537
+ },
1538
+ "Outputs": Object {
1539
+ "GetAttCommentDataSourceName": Object {
1540
+ "Description": "Your model DataSource name.",
1541
+ "Export": Object {
1542
+ "Name": Object {
1543
+ "Fn::Join": Array [
1544
+ ":",
1545
+ Array [
1546
+ Object {
1547
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1548
+ },
1549
+ "GetAtt:CommentDataSource:Name",
1550
+ ],
1551
+ ],
1552
+ },
1553
+ },
1554
+ "Value": Object {
1555
+ "Fn::GetAtt": Array [
1556
+ "CommentDataSource",
1557
+ "Name",
1558
+ ],
1559
+ },
1560
+ },
1561
+ "GetAttCommentTableName": Object {
1562
+ "Description": "Your DynamoDB table name.",
1563
+ "Export": Object {
1564
+ "Name": Object {
1565
+ "Fn::Join": Array [
1566
+ ":",
1567
+ Array [
1568
+ Object {
1569
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1570
+ },
1571
+ "GetAtt:CommentTable:Name",
1572
+ ],
1573
+ ],
1574
+ },
1575
+ },
1576
+ "Value": Object {
1577
+ "Ref": "CommentTable",
1578
+ },
1579
+ },
1580
+ "GetAttCommentTableStreamArn": Object {
1581
+ "Description": "Your DynamoDB table StreamArn.",
1582
+ "Export": Object {
1583
+ "Name": Object {
1584
+ "Fn::Join": Array [
1585
+ ":",
1586
+ Array [
1587
+ Object {
1588
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1589
+ },
1590
+ "GetAtt:CommentTable:StreamArn",
1591
+ ],
1592
+ ],
1593
+ },
1594
+ },
1595
+ "Value": Object {
1596
+ "Fn::GetAtt": Array [
1597
+ "CommentTable",
1598
+ "StreamArn",
1599
+ ],
1600
+ },
1601
+ },
1602
+ },
1603
+ "Parameters": Object {
1604
+ "DynamoDBBillingMode": Object {
1605
+ "AllowedValues": Array [
1606
+ "PAY_PER_REQUEST",
1607
+ "PROVISIONED",
1608
+ ],
1609
+ "Default": "PAY_PER_REQUEST",
1610
+ "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes.",
1611
+ "Type": "String",
1612
+ },
1613
+ "DynamoDBEnablePointInTimeRecovery": Object {
1614
+ "AllowedValues": Array [
1615
+ "true",
1616
+ "false",
1617
+ ],
1618
+ "Default": "false",
1619
+ "Description": "Whether to enable Point in Time Recovery on the table.",
1620
+ "Type": "String",
1621
+ },
1622
+ "DynamoDBEnableServerSideEncryption": Object {
1623
+ "AllowedValues": Array [
1624
+ "true",
1625
+ "false",
1626
+ ],
1627
+ "Default": "true",
1628
+ "Description": "Enable server side encryption powered by KMS.",
1629
+ "Type": "String",
1630
+ },
1631
+ "DynamoDBModelTableReadIOPS": Object {
1632
+ "Default": 5,
1633
+ "Description": "The number of read IOPS the table should support.",
1634
+ "Type": "Number",
1635
+ },
1636
+ "DynamoDBModelTableWriteIOPS": Object {
1637
+ "Default": 5,
1638
+ "Description": "The number of write IOPS the table should support.",
1639
+ "Type": "Number",
1640
+ },
1641
+ "referencetotransformerrootstackGraphQLAPI20497F53ApiId": Object {
1642
+ "Type": "String",
1643
+ },
1644
+ "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": Object {
1645
+ "Type": "String",
1646
+ },
1647
+ "referencetotransformerrootstackS3DeploymentBucket7592718ARef": Object {
1648
+ "Type": "String",
1649
+ },
1650
+ "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": Object {
1651
+ "Type": "String",
1652
+ },
1653
+ "referencetotransformerrootstackenv10C5A902Ref": Object {
1654
+ "Type": "String",
1655
+ },
1656
+ },
1657
+ "Resources": Object {
1658
+ "CommentDataSource": Object {
1659
+ "DependsOn": Array [
1660
+ "CommentIAMRoleD5EC5F51",
1661
+ ],
1662
+ "Properties": Object {
1663
+ "ApiId": Object {
1664
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1665
+ },
1666
+ "DynamoDBConfig": Object {
1667
+ "AwsRegion": Object {
1668
+ "Ref": "AWS::Region",
1669
+ },
1670
+ "TableName": Object {
1671
+ "Ref": "CommentTable",
1672
+ },
1673
+ },
1674
+ "Name": "CommentTable",
1675
+ "ServiceRoleArn": Object {
1676
+ "Fn::GetAtt": Array [
1677
+ "CommentIAMRoleD5EC5F51",
1678
+ "Arn",
1679
+ ],
1680
+ },
1681
+ "Type": "AMAZON_DYNAMODB",
1682
+ },
1683
+ "Type": "AWS::AppSync::DataSource",
1684
+ },
1685
+ "CommentIAMRoleD5EC5F51": Object {
1686
+ "Properties": Object {
1687
+ "AssumeRolePolicyDocument": Object {
1688
+ "Statement": Array [
1689
+ Object {
1690
+ "Action": "sts:AssumeRole",
1691
+ "Effect": "Allow",
1692
+ "Principal": Object {
1693
+ "Service": "appsync.amazonaws.com",
1694
+ },
1695
+ },
1696
+ ],
1697
+ "Version": "2012-10-17",
1698
+ },
1699
+ "RoleName": Object {
1700
+ "Fn::Join": Array [
1701
+ "",
1702
+ Array [
1703
+ "CommentIAMRole20388d-",
1704
+ Object {
1705
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1706
+ },
1707
+ "-",
1708
+ Object {
1709
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
1710
+ },
1711
+ ],
1712
+ ],
1713
+ },
1714
+ },
1715
+ "Type": "AWS::IAM::Role",
1716
+ },
1717
+ "CommentIAMRoleDefaultPolicyA8D6F6B5": Object {
1718
+ "Properties": Object {
1719
+ "PolicyDocument": Object {
1720
+ "Statement": Array [
1721
+ Object {
1722
+ "Action": Array [
1723
+ "dynamodb:BatchGetItem",
1724
+ "dynamodb:GetRecords",
1725
+ "dynamodb:GetShardIterator",
1726
+ "dynamodb:Query",
1727
+ "dynamodb:GetItem",
1728
+ "dynamodb:Scan",
1729
+ "dynamodb:ConditionCheckItem",
1730
+ "dynamodb:BatchWriteItem",
1731
+ "dynamodb:PutItem",
1732
+ "dynamodb:UpdateItem",
1733
+ "dynamodb:DeleteItem",
1734
+ ],
1735
+ "Effect": "Allow",
1736
+ "Resource": Array [
1737
+ Object {
1738
+ "Fn::GetAtt": Array [
1739
+ "CommentTable",
1740
+ "Arn",
1741
+ ],
1742
+ },
1743
+ Object {
1744
+ "Ref": "AWS::NoValue",
1745
+ },
1746
+ ],
1747
+ },
1748
+ ],
1749
+ "Version": "2012-10-17",
1750
+ },
1751
+ "PolicyName": "CommentIAMRoleDefaultPolicyA8D6F6B5",
1752
+ "Roles": Array [
1753
+ Object {
1754
+ "Ref": "CommentIAMRoleD5EC5F51",
1755
+ },
1756
+ ],
1757
+ },
1758
+ "Type": "AWS::IAM::Policy",
1759
+ },
1760
+ "CommentTable": Object {
1761
+ "DeletionPolicy": "Delete",
1762
+ "Properties": Object {
1763
+ "AttributeDefinitions": Array [
1764
+ Object {
1765
+ "AttributeName": "id",
1766
+ "AttributeType": "S",
1767
+ },
1768
+ ],
1769
+ "BillingMode": "PROVISIONED",
1770
+ "KeySchema": Array [
1771
+ Object {
1772
+ "AttributeName": "id",
1773
+ "KeyType": "HASH",
1774
+ },
1775
+ ],
1776
+ "PointInTimeRecoverySpecification": Object {
1777
+ "Fn::If": Array [
1778
+ "ShouldUsePointInTimeRecovery",
1779
+ Object {
1780
+ "PointInTimeRecoveryEnabled": true,
1781
+ },
1782
+ Object {
1783
+ "Ref": "AWS::NoValue",
1784
+ },
1785
+ ],
1786
+ },
1787
+ "ProvisionedThroughput": Object {
1788
+ "Fn::If": Array [
1789
+ "ShouldUsePayPerRequestBilling",
1790
+ Object {
1791
+ "Ref": "AWS::NoValue",
1792
+ },
1793
+ Object {
1794
+ "ReadCapacityUnits": Object {
1795
+ "Ref": "DynamoDBModelTableReadIOPS",
1796
+ },
1797
+ "WriteCapacityUnits": Object {
1798
+ "Ref": "DynamoDBModelTableWriteIOPS",
1799
+ },
1800
+ },
1801
+ ],
1802
+ },
1803
+ "SSESpecification": Object {
1804
+ "SSEEnabled": Object {
1805
+ "Fn::If": Array [
1806
+ "ShouldUseServerSideEncryption",
1807
+ true,
1808
+ false,
1809
+ ],
1810
+ },
1811
+ },
1812
+ "StreamSpecification": Object {
1813
+ "StreamViewType": "NEW_AND_OLD_IMAGES",
1814
+ },
1815
+ "TableName": Object {
1816
+ "Fn::Join": Array [
1817
+ "",
1818
+ Array [
1819
+ "Comment-",
1820
+ Object {
1821
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1822
+ },
1823
+ "-",
1824
+ Object {
1825
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
1826
+ },
1827
+ ],
1828
+ ],
1829
+ },
1830
+ },
1831
+ "Type": "AWS::DynamoDB::Table",
1832
+ "UpdateReplacePolicy": "Delete",
1833
+ },
1834
+ "CreateCommentResolver": Object {
1835
+ "Properties": Object {
1836
+ "ApiId": Object {
1837
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1838
+ },
1839
+ "FieldName": "createComment",
1840
+ "Kind": "PIPELINE",
1841
+ "PipelineConfig": Object {
1842
+ "Functions": Array [
1843
+ Object {
1844
+ "Fn::GetAtt": Array [
1845
+ "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC",
1846
+ "FunctionId",
1847
+ ],
1848
+ },
1849
+ Object {
1850
+ "Fn::GetAtt": Array [
1851
+ "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF",
1852
+ "FunctionId",
1853
+ ],
1854
+ },
1855
+ Object {
1856
+ "Fn::GetAtt": Array [
1857
+ "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0",
1858
+ "FunctionId",
1859
+ ],
1860
+ },
1861
+ ],
1862
+ },
1863
+ "RequestMappingTemplate": Object {
1864
+ "Fn::Join": Array [
1865
+ "",
1866
+ Array [
1867
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Mutation\\"))
1868
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"createComment\\"))
1869
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
1870
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
1871
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
1872
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
1873
+ Object {
1874
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1875
+ },
1876
+ "\\"))
1877
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
1878
+ Object {
1879
+ "Ref": "CommentTable",
1880
+ },
1881
+ "\\"))
1882
+ $util.toJson({})",
1883
+ ],
1884
+ ],
1885
+ },
1886
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
1887
+ "TypeName": "Mutation",
1888
+ },
1889
+ "Type": "AWS::AppSync::Resolver",
1890
+ },
1891
+ "DeleteCommentResolver": Object {
1892
+ "Properties": Object {
1893
+ "ApiId": Object {
1894
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1895
+ },
1896
+ "FieldName": "deleteComment",
1897
+ "Kind": "PIPELINE",
1898
+ "PipelineConfig": Object {
1899
+ "Functions": Array [
1900
+ Object {
1901
+ "Fn::GetAtt": Array [
1902
+ "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E",
1903
+ "FunctionId",
1904
+ ],
1905
+ },
1906
+ Object {
1907
+ "Fn::GetAtt": Array [
1908
+ "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB",
1909
+ "FunctionId",
1910
+ ],
1911
+ },
1912
+ ],
1913
+ },
1914
+ "RequestMappingTemplate": Object {
1915
+ "Fn::Join": Array [
1916
+ "",
1917
+ Array [
1918
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Mutation\\"))
1919
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"deleteComment\\"))
1920
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
1921
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
1922
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
1923
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
1924
+ Object {
1925
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1926
+ },
1927
+ "\\"))
1928
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
1929
+ Object {
1930
+ "Ref": "CommentTable",
1931
+ },
1932
+ "\\"))
1933
+ $util.toJson({})",
1934
+ ],
1935
+ ],
1936
+ },
1937
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
1938
+ "TypeName": "Mutation",
1939
+ },
1940
+ "Type": "AWS::AppSync::Resolver",
1941
+ },
1942
+ "DynamoDBAccess71ABE5AE": Object {
1943
+ "Properties": Object {
1944
+ "PolicyDocument": Object {
1945
+ "Statement": Array [
1946
+ Object {
1947
+ "Action": Array [
1948
+ "dynamodb:BatchGetItem",
1949
+ "dynamodb:BatchWriteItem",
1950
+ "dynamodb:PutItem",
1951
+ "dynamodb:DeleteItem",
1952
+ "dynamodb:GetItem",
1953
+ "dynamodb:Scan",
1954
+ "dynamodb:Query",
1955
+ "dynamodb:UpdateItem",
1956
+ ],
1957
+ "Effect": "Allow",
1958
+ "Resource": Array [
1959
+ Object {
1960
+ "Fn::Sub": Array [
1961
+ "arn:aws:dynamodb:\${AWS::Region}:\${AWS::AccountId}:table/\${tablename}",
1962
+ Object {
1963
+ "tablename": Object {
1964
+ "Fn::Join": Array [
1965
+ "",
1966
+ Array [
1967
+ "Comment-",
1968
+ Object {
1969
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1970
+ },
1971
+ "-",
1972
+ Object {
1973
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
1974
+ },
1975
+ ],
1976
+ ],
1977
+ },
1978
+ },
1979
+ ],
1980
+ },
1981
+ Object {
1982
+ "Fn::Sub": Array [
1983
+ "arn:aws:dynamodb:\${AWS::Region}:\${AWS::AccountId}:table/\${tablename}/*",
1984
+ Object {
1985
+ "tablename": Object {
1986
+ "Fn::Join": Array [
1987
+ "",
1988
+ Array [
1989
+ "Comment-",
1990
+ Object {
1991
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
1992
+ },
1993
+ "-",
1994
+ Object {
1995
+ "Ref": "referencetotransformerrootstackenv10C5A902Ref",
1996
+ },
1997
+ ],
1998
+ ],
1999
+ },
2000
+ },
2001
+ ],
2002
+ },
2003
+ ],
2004
+ },
2005
+ ],
2006
+ "Version": "2012-10-17",
2007
+ },
2008
+ "PolicyName": "DynamoDBAccess71ABE5AE",
2009
+ "Roles": Array [
2010
+ Object {
2011
+ "Ref": "CommentIAMRoleD5EC5F51",
2012
+ },
2013
+ ],
2014
+ },
2015
+ "Type": "AWS::IAM::Policy",
2016
+ },
2017
+ "GetCommentResolver": Object {
2018
+ "Properties": Object {
2019
+ "ApiId": Object {
2020
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2021
+ },
2022
+ "FieldName": "getComment",
2023
+ "Kind": "PIPELINE",
2024
+ "PipelineConfig": Object {
2025
+ "Functions": Array [
2026
+ Object {
2027
+ "Fn::GetAtt": Array [
2028
+ "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71",
2029
+ "FunctionId",
2030
+ ],
2031
+ },
2032
+ Object {
2033
+ "Fn::GetAtt": Array [
2034
+ "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0",
2035
+ "FunctionId",
2036
+ ],
2037
+ },
2038
+ ],
2039
+ },
2040
+ "RequestMappingTemplate": Object {
2041
+ "Fn::Join": Array [
2042
+ "",
2043
+ Array [
2044
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Query\\"))
2045
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"getComment\\"))
2046
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
2047
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
2048
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
2049
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
2050
+ Object {
2051
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2052
+ },
2053
+ "\\"))
2054
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
2055
+ Object {
2056
+ "Ref": "CommentTable",
2057
+ },
2058
+ "\\"))
2059
+ $util.toJson({})",
2060
+ ],
2061
+ ],
2062
+ },
2063
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
2064
+ "TypeName": "Query",
2065
+ },
2066
+ "Type": "AWS::AppSync::Resolver",
2067
+ },
2068
+ "ListCommentResolver": Object {
2069
+ "Properties": Object {
2070
+ "ApiId": Object {
2071
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2072
+ },
2073
+ "FieldName": "listComments",
2074
+ "Kind": "PIPELINE",
2075
+ "PipelineConfig": Object {
2076
+ "Functions": Array [
2077
+ Object {
2078
+ "Fn::GetAtt": Array [
2079
+ "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5",
2080
+ "FunctionId",
2081
+ ],
2082
+ },
2083
+ Object {
2084
+ "Fn::GetAtt": Array [
2085
+ "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91",
2086
+ "FunctionId",
2087
+ ],
2088
+ },
2089
+ ],
2090
+ },
2091
+ "RequestMappingTemplate": Object {
2092
+ "Fn::Join": Array [
2093
+ "",
2094
+ Array [
2095
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Query\\"))
2096
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"listComments\\"))
2097
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
2098
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
2099
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
2100
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
2101
+ Object {
2102
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2103
+ },
2104
+ "\\"))
2105
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
2106
+ Object {
2107
+ "Ref": "CommentTable",
2108
+ },
2109
+ "\\"))
2110
+ $util.toJson({})",
2111
+ ],
2112
+ ],
2113
+ },
2114
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
2115
+ "TypeName": "Query",
2116
+ },
2117
+ "Type": "AWS::AppSync::Resolver",
2118
+ },
2119
+ "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": Object {
2120
+ "DependsOn": Array [
2121
+ "CommentDataSource",
2122
+ ],
2123
+ "Properties": Object {
2124
+ "ApiId": Object {
2125
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2126
+ },
2127
+ "DataSourceName": Object {
2128
+ "Fn::GetAtt": Array [
2129
+ "CommentDataSource",
2130
+ "Name",
2131
+ ],
2132
+ },
2133
+ "FunctionVersion": "2018-05-29",
2134
+ "Name": "MutationCreateCommentDataResolverFn",
2135
+ "RequestMappingTemplateS3Location": Object {
2136
+ "Fn::Join": Array [
2137
+ "",
2138
+ Array [
2139
+ "s3://",
2140
+ Object {
2141
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2142
+ },
2143
+ "/",
2144
+ Object {
2145
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2146
+ },
2147
+ "/resolvers/Mutation.createComment.req.vtl",
2148
+ ],
2149
+ ],
2150
+ },
2151
+ "ResponseMappingTemplateS3Location": Object {
2152
+ "Fn::Join": Array [
2153
+ "",
2154
+ Array [
2155
+ "s3://",
2156
+ Object {
2157
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2158
+ },
2159
+ "/",
2160
+ Object {
2161
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2162
+ },
2163
+ "/resolvers/Mutation.createComment.res.vtl",
2164
+ ],
2165
+ ],
2166
+ },
2167
+ },
2168
+ "Type": "AWS::AppSync::FunctionConfiguration",
2169
+ },
2170
+ "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": Object {
2171
+ "DependsOn": Array [
2172
+ "CommentDataSource",
2173
+ ],
2174
+ "Properties": Object {
2175
+ "ApiId": Object {
2176
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2177
+ },
2178
+ "DataSourceName": Object {
2179
+ "Fn::GetAtt": Array [
2180
+ "CommentDataSource",
2181
+ "Name",
2182
+ ],
2183
+ },
2184
+ "FunctionVersion": "2018-05-29",
2185
+ "Name": "MutationDeleteCommentDataResolverFn",
2186
+ "RequestMappingTemplateS3Location": Object {
2187
+ "Fn::Join": Array [
2188
+ "",
2189
+ Array [
2190
+ "s3://",
2191
+ Object {
2192
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2193
+ },
2194
+ "/",
2195
+ Object {
2196
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2197
+ },
2198
+ "/resolvers/Mutation.deleteComment.req.vtl",
2199
+ ],
2200
+ ],
2201
+ },
2202
+ "ResponseMappingTemplateS3Location": Object {
2203
+ "Fn::Join": Array [
2204
+ "",
2205
+ Array [
2206
+ "s3://",
2207
+ Object {
2208
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2209
+ },
2210
+ "/",
2211
+ Object {
2212
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2213
+ },
2214
+ "/resolvers/Mutation.deleteComment.res.vtl",
2215
+ ],
2216
+ ],
2217
+ },
2218
+ },
2219
+ "Type": "AWS::AppSync::FunctionConfiguration",
2220
+ },
2221
+ "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": Object {
2222
+ "DependsOn": Array [
2223
+ "CommentDataSource",
2224
+ ],
2225
+ "Properties": Object {
2226
+ "ApiId": Object {
2227
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2228
+ },
2229
+ "DataSourceName": Object {
2230
+ "Fn::GetAtt": Array [
2231
+ "CommentDataSource",
2232
+ "Name",
2233
+ ],
2234
+ },
2235
+ "FunctionVersion": "2018-05-29",
2236
+ "Name": "MutationUpdateCommentDataResolverFn",
2237
+ "RequestMappingTemplateS3Location": Object {
2238
+ "Fn::Join": Array [
2239
+ "",
2240
+ Array [
2241
+ "s3://",
2242
+ Object {
2243
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2244
+ },
2245
+ "/",
2246
+ Object {
2247
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2248
+ },
2249
+ "/resolvers/Mutation.updateComment.req.vtl",
2250
+ ],
2251
+ ],
2252
+ },
2253
+ "ResponseMappingTemplateS3Location": Object {
2254
+ "Fn::Join": Array [
2255
+ "",
2256
+ Array [
2257
+ "s3://",
2258
+ Object {
2259
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2260
+ },
2261
+ "/",
2262
+ Object {
2263
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2264
+ },
2265
+ "/resolvers/Mutation.updateComment.res.vtl",
2266
+ ],
2267
+ ],
2268
+ },
2269
+ },
2270
+ "Type": "AWS::AppSync::FunctionConfiguration",
2271
+ },
2272
+ "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC": Object {
2273
+ "Properties": Object {
2274
+ "ApiId": Object {
2275
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2276
+ },
2277
+ "DataSourceName": Object {
2278
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2279
+ },
2280
+ "FunctionVersion": "2018-05-29",
2281
+ "Name": "MutationcreateCommentinit0Function",
2282
+ "RequestMappingTemplateS3Location": Object {
2283
+ "Fn::Join": Array [
2284
+ "",
2285
+ Array [
2286
+ "s3://",
2287
+ Object {
2288
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2289
+ },
2290
+ "/",
2291
+ Object {
2292
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2293
+ },
2294
+ "/resolvers/Mutation.createComment.init.1.req.vtl",
2295
+ ],
2296
+ ],
2297
+ },
2298
+ "ResponseMappingTemplate": "$util.toJson({})",
2299
+ },
2300
+ "Type": "AWS::AppSync::FunctionConfiguration",
2301
+ },
2302
+ "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF": Object {
2303
+ "Properties": Object {
2304
+ "ApiId": Object {
2305
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2306
+ },
2307
+ "DataSourceName": Object {
2308
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2309
+ },
2310
+ "FunctionVersion": "2018-05-29",
2311
+ "Name": "MutationcreateCommentpostAuth0Function",
2312
+ "RequestMappingTemplateS3Location": Object {
2313
+ "Fn::Join": Array [
2314
+ "",
2315
+ Array [
2316
+ "s3://",
2317
+ Object {
2318
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2319
+ },
2320
+ "/",
2321
+ Object {
2322
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2323
+ },
2324
+ "/resolvers/Mutation.createComment.postAuth.1.req.vtl",
2325
+ ],
2326
+ ],
2327
+ },
2328
+ "ResponseMappingTemplate": "$util.toJson({})",
2329
+ },
2330
+ "Type": "AWS::AppSync::FunctionConfiguration",
2331
+ },
2332
+ "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E": Object {
2333
+ "Properties": Object {
2334
+ "ApiId": Object {
2335
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2336
+ },
2337
+ "DataSourceName": Object {
2338
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2339
+ },
2340
+ "FunctionVersion": "2018-05-29",
2341
+ "Name": "MutationdeleteCommentpostAuth0Function",
2342
+ "RequestMappingTemplateS3Location": Object {
2343
+ "Fn::Join": Array [
2344
+ "",
2345
+ Array [
2346
+ "s3://",
2347
+ Object {
2348
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2349
+ },
2350
+ "/",
2351
+ Object {
2352
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2353
+ },
2354
+ "/resolvers/Mutation.deleteComment.postAuth.1.req.vtl",
2355
+ ],
2356
+ ],
2357
+ },
2358
+ "ResponseMappingTemplate": "$util.toJson({})",
2359
+ },
2360
+ "Type": "AWS::AppSync::FunctionConfiguration",
2361
+ },
2362
+ "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD": Object {
2363
+ "Properties": Object {
2364
+ "ApiId": Object {
2365
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2366
+ },
2367
+ "DataSourceName": Object {
2368
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2369
+ },
2370
+ "FunctionVersion": "2018-05-29",
2371
+ "Name": "MutationupdateCommentinit0Function",
2372
+ "RequestMappingTemplateS3Location": Object {
2373
+ "Fn::Join": Array [
2374
+ "",
2375
+ Array [
2376
+ "s3://",
2377
+ Object {
2378
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2379
+ },
2380
+ "/",
2381
+ Object {
2382
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2383
+ },
2384
+ "/resolvers/Mutation.updateComment.init.1.req.vtl",
2385
+ ],
2386
+ ],
2387
+ },
2388
+ "ResponseMappingTemplate": "$util.toJson({})",
2389
+ },
2390
+ "Type": "AWS::AppSync::FunctionConfiguration",
2391
+ },
2392
+ "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2": Object {
2393
+ "Properties": Object {
2394
+ "ApiId": Object {
2395
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2396
+ },
2397
+ "DataSourceName": Object {
2398
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2399
+ },
2400
+ "FunctionVersion": "2018-05-29",
2401
+ "Name": "MutationupdateCommentpostAuth0Function",
2402
+ "RequestMappingTemplateS3Location": Object {
2403
+ "Fn::Join": Array [
2404
+ "",
2405
+ Array [
2406
+ "s3://",
2407
+ Object {
2408
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2409
+ },
2410
+ "/",
2411
+ Object {
2412
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2413
+ },
2414
+ "/resolvers/Mutation.updateComment.postAuth.1.req.vtl",
2415
+ ],
2416
+ ],
2417
+ },
2418
+ "ResponseMappingTemplate": "$util.toJson({})",
2419
+ },
2420
+ "Type": "AWS::AppSync::FunctionConfiguration",
2421
+ },
2422
+ "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": Object {
2423
+ "DependsOn": Array [
2424
+ "CommentDataSource",
2425
+ ],
2426
+ "Properties": Object {
2427
+ "ApiId": Object {
2428
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2429
+ },
2430
+ "DataSourceName": Object {
2431
+ "Fn::GetAtt": Array [
2432
+ "CommentDataSource",
2433
+ "Name",
2434
+ ],
2435
+ },
2436
+ "FunctionVersion": "2018-05-29",
2437
+ "Name": "QueryGetCommentDataResolverFn",
2438
+ "RequestMappingTemplateS3Location": Object {
2439
+ "Fn::Join": Array [
2440
+ "",
2441
+ Array [
2442
+ "s3://",
2443
+ Object {
2444
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2445
+ },
2446
+ "/",
2447
+ Object {
2448
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2449
+ },
2450
+ "/resolvers/Query.getComment.req.vtl",
2451
+ ],
2452
+ ],
2453
+ },
2454
+ "ResponseMappingTemplateS3Location": Object {
2455
+ "Fn::Join": Array [
2456
+ "",
2457
+ Array [
2458
+ "s3://",
2459
+ Object {
2460
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2461
+ },
2462
+ "/",
2463
+ Object {
2464
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2465
+ },
2466
+ "/resolvers/Query.getComment.res.vtl",
2467
+ ],
2468
+ ],
2469
+ },
2470
+ },
2471
+ "Type": "AWS::AppSync::FunctionConfiguration",
2472
+ },
2473
+ "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": Object {
2474
+ "DependsOn": Array [
2475
+ "CommentDataSource",
2476
+ ],
2477
+ "Properties": Object {
2478
+ "ApiId": Object {
2479
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2480
+ },
2481
+ "DataSourceName": Object {
2482
+ "Fn::GetAtt": Array [
2483
+ "CommentDataSource",
2484
+ "Name",
2485
+ ],
2486
+ },
2487
+ "FunctionVersion": "2018-05-29",
2488
+ "Name": "QueryListCommentsDataResolverFn",
2489
+ "RequestMappingTemplateS3Location": Object {
2490
+ "Fn::Join": Array [
2491
+ "",
2492
+ Array [
2493
+ "s3://",
2494
+ Object {
2495
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2496
+ },
2497
+ "/",
2498
+ Object {
2499
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2500
+ },
2501
+ "/resolvers/Query.listComments.req.vtl",
2502
+ ],
2503
+ ],
2504
+ },
2505
+ "ResponseMappingTemplateS3Location": Object {
2506
+ "Fn::Join": Array [
2507
+ "",
2508
+ Array [
2509
+ "s3://",
2510
+ Object {
2511
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2512
+ },
2513
+ "/",
2514
+ Object {
2515
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2516
+ },
2517
+ "/resolvers/Query.listComments.res.vtl",
2518
+ ],
2519
+ ],
2520
+ },
2521
+ },
2522
+ "Type": "AWS::AppSync::FunctionConfiguration",
2523
+ },
2524
+ "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71": Object {
2525
+ "Properties": Object {
2526
+ "ApiId": Object {
2527
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2528
+ },
2529
+ "DataSourceName": Object {
2530
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2531
+ },
2532
+ "FunctionVersion": "2018-05-29",
2533
+ "Name": "QuerygetCommentpostAuth0Function",
2534
+ "RequestMappingTemplateS3Location": Object {
2535
+ "Fn::Join": Array [
2536
+ "",
2537
+ Array [
2538
+ "s3://",
2539
+ Object {
2540
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2541
+ },
2542
+ "/",
2543
+ Object {
2544
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2545
+ },
2546
+ "/resolvers/Query.getComment.postAuth.1.req.vtl",
2547
+ ],
2548
+ ],
2549
+ },
2550
+ "ResponseMappingTemplate": "$util.toJson({})",
2551
+ },
2552
+ "Type": "AWS::AppSync::FunctionConfiguration",
2553
+ },
2554
+ "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5": Object {
2555
+ "Properties": Object {
2556
+ "ApiId": Object {
2557
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2558
+ },
2559
+ "DataSourceName": Object {
2560
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2561
+ },
2562
+ "FunctionVersion": "2018-05-29",
2563
+ "Name": "QuerylistCommentspostAuth0Function",
2564
+ "RequestMappingTemplateS3Location": Object {
2565
+ "Fn::Join": Array [
2566
+ "",
2567
+ Array [
2568
+ "s3://",
2569
+ Object {
2570
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2571
+ },
2572
+ "/",
2573
+ Object {
2574
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2575
+ },
2576
+ "/resolvers/Query.listComments.postAuth.1.req.vtl",
2577
+ ],
2578
+ ],
2579
+ },
2580
+ "ResponseMappingTemplate": "$util.toJson({})",
2581
+ },
2582
+ "Type": "AWS::AppSync::FunctionConfiguration",
2583
+ },
2584
+ "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8": Object {
2585
+ "Properties": Object {
2586
+ "ApiId": Object {
2587
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2588
+ },
2589
+ "DataSourceName": Object {
2590
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2591
+ },
2592
+ "FunctionVersion": "2018-05-29",
2593
+ "Name": "SubscriptionOnCreateCommentDataResolverFn",
2594
+ "RequestMappingTemplateS3Location": Object {
2595
+ "Fn::Join": Array [
2596
+ "",
2597
+ Array [
2598
+ "s3://",
2599
+ Object {
2600
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2601
+ },
2602
+ "/",
2603
+ Object {
2604
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2605
+ },
2606
+ "/resolvers/Subscription.onCreateComment.req.vtl",
2607
+ ],
2608
+ ],
2609
+ },
2610
+ "ResponseMappingTemplateS3Location": Object {
2611
+ "Fn::Join": Array [
2612
+ "",
2613
+ Array [
2614
+ "s3://",
2615
+ Object {
2616
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2617
+ },
2618
+ "/",
2619
+ Object {
2620
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2621
+ },
2622
+ "/resolvers/Subscription.onCreateComment.res.vtl",
2623
+ ],
2624
+ ],
2625
+ },
2626
+ },
2627
+ "Type": "AWS::AppSync::FunctionConfiguration",
2628
+ },
2629
+ "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9": Object {
2630
+ "Properties": Object {
2631
+ "ApiId": Object {
2632
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2633
+ },
2634
+ "DataSourceName": Object {
2635
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2636
+ },
2637
+ "FunctionVersion": "2018-05-29",
2638
+ "Name": "SubscriptionOnDeleteCommentDataResolverFn",
2639
+ "RequestMappingTemplateS3Location": Object {
2640
+ "Fn::Join": Array [
2641
+ "",
2642
+ Array [
2643
+ "s3://",
2644
+ Object {
2645
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2646
+ },
2647
+ "/",
2648
+ Object {
2649
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2650
+ },
2651
+ "/resolvers/Subscription.onDeleteComment.req.vtl",
2652
+ ],
2653
+ ],
2654
+ },
2655
+ "ResponseMappingTemplateS3Location": Object {
2656
+ "Fn::Join": Array [
2657
+ "",
2658
+ Array [
2659
+ "s3://",
2660
+ Object {
2661
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2662
+ },
2663
+ "/",
2664
+ Object {
2665
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2666
+ },
2667
+ "/resolvers/Subscription.onDeleteComment.res.vtl",
2668
+ ],
2669
+ ],
2670
+ },
2671
+ },
2672
+ "Type": "AWS::AppSync::FunctionConfiguration",
2673
+ },
2674
+ "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F": Object {
2675
+ "Properties": Object {
2676
+ "ApiId": Object {
2677
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2678
+ },
2679
+ "DataSourceName": Object {
2680
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2681
+ },
2682
+ "FunctionVersion": "2018-05-29",
2683
+ "Name": "SubscriptionOnUpdateCommentDataResolverFn",
2684
+ "RequestMappingTemplateS3Location": Object {
2685
+ "Fn::Join": Array [
2686
+ "",
2687
+ Array [
2688
+ "s3://",
2689
+ Object {
2690
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2691
+ },
2692
+ "/",
2693
+ Object {
2694
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2695
+ },
2696
+ "/resolvers/Subscription.onUpdateComment.req.vtl",
2697
+ ],
2698
+ ],
2699
+ },
2700
+ "ResponseMappingTemplateS3Location": Object {
2701
+ "Fn::Join": Array [
2702
+ "",
2703
+ Array [
2704
+ "s3://",
2705
+ Object {
2706
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2707
+ },
2708
+ "/",
2709
+ Object {
2710
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2711
+ },
2712
+ "/resolvers/Subscription.onUpdateComment.res.vtl",
2713
+ ],
2714
+ ],
2715
+ },
2716
+ },
2717
+ "Type": "AWS::AppSync::FunctionConfiguration",
2718
+ },
2719
+ "SubscriptiononCreateCommentResolver": Object {
2720
+ "Properties": Object {
2721
+ "ApiId": Object {
2722
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2723
+ },
2724
+ "FieldName": "onCreateComment",
2725
+ "Kind": "PIPELINE",
2726
+ "PipelineConfig": Object {
2727
+ "Functions": Array [
2728
+ Object {
2729
+ "Fn::GetAtt": Array [
2730
+ "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D",
2731
+ "FunctionId",
2732
+ ],
2733
+ },
2734
+ Object {
2735
+ "Fn::GetAtt": Array [
2736
+ "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8",
2737
+ "FunctionId",
2738
+ ],
2739
+ },
2740
+ ],
2741
+ },
2742
+ "RequestMappingTemplate": Object {
2743
+ "Fn::Join": Array [
2744
+ "",
2745
+ Array [
2746
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Subscription\\"))
2747
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"onCreateComment\\"))
2748
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
2749
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
2750
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"NONE\\"))
2751
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
2752
+ Object {
2753
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2754
+ },
2755
+ "\\"))
2756
+
2757
+ $util.toJson({})",
2758
+ ],
2759
+ ],
2760
+ },
2761
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
2762
+ "TypeName": "Subscription",
2763
+ },
2764
+ "Type": "AWS::AppSync::Resolver",
2765
+ },
2766
+ "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D": Object {
2767
+ "Properties": Object {
2768
+ "ApiId": Object {
2769
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2770
+ },
2771
+ "DataSourceName": Object {
2772
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2773
+ },
2774
+ "FunctionVersion": "2018-05-29",
2775
+ "Name": "SubscriptiononCreateCommentpostAuth0Function",
2776
+ "RequestMappingTemplateS3Location": Object {
2777
+ "Fn::Join": Array [
2778
+ "",
2779
+ Array [
2780
+ "s3://",
2781
+ Object {
2782
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2783
+ },
2784
+ "/",
2785
+ Object {
2786
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2787
+ },
2788
+ "/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl",
2789
+ ],
2790
+ ],
2791
+ },
2792
+ "ResponseMappingTemplate": "$util.toJson({})",
2793
+ },
2794
+ "Type": "AWS::AppSync::FunctionConfiguration",
2795
+ },
2796
+ "SubscriptiononDeleteCommentResolver": Object {
2797
+ "Properties": Object {
2798
+ "ApiId": Object {
2799
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2800
+ },
2801
+ "FieldName": "onDeleteComment",
2802
+ "Kind": "PIPELINE",
2803
+ "PipelineConfig": Object {
2804
+ "Functions": Array [
2805
+ Object {
2806
+ "Fn::GetAtt": Array [
2807
+ "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D",
2808
+ "FunctionId",
2809
+ ],
2810
+ },
2811
+ Object {
2812
+ "Fn::GetAtt": Array [
2813
+ "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9",
2814
+ "FunctionId",
2815
+ ],
2816
+ },
2817
+ ],
2818
+ },
2819
+ "RequestMappingTemplate": Object {
2820
+ "Fn::Join": Array [
2821
+ "",
2822
+ Array [
2823
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Subscription\\"))
2824
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"onDeleteComment\\"))
2825
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
2826
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
2827
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"NONE\\"))
2828
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
2829
+ Object {
2830
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2831
+ },
2832
+ "\\"))
2833
+
2834
+ $util.toJson({})",
2835
+ ],
2836
+ ],
2837
+ },
2838
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
2839
+ "TypeName": "Subscription",
2840
+ },
2841
+ "Type": "AWS::AppSync::Resolver",
2842
+ },
2843
+ "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D": Object {
2844
+ "Properties": Object {
2845
+ "ApiId": Object {
2846
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2847
+ },
2848
+ "DataSourceName": Object {
2849
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2850
+ },
2851
+ "FunctionVersion": "2018-05-29",
2852
+ "Name": "SubscriptiononDeleteCommentpostAuth0Function",
2853
+ "RequestMappingTemplateS3Location": Object {
2854
+ "Fn::Join": Array [
2855
+ "",
2856
+ Array [
2857
+ "s3://",
2858
+ Object {
2859
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2860
+ },
2861
+ "/",
2862
+ Object {
2863
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2864
+ },
2865
+ "/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl",
2866
+ ],
2867
+ ],
2868
+ },
2869
+ "ResponseMappingTemplate": "$util.toJson({})",
2870
+ },
2871
+ "Type": "AWS::AppSync::FunctionConfiguration",
2872
+ },
2873
+ "SubscriptiononUpdateCommentResolver": Object {
2874
+ "Properties": Object {
2875
+ "ApiId": Object {
2876
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2877
+ },
2878
+ "FieldName": "onUpdateComment",
2879
+ "Kind": "PIPELINE",
2880
+ "PipelineConfig": Object {
2881
+ "Functions": Array [
2882
+ Object {
2883
+ "Fn::GetAtt": Array [
2884
+ "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814",
2885
+ "FunctionId",
2886
+ ],
2887
+ },
2888
+ Object {
2889
+ "Fn::GetAtt": Array [
2890
+ "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F",
2891
+ "FunctionId",
2892
+ ],
2893
+ },
2894
+ ],
2895
+ },
2896
+ "RequestMappingTemplate": Object {
2897
+ "Fn::Join": Array [
2898
+ "",
2899
+ Array [
2900
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Subscription\\"))
2901
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"onUpdateComment\\"))
2902
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
2903
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
2904
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"NONE\\"))
2905
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
2906
+ Object {
2907
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2908
+ },
2909
+ "\\"))
2910
+
2911
+ $util.toJson({})",
2912
+ ],
2913
+ ],
2914
+ },
2915
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
2916
+ "TypeName": "Subscription",
2917
+ },
2918
+ "Type": "AWS::AppSync::Resolver",
2919
+ },
2920
+ "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814": Object {
2921
+ "Properties": Object {
2922
+ "ApiId": Object {
2923
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2924
+ },
2925
+ "DataSourceName": Object {
2926
+ "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name",
2927
+ },
2928
+ "FunctionVersion": "2018-05-29",
2929
+ "Name": "SubscriptiononUpdateCommentpostAuth0Function",
2930
+ "RequestMappingTemplateS3Location": Object {
2931
+ "Fn::Join": Array [
2932
+ "",
2933
+ Array [
2934
+ "s3://",
2935
+ Object {
2936
+ "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef",
2937
+ },
2938
+ "/",
2939
+ Object {
2940
+ "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref",
2941
+ },
2942
+ "/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl",
2943
+ ],
2944
+ ],
2945
+ },
2946
+ "ResponseMappingTemplate": "$util.toJson({})",
2947
+ },
2948
+ "Type": "AWS::AppSync::FunctionConfiguration",
2949
+ },
2950
+ "UpdateCommentResolver": Object {
2951
+ "Properties": Object {
2952
+ "ApiId": Object {
2953
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2954
+ },
2955
+ "FieldName": "updateComment",
2956
+ "Kind": "PIPELINE",
2957
+ "PipelineConfig": Object {
2958
+ "Functions": Array [
2959
+ Object {
2960
+ "Fn::GetAtt": Array [
2961
+ "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD",
2962
+ "FunctionId",
2963
+ ],
2964
+ },
2965
+ Object {
2966
+ "Fn::GetAtt": Array [
2967
+ "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2",
2968
+ "FunctionId",
2969
+ ],
2970
+ },
2971
+ Object {
2972
+ "Fn::GetAtt": Array [
2973
+ "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5",
2974
+ "FunctionId",
2975
+ ],
2976
+ },
2977
+ ],
2978
+ },
2979
+ "RequestMappingTemplate": Object {
2980
+ "Fn::Join": Array [
2981
+ "",
2982
+ Array [
2983
+ "$util.qr($ctx.stash.put(\\"typeName\\", \\"Mutation\\"))
2984
+ $util.qr($ctx.stash.put(\\"fieldName\\", \\"updateComment\\"))
2985
+ $util.qr($ctx.stash.put(\\"conditions\\", []))
2986
+ $util.qr($ctx.stash.put(\\"metadata\\", {}))
2987
+ $util.qr($ctx.stash.metadata.put(\\"dataSourceType\\", \\"AMAZON_DYNAMODB\\"))
2988
+ $util.qr($ctx.stash.metadata.put(\\"apiId\\", \\"",
2989
+ Object {
2990
+ "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId",
2991
+ },
2992
+ "\\"))
2993
+ $util.qr($ctx.stash.put(\\"tableName\\", \\"",
2994
+ Object {
2995
+ "Ref": "CommentTable",
2996
+ },
2997
+ "\\"))
2998
+ $util.toJson({})",
2999
+ ],
3000
+ ],
3001
+ },
3002
+ "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)",
3003
+ "TypeName": "Mutation",
3004
+ },
3005
+ "Type": "AWS::AppSync::Resolver",
3006
+ },
3007
+ },
3008
+ }
3009
+ `;