From eafcb917517a0dd9526064c31fa24d75ca24b727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Barthelet?= Date: Mon, 21 Sep 2020 15:49:37 +0200 Subject: [PATCH] Update package definition --- lib/plugins/aws/provider/awsProvider.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/lib/plugins/aws/provider/awsProvider.js b/lib/plugins/aws/provider/awsProvider.js index d1b95165ecdc..7fcc263241ed 100644 --- a/lib/plugins/aws/provider/awsProvider.js +++ b/lib/plugins/aws/provider/awsProvider.js @@ -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 }, @@ -423,7 +412,6 @@ class AwsProvider { }, }, memorySize: { $ref: '#/definitions/awsLambdaMemorySize' }, - package: { $ref: '#/definitions/awsLambdaPackage' }, resourcePolicy: { type: 'array', items: { @@ -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' },