@gradientedge/cdk-utils 10.6.0 → 10.8.0

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.
Files changed (200) hide show
  1. package/dist/app/api-destined-function/src/lib/lambda.d.ts +1 -0
  2. package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +1 -0
  3. package/dist/app/api-destined-function/src/lib/lambda.js +1 -0
  4. package/dist/app/api-destined-function/src/lib/lambda.js.map +1 -0
  5. package/dist/app/api-destined-function/tsconfig.tsbuildinfo +1 -0
  6. package/dist/src/lib/aws/services/cloudwatch/main.d.ts +11 -11
  7. package/dist/src/lib/azure/common/constants.d.ts +74 -0
  8. package/dist/src/lib/azure/common/constants.js +77 -0
  9. package/dist/src/lib/azure/common/construct.d.ts +15 -3
  10. package/dist/src/lib/azure/common/construct.js +40 -4
  11. package/dist/src/lib/azure/common/stack.d.ts +3 -2
  12. package/dist/src/lib/azure/common/stack.js +25 -42
  13. package/dist/src/lib/azure/common/types.d.ts +13 -2
  14. package/dist/src/lib/azure/construct/event-handler/index.d.ts +2 -0
  15. package/dist/src/lib/azure/construct/event-handler/index.js +2 -0
  16. package/dist/src/lib/azure/construct/event-handler/main.d.ts +20 -0
  17. package/dist/src/lib/azure/construct/event-handler/main.js +139 -0
  18. package/dist/src/lib/azure/construct/event-handler/types.d.ts +35 -0
  19. package/dist/src/lib/azure/construct/event-handler/types.js +1 -0
  20. package/dist/src/lib/azure/construct/function-app/index.d.ts +2 -0
  21. package/dist/src/lib/azure/construct/function-app/index.js +2 -0
  22. package/dist/src/lib/azure/construct/function-app/main.d.ts +51 -0
  23. package/dist/src/lib/azure/construct/function-app/main.js +297 -0
  24. package/dist/src/lib/azure/construct/function-app/types.d.ts +33 -0
  25. package/dist/src/lib/azure/construct/function-app/types.js +1 -0
  26. package/dist/src/lib/azure/construct/index.d.ts +6 -0
  27. package/dist/src/lib/azure/construct/index.js +6 -0
  28. package/dist/src/lib/azure/construct/rest-api/index.d.ts +2 -0
  29. package/dist/src/lib/azure/construct/rest-api/index.js +2 -0
  30. package/dist/src/lib/azure/construct/rest-api/main.d.ts +20 -0
  31. package/dist/src/lib/azure/construct/rest-api/main.js +172 -0
  32. package/dist/src/lib/azure/construct/rest-api/types.d.ts +25 -0
  33. package/dist/src/lib/azure/construct/rest-api/types.js +1 -0
  34. package/dist/src/lib/azure/construct/rest-api-function/index.d.ts +2 -0
  35. package/dist/src/lib/azure/construct/rest-api-function/index.js +2 -0
  36. package/dist/src/lib/azure/construct/rest-api-function/main.d.ts +19 -0
  37. package/dist/src/lib/azure/construct/rest-api-function/main.js +255 -0
  38. package/dist/src/lib/azure/construct/rest-api-function/types.d.ts +29 -0
  39. package/dist/src/lib/azure/construct/rest-api-function/types.js +1 -0
  40. package/dist/src/lib/azure/construct/rest-api-with-cache/index.d.ts +2 -0
  41. package/dist/src/lib/azure/construct/rest-api-with-cache/index.js +2 -0
  42. package/dist/src/lib/azure/construct/rest-api-with-cache/main.d.ts +12 -0
  43. package/dist/src/lib/azure/construct/rest-api-with-cache/main.js +56 -0
  44. package/dist/src/lib/azure/construct/rest-api-with-cache/types.d.ts +13 -0
  45. package/dist/src/lib/azure/construct/rest-api-with-cache/types.js +1 -0
  46. package/dist/src/lib/azure/construct/site-with-webapp/index.d.ts +2 -0
  47. package/dist/src/lib/azure/construct/site-with-webapp/index.js +2 -0
  48. package/dist/src/lib/azure/construct/site-with-webapp/main.d.ts +19 -0
  49. package/dist/src/lib/azure/construct/site-with-webapp/main.js +135 -0
  50. package/dist/src/lib/azure/construct/site-with-webapp/types.d.ts +30 -0
  51. package/dist/src/lib/azure/construct/site-with-webapp/types.js +1 -0
  52. package/dist/src/lib/azure/index.d.ts +1 -0
  53. package/dist/src/lib/azure/index.js +1 -0
  54. package/dist/src/lib/azure/services/api-management/main.d.ts +83 -5
  55. package/dist/src/lib/azure/services/api-management/main.js +114 -148
  56. package/dist/src/lib/azure/services/api-management/types.d.ts +22 -1
  57. package/dist/src/lib/azure/services/app-configuration/main.d.ts +13 -1
  58. package/dist/src/lib/azure/services/app-configuration/main.js +21 -2
  59. package/dist/src/lib/azure/services/app-service/main.d.ts +5 -2
  60. package/dist/src/lib/azure/services/app-service/main.js +12 -4
  61. package/dist/src/lib/azure/services/application-insights/main.d.ts +15 -4
  62. package/dist/src/lib/azure/services/application-insights/main.js +27 -6
  63. package/dist/src/lib/azure/services/application-insights/types.d.ts +4 -1
  64. package/dist/src/lib/azure/services/authorisation/constants.d.ts +13 -0
  65. package/dist/src/lib/azure/services/authorisation/constants.js +14 -0
  66. package/dist/src/lib/azure/services/authorisation/index.d.ts +3 -0
  67. package/dist/src/lib/azure/services/authorisation/index.js +3 -0
  68. package/dist/src/lib/azure/services/authorisation/main.d.ts +84 -0
  69. package/dist/src/lib/azure/services/authorisation/main.js +120 -0
  70. package/dist/src/lib/azure/services/authorisation/types.d.ts +3 -0
  71. package/dist/src/lib/azure/services/authorisation/types.js +1 -0
  72. package/dist/src/lib/azure/services/cosmosdb/constants.d.ts +8 -0
  73. package/dist/src/lib/azure/services/cosmosdb/constants.js +10 -0
  74. package/dist/src/lib/azure/services/cosmosdb/index.d.ts +1 -0
  75. package/dist/src/lib/azure/services/cosmosdb/index.js +1 -0
  76. package/dist/src/lib/azure/services/cosmosdb/main.d.ts +47 -5
  77. package/dist/src/lib/azure/services/cosmosdb/main.js +77 -8
  78. package/dist/src/lib/azure/services/cosmosdb/types.d.ts +3 -1
  79. package/dist/src/lib/azure/services/dns/main.d.ts +9 -4
  80. package/dist/src/lib/azure/services/dns/main.js +12 -8
  81. package/dist/src/lib/azure/services/eventgrid/main.d.ts +12 -7
  82. package/dist/src/lib/azure/services/eventgrid/main.js +18 -19
  83. package/dist/src/lib/azure/services/function/main.d.ts +16 -3
  84. package/dist/src/lib/azure/services/function/main.js +122 -8
  85. package/dist/src/lib/azure/services/function/types.d.ts +3 -4
  86. package/dist/src/lib/azure/services/index.d.ts +3 -0
  87. package/dist/src/lib/azure/services/index.js +3 -0
  88. package/dist/src/lib/azure/services/key-vault/main.d.ts +22 -2
  89. package/dist/src/lib/azure/services/key-vault/main.js +28 -3
  90. package/dist/src/lib/azure/services/key-vault/types.d.ts +3 -2
  91. package/dist/src/lib/azure/services/monitor/main.d.ts +3 -1
  92. package/dist/src/lib/azure/services/monitor/main.js +3 -2
  93. package/dist/src/lib/azure/services/operational-insights/main.d.ts +13 -2
  94. package/dist/src/lib/azure/services/operational-insights/main.js +17 -3
  95. package/dist/src/lib/azure/services/operational-insights/types.d.ts +3 -1
  96. package/dist/src/lib/azure/services/portal/error.d.ts +5 -0
  97. package/dist/src/lib/azure/services/portal/error.js +10 -0
  98. package/dist/src/lib/azure/services/portal/index.d.ts +4 -0
  99. package/dist/src/lib/azure/services/portal/index.js +4 -0
  100. package/dist/src/lib/azure/services/portal/main.d.ts +33 -0
  101. package/dist/src/lib/azure/services/portal/main.js +51 -0
  102. package/dist/src/lib/azure/services/portal/renderer.d.ts +11 -0
  103. package/dist/src/lib/azure/services/portal/renderer.js +156 -0
  104. package/dist/src/lib/azure/services/portal/types.d.ts +40 -0
  105. package/dist/src/lib/azure/services/portal/types.js +1 -0
  106. package/dist/src/lib/azure/services/redis/main.d.ts +4 -2
  107. package/dist/src/lib/azure/services/redis/main.js +3 -2
  108. package/dist/src/lib/azure/services/redis/types.d.ts +1 -1
  109. package/dist/src/lib/azure/services/resource-group/main.d.ts +10 -1
  110. package/dist/src/lib/azure/services/resource-group/main.js +17 -3
  111. package/dist/src/lib/azure/services/security-center/index.d.ts +2 -0
  112. package/dist/src/lib/azure/services/security-center/index.js +2 -0
  113. package/dist/src/lib/azure/services/security-center/main.d.ts +31 -0
  114. package/dist/src/lib/azure/services/security-center/main.js +33 -0
  115. package/dist/src/lib/azure/services/security-center/types.d.ts +3 -0
  116. package/dist/src/lib/azure/services/security-center/types.js +1 -0
  117. package/dist/src/lib/azure/services/servicebus/main.d.ts +28 -22
  118. package/dist/src/lib/azure/services/servicebus/main.js +31 -26
  119. package/dist/src/lib/azure/services/servicebus/types.d.ts +4 -4
  120. package/dist/src/lib/azure/services/storage/main.d.ts +26 -5
  121. package/dist/src/lib/azure/services/storage/main.js +51 -9
  122. package/dist/src/lib/azure/services/storage/types.d.ts +7 -2
  123. package/dist/src/lib/cloudflare/common/construct.js +1 -1
  124. package/dist/src/lib/cloudflare/common/stack.d.ts +2 -2
  125. package/dist/src/lib/cloudflare/common/stack.js +25 -25
  126. package/dist/src/lib/cloudflare/services/worker/main.js +8 -1
  127. package/dist/src/lib/cloudflare/services/worker/types.d.ts +1 -0
  128. package/package.json +26 -23
  129. package/src/lib/azure/common/constants.ts +83 -0
  130. package/src/lib/azure/common/construct.ts +50 -7
  131. package/src/lib/azure/common/stack.ts +26 -43
  132. package/src/lib/azure/common/types.ts +14 -2
  133. package/src/lib/azure/construct/event-handler/index.ts +2 -0
  134. package/src/lib/azure/construct/event-handler/main.ts +183 -0
  135. package/src/lib/azure/construct/event-handler/types.ts +49 -0
  136. package/src/lib/azure/construct/function-app/index.ts +2 -0
  137. package/src/lib/azure/construct/function-app/main.ts +410 -0
  138. package/src/lib/azure/construct/function-app/types.ts +45 -0
  139. package/src/lib/azure/construct/index.ts +6 -0
  140. package/src/lib/azure/construct/rest-api/index.ts +2 -0
  141. package/src/lib/azure/construct/rest-api/main.ts +205 -0
  142. package/src/lib/azure/construct/rest-api/types.ts +33 -0
  143. package/src/lib/azure/construct/rest-api-function/index.ts +2 -0
  144. package/src/lib/azure/construct/rest-api-function/main.ts +297 -0
  145. package/src/lib/azure/construct/rest-api-function/types.ts +39 -0
  146. package/src/lib/azure/construct/rest-api-with-cache/index.ts +2 -0
  147. package/src/lib/azure/construct/rest-api-with-cache/main.ts +75 -0
  148. package/src/lib/azure/construct/rest-api-with-cache/types.ts +15 -0
  149. package/src/lib/azure/construct/site-with-webapp/index.ts +2 -0
  150. package/src/lib/azure/construct/site-with-webapp/main.ts +160 -0
  151. package/src/lib/azure/construct/site-with-webapp/types.ts +33 -0
  152. package/src/lib/azure/index.ts +1 -0
  153. package/src/lib/azure/services/api-management/main.ts +168 -152
  154. package/src/lib/azure/services/api-management/types.ts +30 -1
  155. package/src/lib/azure/services/app-configuration/main.ts +29 -2
  156. package/src/lib/azure/services/app-service/main.ts +23 -4
  157. package/src/lib/azure/services/application-insights/main.ts +46 -7
  158. package/src/lib/azure/services/application-insights/types.ts +6 -2
  159. package/src/lib/azure/services/authorisation/constants.ts +13 -0
  160. package/src/lib/azure/services/authorisation/index.ts +3 -0
  161. package/src/lib/azure/services/authorisation/main.ts +202 -0
  162. package/src/lib/azure/services/authorisation/types.ts +3 -0
  163. package/src/lib/azure/services/cosmosdb/constants.ts +9 -0
  164. package/src/lib/azure/services/cosmosdb/index.ts +1 -0
  165. package/src/lib/azure/services/cosmosdb/main.ts +158 -8
  166. package/src/lib/azure/services/cosmosdb/types.ts +3 -0
  167. package/src/lib/azure/services/dns/main.ts +33 -8
  168. package/src/lib/azure/services/eventgrid/main.ts +41 -23
  169. package/src/lib/azure/services/function/main.ts +155 -9
  170. package/src/lib/azure/services/function/types.ts +3 -4
  171. package/src/lib/azure/services/index.ts +3 -0
  172. package/src/lib/azure/services/key-vault/main.ts +47 -4
  173. package/src/lib/azure/services/key-vault/types.ts +4 -4
  174. package/src/lib/azure/services/monitor/main.ts +5 -2
  175. package/src/lib/azure/services/operational-insights/main.ts +30 -4
  176. package/src/lib/azure/services/operational-insights/types.ts +3 -1
  177. package/src/lib/azure/services/portal/error.ts +12 -0
  178. package/src/lib/azure/services/portal/index.ts +4 -0
  179. package/src/lib/azure/services/portal/main.ts +81 -0
  180. package/src/lib/azure/services/portal/renderer.ts +182 -0
  181. package/src/lib/azure/services/portal/types.ts +45 -0
  182. package/src/lib/azure/services/redis/main.ts +10 -3
  183. package/src/lib/azure/services/redis/types.ts +1 -1
  184. package/src/lib/azure/services/resource-group/main.ts +34 -3
  185. package/src/lib/azure/services/security-center/index.ts +2 -0
  186. package/src/lib/azure/services/security-center/main.ts +42 -0
  187. package/src/lib/azure/services/security-center/types.ts +3 -0
  188. package/src/lib/azure/services/servicebus/main.ts +61 -30
  189. package/src/lib/azure/services/servicebus/types.ts +4 -4
  190. package/src/lib/azure/services/storage/main.ts +91 -9
  191. package/src/lib/azure/services/storage/types.ts +11 -2
  192. package/src/lib/cloudflare/common/construct.ts +1 -1
  193. package/src/lib/cloudflare/common/stack.ts +25 -25
  194. package/src/lib/cloudflare/services/worker/main.ts +10 -1
  195. package/src/lib/cloudflare/services/worker/types.ts +8 -1
  196. package/dist/lib/lambda.d.ts +0 -17
  197. package/dist/lib/lambda.d.ts.map +0 -1
  198. package/dist/lib/lambda.js +0 -28
  199. package/dist/lib/lambda.js.map +0 -1
  200. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,135 @@
1
+ import * as archive from '@pulumi/archive';
2
+ import { getComponentOutput } from '@pulumi/azure-native/applicationinsights/index.js';
3
+ import { writeFileSync } from 'fs';
4
+ import _ from 'lodash';
5
+ import * as path from 'path';
6
+ import { CommonAzureConstruct } from '../../common/index.js';
7
+ export class SiteWithWebApp extends CommonAzureConstruct {
8
+ props;
9
+ applicationInsights;
10
+ site;
11
+ constructor(id, props) {
12
+ super(id, props);
13
+ this.props = props;
14
+ this.id = id;
15
+ }
16
+ initResources() {
17
+ this.createResourceGroup();
18
+ this.resolveCommonLogAnalyticsWorkspace();
19
+ this.resolveApplicationInsights();
20
+ this.createSiteAppServicePlan();
21
+ this.createSiteStorageAccount();
22
+ this.createSiteStorageContainer();
23
+ this.createCodePackage();
24
+ this.createWebAppSiteConfig();
25
+ this.createWebApp();
26
+ this.createDiagnosticLog();
27
+ }
28
+ resolveApplicationInsights() {
29
+ if (!this.props.commonApplicationInsights || !this.props.commonApplicationInsights.resourceName)
30
+ return;
31
+ this.applicationInsights = getComponentOutput({
32
+ resourceName: this.props.commonApplicationInsights.resourceName,
33
+ resourceGroupName: this.props.commonApplicationInsights.resourceGroupName,
34
+ });
35
+ }
36
+ createSiteAppServicePlan() {
37
+ this.site.appServicePlan = this.appServiceManager.createAppServicePlan(`${this.id}-app-service-plan`, this, {
38
+ ...this.props.site.appServicePlan,
39
+ location: this.resourceGroup.location,
40
+ resourceGroupName: this.resourceGroup.name,
41
+ });
42
+ }
43
+ createSiteStorageAccount() {
44
+ this.site.storageAccount = this.storageManager.createStorageAccount(`${this.id}-storage-account`, this, {
45
+ ...this.props.site.storageAccount,
46
+ location: this.resourceGroup.location,
47
+ resourceGroupName: this.resourceGroup.name,
48
+ });
49
+ }
50
+ createSiteStorageContainer() {
51
+ this.site.storageContainer = this.storageManager.createStorageContainer(`${this.id}-storage-deployment-container`, this, {
52
+ ...this.props.site.storageContainer,
53
+ accountName: this.site.storageAccount.id,
54
+ resourceGroupName: this.resourceGroup.name,
55
+ });
56
+ }
57
+ createCodePackage() {
58
+ const currentDirectory = path.resolve();
59
+ if (this.props.startCommand) {
60
+ const packageJson = {
61
+ description: 'Generated',
62
+ name: this.id,
63
+ private: true,
64
+ scripts: {
65
+ start: this.props.startCommand,
66
+ },
67
+ version: '1.0.0',
68
+ };
69
+ const packageJsonFile = `${currentDirectory}/${this.props.deploySource}/package.json`;
70
+ writeFileSync(packageJsonFile, JSON.stringify(packageJson));
71
+ }
72
+ this.site.codeArchiveFile = archive.getFileOutput({
73
+ ...this.props.site.codeArchiveFile,
74
+ excludes: this.props.site.codeArchiveFile.excludes ?? ['*.zip'],
75
+ outputPath: `${currentDirectory}/${this.props.deploySource}/${this.props.packageName}`,
76
+ sourceDir: `${currentDirectory}/${this.props.deploySource}`,
77
+ type: this.props.site.codeArchiveFile.type ?? 'zip',
78
+ });
79
+ }
80
+ createWebAppSiteConfig() {
81
+ this.site.environmentVariables = {
82
+ APPINSIGHTS_INSTRUMENTATIONKEY: this.applicationInsights.instrumentationKey,
83
+ APPLICATIONINSIGHTS_CONNECTION_STRING: this.applicationInsights.connectionString,
84
+ ApplicationInsightsAgent_EXTENSION_VERSION: '~3',
85
+ OTEL_SDK_DISABLED: 'false',
86
+ BUILD_VERSION: '0.0.0',
87
+ STAGE: this.props.stage,
88
+ NODE_OPTIONS: this.props.nodeOptions,
89
+ NODE_ENV: this.props.nodeEnv ?? 'production',
90
+ };
91
+ }
92
+ createWebApp(resourceOptions) {
93
+ this.site.webApp = this.appServiceManager.createLinuxWebApp(`${this.id}-web-app`, this, {
94
+ ...this.props.site.webApp,
95
+ location: this.resourceGroup.location,
96
+ resourceGroupName: this.resourceGroup.name,
97
+ serverFarmId: this.site.appServicePlan.id,
98
+ siteConfig: _.merge(this.props.site.webApp.siteConfig, {
99
+ appSettings: _.map(this.site.environmentVariables, (value, name) => ({ name, value })),
100
+ }),
101
+ }, { ...resourceOptions });
102
+ }
103
+ createDiagnosticLog() {
104
+ this.monitorManager.createMonitorDiagnosticSettings(this.id, this, {
105
+ name: `${this.props.site.webApp.name}-webapp`,
106
+ resourceUri: this.site.webApp.id,
107
+ workspaceId: this.commonLogAnalyticsWorkspace.id,
108
+ logAnalyticsDestinationType: 'Dedicated',
109
+ logs: [
110
+ {
111
+ category: 'AppServiceAppLogs',
112
+ enabled: true,
113
+ },
114
+ {
115
+ category: 'AppServiceConsoleLogs',
116
+ enabled: true,
117
+ },
118
+ {
119
+ category: 'AppServiceHTTPLogs',
120
+ enabled: true,
121
+ },
122
+ {
123
+ category: 'AppServicePlatformLogs',
124
+ enabled: true,
125
+ },
126
+ ],
127
+ metrics: [
128
+ {
129
+ category: 'AllMetrics',
130
+ enabled: true,
131
+ },
132
+ ],
133
+ });
134
+ }
135
+ }
@@ -0,0 +1,30 @@
1
+ import * as archive from '@pulumi/archive';
2
+ import { GetFileOutputArgs } from '@pulumi/archive';
3
+ import { BlobContainer, StorageAccount } from '@pulumi/azure-native/storage/index.js';
4
+ import { AppServicePlan, WebApp } from '@pulumi/azure-native/web/index.js';
5
+ import { Output } from '@pulumi/pulumi';
6
+ import { CommonAzureStackProps } from '../../common/index.js';
7
+ import { LinuxWebAppProps, ServicePlanProps, StorageAccountProps, StorageContainerProps } from '../../services/index.js';
8
+ export interface SiteProps {
9
+ appServicePlan: ServicePlanProps;
10
+ codeArchiveFile: GetFileOutputArgs;
11
+ storageAccount: StorageAccountProps;
12
+ storageContainer: StorageContainerProps;
13
+ webApp: LinuxWebAppProps;
14
+ }
15
+ export interface SiteWithWebAppProps extends CommonAzureStackProps {
16
+ deploySource: string;
17
+ nodeOptions: string;
18
+ nodeEnv?: string;
19
+ packageName: string;
20
+ site: SiteProps;
21
+ startCommand: string;
22
+ }
23
+ export interface Site {
24
+ appServicePlan: AppServicePlan;
25
+ codeArchiveFile: Output<archive.GetFileResult>;
26
+ environmentVariables: Record<string, any>;
27
+ storageAccount: StorageAccount;
28
+ storageContainer: BlobContainer;
29
+ webApp: WebApp;
30
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './common/index.js';
2
+ export * from './construct/index.js';
2
3
  export * from './services/index.js';
3
4
  export * from './types/index.js';
@@ -1,3 +1,4 @@
1
1
  export * from './common/index.js';
2
+ export * from './construct/index.js';
2
3
  export * from './services/index.js';
3
4
  export * from './types/index.js';
@@ -1,6 +1,7 @@
1
1
  import * as redis from '@pulumi/azure-native/redis/index.js';
2
+ import { ResourceOptions } from '@pulumi/pulumi';
2
3
  import { CommonAzureConstruct } from '../../common/index.js';
3
- import { ApiManagementApiProps, ApiManagementBackendProps, ApiManagementCustomDomainProps, ApiManagementProps, ResolveApiManagementProps } from './types.js';
4
+ import { ApiDiagnosticProps, ApiManagementApiProps, ApiManagementBackendProps, ApiManagementCustomDomainProps, ApiManagementProps, ApiOperationPolicyProps, ApiOperationProps, ApiPolicyProps, ApiSubscriptionProps, CacheProps, LoggerProps, NamedValueProps, ResolveApiManagementProps } from './types.js';
4
5
  /**
5
6
  * @classdesc Provides operations on Azure API Management using Pulumi
6
7
  * - A new instance of this class is injected into {@link CommonAzureConstruct} constructor.
@@ -26,38 +27,115 @@ export declare class AzureApiManagementManager {
26
27
  * @param props API Management properties
27
28
  * @param applicationInsightsKey Optional Application Insights instrumentation key for logging
28
29
  * @param externalRedisCache Optional external Redis cache for API Management caching
30
+ * @param resourceOptions Optional settings to control resource behaviour
29
31
  * @see [Pulumi Azure Native API Management]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/apimanagementservice/}
30
32
  */
31
- createApiManagementService(id: string, scope: CommonAzureConstruct, props: ApiManagementProps, applicationInsightsKey?: string, externalRedisCache?: redis.Redis): import("@pulumi/azure-native/apimanagement/apiManagementService.js").ApiManagementService;
33
+ createApiManagementService(id: string, scope: CommonAzureConstruct, props: ApiManagementProps, applicationInsightsKey?: string, externalRedisCache?: redis.Redis, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/apiManagementService.js").ApiManagementService;
32
34
  /**
33
35
  * @summary Method to resolve an existing API Management service
34
36
  * @param id scoped id of the resource
35
37
  * @param scope scope in which this resource is defined
36
38
  * @param props API Management lookup properties
39
+ * @param resourceOptions Optional settings to control resource behaviour
37
40
  * @see [Pulumi Azure Native API Management Lookup]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/apimanagementservice/}
38
41
  */
39
- resolveApiManagementService(id: string, scope: CommonAzureConstruct, props: ResolveApiManagementProps): import("@pulumi/pulumi").Output<import("@pulumi/azure-native/apimanagement/getApiManagementService.js").GetApiManagementServiceResult>;
42
+ resolveApiManagementService(id: string, scope: CommonAzureConstruct, props: ResolveApiManagementProps, resourceOptions?: ResourceOptions): import("@pulumi/pulumi").Output<import("@pulumi/azure-native/apimanagement/getApiManagementService.js").GetApiManagementServiceResult>;
40
43
  /**
41
44
  * @summary Method to create a new API Management backend
42
45
  * @param id scoped id of the resource
43
46
  * @param scope scope in which this resource is defined
44
47
  * @param props API Management backend properties
48
+ * @param resourceOptions Optional settings to control resource behaviour
45
49
  * @see [Pulumi Azure Native API Management Backend]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/backend/}
46
50
  */
47
- createBackend(id: string, scope: CommonAzureConstruct, props: ApiManagementBackendProps): import("@pulumi/azure-native/apimanagement/backend.js").Backend;
51
+ createBackend(id: string, scope: CommonAzureConstruct, props: ApiManagementBackendProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/backend.js").Backend;
48
52
  /**
49
53
  * @summary Method to create a new API Management API with operations and policies
50
54
  * @param id scoped id of the resource
51
55
  * @param scope scope in which this resource is defined
52
56
  * @param props API Management API properties
57
+ * @param resourceOptions Optional settings to control resource behaviour
53
58
  * @see [Pulumi Azure Native API Management API]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/api/}
54
59
  */
55
- createApi(id: string, scope: CommonAzureConstruct, props: ApiManagementApiProps): import("@pulumi/azure-native/apimanagement/api.js").Api;
60
+ createApi(id: string, scope: CommonAzureConstruct, props: ApiManagementApiProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/api.js").Api;
61
+ /**
62
+ * @summary Method to create a new API Diagnostic
63
+ * @param id scoped id of the resource
64
+ * @param scope scope in which this resource is defined
65
+ * @param props API Disagnostic properties
66
+ * @param resourceOptions Optional settings to control resource behaviour
67
+ * @see [Pulumi Azure Native API Management Diagnostic]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/apidiagnostic/}
68
+ */
69
+ createApiDiagnostic(id: string, scope: CommonAzureConstruct, props: ApiDiagnosticProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/apiDiagnostic.js").ApiDiagnostic;
70
+ /**
71
+ * @summary Method to create a new API Logger
72
+ * @param id scoped id of the resource
73
+ * @param scope scope in which this resource is defined
74
+ * @param props API Logger properties
75
+ * @param resourceOptions Optional settings to control resource behaviour
76
+ * @see [Pulumi Azure Native API Management Logger]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/logger/}
77
+ */
78
+ createLogger(id: string, scope: CommonAzureConstruct, props: LoggerProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/logger.js").Logger;
79
+ /**
80
+ * @summary Method to create a new API Named Value
81
+ * @param id scoped id of the resource
82
+ * @param scope scope in which this resource is defined
83
+ * @param props API Named Value properties
84
+ * @param resourceOptions Optional settings to control resource behaviour
85
+ * @see [Pulumi Azure Native API Management Named Value]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/namedvalue/}
86
+ */
87
+ createNamedValue(id: string, scope: CommonAzureConstruct, props: NamedValueProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/namedValue.js").NamedValue;
88
+ /**
89
+ * @summary Method to create a new API Subscription
90
+ * @param id scoped id of the resource
91
+ * @param scope scope in which this resource is defined
92
+ * @param props API Subscription properties
93
+ * @param resourceOptions Optional settings to control resource behaviour
94
+ * @see [Pulumi Azure Native API Management Subscription]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/subscription/}
95
+ */
96
+ createSubscription(id: string, scope: CommonAzureConstruct, props: ApiSubscriptionProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/subscription.js").Subscription;
97
+ /**
98
+ * @summary Method to create a new API cache
99
+ * @param id scoped id of the resource
100
+ * @param scope scope in which this resource is defined
101
+ * @param props API cache properties
102
+ * @param resourceOptions Optional settings to control resource behaviour
103
+ * @see [Pulumi Azure Native API Management Cache]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/cache/}
104
+ */
105
+ createCache(id: string, scope: CommonAzureConstruct, props: CacheProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/cache.js").Cache;
106
+ /**
107
+ * @summary Method to create a new API operation
108
+ * @param id scoped id of the resource
109
+ * @param scope scope in which this resource is defined
110
+ * @param props API operation properties
111
+ * @param resourceOptions Optional settings to control resource behaviour
112
+ * @see [Pulumi Azure Native API Management Operation]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/apioperation/}
113
+ */
114
+ createOperation(id: string, scope: CommonAzureConstruct, props: ApiOperationProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/apiOperation.js").ApiOperation;
115
+ /**
116
+ * @summary Method to create a new API operation policy
117
+ * @param id scoped id of the resource
118
+ * @param scope scope in which this resource is defined
119
+ * @param props API operation policy properties
120
+ * @param resourceOptions Optional settings to control resource behaviour
121
+ * @see [Pulumi Azure Native API Management Operation Policy]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/apioperationpolicy/}
122
+ */
123
+ createOperationPolicy(id: string, scope: CommonAzureConstruct, props: ApiOperationPolicyProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/apiOperationPolicy.js").ApiOperationPolicy;
124
+ /**
125
+ * @summary Method to create a new API policy
126
+ * @param id scoped id of the resource
127
+ * @param scope scope in which this resource is defined
128
+ * @param props API policy properties
129
+ * @param resourceOptions Optional settings to control resource behaviour
130
+ * @see [Pulumi Azure Native API Management Policy]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/apipolicy/}
131
+ */
132
+ createPolicy(id: string, scope: CommonAzureConstruct, props: ApiPolicyProps, resourceOptions?: ResourceOptions): import("@pulumi/azure-native/apimanagement/apiPolicy.js").ApiPolicy;
56
133
  /**
57
134
  * @summary Method to create a new API Management custom domain
58
135
  * @param id scoped id of the resource
59
136
  * @param scope scope in which this resource is defined
60
137
  * @param props API Management custom domain properties
138
+ * @param resourceOptions Optional settings to control resource behaviour
61
139
  * @note In Pulumi Azure Native, custom domains are configured as part of the API Management service resource,
62
140
  * not as a separate resource. Use the hostnameConfigurations property when creating the service.
63
141
  */