@gradientedge/cdk-utils 9.39.0 → 9.39.2

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.
@@ -41,8 +41,9 @@ class AzureApplicationInsightsManager {
41
41
  throw `Resource group undefined for ${id}`;
42
42
  const applicationInsights = new application_insights_1.ApplicationInsights(scope, `${id}-am`, {
43
43
  ...props,
44
- name: `${props.name}-${scope.props.stage}`,
44
+ name: `${props.name}-${scope.props.stage}` || '',
45
45
  resourceGroupName: resourceGroup.name,
46
+ applicationType: props.applicationType || 'web',
46
47
  tags: props.tags ?? {
47
48
  environment: scope.props.stage,
48
49
  },
@@ -1,3 +1,5 @@
1
1
  import { ApplicationInsightsConfig } from '@cdktf/provider-azurerm/lib/application-insights';
2
- export interface ApplicationInsightsProps extends ApplicationInsightsConfig {
2
+ export interface ApplicationInsightsProps extends Omit<ApplicationInsightsConfig, 'applicationType' | 'name'> {
3
+ name?: string | undefined;
4
+ applicationType?: string | undefined;
3
5
  }
@@ -92,7 +92,7 @@ class AzureFunctionManager {
92
92
  if (!resourceGroup)
93
93
  throw `Resource group undefined for ${id}`;
94
94
  const functionApp = new resource_1.Resource(scope, `${id}-fa`, {
95
- type: 'Microsoft.Web/sites@2023-12-01',
95
+ type: 'Microsoft.Web/sites@2024-04-01',
96
96
  name: `${props.name}-${scope.props.stage}`,
97
97
  location: resourceGroup.location,
98
98
  parentId: resourceGroup.id,
@@ -117,6 +117,7 @@ class AzureFunctionManager {
117
117
  version: props.runtimeVersion || '20',
118
118
  },
119
119
  scaleAndConcurrency: {
120
+ alwaysReady: props.alwaysReady,
120
121
  instanceMemoryMB: props.instanceMemory || 2048,
121
122
  maximumInstanceCount: props.maximumInstanceCount || 40,
122
123
  triggers: {},
@@ -137,6 +138,7 @@ class AzureFunctionManager {
137
138
  value: props.storageConnectionString,
138
139
  },
139
140
  ]),
141
+ connectionStrings: props.connectionStrings,
140
142
  },
141
143
  },
142
144
  },
@@ -5,12 +5,15 @@ export interface FunctionAppProps extends LinuxFunctionAppConfig {
5
5
  export interface FunctionProps extends FunctionAppFunctionConfig {
6
6
  }
7
7
  export interface FunctionAppFlexConsumptionProps {
8
+ alwaysReady?: any;
8
9
  appServicePlanId: string;
9
10
  appSettings: any;
10
11
  blobEndpoint: string;
12
+ connectionStrings: any;
11
13
  containerName: string;
12
14
  deploymentAuthenticationType?: string;
13
15
  deploymentStorageType?: string;
16
+ deploySource: string;
14
17
  httpsOnly?: string;
15
18
  instanceMemory?: number;
16
19
  kind?: string;
@@ -22,5 +25,4 @@ export interface FunctionAppFlexConsumptionProps {
22
25
  storageAccountConnectionStringName?: string;
23
26
  storageConnectionString: string;
24
27
  sourceCodeHash: string;
25
- deploySource: string;
26
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.39.0",
3
+ "version": "9.39.2",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -42,8 +42,9 @@ export class AzureApplicationInsightsManager {
42
42
 
43
43
  const applicationInsights = new ApplicationInsights(scope, `${id}-am`, {
44
44
  ...props,
45
- name: `${props.name}-${scope.props.stage}`,
45
+ name: `${props.name}-${scope.props.stage}` || '',
46
46
  resourceGroupName: resourceGroup.name,
47
+ applicationType: props.applicationType || 'web',
47
48
  tags: props.tags ?? {
48
49
  environment: scope.props.stage,
49
50
  },
@@ -1,3 +1,6 @@
1
1
  import { ApplicationInsightsConfig } from '@cdktf/provider-azurerm/lib/application-insights'
2
2
 
3
- export interface ApplicationInsightsProps extends ApplicationInsightsConfig {}
3
+ export interface ApplicationInsightsProps extends Omit<ApplicationInsightsConfig, 'applicationType' | 'name'> {
4
+ name?: string | undefined
5
+ applicationType?: string | undefined
6
+ }
@@ -104,7 +104,7 @@ export class AzureFunctionManager {
104
104
  if (!resourceGroup) throw `Resource group undefined for ${id}`
105
105
 
106
106
  const functionApp = new Resource(scope, `${id}-fa`, {
107
- type: 'Microsoft.Web/sites@2023-12-01',
107
+ type: 'Microsoft.Web/sites@2024-04-01',
108
108
  name: `${props.name}-${scope.props.stage}`,
109
109
  location: resourceGroup.location,
110
110
  parentId: resourceGroup.id,
@@ -133,6 +133,7 @@ export class AzureFunctionManager {
133
133
  version: props.runtimeVersion || '20',
134
134
  },
135
135
  scaleAndConcurrency: {
136
+ alwaysReady: props.alwaysReady,
136
137
  instanceMemoryMB: props.instanceMemory || 2048,
137
138
  maximumInstanceCount: props.maximumInstanceCount || 40,
138
139
  triggers: {},
@@ -154,6 +155,7 @@ export class AzureFunctionManager {
154
155
  value: props.storageConnectionString,
155
156
  },
156
157
  ]),
158
+ connectionStrings: props.connectionStrings,
157
159
  },
158
160
  },
159
161
  },
@@ -7,12 +7,15 @@ export interface FunctionAppProps extends LinuxFunctionAppConfig {}
7
7
  export interface FunctionProps extends FunctionAppFunctionConfig {}
8
8
 
9
9
  export interface FunctionAppFlexConsumptionProps {
10
+ alwaysReady?: any
10
11
  appServicePlanId: string
11
12
  appSettings: any
12
13
  blobEndpoint: string
14
+ connectionStrings: any
13
15
  containerName: string
14
16
  deploymentAuthenticationType?: string
15
17
  deploymentStorageType?: string
18
+ deploySource: string
16
19
  httpsOnly?: string
17
20
  instanceMemory?: number
18
21
  kind?: string
@@ -24,5 +27,4 @@ export interface FunctionAppFlexConsumptionProps {
24
27
  storageAccountConnectionStringName?: string
25
28
  storageConnectionString: string
26
29
  sourceCodeHash: string
27
- deploySource: string
28
30
  }