@mbc-cqrs-serverless/cli 0.1.24-beta.0 → 0.1.26-beta.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.
@@ -0,0 +1,2392 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`snapshot test for InfraStack 1`] = `
4
+ {
5
+ "Outputs": {
6
+ "GraphQLAPIKey": {
7
+ "Value": {
8
+ "Fn::GetAtt": [
9
+ "realtimeDefaultApiKeyBD0EC5CB",
10
+ "ApiKey",
11
+ ],
12
+ },
13
+ },
14
+ "GraphQLAPIURL": {
15
+ "Value": {
16
+ "Fn::GetAtt": [
17
+ "realtime0CF38FF2",
18
+ "GraphQLUrl",
19
+ ],
20
+ },
21
+ },
22
+ "HttpApiUrl": {
23
+ "Value": {
24
+ "Fn::Join": [
25
+ "",
26
+ [
27
+ "https://",
28
+ {
29
+ "Ref": "mainapiC7DC6378",
30
+ },
31
+ ".execute-api.ap-northeast-1.",
32
+ {
33
+ "Ref": "AWS::URLSuffix",
34
+ },
35
+ "/",
36
+ ],
37
+ ],
38
+ },
39
+ },
40
+ "StateMachineArn": {
41
+ "Value": {
42
+ "Ref": "commandhandlerstatemachine937D91FB",
43
+ },
44
+ },
45
+ "UserPoolClientId": {
46
+ "Value": {
47
+ "Ref": "apigwclientE7D084A5",
48
+ },
49
+ },
50
+ "UserPoolId": {
51
+ "Value": "ap-northeast-1_xlQVMPxtx",
52
+ },
53
+ "httpdistributiondomain": {
54
+ "Value": {
55
+ "Fn::GetAtt": [
56
+ "httpdistribution87A15827",
57
+ "DomainName",
58
+ ],
59
+ },
60
+ },
61
+ },
62
+ "Parameters": {
63
+ "BootstrapVersion": {
64
+ "Default": "/cdk-bootstrap/hnb659fds/version",
65
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]",
66
+ "Type": "AWS::SSM::Parameter::Value<String>",
67
+ },
68
+ },
69
+ "Resources": {
70
+ "AWS679f53fac002430cb0da5b7982bd22872D164C4C": {
71
+ "DependsOn": [
72
+ "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2",
73
+ ],
74
+ "Properties": {
75
+ "Code": {
76
+ "S3Bucket": "cdk-hnb659fds-assets-101010101010-ap-northeast-1",
77
+ "S3Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.zip",
78
+ },
79
+ "Handler": "index.handler",
80
+ "Role": {
81
+ "Fn::GetAtt": [
82
+ "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2",
83
+ "Arn",
84
+ ],
85
+ },
86
+ "Runtime": "nodejs20.x",
87
+ "Tags": [
88
+ {
89
+ "Key": "env",
90
+ "Value": "dev",
91
+ },
92
+ {
93
+ "Key": "name",
94
+ "Value": "cdk-test-deploy",
95
+ },
96
+ ],
97
+ "Timeout": 120,
98
+ },
99
+ "Type": "AWS::Lambda::Function",
100
+ },
101
+ "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2": {
102
+ "Properties": {
103
+ "AssumeRolePolicyDocument": {
104
+ "Statement": [
105
+ {
106
+ "Action": "sts:AssumeRole",
107
+ "Effect": "Allow",
108
+ "Principal": {
109
+ "Service": "lambda.amazonaws.com",
110
+ },
111
+ },
112
+ ],
113
+ "Version": "2012-10-17",
114
+ },
115
+ "ManagedPolicyArns": [
116
+ {
117
+ "Fn::Join": [
118
+ "",
119
+ [
120
+ "arn:",
121
+ {
122
+ "Ref": "AWS::Partition",
123
+ },
124
+ ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
125
+ ],
126
+ ],
127
+ },
128
+ ],
129
+ "Tags": [
130
+ {
131
+ "Key": "env",
132
+ "Value": "dev",
133
+ },
134
+ {
135
+ "Key": "name",
136
+ "Value": "cdk-test-deploy",
137
+ },
138
+ ],
139
+ },
140
+ "Type": "AWS::IAM::Role",
141
+ },
142
+ "AppSyncCnameRecord408D9525": {
143
+ "Properties": {
144
+ "HostedZoneId": "Z083753814XLAICIY5OHU",
145
+ "Name": "dev-appsync-cdk.mbc-cqrs-serverless.mbc-net.com.",
146
+ "ResourceRecords": [
147
+ {
148
+ "Fn::GetAtt": [
149
+ "realtimeDomainName01674B94",
150
+ "AppSyncDomainName",
151
+ ],
152
+ },
153
+ ],
154
+ "TTL": "1800",
155
+ "Type": "CNAME",
156
+ },
157
+ "Type": "AWS::Route53::RecordSet",
158
+ },
159
+ "alarmsnsFB7BBC3B": {
160
+ "Properties": {
161
+ "Tags": [
162
+ {
163
+ "Key": "env",
164
+ "Value": "dev",
165
+ },
166
+ {
167
+ "Key": "name",
168
+ "Value": "cdk-test-deploy",
169
+ },
170
+ ],
171
+ "TopicName": "dev-cdk-test-deploy-alarm-sns",
172
+ },
173
+ "Type": "AWS::SNS::Topic",
174
+ },
175
+ "apigwclientE7D084A5": {
176
+ "Properties": {
177
+ "AllowedOAuthFlows": [
178
+ "implicit",
179
+ "code",
180
+ ],
181
+ "AllowedOAuthFlowsUserPoolClient": true,
182
+ "AllowedOAuthScopes": [
183
+ "profile",
184
+ "phone",
185
+ "email",
186
+ "openid",
187
+ "aws.cognito.signin.user.admin",
188
+ ],
189
+ "CallbackURLs": [
190
+ "https://example.com",
191
+ ],
192
+ "ExplicitAuthFlows": [
193
+ "ALLOW_USER_PASSWORD_AUTH",
194
+ "ALLOW_USER_SRP_AUTH",
195
+ "ALLOW_REFRESH_TOKEN_AUTH",
196
+ ],
197
+ "SupportedIdentityProviders": [
198
+ "COGNITO",
199
+ ],
200
+ "UserPoolId": "ap-northeast-1_xlQVMPxtx",
201
+ },
202
+ "Type": "AWS::Cognito::UserPoolClient",
203
+ },
204
+ "commandhandlersfnlog9072E963": {
205
+ "DeletionPolicy": "Delete",
206
+ "Properties": {
207
+ "LogGroupName": "/aws/vendedlogs/states/dev-cdk-test-deploy--command-handler-state-machine-Logs",
208
+ "RetentionInDays": 180,
209
+ "Tags": [
210
+ {
211
+ "Key": "env",
212
+ "Value": "dev",
213
+ },
214
+ {
215
+ "Key": "name",
216
+ "Value": "cdk-test-deploy",
217
+ },
218
+ ],
219
+ },
220
+ "Type": "AWS::Logs::LogGroup",
221
+ "UpdateReplacePolicy": "Delete",
222
+ },
223
+ "commandhandlerstatemachine937D91FB": {
224
+ "DeletionPolicy": "Delete",
225
+ "DependsOn": [
226
+ "commandhandlerstatemachineRoleDefaultPolicy347D4054",
227
+ "commandhandlerstatemachineRoleC4EA8D70",
228
+ ],
229
+ "Properties": {
230
+ "DefinitionString": {
231
+ "Fn::Join": [
232
+ "",
233
+ [
234
+ "{"StartAt":"check_version","States":{"check_version":{"Next":"check_version_result","Retry":[{"ErrorEquals":["Lambda.ClientExecutionTimeoutException","Lambda.ServiceException","Lambda.AWSLambdaException","Lambda.SdkClientException"],"IntervalSeconds":2,"MaxAttempts":6,"BackoffRate":2}],"Type":"Task","OutputPath":"$.Payload[0][0]","Resource":"arn:",
235
+ {
236
+ "Ref": "AWS::Partition",
237
+ },
238
+ ":states:::lambda:invoke","Parameters":{"FunctionName":"",
239
+ {
240
+ "Fn::GetAtt": [
241
+ "lambdaapi893CD94E",
242
+ "Arn",
243
+ ],
244
+ },
245
+ "","Payload":{"input.$":"$","context.$":"$$"}}},"check_version_result":{"Type":"Choice","Choices":[{"Variable":"$.result","NumericEquals":0,"Next":"history_copy"},{"Variable":"$.result","NumericEquals":1,"Next":"wait_prev_command"},{"Variable":"$.result","NumericEquals":-1,"Next":"fail"}],"Default":"wait_prev_command"},"wait_prev_command":{"Next":"history_copy","Retry":[{"ErrorEquals":["Lambda.ClientExecutionTimeoutException","Lambda.ServiceException","Lambda.AWSLambdaException","Lambda.SdkClientException"],"IntervalSeconds":2,"MaxAttempts":6,"BackoffRate":2}],"Type":"Task","OutputPath":"$.Payload[0][0]","Resource":"arn:",
246
+ {
247
+ "Ref": "AWS::Partition",
248
+ },
249
+ ":states:::lambda:invoke.waitForTaskToken","Parameters":{"FunctionName":"",
250
+ {
251
+ "Fn::GetAtt": [
252
+ "lambdaapi893CD94E",
253
+ "Arn",
254
+ ],
255
+ },
256
+ "","Payload":{"input.$":"$","context.$":"$$","taskToken.$":"$$.Task.Token"}}},"history_copy":{"Next":"transform_data","Retry":[{"ErrorEquals":["Lambda.ClientExecutionTimeoutException","Lambda.ServiceException","Lambda.AWSLambdaException","Lambda.SdkClientException"],"IntervalSeconds":2,"MaxAttempts":6,"BackoffRate":2}],"Type":"Task","OutputPath":"$.Payload[0][0]","Resource":"arn:",
257
+ {
258
+ "Ref": "AWS::Partition",
259
+ },
260
+ ":states:::lambda:invoke","Parameters":{"FunctionName":"",
261
+ {
262
+ "Fn::GetAtt": [
263
+ "lambdaapi893CD94E",
264
+ "Arn",
265
+ ],
266
+ },
267
+ "","Payload":{"input.$":"$","context.$":"$$"}}},"transform_data":{"Next":"sync_data_all","Retry":[{"ErrorEquals":["Lambda.ClientExecutionTimeoutException","Lambda.ServiceException","Lambda.AWSLambdaException","Lambda.SdkClientException"],"IntervalSeconds":2,"MaxAttempts":6,"BackoffRate":2}],"Type":"Task","OutputPath":"$.Payload[0][0]","Resource":"arn:",
268
+ {
269
+ "Ref": "AWS::Partition",
270
+ },
271
+ ":states:::lambda:invoke","Parameters":{"FunctionName":"",
272
+ {
273
+ "Fn::GetAtt": [
274
+ "lambdaapi893CD94E",
275
+ "Arn",
276
+ ],
277
+ },
278
+ "","Payload":{"input.$":"$","context.$":"$$"}}},"sync_data_all":{"Type":"Map","Next":"finish","ItemsPath":"$","ItemProcessor":{"ProcessorConfig":{"Mode":"INLINE"},"StartAt":"sync_data","States":{"sync_data":{"End":true,"Retry":[{"ErrorEquals":["Lambda.ClientExecutionTimeoutException","Lambda.ServiceException","Lambda.AWSLambdaException","Lambda.SdkClientException"],"IntervalSeconds":2,"MaxAttempts":6,"BackoffRate":2}],"Type":"Task","OutputPath":"$.Payload[0][0]","Resource":"arn:",
279
+ {
280
+ "Ref": "AWS::Partition",
281
+ },
282
+ ":states:::lambda:invoke","Parameters":{"FunctionName":"",
283
+ {
284
+ "Fn::GetAtt": [
285
+ "lambdaapi893CD94E",
286
+ "Arn",
287
+ ],
288
+ },
289
+ "","Payload":{"input.$":"$","context.$":"$$"}}}}}},"finish":{"Next":"success","Retry":[{"ErrorEquals":["Lambda.ClientExecutionTimeoutException","Lambda.ServiceException","Lambda.AWSLambdaException","Lambda.SdkClientException"],"IntervalSeconds":2,"MaxAttempts":6,"BackoffRate":2}],"Type":"Task","OutputPath":"$.Payload[0][0]","Resource":"arn:",
290
+ {
291
+ "Ref": "AWS::Partition",
292
+ },
293
+ ":states:::lambda:invoke","Parameters":{"FunctionName":"",
294
+ {
295
+ "Fn::GetAtt": [
296
+ "lambdaapi893CD94E",
297
+ "Arn",
298
+ ],
299
+ },
300
+ "","Payload":{"input.$":"$","context.$":"$$"}}},"success":{"Type":"Succeed"},"fail":{"Type":"Fail","ErrorPath":"$.error","CausePath":"$.cause"}},"Comment":"A state machine that run the command stream handler"}",
301
+ ],
302
+ ],
303
+ },
304
+ "LoggingConfiguration": {
305
+ "Destinations": [
306
+ {
307
+ "CloudWatchLogsLogGroup": {
308
+ "LogGroupArn": {
309
+ "Fn::GetAtt": [
310
+ "commandhandlersfnlog9072E963",
311
+ "Arn",
312
+ ],
313
+ },
314
+ },
315
+ },
316
+ ],
317
+ "Level": "ALL",
318
+ },
319
+ "RoleArn": {
320
+ "Fn::GetAtt": [
321
+ "commandhandlerstatemachineRoleC4EA8D70",
322
+ "Arn",
323
+ ],
324
+ },
325
+ "StateMachineName": "dev-cdk-test-deploy-command-handler",
326
+ "Tags": [
327
+ {
328
+ "Key": "env",
329
+ "Value": "dev",
330
+ },
331
+ {
332
+ "Key": "name",
333
+ "Value": "cdk-test-deploy",
334
+ },
335
+ ],
336
+ "TracingConfiguration": {
337
+ "Enabled": true,
338
+ },
339
+ },
340
+ "Type": "AWS::StepFunctions::StateMachine",
341
+ "UpdateReplacePolicy": "Delete",
342
+ },
343
+ "commandhandlerstatemachineRoleC4EA8D70": {
344
+ "Properties": {
345
+ "AssumeRolePolicyDocument": {
346
+ "Statement": [
347
+ {
348
+ "Action": "sts:AssumeRole",
349
+ "Effect": "Allow",
350
+ "Principal": {
351
+ "Service": "states.amazonaws.com",
352
+ },
353
+ },
354
+ ],
355
+ "Version": "2012-10-17",
356
+ },
357
+ "Tags": [
358
+ {
359
+ "Key": "env",
360
+ "Value": "dev",
361
+ },
362
+ {
363
+ "Key": "name",
364
+ "Value": "cdk-test-deploy",
365
+ },
366
+ ],
367
+ },
368
+ "Type": "AWS::IAM::Role",
369
+ },
370
+ "commandhandlerstatemachineRoleDefaultPolicy347D4054": {
371
+ "Properties": {
372
+ "PolicyDocument": {
373
+ "Statement": [
374
+ {
375
+ "Action": "lambda:InvokeFunction",
376
+ "Effect": "Allow",
377
+ "Resource": [
378
+ {
379
+ "Fn::GetAtt": [
380
+ "lambdaapi893CD94E",
381
+ "Arn",
382
+ ],
383
+ },
384
+ {
385
+ "Fn::Join": [
386
+ "",
387
+ [
388
+ {
389
+ "Fn::GetAtt": [
390
+ "lambdaapi893CD94E",
391
+ "Arn",
392
+ ],
393
+ },
394
+ ":*",
395
+ ],
396
+ ],
397
+ },
398
+ ],
399
+ },
400
+ {
401
+ "Action": [
402
+ "logs:CreateLogDelivery",
403
+ "logs:GetLogDelivery",
404
+ "logs:UpdateLogDelivery",
405
+ "logs:DeleteLogDelivery",
406
+ "logs:ListLogDeliveries",
407
+ "logs:PutResourcePolicy",
408
+ "logs:DescribeResourcePolicies",
409
+ "logs:DescribeLogGroups",
410
+ ],
411
+ "Effect": "Allow",
412
+ "Resource": "*",
413
+ },
414
+ {
415
+ "Action": [
416
+ "xray:PutTraceSegments",
417
+ "xray:PutTelemetryRecords",
418
+ "xray:GetSamplingRules",
419
+ "xray:GetSamplingTargets",
420
+ ],
421
+ "Effect": "Allow",
422
+ "Resource": "*",
423
+ },
424
+ ],
425
+ "Version": "2012-10-17",
426
+ },
427
+ "PolicyName": "commandhandlerstatemachineRoleDefaultPolicy347D4054",
428
+ "Roles": [
429
+ {
430
+ "Ref": "commandhandlerstatemachineRoleC4EA8D70",
431
+ },
432
+ ],
433
+ },
434
+ "Type": "AWS::IAM::Policy",
435
+ },
436
+ "ddbattributes95C63151": {
437
+ "DeletionPolicy": "Delete",
438
+ "Properties": {
439
+ "BucketName": "dev-cdk-test-deploy-ddb-attributes",
440
+ "CorsConfiguration": {
441
+ "CorsRules": [
442
+ {
443
+ "AllowedHeaders": [
444
+ "*",
445
+ ],
446
+ "AllowedMethods": [
447
+ "GET",
448
+ "PUT",
449
+ "POST",
450
+ ],
451
+ "AllowedOrigins": [
452
+ "*",
453
+ ],
454
+ "MaxAge": 3000,
455
+ },
456
+ ],
457
+ },
458
+ "PublicAccessBlockConfiguration": {
459
+ "BlockPublicAcls": true,
460
+ "BlockPublicPolicy": true,
461
+ "IgnorePublicAcls": true,
462
+ "RestrictPublicBuckets": true,
463
+ },
464
+ "Tags": [
465
+ {
466
+ "Key": "env",
467
+ "Value": "dev",
468
+ },
469
+ {
470
+ "Key": "name",
471
+ "Value": "cdk-test-deploy",
472
+ },
473
+ ],
474
+ },
475
+ "Type": "AWS::S3::Bucket",
476
+ "UpdateReplacePolicy": "Delete",
477
+ },
478
+ "httpapiAccessLogs0179ABB1": {
479
+ "DeletionPolicy": "Retain",
480
+ "Properties": {
481
+ "RetentionInDays": 731,
482
+ "Tags": [
483
+ {
484
+ "Key": "env",
485
+ "Value": "dev",
486
+ },
487
+ {
488
+ "Key": "name",
489
+ "Value": "cdk-test-deploy",
490
+ },
491
+ ],
492
+ },
493
+ "Type": "AWS::Logs::LogGroup",
494
+ "UpdateReplacePolicy": "Retain",
495
+ },
496
+ "httpdistribution87A15827": {
497
+ "Properties": {
498
+ "DistributionConfig": {
499
+ "Aliases": [
500
+ "dev-api-cdk.mbc-cqrs-serverless.mbc-net.com",
501
+ ],
502
+ "DefaultCacheBehavior": {
503
+ "AllowedMethods": [
504
+ "GET",
505
+ "HEAD",
506
+ "OPTIONS",
507
+ "PUT",
508
+ "PATCH",
509
+ "POST",
510
+ "DELETE",
511
+ ],
512
+ "CachePolicyId": "4135ea2d-6df8-44a3-9df3-4b5a84be39ad",
513
+ "Compress": true,
514
+ "OriginRequestPolicyId": "b689b0a8-53d0-40ab-baf2-68738e2966ac",
515
+ "ResponseHeadersPolicyId": "60669652-455b-4ae9-85a4-c4c02393f86c",
516
+ "TargetOriginId": "TestInfraStackhttpdistributionOrigin13C4D9587",
517
+ "ViewerProtocolPolicy": "redirect-to-https",
518
+ },
519
+ "Enabled": true,
520
+ "HttpVersion": "http2",
521
+ "IPV6Enabled": false,
522
+ "Origins": [
523
+ {
524
+ "CustomOriginConfig": {
525
+ "OriginProtocolPolicy": "https-only",
526
+ "OriginSSLProtocols": [
527
+ "TLSv1.2",
528
+ ],
529
+ },
530
+ "DomainName": {
531
+ "Fn::Join": [
532
+ "",
533
+ [
534
+ {
535
+ "Ref": "mainapiC7DC6378",
536
+ },
537
+ ".execute-api.ap-northeast-1.amazonaws.com",
538
+ ],
539
+ ],
540
+ },
541
+ "Id": "TestInfraStackhttpdistributionOrigin13C4D9587",
542
+ "OriginCustomHeaders": [
543
+ {
544
+ "HeaderName": "X-Origin-Verify",
545
+ "HeaderValue": "dev-cdk-test-deploy-653338303031343731376464613638663933303936316338666463646537",
546
+ },
547
+ ],
548
+ },
549
+ ],
550
+ "PriceClass": "PriceClass_200",
551
+ "Restrictions": {
552
+ "GeoRestriction": {
553
+ "Locations": [
554
+ "JP",
555
+ "VN",
556
+ ],
557
+ "RestrictionType": "whitelist",
558
+ },
559
+ },
560
+ "ViewerCertificate": {
561
+ "AcmCertificateArn": "arn:aws:acm:us-east-1:058264278704:certificate/668eb08d-b92f-488c-9e32-56854d487315",
562
+ "MinimumProtocolVersion": "TLSv1.2_2021",
563
+ "SslSupportMethod": "sni-only",
564
+ },
565
+ },
566
+ "Tags": [
567
+ {
568
+ "Key": "env",
569
+ "Value": "dev",
570
+ },
571
+ {
572
+ "Key": "name",
573
+ "Value": "cdk-test-deploy",
574
+ },
575
+ ],
576
+ },
577
+ "Type": "AWS::CloudFront::Distribution",
578
+ },
579
+ "httpdistributionarecord0FBAAC08": {
580
+ "Properties": {
581
+ "HostedZoneId": "Z083753814XLAICIY5OHU",
582
+ "Name": "dev-api-cdk.mbc-cqrs-serverless.mbc-net.com.",
583
+ "ResourceRecords": [
584
+ {
585
+ "Fn::GetAtt": [
586
+ "httpdistribution87A15827",
587
+ "DomainName",
588
+ ],
589
+ },
590
+ ],
591
+ "TTL": "1800",
592
+ "Type": "CNAME",
593
+ },
594
+ "Type": "AWS::Route53::RecordSet",
595
+ },
596
+ "lambdaapi893CD94E": {
597
+ "DependsOn": [
598
+ "lambdaapiServiceRoleDefaultPolicy852237F1",
599
+ "lambdaapiServiceRole7E4263EE",
600
+ ],
601
+ "Properties": {
602
+ "Architectures": [
603
+ "arm64",
604
+ ],
605
+ "Code": {
606
+ "S3Bucket": "cdk-hnb659fds-assets-101010101010-ap-northeast-1",
607
+ "S3Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.zip",
608
+ },
609
+ "Environment": {
610
+ "Variables": {
611
+ "APPSYNC_ENDPOINT": {
612
+ "Fn::GetAtt": [
613
+ "realtime0CF38FF2",
614
+ "GraphQLUrl",
615
+ ],
616
+ },
617
+ "APP_NAME": "cdk-test-deploy",
618
+ "ATTRIBUTE_LIMIT_SIZE": "389120",
619
+ "COGNITO_USER_POOL_ID": "ap-northeast-1_xlQVMPxtx",
620
+ "DATABASE_URL": "postgresql:///mbc/cqrs/rds-account@http://db.mbc-net.com/dev_cdk_infra?schema=public",
621
+ "EVENT_SOURCE_DISABLED": "false",
622
+ "FRONT_BASE_URL": "https://dev-front.mbc-cqrs-serverless.mbc-net.com",
623
+ "LOG_LEVEL": "verbose",
624
+ "NODE_ENV": "dev",
625
+ "NODE_OPTIONS": "--enable-source-maps",
626
+ "S3_BUCKET_NAME": {
627
+ "Ref": "ddbattributes95C63151",
628
+ },
629
+ "S3_PUBLIC_BUCKET_NAME": {
630
+ "Ref": "publicbucket0D82CFFB",
631
+ },
632
+ "SES_FROM_EMAIL": "noreply@mbc-cqrs-serverless.mbc-net.com",
633
+ "SFN_COMMAND_ARN": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev-cdk-test-deploy-command-handler",
634
+ "SNS_TOPIC_ARN": {
635
+ "Ref": "mainsnsC0381B34",
636
+ },
637
+ "TZ": "Asia/Tokyo",
638
+ },
639
+ },
640
+ "FunctionName": "dev-cdk-test-deploy-lambda-api",
641
+ "Handler": "main.handler",
642
+ "Layers": [
643
+ {
644
+ "Ref": "mainlayer908FE5E4",
645
+ },
646
+ ],
647
+ "LoggingConfig": {
648
+ "ApplicationLogLevel": "TRACE",
649
+ "LogFormat": "JSON",
650
+ "SystemLogLevel": "DEBUG",
651
+ },
652
+ "MemorySize": 512,
653
+ "Role": {
654
+ "Fn::GetAtt": [
655
+ "lambdaapiServiceRole7E4263EE",
656
+ "Arn",
657
+ ],
658
+ },
659
+ "Runtime": "nodejs18.x",
660
+ "Tags": [
661
+ {
662
+ "Key": "env",
663
+ "Value": "dev",
664
+ },
665
+ {
666
+ "Key": "name",
667
+ "Value": "cdk-test-deploy",
668
+ },
669
+ ],
670
+ "Timeout": 31536000,
671
+ "TracingConfig": {
672
+ "Mode": "Active",
673
+ },
674
+ "VpcConfig": {
675
+ "SecurityGroupIds": [
676
+ "sg-0913ccd0827f688f4",
677
+ ],
678
+ "SubnetIds": [],
679
+ },
680
+ },
681
+ "Type": "AWS::Lambda::Function",
682
+ },
683
+ "lambdaapiDynamoDBEventSourceTestInfraStackmastercommandtableE6C83C78574B619C": {
684
+ "Properties": {
685
+ "BatchSize": 1,
686
+ "EventSourceArn": {
687
+ "Fn::GetAtt": [
688
+ "mastercommanddecsC637D29D",
689
+ "Table.LatestStreamArn",
690
+ ],
691
+ },
692
+ "FilterCriteria": {
693
+ "Filters": [
694
+ {
695
+ "Pattern": "{"eventName":["INSERT"]}",
696
+ },
697
+ ],
698
+ },
699
+ "FunctionName": {
700
+ "Ref": "lambdaapi893CD94E",
701
+ },
702
+ "StartingPosition": "TRIM_HORIZON",
703
+ "Tags": [
704
+ {
705
+ "Key": "env",
706
+ "Value": "dev",
707
+ },
708
+ {
709
+ "Key": "name",
710
+ "Value": "cdk-test-deploy",
711
+ },
712
+ ],
713
+ },
714
+ "Type": "AWS::Lambda::EventSourceMapping",
715
+ },
716
+ "lambdaapiDynamoDBEventSourceTestInfraStacktaskstable708E175752ADBCFE": {
717
+ "Properties": {
718
+ "BatchSize": 1,
719
+ "EventSourceArn": {
720
+ "Fn::GetAtt": [
721
+ "tasksdecs1B0120D7",
722
+ "Table.LatestStreamArn",
723
+ ],
724
+ },
725
+ "FilterCriteria": {
726
+ "Filters": [
727
+ {
728
+ "Pattern": "{"eventName":["INSERT"]}",
729
+ },
730
+ ],
731
+ },
732
+ "FunctionName": {
733
+ "Ref": "lambdaapi893CD94E",
734
+ },
735
+ "StartingPosition": "TRIM_HORIZON",
736
+ "Tags": [
737
+ {
738
+ "Key": "env",
739
+ "Value": "dev",
740
+ },
741
+ {
742
+ "Key": "name",
743
+ "Value": "cdk-test-deploy",
744
+ },
745
+ ],
746
+ },
747
+ "Type": "AWS::Lambda::EventSourceMapping",
748
+ },
749
+ "lambdaapiServiceRole7E4263EE": {
750
+ "Properties": {
751
+ "AssumeRolePolicyDocument": {
752
+ "Statement": [
753
+ {
754
+ "Action": "sts:AssumeRole",
755
+ "Effect": "Allow",
756
+ "Principal": {
757
+ "Service": "lambda.amazonaws.com",
758
+ },
759
+ },
760
+ ],
761
+ "Version": "2012-10-17",
762
+ },
763
+ "ManagedPolicyArns": [
764
+ {
765
+ "Fn::Join": [
766
+ "",
767
+ [
768
+ "arn:",
769
+ {
770
+ "Ref": "AWS::Partition",
771
+ },
772
+ ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
773
+ ],
774
+ ],
775
+ },
776
+ {
777
+ "Fn::Join": [
778
+ "",
779
+ [
780
+ "arn:",
781
+ {
782
+ "Ref": "AWS::Partition",
783
+ },
784
+ ":iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole",
785
+ ],
786
+ ],
787
+ },
788
+ ],
789
+ "Tags": [
790
+ {
791
+ "Key": "env",
792
+ "Value": "dev",
793
+ },
794
+ {
795
+ "Key": "name",
796
+ "Value": "cdk-test-deploy",
797
+ },
798
+ ],
799
+ },
800
+ "Type": "AWS::IAM::Role",
801
+ },
802
+ "lambdaapiServiceRoleDefaultPolicy852237F1": {
803
+ "Properties": {
804
+ "PolicyDocument": {
805
+ "Statement": [
806
+ {
807
+ "Action": [
808
+ "xray:PutTraceSegments",
809
+ "xray:PutTelemetryRecords",
810
+ ],
811
+ "Effect": "Allow",
812
+ "Resource": "*",
813
+ },
814
+ {
815
+ "Action": [
816
+ "sqs:ReceiveMessage",
817
+ "sqs:ChangeMessageVisibility",
818
+ "sqs:GetQueueUrl",
819
+ "sqs:DeleteMessage",
820
+ "sqs:GetQueueAttributes",
821
+ ],
822
+ "Effect": "Allow",
823
+ "Resource": {
824
+ "Fn::GetAtt": [
825
+ "tasksqs12D9B615",
826
+ "Arn",
827
+ ],
828
+ },
829
+ },
830
+ {
831
+ "Action": [
832
+ "sqs:ReceiveMessage",
833
+ "sqs:ChangeMessageVisibility",
834
+ "sqs:GetQueueUrl",
835
+ "sqs:DeleteMessage",
836
+ "sqs:GetQueueAttributes",
837
+ ],
838
+ "Effect": "Allow",
839
+ "Resource": {
840
+ "Fn::GetAtt": [
841
+ "notifysqsEC095A61",
842
+ "Arn",
843
+ ],
844
+ },
845
+ },
846
+ {
847
+ "Action": "dynamodb:ListStreams",
848
+ "Effect": "Allow",
849
+ "Resource": "*",
850
+ },
851
+ {
852
+ "Action": [
853
+ "dynamodb:DescribeStream",
854
+ "dynamodb:GetRecords",
855
+ "dynamodb:GetShardIterator",
856
+ ],
857
+ "Effect": "Allow",
858
+ "Resource": {
859
+ "Fn::GetAtt": [
860
+ "tasksdecs1B0120D7",
861
+ "Table.LatestStreamArn",
862
+ ],
863
+ },
864
+ },
865
+ {
866
+ "Action": [
867
+ "dynamodb:DescribeStream",
868
+ "dynamodb:GetRecords",
869
+ "dynamodb:GetShardIterator",
870
+ ],
871
+ "Effect": "Allow",
872
+ "Resource": {
873
+ "Fn::GetAtt": [
874
+ "mastercommanddecsC637D29D",
875
+ "Table.LatestStreamArn",
876
+ ],
877
+ },
878
+ },
879
+ {
880
+ "Action": [
881
+ "cognito-idp:AdminGetUser",
882
+ "cognito-idp:AdminAddUserToGroup",
883
+ "cognito-idp:AdminCreateUser",
884
+ "cognito-idp:AdminDeleteUser",
885
+ "cognito-idp:AdminDisableUser",
886
+ "cognito-idp:AdminEnableUser",
887
+ "cognito-idp:AdminSetUserPassword",
888
+ "cognito-idp:AdminResetUserPassword",
889
+ "cognito-idp:AdminUpdateUserAttributes",
890
+ ],
891
+ "Effect": "Allow",
892
+ "Resource": {
893
+ "Fn::Join": [
894
+ "",
895
+ [
896
+ "arn:",
897
+ {
898
+ "Ref": "AWS::Partition",
899
+ },
900
+ ":cognito-idp:ap-northeast-1:101010101010:userpool/ap-northeast-1_xlQVMPxtx",
901
+ ],
902
+ ],
903
+ },
904
+ },
905
+ {
906
+ "Action": [
907
+ "s3:GetObject*",
908
+ "s3:GetBucket*",
909
+ "s3:List*",
910
+ "s3:DeleteObject*",
911
+ "s3:PutObject",
912
+ "s3:PutObjectLegalHold",
913
+ "s3:PutObjectRetention",
914
+ "s3:PutObjectTagging",
915
+ "s3:PutObjectVersionTagging",
916
+ "s3:Abort*",
917
+ ],
918
+ "Effect": "Allow",
919
+ "Resource": [
920
+ {
921
+ "Fn::GetAtt": [
922
+ "ddbattributes95C63151",
923
+ "Arn",
924
+ ],
925
+ },
926
+ {
927
+ "Fn::Join": [
928
+ "",
929
+ [
930
+ {
931
+ "Fn::GetAtt": [
932
+ "ddbattributes95C63151",
933
+ "Arn",
934
+ ],
935
+ },
936
+ "/*",
937
+ ],
938
+ ],
939
+ },
940
+ ],
941
+ },
942
+ {
943
+ "Action": [
944
+ "s3:GetObject*",
945
+ "s3:GetBucket*",
946
+ "s3:List*",
947
+ "s3:DeleteObject*",
948
+ "s3:PutObject",
949
+ "s3:PutObjectLegalHold",
950
+ "s3:PutObjectRetention",
951
+ "s3:PutObjectTagging",
952
+ "s3:PutObjectVersionTagging",
953
+ "s3:Abort*",
954
+ ],
955
+ "Effect": "Allow",
956
+ "Resource": [
957
+ {
958
+ "Fn::GetAtt": [
959
+ "publicbucket0D82CFFB",
960
+ "Arn",
961
+ ],
962
+ },
963
+ {
964
+ "Fn::Join": [
965
+ "",
966
+ [
967
+ {
968
+ "Fn::GetAtt": [
969
+ "publicbucket0D82CFFB",
970
+ "Arn",
971
+ ],
972
+ },
973
+ "/*",
974
+ ],
975
+ ],
976
+ },
977
+ ],
978
+ },
979
+ {
980
+ "Action": "sns:Publish",
981
+ "Effect": "Allow",
982
+ "Resource": {
983
+ "Ref": "mainsnsC0381B34",
984
+ },
985
+ },
986
+ {
987
+ "Action": [
988
+ "sqs:SendMessage",
989
+ "sqs:GetQueueAttributes",
990
+ "sqs:GetQueueUrl",
991
+ ],
992
+ "Effect": "Allow",
993
+ "Resource": {
994
+ "Fn::GetAtt": [
995
+ "tasksqs12D9B615",
996
+ "Arn",
997
+ ],
998
+ },
999
+ },
1000
+ {
1001
+ "Action": [
1002
+ "sqs:SendMessage",
1003
+ "sqs:GetQueueAttributes",
1004
+ "sqs:GetQueueUrl",
1005
+ ],
1006
+ "Effect": "Allow",
1007
+ "Resource": {
1008
+ "Fn::GetAtt": [
1009
+ "notifysqsEC095A61",
1010
+ "Arn",
1011
+ ],
1012
+ },
1013
+ },
1014
+ {
1015
+ "Action": "appsync:GraphQL",
1016
+ "Effect": "Allow",
1017
+ "Resource": {
1018
+ "Fn::Join": [
1019
+ "",
1020
+ [
1021
+ "arn:",
1022
+ {
1023
+ "Ref": "AWS::Partition",
1024
+ },
1025
+ ":appsync:ap-northeast-1:101010101010:apis/",
1026
+ {
1027
+ "Fn::GetAtt": [
1028
+ "realtime0CF38FF2",
1029
+ "ApiId",
1030
+ ],
1031
+ },
1032
+ "/types/Mutation/*",
1033
+ ],
1034
+ ],
1035
+ },
1036
+ },
1037
+ ],
1038
+ "Version": "2012-10-17",
1039
+ },
1040
+ "PolicyName": "lambdaapiServiceRoleDefaultPolicy852237F1",
1041
+ "Roles": [
1042
+ {
1043
+ "Ref": "lambdaapiServiceRole7E4263EE",
1044
+ },
1045
+ ],
1046
+ },
1047
+ "Type": "AWS::IAM::Policy",
1048
+ },
1049
+ "lambdaapiSqsEventSourceTestInfraStacknotifysqs3E7CCF8682B43C89": {
1050
+ "Properties": {
1051
+ "BatchSize": 1,
1052
+ "EventSourceArn": {
1053
+ "Fn::GetAtt": [
1054
+ "notifysqsEC095A61",
1055
+ "Arn",
1056
+ ],
1057
+ },
1058
+ "FunctionName": {
1059
+ "Ref": "lambdaapi893CD94E",
1060
+ },
1061
+ "Tags": [
1062
+ {
1063
+ "Key": "env",
1064
+ "Value": "dev",
1065
+ },
1066
+ {
1067
+ "Key": "name",
1068
+ "Value": "cdk-test-deploy",
1069
+ },
1070
+ ],
1071
+ },
1072
+ "Type": "AWS::Lambda::EventSourceMapping",
1073
+ },
1074
+ "lambdaapiSqsEventSourceTestInfraStacktasksqsE3E6B075D9265AC4": {
1075
+ "Properties": {
1076
+ "BatchSize": 1,
1077
+ "EventSourceArn": {
1078
+ "Fn::GetAtt": [
1079
+ "tasksqs12D9B615",
1080
+ "Arn",
1081
+ ],
1082
+ },
1083
+ "FunctionName": {
1084
+ "Ref": "lambdaapi893CD94E",
1085
+ },
1086
+ "Tags": [
1087
+ {
1088
+ "Key": "env",
1089
+ "Value": "dev",
1090
+ },
1091
+ {
1092
+ "Key": "name",
1093
+ "Value": "cdk-test-deploy",
1094
+ },
1095
+ ],
1096
+ },
1097
+ "Type": "AWS::Lambda::EventSourceMapping",
1098
+ },
1099
+ "lambdaapiddbpolicyCE9EA2DA": {
1100
+ "Properties": {
1101
+ "PolicyDocument": {
1102
+ "Statement": [
1103
+ {
1104
+ "Action": [
1105
+ "dynamodb:PutItem",
1106
+ "dynamodb:UpdateItem",
1107
+ "dynamodb:GetItem",
1108
+ "dynamodb:Query",
1109
+ ],
1110
+ "Effect": "Allow",
1111
+ "Resource": "arn:aws:dynamodb:ap-northeast-1:101010101010:table/dev-cdk-test-deploy-*",
1112
+ },
1113
+ ],
1114
+ "Version": "2012-10-17",
1115
+ },
1116
+ "PolicyName": "lambdaapiddbpolicyCE9EA2DA",
1117
+ "Roles": [
1118
+ {
1119
+ "Ref": "lambdaapiServiceRole7E4263EE",
1120
+ },
1121
+ ],
1122
+ },
1123
+ "Type": "AWS::IAM::Policy",
1124
+ },
1125
+ "lambdaapissmpolicy9067745F": {
1126
+ "Properties": {
1127
+ "PolicyDocument": {
1128
+ "Statement": [
1129
+ {
1130
+ "Action": [
1131
+ "ssm:GetParameter",
1132
+ "kms:Decrypt",
1133
+ ],
1134
+ "Effect": "Allow",
1135
+ "Resource": "*",
1136
+ },
1137
+ ],
1138
+ "Version": "2012-10-17",
1139
+ },
1140
+ "PolicyName": "lambdaapissmpolicy9067745F",
1141
+ "Roles": [
1142
+ {
1143
+ "Ref": "lambdaapiServiceRole7E4263EE",
1144
+ },
1145
+ ],
1146
+ },
1147
+ "Type": "AWS::IAM::Policy",
1148
+ },
1149
+ "lambdaeventsfnpolicy5F8059AB": {
1150
+ "Properties": {
1151
+ "PolicyDocument": {
1152
+ "Statement": [
1153
+ {
1154
+ "Action": [
1155
+ "states:StartExecution",
1156
+ "states:GetExecutionHistory",
1157
+ "states:DescribeExecution",
1158
+ ],
1159
+ "Effect": "Allow",
1160
+ "Resource": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev-cdk-test-deploy-command-handler",
1161
+ },
1162
+ ],
1163
+ "Version": "2012-10-17",
1164
+ },
1165
+ "PolicyName": "lambdaeventsfnpolicy5F8059AB",
1166
+ "Roles": [
1167
+ {
1168
+ "Ref": "lambdaapiServiceRole7E4263EE",
1169
+ },
1170
+ ],
1171
+ },
1172
+ "Type": "AWS::IAM::Policy",
1173
+ },
1174
+ "lambdasespolicyC6CB28C8": {
1175
+ "Properties": {
1176
+ "PolicyDocument": {
1177
+ "Statement": [
1178
+ {
1179
+ "Action": "ses:SendEmail",
1180
+ "Effect": "Allow",
1181
+ "Resource": "*",
1182
+ },
1183
+ ],
1184
+ "Version": "2012-10-17",
1185
+ },
1186
+ "PolicyName": "lambdasespolicyC6CB28C8",
1187
+ "Roles": [
1188
+ {
1189
+ "Ref": "lambdaapiServiceRole7E4263EE",
1190
+ },
1191
+ ],
1192
+ },
1193
+ "Type": "AWS::IAM::Policy",
1194
+ },
1195
+ "mainapiANYeventproxy80A3496A": {
1196
+ "Properties": {
1197
+ "ApiId": {
1198
+ "Ref": "mainapiC7DC6378",
1199
+ },
1200
+ "AuthorizationType": "AWS_IAM",
1201
+ "RouteKey": "ANY /event/{proxy+}",
1202
+ "Target": {
1203
+ "Fn::Join": [
1204
+ "",
1205
+ [
1206
+ "integrations/",
1207
+ {
1208
+ "Ref": "mainapiANYeventproxymainapilambdaF98465E9",
1209
+ },
1210
+ ],
1211
+ ],
1212
+ },
1213
+ },
1214
+ "Type": "AWS::ApiGatewayV2::Route",
1215
+ },
1216
+ "mainapiANYeventproxymainapilambdaF98465E9": {
1217
+ "Properties": {
1218
+ "ApiId": {
1219
+ "Ref": "mainapiC7DC6378",
1220
+ },
1221
+ "IntegrationType": "AWS_PROXY",
1222
+ "IntegrationUri": {
1223
+ "Fn::GetAtt": [
1224
+ "lambdaapi893CD94E",
1225
+ "Arn",
1226
+ ],
1227
+ },
1228
+ "PayloadFormatVersion": "2.0",
1229
+ },
1230
+ "Type": "AWS::ApiGatewayV2::Integration",
1231
+ },
1232
+ "mainapiANYeventproxymainapilambdaPermission1B28AC42": {
1233
+ "Properties": {
1234
+ "Action": "lambda:InvokeFunction",
1235
+ "FunctionName": {
1236
+ "Fn::GetAtt": [
1237
+ "lambdaapi893CD94E",
1238
+ "Arn",
1239
+ ],
1240
+ },
1241
+ "Principal": "apigateway.amazonaws.com",
1242
+ "SourceArn": {
1243
+ "Fn::Join": [
1244
+ "",
1245
+ [
1246
+ "arn:",
1247
+ {
1248
+ "Ref": "AWS::Partition",
1249
+ },
1250
+ ":execute-api:ap-northeast-1:101010101010:",
1251
+ {
1252
+ "Ref": "mainapiC7DC6378",
1253
+ },
1254
+ "/*/*/event/{proxy+}",
1255
+ ],
1256
+ ],
1257
+ },
1258
+ },
1259
+ "Type": "AWS::Lambda::Permission",
1260
+ },
1261
+ "mainapiC7DC6378": {
1262
+ "Properties": {
1263
+ "CorsConfiguration": {
1264
+ "AllowCredentials": false,
1265
+ "AllowHeaders": [
1266
+ "*",
1267
+ ],
1268
+ "AllowMethods": [
1269
+ "*",
1270
+ ],
1271
+ "AllowOrigins": [
1272
+ "*",
1273
+ ],
1274
+ "MaxAge": 31536000,
1275
+ },
1276
+ "Description": "HTTP API for Lambda integration",
1277
+ "Name": "dev-cdk-test-deploy-api",
1278
+ "ProtocolType": "HTTP",
1279
+ "Tags": {
1280
+ "env": "dev",
1281
+ "name": "cdk-test-deploy",
1282
+ },
1283
+ },
1284
+ "Type": "AWS::ApiGatewayV2::Api",
1285
+ },
1286
+ "mainapiCognitoAuthorizer5A8408CD": {
1287
+ "Properties": {
1288
+ "ApiId": {
1289
+ "Ref": "mainapiC7DC6378",
1290
+ },
1291
+ "AuthorizerType": "JWT",
1292
+ "IdentitySource": [
1293
+ "$request.header.Authorization",
1294
+ ],
1295
+ "JwtConfiguration": {
1296
+ "Audience": [
1297
+ {
1298
+ "Ref": "apigwclientE7D084A5",
1299
+ },
1300
+ ],
1301
+ "Issuer": "https://cognito-idp.ap-northeast-1.amazonaws.com/ap-northeast-1_xlQVMPxtx",
1302
+ },
1303
+ "Name": "CognitoAuthorizer",
1304
+ },
1305
+ "Type": "AWS::ApiGatewayV2::Authorizer",
1306
+ },
1307
+ "mainapiDELETEproxyE859E461": {
1308
+ "Properties": {
1309
+ "ApiId": {
1310
+ "Ref": "mainapiC7DC6378",
1311
+ },
1312
+ "AuthorizationType": "JWT",
1313
+ "AuthorizerId": {
1314
+ "Ref": "mainapiCognitoAuthorizer5A8408CD",
1315
+ },
1316
+ "RouteKey": "DELETE /{proxy+}",
1317
+ "Target": {
1318
+ "Fn::Join": [
1319
+ "",
1320
+ [
1321
+ "integrations/",
1322
+ {
1323
+ "Ref": "mainapiANYeventproxymainapilambdaF98465E9",
1324
+ },
1325
+ ],
1326
+ ],
1327
+ },
1328
+ },
1329
+ "Type": "AWS::ApiGatewayV2::Route",
1330
+ },
1331
+ "mainapiDELETEproxymainapilambdaPermission7153CDD2": {
1332
+ "Properties": {
1333
+ "Action": "lambda:InvokeFunction",
1334
+ "FunctionName": {
1335
+ "Fn::GetAtt": [
1336
+ "lambdaapi893CD94E",
1337
+ "Arn",
1338
+ ],
1339
+ },
1340
+ "Principal": "apigateway.amazonaws.com",
1341
+ "SourceArn": {
1342
+ "Fn::Join": [
1343
+ "",
1344
+ [
1345
+ "arn:",
1346
+ {
1347
+ "Ref": "AWS::Partition",
1348
+ },
1349
+ ":execute-api:ap-northeast-1:101010101010:",
1350
+ {
1351
+ "Ref": "mainapiC7DC6378",
1352
+ },
1353
+ "/*/*/{proxy+}",
1354
+ ],
1355
+ ],
1356
+ },
1357
+ },
1358
+ "Type": "AWS::Lambda::Permission",
1359
+ },
1360
+ "mainapiDefaultStageA012029E": {
1361
+ "Properties": {
1362
+ "AccessLogSettings": {
1363
+ "DestinationArn": {
1364
+ "Fn::GetAtt": [
1365
+ "httpapiAccessLogs0179ABB1",
1366
+ "Arn",
1367
+ ],
1368
+ },
1369
+ "Format": "{"requestId":"$context.requestId","ip":"$context.identity.sourceIp","userAgent":"$context.identity.userAgent","sourceIp":"$context.identity.sourceIp","requestTime":"$context.requestTime","requestTimeEpoch":"$context.requestTimeEpoch","httpMethod":"$context.httpMethod","routeKey":"$context.routeKey","path":"$context.path","status":"$context.status","protocol":"$context.protocol","responseLength":"$context.responseLength","domainName":"$context.domainName","responseLatency":"$context.responseLatency","integrationLatency":"$context.integrationLatency","username":"$context.authorizer.claims.sub"}",
1370
+ },
1371
+ "ApiId": {
1372
+ "Ref": "mainapiC7DC6378",
1373
+ },
1374
+ "AutoDeploy": true,
1375
+ "DefaultRouteSettings": {
1376
+ "DetailedMetricsEnabled": true,
1377
+ },
1378
+ "StageName": "$default",
1379
+ "Tags": {
1380
+ "env": "dev",
1381
+ "name": "cdk-test-deploy",
1382
+ },
1383
+ },
1384
+ "Type": "AWS::ApiGatewayV2::Stage",
1385
+ },
1386
+ "mainapiGET64CF2802": {
1387
+ "Properties": {
1388
+ "ApiId": {
1389
+ "Ref": "mainapiC7DC6378",
1390
+ },
1391
+ "AuthorizationType": "NONE",
1392
+ "RouteKey": "GET /",
1393
+ "Target": {
1394
+ "Fn::Join": [
1395
+ "",
1396
+ [
1397
+ "integrations/",
1398
+ {
1399
+ "Ref": "mainapiANYeventproxymainapilambdaF98465E9",
1400
+ },
1401
+ ],
1402
+ ],
1403
+ },
1404
+ },
1405
+ "Type": "AWS::ApiGatewayV2::Route",
1406
+ },
1407
+ "mainapiGETmainapilambdaPermissionFB7DDD53": {
1408
+ "Properties": {
1409
+ "Action": "lambda:InvokeFunction",
1410
+ "FunctionName": {
1411
+ "Fn::GetAtt": [
1412
+ "lambdaapi893CD94E",
1413
+ "Arn",
1414
+ ],
1415
+ },
1416
+ "Principal": "apigateway.amazonaws.com",
1417
+ "SourceArn": {
1418
+ "Fn::Join": [
1419
+ "",
1420
+ [
1421
+ "arn:",
1422
+ {
1423
+ "Ref": "AWS::Partition",
1424
+ },
1425
+ ":execute-api:ap-northeast-1:101010101010:",
1426
+ {
1427
+ "Ref": "mainapiC7DC6378",
1428
+ },
1429
+ "/*/*/",
1430
+ ],
1431
+ ],
1432
+ },
1433
+ },
1434
+ "Type": "AWS::Lambda::Permission",
1435
+ },
1436
+ "mainapiGETproxy81BAB755": {
1437
+ "Properties": {
1438
+ "ApiId": {
1439
+ "Ref": "mainapiC7DC6378",
1440
+ },
1441
+ "AuthorizationType": "JWT",
1442
+ "AuthorizerId": {
1443
+ "Ref": "mainapiCognitoAuthorizer5A8408CD",
1444
+ },
1445
+ "RouteKey": "GET /{proxy+}",
1446
+ "Target": {
1447
+ "Fn::Join": [
1448
+ "",
1449
+ [
1450
+ "integrations/",
1451
+ {
1452
+ "Ref": "mainapiANYeventproxymainapilambdaF98465E9",
1453
+ },
1454
+ ],
1455
+ ],
1456
+ },
1457
+ },
1458
+ "Type": "AWS::ApiGatewayV2::Route",
1459
+ },
1460
+ "mainapiGETproxymainapilambdaPermission8C294959": {
1461
+ "Properties": {
1462
+ "Action": "lambda:InvokeFunction",
1463
+ "FunctionName": {
1464
+ "Fn::GetAtt": [
1465
+ "lambdaapi893CD94E",
1466
+ "Arn",
1467
+ ],
1468
+ },
1469
+ "Principal": "apigateway.amazonaws.com",
1470
+ "SourceArn": {
1471
+ "Fn::Join": [
1472
+ "",
1473
+ [
1474
+ "arn:",
1475
+ {
1476
+ "Ref": "AWS::Partition",
1477
+ },
1478
+ ":execute-api:ap-northeast-1:101010101010:",
1479
+ {
1480
+ "Ref": "mainapiC7DC6378",
1481
+ },
1482
+ "/*/*/{proxy+}",
1483
+ ],
1484
+ ],
1485
+ },
1486
+ },
1487
+ "Type": "AWS::Lambda::Permission",
1488
+ },
1489
+ "mainapiHEADproxyA69C7EE3": {
1490
+ "Properties": {
1491
+ "ApiId": {
1492
+ "Ref": "mainapiC7DC6378",
1493
+ },
1494
+ "AuthorizationType": "JWT",
1495
+ "AuthorizerId": {
1496
+ "Ref": "mainapiCognitoAuthorizer5A8408CD",
1497
+ },
1498
+ "RouteKey": "HEAD /{proxy+}",
1499
+ "Target": {
1500
+ "Fn::Join": [
1501
+ "",
1502
+ [
1503
+ "integrations/",
1504
+ {
1505
+ "Ref": "mainapiANYeventproxymainapilambdaF98465E9",
1506
+ },
1507
+ ],
1508
+ ],
1509
+ },
1510
+ },
1511
+ "Type": "AWS::ApiGatewayV2::Route",
1512
+ },
1513
+ "mainapiHEADproxymainapilambdaPermissionE948759F": {
1514
+ "Properties": {
1515
+ "Action": "lambda:InvokeFunction",
1516
+ "FunctionName": {
1517
+ "Fn::GetAtt": [
1518
+ "lambdaapi893CD94E",
1519
+ "Arn",
1520
+ ],
1521
+ },
1522
+ "Principal": "apigateway.amazonaws.com",
1523
+ "SourceArn": {
1524
+ "Fn::Join": [
1525
+ "",
1526
+ [
1527
+ "arn:",
1528
+ {
1529
+ "Ref": "AWS::Partition",
1530
+ },
1531
+ ":execute-api:ap-northeast-1:101010101010:",
1532
+ {
1533
+ "Ref": "mainapiC7DC6378",
1534
+ },
1535
+ "/*/*/{proxy+}",
1536
+ ],
1537
+ ],
1538
+ },
1539
+ },
1540
+ "Type": "AWS::Lambda::Permission",
1541
+ },
1542
+ "mainapiPATCHproxy3C068B51": {
1543
+ "Properties": {
1544
+ "ApiId": {
1545
+ "Ref": "mainapiC7DC6378",
1546
+ },
1547
+ "AuthorizationType": "JWT",
1548
+ "AuthorizerId": {
1549
+ "Ref": "mainapiCognitoAuthorizer5A8408CD",
1550
+ },
1551
+ "RouteKey": "PATCH /{proxy+}",
1552
+ "Target": {
1553
+ "Fn::Join": [
1554
+ "",
1555
+ [
1556
+ "integrations/",
1557
+ {
1558
+ "Ref": "mainapiANYeventproxymainapilambdaF98465E9",
1559
+ },
1560
+ ],
1561
+ ],
1562
+ },
1563
+ },
1564
+ "Type": "AWS::ApiGatewayV2::Route",
1565
+ },
1566
+ "mainapiPATCHproxymainapilambdaPermission6885C849": {
1567
+ "Properties": {
1568
+ "Action": "lambda:InvokeFunction",
1569
+ "FunctionName": {
1570
+ "Fn::GetAtt": [
1571
+ "lambdaapi893CD94E",
1572
+ "Arn",
1573
+ ],
1574
+ },
1575
+ "Principal": "apigateway.amazonaws.com",
1576
+ "SourceArn": {
1577
+ "Fn::Join": [
1578
+ "",
1579
+ [
1580
+ "arn:",
1581
+ {
1582
+ "Ref": "AWS::Partition",
1583
+ },
1584
+ ":execute-api:ap-northeast-1:101010101010:",
1585
+ {
1586
+ "Ref": "mainapiC7DC6378",
1587
+ },
1588
+ "/*/*/{proxy+}",
1589
+ ],
1590
+ ],
1591
+ },
1592
+ },
1593
+ "Type": "AWS::Lambda::Permission",
1594
+ },
1595
+ "mainapiPOSTproxy1AEEF7DB": {
1596
+ "Properties": {
1597
+ "ApiId": {
1598
+ "Ref": "mainapiC7DC6378",
1599
+ },
1600
+ "AuthorizationType": "JWT",
1601
+ "AuthorizerId": {
1602
+ "Ref": "mainapiCognitoAuthorizer5A8408CD",
1603
+ },
1604
+ "RouteKey": "POST /{proxy+}",
1605
+ "Target": {
1606
+ "Fn::Join": [
1607
+ "",
1608
+ [
1609
+ "integrations/",
1610
+ {
1611
+ "Ref": "mainapiANYeventproxymainapilambdaF98465E9",
1612
+ },
1613
+ ],
1614
+ ],
1615
+ },
1616
+ },
1617
+ "Type": "AWS::ApiGatewayV2::Route",
1618
+ },
1619
+ "mainapiPOSTproxymainapilambdaPermission3366662E": {
1620
+ "Properties": {
1621
+ "Action": "lambda:InvokeFunction",
1622
+ "FunctionName": {
1623
+ "Fn::GetAtt": [
1624
+ "lambdaapi893CD94E",
1625
+ "Arn",
1626
+ ],
1627
+ },
1628
+ "Principal": "apigateway.amazonaws.com",
1629
+ "SourceArn": {
1630
+ "Fn::Join": [
1631
+ "",
1632
+ [
1633
+ "arn:",
1634
+ {
1635
+ "Ref": "AWS::Partition",
1636
+ },
1637
+ ":execute-api:ap-northeast-1:101010101010:",
1638
+ {
1639
+ "Ref": "mainapiC7DC6378",
1640
+ },
1641
+ "/*/*/{proxy+}",
1642
+ ],
1643
+ ],
1644
+ },
1645
+ },
1646
+ "Type": "AWS::Lambda::Permission",
1647
+ },
1648
+ "mainapiPUTproxyF7A0BCF5": {
1649
+ "Properties": {
1650
+ "ApiId": {
1651
+ "Ref": "mainapiC7DC6378",
1652
+ },
1653
+ "AuthorizationType": "JWT",
1654
+ "AuthorizerId": {
1655
+ "Ref": "mainapiCognitoAuthorizer5A8408CD",
1656
+ },
1657
+ "RouteKey": "PUT /{proxy+}",
1658
+ "Target": {
1659
+ "Fn::Join": [
1660
+ "",
1661
+ [
1662
+ "integrations/",
1663
+ {
1664
+ "Ref": "mainapiANYeventproxymainapilambdaF98465E9",
1665
+ },
1666
+ ],
1667
+ ],
1668
+ },
1669
+ },
1670
+ "Type": "AWS::ApiGatewayV2::Route",
1671
+ },
1672
+ "mainapiPUTproxymainapilambdaPermissionC9953BE1": {
1673
+ "Properties": {
1674
+ "Action": "lambda:InvokeFunction",
1675
+ "FunctionName": {
1676
+ "Fn::GetAtt": [
1677
+ "lambdaapi893CD94E",
1678
+ "Arn",
1679
+ ],
1680
+ },
1681
+ "Principal": "apigateway.amazonaws.com",
1682
+ "SourceArn": {
1683
+ "Fn::Join": [
1684
+ "",
1685
+ [
1686
+ "arn:",
1687
+ {
1688
+ "Ref": "AWS::Partition",
1689
+ },
1690
+ ":execute-api:ap-northeast-1:101010101010:",
1691
+ {
1692
+ "Ref": "mainapiC7DC6378",
1693
+ },
1694
+ "/*/*/{proxy+}",
1695
+ ],
1696
+ ],
1697
+ },
1698
+ },
1699
+ "Type": "AWS::Lambda::Permission",
1700
+ },
1701
+ "mainlayer908FE5E4": {
1702
+ "Properties": {
1703
+ "CompatibleArchitectures": [
1704
+ "arm64",
1705
+ ],
1706
+ "CompatibleRuntimes": [
1707
+ "nodejs18.x",
1708
+ ],
1709
+ "Content": {
1710
+ "S3Bucket": "cdk-hnb659fds-assets-101010101010-ap-northeast-1",
1711
+ "S3Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.zip",
1712
+ },
1713
+ "LayerName": "dev-cdk-test-deploy-main-layer",
1714
+ },
1715
+ "Type": "AWS::Lambda::LayerVersion",
1716
+ },
1717
+ "mainsnsC0381B34": {
1718
+ "Properties": {
1719
+ "Tags": [
1720
+ {
1721
+ "Key": "env",
1722
+ "Value": "dev",
1723
+ },
1724
+ {
1725
+ "Key": "name",
1726
+ "Value": "cdk-test-deploy",
1727
+ },
1728
+ ],
1729
+ "TopicName": "dev-cdk-test-deploy-main-sns",
1730
+ },
1731
+ "Type": "AWS::SNS::Topic",
1732
+ },
1733
+ "mastercommanddecsC637D29D": {
1734
+ "DeletionPolicy": "Delete",
1735
+ "DependsOn": [
1736
+ "mastercommanddecsCustomResourcePolicyE2063016",
1737
+ ],
1738
+ "Properties": {
1739
+ "Create": "{"service":"DynamoDB","action":"describeTable","parameters":{"TableName":"dev-cdk-test-deploy-master-command"},"physicalResourceId":{"responsePath":"Table.TableArn"}}",
1740
+ "InstallLatestAwsSdk": true,
1741
+ "ServiceToken": {
1742
+ "Fn::GetAtt": [
1743
+ "AWS679f53fac002430cb0da5b7982bd22872D164C4C",
1744
+ "Arn",
1745
+ ],
1746
+ },
1747
+ },
1748
+ "Type": "Custom::AWS",
1749
+ "UpdateReplacePolicy": "Delete",
1750
+ },
1751
+ "mastercommanddecsCustomResourcePolicyE2063016": {
1752
+ "Properties": {
1753
+ "PolicyDocument": {
1754
+ "Statement": [
1755
+ {
1756
+ "Action": "dynamodb:DescribeTable",
1757
+ "Effect": "Allow",
1758
+ "Resource": "*",
1759
+ },
1760
+ ],
1761
+ "Version": "2012-10-17",
1762
+ },
1763
+ "PolicyName": "mastercommanddecsCustomResourcePolicyE2063016",
1764
+ "Roles": [
1765
+ {
1766
+ "Ref": "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2",
1767
+ },
1768
+ ],
1769
+ },
1770
+ "Type": "AWS::IAM::Policy",
1771
+ },
1772
+ "notifysqsEC095A61": {
1773
+ "DeletionPolicy": "Delete",
1774
+ "Properties": {
1775
+ "QueueName": "dev-cdk-test-deploy-notification-queue",
1776
+ "Tags": [
1777
+ {
1778
+ "Key": "env",
1779
+ "Value": "dev",
1780
+ },
1781
+ {
1782
+ "Key": "name",
1783
+ "Value": "cdk-test-deploy",
1784
+ },
1785
+ ],
1786
+ },
1787
+ "Type": "AWS::SQS::Queue",
1788
+ "UpdateReplacePolicy": "Delete",
1789
+ },
1790
+ "notifysqsPolicy96E4066E": {
1791
+ "Properties": {
1792
+ "PolicyDocument": {
1793
+ "Statement": [
1794
+ {
1795
+ "Action": "sqs:SendMessage",
1796
+ "Condition": {
1797
+ "ArnEquals": {
1798
+ "aws:SourceArn": {
1799
+ "Ref": "mainsnsC0381B34",
1800
+ },
1801
+ },
1802
+ },
1803
+ "Effect": "Allow",
1804
+ "Principal": {
1805
+ "Service": "sns.amazonaws.com",
1806
+ },
1807
+ "Resource": {
1808
+ "Fn::GetAtt": [
1809
+ "notifysqsEC095A61",
1810
+ "Arn",
1811
+ ],
1812
+ },
1813
+ },
1814
+ ],
1815
+ "Version": "2012-10-17",
1816
+ },
1817
+ "Queues": [
1818
+ {
1819
+ "Ref": "notifysqsEC095A61",
1820
+ },
1821
+ ],
1822
+ },
1823
+ "Type": "AWS::SQS::QueuePolicy",
1824
+ },
1825
+ "notifysqsTestInfraStackmainsnsA010224C9104B89F": {
1826
+ "DependsOn": [
1827
+ "notifysqsPolicy96E4066E",
1828
+ ],
1829
+ "Properties": {
1830
+ "Endpoint": {
1831
+ "Fn::GetAtt": [
1832
+ "notifysqsEC095A61",
1833
+ "Arn",
1834
+ ],
1835
+ },
1836
+ "FilterPolicy": {
1837
+ "action": [
1838
+ "command-status",
1839
+ "task-status",
1840
+ ],
1841
+ },
1842
+ "Protocol": "sqs",
1843
+ "RawMessageDelivery": true,
1844
+ "TopicArn": {
1845
+ "Ref": "mainsnsC0381B34",
1846
+ },
1847
+ },
1848
+ "Type": "AWS::SNS::Subscription",
1849
+ },
1850
+ "publicbucket0D82CFFB": {
1851
+ "DeletionPolicy": "Delete",
1852
+ "Properties": {
1853
+ "BucketName": "dev-cdk-test-deploy-public",
1854
+ "CorsConfiguration": {
1855
+ "CorsRules": [
1856
+ {
1857
+ "AllowedHeaders": [
1858
+ "*",
1859
+ ],
1860
+ "AllowedMethods": [
1861
+ "GET",
1862
+ "PUT",
1863
+ "POST",
1864
+ ],
1865
+ "AllowedOrigins": [
1866
+ "*",
1867
+ ],
1868
+ "MaxAge": 3000,
1869
+ },
1870
+ ],
1871
+ },
1872
+ "PublicAccessBlockConfiguration": {
1873
+ "BlockPublicAcls": true,
1874
+ "BlockPublicPolicy": true,
1875
+ "IgnorePublicAcls": true,
1876
+ "RestrictPublicBuckets": true,
1877
+ },
1878
+ "Tags": [
1879
+ {
1880
+ "Key": "env",
1881
+ "Value": "dev",
1882
+ },
1883
+ {
1884
+ "Key": "name",
1885
+ "Value": "cdk-test-deploy",
1886
+ },
1887
+ ],
1888
+ },
1889
+ "Type": "AWS::S3::Bucket",
1890
+ "UpdateReplacePolicy": "Delete",
1891
+ },
1892
+ "publicbucketOAI56D47DD1": {
1893
+ "Properties": {
1894
+ "CloudFrontOriginAccessIdentityConfig": {
1895
+ "Comment": "Allows CloudFront to reach the bucket",
1896
+ },
1897
+ },
1898
+ "Type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
1899
+ },
1900
+ "publicbucketPolicy3A0184E3": {
1901
+ "Properties": {
1902
+ "Bucket": {
1903
+ "Ref": "publicbucket0D82CFFB",
1904
+ },
1905
+ "PolicyDocument": {
1906
+ "Statement": [
1907
+ {
1908
+ "Action": "s3:GetObject",
1909
+ "Effect": "Allow",
1910
+ "Principal": {
1911
+ "CanonicalUser": {
1912
+ "Fn::GetAtt": [
1913
+ "publicbucketOAI56D47DD1",
1914
+ "S3CanonicalUserId",
1915
+ ],
1916
+ },
1917
+ },
1918
+ "Resource": {
1919
+ "Fn::Join": [
1920
+ "",
1921
+ [
1922
+ {
1923
+ "Fn::GetAtt": [
1924
+ "publicbucket0D82CFFB",
1925
+ "Arn",
1926
+ ],
1927
+ },
1928
+ "/*",
1929
+ ],
1930
+ ],
1931
+ },
1932
+ },
1933
+ ],
1934
+ "Version": "2012-10-17",
1935
+ },
1936
+ },
1937
+ "Type": "AWS::S3::BucketPolicy",
1938
+ },
1939
+ "publicbucketdistribution7A24D15F": {
1940
+ "Properties": {
1941
+ "DistributionConfig": {
1942
+ "DefaultCacheBehavior": {
1943
+ "AllowedMethods": [
1944
+ "GET",
1945
+ "HEAD",
1946
+ ],
1947
+ "CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
1948
+ "CachedMethods": [
1949
+ "GET",
1950
+ "HEAD",
1951
+ ],
1952
+ "Compress": true,
1953
+ "TargetOriginId": "TestInfraStackpublicbucketdistributionOrigin129EB7A5E",
1954
+ "ViewerProtocolPolicy": "redirect-to-https",
1955
+ },
1956
+ "Enabled": true,
1957
+ "HttpVersion": "http2",
1958
+ "IPV6Enabled": true,
1959
+ "Origins": [
1960
+ {
1961
+ "DomainName": {
1962
+ "Fn::GetAtt": [
1963
+ "publicbucket0D82CFFB",
1964
+ "RegionalDomainName",
1965
+ ],
1966
+ },
1967
+ "Id": "TestInfraStackpublicbucketdistributionOrigin129EB7A5E",
1968
+ "S3OriginConfig": {
1969
+ "OriginAccessIdentity": {
1970
+ "Fn::Join": [
1971
+ "",
1972
+ [
1973
+ "origin-access-identity/cloudfront/",
1974
+ {
1975
+ "Ref": "publicbucketOAI56D47DD1",
1976
+ },
1977
+ ],
1978
+ ],
1979
+ },
1980
+ },
1981
+ },
1982
+ ],
1983
+ "PriceClass": "PriceClass_200",
1984
+ "Restrictions": {
1985
+ "GeoRestriction": {
1986
+ "Locations": [
1987
+ "JP",
1988
+ "VN",
1989
+ ],
1990
+ "RestrictionType": "whitelist",
1991
+ },
1992
+ },
1993
+ },
1994
+ "Tags": [
1995
+ {
1996
+ "Key": "env",
1997
+ "Value": "dev",
1998
+ },
1999
+ {
2000
+ "Key": "name",
2001
+ "Value": "cdk-test-deploy",
2002
+ },
2003
+ ],
2004
+ },
2005
+ "Type": "AWS::CloudFront::Distribution",
2006
+ },
2007
+ "realtime0CF38FF2": {
2008
+ "Properties": {
2009
+ "AdditionalAuthenticationProviders": [
2010
+ {
2011
+ "AuthenticationType": "AWS_IAM",
2012
+ },
2013
+ {
2014
+ "AuthenticationType": "AMAZON_COGNITO_USER_POOLS",
2015
+ "UserPoolConfig": {
2016
+ "AwsRegion": "ap-northeast-1",
2017
+ "UserPoolId": "ap-northeast-1_xlQVMPxtx",
2018
+ },
2019
+ },
2020
+ ],
2021
+ "AuthenticationType": "API_KEY",
2022
+ "Name": "dev-cdk-test-deploy-realtime",
2023
+ "Tags": [
2024
+ {
2025
+ "Key": "env",
2026
+ "Value": "dev",
2027
+ },
2028
+ {
2029
+ "Key": "name",
2030
+ "Value": "cdk-test-deploy",
2031
+ },
2032
+ ],
2033
+ "XrayEnabled": true,
2034
+ },
2035
+ "Type": "AWS::AppSync::GraphQLApi",
2036
+ },
2037
+ "realtimeDefaultApiKeyBD0EC5CB": {
2038
+ "DependsOn": [
2039
+ "realtimeSchema7B454650",
2040
+ ],
2041
+ "Properties": {
2042
+ "ApiId": {
2043
+ "Fn::GetAtt": [
2044
+ "realtime0CF38FF2",
2045
+ "ApiId",
2046
+ ],
2047
+ },
2048
+ "Expires": 1762419954,
2049
+ },
2050
+ "Type": "AWS::AppSync::ApiKey",
2051
+ },
2052
+ "realtimeDomainAssociationD479792F": {
2053
+ "DependsOn": [
2054
+ "realtimeDomainName01674B94",
2055
+ ],
2056
+ "Properties": {
2057
+ "ApiId": {
2058
+ "Fn::GetAtt": [
2059
+ "realtime0CF38FF2",
2060
+ "ApiId",
2061
+ ],
2062
+ },
2063
+ "DomainName": "dev-appsync-cdk.mbc-cqrs-serverless.mbc-net.com",
2064
+ },
2065
+ "Type": "AWS::AppSync::DomainNameApiAssociation",
2066
+ },
2067
+ "realtimeDomainName01674B94": {
2068
+ "Properties": {
2069
+ "CertificateArn": "arn:aws:acm:us-east-1:058264278704:certificate/668eb08d-b92f-488c-9e32-56854d487315",
2070
+ "Description": {
2071
+ "Fn::Join": [
2072
+ "",
2073
+ [
2074
+ "domain for dev-cdk-test-deploy-realtime at ",
2075
+ {
2076
+ "Fn::GetAtt": [
2077
+ "realtime0CF38FF2",
2078
+ "GraphQLUrl",
2079
+ ],
2080
+ },
2081
+ ],
2082
+ ],
2083
+ },
2084
+ "DomainName": "dev-appsync-cdk.mbc-cqrs-serverless.mbc-net.com",
2085
+ },
2086
+ "Type": "AWS::AppSync::DomainName",
2087
+ },
2088
+ "realtimeNoneDataSource2E50F7A6": {
2089
+ "Properties": {
2090
+ "ApiId": {
2091
+ "Fn::GetAtt": [
2092
+ "realtime0CF38FF2",
2093
+ "ApiId",
2094
+ ],
2095
+ },
2096
+ "Name": "NoneDataSource",
2097
+ "Type": "NONE",
2098
+ },
2099
+ "Type": "AWS::AppSync::DataSource",
2100
+ },
2101
+ "realtimeSchema7B454650": {
2102
+ "Properties": {
2103
+ "ApiId": {
2104
+ "Fn::GetAtt": [
2105
+ "realtime0CF38FF2",
2106
+ "ApiId",
2107
+ ],
2108
+ },
2109
+ "Definition": "type Message @aws_api_key @aws_iam @aws_cognito_user_pools @aws_oidc {
2110
+ id: String!
2111
+ table: String!
2112
+ pk: String!
2113
+ sk: String!
2114
+ tenantCode: String!
2115
+ action: String!
2116
+ content: AWSJSON!
2117
+ }
2118
+
2119
+ type Query {
2120
+ getMessage(id: String!): Message
2121
+ }
2122
+
2123
+ type Mutation {
2124
+ sendMessage(message: AWSJSON!): Message! @aws_iam
2125
+ }
2126
+
2127
+ type Subscription {
2128
+ onMessage(tenantCode: String!, action: String, id: String): Message
2129
+ @aws_subscribe(mutations: ["sendMessage"])
2130
+ @aws_api_key
2131
+ @aws_iam
2132
+ @aws_cognito_user_pools
2133
+ @aws_oidc
2134
+ }
2135
+
2136
+ schema {
2137
+ query: Query
2138
+ mutation: Mutation
2139
+ subscription: Subscription
2140
+ }
2141
+ ",
2142
+ },
2143
+ "Type": "AWS::AppSync::GraphQLSchema",
2144
+ },
2145
+ "realtimesendMessageResolverA93F264B": {
2146
+ "DependsOn": [
2147
+ "realtimeNoneDataSource2E50F7A6",
2148
+ "realtimeSchema7B454650",
2149
+ ],
2150
+ "Properties": {
2151
+ "ApiId": {
2152
+ "Fn::GetAtt": [
2153
+ "realtime0CF38FF2",
2154
+ "ApiId",
2155
+ ],
2156
+ },
2157
+ "DataSourceName": "NoneDataSource",
2158
+ "FieldName": "sendMessage",
2159
+ "Kind": "UNIT",
2160
+ "RequestMappingTemplate": "{"version": "2018-05-29","payload": $util.toJson($context.arguments.message)}",
2161
+ "ResponseMappingTemplate": "$util.toJson($context.result)",
2162
+ "TypeName": "Mutation",
2163
+ },
2164
+ "Type": "AWS::AppSync::Resolver",
2165
+ },
2166
+ "taskdeadlettersqs91D16094": {
2167
+ "DeletionPolicy": "Delete",
2168
+ "Properties": {
2169
+ "QueueName": "dev-cdk-test-deploy-task-dead-letter-queue",
2170
+ "Tags": [
2171
+ {
2172
+ "Key": "env",
2173
+ "Value": "dev",
2174
+ },
2175
+ {
2176
+ "Key": "name",
2177
+ "Value": "cdk-test-deploy",
2178
+ },
2179
+ ],
2180
+ },
2181
+ "Type": "AWS::SQS::Queue",
2182
+ "UpdateReplacePolicy": "Delete",
2183
+ },
2184
+ "taskdeadlettersqsPolicy9CAEB195": {
2185
+ "Properties": {
2186
+ "PolicyDocument": {
2187
+ "Statement": [
2188
+ {
2189
+ "Action": "sqs:SendMessage",
2190
+ "Condition": {
2191
+ "ArnEquals": {
2192
+ "aws:SourceArn": {
2193
+ "Ref": "alarmsnsFB7BBC3B",
2194
+ },
2195
+ },
2196
+ },
2197
+ "Effect": "Allow",
2198
+ "Principal": {
2199
+ "Service": "sns.amazonaws.com",
2200
+ },
2201
+ "Resource": {
2202
+ "Fn::GetAtt": [
2203
+ "taskdeadlettersqs91D16094",
2204
+ "Arn",
2205
+ ],
2206
+ },
2207
+ },
2208
+ ],
2209
+ "Version": "2012-10-17",
2210
+ },
2211
+ "Queues": [
2212
+ {
2213
+ "Ref": "taskdeadlettersqs91D16094",
2214
+ },
2215
+ ],
2216
+ },
2217
+ "Type": "AWS::SQS::QueuePolicy",
2218
+ },
2219
+ "taskdeadlettersqsTestInfraStackalarmsnsB0FD064D9665A5CE": {
2220
+ "DependsOn": [
2221
+ "taskdeadlettersqsPolicy9CAEB195",
2222
+ ],
2223
+ "Properties": {
2224
+ "Endpoint": {
2225
+ "Fn::GetAtt": [
2226
+ "taskdeadlettersqs91D16094",
2227
+ "Arn",
2228
+ ],
2229
+ },
2230
+ "Protocol": "sqs",
2231
+ "RawMessageDelivery": true,
2232
+ "TopicArn": {
2233
+ "Ref": "alarmsnsFB7BBC3B",
2234
+ },
2235
+ },
2236
+ "Type": "AWS::SNS::Subscription",
2237
+ },
2238
+ "tasksdecs1B0120D7": {
2239
+ "DeletionPolicy": "Delete",
2240
+ "DependsOn": [
2241
+ "tasksdecsCustomResourcePolicy766680A1",
2242
+ ],
2243
+ "Properties": {
2244
+ "Create": "{"service":"DynamoDB","action":"describeTable","parameters":{"TableName":"dev-cdk-test-deploy-tasks"},"physicalResourceId":{"responsePath":"Table.TableArn"}}",
2245
+ "InstallLatestAwsSdk": true,
2246
+ "ServiceToken": {
2247
+ "Fn::GetAtt": [
2248
+ "AWS679f53fac002430cb0da5b7982bd22872D164C4C",
2249
+ "Arn",
2250
+ ],
2251
+ },
2252
+ },
2253
+ "Type": "Custom::AWS",
2254
+ "UpdateReplacePolicy": "Delete",
2255
+ },
2256
+ "tasksdecsCustomResourcePolicy766680A1": {
2257
+ "Properties": {
2258
+ "PolicyDocument": {
2259
+ "Statement": [
2260
+ {
2261
+ "Action": "dynamodb:DescribeTable",
2262
+ "Effect": "Allow",
2263
+ "Resource": "*",
2264
+ },
2265
+ ],
2266
+ "Version": "2012-10-17",
2267
+ },
2268
+ "PolicyName": "tasksdecsCustomResourcePolicy766680A1",
2269
+ "Roles": [
2270
+ {
2271
+ "Ref": "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2",
2272
+ },
2273
+ ],
2274
+ },
2275
+ "Type": "AWS::IAM::Policy",
2276
+ },
2277
+ "tasksqs12D9B615": {
2278
+ "DeletionPolicy": "Delete",
2279
+ "Properties": {
2280
+ "QueueName": "dev-cdk-test-deploy-task-action-queue",
2281
+ "RedrivePolicy": {
2282
+ "deadLetterTargetArn": {
2283
+ "Fn::GetAtt": [
2284
+ "taskdeadlettersqs91D16094",
2285
+ "Arn",
2286
+ ],
2287
+ },
2288
+ "maxReceiveCount": 5,
2289
+ },
2290
+ "Tags": [
2291
+ {
2292
+ "Key": "env",
2293
+ "Value": "dev",
2294
+ },
2295
+ {
2296
+ "Key": "name",
2297
+ "Value": "cdk-test-deploy",
2298
+ },
2299
+ ],
2300
+ },
2301
+ "Type": "AWS::SQS::Queue",
2302
+ "UpdateReplacePolicy": "Delete",
2303
+ },
2304
+ "tasksqsPolicyF1D0C5F5": {
2305
+ "Properties": {
2306
+ "PolicyDocument": {
2307
+ "Statement": [
2308
+ {
2309
+ "Action": "sqs:SendMessage",
2310
+ "Condition": {
2311
+ "ArnEquals": {
2312
+ "aws:SourceArn": {
2313
+ "Ref": "mainsnsC0381B34",
2314
+ },
2315
+ },
2316
+ },
2317
+ "Effect": "Allow",
2318
+ "Principal": {
2319
+ "Service": "sns.amazonaws.com",
2320
+ },
2321
+ "Resource": {
2322
+ "Fn::GetAtt": [
2323
+ "tasksqs12D9B615",
2324
+ "Arn",
2325
+ ],
2326
+ },
2327
+ },
2328
+ ],
2329
+ "Version": "2012-10-17",
2330
+ },
2331
+ "Queues": [
2332
+ {
2333
+ "Ref": "tasksqs12D9B615",
2334
+ },
2335
+ ],
2336
+ },
2337
+ "Type": "AWS::SQS::QueuePolicy",
2338
+ },
2339
+ "tasksqsTestInfraStackmainsnsA010224CA61CC66C": {
2340
+ "DependsOn": [
2341
+ "tasksqsPolicyF1D0C5F5",
2342
+ ],
2343
+ "Properties": {
2344
+ "Endpoint": {
2345
+ "Fn::GetAtt": [
2346
+ "tasksqs12D9B615",
2347
+ "Arn",
2348
+ ],
2349
+ },
2350
+ "FilterPolicy": {
2351
+ "action": [
2352
+ "task-execute",
2353
+ ],
2354
+ },
2355
+ "Protocol": "sqs",
2356
+ "RawMessageDelivery": true,
2357
+ "TopicArn": {
2358
+ "Ref": "mainsnsC0381B34",
2359
+ },
2360
+ },
2361
+ "Type": "AWS::SNS::Subscription",
2362
+ },
2363
+ },
2364
+ "Rules": {
2365
+ "CheckBootstrapVersion": {
2366
+ "Assertions": [
2367
+ {
2368
+ "Assert": {
2369
+ "Fn::Not": [
2370
+ {
2371
+ "Fn::Contains": [
2372
+ [
2373
+ "1",
2374
+ "2",
2375
+ "3",
2376
+ "4",
2377
+ "5",
2378
+ ],
2379
+ {
2380
+ "Ref": "BootstrapVersion",
2381
+ },
2382
+ ],
2383
+ },
2384
+ ],
2385
+ },
2386
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.",
2387
+ },
2388
+ ],
2389
+ },
2390
+ },
2391
+ }
2392
+ `;