@volcengine/pulumi 0.0.44 → 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 (410) hide show
  1. package/iam/accessKey.d.ts +25 -56
  2. package/iam/accessKey.js +9 -20
  3. package/iam/accessKey.js.map +1 -1
  4. package/iam/accessKeyLastUseds.d.ts +86 -0
  5. package/iam/accessKeyLastUseds.js +50 -0
  6. package/iam/accessKeyLastUseds.js.map +1 -0
  7. package/iam/accessKeys.d.ts +4 -13
  8. package/iam/accessKeys.js +2 -3
  9. package/iam/accessKeys.js.map +1 -1
  10. package/iam/accountSummaries.d.ts +64 -0
  11. package/iam/accountSummaries.js +45 -0
  12. package/iam/accountSummaries.js.map +1 -0
  13. package/iam/allowedIpAddress.d.ts +89 -0
  14. package/iam/allowedIpAddress.js +84 -0
  15. package/iam/allowedIpAddress.js.map +1 -0
  16. package/iam/allowedIpAddresses.d.ts +60 -0
  17. package/iam/allowedIpAddresses.js +45 -0
  18. package/iam/allowedIpAddresses.js.map +1 -0
  19. package/iam/callerIdentities.d.ts +64 -0
  20. package/iam/callerIdentities.js +45 -0
  21. package/iam/callerIdentities.js.map +1 -0
  22. package/iam/entitiesPolicies.d.ts +105 -0
  23. package/iam/entitiesPolicies.js +53 -0
  24. package/iam/entitiesPolicies.js.map +1 -0
  25. package/iam/getAccessKeyLastUseds.d.ts +84 -0
  26. package/iam/getAccessKeyLastUseds.js +47 -0
  27. package/iam/getAccessKeyLastUseds.js.map +1 -0
  28. package/iam/getAccessKeys.d.ts +4 -13
  29. package/iam/getAccessKeys.js +2 -3
  30. package/iam/getAccessKeys.js.map +1 -1
  31. package/iam/getAccountSummaries.d.ts +62 -0
  32. package/iam/getAccountSummaries.js +42 -0
  33. package/iam/getAccountSummaries.js.map +1 -0
  34. package/iam/getAllowedIpAddresses.d.ts +58 -0
  35. package/iam/getAllowedIpAddresses.js +42 -0
  36. package/iam/getAllowedIpAddresses.js.map +1 -0
  37. package/iam/getCallerIdentities.d.ts +62 -0
  38. package/iam/getCallerIdentities.js +42 -0
  39. package/iam/getCallerIdentities.js.map +1 -0
  40. package/iam/getEntitiesPolicies.d.ts +103 -0
  41. package/iam/getEntitiesPolicies.js +50 -0
  42. package/iam/getEntitiesPolicies.js.map +1 -0
  43. package/iam/getGroupUsers.d.ts +84 -0
  44. package/iam/getGroupUsers.js +47 -0
  45. package/iam/getGroupUsers.js.map +1 -0
  46. package/iam/getIdentityProviders.d.ts +62 -0
  47. package/iam/getIdentityProviders.js +42 -0
  48. package/iam/getIdentityProviders.js.map +1 -0
  49. package/iam/getLoginProfiles.d.ts +65 -0
  50. package/iam/getLoginProfiles.js +45 -0
  51. package/iam/getLoginProfiles.js.map +1 -0
  52. package/iam/getOauthProviders.d.ts +78 -0
  53. package/iam/getOauthProviders.js +46 -0
  54. package/iam/getOauthProviders.js.map +1 -0
  55. package/iam/getOidcProviders.d.ts +2 -2
  56. package/iam/getOidcProviders.js +2 -2
  57. package/iam/getPolicies.d.ts +9 -63
  58. package/iam/getPolicies.js +5 -21
  59. package/iam/getPolicies.js.map +1 -1
  60. package/iam/getRolePolicyAttachments.d.ts +62 -0
  61. package/iam/getRolePolicyAttachments.js +45 -0
  62. package/iam/getRolePolicyAttachments.js.map +1 -0
  63. package/iam/getRoles.d.ts +6 -48
  64. package/iam/getRoles.js +4 -35
  65. package/iam/getRoles.js.map +1 -1
  66. package/iam/getSamlProviders.d.ts +2 -2
  67. package/iam/getSamlProviders.js +2 -2
  68. package/iam/getSecurityConfigs.d.ts +74 -0
  69. package/iam/getSecurityConfigs.js +46 -0
  70. package/iam/getSecurityConfigs.js.map +1 -0
  71. package/iam/getTags.d.ts +91 -0
  72. package/iam/getTags.js +47 -0
  73. package/iam/getTags.js.map +1 -0
  74. package/iam/getUserGroupAttachments.d.ts +75 -0
  75. package/iam/getUserGroupAttachments.js +46 -0
  76. package/iam/getUserGroupAttachments.js.map +1 -0
  77. package/iam/getUserGroupPolicyAttachments.d.ts +4 -36
  78. package/iam/getUserGroupPolicyAttachments.js +4 -36
  79. package/iam/getUserGroupPolicyAttachments.js.map +1 -1
  80. package/iam/getUserGroups.d.ts +6 -18
  81. package/iam/getUserGroups.js +4 -16
  82. package/iam/getUserGroups.js.map +1 -1
  83. package/iam/getUserPolicyAttachments.d.ts +62 -0
  84. package/iam/getUserPolicyAttachments.js +45 -0
  85. package/iam/getUserPolicyAttachments.js.map +1 -0
  86. package/iam/getUsers.d.ts +9 -30
  87. package/iam/getUsers.js +5 -18
  88. package/iam/getUsers.js.map +1 -1
  89. package/iam/groupUsers.d.ts +86 -0
  90. package/iam/groupUsers.js +50 -0
  91. package/iam/groupUsers.js.map +1 -0
  92. package/iam/identityProviders.d.ts +64 -0
  93. package/iam/identityProviders.js +45 -0
  94. package/iam/identityProviders.js.map +1 -0
  95. package/iam/index.d.ts +105 -0
  96. package/iam/index.js +122 -1
  97. package/iam/index.js.map +1 -1
  98. package/iam/loginProfile.d.ts +135 -11
  99. package/iam/loginProfile.js +35 -9
  100. package/iam/loginProfile.js.map +1 -1
  101. package/iam/loginProfiles.d.ts +67 -0
  102. package/iam/loginProfiles.js +48 -0
  103. package/iam/loginProfiles.js.map +1 -0
  104. package/iam/oauthProvider.d.ts +257 -0
  105. package/iam/oauthProvider.js +146 -0
  106. package/iam/oauthProvider.js.map +1 -0
  107. package/iam/oauthProviders.d.ts +80 -0
  108. package/iam/oauthProviders.js +49 -0
  109. package/iam/oauthProviders.js.map +1 -0
  110. package/iam/oidcProvider.d.ts +5 -11
  111. package/iam/oidcProvider.js +5 -11
  112. package/iam/oidcProvider.js.map +1 -1
  113. package/iam/oidcProviderClient.d.ts +78 -0
  114. package/iam/oidcProviderClient.js +75 -0
  115. package/iam/oidcProviderClient.js.map +1 -0
  116. package/iam/oidcProviderThumbprint.d.ts +78 -0
  117. package/iam/oidcProviderThumbprint.js +75 -0
  118. package/iam/oidcProviderThumbprint.js.map +1 -0
  119. package/iam/oidcProviders.d.ts +2 -2
  120. package/iam/oidcProviders.js +2 -2
  121. package/iam/policies.d.ts +9 -63
  122. package/iam/policies.js +5 -21
  123. package/iam/policies.js.map +1 -1
  124. package/iam/policy.d.ts +26 -2
  125. package/iam/policy.js +8 -2
  126. package/iam/policy.js.map +1 -1
  127. package/iam/policyProject.d.ts +121 -0
  128. package/iam/policyProject.js +97 -0
  129. package/iam/policyProject.js.map +1 -0
  130. package/iam/role.d.ts +41 -7
  131. package/iam/role.js +13 -9
  132. package/iam/role.js.map +1 -1
  133. package/iam/rolePolicyAttachment.d.ts +3 -15
  134. package/iam/rolePolicyAttachment.js +3 -15
  135. package/iam/rolePolicyAttachment.js.map +1 -1
  136. package/iam/rolePolicyAttachments.d.ts +64 -0
  137. package/iam/rolePolicyAttachments.js +48 -0
  138. package/iam/rolePolicyAttachments.js.map +1 -0
  139. package/iam/roles.d.ts +6 -48
  140. package/iam/roles.js +4 -35
  141. package/iam/roles.js.map +1 -1
  142. package/iam/samlProviders.d.ts +2 -2
  143. package/iam/samlProviders.js +2 -2
  144. package/iam/securityConfig.d.ts +107 -0
  145. package/iam/securityConfig.js +82 -0
  146. package/iam/securityConfig.js.map +1 -0
  147. package/iam/securityConfigs.d.ts +76 -0
  148. package/iam/securityConfigs.js +49 -0
  149. package/iam/securityConfigs.js.map +1 -0
  150. package/iam/serviceLinkedRole.d.ts +22 -2
  151. package/iam/serviceLinkedRole.js +10 -2
  152. package/iam/serviceLinkedRole.js.map +1 -1
  153. package/iam/tag.d.ts +106 -0
  154. package/iam/tag.js +91 -0
  155. package/iam/tag.js.map +1 -0
  156. package/iam/tags.d.ts +93 -0
  157. package/iam/tags.js +50 -0
  158. package/iam/tags.js.map +1 -0
  159. package/iam/user.d.ts +24 -4
  160. package/iam/user.js +9 -1
  161. package/iam/user.js.map +1 -1
  162. package/iam/userGroup.d.ts +3 -3
  163. package/iam/userGroup.js +3 -3
  164. package/iam/userGroupAttachment.d.ts +3 -13
  165. package/iam/userGroupAttachment.js +3 -13
  166. package/iam/userGroupAttachment.js.map +1 -1
  167. package/iam/userGroupAttachments.d.ts +77 -0
  168. package/iam/userGroupAttachments.js +49 -0
  169. package/iam/userGroupAttachments.js.map +1 -0
  170. package/iam/userGroupPolicyAttachment.d.ts +3 -13
  171. package/iam/userGroupPolicyAttachment.js +3 -13
  172. package/iam/userGroupPolicyAttachment.js.map +1 -1
  173. package/iam/userGroupPolicyAttachments.d.ts +4 -36
  174. package/iam/userGroupPolicyAttachments.js +4 -36
  175. package/iam/userGroupPolicyAttachments.js.map +1 -1
  176. package/iam/userGroups.d.ts +6 -18
  177. package/iam/userGroups.js +4 -16
  178. package/iam/userGroups.js.map +1 -1
  179. package/iam/userPolicyAttachment.d.ts +3 -12
  180. package/iam/userPolicyAttachment.js +3 -12
  181. package/iam/userPolicyAttachment.js.map +1 -1
  182. package/iam/userPolicyAttachments.d.ts +64 -0
  183. package/iam/userPolicyAttachments.js +48 -0
  184. package/iam/userPolicyAttachments.js.map +1 -0
  185. package/iam/users.d.ts +9 -30
  186. package/iam/users.js +5 -18
  187. package/iam/users.js.map +1 -1
  188. package/kms/asymmetricCiphertext.d.ts +129 -0
  189. package/kms/asymmetricCiphertext.js +90 -0
  190. package/kms/asymmetricCiphertext.js.map +1 -0
  191. package/kms/asymmetricCiphertexts.d.ts +129 -0
  192. package/kms/asymmetricCiphertexts.js +69 -0
  193. package/kms/asymmetricCiphertexts.js.map +1 -0
  194. package/kms/asymmetricPlaintexts.d.ts +129 -0
  195. package/kms/asymmetricPlaintexts.js +69 -0
  196. package/kms/asymmetricPlaintexts.js.map +1 -0
  197. package/kms/asymmetricSignature.d.ts +142 -0
  198. package/kms/asymmetricSignature.js +93 -0
  199. package/kms/asymmetricSignature.js.map +1 -0
  200. package/kms/asymmetricSignatures.d.ts +140 -0
  201. package/kms/asymmetricSignatures.js +72 -0
  202. package/kms/asymmetricSignatures.js.map +1 -0
  203. package/kms/asymmetricVerifications.d.ts +139 -0
  204. package/kms/asymmetricVerifications.js +63 -0
  205. package/kms/asymmetricVerifications.js.map +1 -0
  206. package/kms/cancelKeyDeletion.d.ts +105 -0
  207. package/kms/cancelKeyDeletion.js +80 -0
  208. package/kms/cancelKeyDeletion.js.map +1 -0
  209. package/kms/cancelSecretDeletion.d.ts +75 -0
  210. package/kms/cancelSecretDeletion.js +73 -0
  211. package/kms/cancelSecretDeletion.js.map +1 -0
  212. package/kms/ciphertext.d.ts +122 -0
  213. package/kms/ciphertext.js +80 -0
  214. package/kms/ciphertext.js.map +1 -0
  215. package/kms/ciphertexts.d.ts +115 -0
  216. package/kms/ciphertexts.js +55 -0
  217. package/kms/ciphertexts.js.map +1 -0
  218. package/kms/dataKeys.d.ts +121 -0
  219. package/kms/dataKeys.js +62 -0
  220. package/kms/dataKeys.js.map +1 -0
  221. package/kms/getAsymmetricCiphertexts.d.ts +127 -0
  222. package/kms/getAsymmetricCiphertexts.js +66 -0
  223. package/kms/getAsymmetricCiphertexts.js.map +1 -0
  224. package/kms/getAsymmetricPlaintexts.d.ts +127 -0
  225. package/kms/getAsymmetricPlaintexts.js +66 -0
  226. package/kms/getAsymmetricPlaintexts.js.map +1 -0
  227. package/kms/getAsymmetricSignatures.d.ts +138 -0
  228. package/kms/getAsymmetricSignatures.js +69 -0
  229. package/kms/getAsymmetricSignatures.js.map +1 -0
  230. package/kms/getAsymmetricVerifications.d.ts +137 -0
  231. package/kms/getAsymmetricVerifications.js +60 -0
  232. package/kms/getAsymmetricVerifications.js.map +1 -0
  233. package/kms/getCiphertexts.d.ts +113 -0
  234. package/kms/getCiphertexts.js +52 -0
  235. package/kms/getCiphertexts.js.map +1 -0
  236. package/kms/getDataKeys.d.ts +119 -0
  237. package/kms/getDataKeys.js +59 -0
  238. package/kms/getDataKeys.js.map +1 -0
  239. package/kms/getKeyMaterials.d.ts +120 -0
  240. package/kms/getKeyMaterials.js +57 -0
  241. package/kms/getKeyMaterials.js.map +1 -0
  242. package/kms/getKeys.d.ts +10 -10
  243. package/kms/getMacVerifications.d.ts +139 -0
  244. package/kms/getMacVerifications.js +67 -0
  245. package/kms/getMacVerifications.js.map +1 -0
  246. package/kms/getMacs.d.ts +130 -0
  247. package/kms/getMacs.js +66 -0
  248. package/kms/getMacs.js.map +1 -0
  249. package/kms/getPlaintexts.d.ts +94 -0
  250. package/kms/getPlaintexts.js +57 -0
  251. package/kms/getPlaintexts.js.map +1 -0
  252. package/kms/getPublicKeys.d.ts +98 -0
  253. package/kms/getPublicKeys.js +51 -0
  254. package/kms/getPublicKeys.js.map +1 -0
  255. package/kms/getReEncrypts.d.ts +132 -0
  256. package/kms/getReEncrypts.js +63 -0
  257. package/kms/getReEncrypts.js.map +1 -0
  258. package/kms/getRegions.d.ts +62 -0
  259. package/kms/getRegions.js +42 -0
  260. package/kms/getRegions.js.map +1 -0
  261. package/kms/getSecretVersions.d.ts +75 -0
  262. package/kms/getSecretVersions.js +46 -0
  263. package/kms/getSecretVersions.js.map +1 -0
  264. package/kms/getSecrets.d.ts +12 -0
  265. package/kms/getSecrets.js +1 -0
  266. package/kms/getSecrets.js.map +1 -1
  267. package/kms/index.d.ts +120 -0
  268. package/kms/index.js +146 -1
  269. package/kms/index.js.map +1 -1
  270. package/kms/key.d.ts +98 -24
  271. package/kms/key.js +44 -0
  272. package/kms/key.js.map +1 -1
  273. package/kms/keyArchive.d.ts +6 -6
  274. package/kms/keyEnable.d.ts +6 -6
  275. package/kms/keyMaterial.d.ts +141 -0
  276. package/kms/keyMaterial.js +88 -0
  277. package/kms/keyMaterial.js.map +1 -0
  278. package/kms/keyMaterials.d.ts +122 -0
  279. package/kms/keyMaterials.js +60 -0
  280. package/kms/keyMaterials.js.map +1 -0
  281. package/kms/keyPrimaryRegion.d.ts +113 -0
  282. package/kms/keyPrimaryRegion.js +87 -0
  283. package/kms/keyPrimaryRegion.js.map +1 -0
  284. package/kms/keyRotation.d.ts +22 -7
  285. package/kms/keyRotation.js +6 -1
  286. package/kms/keyRotation.js.map +1 -1
  287. package/kms/keyring.d.ts +3 -3
  288. package/kms/keys.d.ts +10 -10
  289. package/kms/macVerifications.d.ts +141 -0
  290. package/kms/macVerifications.js +70 -0
  291. package/kms/macVerifications.js.map +1 -0
  292. package/kms/macs.d.ts +132 -0
  293. package/kms/macs.js +69 -0
  294. package/kms/macs.js.map +1 -0
  295. package/kms/plaintexts.d.ts +96 -0
  296. package/kms/plaintexts.js +60 -0
  297. package/kms/plaintexts.js.map +1 -0
  298. package/kms/publicKeys.d.ts +100 -0
  299. package/kms/publicKeys.js +54 -0
  300. package/kms/publicKeys.js.map +1 -0
  301. package/kms/reEncrypt.d.ts +138 -0
  302. package/kms/reEncrypt.js +86 -0
  303. package/kms/reEncrypt.js.map +1 -0
  304. package/kms/reEncrypts.d.ts +134 -0
  305. package/kms/reEncrypts.js +66 -0
  306. package/kms/reEncrypts.js.map +1 -0
  307. package/kms/regions.d.ts +64 -0
  308. package/kms/regions.js +45 -0
  309. package/kms/regions.js.map +1 -0
  310. package/kms/replicateKey.d.ts +144 -0
  311. package/kms/replicateKey.js +90 -0
  312. package/kms/replicateKey.js.map +1 -0
  313. package/kms/secret.d.ts +70 -12
  314. package/kms/secret.js +22 -0
  315. package/kms/secret.js.map +1 -1
  316. package/kms/secretBackup.d.ts +91 -0
  317. package/kms/secretBackup.js +77 -0
  318. package/kms/secretBackup.js.map +1 -0
  319. package/kms/secretRestore.d.ts +92 -0
  320. package/kms/secretRestore.js +82 -0
  321. package/kms/secretRestore.js.map +1 -0
  322. package/kms/secretRotate.d.ts +82 -0
  323. package/kms/secretRotate.js +76 -0
  324. package/kms/secretRotate.js.map +1 -0
  325. package/kms/secretVersions.d.ts +77 -0
  326. package/kms/secretVersions.js +49 -0
  327. package/kms/secretVersions.js.map +1 -0
  328. package/kms/secrets.d.ts +12 -0
  329. package/kms/secrets.js +1 -0
  330. package/kms/secrets.js.map +1 -1
  331. package/package.json +1 -1
  332. package/tls/checkPoints.d.ts +109 -0
  333. package/tls/checkPoints.js +58 -0
  334. package/tls/checkPoints.js.map +1 -0
  335. package/tls/describeTraces.d.ts +4 -4
  336. package/tls/describeTraces.js +4 -4
  337. package/tls/downloadTask.d.ts +13 -9
  338. package/tls/downloadTask.js +13 -9
  339. package/tls/downloadTask.js.map +1 -1
  340. package/tls/downloadTasks.d.ts +4 -6
  341. package/tls/downloadTasks.js +4 -6
  342. package/tls/downloadTasks.js.map +1 -1
  343. package/tls/downloadUrls.d.ts +2 -2
  344. package/tls/downloadUrls.js +2 -2
  345. package/tls/etlTask.d.ts +1 -1
  346. package/tls/etlTask.js +1 -1
  347. package/tls/getCheckPoints.d.ts +107 -0
  348. package/tls/getCheckPoints.js +55 -0
  349. package/tls/getCheckPoints.js.map +1 -0
  350. package/tls/getDescribeTraces.d.ts +4 -4
  351. package/tls/getDescribeTraces.js +4 -4
  352. package/tls/getDownloadTasks.d.ts +4 -6
  353. package/tls/getDownloadTasks.js +4 -6
  354. package/tls/getDownloadTasks.js.map +1 -1
  355. package/tls/getDownloadUrls.d.ts +2 -2
  356. package/tls/getDownloadUrls.js +2 -2
  357. package/tls/getHostGroupRules.d.ts +2 -2
  358. package/tls/getHostGroupRules.js +2 -2
  359. package/tls/getIndexes.d.ts +14 -11
  360. package/tls/getIndexes.js +3 -3
  361. package/tls/getIndexes.js.map +1 -1
  362. package/tls/getLogCursors.d.ts +102 -0
  363. package/tls/getLogCursors.js +52 -0
  364. package/tls/getLogCursors.js.map +1 -0
  365. package/tls/getRuleBoundHostGroups.d.ts +2 -2
  366. package/tls/getRuleBoundHostGroups.js +2 -2
  367. package/tls/getRules.d.ts +8 -8
  368. package/tls/getRules.js +8 -8
  369. package/tls/getSearchTraces.d.ts +10 -4
  370. package/tls/getSearchTraces.js +10 -4
  371. package/tls/getSearchTraces.js.map +1 -1
  372. package/tls/getTags.d.ts +2 -2
  373. package/tls/getTags.js +2 -2
  374. package/tls/hostGroup.d.ts +2 -2
  375. package/tls/hostGroup.js +2 -2
  376. package/tls/hostGroupRules.d.ts +2 -2
  377. package/tls/hostGroupRules.js +2 -2
  378. package/tls/index.d.ts +12 -0
  379. package/tls/index.js +16 -3
  380. package/tls/index.js.map +1 -1
  381. package/tls/index_.d.ts +11 -7
  382. package/tls/index_.js +11 -7
  383. package/tls/index_.js.map +1 -1
  384. package/tls/indexes.d.ts +14 -11
  385. package/tls/indexes.js +3 -3
  386. package/tls/indexes.js.map +1 -1
  387. package/tls/logCursors.d.ts +104 -0
  388. package/tls/logCursors.js +55 -0
  389. package/tls/logCursors.js.map +1 -0
  390. package/tls/project.d.ts +1 -1
  391. package/tls/project.js +1 -1
  392. package/tls/rule.d.ts +10 -10
  393. package/tls/rule.js +10 -10
  394. package/tls/ruleBoundHostGroups.d.ts +2 -2
  395. package/tls/ruleBoundHostGroups.js +2 -2
  396. package/tls/rules.d.ts +8 -8
  397. package/tls/rules.js +8 -8
  398. package/tls/searchTraces.d.ts +10 -4
  399. package/tls/searchTraces.js +10 -4
  400. package/tls/searchTraces.js.map +1 -1
  401. package/tls/shard.d.ts +2 -2
  402. package/tls/shard.js +2 -2
  403. package/tls/shipper.d.ts +1 -1
  404. package/tls/shipper.js +1 -1
  405. package/tls/tags.d.ts +2 -2
  406. package/tls/tags.js +2 -2
  407. package/tls/traceInstance.d.ts +1 -1
  408. package/tls/traceInstance.js +1 -1
  409. package/types/input.d.ts +89 -1
  410. package/types/output.d.ts +2015 -207
@@ -0,0 +1,87 @@
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.KeyPrimaryRegion = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage kms key primary region
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const primary = new volcengine.kms.KeyPrimaryRegion("primary", {
17
+ * keyName: "mrk-Tf-test",
18
+ * keyringName: "test",
19
+ * primaryRegion: "cn-shanghai",
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * KmsKeyPrimaryRegion can be imported using the id, e.g.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import volcengine:kms/keyPrimaryRegion:KeyPrimaryRegion default key_id
29
+ * ```
30
+ *
31
+ * or
32
+ *
33
+ * ```sh
34
+ * $ pulumi import volcengine:kms/keyPrimaryRegion:KeyPrimaryRegion default key_name:keyring_name
35
+ * ```
36
+ */
37
+ class KeyPrimaryRegion extends pulumi.CustomResource {
38
+ /**
39
+ * Get an existing KeyPrimaryRegion resource's state with the given name, ID, and optional extra
40
+ * properties used to qualify the lookup.
41
+ *
42
+ * @param name The _unique_ name of the resulting resource.
43
+ * @param id The _unique_ provider ID of the resource to lookup.
44
+ * @param state Any extra arguments used during the lookup.
45
+ * @param opts Optional settings to control the behavior of the CustomResource.
46
+ */
47
+ static get(name, id, state, opts) {
48
+ return new KeyPrimaryRegion(name, state, Object.assign(Object.assign({}, opts), { id: id }));
49
+ }
50
+ /**
51
+ * Returns true if the given object is an instance of KeyPrimaryRegion. This is designed to work even
52
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
53
+ */
54
+ static isInstance(obj) {
55
+ if (obj === undefined || obj === null) {
56
+ return false;
57
+ }
58
+ return obj['__pulumiType'] === KeyPrimaryRegion.__pulumiType;
59
+ }
60
+ constructor(name, argsOrState, opts) {
61
+ let resourceInputs = {};
62
+ opts = opts || {};
63
+ if (opts.id) {
64
+ const state = argsOrState;
65
+ resourceInputs["keyId"] = state ? state.keyId : undefined;
66
+ resourceInputs["keyName"] = state ? state.keyName : undefined;
67
+ resourceInputs["keyringName"] = state ? state.keyringName : undefined;
68
+ resourceInputs["primaryRegion"] = state ? state.primaryRegion : undefined;
69
+ }
70
+ else {
71
+ const args = argsOrState;
72
+ if ((!args || args.primaryRegion === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'primaryRegion'");
74
+ }
75
+ resourceInputs["keyId"] = args ? args.keyId : undefined;
76
+ resourceInputs["keyName"] = args ? args.keyName : undefined;
77
+ resourceInputs["keyringName"] = args ? args.keyringName : undefined;
78
+ resourceInputs["primaryRegion"] = args ? args.primaryRegion : undefined;
79
+ }
80
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
81
+ super(KeyPrimaryRegion.__pulumiType, name, resourceInputs, opts);
82
+ }
83
+ }
84
+ exports.KeyPrimaryRegion = KeyPrimaryRegion;
85
+ /** @internal */
86
+ KeyPrimaryRegion.__pulumiType = 'volcengine:kms/keyPrimaryRegion:KeyPrimaryRegion';
87
+ //# sourceMappingURL=keyPrimaryRegion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyPrimaryRegion.js","sourceRoot":"","sources":["../../kms/keyPrimaryRegion.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE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,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA1EL,4CA2EC;AA7DG,gBAAgB;AACO,6BAAY,GAAG,kDAAkD,CAAC"}
@@ -7,7 +7,10 @@ import * as pulumi from "@pulumi/pulumi";
7
7
  * import * as pulumi from "@pulumi/pulumi";
8
8
  * import * as volcengine from "@volcengine/pulumi";
9
9
  *
10
- * const foo = new volcengine.kms.KeyRotation("foo", {keyId: "m_cn-guilin-boe_63c08fe9-42e8-4c10-a09e-8e8e6xxxxxx"});
10
+ * const foo = new volcengine.kms.KeyRotation("foo", {
11
+ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
12
+ * rotateInterval: 90,
13
+ * });
11
14
  * ```
12
15
  *
13
16
  * ## Import
@@ -41,17 +44,21 @@ export declare class KeyRotation extends pulumi.CustomResource {
41
44
  */
42
45
  static isInstance(obj: any): obj is KeyRotation;
43
46
  /**
44
- * The id of the CMK.
47
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
45
48
  */
46
49
  readonly keyId: pulumi.Output<string>;
47
50
  /**
48
- * The name of the CMK.
51
+ * The name of the key.
49
52
  */
50
53
  readonly keyName: pulumi.Output<string>;
51
54
  /**
52
55
  * The name of the keyring.
53
56
  */
54
57
  readonly keyringName: pulumi.Output<string | undefined>;
58
+ /**
59
+ * Key rotation period, unit: days; value range: [90, 2560].
60
+ */
61
+ readonly rotateInterval: pulumi.Output<number | undefined>;
55
62
  /**
56
63
  * The state of the key rotation.
57
64
  */
@@ -70,17 +77,21 @@ export declare class KeyRotation extends pulumi.CustomResource {
70
77
  */
71
78
  export interface KeyRotationState {
72
79
  /**
73
- * The id of the CMK.
80
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
74
81
  */
75
82
  keyId?: pulumi.Input<string>;
76
83
  /**
77
- * The name of the CMK.
84
+ * The name of the key.
78
85
  */
79
86
  keyName?: pulumi.Input<string>;
80
87
  /**
81
88
  * The name of the keyring.
82
89
  */
83
90
  keyringName?: pulumi.Input<string>;
91
+ /**
92
+ * Key rotation period, unit: days; value range: [90, 2560].
93
+ */
94
+ rotateInterval?: pulumi.Input<number>;
84
95
  /**
85
96
  * The state of the key rotation.
86
97
  */
@@ -91,15 +102,19 @@ export interface KeyRotationState {
91
102
  */
92
103
  export interface KeyRotationArgs {
93
104
  /**
94
- * The id of the CMK.
105
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
95
106
  */
96
107
  keyId?: pulumi.Input<string>;
97
108
  /**
98
- * The name of the CMK.
109
+ * The name of the key.
99
110
  */
100
111
  keyName?: pulumi.Input<string>;
101
112
  /**
102
113
  * The name of the keyring.
103
114
  */
104
115
  keyringName?: pulumi.Input<string>;
116
+ /**
117
+ * Key rotation period, unit: days; value range: [90, 2560].
118
+ */
119
+ rotateInterval?: pulumi.Input<number>;
105
120
  }
@@ -13,7 +13,10 @@ const utilities = require("../utilities");
13
13
  * import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as volcengine from "@volcengine/pulumi";
15
15
  *
16
- * const foo = new volcengine.kms.KeyRotation("foo", {keyId: "m_cn-guilin-boe_63c08fe9-42e8-4c10-a09e-8e8e6xxxxxx"});
16
+ * const foo = new volcengine.kms.KeyRotation("foo", {
17
+ * keyId: "c44870c3-f33b-421a-****-a2bba37c993e",
18
+ * rotateInterval: 90,
19
+ * });
17
20
  * ```
18
21
  *
19
22
  * ## Import
@@ -61,6 +64,7 @@ class KeyRotation extends pulumi.CustomResource {
61
64
  resourceInputs["keyId"] = state ? state.keyId : undefined;
62
65
  resourceInputs["keyName"] = state ? state.keyName : undefined;
63
66
  resourceInputs["keyringName"] = state ? state.keyringName : undefined;
67
+ resourceInputs["rotateInterval"] = state ? state.rotateInterval : undefined;
64
68
  resourceInputs["rotationState"] = state ? state.rotationState : undefined;
65
69
  }
66
70
  else {
@@ -68,6 +72,7 @@ class KeyRotation extends pulumi.CustomResource {
68
72
  resourceInputs["keyId"] = args ? args.keyId : undefined;
69
73
  resourceInputs["keyName"] = args ? args.keyName : undefined;
70
74
  resourceInputs["keyringName"] = args ? args.keyringName : undefined;
75
+ resourceInputs["rotateInterval"] = args ? args.rotateInterval : undefined;
71
76
  resourceInputs["rotationState"] = undefined /*out*/;
72
77
  }
73
78
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"keyRotation.js","sourceRoot":"","sources":["../../kms/keyRotation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC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AS,CAAC;SAC7E;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA7EL,kCA8EC;AAhEG,gBAAgB;AACO,wBAAY,GAAG,wCAAwC,CAAC"}
package/kms/keyring.d.ts CHANGED
@@ -47,7 +47,7 @@ export declare class Keyring extends pulumi.CustomResource {
47
47
  */
48
48
  readonly description: pulumi.Output<string>;
49
49
  /**
50
- * The name of the keyring.
50
+ * The name of the keyring. Note: the keyring can only be deleted after all keys in it have been removed.
51
51
  */
52
52
  readonly keyringName: pulumi.Output<string>;
53
53
  /**
@@ -92,7 +92,7 @@ export interface KeyringState {
92
92
  */
93
93
  description?: pulumi.Input<string>;
94
94
  /**
95
- * The name of the keyring.
95
+ * The name of the keyring. Note: the keyring can only be deleted after all keys in it have been removed.
96
96
  */
97
97
  keyringName?: pulumi.Input<string>;
98
98
  /**
@@ -125,7 +125,7 @@ export interface KeyringArgs {
125
125
  */
126
126
  description?: pulumi.Input<string>;
127
127
  /**
128
- * The name of the keyring.
128
+ * The name of the keyring. Note: the keyring can only be deleted after all keys in it have been removed.
129
129
  */
130
130
  keyringName: pulumi.Input<string>;
131
131
  /**
package/kms/keys.d.ts CHANGED
@@ -56,7 +56,7 @@ export interface KeysArgs {
56
56
  */
57
57
  keyNames?: string[];
58
58
  /**
59
- * The algorithm used in the key.
59
+ * The algorithm used in the key. Valid values: SYMMETRIC_256, SYMMETRIC_128, RSA_2048, RSA_3072, RSA_4096, EC_P256K, EC_P256, EC_P384, EC_P521, EC_SM2.
60
60
  */
61
61
  keySpecs?: string[];
62
62
  /**
@@ -64,7 +64,7 @@ export interface KeysArgs {
64
64
  */
65
65
  keyStates?: string[];
66
66
  /**
67
- * The usage of the key.
67
+ * The usage of the key. Valid values: ENCRYPT_DECRYPT, SIGN_VERIFY.
68
68
  */
69
69
  keyUsages?: string[];
70
70
  /**
@@ -80,7 +80,7 @@ export interface KeysArgs {
80
80
  */
81
81
  nameRegex?: string;
82
82
  /**
83
- * The origin of the key.
83
+ * The origin of the key. Valid values: CloudKMS, External.
84
84
  */
85
85
  origins?: string[];
86
86
  /**
@@ -88,11 +88,11 @@ export interface KeysArgs {
88
88
  */
89
89
  outputFile?: string;
90
90
  /**
91
- * The protection level of the key.
91
+ * The protection level of the key. Valid values: SOFTWARE, HSM.
92
92
  */
93
93
  protectionLevels?: string[];
94
94
  /**
95
- * The state of the rotate.
95
+ * The state of the rotate. Valid values: Enable, Disable.
96
96
  */
97
97
  rotateStates?: string[];
98
98
  /**
@@ -215,7 +215,7 @@ export interface KeysOutputArgs {
215
215
  */
216
216
  keyNames?: pulumi.Input<pulumi.Input<string>[]>;
217
217
  /**
218
- * The algorithm used in the key.
218
+ * The algorithm used in the key. Valid values: SYMMETRIC_256, SYMMETRIC_128, RSA_2048, RSA_3072, RSA_4096, EC_P256K, EC_P256, EC_P384, EC_P521, EC_SM2.
219
219
  */
220
220
  keySpecs?: pulumi.Input<pulumi.Input<string>[]>;
221
221
  /**
@@ -223,7 +223,7 @@ export interface KeysOutputArgs {
223
223
  */
224
224
  keyStates?: pulumi.Input<pulumi.Input<string>[]>;
225
225
  /**
226
- * The usage of the key.
226
+ * The usage of the key. Valid values: ENCRYPT_DECRYPT, SIGN_VERIFY.
227
227
  */
228
228
  keyUsages?: pulumi.Input<pulumi.Input<string>[]>;
229
229
  /**
@@ -239,7 +239,7 @@ export interface KeysOutputArgs {
239
239
  */
240
240
  nameRegex?: pulumi.Input<string>;
241
241
  /**
242
- * The origin of the key.
242
+ * The origin of the key. Valid values: CloudKMS, External.
243
243
  */
244
244
  origins?: pulumi.Input<pulumi.Input<string>[]>;
245
245
  /**
@@ -247,11 +247,11 @@ export interface KeysOutputArgs {
247
247
  */
248
248
  outputFile?: pulumi.Input<string>;
249
249
  /**
250
- * The protection level of the key.
250
+ * The protection level of the key. Valid values: SOFTWARE, HSM.
251
251
  */
252
252
  protectionLevels?: pulumi.Input<pulumi.Input<string>[]>;
253
253
  /**
254
- * The state of the rotate.
254
+ * The state of the rotate. Valid values: Enable, Disable.
255
255
  */
256
256
  rotateStates?: pulumi.Input<pulumi.Input<string>[]>;
257
257
  /**
@@ -0,0 +1,141 @@
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 mac verifications
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ *
11
+ * const mac = volcengine.kms.getMacs({
12
+ * keyId: "68093dd1-d1a9-44ce-832a****-5a88c4bc31ab",
13
+ * macAlgorithm: "HMAC_SHA_256",
14
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
15
+ * });
16
+ * const verify = volcengine.kms.getMacVerifications({
17
+ * keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
18
+ * mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
19
+ * macAlgorithm: "HMAC_SHA_256",
20
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
21
+ * });
22
+ * ```
23
+ */
24
+ /** @deprecated volcengine.kms.MacVerifications has been deprecated in favor of volcengine.kms.getMacVerifications */
25
+ export declare function macVerifications(args: MacVerificationsArgs, opts?: pulumi.InvokeOptions): Promise<MacVerificationsResult>;
26
+ /**
27
+ * A collection of arguments for invoking MacVerifications.
28
+ */
29
+ export interface MacVerificationsArgs {
30
+ /**
31
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
32
+ */
33
+ keyId?: string;
34
+ /**
35
+ * The name of the key.
36
+ */
37
+ keyName?: string;
38
+ /**
39
+ * The name of the keyring.
40
+ */
41
+ keyringName?: string;
42
+ /**
43
+ * The MAC to verify, Base64 encoded. Verify the Hash-based Message Authentication Code (HMAC), HMAC KMS key, and MAC algorithm for the specified message.
44
+ */
45
+ mac: string;
46
+ /**
47
+ * The MAC algorithm. Valid values: `HMAC_SM3`, `HMAC_SHA_256`.
48
+ */
49
+ macAlgorithm: string;
50
+ /**
51
+ * The message to verify, Base64 encoded.
52
+ */
53
+ message: string;
54
+ /**
55
+ * File name where to save data source results.
56
+ */
57
+ outputFile?: string;
58
+ }
59
+ /**
60
+ * A collection of values returned by MacVerifications.
61
+ */
62
+ export interface MacVerificationsResult {
63
+ /**
64
+ * The provider-assigned unique ID for this managed resource.
65
+ */
66
+ readonly id: string;
67
+ /**
68
+ * The key id.
69
+ */
70
+ readonly keyId?: string;
71
+ readonly keyName?: string;
72
+ readonly keyringName?: string;
73
+ readonly mac: string;
74
+ readonly macAlgorithm: string;
75
+ /**
76
+ * The MAC verification info.
77
+ */
78
+ readonly macVerificationInfos: outputs.kms.MacVerificationsMacVerificationInfo[];
79
+ readonly message: string;
80
+ readonly outputFile?: string;
81
+ /**
82
+ * The total count of query.
83
+ */
84
+ readonly totalCount: number;
85
+ }
86
+ /**
87
+ * Use this data source to query detailed information of kms mac verifications
88
+ * ## Example Usage
89
+ *
90
+ * ```typescript
91
+ * import * as pulumi from "@pulumi/pulumi";
92
+ * import * as volcengine from "@pulumi/volcengine";
93
+ *
94
+ * const mac = volcengine.kms.getMacs({
95
+ * keyId: "68093dd1-d1a9-44ce-832a****-5a88c4bc31ab",
96
+ * macAlgorithm: "HMAC_SHA_256",
97
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
98
+ * });
99
+ * const verify = volcengine.kms.getMacVerifications({
100
+ * keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
101
+ * mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
102
+ * macAlgorithm: "HMAC_SHA_256",
103
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
104
+ * });
105
+ * ```
106
+ */
107
+ /** @deprecated volcengine.kms.MacVerifications has been deprecated in favor of volcengine.kms.getMacVerifications */
108
+ export declare function macVerificationsOutput(args: MacVerificationsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<MacVerificationsResult>;
109
+ /**
110
+ * A collection of arguments for invoking MacVerifications.
111
+ */
112
+ export interface MacVerificationsOutputArgs {
113
+ /**
114
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
115
+ */
116
+ keyId?: pulumi.Input<string>;
117
+ /**
118
+ * The name of the key.
119
+ */
120
+ keyName?: pulumi.Input<string>;
121
+ /**
122
+ * The name of the keyring.
123
+ */
124
+ keyringName?: pulumi.Input<string>;
125
+ /**
126
+ * The MAC to verify, Base64 encoded. Verify the Hash-based Message Authentication Code (HMAC), HMAC KMS key, and MAC algorithm for the specified message.
127
+ */
128
+ mac: pulumi.Input<string>;
129
+ /**
130
+ * The MAC algorithm. Valid values: `HMAC_SM3`, `HMAC_SHA_256`.
131
+ */
132
+ macAlgorithm: pulumi.Input<string>;
133
+ /**
134
+ * The message to verify, Base64 encoded.
135
+ */
136
+ message: pulumi.Input<string>;
137
+ /**
138
+ * File name where to save data source results.
139
+ */
140
+ outputFile?: pulumi.Input<string>;
141
+ }
@@ -0,0 +1,70 @@
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.macVerificationsOutput = exports.macVerifications = 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 mac verifications
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@pulumi/volcengine";
15
+ *
16
+ * const mac = volcengine.kms.getMacs({
17
+ * keyId: "68093dd1-d1a9-44ce-832a****-5a88c4bc31ab",
18
+ * macAlgorithm: "HMAC_SHA_256",
19
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
20
+ * });
21
+ * const verify = volcengine.kms.getMacVerifications({
22
+ * keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
23
+ * mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
24
+ * macAlgorithm: "HMAC_SHA_256",
25
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
26
+ * });
27
+ * ```
28
+ */
29
+ /** @deprecated volcengine.kms.MacVerifications has been deprecated in favor of volcengine.kms.getMacVerifications */
30
+ function macVerifications(args, opts) {
31
+ pulumi.log.warn("macVerifications is deprecated: volcengine.kms.MacVerifications has been deprecated in favor of volcengine.kms.getMacVerifications");
32
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
33
+ return pulumi.runtime.invoke("volcengine:kms/macVerifications:MacVerifications", {
34
+ "keyId": args.keyId,
35
+ "keyName": args.keyName,
36
+ "keyringName": args.keyringName,
37
+ "mac": args.mac,
38
+ "macAlgorithm": args.macAlgorithm,
39
+ "message": args.message,
40
+ "outputFile": args.outputFile,
41
+ }, opts);
42
+ }
43
+ exports.macVerifications = macVerifications;
44
+ /**
45
+ * Use this data source to query detailed information of kms mac verifications
46
+ * ## Example Usage
47
+ *
48
+ * ```typescript
49
+ * import * as pulumi from "@pulumi/pulumi";
50
+ * import * as volcengine from "@pulumi/volcengine";
51
+ *
52
+ * const mac = volcengine.kms.getMacs({
53
+ * keyId: "68093dd1-d1a9-44ce-832a****-5a88c4bc31ab",
54
+ * macAlgorithm: "HMAC_SHA_256",
55
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
56
+ * });
57
+ * const verify = volcengine.kms.getMacVerifications({
58
+ * keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
59
+ * mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
60
+ * macAlgorithm: "HMAC_SHA_256",
61
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
62
+ * });
63
+ * ```
64
+ */
65
+ /** @deprecated volcengine.kms.MacVerifications has been deprecated in favor of volcengine.kms.getMacVerifications */
66
+ function macVerificationsOutput(args, opts) {
67
+ return pulumi.output(args).apply((a) => macVerifications(a, opts));
68
+ }
69
+ exports.macVerificationsOutput = macVerificationsOutput;
70
+ //# sourceMappingURL=macVerifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"macVerifications.js","sourceRoot":"","sources":["../../kms/macVerifications.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qHAAqH;AACrH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,oIAAoI,CAAC,CAAA;IAErJ,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,4CAaC;AA+DD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qHAAqH;AACrH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
package/kms/macs.d.ts ADDED
@@ -0,0 +1,132 @@
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 macs
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as volcengine from "@pulumi/volcengine";
10
+ *
11
+ * const mac = volcengine.kms.getMacs({
12
+ * keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
13
+ * macAlgorithm: "HMAC_SHA_256",
14
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
15
+ * });
16
+ * const verify = volcengine.kms.getMacVerifications({
17
+ * keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
18
+ * mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
19
+ * macAlgorithm: "HMAC_SHA_256",
20
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
21
+ * });
22
+ * ```
23
+ */
24
+ /** @deprecated volcengine.kms.Macs has been deprecated in favor of volcengine.kms.getMacs */
25
+ export declare function macs(args: MacsArgs, opts?: pulumi.InvokeOptions): Promise<MacsResult>;
26
+ /**
27
+ * A collection of arguments for invoking Macs.
28
+ */
29
+ export interface MacsArgs {
30
+ /**
31
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
32
+ */
33
+ keyId?: string;
34
+ /**
35
+ * The name of the key.
36
+ */
37
+ keyName?: string;
38
+ /**
39
+ * The name of the keyring.
40
+ */
41
+ keyringName?: string;
42
+ /**
43
+ * The MAC algorithm. Valid values: `HMAC_SM3`, `HMAC_SHA_256`.
44
+ */
45
+ macAlgorithm: string;
46
+ /**
47
+ * The message, Base64 encoded. Generate a Hash-based Message Authentication Code (HMAC) for a message using an HMAC KMS key and a MAC algorithm supported by the key.
48
+ */
49
+ message: string;
50
+ /**
51
+ * File name where to save data source results.
52
+ */
53
+ outputFile?: string;
54
+ }
55
+ /**
56
+ * A collection of values returned by Macs.
57
+ */
58
+ export interface MacsResult {
59
+ /**
60
+ * The provider-assigned unique ID for this managed resource.
61
+ */
62
+ readonly id: string;
63
+ /**
64
+ * The key id.
65
+ */
66
+ readonly keyId?: string;
67
+ readonly keyName?: string;
68
+ readonly keyringName?: string;
69
+ readonly macAlgorithm: string;
70
+ /**
71
+ * The MAC info.
72
+ */
73
+ readonly macInfos: outputs.kms.MacsMacInfo[];
74
+ readonly message: string;
75
+ readonly outputFile?: 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 macs
83
+ * ## Example Usage
84
+ *
85
+ * ```typescript
86
+ * import * as pulumi from "@pulumi/pulumi";
87
+ * import * as volcengine from "@pulumi/volcengine";
88
+ *
89
+ * const mac = volcengine.kms.getMacs({
90
+ * keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
91
+ * macAlgorithm: "HMAC_SHA_256",
92
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
93
+ * });
94
+ * const verify = volcengine.kms.getMacVerifications({
95
+ * keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
96
+ * mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
97
+ * macAlgorithm: "HMAC_SHA_256",
98
+ * message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
99
+ * });
100
+ * ```
101
+ */
102
+ /** @deprecated volcengine.kms.Macs has been deprecated in favor of volcengine.kms.getMacs */
103
+ export declare function macsOutput(args: MacsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<MacsResult>;
104
+ /**
105
+ * A collection of arguments for invoking Macs.
106
+ */
107
+ export interface MacsOutputArgs {
108
+ /**
109
+ * The id of the key. When keyId is not specified, both keyringName and keyName must be specified.
110
+ */
111
+ keyId?: pulumi.Input<string>;
112
+ /**
113
+ * The name of the key.
114
+ */
115
+ keyName?: pulumi.Input<string>;
116
+ /**
117
+ * The name of the keyring.
118
+ */
119
+ keyringName?: pulumi.Input<string>;
120
+ /**
121
+ * The MAC algorithm. Valid values: `HMAC_SM3`, `HMAC_SHA_256`.
122
+ */
123
+ macAlgorithm: pulumi.Input<string>;
124
+ /**
125
+ * The message, Base64 encoded. Generate a Hash-based Message Authentication Code (HMAC) for a message using an HMAC KMS key and a MAC algorithm supported by the key.
126
+ */
127
+ message: pulumi.Input<string>;
128
+ /**
129
+ * File name where to save data source results.
130
+ */
131
+ outputFile?: pulumi.Input<string>;
132
+ }