Skip to content

Commit

Permalink
Update package definition
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericbarthelet committed Sep 21, 2020
1 parent 8939273 commit eafcb91
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions lib/plugins/aws/provider/awsProvider.js
Expand Up @@ -240,17 +240,6 @@ class AwsProvider {
items: { $ref: '#/definitions/awsArn' },
},
awsLambdaMemorySize: { type: 'integer', multipleOf: 64, minimum: 128, maximum: 3008 },
awsLambdaPackage: {
type: 'object',
properties: {
include: { type: 'array', items: { type: 'string' } },
exclude: { type: 'array', items: { type: 'string' } },
excludeDevDependencies: { type: 'boolean' },
artifact: { type: 'string' },
individually: { type: 'boolean' },
},
additionalProperties: false,
},
awsLambdaRole: {
anyOf: [
{ type: 'string', minLength: 1 },
Expand Down Expand Up @@ -423,7 +412,6 @@ class AwsProvider {
},
},
memorySize: { $ref: '#/definitions/awsLambdaMemorySize' },
package: { $ref: '#/definitions/awsLambdaPackage' },
resourcePolicy: {
type: 'array',
items: {
Expand Down Expand Up @@ -485,7 +473,15 @@ class AwsProvider {
{ $ref: '#/definitions/awsCfFunction' },
],
},
package: { $ref: '#/definitions/awsLambdaPackage' },
package: {
type: 'object',
properties: {
include: { type: 'array', items: { type: 'string' } },
exclude: { type: 'array', items: { type: 'string' } },
artifact: { type: 'string' },
},
additionalProperties: false,
},
provisionedConcurrency: { type: 'integer', minimum: 1 },
reservedConcurrency: { type: 'integer', minimum: 0 },
role: { $ref: '#/definitions/awsLambdaRole' },
Expand Down

0 comments on commit eafcb91

Please sign in to comment.