@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.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +29 -0
- package/dist/browser/deleted-managed-hsm.d.ts +33 -0
- package/dist/browser/deleted-managed-hsm.d.ts.map +1 -0
- package/dist/browser/deleted-managed-hsm.js +68 -0
- package/dist/browser/deleted-managed-hsm.js.map +1 -0
- package/dist/browser/deleted-vault.d.ts +33 -0
- package/dist/browser/deleted-vault.d.ts.map +1 -0
- package/dist/browser/deleted-vault.js +68 -0
- package/dist/browser/deleted-vault.js.map +1 -0
- package/dist/browser/index.d.ts +6 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +8 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/key-vault.d.ts +326 -0
- package/dist/browser/key-vault.d.ts.map +1 -0
- package/dist/browser/key-vault.js +482 -0
- package/dist/browser/key-vault.js.map +1 -0
- package/dist/browser/managed-hsm.d.ts +263 -0
- package/dist/browser/managed-hsm.d.ts.map +1 -0
- package/dist/browser/managed-hsm.js +374 -0
- package/dist/browser/managed-hsm.js.map +1 -0
- package/dist/browser/package.json +8 -0
- package/dist/browser/types.d.ts +2404 -0
- package/dist/browser/types.d.ts.map +1 -0
- package/dist/browser/types.js +472 -0
- package/dist/browser/types.js.map +1 -0
- package/dist/commonjs/deleted-managed-hsm.d.ts +33 -0
- package/dist/commonjs/deleted-managed-hsm.d.ts.map +1 -0
- package/dist/commonjs/deleted-managed-hsm.js +91 -0
- package/dist/commonjs/deleted-managed-hsm.js.map +7 -0
- package/dist/commonjs/deleted-vault.d.ts +33 -0
- package/dist/commonjs/deleted-vault.d.ts.map +1 -0
- package/dist/commonjs/deleted-vault.js +91 -0
- package/dist/commonjs/deleted-vault.js.map +7 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +66 -0
- package/dist/commonjs/index.js.map +7 -0
- package/dist/commonjs/key-vault.d.ts +326 -0
- package/dist/commonjs/key-vault.d.ts.map +1 -0
- package/dist/commonjs/key-vault.js +510 -0
- package/dist/commonjs/key-vault.js.map +7 -0
- package/dist/commonjs/managed-hsm.d.ts +263 -0
- package/dist/commonjs/managed-hsm.d.ts.map +1 -0
- package/dist/commonjs/managed-hsm.js +400 -0
- package/dist/commonjs/managed-hsm.js.map +7 -0
- package/dist/commonjs/package.json +8 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/types.d.ts +2404 -0
- package/dist/commonjs/types.d.ts.map +1 -0
- package/dist/commonjs/types.js +586 -0
- package/dist/commonjs/types.js.map +7 -0
- package/dist/esm/deleted-managed-hsm.d.ts +33 -0
- package/dist/esm/deleted-managed-hsm.d.ts.map +1 -0
- package/dist/esm/deleted-managed-hsm.js +68 -0
- package/dist/esm/deleted-managed-hsm.js.map +1 -0
- package/dist/esm/deleted-vault.d.ts +33 -0
- package/dist/esm/deleted-vault.d.ts.map +1 -0
- package/dist/esm/deleted-vault.js +68 -0
- package/dist/esm/deleted-vault.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/key-vault.d.ts +326 -0
- package/dist/esm/key-vault.d.ts.map +1 -0
- package/dist/esm/key-vault.js +482 -0
- package/dist/esm/key-vault.js.map +1 -0
- package/dist/esm/managed-hsm.d.ts +263 -0
- package/dist/esm/managed-hsm.d.ts.map +1 -0
- package/dist/esm/managed-hsm.js +374 -0
- package/dist/esm/managed-hsm.js.map +1 -0
- package/dist/esm/package.json +8 -0
- package/dist/esm/types.d.ts +2404 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +472 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +105 -0
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Azure Key Vault provisioning library for JavaScript
|
|
2
|
+
|
|
3
|
+
`@azure/provisioning-keyvault` provides typed Azure Key Vault resources for authoring pre-deployment infrastructure definitions.
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
```ts snippet:ignore
|
|
8
|
+
import { Stack } from "@azure/provisioning-core";
|
|
9
|
+
import { KeyVault, Secret } from "@azure/provisioning-keyvault";
|
|
10
|
+
|
|
11
|
+
const stack = new Stack("keyvault", {
|
|
12
|
+
targetScope: "resourceGroup",
|
|
13
|
+
location: "eastus",
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const vault = new KeyVault(stack, {
|
|
17
|
+
properties: {
|
|
18
|
+
tenantId: "00000000-0000-0000-0000-000000000000",
|
|
19
|
+
sku: { family: "A", name: "standard" },
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
new Secret(vault, {
|
|
24
|
+
name: "connection-string",
|
|
25
|
+
properties: { value: "example" },
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The generated resource model uses the `2026-02-01` Azure Key Vault management API.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ExistingResourceProps, type Expression, type ExpressionOrValue, type ProvisioningComponent, Resource, type ResourceOptions } from "@azure/provisioning-core";
|
|
2
|
+
import { type ResourceNamingRules, type ResourceProps } from "@azure/provisioning-core/internal";
|
|
3
|
+
import { type DeletedManagedHsmProperties } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Concrete proxy resource types can be created by aliasing this type using a specific property type.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DeletedManagedHsm extends Resource<"Microsoft.KeyVault/locations/deletedManagedHSMs"> {
|
|
8
|
+
static resourceType: "Microsoft.KeyVault/locations/deletedManagedHSMs";
|
|
9
|
+
static apiVersion: string;
|
|
10
|
+
protected static namingRules: ResourceNamingRules;
|
|
11
|
+
/**
|
|
12
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
13
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
16
|
+
*/
|
|
17
|
+
protected static buildResourceProps(props?: ExistingResourceProps & {
|
|
18
|
+
existing: true;
|
|
19
|
+
}): ResourceProps<"Microsoft.KeyVault/locations/deletedManagedHSMs"> & Record<string, unknown>;
|
|
20
|
+
constructor(context: ProvisioningComponent, props: ExistingResourceProps & {
|
|
21
|
+
existing: true;
|
|
22
|
+
}, options?: ResourceOptions);
|
|
23
|
+
/**
|
|
24
|
+
* The name of the deleted managed HSM.
|
|
25
|
+
*/
|
|
26
|
+
get name(): Expression<string>;
|
|
27
|
+
set name(value: ExpressionOrValue<string>);
|
|
28
|
+
/**
|
|
29
|
+
* Properties of the deleted managed HSM
|
|
30
|
+
*/
|
|
31
|
+
get properties(): Expression<DeletedManagedHsmProperties>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=deleted-managed-hsm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleted-managed-hsm.d.ts","sourceRoot":"","sources":["../../src/deleted-managed-hsm.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,EAIL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,KAAK,2BAA2B,EAAoC,MAAM,YAAY,CAAC;AAIhG;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,QAAQ,CAAC,iDAAiD,CAAC;IAChG,MAAM,CAAC,YAAY,EAAG,iDAAiD,CAAU;IACjF,MAAM,CAAC,UAAU,SAAe;IAChC,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,mBAAmB,CAW/C;IAgBF;;;;;OAKG;IACH,SAAS,CAAC,MAAM,CAAC,kBAAkB,CACjC,KAAK,CAAC,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,GACjD,aAAa,CAAC,iDAAiD,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBAS3F,OAAO,EAAE,qBAAqB,EAC9B,KAAK,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,EACjD,OAAO,CAAC,EAAE,eAAe;IAK3B;;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,UAAU,CAAC,2BAA2B,CAAC,CAExD;CACF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { Resource, } from "@azure/provisioning-core";
|
|
4
|
+
import { createDeferredShape, createFlatModelShape, createStringShape, } from "@azure/provisioning-core/internal";
|
|
5
|
+
import { deletedManagedHsmPropertiesShape } from "./types.js";
|
|
6
|
+
const API_VERSION = "2026-02-01";
|
|
7
|
+
/**
|
|
8
|
+
* Concrete proxy resource types can be created by aliasing this type using a specific property type.
|
|
9
|
+
*/
|
|
10
|
+
export class DeletedManagedHsm extends Resource {
|
|
11
|
+
static resourceType = "Microsoft.KeyVault/locations/deletedManagedHSMs";
|
|
12
|
+
static apiVersion = API_VERSION;
|
|
13
|
+
static namingRules = {
|
|
14
|
+
abbreviation: "dmh",
|
|
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
|
+
name: { armPath: ["name"], value: createStringShape() },
|
|
28
|
+
properties: {
|
|
29
|
+
armPath: ["properties"],
|
|
30
|
+
value: createDeferredShape(() => deletedManagedHsmPropertiesShape),
|
|
31
|
+
readOnly: true,
|
|
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: DeletedManagedHsm.resourceType,
|
|
46
|
+
apiVersion: DeletedManagedHsm.apiVersion,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
constructor(context, props, options) {
|
|
50
|
+
super(context, DeletedManagedHsm.buildResourceProps(props), options);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The name of the deleted managed HSM.
|
|
54
|
+
*/
|
|
55
|
+
get name() {
|
|
56
|
+
return this.expr("name");
|
|
57
|
+
}
|
|
58
|
+
set name(value) {
|
|
59
|
+
this.setProperty("name", value);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Properties of the deleted managed HSM
|
|
63
|
+
*/
|
|
64
|
+
get properties() {
|
|
65
|
+
return this.expr("properties");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=deleted-managed-hsm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleted-managed-hsm.js","sourceRoot":"","sources":["../../src/deleted-managed-hsm.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,QAAQ,GAET,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,GAGlB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAoC,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAEhG,MAAM,WAAW,GAAG,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,QAA2D;IAChG,MAAM,CAAC,YAAY,GAAG,iDAA0D,CAAC;IACjF,MAAM,CAAC,UAAU,GAAG,WAAW,CAAC;IACtB,MAAM,CAAC,WAAW,GAAwB;QAClD,YAAY,EAAE,KAAK;QACnB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,EAAE;QACb,eAAe,EAAE;YACf,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,KAAK;YAClB,OAAO,EAAE,KAAK;SACf;QACD,KAAK,EAAE,QAAQ;KAChB,CAAC;IAEF;QACE,IAAI,CAAC,aAAa,CAChB,oBAAoB,CAAC;YACnB,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE;YACvD,UAAU,EAAE;gBACV,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,KAAK,EAAE,mBAAmB,CAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;gBAClE,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CACH,CAAC;QACF,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACO,MAAM,CAAC,kBAAkB,CACjC,KAAkD;QAElD,OAAO;YACL,GAAG,KAAK;YACR,IAAI,EAAE,iBAAiB,CAAC,YAAY;YACpC,UAAU,EAAE,iBAAiB,CAAC,UAAU;SACzC,CAAC;IACJ,CAAC;IAED,YACE,OAA8B,EAC9B,KAAiD,EACjD,OAAyB;QAEzB,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IACvE,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","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 createStringShape,\n type ResourceNamingRules,\n type ResourceProps,\n} from \"@azure/provisioning-core/internal\";\nimport { type DeletedManagedHsmProperties, deletedManagedHsmPropertiesShape } from \"./types.js\";\n\nconst API_VERSION = \"2026-02-01\";\n\n/**\n * Concrete proxy resource types can be created by aliasing this type using a specific property type.\n */\nexport class DeletedManagedHsm extends Resource<\"Microsoft.KeyVault/locations/deletedManagedHSMs\"> {\n static resourceType = \"Microsoft.KeyVault/locations/deletedManagedHSMs\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"dmh\",\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 name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => deletedManagedHsmPropertiesShape),\n readOnly: true,\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?: ExistingResourceProps & { existing: true },\n ): ResourceProps<\"Microsoft.KeyVault/locations/deletedManagedHSMs\"> & Record<string, unknown> {\n return {\n ...props,\n type: DeletedManagedHsm.resourceType,\n apiVersion: DeletedManagedHsm.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props: ExistingResourceProps & { existing: true },\n options?: ResourceOptions,\n ) {\n super(context, DeletedManagedHsm.buildResourceProps(props), options);\n }\n\n /**\n * The name of the deleted managed HSM.\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 deleted managed HSM\n */\n get properties(): Expression<DeletedManagedHsmProperties> {\n return this.expr(\"properties\") as any;\n }\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ExistingResourceProps, type Expression, type ExpressionOrValue, type ProvisioningComponent, Resource, type ResourceOptions } from "@azure/provisioning-core";
|
|
2
|
+
import { type ResourceNamingRules, type ResourceProps } from "@azure/provisioning-core/internal";
|
|
3
|
+
import { type DeletedVaultProperties } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Deleted vault information with extended details.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DeletedVault extends Resource<"Microsoft.KeyVault/locations/deletedVaults"> {
|
|
8
|
+
static resourceType: "Microsoft.KeyVault/locations/deletedVaults";
|
|
9
|
+
static apiVersion: string;
|
|
10
|
+
protected static namingRules: ResourceNamingRules;
|
|
11
|
+
/**
|
|
12
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
13
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
14
|
+
*
|
|
15
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
16
|
+
*/
|
|
17
|
+
protected static buildResourceProps(props?: ExistingResourceProps & {
|
|
18
|
+
existing: true;
|
|
19
|
+
}): ResourceProps<"Microsoft.KeyVault/locations/deletedVaults"> & Record<string, unknown>;
|
|
20
|
+
constructor(context: ProvisioningComponent, props: ExistingResourceProps & {
|
|
21
|
+
existing: true;
|
|
22
|
+
}, options?: ResourceOptions);
|
|
23
|
+
/**
|
|
24
|
+
* The name of the vault.
|
|
25
|
+
*/
|
|
26
|
+
get name(): Expression<string>;
|
|
27
|
+
set name(value: ExpressionOrValue<string>);
|
|
28
|
+
/**
|
|
29
|
+
* Properties of the vault
|
|
30
|
+
*/
|
|
31
|
+
get properties(): Expression<DeletedVaultProperties>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=deleted-vault.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleted-vault.d.ts","sourceRoot":"","sources":["../../src/deleted-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,EAIL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,KAAK,sBAAsB,EAA+B,MAAM,YAAY,CAAC;AAItF;;GAEG;AACH,qBAAa,YAAa,SAAQ,QAAQ,CAAC,4CAA4C,CAAC;IACtF,MAAM,CAAC,YAAY,EAAG,4CAA4C,CAAU;IAC5E,MAAM,CAAC,UAAU,SAAe;IAChC,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,mBAAmB,CAW/C;IAgBF;;;;;OAKG;IACH,SAAS,CAAC,MAAM,CAAC,kBAAkB,CACjC,KAAK,CAAC,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,GACjD,aAAa,CAAC,4CAA4C,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBAStF,OAAO,EAAE,qBAAqB,EAC9B,KAAK,EAAE,qBAAqB,GAAG;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,EACjD,OAAO,CAAC,EAAE,eAAe;IAK3B;;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,UAAU,CAAC,sBAAsB,CAAC,CAEnD;CACF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { Resource, } from "@azure/provisioning-core";
|
|
4
|
+
import { createDeferredShape, createFlatModelShape, createStringShape, } from "@azure/provisioning-core/internal";
|
|
5
|
+
import { deletedVaultPropertiesShape } from "./types.js";
|
|
6
|
+
const API_VERSION = "2026-02-01";
|
|
7
|
+
/**
|
|
8
|
+
* Deleted vault information with extended details.
|
|
9
|
+
*/
|
|
10
|
+
export class DeletedVault extends Resource {
|
|
11
|
+
static resourceType = "Microsoft.KeyVault/locations/deletedVaults";
|
|
12
|
+
static apiVersion = API_VERSION;
|
|
13
|
+
static namingRules = {
|
|
14
|
+
abbreviation: "dv",
|
|
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
|
+
name: { armPath: ["name"], value: createStringShape() },
|
|
28
|
+
properties: {
|
|
29
|
+
armPath: ["properties"],
|
|
30
|
+
value: createDeferredShape(() => deletedVaultPropertiesShape),
|
|
31
|
+
readOnly: true,
|
|
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: DeletedVault.resourceType,
|
|
46
|
+
apiVersion: DeletedVault.apiVersion,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
constructor(context, props, options) {
|
|
50
|
+
super(context, DeletedVault.buildResourceProps(props), options);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The name of the vault.
|
|
54
|
+
*/
|
|
55
|
+
get name() {
|
|
56
|
+
return this.expr("name");
|
|
57
|
+
}
|
|
58
|
+
set name(value) {
|
|
59
|
+
this.setProperty("name", value);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Properties of the vault
|
|
63
|
+
*/
|
|
64
|
+
get properties() {
|
|
65
|
+
return this.expr("properties");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=deleted-vault.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleted-vault.js","sourceRoot":"","sources":["../../src/deleted-vault.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,QAAQ,GAET,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,GAGlB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAA+B,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAEtF,MAAM,WAAW,GAAG,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,QAAsD;IACtF,MAAM,CAAC,YAAY,GAAG,4CAAqD,CAAC;IAC5E,MAAM,CAAC,UAAU,GAAG,WAAW,CAAC;IACtB,MAAM,CAAC,WAAW,GAAwB;QAClD,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,EAAE;QACb,eAAe,EAAE;YACf,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,KAAK;YAClB,OAAO,EAAE,KAAK;SACf;QACD,KAAK,EAAE,QAAQ;KAChB,CAAC;IAEF;QACE,IAAI,CAAC,aAAa,CAChB,oBAAoB,CAAC;YACnB,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE;YACvD,UAAU,EAAE;gBACV,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,KAAK,EAAE,mBAAmB,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;gBAC7D,QAAQ,EAAE,IAAI;aACf;SACF,CAAC,CACH,CAAC;QACF,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACO,MAAM,CAAC,kBAAkB,CACjC,KAAkD;QAElD,OAAO;YACL,GAAG,KAAK;YACR,IAAI,EAAE,YAAY,CAAC,YAAY;YAC/B,UAAU,EAAE,YAAY,CAAC,UAAU;SACpC,CAAC;IACJ,CAAC;IAED,YACE,OAA8B,EAC9B,KAAiD,EACjD,OAAyB;QAEzB,KAAK,CAAC,OAAO,EAAE,YAAY,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IAClE,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","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 createStringShape,\n type ResourceNamingRules,\n type ResourceProps,\n} from \"@azure/provisioning-core/internal\";\nimport { type DeletedVaultProperties, deletedVaultPropertiesShape } from \"./types.js\";\n\nconst API_VERSION = \"2026-02-01\";\n\n/**\n * Deleted vault information with extended details.\n */\nexport class DeletedVault extends Resource<\"Microsoft.KeyVault/locations/deletedVaults\"> {\n static resourceType = \"Microsoft.KeyVault/locations/deletedVaults\" as const;\n static apiVersion = API_VERSION;\n protected static namingRules: ResourceNamingRules = {\n abbreviation: \"dv\",\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 name: { armPath: [\"name\"], value: createStringShape() },\n properties: {\n armPath: [\"properties\"],\n value: createDeferredShape(() => deletedVaultPropertiesShape),\n readOnly: true,\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?: ExistingResourceProps & { existing: true },\n ): ResourceProps<\"Microsoft.KeyVault/locations/deletedVaults\"> & Record<string, unknown> {\n return {\n ...props,\n type: DeletedVault.resourceType,\n apiVersion: DeletedVault.apiVersion,\n };\n }\n\n constructor(\n context: ProvisioningComponent,\n props: ExistingResourceProps & { existing: true },\n options?: ResourceOptions,\n ) {\n super(context, DeletedVault.buildResourceProps(props), options);\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(): Expression<DeletedVaultProperties> {\n return this.expr(\"properties\") as any;\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as types from "./types.js";
|
|
2
|
+
export { DeletedManagedHsm } from "./deleted-managed-hsm.js";
|
|
3
|
+
export { DeletedVault } from "./deleted-vault.js";
|
|
4
|
+
export { ManagedHsm, type ManagedHsmProps, ManagedHsmKey, type ManagedHsmKeyProps, KeyVaultManagedHsmKey, ManagedHsmPrivateEndpointConnection, type ManagedHsmPrivateEndpointConnectionProps, } from "./managed-hsm.js";
|
|
5
|
+
export { KeyVault, type KeyVaultProps, AccessPolicy, type AccessPolicyProps, VaultKey, type VaultKeyProps, Version, VaultPrivateEndpointConnection, type VaultPrivateEndpointConnectionProps, Secret, type SecretProps, } from "./key-vault.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,aAAa,EACb,KAAK,kBAAkB,EACvB,qBAAqB,EACrB,mCAAmC,EACnC,KAAK,wCAAwC,GAC9C,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,iBAAiB,EACtB,QAAQ,EACR,KAAK,aAAa,EAClB,OAAO,EACP,8BAA8B,EAC9B,KAAK,mCAAmC,EACxC,MAAM,EACN,KAAK,WAAW,GACjB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export * as types from "./types.js";
|
|
4
|
+
export { DeletedManagedHsm } from "./deleted-managed-hsm.js";
|
|
5
|
+
export { DeletedVault } from "./deleted-vault.js";
|
|
6
|
+
export { ManagedHsm, ManagedHsmKey, KeyVaultManagedHsmKey, ManagedHsmPrivateEndpointConnection, } from "./managed-hsm.js";
|
|
7
|
+
export { KeyVault, AccessPolicy, VaultKey, Version, VaultPrivateEndpointConnection, Secret, } from "./key-vault.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,UAAU,EAEV,aAAa,EAEb,qBAAqB,EACrB,mCAAmC,GAEpC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,QAAQ,EAER,OAAO,EACP,8BAA8B,EAE9B,MAAM,GAEP,MAAM,gBAAgB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * as types from \"./types.js\";\nexport { DeletedManagedHsm } from \"./deleted-managed-hsm.js\";\nexport { DeletedVault } from \"./deleted-vault.js\";\nexport {\n ManagedHsm,\n type ManagedHsmProps,\n ManagedHsmKey,\n type ManagedHsmKeyProps,\n KeyVaultManagedHsmKey,\n ManagedHsmPrivateEndpointConnection,\n type ManagedHsmPrivateEndpointConnectionProps,\n} from \"./managed-hsm.js\";\nexport {\n KeyVault,\n type KeyVaultProps,\n AccessPolicy,\n type AccessPolicyProps,\n VaultKey,\n type VaultKeyProps,\n Version,\n VaultPrivateEndpointConnection,\n type VaultPrivateEndpointConnectionProps,\n Secret,\n type SecretProps,\n} from \"./key-vault.js\";\n"]}
|
|
@@ -0,0 +1,326 @@
|
|
|
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 KeyProperties, type KeyPropertiesInput, type KeyPropertiesView, type PrivateEndpointConnectionPropertiesInput, type PrivateEndpointConnectionPropertiesView, type SecretPropertiesInput, type SecretPropertiesView, type VaultAccessPolicyPropertiesInput, type VaultAccessPolicyPropertiesView, type VaultPropertiesInput, type VaultPropertiesView } from "./types.js";
|
|
4
|
+
export interface KeyVaultProps {
|
|
5
|
+
/**
|
|
6
|
+
* The supported Azure location where the key vault should be created.
|
|
7
|
+
*/
|
|
8
|
+
location?: ExpressionOrValue<string> | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the vault.
|
|
11
|
+
*/
|
|
12
|
+
name?: ExpressionOrValue<string> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Properties of the vault
|
|
15
|
+
*/
|
|
16
|
+
properties: VaultPropertiesInput;
|
|
17
|
+
/**
|
|
18
|
+
* The tags that will be assigned to the key vault.
|
|
19
|
+
*/
|
|
20
|
+
tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface AccessPolicyProps {
|
|
23
|
+
/**
|
|
24
|
+
* The resource name of the access policy.
|
|
25
|
+
*/
|
|
26
|
+
name?: ExpressionOrValue<string> | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Properties of the access policy
|
|
29
|
+
*/
|
|
30
|
+
properties: VaultAccessPolicyPropertiesInput;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Parameters for updating the access policy in a vault
|
|
34
|
+
*/
|
|
35
|
+
export declare class AccessPolicy extends Resource<"Microsoft.KeyVault/vaults/accessPolicies"> {
|
|
36
|
+
static resourceType: "Microsoft.KeyVault/vaults/accessPolicies";
|
|
37
|
+
static apiVersion: string;
|
|
38
|
+
protected static namingRules: ResourceNamingRules;
|
|
39
|
+
/**
|
|
40
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
41
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
42
|
+
*
|
|
43
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
44
|
+
*/
|
|
45
|
+
protected static buildResourceProps(props?: (AccessPolicyProps & {
|
|
46
|
+
existing?: false;
|
|
47
|
+
}) | (ExistingResourceProps & {
|
|
48
|
+
existing: true;
|
|
49
|
+
})): ResourceProps<"Microsoft.KeyVault/vaults/accessPolicies"> & Record<string, unknown>;
|
|
50
|
+
constructor(context: KeyVault, props: (AccessPolicyProps & {
|
|
51
|
+
existing?: false;
|
|
52
|
+
}) | (ExistingResourceProps & {
|
|
53
|
+
existing: true;
|
|
54
|
+
}), options?: ResourceOptions);
|
|
55
|
+
/**
|
|
56
|
+
* The resource type of the access policy.
|
|
57
|
+
*/
|
|
58
|
+
get location(): Expression<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The resource name of the access policy.
|
|
61
|
+
*/
|
|
62
|
+
get name(): Expression<string>;
|
|
63
|
+
set name(value: ExpressionOrValue<string>);
|
|
64
|
+
/**
|
|
65
|
+
* Properties of the access policy
|
|
66
|
+
*/
|
|
67
|
+
get properties(): VaultAccessPolicyPropertiesView;
|
|
68
|
+
set properties(value: VaultAccessPolicyPropertiesInput);
|
|
69
|
+
}
|
|
70
|
+
export interface VaultKeyProps {
|
|
71
|
+
/**
|
|
72
|
+
* The name of the key to be retrieved.
|
|
73
|
+
*/
|
|
74
|
+
name?: ExpressionOrValue<string> | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The properties of the key to be created.
|
|
77
|
+
*/
|
|
78
|
+
properties: KeyPropertiesInput;
|
|
79
|
+
/**
|
|
80
|
+
* The tags that will be assigned to the key.
|
|
81
|
+
*/
|
|
82
|
+
tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The key resource.
|
|
86
|
+
*/
|
|
87
|
+
export declare class Version extends Resource<"Microsoft.KeyVault/vaults/keys/versions"> {
|
|
88
|
+
static resourceType: "Microsoft.KeyVault/vaults/keys/versions";
|
|
89
|
+
static apiVersion: string;
|
|
90
|
+
protected static namingRules: ResourceNamingRules;
|
|
91
|
+
/**
|
|
92
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
93
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
94
|
+
*
|
|
95
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
96
|
+
*/
|
|
97
|
+
protected static buildResourceProps(props?: ExistingResourceProps & {
|
|
98
|
+
existing: true;
|
|
99
|
+
}): ResourceProps<"Microsoft.KeyVault/vaults/keys/versions"> & Record<string, unknown>;
|
|
100
|
+
constructor(context: VaultKey, props: ExistingResourceProps & {
|
|
101
|
+
existing: true;
|
|
102
|
+
}, options?: ResourceOptions);
|
|
103
|
+
/**
|
|
104
|
+
* The supported Azure location where the managed HSM Pool should be created.
|
|
105
|
+
*/
|
|
106
|
+
get location(): Expression<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The name of the key to be retrieved.
|
|
109
|
+
*/
|
|
110
|
+
get name(): Expression<string>;
|
|
111
|
+
set name(value: ExpressionOrValue<string>);
|
|
112
|
+
/**
|
|
113
|
+
* The properties of the key.
|
|
114
|
+
*/
|
|
115
|
+
get properties(): Expression<KeyProperties>;
|
|
116
|
+
/**
|
|
117
|
+
* Resource tags
|
|
118
|
+
*/
|
|
119
|
+
get tags(): Expression<Record<string, string>>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The key resource.
|
|
123
|
+
*/
|
|
124
|
+
export declare class VaultKey extends Resource<"Microsoft.KeyVault/vaults/keys"> {
|
|
125
|
+
static resourceType: "Microsoft.KeyVault/vaults/keys";
|
|
126
|
+
static apiVersion: string;
|
|
127
|
+
protected static namingRules: ResourceNamingRules;
|
|
128
|
+
/**
|
|
129
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
130
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
131
|
+
*
|
|
132
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
133
|
+
*/
|
|
134
|
+
protected static buildResourceProps(props?: (VaultKeyProps & {
|
|
135
|
+
existing?: false;
|
|
136
|
+
}) | (ExistingResourceProps & {
|
|
137
|
+
existing: true;
|
|
138
|
+
})): ResourceProps<"Microsoft.KeyVault/vaults/keys"> & Record<string, unknown>;
|
|
139
|
+
constructor(context: KeyVault, props: (VaultKeyProps & {
|
|
140
|
+
existing?: false;
|
|
141
|
+
}) | (ExistingResourceProps & {
|
|
142
|
+
existing: true;
|
|
143
|
+
}), options?: ResourceOptions);
|
|
144
|
+
/**
|
|
145
|
+
* The supported Azure location where the managed HSM Pool should be created.
|
|
146
|
+
*/
|
|
147
|
+
get location(): Expression<string>;
|
|
148
|
+
/**
|
|
149
|
+
* The name of the key to be retrieved.
|
|
150
|
+
*/
|
|
151
|
+
get name(): Expression<string>;
|
|
152
|
+
set name(value: ExpressionOrValue<string>);
|
|
153
|
+
/**
|
|
154
|
+
* The properties of the key to be created.
|
|
155
|
+
*/
|
|
156
|
+
get properties(): KeyPropertiesView;
|
|
157
|
+
set properties(value: KeyPropertiesInput);
|
|
158
|
+
/**
|
|
159
|
+
* The tags that will be assigned to the key.
|
|
160
|
+
*/
|
|
161
|
+
get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>>;
|
|
162
|
+
set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined);
|
|
163
|
+
}
|
|
164
|
+
export interface VaultPrivateEndpointConnectionProps {
|
|
165
|
+
/**
|
|
166
|
+
* Modified whenever there is a change in the state of private endpoint connection.
|
|
167
|
+
*/
|
|
168
|
+
etag?: ExpressionOrValue<string> | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Name of the private endpoint connection associated with the key vault.
|
|
171
|
+
*/
|
|
172
|
+
name?: ExpressionOrValue<string> | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Resource properties.
|
|
175
|
+
*/
|
|
176
|
+
properties?: PrivateEndpointConnectionPropertiesInput | undefined;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Private endpoint connection resource.
|
|
180
|
+
*/
|
|
181
|
+
export declare class VaultPrivateEndpointConnection extends Resource<"Microsoft.KeyVault/vaults/privateEndpointConnections"> {
|
|
182
|
+
static resourceType: "Microsoft.KeyVault/vaults/privateEndpointConnections";
|
|
183
|
+
static apiVersion: string;
|
|
184
|
+
protected static namingRules: ResourceNamingRules;
|
|
185
|
+
/**
|
|
186
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
187
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
188
|
+
*
|
|
189
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
190
|
+
*/
|
|
191
|
+
protected static buildResourceProps(props?: (VaultPrivateEndpointConnectionProps & {
|
|
192
|
+
existing?: false;
|
|
193
|
+
}) | (ExistingResourceProps & {
|
|
194
|
+
existing: true;
|
|
195
|
+
})): ResourceProps<"Microsoft.KeyVault/vaults/privateEndpointConnections"> & Record<string, unknown>;
|
|
196
|
+
constructor(context: KeyVault, props?: (VaultPrivateEndpointConnectionProps & {
|
|
197
|
+
existing?: false;
|
|
198
|
+
}) | (ExistingResourceProps & {
|
|
199
|
+
existing: true;
|
|
200
|
+
}), options?: ResourceOptions);
|
|
201
|
+
/**
|
|
202
|
+
* Modified whenever there is a change in the state of private endpoint connection.
|
|
203
|
+
*/
|
|
204
|
+
get etag(): Expression<string>;
|
|
205
|
+
set etag(value: ExpressionOrValue<string> | undefined);
|
|
206
|
+
/**
|
|
207
|
+
* Azure location of the key vault resource.
|
|
208
|
+
*/
|
|
209
|
+
get location(): Expression<string>;
|
|
210
|
+
/**
|
|
211
|
+
* Name of the private endpoint connection associated with the key vault.
|
|
212
|
+
*/
|
|
213
|
+
get name(): Expression<string>;
|
|
214
|
+
set name(value: ExpressionOrValue<string>);
|
|
215
|
+
/**
|
|
216
|
+
* Resource properties.
|
|
217
|
+
*/
|
|
218
|
+
get properties(): PrivateEndpointConnectionPropertiesView;
|
|
219
|
+
set properties(value: PrivateEndpointConnectionPropertiesInput | undefined);
|
|
220
|
+
/**
|
|
221
|
+
* Tags assigned to the key vault resource.
|
|
222
|
+
*/
|
|
223
|
+
get tags(): Expression<Record<string, string>>;
|
|
224
|
+
}
|
|
225
|
+
export interface SecretProps {
|
|
226
|
+
/**
|
|
227
|
+
* The name of the secret.
|
|
228
|
+
*/
|
|
229
|
+
name?: ExpressionOrValue<string> | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Properties of the secret
|
|
232
|
+
*/
|
|
233
|
+
properties: SecretPropertiesInput;
|
|
234
|
+
/**
|
|
235
|
+
* The tags that will be assigned to the secret.
|
|
236
|
+
*/
|
|
237
|
+
tags?: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Resource information with extended details.
|
|
241
|
+
*/
|
|
242
|
+
export declare class Secret extends Resource<"Microsoft.KeyVault/vaults/secrets"> {
|
|
243
|
+
static resourceType: "Microsoft.KeyVault/vaults/secrets";
|
|
244
|
+
static apiVersion: string;
|
|
245
|
+
protected static namingRules: ResourceNamingRules;
|
|
246
|
+
/**
|
|
247
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
248
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
249
|
+
*
|
|
250
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
251
|
+
*/
|
|
252
|
+
protected static buildResourceProps(props?: (SecretProps & {
|
|
253
|
+
existing?: false;
|
|
254
|
+
}) | (ExistingResourceProps & {
|
|
255
|
+
existing: true;
|
|
256
|
+
})): ResourceProps<"Microsoft.KeyVault/vaults/secrets"> & Record<string, unknown>;
|
|
257
|
+
constructor(context: KeyVault, props: (SecretProps & {
|
|
258
|
+
existing?: false;
|
|
259
|
+
}) | (ExistingResourceProps & {
|
|
260
|
+
existing: true;
|
|
261
|
+
}), options?: ResourceOptions);
|
|
262
|
+
/**
|
|
263
|
+
* Azure location of the key vault resource.
|
|
264
|
+
*/
|
|
265
|
+
get location(): Expression<string>;
|
|
266
|
+
/**
|
|
267
|
+
* The name of the secret.
|
|
268
|
+
*/
|
|
269
|
+
get name(): Expression<string>;
|
|
270
|
+
set name(value: ExpressionOrValue<string>);
|
|
271
|
+
/**
|
|
272
|
+
* Properties of the secret
|
|
273
|
+
*/
|
|
274
|
+
get properties(): SecretPropertiesView;
|
|
275
|
+
set properties(value: SecretPropertiesInput);
|
|
276
|
+
/**
|
|
277
|
+
* The tags that will be assigned to the secret.
|
|
278
|
+
*/
|
|
279
|
+
get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>>;
|
|
280
|
+
set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined);
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Resource information with extended details.
|
|
284
|
+
*/
|
|
285
|
+
export declare class KeyVault extends Resource<"Microsoft.KeyVault/vaults"> {
|
|
286
|
+
static resourceType: "Microsoft.KeyVault/vaults";
|
|
287
|
+
static apiVersion: string;
|
|
288
|
+
protected static namingRules: ResourceNamingRules;
|
|
289
|
+
/**
|
|
290
|
+
* Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
|
|
291
|
+
* resource metadata. Shared by ordinary construction and internal resource reconstruction.
|
|
292
|
+
*
|
|
293
|
+
* @param props - Resource properties to normalize for the base constructor.
|
|
294
|
+
*/
|
|
295
|
+
protected static buildResourceProps(props?: (KeyVaultProps & {
|
|
296
|
+
existing?: false;
|
|
297
|
+
}) | (ExistingResourceProps & {
|
|
298
|
+
existing: true;
|
|
299
|
+
})): ResourceProps<"Microsoft.KeyVault/vaults"> & Record<string, unknown>;
|
|
300
|
+
constructor(context: ProvisioningComponent, props: (KeyVaultProps & {
|
|
301
|
+
existing?: false;
|
|
302
|
+
}) | (ExistingResourceProps & {
|
|
303
|
+
existing: true;
|
|
304
|
+
}), options?: ResourceOptions);
|
|
305
|
+
/**
|
|
306
|
+
* The supported Azure location where the key vault should be created.
|
|
307
|
+
*/
|
|
308
|
+
get location(): Expression<string>;
|
|
309
|
+
set location(value: ExpressionOrValue<string>);
|
|
310
|
+
/**
|
|
311
|
+
* The name of the vault.
|
|
312
|
+
*/
|
|
313
|
+
get name(): Expression<string>;
|
|
314
|
+
set name(value: ExpressionOrValue<string>);
|
|
315
|
+
/**
|
|
316
|
+
* Properties of the vault
|
|
317
|
+
*/
|
|
318
|
+
get properties(): VaultPropertiesView;
|
|
319
|
+
set properties(value: VaultPropertiesInput);
|
|
320
|
+
/**
|
|
321
|
+
* The tags that will be assigned to the key vault.
|
|
322
|
+
*/
|
|
323
|
+
get tags(): InputRecord<ExpressionOrValue<string>, Record<string, string>>;
|
|
324
|
+
set tags(value: InputRecord<ExpressionOrValue<string>, Record<string, string>> | undefined);
|
|
325
|
+
}
|
|
326
|
+
//# sourceMappingURL=key-vault.d.ts.map
|