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