@sapslaj/pulumi-infisical 0.15.36

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 (346) hide show
  1. package/README.md +8 -0
  2. package/dist/accessApprovalPolicy.d.ts +137 -0
  3. package/dist/accessApprovalPolicy.d.ts.map +1 -0
  4. package/dist/accessApprovalPolicy.js +98 -0
  5. package/dist/accessApprovalPolicy.js.map +1 -0
  6. package/dist/appConnection1password.d.ts +97 -0
  7. package/dist/appConnection1password.d.ts.map +1 -0
  8. package/dist/appConnection1password.js +86 -0
  9. package/dist/appConnection1password.js.map +1 -0
  10. package/dist/appConnectionAws.d.ts +97 -0
  11. package/dist/appConnectionAws.d.ts.map +1 -0
  12. package/dist/appConnectionAws.js +86 -0
  13. package/dist/appConnectionAws.js.map +1 -0
  14. package/dist/appConnectionAzureClientSecrets.d.ts +97 -0
  15. package/dist/appConnectionAzureClientSecrets.d.ts.map +1 -0
  16. package/dist/appConnectionAzureClientSecrets.js +86 -0
  17. package/dist/appConnectionAzureClientSecrets.js.map +1 -0
  18. package/dist/appConnectionBitbucket.d.ts +97 -0
  19. package/dist/appConnectionBitbucket.d.ts.map +1 -0
  20. package/dist/appConnectionBitbucket.js +86 -0
  21. package/dist/appConnectionBitbucket.js.map +1 -0
  22. package/dist/appConnectionCloudflare.d.ts +97 -0
  23. package/dist/appConnectionCloudflare.d.ts.map +1 -0
  24. package/dist/appConnectionCloudflare.js +86 -0
  25. package/dist/appConnectionCloudflare.js.map +1 -0
  26. package/dist/appConnectionDatabricks.d.ts +97 -0
  27. package/dist/appConnectionDatabricks.d.ts.map +1 -0
  28. package/dist/appConnectionDatabricks.js +86 -0
  29. package/dist/appConnectionDatabricks.js.map +1 -0
  30. package/dist/appConnectionFlyio.d.ts +97 -0
  31. package/dist/appConnectionFlyio.d.ts.map +1 -0
  32. package/dist/appConnectionFlyio.js +86 -0
  33. package/dist/appConnectionFlyio.js.map +1 -0
  34. package/dist/appConnectionGcp.d.ts +97 -0
  35. package/dist/appConnectionGcp.d.ts.map +1 -0
  36. package/dist/appConnectionGcp.js +86 -0
  37. package/dist/appConnectionGcp.js.map +1 -0
  38. package/dist/appConnectionGitlab.d.ts +97 -0
  39. package/dist/appConnectionGitlab.d.ts.map +1 -0
  40. package/dist/appConnectionGitlab.js +86 -0
  41. package/dist/appConnectionGitlab.js.map +1 -0
  42. package/dist/appConnectionLdap.d.ts +97 -0
  43. package/dist/appConnectionLdap.d.ts.map +1 -0
  44. package/dist/appConnectionLdap.js +86 -0
  45. package/dist/appConnectionLdap.js.map +1 -0
  46. package/dist/appConnectionMssql.d.ts +97 -0
  47. package/dist/appConnectionMssql.d.ts.map +1 -0
  48. package/dist/appConnectionMssql.js +86 -0
  49. package/dist/appConnectionMssql.js.map +1 -0
  50. package/dist/appConnectionMysql.d.ts +97 -0
  51. package/dist/appConnectionMysql.d.ts.map +1 -0
  52. package/dist/appConnectionMysql.js +86 -0
  53. package/dist/appConnectionMysql.js.map +1 -0
  54. package/dist/appConnectionOracledb.d.ts +97 -0
  55. package/dist/appConnectionOracledb.d.ts.map +1 -0
  56. package/dist/appConnectionOracledb.js +86 -0
  57. package/dist/appConnectionOracledb.js.map +1 -0
  58. package/dist/appConnectionPostgres.d.ts +97 -0
  59. package/dist/appConnectionPostgres.d.ts.map +1 -0
  60. package/dist/appConnectionPostgres.js +86 -0
  61. package/dist/appConnectionPostgres.js.map +1 -0
  62. package/dist/appConnectionRender.d.ts +97 -0
  63. package/dist/appConnectionRender.d.ts.map +1 -0
  64. package/dist/appConnectionRender.js +86 -0
  65. package/dist/appConnectionRender.js.map +1 -0
  66. package/dist/appConnectionSupabase.d.ts +97 -0
  67. package/dist/appConnectionSupabase.d.ts.map +1 -0
  68. package/dist/appConnectionSupabase.js +86 -0
  69. package/dist/appConnectionSupabase.js.map +1 -0
  70. package/dist/config/index.d.ts +2 -0
  71. package/dist/config/index.d.ts.map +1 -0
  72. package/dist/config/index.js +21 -0
  73. package/dist/config/index.js.map +1 -0
  74. package/dist/config/vars.d.ts +22 -0
  75. package/dist/config/vars.d.ts.map +1 -0
  76. package/dist/config/vars.js +60 -0
  77. package/dist/config/vars.js.map +1 -0
  78. package/dist/dynamicSecretAwsIam.d.ts +149 -0
  79. package/dist/dynamicSecretAwsIam.d.ts.map +1 -0
  80. package/dist/dynamicSecretAwsIam.js +103 -0
  81. package/dist/dynamicSecretAwsIam.js.map +1 -0
  82. package/dist/dynamicSecretKubernetes.d.ts +149 -0
  83. package/dist/dynamicSecretKubernetes.d.ts.map +1 -0
  84. package/dist/dynamicSecretKubernetes.js +103 -0
  85. package/dist/dynamicSecretKubernetes.js.map +1 -0
  86. package/dist/dynamicSecretMongoAtlas.d.ts +149 -0
  87. package/dist/dynamicSecretMongoAtlas.d.ts.map +1 -0
  88. package/dist/dynamicSecretMongoAtlas.js +103 -0
  89. package/dist/dynamicSecretMongoAtlas.js.map +1 -0
  90. package/dist/dynamicSecretMongoDb.d.ts +149 -0
  91. package/dist/dynamicSecretMongoDb.d.ts.map +1 -0
  92. package/dist/dynamicSecretMongoDb.js +103 -0
  93. package/dist/dynamicSecretMongoDb.js.map +1 -0
  94. package/dist/dynamicSecretSqlDatabase.d.ts +149 -0
  95. package/dist/dynamicSecretSqlDatabase.d.ts.map +1 -0
  96. package/dist/dynamicSecretSqlDatabase.js +103 -0
  97. package/dist/dynamicSecretSqlDatabase.js.map +1 -0
  98. package/dist/getGroups.d.ts +15 -0
  99. package/dist/getGroups.d.ts.map +1 -0
  100. package/dist/getGroups.js +41 -0
  101. package/dist/getGroups.js.map +1 -0
  102. package/dist/getIdentityDetails.d.ts +15 -0
  103. package/dist/getIdentityDetails.d.ts.map +1 -0
  104. package/dist/getIdentityDetails.js +41 -0
  105. package/dist/getIdentityDetails.js.map +1 -0
  106. package/dist/getProjects.d.ts +34 -0
  107. package/dist/getProjects.d.ts.map +1 -0
  108. package/dist/getProjects.js +45 -0
  109. package/dist/getProjects.js.map +1 -0
  110. package/dist/getSecretFolders.d.ts +34 -0
  111. package/dist/getSecretFolders.d.ts.map +1 -0
  112. package/dist/getSecretFolders.js +49 -0
  113. package/dist/getSecretFolders.js.map +1 -0
  114. package/dist/getSecretTag.d.ts +28 -0
  115. package/dist/getSecretTag.d.ts.map +1 -0
  116. package/dist/getSecretTag.js +47 -0
  117. package/dist/getSecretTag.js.map +1 -0
  118. package/dist/getSecrets.d.ts +36 -0
  119. package/dist/getSecrets.d.ts.map +1 -0
  120. package/dist/getSecrets.js +49 -0
  121. package/dist/getSecrets.js.map +1 -0
  122. package/dist/group.d.ts +75 -0
  123. package/dist/group.d.ts.map +1 -0
  124. package/dist/group.js +82 -0
  125. package/dist/group.js.map +1 -0
  126. package/dist/identity.d.ts +109 -0
  127. package/dist/identity.d.ts.map +1 -0
  128. package/dist/identity.js +88 -0
  129. package/dist/identity.js.map +1 -0
  130. package/dist/identityAwsAuth.d.ts +137 -0
  131. package/dist/identityAwsAuth.d.ts.map +1 -0
  132. package/dist/identityAwsAuth.js +89 -0
  133. package/dist/identityAwsAuth.js.map +1 -0
  134. package/dist/identityAzureAuth.d.ts +137 -0
  135. package/dist/identityAzureAuth.d.ts.map +1 -0
  136. package/dist/identityAzureAuth.js +92 -0
  137. package/dist/identityAzureAuth.js.map +1 -0
  138. package/dist/identityGcpAuth.d.ts +149 -0
  139. package/dist/identityGcpAuth.d.ts.map +1 -0
  140. package/dist/identityGcpAuth.js +91 -0
  141. package/dist/identityGcpAuth.js.map +1 -0
  142. package/dist/identityKubernetesAuth.d.ts +173 -0
  143. package/dist/identityKubernetesAuth.d.ts.map +1 -0
  144. package/dist/identityKubernetesAuth.js +101 -0
  145. package/dist/identityKubernetesAuth.js.map +1 -0
  146. package/dist/identityOidcAuth.d.ts +197 -0
  147. package/dist/identityOidcAuth.d.ts.map +1 -0
  148. package/dist/identityOidcAuth.js +103 -0
  149. package/dist/identityOidcAuth.js.map +1 -0
  150. package/dist/identityUniversalAuth.d.ts +113 -0
  151. package/dist/identityUniversalAuth.d.ts.map +1 -0
  152. package/dist/identityUniversalAuth.js +85 -0
  153. package/dist/identityUniversalAuth.js.map +1 -0
  154. package/dist/identityUniversalAuthClientSecret.d.ts +127 -0
  155. package/dist/identityUniversalAuthClientSecret.d.ts.map +1 -0
  156. package/dist/identityUniversalAuthClientSecret.js +93 -0
  157. package/dist/identityUniversalAuthClientSecret.js.map +1 -0
  158. package/dist/index.d.ts +239 -0
  159. package/dist/index.d.ts.map +1 -0
  160. package/dist/index.js +438 -0
  161. package/dist/index.js.map +1 -0
  162. package/dist/integrationAwsParameterStore.d.ts +165 -0
  163. package/dist/integrationAwsParameterStore.d.ts.map +1 -0
  164. package/dist/integrationAwsParameterStore.js +109 -0
  165. package/dist/integrationAwsParameterStore.js.map +1 -0
  166. package/dist/integrationAwsSecretsManager.d.ts +177 -0
  167. package/dist/integrationAwsSecretsManager.d.ts.map +1 -0
  168. package/dist/integrationAwsSecretsManager.js +108 -0
  169. package/dist/integrationAwsSecretsManager.js.map +1 -0
  170. package/dist/integrationCircleci.d.ts +127 -0
  171. package/dist/integrationCircleci.d.ts.map +1 -0
  172. package/dist/integrationCircleci.js +106 -0
  173. package/dist/integrationCircleci.js.map +1 -0
  174. package/dist/integrationDatabricks.d.ts +127 -0
  175. package/dist/integrationDatabricks.d.ts.map +1 -0
  176. package/dist/integrationDatabricks.js +106 -0
  177. package/dist/integrationDatabricks.js.map +1 -0
  178. package/dist/integrationGcpSecretManager.d.ts +129 -0
  179. package/dist/integrationGcpSecretManager.d.ts.map +1 -0
  180. package/dist/integrationGcpSecretManager.js +103 -0
  181. package/dist/integrationGcpSecretManager.js.map +1 -0
  182. package/dist/project.d.ts +137 -0
  183. package/dist/project.d.ts.map +1 -0
  184. package/dist/project.js +91 -0
  185. package/dist/project.js.map +1 -0
  186. package/dist/projectEnvironment.d.ts +87 -0
  187. package/dist/projectEnvironment.d.ts.map +1 -0
  188. package/dist/projectEnvironment.js +84 -0
  189. package/dist/projectEnvironment.js.map +1 -0
  190. package/dist/projectGroup.d.ts +97 -0
  191. package/dist/projectGroup.d.ts.map +1 -0
  192. package/dist/projectGroup.js +86 -0
  193. package/dist/projectGroup.js.map +1 -0
  194. package/dist/projectIdentity.d.ts +93 -0
  195. package/dist/projectIdentity.d.ts.map +1 -0
  196. package/dist/projectIdentity.js +89 -0
  197. package/dist/projectIdentity.js.map +1 -0
  198. package/dist/projectIdentitySpecificPrivilege.d.ts +161 -0
  199. package/dist/projectIdentitySpecificPrivilege.d.ts.map +1 -0
  200. package/dist/projectIdentitySpecificPrivilege.js +96 -0
  201. package/dist/projectIdentitySpecificPrivilege.js.map +1 -0
  202. package/dist/projectRole.d.ts +113 -0
  203. package/dist/projectRole.d.ts.map +1 -0
  204. package/dist/projectRole.js +88 -0
  205. package/dist/projectRole.js.map +1 -0
  206. package/dist/projectTemplate.d.ts +101 -0
  207. package/dist/projectTemplate.d.ts.map +1 -0
  208. package/dist/projectTemplate.js +83 -0
  209. package/dist/projectTemplate.js.map +1 -0
  210. package/dist/projectUser.d.ts +93 -0
  211. package/dist/projectUser.d.ts.map +1 -0
  212. package/dist/projectUser.js +89 -0
  213. package/dist/projectUser.js.map +1 -0
  214. package/dist/provider.d.ts +83 -0
  215. package/dist/provider.d.ts.map +1 -0
  216. package/dist/provider.js +83 -0
  217. package/dist/provider.js.map +1 -0
  218. package/dist/secret.d.ts +118 -0
  219. package/dist/secret.d.ts.map +1 -0
  220. package/dist/secret.js +97 -0
  221. package/dist/secret.js.map +1 -0
  222. package/dist/secretApprovalPolicy.d.ts +149 -0
  223. package/dist/secretApprovalPolicy.d.ts.map +1 -0
  224. package/dist/secretApprovalPolicy.js +100 -0
  225. package/dist/secretApprovalPolicy.js.map +1 -0
  226. package/dist/secretFolder.d.ts +103 -0
  227. package/dist/secretFolder.d.ts.map +1 -0
  228. package/dist/secretFolder.js +91 -0
  229. package/dist/secretFolder.js.map +1 -0
  230. package/dist/secretImport.d.ts +111 -0
  231. package/dist/secretImport.d.ts.map +1 -0
  232. package/dist/secretImport.js +100 -0
  233. package/dist/secretImport.js.map +1 -0
  234. package/dist/secretRotationAwsIamUserSecret.d.ts +185 -0
  235. package/dist/secretRotationAwsIamUserSecret.d.ts.map +1 -0
  236. package/dist/secretRotationAwsIamUserSecret.js +112 -0
  237. package/dist/secretRotationAwsIamUserSecret.js.map +1 -0
  238. package/dist/secretRotationAzureClientSecret.d.ts +185 -0
  239. package/dist/secretRotationAzureClientSecret.d.ts.map +1 -0
  240. package/dist/secretRotationAzureClientSecret.js +112 -0
  241. package/dist/secretRotationAzureClientSecret.js.map +1 -0
  242. package/dist/secretRotationLdapPassword.d.ts +185 -0
  243. package/dist/secretRotationLdapPassword.d.ts.map +1 -0
  244. package/dist/secretRotationLdapPassword.js +112 -0
  245. package/dist/secretRotationLdapPassword.js.map +1 -0
  246. package/dist/secretRotationMssqlCredentials.d.ts +185 -0
  247. package/dist/secretRotationMssqlCredentials.d.ts.map +1 -0
  248. package/dist/secretRotationMssqlCredentials.js +112 -0
  249. package/dist/secretRotationMssqlCredentials.js.map +1 -0
  250. package/dist/secretRotationMysqlCredentials.d.ts +185 -0
  251. package/dist/secretRotationMysqlCredentials.d.ts.map +1 -0
  252. package/dist/secretRotationMysqlCredentials.js +112 -0
  253. package/dist/secretRotationMysqlCredentials.js.map +1 -0
  254. package/dist/secretRotationOracledbCredentials.d.ts +185 -0
  255. package/dist/secretRotationOracledbCredentials.d.ts.map +1 -0
  256. package/dist/secretRotationOracledbCredentials.js +112 -0
  257. package/dist/secretRotationOracledbCredentials.js.map +1 -0
  258. package/dist/secretRotationPostgresCredentials.d.ts +185 -0
  259. package/dist/secretRotationPostgresCredentials.d.ts.map +1 -0
  260. package/dist/secretRotationPostgresCredentials.js +112 -0
  261. package/dist/secretRotationPostgresCredentials.js.map +1 -0
  262. package/dist/secretSync1password.d.ts +149 -0
  263. package/dist/secretSync1password.d.ts.map +1 -0
  264. package/dist/secretSync1password.js +106 -0
  265. package/dist/secretSync1password.js.map +1 -0
  266. package/dist/secretSyncAwsParameterStore.d.ts +149 -0
  267. package/dist/secretSyncAwsParameterStore.d.ts.map +1 -0
  268. package/dist/secretSyncAwsParameterStore.js +106 -0
  269. package/dist/secretSyncAwsParameterStore.js.map +1 -0
  270. package/dist/secretSyncAwsSecretsManager.d.ts +149 -0
  271. package/dist/secretSyncAwsSecretsManager.d.ts.map +1 -0
  272. package/dist/secretSyncAwsSecretsManager.js +106 -0
  273. package/dist/secretSyncAwsSecretsManager.js.map +1 -0
  274. package/dist/secretSyncAzureAppConfiguration.d.ts +149 -0
  275. package/dist/secretSyncAzureAppConfiguration.d.ts.map +1 -0
  276. package/dist/secretSyncAzureAppConfiguration.js +106 -0
  277. package/dist/secretSyncAzureAppConfiguration.js.map +1 -0
  278. package/dist/secretSyncAzureDevops.d.ts +149 -0
  279. package/dist/secretSyncAzureDevops.d.ts.map +1 -0
  280. package/dist/secretSyncAzureDevops.js +106 -0
  281. package/dist/secretSyncAzureDevops.js.map +1 -0
  282. package/dist/secretSyncAzureKeyVault.d.ts +149 -0
  283. package/dist/secretSyncAzureKeyVault.d.ts.map +1 -0
  284. package/dist/secretSyncAzureKeyVault.js +106 -0
  285. package/dist/secretSyncAzureKeyVault.js.map +1 -0
  286. package/dist/secretSyncBitbucket.d.ts +149 -0
  287. package/dist/secretSyncBitbucket.d.ts.map +1 -0
  288. package/dist/secretSyncBitbucket.js +106 -0
  289. package/dist/secretSyncBitbucket.js.map +1 -0
  290. package/dist/secretSyncCloudflarePages.d.ts +149 -0
  291. package/dist/secretSyncCloudflarePages.d.ts.map +1 -0
  292. package/dist/secretSyncCloudflarePages.js +106 -0
  293. package/dist/secretSyncCloudflarePages.js.map +1 -0
  294. package/dist/secretSyncCloudflareWorkers.d.ts +149 -0
  295. package/dist/secretSyncCloudflareWorkers.d.ts.map +1 -0
  296. package/dist/secretSyncCloudflareWorkers.js +106 -0
  297. package/dist/secretSyncCloudflareWorkers.js.map +1 -0
  298. package/dist/secretSyncDatabricks.d.ts +149 -0
  299. package/dist/secretSyncDatabricks.d.ts.map +1 -0
  300. package/dist/secretSyncDatabricks.js +106 -0
  301. package/dist/secretSyncDatabricks.js.map +1 -0
  302. package/dist/secretSyncFlyio.d.ts +149 -0
  303. package/dist/secretSyncFlyio.d.ts.map +1 -0
  304. package/dist/secretSyncFlyio.js +106 -0
  305. package/dist/secretSyncFlyio.js.map +1 -0
  306. package/dist/secretSyncGcpSecretManager.d.ts +149 -0
  307. package/dist/secretSyncGcpSecretManager.d.ts.map +1 -0
  308. package/dist/secretSyncGcpSecretManager.js +106 -0
  309. package/dist/secretSyncGcpSecretManager.js.map +1 -0
  310. package/dist/secretSyncGithub.d.ts +149 -0
  311. package/dist/secretSyncGithub.d.ts.map +1 -0
  312. package/dist/secretSyncGithub.js +106 -0
  313. package/dist/secretSyncGithub.js.map +1 -0
  314. package/dist/secretSyncGitlab.d.ts +149 -0
  315. package/dist/secretSyncGitlab.d.ts.map +1 -0
  316. package/dist/secretSyncGitlab.js +106 -0
  317. package/dist/secretSyncGitlab.js.map +1 -0
  318. package/dist/secretSyncRender.d.ts +149 -0
  319. package/dist/secretSyncRender.d.ts.map +1 -0
  320. package/dist/secretSyncRender.js +106 -0
  321. package/dist/secretSyncRender.js.map +1 -0
  322. package/dist/secretSyncSupabase.d.ts +149 -0
  323. package/dist/secretSyncSupabase.d.ts.map +1 -0
  324. package/dist/secretSyncSupabase.js +106 -0
  325. package/dist/secretSyncSupabase.js.map +1 -0
  326. package/dist/secretTag.d.ts +87 -0
  327. package/dist/secretTag.d.ts.map +1 -0
  328. package/dist/secretTag.js +87 -0
  329. package/dist/secretTag.js.map +1 -0
  330. package/dist/types/index.d.ts +4 -0
  331. package/dist/types/index.d.ts.map +1 -0
  332. package/dist/types/index.js +34 -0
  333. package/dist/types/index.js.map +1 -0
  334. package/dist/types/input.d.ts +1766 -0
  335. package/dist/types/input.d.ts.map +1 -0
  336. package/dist/types/input.js +5 -0
  337. package/dist/types/input.js.map +1 -0
  338. package/dist/types/output.d.ts +1839 -0
  339. package/dist/types/output.d.ts.map +1 -0
  340. package/dist/types/output.js +5 -0
  341. package/dist/types/output.js.map +1 -0
  342. package/dist/utilities.d.ts +15 -0
  343. package/dist/utilities.d.ts.map +1 -0
  344. package/dist/utilities.js +152 -0
  345. package/dist/utilities.js.map +1 -0
  346. package/package.json +27 -0
@@ -0,0 +1,83 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ /**
4
+ * The provider type for the infisical package. By default, resources use package-wide configuration
5
+ * settings, however an explicit `Provider` instance may be created and passed during resource
6
+ * construction to achieve fine-grained programmatic control over provider settings. See the
7
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
8
+ */
9
+ export declare class Provider extends pulumi.ProviderResource {
10
+ /** @internal */
11
+ static readonly __pulumiType = "infisical";
12
+ /**
13
+ * Returns true if the given object is an instance of Provider. This is designed to work even
14
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
15
+ */
16
+ static isInstance(obj: any): obj is Provider;
17
+ /**
18
+ * (DEPRECATED, Use the `auth` attribute), Machine identity client ID. Used to fetch/modify secrets for a given project.
19
+ */
20
+ readonly clientId: pulumi.Output<string | undefined>;
21
+ /**
22
+ * (DEPRECATED, use `auth` attribute), Machine identity client secret. Used to fetch/modify secrets for a given project
23
+ */
24
+ readonly clientSecret: pulumi.Output<string | undefined>;
25
+ /**
26
+ * Used to point the client to fetch secrets from your self hosted instance of Infisical. If not host is provided, https://app.infisical.com is the default host. This attribute can also be set using the `INFISICAL_HOST` environment variable
27
+ */
28
+ readonly host: pulumi.Output<string | undefined>;
29
+ /**
30
+ * (DEPRECATED, Use machine identity auth), Used to fetch/modify secrets for a given project
31
+ */
32
+ readonly serviceToken: pulumi.Output<string | undefined>;
33
+ /**
34
+ * Create a Provider resource with the given unique name, arguments, and options.
35
+ *
36
+ * @param name The _unique_ name of the resource.
37
+ * @param args The arguments to use to populate this resource's properties.
38
+ * @param opts A bag of options that control this resource's behavior.
39
+ */
40
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
41
+ /**
42
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
43
+ */
44
+ terraformConfig(): pulumi.Output<{
45
+ [key: string]: any;
46
+ }>;
47
+ }
48
+ /**
49
+ * The set of arguments for constructing a Provider resource.
50
+ */
51
+ export interface ProviderArgs {
52
+ /**
53
+ * The configuration values for authentication
54
+ */
55
+ auth?: pulumi.Input<inputs.ProviderAuth>;
56
+ /**
57
+ * (DEPRECATED, Use the `auth` attribute), Machine identity client ID. Used to fetch/modify secrets for a given project.
58
+ */
59
+ clientId?: pulumi.Input<string>;
60
+ /**
61
+ * (DEPRECATED, use `auth` attribute), Machine identity client secret. Used to fetch/modify secrets for a given project
62
+ */
63
+ clientSecret?: pulumi.Input<string>;
64
+ /**
65
+ * Used to point the client to fetch secrets from your self hosted instance of Infisical. If not host is provided, https://app.infisical.com is the default host. This attribute can also be set using the `INFISICAL_HOST` environment variable
66
+ */
67
+ host?: pulumi.Input<string>;
68
+ /**
69
+ * (DEPRECATED, Use machine identity auth), Used to fetch/modify secrets for a given project
70
+ */
71
+ serviceToken?: pulumi.Input<string>;
72
+ }
73
+ export declare namespace Provider {
74
+ /**
75
+ * The results of the Provider.terraformConfig method.
76
+ */
77
+ interface TerraformConfigResult {
78
+ readonly result: {
79
+ [key: string]: any;
80
+ };
81
+ }
82
+ }
83
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IACjD,gBAAgB;IAChB,gBAAuB,YAAY,eAAe;IAElD;;;OAGG;WACW,UAAU,CAA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CAAA;SAAC,CAAC;KACzC;CAEJ"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Provider = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * The provider type for the infisical package. By default, resources use package-wide configuration
33
+ * settings, however an explicit `Provider` instance may be created and passed during resource
34
+ * construction to achieve fine-grained programmatic control over provider settings. See the
35
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
36
+ */
37
+ class Provider extends pulumi.ProviderResource {
38
+ /**
39
+ * Returns true if the given object is an instance of Provider. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ static isInstance(obj) {
43
+ if (obj === undefined || obj === null) {
44
+ return false;
45
+ }
46
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
47
+ }
48
+ /**
49
+ * Create a Provider resource with the given unique name, arguments, and options.
50
+ *
51
+ * @param name The _unique_ name of the resource.
52
+ * @param args The arguments to use to populate this resource's properties.
53
+ * @param opts A bag of options that control this resource's behavior.
54
+ */
55
+ constructor(name, args, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ {
59
+ resourceInputs["auth"] = pulumi.output(args?.auth).apply(JSON.stringify);
60
+ resourceInputs["clientId"] = args?.clientId ? pulumi.secret(args.clientId) : undefined;
61
+ resourceInputs["clientSecret"] = args?.clientSecret ? pulumi.secret(args.clientSecret) : undefined;
62
+ resourceInputs["host"] = args?.host;
63
+ resourceInputs["serviceToken"] = args?.serviceToken ? pulumi.secret(args.serviceToken) : undefined;
64
+ }
65
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
66
+ const secretOpts = { additionalSecretOutputs: ["clientId", "clientSecret", "serviceToken"] };
67
+ opts = pulumi.mergeOptions(opts, secretOpts);
68
+ super(Provider.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
69
+ }
70
+ /**
71
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
72
+ */
73
+ terraformConfig() {
74
+ const result = pulumi.runtime.call("pulumi:providers:infisical/terraformConfig", {
75
+ "__self__": this,
76
+ }, this, utilities.getPackage());
77
+ return result.result;
78
+ }
79
+ }
80
+ exports.Provider = Provider;
81
+ /** @internal */
82
+ Provider.__pulumiType = 'infisical';
83
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CA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CAAC;QAC7F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;OAEG;IACH,eAAe;QACX,MAAM,MAAM,GAAkD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE;YAC5H,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;QACjC,OAAO,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;;AA/DL,4BAgEC;AA/DG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
@@ -0,0 +1,118 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ export declare class Secret extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing Secret resource's state with the given name, ID, and optional extra
7
+ * properties used to qualify the lookup.
8
+ *
9
+ * @param name The _unique_ name of the resulting resource.
10
+ * @param id The _unique_ provider ID of the resource to lookup.
11
+ * @param state Any extra arguments used during the lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecretState, opts?: pulumi.CustomResourceOptions): Secret;
15
+ /** @internal */
16
+ static readonly __pulumiType = "infisical:index/secret:Secret";
17
+ /**
18
+ * Returns true if the given object is an instance of Secret. This is designed to work even
19
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
20
+ */
21
+ static isInstance(obj: any): obj is Secret;
22
+ /**
23
+ * The environment slug of the secret to modify/create
24
+ */
25
+ readonly envSlug: pulumi.Output<string>;
26
+ /**
27
+ * The path to the folder where the given secret resides
28
+ */
29
+ readonly folderPath: pulumi.Output<string>;
30
+ readonly lastUpdated: pulumi.Output<string>;
31
+ /**
32
+ * The name of the secret
33
+ */
34
+ readonly name: pulumi.Output<string>;
35
+ readonly secretReminder: pulumi.Output<outputs.SecretSecretReminder | undefined>;
36
+ /**
37
+ * Tag ids to be attached for the secrets.
38
+ */
39
+ readonly tagIds: pulumi.Output<string[] | undefined>;
40
+ /**
41
+ * The value of the secret
42
+ */
43
+ readonly value: pulumi.Output<string>;
44
+ /**
45
+ * The Infisical project ID (Required for Machine Identity auth, and service tokens with multiple scopes)
46
+ */
47
+ readonly workspaceId: pulumi.Output<string>;
48
+ /**
49
+ * Create a Secret resource with the given unique name, arguments, and options.
50
+ *
51
+ * @param name The _unique_ name of the resource.
52
+ * @param args The arguments to use to populate this resource's properties.
53
+ * @param opts A bag of options that control this resource's behavior.
54
+ */
55
+ constructor(name: string, args: SecretArgs, opts?: pulumi.CustomResourceOptions);
56
+ }
57
+ /**
58
+ * Input properties used for looking up and filtering Secret resources.
59
+ */
60
+ export interface SecretState {
61
+ /**
62
+ * The environment slug of the secret to modify/create
63
+ */
64
+ envSlug?: pulumi.Input<string>;
65
+ /**
66
+ * The path to the folder where the given secret resides
67
+ */
68
+ folderPath?: pulumi.Input<string>;
69
+ lastUpdated?: pulumi.Input<string>;
70
+ /**
71
+ * The name of the secret
72
+ */
73
+ name?: pulumi.Input<string>;
74
+ secretReminder?: pulumi.Input<inputs.SecretSecretReminder>;
75
+ /**
76
+ * Tag ids to be attached for the secrets.
77
+ */
78
+ tagIds?: pulumi.Input<pulumi.Input<string>[]>;
79
+ /**
80
+ * The value of the secret
81
+ */
82
+ value?: pulumi.Input<string>;
83
+ /**
84
+ * The Infisical project ID (Required for Machine Identity auth, and service tokens with multiple scopes)
85
+ */
86
+ workspaceId?: pulumi.Input<string>;
87
+ }
88
+ /**
89
+ * The set of arguments for constructing a Secret resource.
90
+ */
91
+ export interface SecretArgs {
92
+ /**
93
+ * The environment slug of the secret to modify/create
94
+ */
95
+ envSlug: pulumi.Input<string>;
96
+ /**
97
+ * The path to the folder where the given secret resides
98
+ */
99
+ folderPath: pulumi.Input<string>;
100
+ /**
101
+ * The name of the secret
102
+ */
103
+ name?: pulumi.Input<string>;
104
+ secretReminder?: pulumi.Input<inputs.SecretSecretReminder>;
105
+ /**
106
+ * Tag ids to be attached for the secrets.
107
+ */
108
+ tagIds?: pulumi.Input<pulumi.Input<string>[]>;
109
+ /**
110
+ * The value of the secret
111
+ */
112
+ value: pulumi.Input<string>;
113
+ /**
114
+ * The Infisical project ID (Required for Machine Identity auth, and service tokens with multiple scopes)
115
+ */
116
+ workspaceId?: pulumi.Input<string>;
117
+ }
118
+ //# sourceMappingURL=secret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret.d.ts","sourceRoot":"","sources":["../src/secret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,qBAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,MAAM;IAI9H,gBAAgB;IAChB,gBAAuB,YAAY,mCAAmC;IAEtE;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM;IAOjD;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D,SAAgC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAA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CAAC,MAAM,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACtC"}
package/dist/secret.js ADDED
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Secret = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ class Secret extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing Secret resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new Secret(name, state, { ...opts, id: id });
43
+ }
44
+ /**
45
+ * Returns true if the given object is an instance of Secret. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj) {
49
+ if (obj === undefined || obj === null) {
50
+ return false;
51
+ }
52
+ return obj['__pulumiType'] === Secret.__pulumiType;
53
+ }
54
+ constructor(name, argsOrState, opts) {
55
+ let resourceInputs = {};
56
+ opts = opts || {};
57
+ if (opts.id) {
58
+ const state = argsOrState;
59
+ resourceInputs["envSlug"] = state?.envSlug;
60
+ resourceInputs["folderPath"] = state?.folderPath;
61
+ resourceInputs["lastUpdated"] = state?.lastUpdated;
62
+ resourceInputs["name"] = state?.name;
63
+ resourceInputs["secretReminder"] = state?.secretReminder;
64
+ resourceInputs["tagIds"] = state?.tagIds;
65
+ resourceInputs["value"] = state?.value;
66
+ resourceInputs["workspaceId"] = state?.workspaceId;
67
+ }
68
+ else {
69
+ const args = argsOrState;
70
+ if (args?.envSlug === undefined && !opts.urn) {
71
+ throw new Error("Missing required property 'envSlug'");
72
+ }
73
+ if (args?.folderPath === undefined && !opts.urn) {
74
+ throw new Error("Missing required property 'folderPath'");
75
+ }
76
+ if (args?.value === undefined && !opts.urn) {
77
+ throw new Error("Missing required property 'value'");
78
+ }
79
+ resourceInputs["envSlug"] = args?.envSlug;
80
+ resourceInputs["folderPath"] = args?.folderPath;
81
+ resourceInputs["name"] = args?.name;
82
+ resourceInputs["secretReminder"] = args?.secretReminder;
83
+ resourceInputs["tagIds"] = args?.tagIds;
84
+ resourceInputs["value"] = args?.value ? pulumi.secret(args.value) : undefined;
85
+ resourceInputs["workspaceId"] = args?.workspaceId;
86
+ resourceInputs["lastUpdated"] = undefined /*out*/;
87
+ }
88
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
89
+ const secretOpts = { additionalSecretOutputs: ["value"] };
90
+ opts = pulumi.mergeOptions(opts, secretOpts);
91
+ super(Secret.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
92
+ }
93
+ }
94
+ exports.Secret = Secret;
95
+ /** @internal */
96
+ Secret.__pulumiType = 'infisical:index/secret:Secret';
97
+ //# sourceMappingURL=secret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret.js","sourceRoot":"","sources":["../src/secret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,I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,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACzG,CAAC;;AApGL,wBAqGC;AAvFG,gBAAgB;AACO,mBAAY,GAAG,+BAA+B,CAAC"}
@@ -0,0 +1,149 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ export declare class SecretApprovalPolicy extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing SecretApprovalPolicy resource's state with the given name, ID, and optional extra
7
+ * properties used to qualify the lookup.
8
+ *
9
+ * @param name The _unique_ name of the resulting resource.
10
+ * @param id The _unique_ provider ID of the resource to lookup.
11
+ * @param state Any extra arguments used during the lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecretApprovalPolicyState, opts?: pulumi.CustomResourceOptions): SecretApprovalPolicy;
15
+ /** @internal */
16
+ static readonly __pulumiType = "infisical:index/secretApprovalPolicy:SecretApprovalPolicy";
17
+ /**
18
+ * Returns true if the given object is an instance of SecretApprovalPolicy. This is designed to work even
19
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
20
+ */
21
+ static isInstance(obj: any): obj is SecretApprovalPolicy;
22
+ /**
23
+ * Whether to allow the approvers to approve their own changes
24
+ */
25
+ readonly allowSelfApproval: pulumi.Output<boolean>;
26
+ /**
27
+ * The required approvers
28
+ */
29
+ readonly approvers: pulumi.Output<outputs.SecretApprovalPolicyApprover[]>;
30
+ /**
31
+ * The enforcement level of the policy. This can either be hard or soft
32
+ */
33
+ readonly enforcementLevel: pulumi.Output<string>;
34
+ /**
35
+ * (DEPRECATED, Use environment_slugs instead) The environment to apply the secret approval policy to
36
+ */
37
+ readonly environmentSlug: pulumi.Output<string | undefined>;
38
+ /**
39
+ * The environments to apply the secret approval policy to
40
+ */
41
+ readonly environmentSlugs: pulumi.Output<string[] | undefined>;
42
+ /**
43
+ * The name of the secret approval policy
44
+ */
45
+ readonly name: pulumi.Output<string>;
46
+ /**
47
+ * The ID of the project to add the secret approval policy
48
+ */
49
+ readonly projectId: pulumi.Output<string>;
50
+ /**
51
+ * The number of required approvers
52
+ */
53
+ readonly requiredApprovals: pulumi.Output<number>;
54
+ /**
55
+ * The secret path to apply the secret approval policy to
56
+ */
57
+ readonly secretPath: pulumi.Output<string>;
58
+ /**
59
+ * Create a SecretApprovalPolicy resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args: SecretApprovalPolicyArgs, opts?: pulumi.CustomResourceOptions);
66
+ }
67
+ /**
68
+ * Input properties used for looking up and filtering SecretApprovalPolicy resources.
69
+ */
70
+ export interface SecretApprovalPolicyState {
71
+ /**
72
+ * Whether to allow the approvers to approve their own changes
73
+ */
74
+ allowSelfApproval?: pulumi.Input<boolean>;
75
+ /**
76
+ * The required approvers
77
+ */
78
+ approvers?: pulumi.Input<pulumi.Input<inputs.SecretApprovalPolicyApprover>[]>;
79
+ /**
80
+ * The enforcement level of the policy. This can either be hard or soft
81
+ */
82
+ enforcementLevel?: pulumi.Input<string>;
83
+ /**
84
+ * (DEPRECATED, Use environment_slugs instead) The environment to apply the secret approval policy to
85
+ */
86
+ environmentSlug?: pulumi.Input<string>;
87
+ /**
88
+ * The environments to apply the secret approval policy to
89
+ */
90
+ environmentSlugs?: pulumi.Input<pulumi.Input<string>[]>;
91
+ /**
92
+ * The name of the secret approval policy
93
+ */
94
+ name?: pulumi.Input<string>;
95
+ /**
96
+ * The ID of the project to add the secret approval policy
97
+ */
98
+ projectId?: pulumi.Input<string>;
99
+ /**
100
+ * The number of required approvers
101
+ */
102
+ requiredApprovals?: pulumi.Input<number>;
103
+ /**
104
+ * The secret path to apply the secret approval policy to
105
+ */
106
+ secretPath?: pulumi.Input<string>;
107
+ }
108
+ /**
109
+ * The set of arguments for constructing a SecretApprovalPolicy resource.
110
+ */
111
+ export interface SecretApprovalPolicyArgs {
112
+ /**
113
+ * Whether to allow the approvers to approve their own changes
114
+ */
115
+ allowSelfApproval?: pulumi.Input<boolean>;
116
+ /**
117
+ * The required approvers
118
+ */
119
+ approvers: pulumi.Input<pulumi.Input<inputs.SecretApprovalPolicyApprover>[]>;
120
+ /**
121
+ * The enforcement level of the policy. This can either be hard or soft
122
+ */
123
+ enforcementLevel?: pulumi.Input<string>;
124
+ /**
125
+ * (DEPRECATED, Use environment_slugs instead) The environment to apply the secret approval policy to
126
+ */
127
+ environmentSlug?: pulumi.Input<string>;
128
+ /**
129
+ * The environments to apply the secret approval policy to
130
+ */
131
+ environmentSlugs?: pulumi.Input<pulumi.Input<string>[]>;
132
+ /**
133
+ * The name of the secret approval policy
134
+ */
135
+ name?: pulumi.Input<string>;
136
+ /**
137
+ * The ID of the project to add the secret approval policy
138
+ */
139
+ projectId: pulumi.Input<string>;
140
+ /**
141
+ * The number of required approvers
142
+ */
143
+ requiredApprovals: pulumi.Input<number>;
144
+ /**
145
+ * The secret path to apply the secret approval policy to
146
+ */
147
+ secretPath: pulumi.Input<string>;
148
+ }
149
+ //# sourceMappingURL=secretApprovalPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secretApprovalPolicy.d.ts","sourceRoot":"","sources":["../src/secretApprovalPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,oBAAoB;IAI1J,gBAAgB;IAChB,gBAAuB,YAAY,+DAA+D;IAElG;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,oBAAoB;IAO/D;;OAEG;IACH,SAAwB,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClE;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OA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*** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.SecretApprovalPolicy = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ class SecretApprovalPolicy extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing SecretApprovalPolicy resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new SecretApprovalPolicy(name, state, { ...opts, id: id });
43
+ }
44
+ /**
45
+ * Returns true if the given object is an instance of SecretApprovalPolicy. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj) {
49
+ if (obj === undefined || obj === null) {
50
+ return false;
51
+ }
52
+ return obj['__pulumiType'] === SecretApprovalPolicy.__pulumiType;
53
+ }
54
+ constructor(name, argsOrState, opts) {
55
+ let resourceInputs = {};
56
+ opts = opts || {};
57
+ if (opts.id) {
58
+ const state = argsOrState;
59
+ resourceInputs["allowSelfApproval"] = state?.allowSelfApproval;
60
+ resourceInputs["approvers"] = state?.approvers;
61
+ resourceInputs["enforcementLevel"] = state?.enforcementLevel;
62
+ resourceInputs["environmentSlug"] = state?.environmentSlug;
63
+ resourceInputs["environmentSlugs"] = state?.environmentSlugs;
64
+ resourceInputs["name"] = state?.name;
65
+ resourceInputs["projectId"] = state?.projectId;
66
+ resourceInputs["requiredApprovals"] = state?.requiredApprovals;
67
+ resourceInputs["secretPath"] = state?.secretPath;
68
+ }
69
+ else {
70
+ const args = argsOrState;
71
+ if (args?.approvers === undefined && !opts.urn) {
72
+ throw new Error("Missing required property 'approvers'");
73
+ }
74
+ if (args?.projectId === undefined && !opts.urn) {
75
+ throw new Error("Missing required property 'projectId'");
76
+ }
77
+ if (args?.requiredApprovals === undefined && !opts.urn) {
78
+ throw new Error("Missing required property 'requiredApprovals'");
79
+ }
80
+ if (args?.secretPath === undefined && !opts.urn) {
81
+ throw new Error("Missing required property 'secretPath'");
82
+ }
83
+ resourceInputs["allowSelfApproval"] = args?.allowSelfApproval;
84
+ resourceInputs["approvers"] = args?.approvers;
85
+ resourceInputs["enforcementLevel"] = args?.enforcementLevel;
86
+ resourceInputs["environmentSlug"] = args?.environmentSlug;
87
+ resourceInputs["environmentSlugs"] = args?.environmentSlugs;
88
+ resourceInputs["name"] = args?.name;
89
+ resourceInputs["projectId"] = args?.projectId;
90
+ resourceInputs["requiredApprovals"] = args?.requiredApprovals;
91
+ resourceInputs["secretPath"] = args?.secretPath;
92
+ }
93
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
94
+ super(SecretApprovalPolicy.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
95
+ }
96
+ }
97
+ exports.SecretApprovalPolicy = SecretApprovalPolicy;
98
+ /** @internal */
99
+ SecretApprovalPolicy.__pulumiType = 'infisical:index/secretApprovalPolicy:SecretApprovalPolicy';
100
+ //# sourceMappingURL=secretApprovalPolicy.js.map