@gradientedge/cdk-utils 9.69.0 → 9.69.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.
@@ -289,7 +289,7 @@ class AzureApiManagementManager {
289
289
  <!-- Store the response body in cache -->
290
290
  <choose>
291
291
  <when condition="@(context.Response.StatusCode == 200)">
292
- <cache-store-value key="@((string)context.Variables["customCacheKey"])" value="@(context.Response.Body.As<string>(preserveContent: true))" duration="${props.caching.ttl ?? 900}" />
292
+ <cache-store-value key="@((string)context.Variables["customCacheKey"])" value="@(context.Response.Body.As<string>(preserveContent: true))" duration="${props.caching.ttlInSecs ?? 900}" />
293
293
  <!-- Add cache status header -->
294
294
  <set-header name="X-Apim-Cache-Status" exists-action="override">
295
295
  <value>MISS</value>
@@ -25,5 +25,5 @@ export interface ApiManagementApiOperationProps extends ApiManagementApiOperatio
25
25
  }
26
26
  export interface ApiManagementApiCaching {
27
27
  enabled: boolean;
28
- ttl?: number;
28
+ ttlInSecs?: number;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.69.0",
3
+ "version": "9.69.1",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -352,7 +352,7 @@ export class AzureApiManagementManager {
352
352
  <!-- Store the response body in cache -->
353
353
  <choose>
354
354
  <when condition="@(context.Response.StatusCode == 200)">
355
- <cache-store-value key="@((string)context.Variables["customCacheKey"])" value="@(context.Response.Body.As<string>(preserveContent: true))" duration="${props.caching.ttl ?? 900}" />
355
+ <cache-store-value key="@((string)context.Variables["customCacheKey"])" value="@(context.Response.Body.As<string>(preserveContent: true))" duration="${props.caching.ttlInSecs ?? 900}" />
356
356
  <!-- Add cache status header -->
357
357
  <set-header name="X-Apim-Cache-Status" exists-action="override">
358
358
  <value>MISS</value>
@@ -29,5 +29,5 @@ export interface ApiManagementApiOperationProps extends ApiManagementApiOperatio
29
29
 
30
30
  export interface ApiManagementApiCaching {
31
31
  enabled: boolean
32
- ttl?: number
32
+ ttlInSecs?: number
33
33
  }