@itentialopensource/adapter-aws_lambda 0.1.1

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 (77) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +19 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +211 -0
  11. package/CALLS.md +603 -0
  12. package/CODE_OF_CONDUCT.md +43 -0
  13. package/CONTRIBUTING.md +13 -0
  14. package/ENHANCE.md +69 -0
  15. package/LICENSE +201 -0
  16. package/PROPERTIES.md +661 -0
  17. package/README.md +344 -0
  18. package/SUMMARY.md +9 -0
  19. package/SYSTEMINFO.md +14 -0
  20. package/TROUBLESHOOT.md +56 -0
  21. package/UTILITIES.md +473 -0
  22. package/adapter.js +8845 -0
  23. package/adapterBase.js +1488 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/AccountSettings/action.json +25 -0
  33. package/entities/AccountSettings/schema.json +19 -0
  34. package/entities/CodeSigningConfigs/action.json +127 -0
  35. package/entities/CodeSigningConfigs/schema.json +57 -0
  36. package/entities/EventSourceMappings/action.json +106 -0
  37. package/entities/EventSourceMappings/schema.json +78 -0
  38. package/entities/Functions/action.json +860 -0
  39. package/entities/Functions/schema.json +170 -0
  40. package/entities/Layers/action.json +189 -0
  41. package/entities/Layers/schema.json +126 -0
  42. package/entities/Tags/action.json +65 -0
  43. package/entities/Tags/schema.json +32 -0
  44. package/error.json +190 -0
  45. package/metadata.json +58 -0
  46. package/package.json +77 -0
  47. package/pronghorn.json +4833 -0
  48. package/propertiesDecorators.json +14 -0
  49. package/propertiesSchema.json +1635 -0
  50. package/report/AWS Lambda-swagger.fixed.json +15883 -0
  51. package/report/adapterInfo.json +10 -0
  52. package/report/creationReport.json +615 -0
  53. package/sampleProperties.json +274 -0
  54. package/test/integration/adapterTestBasicGet.js +117 -0
  55. package/test/integration/adapterTestConnectivity.js +117 -0
  56. package/test/integration/adapterTestIntegration.js +2103 -0
  57. package/test/unit/adapterBaseTestUnit.js +1626 -0
  58. package/test/unit/adapterTestUnit.js +3942 -0
  59. package/utils/adapterInfo.js +156 -0
  60. package/utils/argParser.js +44 -0
  61. package/utils/checkMigrate.js +102 -0
  62. package/utils/entitiesToDB.js +190 -0
  63. package/utils/findPath.js +74 -0
  64. package/utils/logger.js +26 -0
  65. package/utils/methodDocumentor.js +273 -0
  66. package/utils/modify.js +153 -0
  67. package/utils/mongoDbConnection.js +79 -0
  68. package/utils/mongoUtils.js +162 -0
  69. package/utils/pre-commit.sh +32 -0
  70. package/utils/removeHooks.js +20 -0
  71. package/utils/setup.js +33 -0
  72. package/utils/taskMover.js +308 -0
  73. package/utils/tbScript.js +103 -0
  74. package/utils/tbUtils.js +347 -0
  75. package/utils/testRunner.js +298 -0
  76. package/utils/troubleshootingAdapter.js +177 -0
  77. package/utils/updateAdapterConfig.js +158 -0
@@ -0,0 +1,106 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createEventSourceMapping",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/2015-03-31/event-source-mappings/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "listEventSourceMappings",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/2015-03-31/event-source-mappings/?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "deleteEventSourceMapping",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/2015-03-31/event-source-mappings/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "getEventSourceMapping",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/2015-03-31/event-source-mappings/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "updateEventSourceMapping",
87
+ "protocol": "REST",
88
+ "method": "PUT",
89
+ "entitypath": "{base_path}/{version}/2015-03-31/event-source-mappings/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "createEventSourceMapping",
12
+ "enum": [
13
+ "createEventSourceMapping",
14
+ "listEventSourceMappings",
15
+ "deleteEventSourceMapping",
16
+ "getEventSourceMapping",
17
+ "updateEventSourceMapping"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ },
21
+ "eventSourceArn": {
22
+ "type": "string",
23
+ "description": "The Amazon Resource Name (ARN) of the event source. Amazon Kinesis – The ARN of the data stream or a stream consumer. Amazon DynamoDB Streams – The ARN...(description truncated)",
24
+ "parse": false,
25
+ "encode": false,
26
+ "encrypt": {
27
+ "type": "AES",
28
+ "key": ""
29
+ },
30
+ "external_name": "EventSourceArn"
31
+ },
32
+ "functionName": {
33
+ "type": "string",
34
+ "description": "The name of the Lambda function. Name formats Function name – MyFunction . Function ARN – arn:aws:lambda:us-west-2:123456789012:function:MyFunc...(description truncated)",
35
+ "parse": false,
36
+ "encode": false,
37
+ "encrypt": {
38
+ "type": "AES",
39
+ "key": ""
40
+ },
41
+ "external_name": "FunctionName"
42
+ },
43
+ "marker": {
44
+ "type": "string",
45
+ "description": "A pagination token returned by a previous call.",
46
+ "parse": false,
47
+ "encode": false,
48
+ "encrypt": {
49
+ "type": "AES",
50
+ "key": ""
51
+ },
52
+ "external_name": "Marker"
53
+ },
54
+ "maxItems": {
55
+ "type": "number",
56
+ "description": "The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number highe...(description truncated)",
57
+ "parse": false,
58
+ "encode": false,
59
+ "encrypt": {
60
+ "type": "AES",
61
+ "key": ""
62
+ },
63
+ "external_name": "MaxItems"
64
+ },
65
+ "uUID": {
66
+ "type": "string",
67
+ "description": "The identifier of the event source mapping.",
68
+ "parse": false,
69
+ "encode": false,
70
+ "encrypt": {
71
+ "type": "AES",
72
+ "key": ""
73
+ },
74
+ "external_name": "UUID"
75
+ }
76
+ },
77
+ "definitions": {}
78
+ }