@izara_project/izara-core-generate-service-code 1.0.44 → 1.0.45

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 (41) hide show
  1. package/package.json +3 -3
  2. package/src/generateCode/generateFlowStepWithPlugIn/firstFlowStep/yaml/template.ejs +13 -1
  3. package/src/generateCode/generateInitialSetup/externalServiceComponent/lambdaRole/template.ejs +1 -0
  4. package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/functionYaml/data.js +37 -18
  5. package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/functionYaml/template.ejs +33 -9
  6. package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/functionYaml/data.js +26 -11
  7. package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/functionYaml/template.ejs +33 -9
  8. package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/functionYaml/data.js +28 -11
  9. package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/functionYaml/template.ejs +33 -9
  10. package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/functionYaml/data.js +26 -13
  11. package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/functionYaml/template.ejs +27 -9
  12. package/src/generateCode/generateSchema/relationshipPerActionComponent/index.js +3 -2
  13. package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/functionYaml/data.js +27 -11
  14. package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/functionYaml/template.ejs +33 -9
  15. package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/functionYaml/data.js +27 -6
  16. package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/functionYaml/template.ejs +33 -9
  17. package/src/libs/Libs.js +13 -12
  18. package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
  19. package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  20. package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  21. package/src/generateCode/generateSchema/relationshipPerActionComponent/changeRelationship/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
  22. package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
  23. package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  24. package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  25. package/src/generateCode/generateSchema/relationshipPerActionComponent/create/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
  26. package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
  27. package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  28. package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  29. package/src/generateCode/generateSchema/relationshipPerActionComponent/delete/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
  30. package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -21
  31. package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  32. package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  33. package/src/generateCode/generateSchema/relationshipPerActionComponent/get/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -18
  34. package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
  35. package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -17
  36. package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  37. package/src/generateCode/generateSchema/relationshipPerActionComponent/moveRelationship/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
  38. package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/functionYaml/templateByHandler/apiTemplate.ejs +0 -20
  39. package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/functionYaml/templateByHandler/dsqTemplate.ejs +0 -18
  40. package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/functionYaml/templateByHandler/invTemplate.ejs +0 -13
  41. package/src/generateCode/generateSchema/relationshipPerActionComponent/update/action/functionYaml/templateByHandler/sqsTemplate.ejs +0 -17
@@ -1,9 +1,33 @@
1
- <% if (handlerType === "hdrApi") { %>
2
- <%- include(apiTemplate),{ functionName, handlerType, additionalResourcePermission, resourceLocation, functionNameConfig, roleName, serviceTag } %>
3
- <% } else if (handlerType === "hdrDsq") { %>
4
- <%- include(dsqTemplate), { functionName, handlerType, additionalResourcePermission, resourceLocation, functionNameConfig, roleName } %>
5
- <% } else if (handlerType === "hdrInv") { %>
6
- <%- include(invTemplate), { functionName, handlerType, additionalResourcePermission, resourceLocation, functionNameConfig, roleName } %>
7
- <% } else if (handlerType === "hdrSqs") { %>
8
- <%- include(sqsTemplate),{ functionName, handlerType, additionalResourcePermission, resourceLocation, functionNameConfig, roleName } %>
9
- <% } %>
1
+ <%_ const join = require('path').join; _%>
2
+ <%- firstLetterUpperCase(functionNameConfig) %>:
3
+ handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
+ name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
+ role: <%- roleName %>Role
6
+ #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
+ #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
+ <%_ if (handlerType === 'hdrDsq' || handlerType === 'hdrSqs') { _%>
9
+ events:
10
+ - sqs:
11
+ arn: <%- event %>
12
+ batchSize: 10
13
+ <%_ } else if (handlerType === 'hdrApi' && resourceApis.length > 0) { _%>
14
+ events:
15
+ <%_ resourceApis.forEach(api => { _%>
16
+ - httpApi:
17
+ path: <%- api.path %>
18
+ method: <%- api.method %>
19
+ #<#<%- api.hookTagApp %>#>
20
+ # authorizer: authorizerServiceSchema
21
+ #<#/<%- api.hookTagApp %>#>
22
+ - httpApi:
23
+ path: <%- api.pathWithUser %>
24
+ method: <%- api.method %>
25
+ #<#<%- api.hookTagUser %>#>
26
+ # authorizer: authorizerIdentifiers
27
+ #<#/<%- api.hookTagUser %>#>
28
+ <%_ }) _%>
29
+ <%_ } _%>
30
+
31
+ <%_ function firstLetterUpperCase(text) {
32
+ return text.charAt(0).toUpperCase() + text.slice(1)
33
+ } _%>
@@ -37,7 +37,10 @@ const {
37
37
  HANDLER
38
38
  } = consts;
39
39
 
40
- const { firstLetterUpperCase: upperCase, getLocalConfig } = utils;
40
+ const { firstLetterUpperCase: upperCase,
41
+ firstLetterLowerCase: lowerCase,
42
+ getLocalConfig
43
+ } = utils;
41
44
 
42
45
  const {
43
46
  createIamRole,
@@ -165,6 +168,21 @@ function createParamForCreateSource(
165
168
  }
166
169
  }
167
170
 
171
+ const serviceTag = getLocalConfig('iz_serviceTag');
172
+
173
+ const resourcesApi = [];
174
+ if (handlerType === HANDLER.hdrApi) {
175
+ allObjectRelationships.map(relationshipSchema => (
176
+ resourcesApi.push({
177
+ event: lowerCase(Object.keys(relationshipSchema)[0]),
178
+ method: 'post',
179
+ action: 'update'
180
+ }))
181
+ )
182
+ }
183
+
184
+ const event = resourceNames(RESOURCE_CLASSES.sqs, upperCase(functionName) + upperCase(handlerType));
185
+
168
186
  return {
169
187
  templatePath: templatePath,
170
188
  templateData: {
@@ -176,11 +194,14 @@ function createParamForCreateSource(
176
194
  upperCase(SHORT_FUNCTION_NAME(FUNCTION_NAME.updateRel)) +
177
195
  upperCase(shortNameHandler(handlerType)),
178
196
  roleName: SOURCE_GENERATE_IAM_ROLE.RelationshipRole,
179
- serviceTag: getLocalConfig('iz_serviceTag'),
180
- apiTemplate,
181
- dsqTemplate,
182
- invTemplate,
183
- sqsTemplate
197
+ resourceApis: resourcesApi.map(api => ({
198
+ path: `/${serviceTag}/${api.event}/${api.action}`,
199
+ pathWithUser: `/${serviceTag}/${api.event}/${api.action}/{targetUserId}`,
200
+ method: api.method,
201
+ hookTagApp: `${upperCase(api.event)}AppLevelAuthorizer`,
202
+ hookTagUser: `${upperCase(api.event)}UserLevelAuthorizer`
203
+ })),
204
+ event
184
205
  },
185
206
  setting: {
186
207
  savePath: path.join(srcPath, SOURCE_PATH.appYaml),
@@ -1,9 +1,33 @@
1
- <% if (handlerType === "hdrApi") { %>
2
- <%- include(apiTemplate),{ functionName, handlerType, additionalResourcePermission, resourceLocation, functionNameConfig, roleName, serviceTag } %>
3
- <% } else if (handlerType === "hdrDsq") { %>
4
- <%- include(dsqTemplate), { functionName, handlerType, additionalResourcePermission, resourceLocation, functionNameConfig, roleName } %>
5
- <% } else if (handlerType === "hdrInv") { %>
6
- <%- include(invTemplate), { functionName, handlerType, additionalResourcePermission, resourceLocation, functionNameConfig, roleName } %>
7
- <% } else if (handlerType === "hdrSqs") { %>
8
- <%- include(sqsTemplate),{ functionName, handlerType, additionalResourcePermission, resourceLocation, functionNameConfig, roleName } %>
9
- <% } %>
1
+ <%_ const join = require('path').join; _%>
2
+ <%- firstLetterUpperCase(functionNameConfig) %>:
3
+ handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
+ name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
+ role: <%- roleName %>Role
6
+ #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
+ #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
+ <%_ if (handlerType === 'hdrDsq' || handlerType === 'hdrSqs') { _%>
9
+ events:
10
+ - sqs:
11
+ arn: <%- event %>
12
+ batchSize: 10
13
+ <%_ } else if (handlerType === 'hdrApi' && resourceApis.length > 0) { _%>
14
+ events:
15
+ <%_ resourceApis.forEach(api => { _%>
16
+ - httpApi:
17
+ path: <%- api.path %>
18
+ method: <%- api.method %>
19
+ #<#<%- api.hookTagApp %>#>
20
+ # authorizer: authorizerServiceSchema
21
+ #<#/<%- api.hookTagApp %>#>
22
+ - httpApi:
23
+ path: <%- api.pathWithUser %>
24
+ method: <%- api.method %>
25
+ #<#<%- api.hookTagUser %>#>
26
+ # authorizer: authorizerIdentifiers
27
+ #<#/<%- api.hookTagUser %>#>
28
+ <%_ }) _%>
29
+ <%_ } _%>
30
+
31
+ <%_ function firstLetterUpperCase(text) {
32
+ return text.charAt(0).toUpperCase() + text.slice(1)
33
+ } _%>
package/src/libs/Libs.js CHANGED
@@ -120,29 +120,30 @@ function externalResourceName(resourceClass, resourceName, serviceTag) {
120
120
  }
121
121
 
122
122
  function externalResourceYaml(resourceClass, resourceName, serviceTag) {
123
-
124
123
  return {
125
124
  [RESOURCE_CLASSES.dynamoDbTable]:
126
125
  'arn:aws:dynamodb:${self:custom.iz_region}:${self:custom.iz_accountId}:table/' +
127
- serviceTag ?
128
- '${self:custom.iz_resourcePrefix}' + resourceName :
129
- serviceTag + '${self:custom.iz_stage}' + resourceName,
126
+ (serviceTag ?
127
+ serviceTag + '${self:custom.iz_stage}' + resourceName :
128
+ '${self:custom.iz_resourcePrefix}' + resourceName),
130
129
  // `${ serviceTag } ` +
131
130
  // `${ resourceName } `,
132
131
  [RESOURCE_CLASSES.lambda]:
133
132
  'arn:aws:lambda:${self: custom.iz_region}:${self:custom.iz_accountId}:function:' +
134
- serviceTag ?
135
- '${self:custom.iz_resourcePrefix}' + resourceName :
136
- serviceTag + '${self:custom.iz_stage}' + resourceName,
133
+ (serviceTag ?
134
+ serviceTag + '${self:custom.iz_stage}' + resourceName :
135
+ '${self:custom.iz_resourcePrefix}' + resourceName),
136
+
137
137
  [RESOURCE_CLASSES.sns]:
138
138
  'arn:aws:sns:${self:custom.iz_region}:${self:custom.iz_accountId}:' +
139
- serviceTag ? '${self:custom.iz_serviceTag}_${self:custom.iz_stage}_' + resourceName :
140
- serviceTag + '_${self:custom.iz_stage}_' + resourceName,
139
+ (serviceTag ? serviceTag + '_${self:custom.iz_stage}_' + resourceName :
140
+ '${self:custom.iz_serviceTag}_${self:custom.iz_stage}_' + resourceName),
141
+
141
142
  [RESOURCE_CLASSES.sqs]:
142
143
  'arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:' +
143
- serviceTag ?
144
- '${self:custom.iz_resourcePrefix}' + resourceName :
145
- serviceTag + '${self:custom.iz_stage}' + resourceName,
144
+ (serviceTag ?
145
+ serviceTag + '${self:custom.iz_stage}' + resourceName :
146
+ '${self:custom.iz_resourcePrefix}' + resourceName),
146
147
  }[resourceClass];
147
148
  }
148
149
 
@@ -1,20 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - http:
10
- path: /<%- serviceTag %>/<%- firstLetterLowerCase(functionName) %>/<%- functionName %>/
11
- method: put
12
- cors: true
13
- #<#Authorizer#>
14
- #<#/Authorizer#>
15
- <%_ function firstLetterUpperCase(text){
16
- return text.charAt(0).toUpperCase() + text.slice(1)
17
- } _%>
18
- <%_ function firstLetterLowerCase(str) {
19
- return str.charAt(0).toLowerCase() + str.slice(1)
20
- } _%>
@@ -1,17 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
- <%_ function firstLetterUpperCase(text){
13
- return text.charAt(0).toUpperCase() + text.slice(1)
14
- } _%>
15
- <%_ function firstLetterLowerCase(str) {
16
- return str.charAt(0).toLowerCase() + str.slice(1)
17
- } _%>
@@ -1,13 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- <%_ function firstLetterUpperCase(text){
9
- return text.charAt(0).toUpperCase() + text.slice(1)
10
- } _%>
11
- <%_ function firstLetterLowerCase(str) {
12
- return str.charAt(0).toLowerCase() + str.slice(1)
13
- } _%>
@@ -1,18 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
-
13
- <%_ function firstLetterUpperCase(text){
14
- return text.charAt(0).toUpperCase() + text.slice(1)
15
- } _%>
16
- <%_ function firstLetterLowerCase(str) {
17
- return str.charAt(0).toLowerCase() + str.slice(1)
18
- } _%>
@@ -1,21 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - http:
10
- path: /<%- serviceTag %>/<%- firstLetterLowerCase(functionName) %>/<%- functionName %>/
11
- method: put
12
- cors: true
13
- #<#Authorizer#>
14
- #<#/Authorizer#>
15
-
16
- <%_ function firstLetterUpperCase(text){
17
- return text.charAt(0).toUpperCase() + text.slice(1)
18
- } _%>
19
- <%_ function firstLetterLowerCase(str) {
20
- return str.charAt(0).toLowerCase() + str.slice(1)
21
- } _%>
@@ -1,17 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
- <%_ function firstLetterUpperCase(text){
13
- return text.charAt(0).toUpperCase() + text.slice(1)
14
- } _%>
15
- <%_ function firstLetterLowerCase(str) {
16
- return str.charAt(0).toLowerCase() + str.slice(1)
17
- } _%>
@@ -1,13 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- <%_ function firstLetterUpperCase(text){
9
- return text.charAt(0).toUpperCase() + text.slice(1)
10
- } _%>
11
- <%_ function firstLetterLowerCase(str) {
12
- return str.charAt(0).toLowerCase() + str.slice(1)
13
- } _%>
@@ -1,17 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
- <%_ function firstLetterUpperCase(text){
13
- return text.charAt(0).toUpperCase() + text.slice(1)
14
- } _%>
15
- <%_ function firstLetterLowerCase(str) {
16
- return str.charAt(0).toLowerCase() + str.slice(1)
17
- } _%>
@@ -1,21 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - http:
10
- path: /<%- serviceTag %>/<%- firstLetterLowerCase(functionName) %>/<%- functionName %>/
11
- method: put
12
- cors: true
13
- #<#Authorizer#>
14
- #<#/Authorizer#>
15
-
16
- <%_ function firstLetterUpperCase(text){
17
- return text.charAt(0).toUpperCase() + text.slice(1)
18
- } _%>
19
- <%_ function firstLetterLowerCase(str) {
20
- return str.charAt(0).toLowerCase() + str.slice(1)
21
- } _%>
@@ -1,17 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
- <%_ function firstLetterUpperCase(text){
13
- return text.charAt(0).toUpperCase() + text.slice(1)
14
- } _%>
15
- <%_ function firstLetterLowerCase(str) {
16
- return str.charAt(0).toLowerCase() + str.slice(1)
17
- } _%>
@@ -1,13 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- <%_ function firstLetterUpperCase(text){
9
- return text.charAt(0).toUpperCase() + text.slice(1)
10
- } _%>
11
- <%_ function firstLetterLowerCase(str) {
12
- return str.charAt(0).toLowerCase() + str.slice(1)
13
- } _%>
@@ -1,18 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
-
13
- <%_ function firstLetterUpperCase(text){
14
- return text.charAt(0).toUpperCase() + text.slice(1)
15
- } _%>
16
- <%_ function firstLetterLowerCase(str) {
17
- return str.charAt(0).toLowerCase() + str.slice(1)
18
- } _%>
@@ -1,21 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - http:
10
- path: /<%- serviceTag %>/<%- firstLetterLowerCase(functionName) %>/<%- functionName %>/
11
- method: put
12
- cors: true
13
- #<#Authorizer#>
14
- #<#/Authorizer#>
15
-
16
- <%_ function firstLetterUpperCase(text){
17
- return text.charAt(0).toUpperCase() + text.slice(1)
18
- } _%>
19
- <%_ function firstLetterLowerCase(str) {
20
- return str.charAt(0).toLowerCase() + str.slice(1)
21
- } _%>
@@ -1,17 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
- <%_ function firstLetterUpperCase(text){
13
- return text.charAt(0).toUpperCase() + text.slice(1)
14
- } _%>
15
- <%_ function firstLetterLowerCase(str) {
16
- return str.charAt(0).toLowerCase() + str.slice(1)
17
- } _%>
@@ -1,13 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- <%_ function firstLetterUpperCase(text){
9
- return text.charAt(0).toUpperCase() + text.slice(1)
10
- } _%>
11
- <%_ function firstLetterLowerCase(str) {
12
- return str.charAt(0).toLowerCase() + str.slice(1)
13
- } _%>
@@ -1,18 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
-
13
- <%_ function firstLetterUpperCase(text){
14
- return text.charAt(0).toUpperCase() + text.slice(1)
15
- } _%>
16
- <%_ function firstLetterLowerCase(str) {
17
- return str.charAt(0).toLowerCase() + str.slice(1)
18
- } _%>
@@ -1,20 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - http:
10
- path: /<%- serviceTag %>/<%- firstLetterLowerCase(functionName) %>/<%- functionName %>/
11
- method: put
12
- cors: true
13
- #<#Authorizer#>
14
- #<#/Authorizer#>
15
- <%_ function firstLetterUpperCase(text){
16
- return text.charAt(0).toUpperCase() + text.slice(1)
17
- } _%>
18
- <%_ function firstLetterLowerCase(str) {
19
- return str.charAt(0).toLowerCase() + str.slice(1)
20
- } _%>
@@ -1,17 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
- <%_ function firstLetterUpperCase(text){
13
- return text.charAt(0).toUpperCase() + text.slice(1)
14
- } _%>
15
- <%_ function firstLetterLowerCase(str) {
16
- return str.charAt(0).toLowerCase() + str.slice(1)
17
- } _%>
@@ -1,13 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- <%_ function firstLetterUpperCase(text){
9
- return text.charAt(0).toUpperCase() + text.slice(1)
10
- } _%>
11
- <%_ function firstLetterLowerCase(str) {
12
- return str.charAt(0).toLowerCase() + str.slice(1)
13
- } _%>
@@ -1,17 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
- <%_ function firstLetterUpperCase(text){
13
- return text.charAt(0).toUpperCase() + text.slice(1)
14
- } _%>
15
- <%_ function firstLetterLowerCase(str) {
16
- return str.charAt(0).toLowerCase() + str.slice(1)
17
- } _%>
@@ -1,20 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - http:
10
- path: /<%- serviceTag %>/<%- firstLetterLowerCase(functionName) %>/<%- functionName %>/
11
- method: put
12
- cors: true
13
- #<#Authorizer#>
14
- #<#/Authorizer#>
15
- <%_ function firstLetterUpperCase(text){
16
- return text.charAt(0).toUpperCase() + text.slice(1)
17
- } _%>
18
- <%_ function firstLetterLowerCase(str) {
19
- return str.charAt(0).toLowerCase() + str.slice(1)
20
- } _%>
@@ -1,18 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- events:
9
- - sqs:
10
- arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
11
- batchSize: 10
12
-
13
- <%_ function firstLetterUpperCase(text){
14
- return text.charAt(0).toUpperCase() + text.slice(1)
15
- } _%>
16
- <%_ function firstLetterLowerCase(str) {
17
- return str.charAt(0).toLowerCase() + str.slice(1)
18
- } _%>
@@ -1,13 +0,0 @@
1
- <%_ const join = require('path').join; _%>
2
- <%- firstLetterUpperCase(functionNameConfig) %>:
3
- handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
4
- name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
5
- role: <%- roleName %>Role
6
- #<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
7
- #<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>FunctionSetting#>
8
- <%_ function firstLetterUpperCase(text){
9
- return text.charAt(0).toUpperCase() + text.slice(1)
10
- } _%>
11
- <%_ function firstLetterLowerCase(str) {
12
- return str.charAt(0).toLowerCase() + str.slice(1)
13
- } _%>