@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,263 @@
1
+ import { type ExistingResourceProps, type Expression, type ExpressionOrValue, type ProvisioningComponent, Resource, type ResourceOptions } from "@azure/provisioning-core";
2
+ import { type InputRecord, type ResourceNamingRules, type ResourceProps } from "@azure/provisioning-core/internal";
3
+ import { type ManagedHsmKeyProperties, type ManagedHsmKeyPropertiesInput, type ManagedHsmKeyPropertiesView, type ManagedHsmPropertiesInput, type ManagedHsmPropertiesView, type ManagedHsmSkuInput, type ManagedHsmSkuView, type ManagedServiceIdentityInput, type ManagedServiceIdentityView, type MhsmPrivateEndpointConnectionPropertiesInput, type MhsmPrivateEndpointConnectionPropertiesView } from "./types.js";
4
+ export interface ManagedHsmProps {
5
+ /**
6
+ * Managed service identity
7
+ */
8
+ identity?: ManagedServiceIdentityInput | undefined;
9
+ /**
10
+ * The geo-location where the resource lives
11
+ */
12
+ location?: ExpressionOrValue<string> | undefined;
13
+ /**
14
+ * The name of the managed HSM Pool.
15
+ */
16
+ name?: ExpressionOrValue<string> | undefined;
17
+ /**
18
+ * Properties of the managed HSM
19
+ */
20
+ properties?: ManagedHsmPropertiesInput | undefined;
21
+ /**
22
+ * SKU details
23
+ */
24
+ sku?: ManagedHsmSkuInput | undefined;
25
+ /**
26
+ * Resource tags.
27
+ */
28
+ tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;
29
+ }
30
+ export interface ManagedHsmKeyProps {
31
+ /**
32
+ * The name of the key to be created. The value you provide may be copied globally for the purpose of running the service. The value provided should not include personally identifiable or sensitive information.
33
+ */
34
+ name?: ExpressionOrValue<string> | undefined;
35
+ /**
36
+ * The properties of the key to be created.
37
+ */
38
+ properties: ManagedHsmKeyPropertiesInput;
39
+ /**
40
+ * The tags that will be assigned to the key.
41
+ */
42
+ tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;
43
+ }
44
+ /**
45
+ * The key resource.
46
+ */
47
+ export declare class KeyVaultManagedHsmKey extends Resource<"Microsoft.KeyVault/managedHSMs/keys/versions"> {
48
+ static resourceType: "Microsoft.KeyVault/managedHSMs/keys/versions";
49
+ static apiVersion: string;
50
+ protected static namingRules: ResourceNamingRules;
51
+ /**
52
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
53
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
54
+ *
55
+ * @param props - Resource properties to normalize for the base constructor.
56
+ */
57
+ protected static buildResourceProps(props?: ExistingResourceProps & {
58
+ existing: true;
59
+ }): ResourceProps<"Microsoft.KeyVault/managedHSMs/keys/versions"> & Record<string, unknown>;
60
+ constructor(context: ManagedHsmKey, props: ExistingResourceProps & {
61
+ existing: true;
62
+ }, options?: ResourceOptions);
63
+ /**
64
+ * The name of the key to be created. The value you provide may be copied globally for the purpose
65
+ * of running the service. The value provided should not include personally identifiable or
66
+ * sensitive information.
67
+ */
68
+ get name(): Expression<string>;
69
+ set name(value: ExpressionOrValue<string>);
70
+ /**
71
+ * The properties of the key.
72
+ */
73
+ get properties(): Expression<ManagedHsmKeyProperties>;
74
+ /**
75
+ * Resource tags
76
+ */
77
+ get tags(): Expression<Record<string, string>>;
78
+ }
79
+ /**
80
+ * The key resource.
81
+ */
82
+ export declare class ManagedHsmKey extends Resource<"Microsoft.KeyVault/managedHSMs/keys"> {
83
+ static resourceType: "Microsoft.KeyVault/managedHSMs/keys";
84
+ static apiVersion: string;
85
+ protected static namingRules: ResourceNamingRules;
86
+ /**
87
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
88
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
89
+ *
90
+ * @param props - Resource properties to normalize for the base constructor.
91
+ */
92
+ protected static buildResourceProps(props?: (ManagedHsmKeyProps & {
93
+ existing?: false;
94
+ }) | (ExistingResourceProps & {
95
+ existing: true;
96
+ })): ResourceProps<"Microsoft.KeyVault/managedHSMs/keys"> & Record<string, unknown>;
97
+ constructor(context: ManagedHsm, props: (ManagedHsmKeyProps & {
98
+ existing?: false;
99
+ }) | (ExistingResourceProps & {
100
+ existing: true;
101
+ }), options?: ResourceOptions);
102
+ /**
103
+ * The name of the key to be created. The value you provide may be copied globally for the purpose
104
+ * of running the service. The value provided should not include personally identifiable or
105
+ * sensitive information.
106
+ */
107
+ get name(): Expression<string>;
108
+ set name(value: ExpressionOrValue<string>);
109
+ /**
110
+ * The properties of the key to be created.
111
+ */
112
+ get properties(): ManagedHsmKeyPropertiesView;
113
+ set properties(value: ManagedHsmKeyPropertiesInput);
114
+ /**
115
+ * The tags that will be assigned to the key.
116
+ */
117
+ get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>>;
118
+ set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined);
119
+ }
120
+ export interface ManagedHsmPrivateEndpointConnectionProps {
121
+ /**
122
+ * Modified whenever there is a change in the state of private endpoint connection.
123
+ */
124
+ etag?: ExpressionOrValue<string> | undefined;
125
+ /**
126
+ * Managed service identity
127
+ */
128
+ identity?: ManagedServiceIdentityInput | undefined;
129
+ /**
130
+ * The geo-location where the resource lives
131
+ */
132
+ location?: ExpressionOrValue<string> | undefined;
133
+ /**
134
+ * Name of the private endpoint connection associated with the managed hsm pool.
135
+ */
136
+ name?: ExpressionOrValue<string> | undefined;
137
+ /**
138
+ * Resource properties.
139
+ */
140
+ properties?: MhsmPrivateEndpointConnectionPropertiesInput | undefined;
141
+ /**
142
+ * SKU details
143
+ */
144
+ sku?: ManagedHsmSkuInput | undefined;
145
+ /**
146
+ * Resource tags.
147
+ */
148
+ tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;
149
+ }
150
+ /**
151
+ * Private endpoint connection resource.
152
+ */
153
+ export declare class ManagedHsmPrivateEndpointConnection extends Resource<"Microsoft.KeyVault/managedHSMs/privateEndpointConnections"> {
154
+ static resourceType: "Microsoft.KeyVault/managedHSMs/privateEndpointConnections";
155
+ static apiVersion: string;
156
+ protected static namingRules: ResourceNamingRules;
157
+ /**
158
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
159
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
160
+ *
161
+ * @param props - Resource properties to normalize for the base constructor.
162
+ */
163
+ protected static buildResourceProps(props?: (ManagedHsmPrivateEndpointConnectionProps & {
164
+ existing?: false;
165
+ }) | (ExistingResourceProps & {
166
+ existing: true;
167
+ })): ResourceProps<"Microsoft.KeyVault/managedHSMs/privateEndpointConnections"> & Record<string, unknown>;
168
+ constructor(context: ManagedHsm, props?: (ManagedHsmPrivateEndpointConnectionProps & {
169
+ existing?: false;
170
+ }) | (ExistingResourceProps & {
171
+ existing: true;
172
+ }), options?: ResourceOptions);
173
+ /**
174
+ * Modified whenever there is a change in the state of private endpoint connection.
175
+ */
176
+ get etag(): Expression<string>;
177
+ set etag(value: ExpressionOrValue<string> | undefined);
178
+ /**
179
+ * Managed service identity
180
+ */
181
+ get identity(): ManagedServiceIdentityView;
182
+ set identity(value: ManagedServiceIdentityInput | undefined);
183
+ /**
184
+ * The geo-location where the resource lives
185
+ */
186
+ get location(): Expression<string>;
187
+ set location(value: ExpressionOrValue<string> | undefined);
188
+ /**
189
+ * Name of the private endpoint connection associated with the managed hsm pool.
190
+ */
191
+ get name(): Expression<string>;
192
+ set name(value: ExpressionOrValue<string>);
193
+ /**
194
+ * Resource properties.
195
+ */
196
+ get properties(): MhsmPrivateEndpointConnectionPropertiesView;
197
+ set properties(value: MhsmPrivateEndpointConnectionPropertiesInput | undefined);
198
+ /**
199
+ * SKU details
200
+ */
201
+ get sku(): ManagedHsmSkuView;
202
+ set sku(value: ManagedHsmSkuInput | undefined);
203
+ /**
204
+ * Resource tags.
205
+ */
206
+ get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>>;
207
+ set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined);
208
+ }
209
+ /**
210
+ * Resource information with extended details.
211
+ */
212
+ export declare class ManagedHsm extends Resource<"Microsoft.KeyVault/managedHSMs"> {
213
+ static resourceType: "Microsoft.KeyVault/managedHSMs";
214
+ static apiVersion: string;
215
+ protected static namingRules: ResourceNamingRules;
216
+ /**
217
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
218
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
219
+ *
220
+ * @param props - Resource properties to normalize for the base constructor.
221
+ */
222
+ protected static buildResourceProps(props?: (ManagedHsmProps & {
223
+ existing?: false;
224
+ }) | (ExistingResourceProps & {
225
+ existing: true;
226
+ })): ResourceProps<"Microsoft.KeyVault/managedHSMs"> & Record<string, unknown>;
227
+ constructor(context: ProvisioningComponent, props?: (ManagedHsmProps & {
228
+ existing?: false;
229
+ }) | (ExistingResourceProps & {
230
+ existing: true;
231
+ }), options?: ResourceOptions);
232
+ /**
233
+ * Managed service identity
234
+ */
235
+ get identity(): ManagedServiceIdentityView;
236
+ set identity(value: ManagedServiceIdentityInput | undefined);
237
+ /**
238
+ * The geo-location where the resource lives
239
+ */
240
+ get location(): Expression<string>;
241
+ set location(value: ExpressionOrValue<string> | undefined);
242
+ /**
243
+ * The name of the managed HSM Pool.
244
+ */
245
+ get name(): Expression<string>;
246
+ set name(value: ExpressionOrValue<string>);
247
+ /**
248
+ * Properties of the managed HSM
249
+ */
250
+ get properties(): ManagedHsmPropertiesView;
251
+ set properties(value: ManagedHsmPropertiesInput | undefined);
252
+ /**
253
+ * SKU details
254
+ */
255
+ get sku(): ManagedHsmSkuView;
256
+ set sku(value: ManagedHsmSkuInput | undefined);
257
+ /**
258
+ * Resource tags.
259
+ */
260
+ get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>>;
261
+ set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined);
262
+ }
263
+ //# sourceMappingURL=managed-hsm.d.ts.map
@@ -0,0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EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,EAEzF;CACF"}
@@ -0,0 +1,400 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var managed_hsm_exports = {};
19
+ __export(managed_hsm_exports, {
20
+ KeyVaultManagedHsmKey: () => KeyVaultManagedHsmKey,
21
+ ManagedHsm: () => ManagedHsm,
22
+ ManagedHsmKey: () => ManagedHsmKey,
23
+ ManagedHsmPrivateEndpointConnection: () => ManagedHsmPrivateEndpointConnection
24
+ });
25
+ module.exports = __toCommonJS(managed_hsm_exports);
26
+ var import_provisioning_core = require("@azure/provisioning-core");
27
+ var import_internal = require("@azure/provisioning-core/internal");
28
+ var import_types = require("./types.js");
29
+ const API_VERSION = "2026-02-01";
30
+ class KeyVaultManagedHsmKey extends import_provisioning_core.Resource {
31
+ static resourceType = "Microsoft.KeyVault/managedHSMs/keys/versions";
32
+ static apiVersion = API_VERSION;
33
+ static namingRules = {
34
+ abbreviation: "v",
35
+ minLength: 1,
36
+ maxLength: 24,
37
+ validCharacters: {
38
+ uppercase: true,
39
+ hyphens: false,
40
+ underscores: false,
41
+ periods: false
42
+ },
43
+ scope: "global"
44
+ };
45
+ static {
46
+ this.registerShape(
47
+ (0, import_internal.createFlatModelShape)({
48
+ name: { armPath: ["name"], value: (0, import_internal.createStringShape)() },
49
+ properties: {
50
+ armPath: ["properties"],
51
+ value: (0, import_internal.createDeferredShape)(() => import_types.managedHsmKeyPropertiesShape),
52
+ readOnly: true
53
+ },
54
+ tags: { armPath: ["tags"], value: (0, import_internal.createRecordShape)((0, import_internal.createStringShape)()), readOnly: true }
55
+ })
56
+ );
57
+ this.register();
58
+ }
59
+ /**
60
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
61
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
62
+ *
63
+ * @param props - Resource properties to normalize for the base constructor.
64
+ */
65
+ static buildResourceProps(props) {
66
+ return {
67
+ ...props,
68
+ type: KeyVaultManagedHsmKey.resourceType,
69
+ apiVersion: KeyVaultManagedHsmKey.apiVersion
70
+ };
71
+ }
72
+ constructor(context, props, options) {
73
+ super(context, KeyVaultManagedHsmKey.buildResourceProps(props), options);
74
+ }
75
+ /**
76
+ * The name of the key to be created. The value you provide may be copied globally for the purpose
77
+ * of running the service. The value provided should not include personally identifiable or
78
+ * sensitive information.
79
+ */
80
+ get name() {
81
+ return this.expr("name");
82
+ }
83
+ set name(value) {
84
+ this.setProperty("name", value);
85
+ }
86
+ /**
87
+ * The properties of the key.
88
+ */
89
+ get properties() {
90
+ return this.expr("properties");
91
+ }
92
+ /**
93
+ * Resource tags
94
+ */
95
+ get tags() {
96
+ return this.expr("tags");
97
+ }
98
+ }
99
+ class ManagedHsmKey extends import_provisioning_core.Resource {
100
+ static resourceType = "Microsoft.KeyVault/managedHSMs/keys";
101
+ static apiVersion = API_VERSION;
102
+ static namingRules = {
103
+ abbreviation: "k",
104
+ minLength: 1,
105
+ maxLength: 24,
106
+ validCharacters: {
107
+ uppercase: true,
108
+ hyphens: false,
109
+ underscores: false,
110
+ periods: false
111
+ },
112
+ scope: "global"
113
+ };
114
+ static {
115
+ this.registerShape(
116
+ (0, import_internal.createFlatModelShape)({
117
+ name: { armPath: ["name"], value: (0, import_internal.createStringShape)() },
118
+ properties: {
119
+ armPath: ["properties"],
120
+ value: (0, import_internal.createDeferredShape)(() => import_types.managedHsmKeyPropertiesShape)
121
+ },
122
+ tags: { armPath: ["tags"], value: (0, import_internal.createRecordShape)((0, import_internal.createStringShape)()) }
123
+ })
124
+ );
125
+ this.register();
126
+ }
127
+ /**
128
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
129
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
130
+ *
131
+ * @param props - Resource properties to normalize for the base constructor.
132
+ */
133
+ static buildResourceProps(props) {
134
+ return {
135
+ ...props,
136
+ type: ManagedHsmKey.resourceType,
137
+ apiVersion: ManagedHsmKey.apiVersion
138
+ };
139
+ }
140
+ constructor(context, props, options) {
141
+ super(context, ManagedHsmKey.buildResourceProps(props), options);
142
+ }
143
+ /**
144
+ * The name of the key to be created. The value you provide may be copied globally for the purpose
145
+ * of running the service. The value provided should not include personally identifiable or
146
+ * sensitive information.
147
+ */
148
+ get name() {
149
+ return this.expr("name");
150
+ }
151
+ set name(value) {
152
+ this.setProperty("name", value);
153
+ }
154
+ /**
155
+ * The properties of the key to be created.
156
+ */
157
+ get properties() {
158
+ return this.expr("properties");
159
+ }
160
+ set properties(value) {
161
+ this.setProperty("properties", value);
162
+ }
163
+ /**
164
+ * The tags that will be assigned to the key.
165
+ */
166
+ get tags() {
167
+ return this.expr("tags");
168
+ }
169
+ set tags(value) {
170
+ this.setProperty("tags", value);
171
+ }
172
+ }
173
+ class ManagedHsmPrivateEndpointConnection extends import_provisioning_core.Resource {
174
+ static resourceType = "Microsoft.KeyVault/managedHSMs/privateEndpointConnections";
175
+ static apiVersion = API_VERSION;
176
+ static namingRules = {
177
+ abbreviation: "pec",
178
+ minLength: 1,
179
+ maxLength: 24,
180
+ validCharacters: {
181
+ uppercase: true,
182
+ hyphens: true,
183
+ underscores: false,
184
+ periods: false
185
+ },
186
+ scope: "global"
187
+ };
188
+ static {
189
+ this.registerShape(
190
+ (0, import_internal.createFlatModelShape)({
191
+ etag: { armPath: ["etag"], value: (0, import_internal.createStringShape)() },
192
+ identity: {
193
+ armPath: ["identity"],
194
+ value: (0, import_internal.createDeferredShape)(() => import_types.managedServiceIdentityShape)
195
+ },
196
+ location: { armPath: ["location"], value: (0, import_internal.createStringShape)() },
197
+ name: { armPath: ["name"], value: (0, import_internal.createStringShape)() },
198
+ properties: {
199
+ armPath: ["properties"],
200
+ value: (0, import_internal.createDeferredShape)(() => import_types.mhsmPrivateEndpointConnectionPropertiesShape)
201
+ },
202
+ sku: { armPath: ["sku"], value: (0, import_internal.createDeferredShape)(() => import_types.managedHsmSkuShape) },
203
+ tags: { armPath: ["tags"], value: (0, import_internal.createRecordShape)((0, import_internal.createStringShape)()) }
204
+ })
205
+ );
206
+ this.register();
207
+ }
208
+ /**
209
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
210
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
211
+ *
212
+ * @param props - Resource properties to normalize for the base constructor.
213
+ */
214
+ static buildResourceProps(props) {
215
+ return {
216
+ ...props,
217
+ type: ManagedHsmPrivateEndpointConnection.resourceType,
218
+ apiVersion: ManagedHsmPrivateEndpointConnection.apiVersion
219
+ };
220
+ }
221
+ constructor(context, props, options) {
222
+ super(context, ManagedHsmPrivateEndpointConnection.buildResourceProps(props), options);
223
+ }
224
+ /**
225
+ * Modified whenever there is a change in the state of private endpoint connection.
226
+ */
227
+ get etag() {
228
+ return this.expr("etag");
229
+ }
230
+ set etag(value) {
231
+ this.setProperty("etag", value);
232
+ }
233
+ /**
234
+ * Managed service identity
235
+ */
236
+ get identity() {
237
+ return this.expr("identity");
238
+ }
239
+ set identity(value) {
240
+ this.setProperty("identity", value);
241
+ }
242
+ /**
243
+ * The geo-location where the resource lives
244
+ */
245
+ get location() {
246
+ return this.expr("location");
247
+ }
248
+ set location(value) {
249
+ this.setProperty("location", value);
250
+ }
251
+ /**
252
+ * Name of the private endpoint connection associated with the managed hsm pool.
253
+ */
254
+ get name() {
255
+ return this.expr("name");
256
+ }
257
+ set name(value) {
258
+ this.setProperty("name", value);
259
+ }
260
+ /**
261
+ * Resource properties.
262
+ */
263
+ get properties() {
264
+ return this.expr("properties");
265
+ }
266
+ set properties(value) {
267
+ this.setProperty("properties", value);
268
+ }
269
+ /**
270
+ * SKU details
271
+ */
272
+ get sku() {
273
+ return this.expr("sku");
274
+ }
275
+ set sku(value) {
276
+ this.setProperty("sku", value);
277
+ }
278
+ /**
279
+ * Resource tags.
280
+ */
281
+ get tags() {
282
+ return this.expr("tags");
283
+ }
284
+ set tags(value) {
285
+ this.setProperty("tags", value);
286
+ }
287
+ }
288
+ class ManagedHsm extends import_provisioning_core.Resource {
289
+ static resourceType = "Microsoft.KeyVault/managedHSMs";
290
+ static apiVersion = API_VERSION;
291
+ static namingRules = {
292
+ abbreviation: "mhsm",
293
+ minLength: 3,
294
+ maxLength: 24,
295
+ validCharacters: {
296
+ uppercase: true,
297
+ hyphens: true,
298
+ underscores: false,
299
+ periods: false
300
+ },
301
+ scope: "global"
302
+ };
303
+ static {
304
+ this.registerShape(
305
+ (0, import_internal.createFlatModelShape)({
306
+ identity: {
307
+ armPath: ["identity"],
308
+ value: (0, import_internal.createDeferredShape)(() => import_types.managedServiceIdentityShape)
309
+ },
310
+ location: { armPath: ["location"], value: (0, import_internal.createStringShape)() },
311
+ name: { armPath: ["name"], value: (0, import_internal.createStringShape)() },
312
+ properties: {
313
+ armPath: ["properties"],
314
+ value: (0, import_internal.createDeferredShape)(() => import_types.managedHsmPropertiesShape)
315
+ },
316
+ sku: { armPath: ["sku"], value: (0, import_internal.createDeferredShape)(() => import_types.managedHsmSkuShape) },
317
+ tags: { armPath: ["tags"], value: (0, import_internal.createRecordShape)((0, import_internal.createStringShape)()) }
318
+ })
319
+ );
320
+ this.register();
321
+ }
322
+ /**
323
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
324
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
325
+ *
326
+ * @param props - Resource properties to normalize for the base constructor.
327
+ */
328
+ static buildResourceProps(props) {
329
+ return {
330
+ ...props,
331
+ type: ManagedHsm.resourceType,
332
+ apiVersion: ManagedHsm.apiVersion
333
+ };
334
+ }
335
+ constructor(context, props, options) {
336
+ super(context, ManagedHsm.buildResourceProps(props), options);
337
+ }
338
+ /**
339
+ * Managed service identity
340
+ */
341
+ get identity() {
342
+ return this.expr("identity");
343
+ }
344
+ set identity(value) {
345
+ this.setProperty("identity", value);
346
+ }
347
+ /**
348
+ * The geo-location where the resource lives
349
+ */
350
+ get location() {
351
+ return this.expr("location");
352
+ }
353
+ set location(value) {
354
+ this.setProperty("location", value);
355
+ }
356
+ /**
357
+ * The name of the managed HSM Pool.
358
+ */
359
+ get name() {
360
+ return this.expr("name");
361
+ }
362
+ set name(value) {
363
+ this.setProperty("name", value);
364
+ }
365
+ /**
366
+ * Properties of the managed HSM
367
+ */
368
+ get properties() {
369
+ return this.expr("properties");
370
+ }
371
+ set properties(value) {
372
+ this.setProperty("properties", value);
373
+ }
374
+ /**
375
+ * SKU details
376
+ */
377
+ get sku() {
378
+ return this.expr("sku");
379
+ }
380
+ set sku(value) {
381
+ this.setProperty("sku", value);
382
+ }
383
+ /**
384
+ * Resource tags.
385
+ */
386
+ get tags() {
387
+ return this.expr("tags");
388
+ }
389
+ set tags(value) {
390
+ this.setProperty("tags", value);
391
+ }
392
+ }
393
+ // Annotate the CommonJS export names for ESM import in node:
394
+ 0 && (module.exports = {
395
+ KeyVaultManagedHsmKey,
396
+ ManagedHsm,
397
+ ManagedHsmKey,
398
+ ManagedHsmPrivateEndpointConnection
399
+ });
400
+ //# sourceMappingURL=managed-hsm.js.map