@volcengine/pulumi 0.0.45 → 0.0.46

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 (146) hide show
  1. package/kms/asymmetricCiphertext.d.ts +129 -0
  2. package/kms/asymmetricCiphertext.js +90 -0
  3. package/kms/asymmetricCiphertext.js.map +1 -0
  4. package/kms/asymmetricCiphertexts.d.ts +129 -0
  5. package/kms/asymmetricCiphertexts.js +69 -0
  6. package/kms/asymmetricCiphertexts.js.map +1 -0
  7. package/kms/asymmetricPlaintexts.d.ts +129 -0
  8. package/kms/asymmetricPlaintexts.js +69 -0
  9. package/kms/asymmetricPlaintexts.js.map +1 -0
  10. package/kms/asymmetricSignature.d.ts +142 -0
  11. package/kms/asymmetricSignature.js +93 -0
  12. package/kms/asymmetricSignature.js.map +1 -0
  13. package/kms/asymmetricSignatures.d.ts +140 -0
  14. package/kms/asymmetricSignatures.js +72 -0
  15. package/kms/asymmetricSignatures.js.map +1 -0
  16. package/kms/asymmetricVerifications.d.ts +139 -0
  17. package/kms/asymmetricVerifications.js +63 -0
  18. package/kms/asymmetricVerifications.js.map +1 -0
  19. package/kms/cancelKeyDeletion.d.ts +105 -0
  20. package/kms/cancelKeyDeletion.js +80 -0
  21. package/kms/cancelKeyDeletion.js.map +1 -0
  22. package/kms/cancelSecretDeletion.d.ts +75 -0
  23. package/kms/cancelSecretDeletion.js +73 -0
  24. package/kms/cancelSecretDeletion.js.map +1 -0
  25. package/kms/ciphertext.d.ts +122 -0
  26. package/kms/ciphertext.js +80 -0
  27. package/kms/ciphertext.js.map +1 -0
  28. package/kms/ciphertexts.d.ts +115 -0
  29. package/kms/ciphertexts.js +55 -0
  30. package/kms/ciphertexts.js.map +1 -0
  31. package/kms/dataKeys.d.ts +121 -0
  32. package/kms/dataKeys.js +62 -0
  33. package/kms/dataKeys.js.map +1 -0
  34. package/kms/getAsymmetricCiphertexts.d.ts +127 -0
  35. package/kms/getAsymmetricCiphertexts.js +66 -0
  36. package/kms/getAsymmetricCiphertexts.js.map +1 -0
  37. package/kms/getAsymmetricPlaintexts.d.ts +127 -0
  38. package/kms/getAsymmetricPlaintexts.js +66 -0
  39. package/kms/getAsymmetricPlaintexts.js.map +1 -0
  40. package/kms/getAsymmetricSignatures.d.ts +138 -0
  41. package/kms/getAsymmetricSignatures.js +69 -0
  42. package/kms/getAsymmetricSignatures.js.map +1 -0
  43. package/kms/getAsymmetricVerifications.d.ts +137 -0
  44. package/kms/getAsymmetricVerifications.js +60 -0
  45. package/kms/getAsymmetricVerifications.js.map +1 -0
  46. package/kms/getCiphertexts.d.ts +113 -0
  47. package/kms/getCiphertexts.js +52 -0
  48. package/kms/getCiphertexts.js.map +1 -0
  49. package/kms/getDataKeys.d.ts +119 -0
  50. package/kms/getDataKeys.js +59 -0
  51. package/kms/getDataKeys.js.map +1 -0
  52. package/kms/getKeyMaterials.d.ts +120 -0
  53. package/kms/getKeyMaterials.js +57 -0
  54. package/kms/getKeyMaterials.js.map +1 -0
  55. package/kms/getKeys.d.ts +10 -10
  56. package/kms/getMacVerifications.d.ts +139 -0
  57. package/kms/getMacVerifications.js +67 -0
  58. package/kms/getMacVerifications.js.map +1 -0
  59. package/kms/getMacs.d.ts +130 -0
  60. package/kms/getMacs.js +66 -0
  61. package/kms/getMacs.js.map +1 -0
  62. package/kms/getPlaintexts.d.ts +94 -0
  63. package/kms/getPlaintexts.js +57 -0
  64. package/kms/getPlaintexts.js.map +1 -0
  65. package/kms/getPublicKeys.d.ts +98 -0
  66. package/kms/getPublicKeys.js +51 -0
  67. package/kms/getPublicKeys.js.map +1 -0
  68. package/kms/getReEncrypts.d.ts +132 -0
  69. package/kms/getReEncrypts.js +63 -0
  70. package/kms/getReEncrypts.js.map +1 -0
  71. package/kms/getRegions.d.ts +62 -0
  72. package/kms/getRegions.js +42 -0
  73. package/kms/getRegions.js.map +1 -0
  74. package/kms/getSecretVersions.d.ts +75 -0
  75. package/kms/getSecretVersions.js +46 -0
  76. package/kms/getSecretVersions.js.map +1 -0
  77. package/kms/getSecrets.d.ts +12 -0
  78. package/kms/getSecrets.js +1 -0
  79. package/kms/getSecrets.js.map +1 -1
  80. package/kms/index.d.ts +120 -0
  81. package/kms/index.js +146 -1
  82. package/kms/index.js.map +1 -1
  83. package/kms/key.d.ts +98 -24
  84. package/kms/key.js +44 -0
  85. package/kms/key.js.map +1 -1
  86. package/kms/keyArchive.d.ts +6 -6
  87. package/kms/keyEnable.d.ts +6 -6
  88. package/kms/keyMaterial.d.ts +141 -0
  89. package/kms/keyMaterial.js +88 -0
  90. package/kms/keyMaterial.js.map +1 -0
  91. package/kms/keyMaterials.d.ts +122 -0
  92. package/kms/keyMaterials.js +60 -0
  93. package/kms/keyMaterials.js.map +1 -0
  94. package/kms/keyPrimaryRegion.d.ts +113 -0
  95. package/kms/keyPrimaryRegion.js +87 -0
  96. package/kms/keyPrimaryRegion.js.map +1 -0
  97. package/kms/keyRotation.d.ts +22 -7
  98. package/kms/keyRotation.js +6 -1
  99. package/kms/keyRotation.js.map +1 -1
  100. package/kms/keyring.d.ts +3 -3
  101. package/kms/keys.d.ts +10 -10
  102. package/kms/macVerifications.d.ts +141 -0
  103. package/kms/macVerifications.js +70 -0
  104. package/kms/macVerifications.js.map +1 -0
  105. package/kms/macs.d.ts +132 -0
  106. package/kms/macs.js +69 -0
  107. package/kms/macs.js.map +1 -0
  108. package/kms/plaintexts.d.ts +96 -0
  109. package/kms/plaintexts.js +60 -0
  110. package/kms/plaintexts.js.map +1 -0
  111. package/kms/publicKeys.d.ts +100 -0
  112. package/kms/publicKeys.js +54 -0
  113. package/kms/publicKeys.js.map +1 -0
  114. package/kms/reEncrypt.d.ts +138 -0
  115. package/kms/reEncrypt.js +86 -0
  116. package/kms/reEncrypt.js.map +1 -0
  117. package/kms/reEncrypts.d.ts +134 -0
  118. package/kms/reEncrypts.js +66 -0
  119. package/kms/reEncrypts.js.map +1 -0
  120. package/kms/regions.d.ts +64 -0
  121. package/kms/regions.js +45 -0
  122. package/kms/regions.js.map +1 -0
  123. package/kms/replicateKey.d.ts +144 -0
  124. package/kms/replicateKey.js +90 -0
  125. package/kms/replicateKey.js.map +1 -0
  126. package/kms/secret.d.ts +70 -12
  127. package/kms/secret.js +22 -0
  128. package/kms/secret.js.map +1 -1
  129. package/kms/secretBackup.d.ts +91 -0
  130. package/kms/secretBackup.js +77 -0
  131. package/kms/secretBackup.js.map +1 -0
  132. package/kms/secretRestore.d.ts +92 -0
  133. package/kms/secretRestore.js +82 -0
  134. package/kms/secretRestore.js.map +1 -0
  135. package/kms/secretRotate.d.ts +82 -0
  136. package/kms/secretRotate.js +76 -0
  137. package/kms/secretRotate.js.map +1 -0
  138. package/kms/secretVersions.d.ts +77 -0
  139. package/kms/secretVersions.js +49 -0
  140. package/kms/secretVersions.js.map +1 -0
  141. package/kms/secrets.d.ts +12 -0
  142. package/kms/secrets.js +1 -0
  143. package/kms/secrets.js.map +1 -1
  144. package/package.json +1 -1
  145. package/types/input.d.ts +10 -0
  146. package/types/output.d.ts +304 -10
@@ -0,0 +1,134 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Use this data source to query detailed information of kms re encrypts
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ * import * as volcengine from "@volcengine/pulumi";
11
+ *
12
+ * const encryptStable = new volcengine.kms.Ciphertext("encryptStable", {
13
+ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
14
+ * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
15
+ * });
16
+ * const reEncryptChanging = volcengine.kms.getReEncryptsOutput({
17
+ * newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc",
18
+ * sourceCiphertextBlob: encryptStable.ciphertextBlob,
19
+ * });
20
+ * ```
21
+ */
22
+ /** @deprecated volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts */
23
+ export declare function reEncrypts(args: ReEncryptsArgs, opts?: pulumi.InvokeOptions): Promise<ReEncryptsResult>;
24
+ /**
25
+ * A collection of arguments for invoking ReEncrypts.
26
+ */
27
+ export interface ReEncryptsArgs {
28
+ /**
29
+ * The new encryption context JSON string of key/value pairs.
30
+ */
31
+ newEncryptionContext?: string;
32
+ /**
33
+ * The new key id. When newKeyId is not specified, both newKeyringName and newKeyName must be specified.
34
+ */
35
+ newKeyId?: string;
36
+ /**
37
+ * The new key name.
38
+ */
39
+ newKeyName?: string;
40
+ /**
41
+ * The new keyring name.
42
+ */
43
+ newKeyringName?: string;
44
+ /**
45
+ * The old encryption context JSON string of key/value pairs.
46
+ */
47
+ oldEncryptionContext?: string;
48
+ /**
49
+ * File name where to save data source results.
50
+ */
51
+ outputFile?: string;
52
+ /**
53
+ * The ciphertext data to be re-encrypted, Base64 encoded.
54
+ */
55
+ sourceCiphertextBlob: string;
56
+ }
57
+ /**
58
+ * A collection of values returned by ReEncrypts.
59
+ */
60
+ export interface ReEncryptsResult {
61
+ /**
62
+ * The information about the ciphertext.
63
+ */
64
+ readonly ciphertextInfos: outputs.kms.ReEncryptsCiphertextInfo[];
65
+ /**
66
+ * The provider-assigned unique ID for this managed resource.
67
+ */
68
+ readonly id: string;
69
+ readonly newEncryptionContext?: string;
70
+ readonly newKeyId?: string;
71
+ readonly newKeyName?: string;
72
+ readonly newKeyringName?: string;
73
+ readonly oldEncryptionContext?: string;
74
+ readonly outputFile?: string;
75
+ readonly sourceCiphertextBlob: string;
76
+ /**
77
+ * The total count of query.
78
+ */
79
+ readonly totalCount: number;
80
+ }
81
+ /**
82
+ * Use this data source to query detailed information of kms re encrypts
83
+ * ## Example Usage
84
+ *
85
+ * ```typescript
86
+ * import * as pulumi from "@pulumi/pulumi";
87
+ * import * as volcengine from "@pulumi/volcengine";
88
+ * import * as volcengine from "@volcengine/pulumi";
89
+ *
90
+ * const encryptStable = new volcengine.kms.Ciphertext("encryptStable", {
91
+ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
92
+ * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
93
+ * });
94
+ * const reEncryptChanging = volcengine.kms.getReEncryptsOutput({
95
+ * newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc",
96
+ * sourceCiphertextBlob: encryptStable.ciphertextBlob,
97
+ * });
98
+ * ```
99
+ */
100
+ /** @deprecated volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts */
101
+ export declare function reEncryptsOutput(args: ReEncryptsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ReEncryptsResult>;
102
+ /**
103
+ * A collection of arguments for invoking ReEncrypts.
104
+ */
105
+ export interface ReEncryptsOutputArgs {
106
+ /**
107
+ * The new encryption context JSON string of key/value pairs.
108
+ */
109
+ newEncryptionContext?: pulumi.Input<string>;
110
+ /**
111
+ * The new key id. When newKeyId is not specified, both newKeyringName and newKeyName must be specified.
112
+ */
113
+ newKeyId?: pulumi.Input<string>;
114
+ /**
115
+ * The new key name.
116
+ */
117
+ newKeyName?: pulumi.Input<string>;
118
+ /**
119
+ * The new keyring name.
120
+ */
121
+ newKeyringName?: pulumi.Input<string>;
122
+ /**
123
+ * The old encryption context JSON string of key/value pairs.
124
+ */
125
+ oldEncryptionContext?: pulumi.Input<string>;
126
+ /**
127
+ * File name where to save data source results.
128
+ */
129
+ outputFile?: pulumi.Input<string>;
130
+ /**
131
+ * The ciphertext data to be re-encrypted, Base64 encoded.
132
+ */
133
+ sourceCiphertextBlob: pulumi.Input<string>;
134
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.reEncryptsOutput = exports.reEncrypts = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of kms re encrypts
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ * import * as volcengine from "@volcengine/pulumi";
16
+ *
17
+ * const encryptStable = new volcengine.kms.Ciphertext("encryptStable", {
18
+ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
19
+ * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
20
+ * });
21
+ * const reEncryptChanging = volcengine.kms.getReEncryptsOutput({
22
+ * newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc",
23
+ * sourceCiphertextBlob: encryptStable.ciphertextBlob,
24
+ * });
25
+ * ```
26
+ */
27
+ /** @deprecated volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts */
28
+ function reEncrypts(args, opts) {
29
+ pulumi.log.warn("reEncrypts is deprecated: volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts");
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
31
+ return pulumi.runtime.invoke("volcengine:kms/reEncrypts:ReEncrypts", {
32
+ "newEncryptionContext": args.newEncryptionContext,
33
+ "newKeyId": args.newKeyId,
34
+ "newKeyName": args.newKeyName,
35
+ "newKeyringName": args.newKeyringName,
36
+ "oldEncryptionContext": args.oldEncryptionContext,
37
+ "outputFile": args.outputFile,
38
+ "sourceCiphertextBlob": args.sourceCiphertextBlob,
39
+ }, opts);
40
+ }
41
+ exports.reEncrypts = reEncrypts;
42
+ /**
43
+ * Use this data source to query detailed information of kms re encrypts
44
+ * ## Example Usage
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as volcengine from "@pulumi/volcengine";
49
+ * import * as volcengine from "@volcengine/pulumi";
50
+ *
51
+ * const encryptStable = new volcengine.kms.Ciphertext("encryptStable", {
52
+ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
53
+ * plaintext: "VGhpcyBpcyBhIHBsYWludGV4dCBleGFtcGxlLg==",
54
+ * });
55
+ * const reEncryptChanging = volcengine.kms.getReEncryptsOutput({
56
+ * newKeyId: "33e6ae1f-62f6-415a-****-579f526274cc",
57
+ * sourceCiphertextBlob: encryptStable.ciphertextBlob,
58
+ * });
59
+ * ```
60
+ */
61
+ /** @deprecated volcengine.kms.ReEncrypts has been deprecated in favor of volcengine.kms.getReEncrypts */
62
+ function reEncryptsOutput(args, opts) {
63
+ return pulumi.output(args).apply((a) => reEncrypts(a, opts));
64
+ }
65
+ exports.reEncryptsOutput = reEncryptsOutput;
66
+ //# sourceMappingURL=reEncrypts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reEncrypts.js","sourceRoot":"","sources":["../../kms/reEncrypts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,yGAAyG;AACzG,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,kHAAkH,CAAC,CAAA;IAEnI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;KACpD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC;AA4DD;;;;;;;;;;;;;;;;;;GAkBG;AACH,yGAAyG;AACzG,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
@@ -0,0 +1,64 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "../types/output";
3
+ /**
4
+ * Use this data source to query detailed information of kms regions
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ *
11
+ * const default = volcengine.kms.getRegions({});
12
+ * ```
13
+ */
14
+ /** @deprecated volcengine.kms.Regions has been deprecated in favor of volcengine.kms.getRegions */
15
+ export declare function regions(args?: RegionsArgs, opts?: pulumi.InvokeOptions): Promise<RegionsResult>;
16
+ /**
17
+ * A collection of arguments for invoking Regions.
18
+ */
19
+ export interface RegionsArgs {
20
+ /**
21
+ * File name where to save data source results.
22
+ */
23
+ outputFile?: string;
24
+ }
25
+ /**
26
+ * A collection of values returned by Regions.
27
+ */
28
+ export interface RegionsResult {
29
+ /**
30
+ * The provider-assigned unique ID for this managed resource.
31
+ */
32
+ readonly id: string;
33
+ readonly outputFile?: string;
34
+ /**
35
+ * The supported regions.
36
+ */
37
+ readonly regions: outputs.kms.RegionsRegion[];
38
+ /**
39
+ * The total count of query.
40
+ */
41
+ readonly totalCount: number;
42
+ }
43
+ /**
44
+ * Use this data source to query detailed information of kms regions
45
+ * ## Example Usage
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as volcengine from "@pulumi/volcengine";
50
+ *
51
+ * const default = volcengine.kms.getRegions({});
52
+ * ```
53
+ */
54
+ /** @deprecated volcengine.kms.Regions has been deprecated in favor of volcengine.kms.getRegions */
55
+ export declare function regionsOutput(args?: RegionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<RegionsResult>;
56
+ /**
57
+ * A collection of arguments for invoking Regions.
58
+ */
59
+ export interface RegionsOutputArgs {
60
+ /**
61
+ * File name where to save data source results.
62
+ */
63
+ outputFile?: pulumi.Input<string>;
64
+ }
package/kms/regions.js ADDED
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.regionsOutput = exports.regions = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to query detailed information of kms regions
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ *
16
+ * const default = volcengine.kms.getRegions({});
17
+ * ```
18
+ */
19
+ /** @deprecated volcengine.kms.Regions has been deprecated in favor of volcengine.kms.getRegions */
20
+ function regions(args, opts) {
21
+ pulumi.log.warn("regions is deprecated: volcengine.kms.Regions has been deprecated in favor of volcengine.kms.getRegions");
22
+ args = args || {};
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("volcengine:kms/regions:Regions", {
25
+ "outputFile": args.outputFile,
26
+ }, opts);
27
+ }
28
+ exports.regions = regions;
29
+ /**
30
+ * Use this data source to query detailed information of kms regions
31
+ * ## Example Usage
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as volcengine from "@pulumi/volcengine";
36
+ *
37
+ * const default = volcengine.kms.getRegions({});
38
+ * ```
39
+ */
40
+ /** @deprecated volcengine.kms.Regions has been deprecated in favor of volcengine.kms.getRegions */
41
+ function regionsOutput(args, opts) {
42
+ return pulumi.output(args).apply((a) => regions(a, opts));
43
+ }
44
+ exports.regionsOutput = regionsOutput;
45
+ //# sourceMappingURL=regions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regions.js","sourceRoot":"","sources":["../../kms/regions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;GAUG;AACH,mGAAmG;AACnG,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;IAC1H,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AA8BD;;;;;;;;;;GAUG;AACH,mGAAmG;AACnG,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
@@ -0,0 +1,144 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Provides a resource to manage kms replicate key
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as volcengine from "@volcengine/pulumi";
11
+ *
12
+ * // Only create a backup key in the replica region;
13
+ * // Next, managing key requires the use of resource "volcengine_kms_key".
14
+ * const replica = new volcengine.kms.ReplicateKey("replica", {
15
+ * description: "replica description",
16
+ * keyName: "mrk-Tf-Test-1",
17
+ * keyringName: "test",
18
+ * replicaRegion: "cn-shanghai",
19
+ * tags: [{
20
+ * key: "tfk1",
21
+ * value: "tfv1",
22
+ * }],
23
+ * });
24
+ * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * The KmsReplicateKey is not support imported.
29
+ */
30
+ export declare class ReplicateKey extends pulumi.CustomResource {
31
+ /**
32
+ * Get an existing ReplicateKey resource's state with the given name, ID, and optional extra
33
+ * properties used to qualify the lookup.
34
+ *
35
+ * @param name The _unique_ name of the resulting resource.
36
+ * @param id The _unique_ provider ID of the resource to lookup.
37
+ * @param state Any extra arguments used during the lookup.
38
+ * @param opts Optional settings to control the behavior of the CustomResource.
39
+ */
40
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ReplicateKeyState, opts?: pulumi.CustomResourceOptions): ReplicateKey;
41
+ /**
42
+ * Returns true if the given object is an instance of ReplicateKey. This is designed to work even
43
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
44
+ */
45
+ static isInstance(obj: any): obj is ReplicateKey;
46
+ /**
47
+ * The description of the replicated regional key.
48
+ */
49
+ readonly description: pulumi.Output<string | undefined>;
50
+ /**
51
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
52
+ */
53
+ readonly keyId: pulumi.Output<string | undefined>;
54
+ /**
55
+ * The name of the key. Note: Only multi-region keys support replication.
56
+ */
57
+ readonly keyName: pulumi.Output<string | undefined>;
58
+ /**
59
+ * The name of the keyring.
60
+ */
61
+ readonly keyringName: pulumi.Output<string | undefined>;
62
+ /**
63
+ * The id of the replica key.
64
+ */
65
+ readonly replicaKeyId: pulumi.Output<string>;
66
+ /**
67
+ * The target region for replica key.
68
+ */
69
+ readonly replicaRegion: pulumi.Output<string>;
70
+ /**
71
+ * Tags.
72
+ */
73
+ readonly tags: pulumi.Output<outputs.kms.ReplicateKeyTag[] | undefined>;
74
+ /**
75
+ * Create a ReplicateKey resource with the given unique name, arguments, and options.
76
+ *
77
+ * @param name The _unique_ name of the resource.
78
+ * @param args The arguments to use to populate this resource's properties.
79
+ * @param opts A bag of options that control this resource's behavior.
80
+ */
81
+ constructor(name: string, args: ReplicateKeyArgs, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering ReplicateKey resources.
85
+ */
86
+ export interface ReplicateKeyState {
87
+ /**
88
+ * The description of the replicated regional key.
89
+ */
90
+ description?: pulumi.Input<string>;
91
+ /**
92
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
93
+ */
94
+ keyId?: pulumi.Input<string>;
95
+ /**
96
+ * The name of the key. Note: Only multi-region keys support replication.
97
+ */
98
+ keyName?: pulumi.Input<string>;
99
+ /**
100
+ * The name of the keyring.
101
+ */
102
+ keyringName?: pulumi.Input<string>;
103
+ /**
104
+ * The id of the replica key.
105
+ */
106
+ replicaKeyId?: pulumi.Input<string>;
107
+ /**
108
+ * The target region for replica key.
109
+ */
110
+ replicaRegion?: pulumi.Input<string>;
111
+ /**
112
+ * Tags.
113
+ */
114
+ tags?: pulumi.Input<pulumi.Input<inputs.kms.ReplicateKeyTag>[]>;
115
+ }
116
+ /**
117
+ * The set of arguments for constructing a ReplicateKey resource.
118
+ */
119
+ export interface ReplicateKeyArgs {
120
+ /**
121
+ * The description of the replicated regional key.
122
+ */
123
+ description?: pulumi.Input<string>;
124
+ /**
125
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
126
+ */
127
+ keyId?: pulumi.Input<string>;
128
+ /**
129
+ * The name of the key. Note: Only multi-region keys support replication.
130
+ */
131
+ keyName?: pulumi.Input<string>;
132
+ /**
133
+ * The name of the keyring.
134
+ */
135
+ keyringName?: pulumi.Input<string>;
136
+ /**
137
+ * The target region for replica key.
138
+ */
139
+ replicaRegion: pulumi.Input<string>;
140
+ /**
141
+ * Tags.
142
+ */
143
+ tags?: pulumi.Input<pulumi.Input<inputs.kms.ReplicateKeyTag>[]>;
144
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ReplicateKey = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage kms replicate key
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * // Only create a backup key in the replica region;
17
+ * // Next, managing key requires the use of resource "volcengine_kms_key".
18
+ * const replica = new volcengine.kms.ReplicateKey("replica", {
19
+ * description: "replica description",
20
+ * keyName: "mrk-Tf-Test-1",
21
+ * keyringName: "test",
22
+ * replicaRegion: "cn-shanghai",
23
+ * tags: [{
24
+ * key: "tfk1",
25
+ * value: "tfv1",
26
+ * }],
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * The KmsReplicateKey is not support imported.
33
+ */
34
+ class ReplicateKey extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing ReplicateKey resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param state Any extra arguments used during the lookup.
42
+ * @param opts Optional settings to control the behavior of the CustomResource.
43
+ */
44
+ static get(name, id, state, opts) {
45
+ return new ReplicateKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
46
+ }
47
+ /**
48
+ * Returns true if the given object is an instance of ReplicateKey. This is designed to work even
49
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
50
+ */
51
+ static isInstance(obj) {
52
+ if (obj === undefined || obj === null) {
53
+ return false;
54
+ }
55
+ return obj['__pulumiType'] === ReplicateKey.__pulumiType;
56
+ }
57
+ constructor(name, argsOrState, opts) {
58
+ let resourceInputs = {};
59
+ opts = opts || {};
60
+ if (opts.id) {
61
+ const state = argsOrState;
62
+ resourceInputs["description"] = state ? state.description : undefined;
63
+ resourceInputs["keyId"] = state ? state.keyId : undefined;
64
+ resourceInputs["keyName"] = state ? state.keyName : undefined;
65
+ resourceInputs["keyringName"] = state ? state.keyringName : undefined;
66
+ resourceInputs["replicaKeyId"] = state ? state.replicaKeyId : undefined;
67
+ resourceInputs["replicaRegion"] = state ? state.replicaRegion : undefined;
68
+ resourceInputs["tags"] = state ? state.tags : undefined;
69
+ }
70
+ else {
71
+ const args = argsOrState;
72
+ if ((!args || args.replicaRegion === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'replicaRegion'");
74
+ }
75
+ resourceInputs["description"] = args ? args.description : undefined;
76
+ resourceInputs["keyId"] = args ? args.keyId : undefined;
77
+ resourceInputs["keyName"] = args ? args.keyName : undefined;
78
+ resourceInputs["keyringName"] = args ? args.keyringName : undefined;
79
+ resourceInputs["replicaRegion"] = args ? args.replicaRegion : undefined;
80
+ resourceInputs["tags"] = args ? args.tags : undefined;
81
+ resourceInputs["replicaKeyId"] = undefined /*out*/;
82
+ }
83
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
84
+ super(ReplicateKey.__pulumiType, name, resourceInputs, opts);
85
+ }
86
+ }
87
+ exports.ReplicateKey = ReplicateKey;
88
+ /** @internal */
89
+ ReplicateKey.__pulumiType = 'volcengine:kms/replicateKey:ReplicateKey';
90
+ //# sourceMappingURL=replicateKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replicateKey.js","sourceRoot":"","sources":["../../kms/replicateKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;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