@gradientedge/cdk-utils 9.35.0 → 9.37.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 (45) hide show
  1. package/dist/src/lib/azure/.gen/providers/azapi/provider/index.d.ts +414 -0
  2. package/dist/src/lib/azure/.gen/providers/azapi/provider/index.js +884 -0
  3. package/dist/src/lib/azure/.gen/providers/azapi/resource/index.d.ts +639 -0
  4. package/dist/src/lib/azure/.gen/providers/azapi/resource/index.js +1177 -0
  5. package/dist/src/lib/azure/common/construct.d.ts +2 -1
  6. package/dist/src/lib/azure/common/construct.js +4 -0
  7. package/dist/src/lib/azure/services/api-management/main.js +14 -13
  8. package/dist/src/lib/azure/services/api-management/types.d.ts +1 -1
  9. package/dist/src/lib/azure/services/cosmosdb/index.d.ts +2 -0
  10. package/dist/src/lib/azure/services/cosmosdb/index.js +18 -0
  11. package/dist/src/lib/azure/services/cosmosdb/main.d.ts +48 -0
  12. package/dist/src/lib/azure/services/cosmosdb/main.js +113 -0
  13. package/dist/src/lib/azure/services/cosmosdb/types.d.ts +12 -0
  14. package/dist/src/lib/azure/services/cosmosdb/types.js +2 -0
  15. package/dist/src/lib/azure/services/function/main.d.ts +10 -2
  16. package/dist/src/lib/azure/services/function/main.js +79 -1
  17. package/dist/src/lib/azure/services/function/types.d.ts +18 -0
  18. package/dist/src/lib/azure/services/index.d.ts +1 -0
  19. package/dist/src/lib/azure/services/index.js +1 -0
  20. package/dist/src/lib/azure/services/storage/main.js +5 -3
  21. package/package.json +1 -1
  22. package/src/lib/azure/.gen/constraints.json +6 -0
  23. package/src/lib/azure/.gen/providers/azapi/data-azapi-client-config/index.ts +257 -0
  24. package/src/lib/azure/.gen/providers/azapi/data-azapi-resource/index.ts +876 -0
  25. package/src/lib/azure/.gen/providers/azapi/data-azapi-resource-action/index.ts +779 -0
  26. package/src/lib/azure/.gen/providers/azapi/data-azapi-resource-id/index.ts +383 -0
  27. package/src/lib/azure/.gen/providers/azapi/data-azapi-resource-list/index.ts +713 -0
  28. package/src/lib/azure/.gen/providers/azapi/data-plane-resource/index.ts +1203 -0
  29. package/src/lib/azure/.gen/providers/azapi/index.ts +11 -0
  30. package/src/lib/azure/.gen/providers/azapi/lazy-index.ts +51 -0
  31. package/src/lib/azure/.gen/providers/azapi/provider/index.ts +1121 -0
  32. package/src/lib/azure/.gen/providers/azapi/resource/index.ts +1516 -0
  33. package/src/lib/azure/.gen/providers/azapi/resource-action/index.ts +935 -0
  34. package/src/lib/azure/.gen/providers/azapi/update-resource/index.ts +1042 -0
  35. package/src/lib/azure/.gen/versions.json +3 -0
  36. package/src/lib/azure/common/construct.ts +5 -0
  37. package/src/lib/azure/services/api-management/main.ts +28 -27
  38. package/src/lib/azure/services/api-management/types.ts +1 -1
  39. package/src/lib/azure/services/cosmosdb/index.ts +2 -0
  40. package/src/lib/azure/services/cosmosdb/main.ts +124 -0
  41. package/src/lib/azure/services/cosmosdb/types.ts +9 -0
  42. package/src/lib/azure/services/function/main.ts +95 -2
  43. package/src/lib/azure/services/function/types.ts +20 -1
  44. package/src/lib/azure/services/index.ts +1 -0
  45. package/src/lib/azure/services/storage/main.ts +5 -3
@@ -0,0 +1,884 @@
1
+ "use strict";
2
+ // https://registry.terraform.io/providers/azure/azapi/2.2.0/docs
3
+ // generated from terraform resource schema
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.AzapiProvider = void 0;
39
+ exports.azapiProviderEndpointToTerraform = azapiProviderEndpointToTerraform;
40
+ exports.azapiProviderEndpointToHclTerraform = azapiProviderEndpointToHclTerraform;
41
+ const cdktf = __importStar(require("cdktf"));
42
+ function azapiProviderEndpointToTerraform(struct) {
43
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
44
+ return struct;
45
+ }
46
+ if (cdktf.isComplexElement(struct)) {
47
+ throw new Error('A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration');
48
+ }
49
+ return {
50
+ active_directory_authority_host: cdktf.stringToTerraform(struct.activeDirectoryAuthorityHost),
51
+ resource_manager_audience: cdktf.stringToTerraform(struct.resourceManagerAudience),
52
+ resource_manager_endpoint: cdktf.stringToTerraform(struct.resourceManagerEndpoint),
53
+ };
54
+ }
55
+ function azapiProviderEndpointToHclTerraform(struct) {
56
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
57
+ return struct;
58
+ }
59
+ if (cdktf.isComplexElement(struct)) {
60
+ throw new Error('A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration');
61
+ }
62
+ const attrs = {
63
+ active_directory_authority_host: {
64
+ value: cdktf.stringToHclTerraform(struct.activeDirectoryAuthorityHost),
65
+ isBlock: false,
66
+ type: 'simple',
67
+ storageClassType: 'string',
68
+ },
69
+ resource_manager_audience: {
70
+ value: cdktf.stringToHclTerraform(struct.resourceManagerAudience),
71
+ isBlock: false,
72
+ type: 'simple',
73
+ storageClassType: 'string',
74
+ },
75
+ resource_manager_endpoint: {
76
+ value: cdktf.stringToHclTerraform(struct.resourceManagerEndpoint),
77
+ isBlock: false,
78
+ type: 'simple',
79
+ storageClassType: 'string',
80
+ },
81
+ };
82
+ // remove undefined attributes
83
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
84
+ }
85
+ /**
86
+ * Represents a {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs azapi}
87
+ */
88
+ class AzapiProvider extends cdktf.TerraformProvider {
89
+ // =================
90
+ // STATIC PROPERTIES
91
+ // =================
92
+ static tfResourceType = 'azapi';
93
+ // ==============
94
+ // STATIC Methods
95
+ // ==============
96
+ /**
97
+ * Generates CDKTF code for importing a AzapiProvider resource upon running "cdktf plan <stack-name>"
98
+ * @param scope The scope in which to define this construct
99
+ * @param importToId The construct id used in the generated config for the AzapiProvider to import
100
+ * @param importFromId The id of the existing AzapiProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs#import import section} in the documentation of this resource for the id to use
101
+ * @param provider? Optional instance of the provider where the AzapiProvider to import is found
102
+ */
103
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
104
+ return new cdktf.ImportableResource(scope, importToId, {
105
+ terraformResourceType: 'azapi',
106
+ importId: importFromId,
107
+ provider,
108
+ });
109
+ }
110
+ // ===========
111
+ // INITIALIZER
112
+ // ===========
113
+ /**
114
+ * Create a new {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs azapi} Resource
115
+ *
116
+ * @param scope The scope in which to define this construct
117
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
118
+ * @param options AzapiProviderConfig = {}
119
+ */
120
+ constructor(scope, id, config = {}) {
121
+ super(scope, id, {
122
+ terraformResourceType: 'azapi',
123
+ terraformGeneratorMetadata: {
124
+ providerName: 'azapi',
125
+ providerVersion: '2.2.0',
126
+ providerVersionConstraint: '~> 2.2',
127
+ },
128
+ terraformProviderSource: 'azure/azapi',
129
+ });
130
+ this._auxiliaryTenantIds = config.auxiliaryTenantIds;
131
+ this._clientCertificate = config.clientCertificate;
132
+ this._clientCertificatePassword = config.clientCertificatePassword;
133
+ this._clientCertificatePath = config.clientCertificatePath;
134
+ this._clientId = config.clientId;
135
+ this._clientIdFilePath = config.clientIdFilePath;
136
+ this._clientSecret = config.clientSecret;
137
+ this._clientSecretFilePath = config.clientSecretFilePath;
138
+ this._customCorrelationRequestId = config.customCorrelationRequestId;
139
+ this._defaultLocation = config.defaultLocation;
140
+ this._defaultName = config.defaultName;
141
+ this._defaultTags = config.defaultTags;
142
+ this._disableCorrelationRequestId = config.disableCorrelationRequestId;
143
+ this._disableDefaultOutput = config.disableDefaultOutput;
144
+ this._disableTerraformPartnerId = config.disableTerraformPartnerId;
145
+ this._enablePreflight = config.enablePreflight;
146
+ this._endpoint = config.endpoint;
147
+ this._environment = config.environment;
148
+ this._oidcAzureServiceConnectionId = config.oidcAzureServiceConnectionId;
149
+ this._oidcRequestToken = config.oidcRequestToken;
150
+ this._oidcRequestUrl = config.oidcRequestUrl;
151
+ this._oidcToken = config.oidcToken;
152
+ this._oidcTokenFilePath = config.oidcTokenFilePath;
153
+ this._partnerId = config.partnerId;
154
+ this._skipProviderRegistration = config.skipProviderRegistration;
155
+ this._subscriptionId = config.subscriptionId;
156
+ this._tenantId = config.tenantId;
157
+ this._useAksWorkloadIdentity = config.useAksWorkloadIdentity;
158
+ this._useCli = config.useCli;
159
+ this._useMsi = config.useMsi;
160
+ this._useOidc = config.useOidc;
161
+ this._alias = config.alias;
162
+ }
163
+ // ==========
164
+ // ATTRIBUTES
165
+ // ==========
166
+ // auxiliary_tenant_ids - computed: false, optional: true, required: false
167
+ _auxiliaryTenantIds;
168
+ get auxiliaryTenantIds() {
169
+ return this._auxiliaryTenantIds;
170
+ }
171
+ set auxiliaryTenantIds(value) {
172
+ this._auxiliaryTenantIds = value;
173
+ }
174
+ resetAuxiliaryTenantIds() {
175
+ this._auxiliaryTenantIds = undefined;
176
+ }
177
+ // Temporarily expose input value. Use with caution.
178
+ get auxiliaryTenantIdsInput() {
179
+ return this._auxiliaryTenantIds;
180
+ }
181
+ // client_certificate - computed: false, optional: true, required: false
182
+ _clientCertificate;
183
+ get clientCertificate() {
184
+ return this._clientCertificate;
185
+ }
186
+ set clientCertificate(value) {
187
+ this._clientCertificate = value;
188
+ }
189
+ resetClientCertificate() {
190
+ this._clientCertificate = undefined;
191
+ }
192
+ // Temporarily expose input value. Use with caution.
193
+ get clientCertificateInput() {
194
+ return this._clientCertificate;
195
+ }
196
+ // client_certificate_password - computed: false, optional: true, required: false
197
+ _clientCertificatePassword;
198
+ get clientCertificatePassword() {
199
+ return this._clientCertificatePassword;
200
+ }
201
+ set clientCertificatePassword(value) {
202
+ this._clientCertificatePassword = value;
203
+ }
204
+ resetClientCertificatePassword() {
205
+ this._clientCertificatePassword = undefined;
206
+ }
207
+ // Temporarily expose input value. Use with caution.
208
+ get clientCertificatePasswordInput() {
209
+ return this._clientCertificatePassword;
210
+ }
211
+ // client_certificate_path - computed: false, optional: true, required: false
212
+ _clientCertificatePath;
213
+ get clientCertificatePath() {
214
+ return this._clientCertificatePath;
215
+ }
216
+ set clientCertificatePath(value) {
217
+ this._clientCertificatePath = value;
218
+ }
219
+ resetClientCertificatePath() {
220
+ this._clientCertificatePath = undefined;
221
+ }
222
+ // Temporarily expose input value. Use with caution.
223
+ get clientCertificatePathInput() {
224
+ return this._clientCertificatePath;
225
+ }
226
+ // client_id - computed: false, optional: true, required: false
227
+ _clientId;
228
+ get clientId() {
229
+ return this._clientId;
230
+ }
231
+ set clientId(value) {
232
+ this._clientId = value;
233
+ }
234
+ resetClientId() {
235
+ this._clientId = undefined;
236
+ }
237
+ // Temporarily expose input value. Use with caution.
238
+ get clientIdInput() {
239
+ return this._clientId;
240
+ }
241
+ // client_id_file_path - computed: false, optional: true, required: false
242
+ _clientIdFilePath;
243
+ get clientIdFilePath() {
244
+ return this._clientIdFilePath;
245
+ }
246
+ set clientIdFilePath(value) {
247
+ this._clientIdFilePath = value;
248
+ }
249
+ resetClientIdFilePath() {
250
+ this._clientIdFilePath = undefined;
251
+ }
252
+ // Temporarily expose input value. Use with caution.
253
+ get clientIdFilePathInput() {
254
+ return this._clientIdFilePath;
255
+ }
256
+ // client_secret - computed: false, optional: true, required: false
257
+ _clientSecret;
258
+ get clientSecret() {
259
+ return this._clientSecret;
260
+ }
261
+ set clientSecret(value) {
262
+ this._clientSecret = value;
263
+ }
264
+ resetClientSecret() {
265
+ this._clientSecret = undefined;
266
+ }
267
+ // Temporarily expose input value. Use with caution.
268
+ get clientSecretInput() {
269
+ return this._clientSecret;
270
+ }
271
+ // client_secret_file_path - computed: false, optional: true, required: false
272
+ _clientSecretFilePath;
273
+ get clientSecretFilePath() {
274
+ return this._clientSecretFilePath;
275
+ }
276
+ set clientSecretFilePath(value) {
277
+ this._clientSecretFilePath = value;
278
+ }
279
+ resetClientSecretFilePath() {
280
+ this._clientSecretFilePath = undefined;
281
+ }
282
+ // Temporarily expose input value. Use with caution.
283
+ get clientSecretFilePathInput() {
284
+ return this._clientSecretFilePath;
285
+ }
286
+ // custom_correlation_request_id - computed: false, optional: true, required: false
287
+ _customCorrelationRequestId;
288
+ get customCorrelationRequestId() {
289
+ return this._customCorrelationRequestId;
290
+ }
291
+ set customCorrelationRequestId(value) {
292
+ this._customCorrelationRequestId = value;
293
+ }
294
+ resetCustomCorrelationRequestId() {
295
+ this._customCorrelationRequestId = undefined;
296
+ }
297
+ // Temporarily expose input value. Use with caution.
298
+ get customCorrelationRequestIdInput() {
299
+ return this._customCorrelationRequestId;
300
+ }
301
+ // default_location - computed: false, optional: true, required: false
302
+ _defaultLocation;
303
+ get defaultLocation() {
304
+ return this._defaultLocation;
305
+ }
306
+ set defaultLocation(value) {
307
+ this._defaultLocation = value;
308
+ }
309
+ resetDefaultLocation() {
310
+ this._defaultLocation = undefined;
311
+ }
312
+ // Temporarily expose input value. Use with caution.
313
+ get defaultLocationInput() {
314
+ return this._defaultLocation;
315
+ }
316
+ // default_name - computed: false, optional: true, required: false
317
+ _defaultName;
318
+ get defaultName() {
319
+ return this._defaultName;
320
+ }
321
+ set defaultName(value) {
322
+ this._defaultName = value;
323
+ }
324
+ resetDefaultName() {
325
+ this._defaultName = undefined;
326
+ }
327
+ // Temporarily expose input value. Use with caution.
328
+ get defaultNameInput() {
329
+ return this._defaultName;
330
+ }
331
+ // default_tags - computed: false, optional: true, required: false
332
+ _defaultTags;
333
+ get defaultTags() {
334
+ return this._defaultTags;
335
+ }
336
+ set defaultTags(value) {
337
+ this._defaultTags = value;
338
+ }
339
+ resetDefaultTags() {
340
+ this._defaultTags = undefined;
341
+ }
342
+ // Temporarily expose input value. Use with caution.
343
+ get defaultTagsInput() {
344
+ return this._defaultTags;
345
+ }
346
+ // disable_correlation_request_id - computed: false, optional: true, required: false
347
+ _disableCorrelationRequestId;
348
+ get disableCorrelationRequestId() {
349
+ return this._disableCorrelationRequestId;
350
+ }
351
+ set disableCorrelationRequestId(value) {
352
+ this._disableCorrelationRequestId = value;
353
+ }
354
+ resetDisableCorrelationRequestId() {
355
+ this._disableCorrelationRequestId = undefined;
356
+ }
357
+ // Temporarily expose input value. Use with caution.
358
+ get disableCorrelationRequestIdInput() {
359
+ return this._disableCorrelationRequestId;
360
+ }
361
+ // disable_default_output - computed: false, optional: true, required: false
362
+ _disableDefaultOutput;
363
+ get disableDefaultOutput() {
364
+ return this._disableDefaultOutput;
365
+ }
366
+ set disableDefaultOutput(value) {
367
+ this._disableDefaultOutput = value;
368
+ }
369
+ resetDisableDefaultOutput() {
370
+ this._disableDefaultOutput = undefined;
371
+ }
372
+ // Temporarily expose input value. Use with caution.
373
+ get disableDefaultOutputInput() {
374
+ return this._disableDefaultOutput;
375
+ }
376
+ // disable_terraform_partner_id - computed: false, optional: true, required: false
377
+ _disableTerraformPartnerId;
378
+ get disableTerraformPartnerId() {
379
+ return this._disableTerraformPartnerId;
380
+ }
381
+ set disableTerraformPartnerId(value) {
382
+ this._disableTerraformPartnerId = value;
383
+ }
384
+ resetDisableTerraformPartnerId() {
385
+ this._disableTerraformPartnerId = undefined;
386
+ }
387
+ // Temporarily expose input value. Use with caution.
388
+ get disableTerraformPartnerIdInput() {
389
+ return this._disableTerraformPartnerId;
390
+ }
391
+ // enable_preflight - computed: false, optional: true, required: false
392
+ _enablePreflight;
393
+ get enablePreflight() {
394
+ return this._enablePreflight;
395
+ }
396
+ set enablePreflight(value) {
397
+ this._enablePreflight = value;
398
+ }
399
+ resetEnablePreflight() {
400
+ this._enablePreflight = undefined;
401
+ }
402
+ // Temporarily expose input value. Use with caution.
403
+ get enablePreflightInput() {
404
+ return this._enablePreflight;
405
+ }
406
+ // endpoint - computed: false, optional: true, required: false
407
+ _endpoint;
408
+ get endpoint() {
409
+ return this._endpoint;
410
+ }
411
+ set endpoint(value) {
412
+ this._endpoint = value;
413
+ }
414
+ resetEndpoint() {
415
+ this._endpoint = undefined;
416
+ }
417
+ // Temporarily expose input value. Use with caution.
418
+ get endpointInput() {
419
+ return this._endpoint;
420
+ }
421
+ // environment - computed: false, optional: true, required: false
422
+ _environment;
423
+ get environment() {
424
+ return this._environment;
425
+ }
426
+ set environment(value) {
427
+ this._environment = value;
428
+ }
429
+ resetEnvironment() {
430
+ this._environment = undefined;
431
+ }
432
+ // Temporarily expose input value. Use with caution.
433
+ get environmentInput() {
434
+ return this._environment;
435
+ }
436
+ // oidc_azure_service_connection_id - computed: false, optional: true, required: false
437
+ _oidcAzureServiceConnectionId;
438
+ get oidcAzureServiceConnectionId() {
439
+ return this._oidcAzureServiceConnectionId;
440
+ }
441
+ set oidcAzureServiceConnectionId(value) {
442
+ this._oidcAzureServiceConnectionId = value;
443
+ }
444
+ resetOidcAzureServiceConnectionId() {
445
+ this._oidcAzureServiceConnectionId = undefined;
446
+ }
447
+ // Temporarily expose input value. Use with caution.
448
+ get oidcAzureServiceConnectionIdInput() {
449
+ return this._oidcAzureServiceConnectionId;
450
+ }
451
+ // oidc_request_token - computed: false, optional: true, required: false
452
+ _oidcRequestToken;
453
+ get oidcRequestToken() {
454
+ return this._oidcRequestToken;
455
+ }
456
+ set oidcRequestToken(value) {
457
+ this._oidcRequestToken = value;
458
+ }
459
+ resetOidcRequestToken() {
460
+ this._oidcRequestToken = undefined;
461
+ }
462
+ // Temporarily expose input value. Use with caution.
463
+ get oidcRequestTokenInput() {
464
+ return this._oidcRequestToken;
465
+ }
466
+ // oidc_request_url - computed: false, optional: true, required: false
467
+ _oidcRequestUrl;
468
+ get oidcRequestUrl() {
469
+ return this._oidcRequestUrl;
470
+ }
471
+ set oidcRequestUrl(value) {
472
+ this._oidcRequestUrl = value;
473
+ }
474
+ resetOidcRequestUrl() {
475
+ this._oidcRequestUrl = undefined;
476
+ }
477
+ // Temporarily expose input value. Use with caution.
478
+ get oidcRequestUrlInput() {
479
+ return this._oidcRequestUrl;
480
+ }
481
+ // oidc_token - computed: false, optional: true, required: false
482
+ _oidcToken;
483
+ get oidcToken() {
484
+ return this._oidcToken;
485
+ }
486
+ set oidcToken(value) {
487
+ this._oidcToken = value;
488
+ }
489
+ resetOidcToken() {
490
+ this._oidcToken = undefined;
491
+ }
492
+ // Temporarily expose input value. Use with caution.
493
+ get oidcTokenInput() {
494
+ return this._oidcToken;
495
+ }
496
+ // oidc_token_file_path - computed: false, optional: true, required: false
497
+ _oidcTokenFilePath;
498
+ get oidcTokenFilePath() {
499
+ return this._oidcTokenFilePath;
500
+ }
501
+ set oidcTokenFilePath(value) {
502
+ this._oidcTokenFilePath = value;
503
+ }
504
+ resetOidcTokenFilePath() {
505
+ this._oidcTokenFilePath = undefined;
506
+ }
507
+ // Temporarily expose input value. Use with caution.
508
+ get oidcTokenFilePathInput() {
509
+ return this._oidcTokenFilePath;
510
+ }
511
+ // partner_id - computed: false, optional: true, required: false
512
+ _partnerId;
513
+ get partnerId() {
514
+ return this._partnerId;
515
+ }
516
+ set partnerId(value) {
517
+ this._partnerId = value;
518
+ }
519
+ resetPartnerId() {
520
+ this._partnerId = undefined;
521
+ }
522
+ // Temporarily expose input value. Use with caution.
523
+ get partnerIdInput() {
524
+ return this._partnerId;
525
+ }
526
+ // skip_provider_registration - computed: false, optional: true, required: false
527
+ _skipProviderRegistration;
528
+ get skipProviderRegistration() {
529
+ return this._skipProviderRegistration;
530
+ }
531
+ set skipProviderRegistration(value) {
532
+ this._skipProviderRegistration = value;
533
+ }
534
+ resetSkipProviderRegistration() {
535
+ this._skipProviderRegistration = undefined;
536
+ }
537
+ // Temporarily expose input value. Use with caution.
538
+ get skipProviderRegistrationInput() {
539
+ return this._skipProviderRegistration;
540
+ }
541
+ // subscription_id - computed: false, optional: true, required: false
542
+ _subscriptionId;
543
+ get subscriptionId() {
544
+ return this._subscriptionId;
545
+ }
546
+ set subscriptionId(value) {
547
+ this._subscriptionId = value;
548
+ }
549
+ resetSubscriptionId() {
550
+ this._subscriptionId = undefined;
551
+ }
552
+ // Temporarily expose input value. Use with caution.
553
+ get subscriptionIdInput() {
554
+ return this._subscriptionId;
555
+ }
556
+ // tenant_id - computed: false, optional: true, required: false
557
+ _tenantId;
558
+ get tenantId() {
559
+ return this._tenantId;
560
+ }
561
+ set tenantId(value) {
562
+ this._tenantId = value;
563
+ }
564
+ resetTenantId() {
565
+ this._tenantId = undefined;
566
+ }
567
+ // Temporarily expose input value. Use with caution.
568
+ get tenantIdInput() {
569
+ return this._tenantId;
570
+ }
571
+ // use_aks_workload_identity - computed: false, optional: true, required: false
572
+ _useAksWorkloadIdentity;
573
+ get useAksWorkloadIdentity() {
574
+ return this._useAksWorkloadIdentity;
575
+ }
576
+ set useAksWorkloadIdentity(value) {
577
+ this._useAksWorkloadIdentity = value;
578
+ }
579
+ resetUseAksWorkloadIdentity() {
580
+ this._useAksWorkloadIdentity = undefined;
581
+ }
582
+ // Temporarily expose input value. Use with caution.
583
+ get useAksWorkloadIdentityInput() {
584
+ return this._useAksWorkloadIdentity;
585
+ }
586
+ // use_cli - computed: false, optional: true, required: false
587
+ _useCli;
588
+ get useCli() {
589
+ return this._useCli;
590
+ }
591
+ set useCli(value) {
592
+ this._useCli = value;
593
+ }
594
+ resetUseCli() {
595
+ this._useCli = undefined;
596
+ }
597
+ // Temporarily expose input value. Use with caution.
598
+ get useCliInput() {
599
+ return this._useCli;
600
+ }
601
+ // use_msi - computed: false, optional: true, required: false
602
+ _useMsi;
603
+ get useMsi() {
604
+ return this._useMsi;
605
+ }
606
+ set useMsi(value) {
607
+ this._useMsi = value;
608
+ }
609
+ resetUseMsi() {
610
+ this._useMsi = undefined;
611
+ }
612
+ // Temporarily expose input value. Use with caution.
613
+ get useMsiInput() {
614
+ return this._useMsi;
615
+ }
616
+ // use_oidc - computed: false, optional: true, required: false
617
+ _useOidc;
618
+ get useOidc() {
619
+ return this._useOidc;
620
+ }
621
+ set useOidc(value) {
622
+ this._useOidc = value;
623
+ }
624
+ resetUseOidc() {
625
+ this._useOidc = undefined;
626
+ }
627
+ // Temporarily expose input value. Use with caution.
628
+ get useOidcInput() {
629
+ return this._useOidc;
630
+ }
631
+ // alias - computed: false, optional: true, required: false
632
+ _alias;
633
+ get alias() {
634
+ return this._alias;
635
+ }
636
+ set alias(value) {
637
+ this._alias = value;
638
+ }
639
+ resetAlias() {
640
+ this._alias = undefined;
641
+ }
642
+ // Temporarily expose input value. Use with caution.
643
+ get aliasInput() {
644
+ return this._alias;
645
+ }
646
+ // =========
647
+ // SYNTHESIS
648
+ // =========
649
+ synthesizeAttributes() {
650
+ return {
651
+ auxiliary_tenant_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._auxiliaryTenantIds),
652
+ client_certificate: cdktf.stringToTerraform(this._clientCertificate),
653
+ client_certificate_password: cdktf.stringToTerraform(this._clientCertificatePassword),
654
+ client_certificate_path: cdktf.stringToTerraform(this._clientCertificatePath),
655
+ client_id: cdktf.stringToTerraform(this._clientId),
656
+ client_id_file_path: cdktf.stringToTerraform(this._clientIdFilePath),
657
+ client_secret: cdktf.stringToTerraform(this._clientSecret),
658
+ client_secret_file_path: cdktf.stringToTerraform(this._clientSecretFilePath),
659
+ custom_correlation_request_id: cdktf.stringToTerraform(this._customCorrelationRequestId),
660
+ default_location: cdktf.stringToTerraform(this._defaultLocation),
661
+ default_name: cdktf.stringToTerraform(this._defaultName),
662
+ default_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._defaultTags),
663
+ disable_correlation_request_id: cdktf.booleanToTerraform(this._disableCorrelationRequestId),
664
+ disable_default_output: cdktf.booleanToTerraform(this._disableDefaultOutput),
665
+ disable_terraform_partner_id: cdktf.booleanToTerraform(this._disableTerraformPartnerId),
666
+ enable_preflight: cdktf.booleanToTerraform(this._enablePreflight),
667
+ endpoint: cdktf.listMapper(azapiProviderEndpointToTerraform, false)(this._endpoint),
668
+ environment: cdktf.stringToTerraform(this._environment),
669
+ oidc_azure_service_connection_id: cdktf.stringToTerraform(this._oidcAzureServiceConnectionId),
670
+ oidc_request_token: cdktf.stringToTerraform(this._oidcRequestToken),
671
+ oidc_request_url: cdktf.stringToTerraform(this._oidcRequestUrl),
672
+ oidc_token: cdktf.stringToTerraform(this._oidcToken),
673
+ oidc_token_file_path: cdktf.stringToTerraform(this._oidcTokenFilePath),
674
+ partner_id: cdktf.stringToTerraform(this._partnerId),
675
+ skip_provider_registration: cdktf.booleanToTerraform(this._skipProviderRegistration),
676
+ subscription_id: cdktf.stringToTerraform(this._subscriptionId),
677
+ tenant_id: cdktf.stringToTerraform(this._tenantId),
678
+ use_aks_workload_identity: cdktf.booleanToTerraform(this._useAksWorkloadIdentity),
679
+ use_cli: cdktf.booleanToTerraform(this._useCli),
680
+ use_msi: cdktf.booleanToTerraform(this._useMsi),
681
+ use_oidc: cdktf.booleanToTerraform(this._useOidc),
682
+ alias: cdktf.stringToTerraform(this._alias),
683
+ };
684
+ }
685
+ synthesizeHclAttributes() {
686
+ const attrs = {
687
+ auxiliary_tenant_ids: {
688
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._auxiliaryTenantIds),
689
+ isBlock: false,
690
+ type: 'list',
691
+ storageClassType: 'stringList',
692
+ },
693
+ client_certificate: {
694
+ value: cdktf.stringToHclTerraform(this._clientCertificate),
695
+ isBlock: false,
696
+ type: 'simple',
697
+ storageClassType: 'string',
698
+ },
699
+ client_certificate_password: {
700
+ value: cdktf.stringToHclTerraform(this._clientCertificatePassword),
701
+ isBlock: false,
702
+ type: 'simple',
703
+ storageClassType: 'string',
704
+ },
705
+ client_certificate_path: {
706
+ value: cdktf.stringToHclTerraform(this._clientCertificatePath),
707
+ isBlock: false,
708
+ type: 'simple',
709
+ storageClassType: 'string',
710
+ },
711
+ client_id: {
712
+ value: cdktf.stringToHclTerraform(this._clientId),
713
+ isBlock: false,
714
+ type: 'simple',
715
+ storageClassType: 'string',
716
+ },
717
+ client_id_file_path: {
718
+ value: cdktf.stringToHclTerraform(this._clientIdFilePath),
719
+ isBlock: false,
720
+ type: 'simple',
721
+ storageClassType: 'string',
722
+ },
723
+ client_secret: {
724
+ value: cdktf.stringToHclTerraform(this._clientSecret),
725
+ isBlock: false,
726
+ type: 'simple',
727
+ storageClassType: 'string',
728
+ },
729
+ client_secret_file_path: {
730
+ value: cdktf.stringToHclTerraform(this._clientSecretFilePath),
731
+ isBlock: false,
732
+ type: 'simple',
733
+ storageClassType: 'string',
734
+ },
735
+ custom_correlation_request_id: {
736
+ value: cdktf.stringToHclTerraform(this._customCorrelationRequestId),
737
+ isBlock: false,
738
+ type: 'simple',
739
+ storageClassType: 'string',
740
+ },
741
+ default_location: {
742
+ value: cdktf.stringToHclTerraform(this._defaultLocation),
743
+ isBlock: false,
744
+ type: 'simple',
745
+ storageClassType: 'string',
746
+ },
747
+ default_name: {
748
+ value: cdktf.stringToHclTerraform(this._defaultName),
749
+ isBlock: false,
750
+ type: 'simple',
751
+ storageClassType: 'string',
752
+ },
753
+ default_tags: {
754
+ value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._defaultTags),
755
+ isBlock: false,
756
+ type: 'map',
757
+ storageClassType: 'stringMap',
758
+ },
759
+ disable_correlation_request_id: {
760
+ value: cdktf.booleanToHclTerraform(this._disableCorrelationRequestId),
761
+ isBlock: false,
762
+ type: 'simple',
763
+ storageClassType: 'boolean',
764
+ },
765
+ disable_default_output: {
766
+ value: cdktf.booleanToHclTerraform(this._disableDefaultOutput),
767
+ isBlock: false,
768
+ type: 'simple',
769
+ storageClassType: 'boolean',
770
+ },
771
+ disable_terraform_partner_id: {
772
+ value: cdktf.booleanToHclTerraform(this._disableTerraformPartnerId),
773
+ isBlock: false,
774
+ type: 'simple',
775
+ storageClassType: 'boolean',
776
+ },
777
+ enable_preflight: {
778
+ value: cdktf.booleanToHclTerraform(this._enablePreflight),
779
+ isBlock: false,
780
+ type: 'simple',
781
+ storageClassType: 'boolean',
782
+ },
783
+ endpoint: {
784
+ value: cdktf.listMapperHcl(azapiProviderEndpointToHclTerraform, false)(this._endpoint),
785
+ isBlock: true,
786
+ type: 'list',
787
+ storageClassType: 'AzapiProviderEndpointList',
788
+ },
789
+ environment: {
790
+ value: cdktf.stringToHclTerraform(this._environment),
791
+ isBlock: false,
792
+ type: 'simple',
793
+ storageClassType: 'string',
794
+ },
795
+ oidc_azure_service_connection_id: {
796
+ value: cdktf.stringToHclTerraform(this._oidcAzureServiceConnectionId),
797
+ isBlock: false,
798
+ type: 'simple',
799
+ storageClassType: 'string',
800
+ },
801
+ oidc_request_token: {
802
+ value: cdktf.stringToHclTerraform(this._oidcRequestToken),
803
+ isBlock: false,
804
+ type: 'simple',
805
+ storageClassType: 'string',
806
+ },
807
+ oidc_request_url: {
808
+ value: cdktf.stringToHclTerraform(this._oidcRequestUrl),
809
+ isBlock: false,
810
+ type: 'simple',
811
+ storageClassType: 'string',
812
+ },
813
+ oidc_token: {
814
+ value: cdktf.stringToHclTerraform(this._oidcToken),
815
+ isBlock: false,
816
+ type: 'simple',
817
+ storageClassType: 'string',
818
+ },
819
+ oidc_token_file_path: {
820
+ value: cdktf.stringToHclTerraform(this._oidcTokenFilePath),
821
+ isBlock: false,
822
+ type: 'simple',
823
+ storageClassType: 'string',
824
+ },
825
+ partner_id: {
826
+ value: cdktf.stringToHclTerraform(this._partnerId),
827
+ isBlock: false,
828
+ type: 'simple',
829
+ storageClassType: 'string',
830
+ },
831
+ skip_provider_registration: {
832
+ value: cdktf.booleanToHclTerraform(this._skipProviderRegistration),
833
+ isBlock: false,
834
+ type: 'simple',
835
+ storageClassType: 'boolean',
836
+ },
837
+ subscription_id: {
838
+ value: cdktf.stringToHclTerraform(this._subscriptionId),
839
+ isBlock: false,
840
+ type: 'simple',
841
+ storageClassType: 'string',
842
+ },
843
+ tenant_id: {
844
+ value: cdktf.stringToHclTerraform(this._tenantId),
845
+ isBlock: false,
846
+ type: 'simple',
847
+ storageClassType: 'string',
848
+ },
849
+ use_aks_workload_identity: {
850
+ value: cdktf.booleanToHclTerraform(this._useAksWorkloadIdentity),
851
+ isBlock: false,
852
+ type: 'simple',
853
+ storageClassType: 'boolean',
854
+ },
855
+ use_cli: {
856
+ value: cdktf.booleanToHclTerraform(this._useCli),
857
+ isBlock: false,
858
+ type: 'simple',
859
+ storageClassType: 'boolean',
860
+ },
861
+ use_msi: {
862
+ value: cdktf.booleanToHclTerraform(this._useMsi),
863
+ isBlock: false,
864
+ type: 'simple',
865
+ storageClassType: 'boolean',
866
+ },
867
+ use_oidc: {
868
+ value: cdktf.booleanToHclTerraform(this._useOidc),
869
+ isBlock: false,
870
+ type: 'simple',
871
+ storageClassType: 'boolean',
872
+ },
873
+ alias: {
874
+ value: cdktf.stringToHclTerraform(this._alias),
875
+ isBlock: false,
876
+ type: 'simple',
877
+ storageClassType: 'string',
878
+ },
879
+ };
880
+ // remove undefined attributes
881
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
882
+ }
883
+ }
884
+ exports.AzapiProvider = AzapiProvider;