@azure/provisioning-keyvault 1.0.0-beta.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +29 -0
  4. package/dist/browser/deleted-managed-hsm.d.ts +33 -0
  5. package/dist/browser/deleted-managed-hsm.d.ts.map +1 -0
  6. package/dist/browser/deleted-managed-hsm.js +68 -0
  7. package/dist/browser/deleted-managed-hsm.js.map +1 -0
  8. package/dist/browser/deleted-vault.d.ts +33 -0
  9. package/dist/browser/deleted-vault.d.ts.map +1 -0
  10. package/dist/browser/deleted-vault.js +68 -0
  11. package/dist/browser/deleted-vault.js.map +1 -0
  12. package/dist/browser/index.d.ts +6 -0
  13. package/dist/browser/index.d.ts.map +1 -0
  14. package/dist/browser/index.js +8 -0
  15. package/dist/browser/index.js.map +1 -0
  16. package/dist/browser/key-vault.d.ts +326 -0
  17. package/dist/browser/key-vault.d.ts.map +1 -0
  18. package/dist/browser/key-vault.js +482 -0
  19. package/dist/browser/key-vault.js.map +1 -0
  20. package/dist/browser/managed-hsm.d.ts +263 -0
  21. package/dist/browser/managed-hsm.d.ts.map +1 -0
  22. package/dist/browser/managed-hsm.js +374 -0
  23. package/dist/browser/managed-hsm.js.map +1 -0
  24. package/dist/browser/package.json +8 -0
  25. package/dist/browser/types.d.ts +2404 -0
  26. package/dist/browser/types.d.ts.map +1 -0
  27. package/dist/browser/types.js +472 -0
  28. package/dist/browser/types.js.map +1 -0
  29. package/dist/commonjs/deleted-managed-hsm.d.ts +33 -0
  30. package/dist/commonjs/deleted-managed-hsm.d.ts.map +1 -0
  31. package/dist/commonjs/deleted-managed-hsm.js +91 -0
  32. package/dist/commonjs/deleted-managed-hsm.js.map +7 -0
  33. package/dist/commonjs/deleted-vault.d.ts +33 -0
  34. package/dist/commonjs/deleted-vault.d.ts.map +1 -0
  35. package/dist/commonjs/deleted-vault.js +91 -0
  36. package/dist/commonjs/deleted-vault.js.map +7 -0
  37. package/dist/commonjs/index.d.ts +6 -0
  38. package/dist/commonjs/index.d.ts.map +1 -0
  39. package/dist/commonjs/index.js +66 -0
  40. package/dist/commonjs/index.js.map +7 -0
  41. package/dist/commonjs/key-vault.d.ts +326 -0
  42. package/dist/commonjs/key-vault.d.ts.map +1 -0
  43. package/dist/commonjs/key-vault.js +510 -0
  44. package/dist/commonjs/key-vault.js.map +7 -0
  45. package/dist/commonjs/managed-hsm.d.ts +263 -0
  46. package/dist/commonjs/managed-hsm.d.ts.map +1 -0
  47. package/dist/commonjs/managed-hsm.js +400 -0
  48. package/dist/commonjs/managed-hsm.js.map +7 -0
  49. package/dist/commonjs/package.json +8 -0
  50. package/dist/commonjs/tsdoc-metadata.json +11 -0
  51. package/dist/commonjs/types.d.ts +2404 -0
  52. package/dist/commonjs/types.d.ts.map +1 -0
  53. package/dist/commonjs/types.js +586 -0
  54. package/dist/commonjs/types.js.map +7 -0
  55. package/dist/esm/deleted-managed-hsm.d.ts +33 -0
  56. package/dist/esm/deleted-managed-hsm.d.ts.map +1 -0
  57. package/dist/esm/deleted-managed-hsm.js +68 -0
  58. package/dist/esm/deleted-managed-hsm.js.map +1 -0
  59. package/dist/esm/deleted-vault.d.ts +33 -0
  60. package/dist/esm/deleted-vault.d.ts.map +1 -0
  61. package/dist/esm/deleted-vault.js +68 -0
  62. package/dist/esm/deleted-vault.js.map +1 -0
  63. package/dist/esm/index.d.ts +6 -0
  64. package/dist/esm/index.d.ts.map +1 -0
  65. package/dist/esm/index.js +8 -0
  66. package/dist/esm/index.js.map +1 -0
  67. package/dist/esm/key-vault.d.ts +326 -0
  68. package/dist/esm/key-vault.d.ts.map +1 -0
  69. package/dist/esm/key-vault.js +482 -0
  70. package/dist/esm/key-vault.js.map +1 -0
  71. package/dist/esm/managed-hsm.d.ts +263 -0
  72. package/dist/esm/managed-hsm.d.ts.map +1 -0
  73. package/dist/esm/managed-hsm.js +374 -0
  74. package/dist/esm/managed-hsm.js.map +1 -0
  75. package/dist/esm/package.json +8 -0
  76. package/dist/esm/types.d.ts +2404 -0
  77. package/dist/esm/types.d.ts.map +1 -0
  78. package/dist/esm/types.js +472 -0
  79. package/dist/esm/types.js.map +1 -0
  80. package/package.json +105 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key-vault.d.ts","sourceRoot":"","sources":["../../src/key-vault.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,QAAQ,EACR,KAAK,eAAe,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAEvB,KAAK,iBAAiB,EACtB,KAAK,wCAAwC,EAE7C,KAAK,uCAAuC,EAC5C,KAAK,qBAAqB,EAE1B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EAErC,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EAEzB,KAAK,mBAAmB,EACzB,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,UAAU,EAAE,oBAAoB,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;CACnF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC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AE,eAAe;IAK3B;;OAEG;IACH,IAAI,QAAQ,IAAI,UAAU,CAAC,MAAM,CAAC,CAEjC;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAE5C;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,CAE7B;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAExC;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,mBAAmB,CAEpC;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,oBAAoB,EAEzC;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAEzE;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,EAEzF;CACF"}
@@ -0,0 +1,482 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { Resource, } from "@azure/provisioning-core";
4
+ import { createDeferredShape, createFlatModelShape, createRecordShape, createStringShape, } from "@azure/provisioning-core/internal";
5
+ import { keyPropertiesShape, privateEndpointConnectionPropertiesShape, secretPropertiesShape, vaultAccessPolicyPropertiesShape, vaultPropertiesShape, } from "./types.js";
6
+ const API_VERSION = "2026-02-01";
7
+ /**
8
+ * Parameters for updating the access policy in a vault
9
+ */
10
+ export class AccessPolicy extends Resource {
11
+ static resourceType = "Microsoft.KeyVault/vaults/accessPolicies";
12
+ static apiVersion = API_VERSION;
13
+ static namingRules = {
14
+ abbreviation: "ap",
15
+ minLength: 1,
16
+ maxLength: 24,
17
+ validCharacters: {
18
+ uppercase: true,
19
+ hyphens: true,
20
+ underscores: false,
21
+ periods: false,
22
+ },
23
+ scope: "global",
24
+ };
25
+ static {
26
+ this.registerShape(createFlatModelShape({
27
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
28
+ name: { armPath: ["name"], value: createStringShape() },
29
+ properties: {
30
+ armPath: ["properties"],
31
+ value: createDeferredShape(() => vaultAccessPolicyPropertiesShape),
32
+ },
33
+ }));
34
+ this.register();
35
+ }
36
+ /**
37
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
38
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
39
+ *
40
+ * @param props - Resource properties to normalize for the base constructor.
41
+ */
42
+ static buildResourceProps(props) {
43
+ return {
44
+ ...props,
45
+ type: AccessPolicy.resourceType,
46
+ apiVersion: AccessPolicy.apiVersion,
47
+ };
48
+ }
49
+ constructor(context, props, options) {
50
+ super(context, AccessPolicy.buildResourceProps(props), options);
51
+ }
52
+ /**
53
+ * The resource type of the access policy.
54
+ */
55
+ get location() {
56
+ return this.expr("location");
57
+ }
58
+ /**
59
+ * The resource name of the access policy.
60
+ */
61
+ get name() {
62
+ return this.expr("name");
63
+ }
64
+ set name(value) {
65
+ this.setProperty("name", value);
66
+ }
67
+ /**
68
+ * Properties of the access policy
69
+ */
70
+ get properties() {
71
+ return this.expr("properties");
72
+ }
73
+ set properties(value) {
74
+ this.setProperty("properties", value);
75
+ }
76
+ }
77
+ /**
78
+ * The key resource.
79
+ */
80
+ export class Version extends Resource {
81
+ static resourceType = "Microsoft.KeyVault/vaults/keys/versions";
82
+ static apiVersion = API_VERSION;
83
+ static namingRules = {
84
+ abbreviation: "v",
85
+ minLength: 1,
86
+ maxLength: 24,
87
+ validCharacters: {
88
+ uppercase: true,
89
+ hyphens: false,
90
+ underscores: false,
91
+ periods: false,
92
+ },
93
+ scope: "global",
94
+ };
95
+ static {
96
+ this.registerShape(createFlatModelShape({
97
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
98
+ name: { armPath: ["name"], value: createStringShape() },
99
+ properties: {
100
+ armPath: ["properties"],
101
+ value: createDeferredShape(() => keyPropertiesShape),
102
+ readOnly: true,
103
+ },
104
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()), readOnly: true },
105
+ }));
106
+ this.register();
107
+ }
108
+ /**
109
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
110
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
111
+ *
112
+ * @param props - Resource properties to normalize for the base constructor.
113
+ */
114
+ static buildResourceProps(props) {
115
+ return {
116
+ ...props,
117
+ type: Version.resourceType,
118
+ apiVersion: Version.apiVersion,
119
+ };
120
+ }
121
+ constructor(context, props, options) {
122
+ super(context, Version.buildResourceProps(props), options);
123
+ }
124
+ /**
125
+ * The supported Azure location where the managed HSM Pool should be created.
126
+ */
127
+ get location() {
128
+ return this.expr("location");
129
+ }
130
+ /**
131
+ * The name of the key to be retrieved.
132
+ */
133
+ get name() {
134
+ return this.expr("name");
135
+ }
136
+ set name(value) {
137
+ this.setProperty("name", value);
138
+ }
139
+ /**
140
+ * The properties of the key.
141
+ */
142
+ get properties() {
143
+ return this.expr("properties");
144
+ }
145
+ /**
146
+ * Resource tags
147
+ */
148
+ get tags() {
149
+ return this.expr("tags");
150
+ }
151
+ }
152
+ /**
153
+ * The key resource.
154
+ */
155
+ export class VaultKey extends Resource {
156
+ static resourceType = "Microsoft.KeyVault/vaults/keys";
157
+ static apiVersion = API_VERSION;
158
+ static namingRules = {
159
+ abbreviation: "k",
160
+ minLength: 1,
161
+ maxLength: 24,
162
+ validCharacters: {
163
+ uppercase: true,
164
+ hyphens: false,
165
+ underscores: false,
166
+ periods: false,
167
+ },
168
+ scope: "global",
169
+ };
170
+ static {
171
+ this.registerShape(createFlatModelShape({
172
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
173
+ name: { armPath: ["name"], value: createStringShape() },
174
+ properties: {
175
+ armPath: ["properties"],
176
+ value: createDeferredShape(() => keyPropertiesShape),
177
+ },
178
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
179
+ }));
180
+ this.register();
181
+ }
182
+ /**
183
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
184
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
185
+ *
186
+ * @param props - Resource properties to normalize for the base constructor.
187
+ */
188
+ static buildResourceProps(props) {
189
+ return {
190
+ ...props,
191
+ type: VaultKey.resourceType,
192
+ apiVersion: VaultKey.apiVersion,
193
+ };
194
+ }
195
+ constructor(context, props, options) {
196
+ super(context, VaultKey.buildResourceProps(props), options);
197
+ }
198
+ /**
199
+ * The supported Azure location where the managed HSM Pool should be created.
200
+ */
201
+ get location() {
202
+ return this.expr("location");
203
+ }
204
+ /**
205
+ * The name of the key to be retrieved.
206
+ */
207
+ get name() {
208
+ return this.expr("name");
209
+ }
210
+ set name(value) {
211
+ this.setProperty("name", value);
212
+ }
213
+ /**
214
+ * The properties of the key to be created.
215
+ */
216
+ get properties() {
217
+ return this.expr("properties");
218
+ }
219
+ set properties(value) {
220
+ this.setProperty("properties", value);
221
+ }
222
+ /**
223
+ * The tags that will be assigned to the key.
224
+ */
225
+ get tags() {
226
+ return this.expr("tags");
227
+ }
228
+ set tags(value) {
229
+ this.setProperty("tags", value);
230
+ }
231
+ }
232
+ /**
233
+ * Private endpoint connection resource.
234
+ */
235
+ export class VaultPrivateEndpointConnection extends Resource {
236
+ static resourceType = "Microsoft.KeyVault/vaults/privateEndpointConnections";
237
+ static apiVersion = API_VERSION;
238
+ static namingRules = {
239
+ abbreviation: "pec",
240
+ minLength: 1,
241
+ maxLength: 24,
242
+ validCharacters: {
243
+ uppercase: true,
244
+ hyphens: true,
245
+ underscores: false,
246
+ periods: false,
247
+ },
248
+ scope: "global",
249
+ };
250
+ static {
251
+ this.registerShape(createFlatModelShape({
252
+ etag: { armPath: ["etag"], value: createStringShape() },
253
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
254
+ name: { armPath: ["name"], value: createStringShape() },
255
+ properties: {
256
+ armPath: ["properties"],
257
+ value: createDeferredShape(() => privateEndpointConnectionPropertiesShape),
258
+ },
259
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()), readOnly: true },
260
+ }));
261
+ this.register();
262
+ }
263
+ /**
264
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
265
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
266
+ *
267
+ * @param props - Resource properties to normalize for the base constructor.
268
+ */
269
+ static buildResourceProps(props) {
270
+ return {
271
+ ...props,
272
+ type: VaultPrivateEndpointConnection.resourceType,
273
+ apiVersion: VaultPrivateEndpointConnection.apiVersion,
274
+ };
275
+ }
276
+ constructor(context, props, options) {
277
+ super(context, VaultPrivateEndpointConnection.buildResourceProps(props), options);
278
+ }
279
+ /**
280
+ * Modified whenever there is a change in the state of private endpoint connection.
281
+ */
282
+ get etag() {
283
+ return this.expr("etag");
284
+ }
285
+ set etag(value) {
286
+ this.setProperty("etag", value);
287
+ }
288
+ /**
289
+ * Azure location of the key vault resource.
290
+ */
291
+ get location() {
292
+ return this.expr("location");
293
+ }
294
+ /**
295
+ * Name of the private endpoint connection associated with the key vault.
296
+ */
297
+ get name() {
298
+ return this.expr("name");
299
+ }
300
+ set name(value) {
301
+ this.setProperty("name", value);
302
+ }
303
+ /**
304
+ * Resource properties.
305
+ */
306
+ get properties() {
307
+ return this.expr("properties");
308
+ }
309
+ set properties(value) {
310
+ this.setProperty("properties", value);
311
+ }
312
+ /**
313
+ * Tags assigned to the key vault resource.
314
+ */
315
+ get tags() {
316
+ return this.expr("tags");
317
+ }
318
+ }
319
+ /**
320
+ * Resource information with extended details.
321
+ */
322
+ export class Secret extends Resource {
323
+ static resourceType = "Microsoft.KeyVault/vaults/secrets";
324
+ static apiVersion = API_VERSION;
325
+ static namingRules = {
326
+ abbreviation: "s",
327
+ minLength: 1,
328
+ maxLength: 24,
329
+ validCharacters: {
330
+ uppercase: true,
331
+ hyphens: true,
332
+ underscores: false,
333
+ periods: false,
334
+ },
335
+ scope: "global",
336
+ };
337
+ static {
338
+ this.registerShape(createFlatModelShape({
339
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
340
+ name: { armPath: ["name"], value: createStringShape() },
341
+ properties: {
342
+ armPath: ["properties"],
343
+ value: createDeferredShape(() => secretPropertiesShape),
344
+ },
345
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
346
+ }));
347
+ this.register();
348
+ }
349
+ /**
350
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
351
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
352
+ *
353
+ * @param props - Resource properties to normalize for the base constructor.
354
+ */
355
+ static buildResourceProps(props) {
356
+ return {
357
+ ...props,
358
+ type: Secret.resourceType,
359
+ apiVersion: Secret.apiVersion,
360
+ };
361
+ }
362
+ constructor(context, props, options) {
363
+ super(context, Secret.buildResourceProps(props), options);
364
+ }
365
+ /**
366
+ * Azure location of the key vault resource.
367
+ */
368
+ get location() {
369
+ return this.expr("location");
370
+ }
371
+ /**
372
+ * The name of the secret.
373
+ */
374
+ get name() {
375
+ return this.expr("name");
376
+ }
377
+ set name(value) {
378
+ this.setProperty("name", value);
379
+ }
380
+ /**
381
+ * Properties of the secret
382
+ */
383
+ get properties() {
384
+ return this.expr("properties");
385
+ }
386
+ set properties(value) {
387
+ this.setProperty("properties", value);
388
+ }
389
+ /**
390
+ * The tags that will be assigned to the secret.
391
+ */
392
+ get tags() {
393
+ return this.expr("tags");
394
+ }
395
+ set tags(value) {
396
+ this.setProperty("tags", value);
397
+ }
398
+ }
399
+ /**
400
+ * Resource information with extended details.
401
+ */
402
+ export class KeyVault extends Resource {
403
+ static resourceType = "Microsoft.KeyVault/vaults";
404
+ static apiVersion = API_VERSION;
405
+ static namingRules = {
406
+ abbreviation: "kv",
407
+ minLength: 3,
408
+ maxLength: 24,
409
+ validCharacters: {
410
+ uppercase: true,
411
+ hyphens: true,
412
+ underscores: false,
413
+ periods: false,
414
+ },
415
+ scope: "global",
416
+ };
417
+ static {
418
+ this.registerShape(createFlatModelShape({
419
+ location: { armPath: ["location"], value: createStringShape() },
420
+ name: { armPath: ["name"], value: createStringShape() },
421
+ properties: {
422
+ armPath: ["properties"],
423
+ value: createDeferredShape(() => vaultPropertiesShape),
424
+ },
425
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
426
+ }));
427
+ this.register();
428
+ }
429
+ /**
430
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
431
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
432
+ *
433
+ * @param props - Resource properties to normalize for the base constructor.
434
+ */
435
+ static buildResourceProps(props) {
436
+ return {
437
+ ...props,
438
+ type: KeyVault.resourceType,
439
+ apiVersion: KeyVault.apiVersion,
440
+ };
441
+ }
442
+ constructor(context, props, options) {
443
+ super(context, KeyVault.buildResourceProps(props), options);
444
+ }
445
+ /**
446
+ * The supported Azure location where the key vault should be created.
447
+ */
448
+ get location() {
449
+ return this.expr("location");
450
+ }
451
+ set location(value) {
452
+ this.setProperty("location", value);
453
+ }
454
+ /**
455
+ * The name of the vault.
456
+ */
457
+ get name() {
458
+ return this.expr("name");
459
+ }
460
+ set name(value) {
461
+ this.setProperty("name", value);
462
+ }
463
+ /**
464
+ * Properties of the vault
465
+ */
466
+ get properties() {
467
+ return this.expr("properties");
468
+ }
469
+ set properties(value) {
470
+ this.setProperty("properties", value);
471
+ }
472
+ /**
473
+ * The tags that will be assigned to the key vault.
474
+ */
475
+ get tags() {
476
+ return this.expr("tags");
477
+ }
478
+ set tags(value) {
479
+ this.setProperty("tags", value);
480
+ }
481
+ }
482
+ //# sourceMappingURL=key-vault.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key-vault.js","sourceRoot":"","sources":["../../src/key-vault.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,QAAQ,GAET,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,GAIlB,MAAM,mCA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AAK,CAAC,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC/B,CAAC;IACD,IAAI,QAAQ,CAAC,KAAgC;QAC3C,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,IAAI,CAAC,KAAgC;QACvC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAQ,CAAC;IACxC,CAAC;IACD,IAAI,UAAU,CAAC,KAA2B;QACxC,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,IAAI,CAAC,KAAiF;QACxF,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n type ExistingResourceProps,\n type Expression,\n type ExpressionOrValue,\n type ProvisioningComponent,\n Resource,\n type ResourceOptions,\n} from \"@azure/provisioning-core\";\nimport {\n createDeferredShape,\n createFlatModelShape,\n createRecordShape,\n createStringShape,\n type InputRecord,\n type ResourceNamingRules,\n type ResourceProps,\n} from \"@azure/provisioning-core/internal\";\nimport {\n type KeyProperties,\n type KeyPropertiesInput,\n keyPropertiesShape,\n type KeyPropertiesView,\n type PrivateEndpointConnectionPropertiesInput,\n privateEndpointConnectionPropertiesShape,\n type PrivateEndpointConnectionPropertiesView,\n type SecretPropertiesInput,\n secretPropertiesShape,\n type SecretPropertiesView,\n type VaultAccessPolicyPropertiesInput,\n vaultAccessPolicyPropertiesShape,\n type VaultAccessPolicyPropertiesView,\n type VaultPropertiesInput,\n vaultPropertiesShape,\n type VaultPropertiesView,\n} from \"./types.js\";\n\nconst API_VERSION = \"2026-02-01\";\n\nexport interface KeyVaultProps {\n /**\n * The supported Azure location where the key vault should be created.\n */\n location?: ExpressionOrValue<string> | undefined;\n /**\n * The name of the vault.\n */\n name?: ExpressionOrValue<string> | undefined;\n /**\n * Properties of the vault\n */\n properties: VaultPropertiesInput;\n /**\n * The tags that will be assigned to the key vault.\n */\n tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;\n}\n\nexport interface AccessPolicyProps {\n /**\n * The resource name of the access policy.\n */\n name?: ExpressionOrValue<string> | undefined;\n /**\n * Properties of the access policy\n */\n properties: VaultAccessPolicyPropertiesInput;\n}\n\n/**\n * Parameters for updating the access policy in a vault\n */\nexport class AccessPolicy extends Resource<\"Microsoft.KeyVault/vaults/accessPolicies\"> {\n static resourceType = \"Microsoft.KeyVault/vaults/accessPolicies\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"ap\",\n minLength: 1,\n maxLength: 24,\n validCharacters: {\n uppercase: true,\n hyphens: true,\n underscores: false,\n periods: false,\n },\n scope: \"global\",\n };\n\n static {\n this.registerShape(\n createFlatModelShape({\n location: { armPath: [\"location\"], value: createStringShape(), readOnly: true },\n name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => vaultAccessPolicyPropertiesShape),\n },\n }),\n );\n this.register();\n }\n\n /**\n * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying\n * resource metadata. Shared by ordinary construction and internal resource reconstruction.\n *\n * @param props - Resource properties to normalize for the base constructor.\n */\n protected static buildResourceProps(\n props?:\n (AccessPolicyProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n ): ResourceProps<\"Microsoft.KeyVault/vaults/accessPolicies\"> & Record<string, unknown> {\n return {\n ...props,\n type: AccessPolicy.resourceType,\n apiVersion: AccessPolicy.apiVersion,\n };\n }\n\n constructor(\n context: KeyVault,\n props:\n (AccessPolicyProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n options?: ResourceOptions,\n ) {\n super(context, AccessPolicy.buildResourceProps(props), options);\n }\n\n /**\n * The resource type of the access policy.\n */\n get location(): Expression<string> {\n return this.expr(\"location\");\n }\n\n /**\n * The resource name of the access policy.\n */\n get name(): Expression<string> {\n return this.expr(\"name\");\n }\n set name(value: ExpressionOrValue<string>) {\n this.setProperty(\"name\", value);\n }\n\n /**\n * Properties of the access policy\n */\n get properties(): VaultAccessPolicyPropertiesView {\n return this.expr(\"properties\") as any;\n }\n set properties(value: VaultAccessPolicyPropertiesInput) {\n this.setProperty(\"properties\", value);\n }\n}\n\nexport interface VaultKeyProps {\n /**\n * The name of the key to be retrieved.\n */\n name?: ExpressionOrValue<string> | undefined;\n /**\n * The properties of the key to be created.\n */\n properties: KeyPropertiesInput;\n /**\n * The tags that will be assigned to the key.\n */\n tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;\n}\n\n/**\n * The key resource.\n */\nexport class Version extends Resource<\"Microsoft.KeyVault/vaults/keys/versions\"> {\n static resourceType = \"Microsoft.KeyVault/vaults/keys/versions\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"v\",\n minLength: 1,\n maxLength: 24,\n validCharacters: {\n uppercase: true,\n hyphens: false,\n underscores: false,\n periods: false,\n },\n scope: \"global\",\n };\n\n static {\n this.registerShape(\n createFlatModelShape({\n location: { armPath: [\"location\"], value: createStringShape(), readOnly: true },\n name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => keyPropertiesShape),\n readOnly: true,\n },\n tags: { armPath: [\"tags\"], value: createRecordShape(createStringShape()), readOnly: true },\n }),\n );\n this.register();\n }\n\n /**\n * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying\n * resource metadata. Shared by ordinary construction and internal resource reconstruction.\n *\n * @param props - Resource properties to normalize for the base constructor.\n */\n protected static buildResourceProps(\n props?: ExistingResourceProps & { existing: true },\n ): ResourceProps<\"Microsoft.KeyVault/vaults/keys/versions\"> & Record<string, unknown> {\n return {\n ...props,\n type: Version.resourceType,\n apiVersion: Version.apiVersion,\n };\n }\n\n constructor(\n context: VaultKey,\n props: ExistingResourceProps & { existing: true },\n options?: ResourceOptions,\n ) {\n super(context, Version.buildResourceProps(props), options);\n }\n\n /**\n * The supported Azure location where the managed HSM Pool should be created.\n */\n get location(): Expression<string> {\n return this.expr(\"location\");\n }\n\n /**\n * The name of the key to be retrieved.\n */\n get name(): Expression<string> {\n return this.expr(\"name\");\n }\n set name(value: ExpressionOrValue<string>) {\n this.setProperty(\"name\", value);\n }\n\n /**\n * The properties of the key.\n */\n get properties(): Expression<KeyProperties> {\n return this.expr(\"properties\") as any;\n }\n\n /**\n * Resource tags\n */\n get tags(): Expression<Record<string, string>> {\n return this.expr(\"tags\");\n }\n}\n\n/**\n * The key resource.\n */\nexport class VaultKey extends Resource<\"Microsoft.KeyVault/vaults/keys\"> {\n static resourceType = \"Microsoft.KeyVault/vaults/keys\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"k\",\n minLength: 1,\n maxLength: 24,\n validCharacters: {\n uppercase: true,\n hyphens: false,\n underscores: false,\n periods: false,\n },\n scope: \"global\",\n };\n\n static {\n this.registerShape(\n createFlatModelShape({\n location: { armPath: [\"location\"], value: createStringShape(), readOnly: true },\n name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => keyPropertiesShape),\n },\n tags: { armPath: [\"tags\"], value: createRecordShape(createStringShape()) },\n }),\n );\n this.register();\n }\n\n /**\n * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying\n * resource metadata. Shared by ordinary construction and internal resource reconstruction.\n *\n * @param props - Resource properties to normalize for the base constructor.\n */\n protected static buildResourceProps(\n props?: (VaultKeyProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n ): ResourceProps<\"Microsoft.KeyVault/vaults/keys\"> & Record<string, unknown> {\n return {\n ...props,\n type: VaultKey.resourceType,\n apiVersion: VaultKey.apiVersion,\n };\n }\n\n constructor(\n context: KeyVault,\n props: (VaultKeyProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n options?: ResourceOptions,\n ) {\n super(context, VaultKey.buildResourceProps(props), options);\n }\n\n /**\n * The supported Azure location where the managed HSM Pool should be created.\n */\n get location(): Expression<string> {\n return this.expr(\"location\");\n }\n\n /**\n * The name of the key to be retrieved.\n */\n get name(): Expression<string> {\n return this.expr(\"name\");\n }\n set name(value: ExpressionOrValue<string>) {\n this.setProperty(\"name\", value);\n }\n\n /**\n * The properties of the key to be created.\n */\n get properties(): KeyPropertiesView {\n return this.expr(\"properties\") as any;\n }\n set properties(value: KeyPropertiesInput) {\n this.setProperty(\"properties\", value);\n }\n\n /**\n * The tags that will be assigned to the key.\n */\n get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>> {\n return this.expr(\"tags\");\n }\n set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined) {\n this.setProperty(\"tags\", value);\n }\n}\n\nexport interface VaultPrivateEndpointConnectionProps {\n /**\n * Modified whenever there is a change in the state of private endpoint connection.\n */\n etag?: ExpressionOrValue<string> | undefined;\n /**\n * Name of the private endpoint connection associated with the key vault.\n */\n name?: ExpressionOrValue<string> | undefined;\n /**\n * Resource properties.\n */\n properties?: PrivateEndpointConnectionPropertiesInput | undefined;\n}\n\n/**\n * Private endpoint connection resource.\n */\nexport class VaultPrivateEndpointConnection extends Resource<\"Microsoft.KeyVault/vaults/privateEndpointConnections\"> {\n static resourceType = \"Microsoft.KeyVault/vaults/privateEndpointConnections\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"pec\",\n minLength: 1,\n maxLength: 24,\n validCharacters: {\n uppercase: true,\n hyphens: true,\n underscores: false,\n periods: false,\n },\n scope: \"global\",\n };\n\n static {\n this.registerShape(\n createFlatModelShape({\n etag: { armPath: [\"etag\"], value: createStringShape() },\n location: { armPath: [\"location\"], value: createStringShape(), readOnly: true },\n name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => privateEndpointConnectionPropertiesShape),\n },\n tags: { armPath: [\"tags\"], value: createRecordShape(createStringShape()), readOnly: true },\n }),\n );\n this.register();\n }\n\n /**\n * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying\n * resource metadata. Shared by ordinary construction and internal resource reconstruction.\n *\n * @param props - Resource properties to normalize for the base constructor.\n */\n protected static buildResourceProps(\n props?:\n | (VaultPrivateEndpointConnectionProps & { existing?: false })\n | (ExistingResourceProps & { existing: true }),\n ): ResourceProps<\"Microsoft.KeyVault/vaults/privateEndpointConnections\"> &\n Record<string, unknown> {\n return {\n ...props,\n type: VaultPrivateEndpointConnection.resourceType,\n apiVersion: VaultPrivateEndpointConnection.apiVersion,\n };\n }\n\n constructor(\n context: KeyVault,\n props?:\n | (VaultPrivateEndpointConnectionProps & { existing?: false })\n | (ExistingResourceProps & { existing: true }),\n options?: ResourceOptions,\n ) {\n super(context, VaultPrivateEndpointConnection.buildResourceProps(props), options);\n }\n\n /**\n * Modified whenever there is a change in the state of private endpoint connection.\n */\n get etag(): Expression<string> {\n return this.expr(\"etag\");\n }\n set etag(value: ExpressionOrValue<string> | undefined) {\n this.setProperty(\"etag\", value);\n }\n\n /**\n * Azure location of the key vault resource.\n */\n get location(): Expression<string> {\n return this.expr(\"location\");\n }\n\n /**\n * Name of the private endpoint connection associated with the key vault.\n */\n get name(): Expression<string> {\n return this.expr(\"name\");\n }\n set name(value: ExpressionOrValue<string>) {\n this.setProperty(\"name\", value);\n }\n\n /**\n * Resource properties.\n */\n get properties(): PrivateEndpointConnectionPropertiesView {\n return this.expr(\"properties\") as any;\n }\n set properties(value: PrivateEndpointConnectionPropertiesInput | undefined) {\n this.setProperty(\"properties\", value);\n }\n\n /**\n * Tags assigned to the key vault resource.\n */\n get tags(): Expression<Record<string, string>> {\n return this.expr(\"tags\");\n }\n}\n\nexport interface SecretProps {\n /**\n * The name of the secret.\n */\n name?: ExpressionOrValue<string> | undefined;\n /**\n * Properties of the secret\n */\n properties: SecretPropertiesInput;\n /**\n * The tags that will be assigned to the secret.\n */\n tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;\n}\n\n/**\n * Resource information with extended details.\n */\nexport class Secret extends Resource<\"Microsoft.KeyVault/vaults/secrets\"> {\n static resourceType = \"Microsoft.KeyVault/vaults/secrets\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"s\",\n minLength: 1,\n maxLength: 24,\n validCharacters: {\n uppercase: true,\n hyphens: true,\n underscores: false,\n periods: false,\n },\n scope: \"global\",\n };\n\n static {\n this.registerShape(\n createFlatModelShape({\n location: { armPath: [\"location\"], value: createStringShape(), readOnly: true },\n name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => secretPropertiesShape),\n },\n tags: { armPath: [\"tags\"], value: createRecordShape(createStringShape()) },\n }),\n );\n this.register();\n }\n\n /**\n * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying\n * resource metadata. Shared by ordinary construction and internal resource reconstruction.\n *\n * @param props - Resource properties to normalize for the base constructor.\n */\n protected static buildResourceProps(\n props?: (SecretProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n ): ResourceProps<\"Microsoft.KeyVault/vaults/secrets\"> & Record<string, unknown> {\n return {\n ...props,\n type: Secret.resourceType,\n apiVersion: Secret.apiVersion,\n };\n }\n\n constructor(\n context: KeyVault,\n props: (SecretProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n options?: ResourceOptions,\n ) {\n super(context, Secret.buildResourceProps(props), options);\n }\n\n /**\n * Azure location of the key vault resource.\n */\n get location(): Expression<string> {\n return this.expr(\"location\");\n }\n\n /**\n * The name of the secret.\n */\n get name(): Expression<string> {\n return this.expr(\"name\");\n }\n set name(value: ExpressionOrValue<string>) {\n this.setProperty(\"name\", value);\n }\n\n /**\n * Properties of the secret\n */\n get properties(): SecretPropertiesView {\n return this.expr(\"properties\") as any;\n }\n set properties(value: SecretPropertiesInput) {\n this.setProperty(\"properties\", value);\n }\n\n /**\n * The tags that will be assigned to the secret.\n */\n get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>> {\n return this.expr(\"tags\");\n }\n set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined) {\n this.setProperty(\"tags\", value);\n }\n}\n\n/**\n * Resource information with extended details.\n */\nexport class KeyVault extends Resource<\"Microsoft.KeyVault/vaults\"> {\n static resourceType = \"Microsoft.KeyVault/vaults\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"kv\",\n minLength: 3,\n maxLength: 24,\n validCharacters: {\n uppercase: true,\n hyphens: true,\n underscores: false,\n periods: false,\n },\n scope: \"global\",\n };\n\n static {\n this.registerShape(\n createFlatModelShape({\n location: { armPath: [\"location\"], value: createStringShape() },\n name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => vaultPropertiesShape),\n },\n tags: { armPath: [\"tags\"], value: createRecordShape(createStringShape()) },\n }),\n );\n this.register();\n }\n\n /**\n * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying\n * resource metadata. Shared by ordinary construction and internal resource reconstruction.\n *\n * @param props - Resource properties to normalize for the base constructor.\n */\n protected static buildResourceProps(\n props?: (KeyVaultProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n ): ResourceProps<\"Microsoft.KeyVault/vaults\"> & Record<string, unknown> {\n return {\n ...props,\n type: KeyVault.resourceType,\n apiVersion: KeyVault.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props: (KeyVaultProps & { existing?: false }) | (ExistingResourceProps & { existing: true }),\n options?: ResourceOptions,\n ) {\n super(context, KeyVault.buildResourceProps(props), options);\n }\n\n /**\n * The supported Azure location where the key vault should be created.\n */\n get location(): Expression<string> {\n return this.expr(\"location\");\n }\n set location(value: ExpressionOrValue<string>) {\n this.setProperty(\"location\", value);\n }\n\n /**\n * The name of the vault.\n */\n get name(): Expression<string> {\n return this.expr(\"name\");\n }\n set name(value: ExpressionOrValue<string>) {\n this.setProperty(\"name\", value);\n }\n\n /**\n * Properties of the vault\n */\n get properties(): VaultPropertiesView {\n return this.expr(\"properties\") as any;\n }\n set properties(value: VaultPropertiesInput) {\n this.setProperty(\"properties\", value);\n }\n\n /**\n * The tags that will be assigned to the key vault.\n */\n get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>> {\n return this.expr(\"tags\");\n }\n set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined) {\n this.setProperty(\"tags\", value);\n }\n}\n"]}