serverless-api-gateway-caching
Advanced tools
Comparing version 1.10.0-rc2 to 1.10.0
@@ -0,0 +0,0 @@ { |
{ | ||
"name": "serverless-api-gateway-caching", | ||
"version": "1.10.0-rc2", | ||
"version": "1.10.0", | ||
"description": "A plugin for the serverless framework which helps with configuring caching for API Gateway endpoints.", | ||
@@ -5,0 +5,0 @@ "main": "src/apiGatewayCachingPlugin.js", |
@@ -66,2 +66,4 @@ # serverless-api-gateway-caching | ||
The setting `endpointsInheritCloudWatchSettingsFromStage` makes sure that settings like `Log Level` and whether to `Enable detailed CloudWatch metrics` are copied over from the stage to each endpoint's settings. It is `true` by default. | ||
```yml | ||
@@ -80,2 +82,3 @@ plugins: | ||
handleUnauthorizedRequests: Ignore # default is "IgnoreWithWarning". | ||
endpointsInheritCloudWatchSettingsFromStage: true # default is true | ||
``` | ||
@@ -107,2 +110,3 @@ | ||
dataEncrypted: true # default is false | ||
inheritCloudWatchSettingsFromStage: false # default is true | ||
perKeyInvalidation: | ||
@@ -109,0 +113,0 @@ requireAuthorization: true # default is true |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -96,3 +96,8 @@ const get = require('lodash.get'); | ||
this.inheritCloudWatchSettingsFromStage = globalSettings.endpointsInheritCloudWatchSettingsFromStage; | ||
if (event.http.caching && event.http.caching.inheritCloudWatchSettingsFromStage != undefined) { | ||
this.inheritCloudWatchSettingsFromStage = event.http.caching.inheritCloudWatchSettingsFromStage; | ||
} | ||
else { | ||
this.inheritCloudWatchSettingsFromStage = globalSettings.endpointsInheritCloudWatchSettingsFromStage; | ||
} | ||
@@ -121,3 +126,3 @@ if (!event.http.caching) { | ||
this.path = path; | ||
this.gatewayResourceName = getApiGatewayResourceNameFor(this.path, this.method); | ||
@@ -168,6 +173,7 @@ | ||
this.dataEncrypted = cachingSettings.dataEncrypted || DEFAULT_DATA_ENCRYPTED; | ||
this.perKeyInvalidation = new PerKeyInvalidationSettings(cachingSettings); | ||
this.endpointsInheritCloudWatchSettingsFromStage = cachingSettings.endpointsInheritCloudWatchSettingsFromStage || DEFAULT_INHERIT_CLOUDWATCH_SETTINGS_FROM_STAGE; | ||
this.endpointsInheritCloudWatchSettingsFromStage = cachingSettings.endpointsInheritCloudWatchSettingsFromStage == undefined ? | ||
DEFAULT_INHERIT_CLOUDWATCH_SETTINGS_FROM_STAGE : cachingSettings.endpointsInheritCloudWatchSettingsFromStage; | ||
@@ -174,0 +180,0 @@ for (let functionName in serverless.service.functions) { |
@@ -0,0 +0,0 @@ const getResourcesByName = (name, serverless) => { |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ const isEmpty = require('lodash.isempty'); |
@@ -0,0 +0,0 @@ module.exports = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
689
1
505
46594