@ryan-pip/pulumi-fivetran 1.5.1 → 1.9.4

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 (343) hide show
  1. package/config/index.d.ts +1 -0
  2. package/config/index.d.ts.map +1 -0
  3. package/config/index.js +1 -1
  4. package/config/index.js.map +1 -1
  5. package/config/vars.d.ts +1 -0
  6. package/config/vars.d.ts.map +1 -0
  7. package/config/vars.js +28 -7
  8. package/config/vars.js.map +1 -1
  9. package/connector.d.ts +104 -40
  10. package/connector.d.ts.map +1 -0
  11. package/connector.js +150 -41
  12. package/connector.js.map +1 -1
  13. package/connectorCertificates.d.ts +51 -0
  14. package/connectorCertificates.d.ts.map +1 -0
  15. package/connectorCertificates.js +84 -11
  16. package/connectorCertificates.js.map +1 -1
  17. package/connectorFingerprints.d.ts +13 -9
  18. package/connectorFingerprints.d.ts.map +1 -0
  19. package/connectorFingerprints.js +46 -20
  20. package/connectorFingerprints.js.map +1 -1
  21. package/connectorSchedule.d.ts +24 -33
  22. package/connectorSchedule.d.ts.map +1 -0
  23. package/connectorSchedule.js +65 -52
  24. package/connectorSchedule.js.map +1 -1
  25. package/connectorSchemaConfig.d.ts +200 -9
  26. package/connectorSchemaConfig.d.ts.map +1 -0
  27. package/connectorSchemaConfig.js +231 -21
  28. package/connectorSchemaConfig.js.map +1 -1
  29. package/destination.d.ts +63 -37
  30. package/destination.d.ts.map +1 -0
  31. package/destination.js +113 -50
  32. package/destination.js.map +1 -1
  33. package/destinationCertificates.d.ts +54 -0
  34. package/destinationCertificates.d.ts.map +1 -0
  35. package/destinationCertificates.js +87 -11
  36. package/destinationCertificates.js.map +1 -1
  37. package/destinationFingerprints.d.ts +13 -9
  38. package/destinationFingerprints.d.ts.map +1 -0
  39. package/destinationFingerprints.js +46 -20
  40. package/destinationFingerprints.js.map +1 -1
  41. package/externalLogging.d.ts +42 -12
  42. package/externalLogging.d.ts.map +1 -0
  43. package/externalLogging.js +82 -30
  44. package/externalLogging.js.map +1 -1
  45. package/getConnection.d.ts +143 -0
  46. package/getConnection.d.ts.map +1 -0
  47. package/getConnection.js +77 -0
  48. package/getConnection.js.map +1 -0
  49. package/getConnectionCertificates.d.ts +64 -0
  50. package/getConnectionCertificates.d.ts.map +1 -0
  51. package/getConnectionCertificates.js +75 -0
  52. package/getConnectionCertificates.js.map +1 -0
  53. package/getConnectionFingerprints.d.ts +64 -0
  54. package/getConnectionFingerprints.d.ts.map +1 -0
  55. package/getConnectionFingerprints.js +75 -0
  56. package/getConnectionFingerprints.js.map +1 -0
  57. package/getConnections.d.ts +38 -0
  58. package/getConnections.d.ts.map +1 -0
  59. package/getConnections.js +57 -0
  60. package/getConnections.js.map +1 -0
  61. package/getConnector.d.ts +3 -2
  62. package/getConnector.d.ts.map +1 -0
  63. package/getConnector.js +28 -5
  64. package/getConnector.js.map +1 -1
  65. package/getConnectorCertificates.d.ts +29 -0
  66. package/getConnectorCertificates.d.ts.map +1 -0
  67. package/getConnectorCertificates.js +54 -3
  68. package/getConnectorCertificates.js.map +1 -1
  69. package/getConnectorFingerprints.d.ts +3 -2
  70. package/getConnectorFingerprints.d.ts.map +1 -0
  71. package/getConnectorFingerprints.js +28 -5
  72. package/getConnectorFingerprints.js.map +1 -1
  73. package/getConnectors.d.ts +5 -0
  74. package/getConnectors.d.ts.map +1 -0
  75. package/getConnectors.js +30 -3
  76. package/getConnectors.js.map +1 -1
  77. package/getConnectorsMetadata.d.ts +3 -2
  78. package/getConnectorsMetadata.d.ts.map +1 -0
  79. package/getConnectorsMetadata.js +28 -5
  80. package/getConnectorsMetadata.js.map +1 -1
  81. package/getDestination.d.ts +3 -2
  82. package/getDestination.d.ts.map +1 -0
  83. package/getDestination.js +28 -5
  84. package/getDestination.js.map +1 -1
  85. package/getDestinationCertificates.d.ts +1 -0
  86. package/getDestinationCertificates.d.ts.map +1 -0
  87. package/getDestinationCertificates.js +26 -3
  88. package/getDestinationCertificates.js.map +1 -1
  89. package/getDestinationFingerprints.d.ts +3 -2
  90. package/getDestinationFingerprints.d.ts.map +1 -0
  91. package/getDestinationFingerprints.js +28 -5
  92. package/getDestinationFingerprints.js.map +1 -1
  93. package/getDestinations.d.ts +5 -0
  94. package/getDestinations.d.ts.map +1 -0
  95. package/getDestinations.js +30 -3
  96. package/getDestinations.js.map +1 -1
  97. package/getExternalLogging.d.ts +3 -2
  98. package/getExternalLogging.d.ts.map +1 -0
  99. package/getExternalLogging.js +28 -5
  100. package/getExternalLogging.js.map +1 -1
  101. package/getExternalLogs.d.ts +5 -0
  102. package/getExternalLogs.d.ts.map +1 -0
  103. package/getExternalLogs.js +30 -3
  104. package/getExternalLogs.js.map +1 -1
  105. package/getGroup.d.ts +3 -2
  106. package/getGroup.d.ts.map +1 -0
  107. package/getGroup.js +28 -5
  108. package/getGroup.js.map +1 -1
  109. package/getGroupConnections.d.ts +78 -0
  110. package/getGroupConnections.d.ts.map +1 -0
  111. package/getGroupConnections.js +79 -0
  112. package/getGroupConnections.js.map +1 -0
  113. package/getGroupConnectors.d.ts +3 -2
  114. package/getGroupConnectors.d.ts.map +1 -0
  115. package/getGroupConnectors.js +28 -5
  116. package/getGroupConnectors.js.map +1 -1
  117. package/getGroupServiceAccount.d.ts +3 -2
  118. package/getGroupServiceAccount.d.ts.map +1 -0
  119. package/getGroupServiceAccount.js +28 -5
  120. package/getGroupServiceAccount.js.map +1 -1
  121. package/getGroupSshKey.d.ts +3 -2
  122. package/getGroupSshKey.d.ts.map +1 -0
  123. package/getGroupSshKey.js +28 -5
  124. package/getGroupSshKey.js.map +1 -1
  125. package/getGroupUsers.d.ts +3 -2
  126. package/getGroupUsers.d.ts.map +1 -0
  127. package/getGroupUsers.js +28 -5
  128. package/getGroupUsers.js.map +1 -1
  129. package/getGroups.d.ts +3 -2
  130. package/getGroups.d.ts.map +1 -0
  131. package/getGroups.js +28 -5
  132. package/getGroups.js.map +1 -1
  133. package/getHybridDeploymentAgent.d.ts +5 -0
  134. package/getHybridDeploymentAgent.d.ts.map +1 -0
  135. package/getHybridDeploymentAgent.js +30 -3
  136. package/getHybridDeploymentAgent.js.map +1 -1
  137. package/getHybridDeploymentAgents.d.ts +3 -2
  138. package/getHybridDeploymentAgents.d.ts.map +1 -0
  139. package/getHybridDeploymentAgents.js +28 -5
  140. package/getHybridDeploymentAgents.js.map +1 -1
  141. package/getPrivateLink.d.ts +7 -2
  142. package/getPrivateLink.d.ts.map +1 -0
  143. package/getPrivateLink.js +28 -5
  144. package/getPrivateLink.js.map +1 -1
  145. package/getPrivateLinks.d.ts +1 -0
  146. package/getPrivateLinks.d.ts.map +1 -0
  147. package/getPrivateLinks.js +26 -3
  148. package/getPrivateLinks.js.map +1 -1
  149. package/getProxyAgent.d.ts +3 -10
  150. package/getProxyAgent.d.ts.map +1 -0
  151. package/getProxyAgent.js +28 -5
  152. package/getProxyAgent.js.map +1 -1
  153. package/getProxyAgents.d.ts +3 -2
  154. package/getProxyAgents.d.ts.map +1 -0
  155. package/getProxyAgents.js +28 -5
  156. package/getProxyAgents.js.map +1 -1
  157. package/getQuickstartPackage.d.ts +3 -2
  158. package/getQuickstartPackage.d.ts.map +1 -0
  159. package/getQuickstartPackage.js +28 -5
  160. package/getQuickstartPackage.js.map +1 -1
  161. package/getQuickstartPackages.d.ts +3 -2
  162. package/getQuickstartPackages.d.ts.map +1 -0
  163. package/getQuickstartPackages.js +28 -5
  164. package/getQuickstartPackages.js.map +1 -1
  165. package/getRoles.d.ts +3 -2
  166. package/getRoles.d.ts.map +1 -0
  167. package/getRoles.js +28 -5
  168. package/getRoles.js.map +1 -1
  169. package/getTeam.d.ts +3 -2
  170. package/getTeam.d.ts.map +1 -0
  171. package/getTeam.js +28 -5
  172. package/getTeam.js.map +1 -1
  173. package/getTeamConnectionMemberships.d.ts +42 -0
  174. package/getTeamConnectionMemberships.d.ts.map +1 -0
  175. package/getTeamConnectionMemberships.js +53 -0
  176. package/getTeamConnectionMemberships.js.map +1 -0
  177. package/getTeamConnectorMemberships.d.ts +1 -0
  178. package/getTeamConnectorMemberships.d.ts.map +1 -0
  179. package/getTeamConnectorMemberships.js +26 -3
  180. package/getTeamConnectorMemberships.js.map +1 -1
  181. package/getTeamGroupMemberships.d.ts +3 -2
  182. package/getTeamGroupMemberships.d.ts.map +1 -0
  183. package/getTeamGroupMemberships.js +28 -5
  184. package/getTeamGroupMemberships.js.map +1 -1
  185. package/getTeamUserMemberships.d.ts +3 -2
  186. package/getTeamUserMemberships.d.ts.map +1 -0
  187. package/getTeamUserMemberships.js +28 -5
  188. package/getTeamUserMemberships.js.map +1 -1
  189. package/getTeams.d.ts +3 -2
  190. package/getTeams.d.ts.map +1 -0
  191. package/getTeams.js +28 -5
  192. package/getTeams.js.map +1 -1
  193. package/getTransformation.d.ts +3 -2
  194. package/getTransformation.d.ts.map +1 -0
  195. package/getTransformation.js +28 -5
  196. package/getTransformation.js.map +1 -1
  197. package/getTransformationProject.d.ts +3 -2
  198. package/getTransformationProject.d.ts.map +1 -0
  199. package/getTransformationProject.js +28 -5
  200. package/getTransformationProject.js.map +1 -1
  201. package/getTransformationProjects.d.ts +3 -2
  202. package/getTransformationProjects.d.ts.map +1 -0
  203. package/getTransformationProjects.js +28 -5
  204. package/getTransformationProjects.js.map +1 -1
  205. package/getTransformations.d.ts +3 -2
  206. package/getTransformations.d.ts.map +1 -0
  207. package/getTransformations.js +28 -5
  208. package/getTransformations.js.map +1 -1
  209. package/getUser.d.ts +3 -2
  210. package/getUser.d.ts.map +1 -0
  211. package/getUser.js +28 -5
  212. package/getUser.js.map +1 -1
  213. package/getUserConnectionMemberships.d.ts +64 -0
  214. package/getUserConnectionMemberships.d.ts.map +1 -0
  215. package/getUserConnectionMemberships.js +75 -0
  216. package/getUserConnectionMemberships.js.map +1 -0
  217. package/getUserConnectorMemberships.d.ts +3 -2
  218. package/getUserConnectorMemberships.d.ts.map +1 -0
  219. package/getUserConnectorMemberships.js +28 -5
  220. package/getUserConnectorMemberships.js.map +1 -1
  221. package/getUserGroupMemberships.d.ts +3 -2
  222. package/getUserGroupMemberships.d.ts.map +1 -0
  223. package/getUserGroupMemberships.js +28 -5
  224. package/getUserGroupMemberships.js.map +1 -1
  225. package/getUsers.d.ts +3 -2
  226. package/getUsers.d.ts.map +1 -0
  227. package/getUsers.js +28 -5
  228. package/getUsers.js.map +1 -1
  229. package/getWebhook.d.ts +3 -2
  230. package/getWebhook.d.ts.map +1 -0
  231. package/getWebhook.js +28 -5
  232. package/getWebhook.js.map +1 -1
  233. package/getWebhooks.d.ts +3 -2
  234. package/getWebhooks.d.ts.map +1 -0
  235. package/getWebhooks.js +28 -5
  236. package/getWebhooks.js.map +1 -1
  237. package/group.d.ts +12 -10
  238. package/group.d.ts.map +1 -0
  239. package/group.js +44 -20
  240. package/group.js.map +1 -1
  241. package/groupUsers.d.ts +3 -2
  242. package/groupUsers.d.ts.map +1 -0
  243. package/groupUsers.js +37 -14
  244. package/groupUsers.js.map +1 -1
  245. package/hybridDeploymentAgent.d.ts +14 -3
  246. package/hybridDeploymentAgent.d.ts.map +1 -0
  247. package/hybridDeploymentAgent.js +51 -25
  248. package/hybridDeploymentAgent.js.map +1 -1
  249. package/index.d.ts +23 -24
  250. package/index.d.ts.map +1 -0
  251. package/index.js +58 -38
  252. package/index.js.map +1 -1
  253. package/package.json +4 -3
  254. package/privateLink.d.ts +28 -6
  255. package/privateLink.d.ts.map +1 -0
  256. package/privateLink.js +63 -22
  257. package/privateLink.js.map +1 -1
  258. package/provider.d.ts +15 -0
  259. package/provider.d.ts.map +1 -0
  260. package/provider.js +39 -9
  261. package/provider.js.map +1 -1
  262. package/proxyAgent.d.ts +28 -15
  263. package/proxyAgent.d.ts.map +1 -0
  264. package/proxyAgent.js +47 -22
  265. package/proxyAgent.js.map +1 -1
  266. package/team.d.ts +12 -11
  267. package/team.d.ts.map +1 -0
  268. package/team.js +47 -24
  269. package/team.js.map +1 -1
  270. package/teamConnectorMembership.d.ts +11 -11
  271. package/teamConnectorMembership.d.ts.map +1 -0
  272. package/teamConnectorMembership.js +44 -22
  273. package/teamConnectorMembership.js.map +1 -1
  274. package/teamGroupMembership.d.ts +33 -8
  275. package/teamGroupMembership.d.ts.map +1 -0
  276. package/teamGroupMembership.js +66 -19
  277. package/teamGroupMembership.js.map +1 -1
  278. package/teamUserMembership.d.ts +11 -11
  279. package/teamUserMembership.d.ts.map +1 -0
  280. package/teamUserMembership.js +44 -22
  281. package/teamUserMembership.js.map +1 -1
  282. package/transformation.d.ts +57 -16
  283. package/transformation.d.ts.map +1 -0
  284. package/transformation.js +97 -34
  285. package/transformation.js.map +1 -1
  286. package/transformationProject.d.ts +97 -8
  287. package/transformationProject.d.ts.map +1 -0
  288. package/transformationProject.js +139 -28
  289. package/transformationProject.js.map +1 -1
  290. package/types/index.d.ts +1 -0
  291. package/types/index.d.ts.map +1 -0
  292. package/types/index.js +26 -3
  293. package/types/index.js.map +1 -1
  294. package/types/input.d.ts +2750 -299
  295. package/types/input.d.ts.map +1 -0
  296. package/types/input.js +1 -1
  297. package/types/input.js.map +1 -1
  298. package/types/output.d.ts +1705 -221
  299. package/types/output.d.ts.map +1 -0
  300. package/types/output.js +1 -1
  301. package/types/output.js.map +1 -1
  302. package/user.d.ts +11 -9
  303. package/user.d.ts.map +1 -0
  304. package/user.js +60 -36
  305. package/user.js.map +1 -1
  306. package/userConnectorMembership.d.ts +11 -11
  307. package/userConnectorMembership.d.ts.map +1 -0
  308. package/userConnectorMembership.js +44 -22
  309. package/userConnectorMembership.js.map +1 -1
  310. package/userGroupMembership.d.ts +33 -8
  311. package/userGroupMembership.d.ts.map +1 -0
  312. package/userGroupMembership.js +66 -19
  313. package/userGroupMembership.js.map +1 -1
  314. package/utilities.d.ts +1 -4
  315. package/utilities.d.ts.map +1 -0
  316. package/utilities.js +43 -30
  317. package/utilities.js.map +1 -1
  318. package/webhook.d.ts +10 -8
  319. package/webhook.d.ts.map +1 -0
  320. package/webhook.js +59 -35
  321. package/webhook.js.map +1 -1
  322. package/dbtGitProjectConfig.d.ts +0 -141
  323. package/dbtGitProjectConfig.js +0 -105
  324. package/dbtGitProjectConfig.js.map +0 -1
  325. package/dbtProject.d.ts +0 -237
  326. package/dbtProject.js +0 -134
  327. package/dbtProject.js.map +0 -1
  328. package/dbtTransformation.d.ts +0 -162
  329. package/dbtTransformation.js +0 -105
  330. package/dbtTransformation.js.map +0 -1
  331. package/getDbtModels.d.ts +0 -67
  332. package/getDbtModels.js +0 -52
  333. package/getDbtModels.js.map +0 -1
  334. package/getDbtProject.d.ts +0 -112
  335. package/getDbtProject.js +0 -52
  336. package/getDbtProject.js.map +0 -1
  337. package/getDbtProjects.d.ts +0 -38
  338. package/getDbtProjects.js +0 -42
  339. package/getDbtProjects.js.map +0 -1
  340. package/getDbtTransformation.d.ts +0 -99
  341. package/getDbtTransformation.js +0 -52
  342. package/getDbtTransformation.js.map +0 -1
  343. package/package.json.bak +0 -29
package/webhook.js CHANGED
@@ -1,26 +1,49 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
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
+ };
4
27
  Object.defineProperty(exports, "__esModule", { value: true });
5
28
  exports.Webhook = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
8
31
  /**
9
32
  * This resource allows you to create, update, and delete webhooks.
10
33
  *
11
34
  * ## Import
12
35
  *
13
- * 1. To import an existing `fivetran_webhook` resource into your Terraform state, you need to get `webhook_id`.
14
- *
15
- * You can retrieve all webhooks using the [fivetran_webhooks data source](/docs/data-sources/webhooks).
36
+ * 1. To import an existing `fivetran.Webhook` resource into your Terraform state, you need to get `webhookId`.
37
+ * You can retrieve all webhooks using the [fivetran.getWebhooks data source](https://www.terraform.io/docs/data-sources/webhooks).
16
38
  *
17
39
  * 2. Define an empty resource in your `.tf` configuration:
18
40
  *
19
- * hcl
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
20
44
  *
21
- * resource "fivetran_webhook" "my_imported_fivetran_webhook" {
22
- *
23
- * }
45
+ * const myImportedFivetranWebhook = new fivetran.Webhook("my_imported_fivetran_webhook", {});
46
+ * ```
24
47
  *
25
48
  * 3. Run the `pulumi import` command:
26
49
  *
@@ -30,8 +53,9 @@ const utilities = require("./utilities");
30
53
  *
31
54
  * 4. Use the `terraform state show` command to get the values from the state:
32
55
  *
56
+ * ```sh
33
57
  * terraform state show 'fivetran_webhook.my_imported_fivetran_webhook'
34
- *
58
+ * ```
35
59
  * 5. Copy the values and paste them to your `.tf` configuration.
36
60
  */
37
61
  class Webhook extends pulumi.CustomResource {
@@ -45,8 +69,10 @@ class Webhook extends pulumi.CustomResource {
45
69
  * @param opts Optional settings to control the behavior of the CustomResource.
46
70
  */
47
71
  static get(name, id, state, opts) {
48
- return new Webhook(name, state, Object.assign(Object.assign({}, opts), { id: id }));
72
+ return new Webhook(name, state, { ...opts, id: id });
49
73
  }
74
+ /** @internal */
75
+ static __pulumiType = 'fivetran:index/webhook:Webhook';
50
76
  /**
51
77
  * Returns true if the given object is an instance of Webhook. This is designed to work even
52
78
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
@@ -62,40 +88,40 @@ class Webhook extends pulumi.CustomResource {
62
88
  opts = opts || {};
63
89
  if (opts.id) {
64
90
  const state = argsOrState;
65
- resourceInputs["active"] = state ? state.active : undefined;
66
- resourceInputs["createdAt"] = state ? state.createdAt : undefined;
67
- resourceInputs["createdBy"] = state ? state.createdBy : undefined;
68
- resourceInputs["events"] = state ? state.events : undefined;
69
- resourceInputs["groupId"] = state ? state.groupId : undefined;
70
- resourceInputs["runTests"] = state ? state.runTests : undefined;
71
- resourceInputs["secret"] = state ? state.secret : undefined;
72
- resourceInputs["type"] = state ? state.type : undefined;
73
- resourceInputs["url"] = state ? state.url : undefined;
91
+ resourceInputs["active"] = state?.active;
92
+ resourceInputs["createdAt"] = state?.createdAt;
93
+ resourceInputs["createdBy"] = state?.createdBy;
94
+ resourceInputs["events"] = state?.events;
95
+ resourceInputs["groupId"] = state?.groupId;
96
+ resourceInputs["runTests"] = state?.runTests;
97
+ resourceInputs["secret"] = state?.secret;
98
+ resourceInputs["type"] = state?.type;
99
+ resourceInputs["url"] = state?.url;
74
100
  }
75
101
  else {
76
102
  const args = argsOrState;
77
- if ((!args || args.active === undefined) && !opts.urn) {
103
+ if (args?.active === undefined && !opts.urn) {
78
104
  throw new Error("Missing required property 'active'");
79
105
  }
80
- if ((!args || args.events === undefined) && !opts.urn) {
106
+ if (args?.events === undefined && !opts.urn) {
81
107
  throw new Error("Missing required property 'events'");
82
108
  }
83
- if ((!args || args.secret === undefined) && !opts.urn) {
109
+ if (args?.secret === undefined && !opts.urn) {
84
110
  throw new Error("Missing required property 'secret'");
85
111
  }
86
- if ((!args || args.type === undefined) && !opts.urn) {
112
+ if (args?.type === undefined && !opts.urn) {
87
113
  throw new Error("Missing required property 'type'");
88
114
  }
89
- if ((!args || args.url === undefined) && !opts.urn) {
115
+ if (args?.url === undefined && !opts.urn) {
90
116
  throw new Error("Missing required property 'url'");
91
117
  }
92
- resourceInputs["active"] = args ? args.active : undefined;
93
- resourceInputs["events"] = args ? args.events : undefined;
94
- resourceInputs["groupId"] = args ? args.groupId : undefined;
95
- resourceInputs["runTests"] = args ? args.runTests : undefined;
96
- resourceInputs["secret"] = (args === null || args === void 0 ? void 0 : args.secret) ? pulumi.secret(args.secret) : undefined;
97
- resourceInputs["type"] = args ? args.type : undefined;
98
- resourceInputs["url"] = args ? args.url : undefined;
118
+ resourceInputs["active"] = args?.active;
119
+ resourceInputs["events"] = args?.events;
120
+ resourceInputs["groupId"] = args?.groupId;
121
+ resourceInputs["runTests"] = args?.runTests;
122
+ resourceInputs["secret"] = args?.secret ? pulumi.secret(args.secret) : undefined;
123
+ resourceInputs["type"] = args?.type;
124
+ resourceInputs["url"] = args?.url;
99
125
  resourceInputs["createdAt"] = undefined /*out*/;
100
126
  resourceInputs["createdBy"] = undefined /*out*/;
101
127
  }
@@ -106,6 +132,4 @@ class Webhook extends pulumi.CustomResource {
106
132
  }
107
133
  }
108
134
  exports.Webhook = Webhook;
109
- /** @internal */
110
- Webhook.__pulumiType = 'fivetran:index/webhook:Webhook';
111
135
  //# sourceMappingURL=webhook.js.map
package/webhook.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.js","sourceRoot":"","sources":["../webhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,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,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACjF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAtHL,0BAuHC"}
@@ -1,141 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * This resource is Deprecated, please follow the 1.5.0 migration guide to update the schema.
4
- *
5
- * This resource allows you to add and manage dbt Git Projects Configs.
6
- *
7
- * ## Example Usage
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as fivetran from "@ryan-pip/pulumi-fivetran";
12
- *
13
- * const gitProjectConfig = new fivetran.DbtGitProjectConfig("gitProjectConfig", {
14
- * folderPath: "/dbt/project/folder/path",
15
- * gitBranch: "main",
16
- * gitRemoteUrl: "your_git_remote_url",
17
- * projectId: "project_id",
18
- * });
19
- * ```
20
- *
21
- * ## Import
22
- *
23
- * 1. To import an existing `fivetran_dbt_git_project_config` resource into your Terraform state, you need to get **Dbt Project ID** via API call `GET https://api.fivetran.com/v1/dbt/projects` to retrieve available projects.
24
- *
25
- * 2. Fetch project details for particular `project-id` using `GET https://api.fivetran.com/v1/dbt/projects/{project-id}` to ensure that this is the project you want to import.
26
- *
27
- * 3. Define an empty resource in your `.tf` configuration:
28
- *
29
- * hcl
30
- *
31
- * resource "fivetran_dbt_git_project_config" "my_imported_fivetran_dbt_git_project_config" {
32
- *
33
- * }
34
- *
35
- * 4. Run the `pulumi import` command:
36
- *
37
- * ```sh
38
- * $ pulumi import fivetran:index/dbtGitProjectConfig:DbtGitProjectConfig my_imported_fivetran_dbt_git_project_config {Dbt Project ID}
39
- * ```
40
- *
41
- * 4. Use the `terraform state show` command to get the values from the state:
42
- *
43
- * terraform state show 'fivetran_dbt_git_project_config.my_imported_fivetran_dbt_git_project_config'
44
- *
45
- * 5. Copy the values and paste them to your `.tf` configuration.
46
- */
47
- export declare class DbtGitProjectConfig extends pulumi.CustomResource {
48
- /**
49
- * Get an existing DbtGitProjectConfig resource's state with the given name, ID, and optional extra
50
- * properties used to qualify the lookup.
51
- *
52
- * @param name The _unique_ name of the resulting resource.
53
- * @param id The _unique_ provider ID of the resource to lookup.
54
- * @param state Any extra arguments used during the lookup.
55
- * @param opts Optional settings to control the behavior of the CustomResource.
56
- */
57
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DbtGitProjectConfigState, opts?: pulumi.CustomResourceOptions): DbtGitProjectConfig;
58
- /**
59
- * Returns true if the given object is an instance of DbtGitProjectConfig. This is designed to work even
60
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
- */
62
- static isInstance(obj: any): obj is DbtGitProjectConfig;
63
- /**
64
- * Should resource wait for project to finish initialization. Default value: false.
65
- */
66
- readonly ensureReadiness: pulumi.Output<boolean>;
67
- /**
68
- * Folder in Git repo with your dbt project.
69
- */
70
- readonly folderPath: pulumi.Output<string | undefined>;
71
- /**
72
- * Git branch.
73
- */
74
- readonly gitBranch: pulumi.Output<string | undefined>;
75
- /**
76
- * Git remote URL with your dbt project.
77
- */
78
- readonly gitRemoteUrl: pulumi.Output<string | undefined>;
79
- /**
80
- * The unique identifier for the dbt Project within the Fivetran system.
81
- */
82
- readonly projectId: pulumi.Output<string>;
83
- /**
84
- * Create a DbtGitProjectConfig resource with the given unique name, arguments, and options.
85
- *
86
- * @param name The _unique_ name of the resource.
87
- * @param args The arguments to use to populate this resource's properties.
88
- * @param opts A bag of options that control this resource's behavior.
89
- */
90
- constructor(name: string, args: DbtGitProjectConfigArgs, opts?: pulumi.CustomResourceOptions);
91
- }
92
- /**
93
- * Input properties used for looking up and filtering DbtGitProjectConfig resources.
94
- */
95
- export interface DbtGitProjectConfigState {
96
- /**
97
- * Should resource wait for project to finish initialization. Default value: false.
98
- */
99
- ensureReadiness?: pulumi.Input<boolean>;
100
- /**
101
- * Folder in Git repo with your dbt project.
102
- */
103
- folderPath?: pulumi.Input<string>;
104
- /**
105
- * Git branch.
106
- */
107
- gitBranch?: pulumi.Input<string>;
108
- /**
109
- * Git remote URL with your dbt project.
110
- */
111
- gitRemoteUrl?: pulumi.Input<string>;
112
- /**
113
- * The unique identifier for the dbt Project within the Fivetran system.
114
- */
115
- projectId?: pulumi.Input<string>;
116
- }
117
- /**
118
- * The set of arguments for constructing a DbtGitProjectConfig resource.
119
- */
120
- export interface DbtGitProjectConfigArgs {
121
- /**
122
- * Should resource wait for project to finish initialization. Default value: false.
123
- */
124
- ensureReadiness?: pulumi.Input<boolean>;
125
- /**
126
- * Folder in Git repo with your dbt project.
127
- */
128
- folderPath?: pulumi.Input<string>;
129
- /**
130
- * Git branch.
131
- */
132
- gitBranch?: pulumi.Input<string>;
133
- /**
134
- * Git remote URL with your dbt project.
135
- */
136
- gitRemoteUrl?: pulumi.Input<string>;
137
- /**
138
- * The unique identifier for the dbt Project within the Fivetran system.
139
- */
140
- projectId: pulumi.Input<string>;
141
- }
@@ -1,105 +0,0 @@
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.DbtGitProjectConfig = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * This resource is Deprecated, please follow the 1.5.0 migration guide to update the schema.
10
- *
11
- * This resource allows you to add and manage dbt Git Projects Configs.
12
- *
13
- * ## Example Usage
14
- *
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as fivetran from "@ryan-pip/pulumi-fivetran";
18
- *
19
- * const gitProjectConfig = new fivetran.DbtGitProjectConfig("gitProjectConfig", {
20
- * folderPath: "/dbt/project/folder/path",
21
- * gitBranch: "main",
22
- * gitRemoteUrl: "your_git_remote_url",
23
- * projectId: "project_id",
24
- * });
25
- * ```
26
- *
27
- * ## Import
28
- *
29
- * 1. To import an existing `fivetran_dbt_git_project_config` resource into your Terraform state, you need to get **Dbt Project ID** via API call `GET https://api.fivetran.com/v1/dbt/projects` to retrieve available projects.
30
- *
31
- * 2. Fetch project details for particular `project-id` using `GET https://api.fivetran.com/v1/dbt/projects/{project-id}` to ensure that this is the project you want to import.
32
- *
33
- * 3. Define an empty resource in your `.tf` configuration:
34
- *
35
- * hcl
36
- *
37
- * resource "fivetran_dbt_git_project_config" "my_imported_fivetran_dbt_git_project_config" {
38
- *
39
- * }
40
- *
41
- * 4. Run the `pulumi import` command:
42
- *
43
- * ```sh
44
- * $ pulumi import fivetran:index/dbtGitProjectConfig:DbtGitProjectConfig my_imported_fivetran_dbt_git_project_config {Dbt Project ID}
45
- * ```
46
- *
47
- * 4. Use the `terraform state show` command to get the values from the state:
48
- *
49
- * terraform state show 'fivetran_dbt_git_project_config.my_imported_fivetran_dbt_git_project_config'
50
- *
51
- * 5. Copy the values and paste them to your `.tf` configuration.
52
- */
53
- class DbtGitProjectConfig extends pulumi.CustomResource {
54
- /**
55
- * Get an existing DbtGitProjectConfig resource's state with the given name, ID, and optional extra
56
- * properties used to qualify the lookup.
57
- *
58
- * @param name The _unique_ name of the resulting resource.
59
- * @param id The _unique_ provider ID of the resource to lookup.
60
- * @param state Any extra arguments used during the lookup.
61
- * @param opts Optional settings to control the behavior of the CustomResource.
62
- */
63
- static get(name, id, state, opts) {
64
- return new DbtGitProjectConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
65
- }
66
- /**
67
- * Returns true if the given object is an instance of DbtGitProjectConfig. This is designed to work even
68
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
69
- */
70
- static isInstance(obj) {
71
- if (obj === undefined || obj === null) {
72
- return false;
73
- }
74
- return obj['__pulumiType'] === DbtGitProjectConfig.__pulumiType;
75
- }
76
- constructor(name, argsOrState, opts) {
77
- let resourceInputs = {};
78
- opts = opts || {};
79
- if (opts.id) {
80
- const state = argsOrState;
81
- resourceInputs["ensureReadiness"] = state ? state.ensureReadiness : undefined;
82
- resourceInputs["folderPath"] = state ? state.folderPath : undefined;
83
- resourceInputs["gitBranch"] = state ? state.gitBranch : undefined;
84
- resourceInputs["gitRemoteUrl"] = state ? state.gitRemoteUrl : undefined;
85
- resourceInputs["projectId"] = state ? state.projectId : undefined;
86
- }
87
- else {
88
- const args = argsOrState;
89
- if ((!args || args.projectId === undefined) && !opts.urn) {
90
- throw new Error("Missing required property 'projectId'");
91
- }
92
- resourceInputs["ensureReadiness"] = args ? args.ensureReadiness : undefined;
93
- resourceInputs["folderPath"] = args ? args.folderPath : undefined;
94
- resourceInputs["gitBranch"] = args ? args.gitBranch : undefined;
95
- resourceInputs["gitRemoteUrl"] = args ? args.gitRemoteUrl : undefined;
96
- resourceInputs["projectId"] = args ? args.projectId : undefined;
97
- }
98
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
99
- super(DbtGitProjectConfig.__pulumiType, name, resourceInputs, opts);
100
- }
101
- }
102
- exports.DbtGitProjectConfig = DbtGitProjectConfig;
103
- /** @internal */
104
- DbtGitProjectConfig.__pulumiType = 'fivetran:index/dbtGitProjectConfig:DbtGitProjectConfig';
105
- //# sourceMappingURL=dbtGitProjectConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dbtGitProjectConfig.js","sourceRoot":"","sources":["../dbtGitProjectConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,YAAY,CAAC,GAAG,KA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,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAhFL,kDAiFC;AAnEG,gBAAgB;AACO,gCAAY,GAAG,wDAAwD,CAAC"}
package/dbtProject.d.ts DELETED
@@ -1,237 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- import * as inputs from "./types/input";
3
- import * as outputs from "./types/output";
4
- /**
5
- * This resource is Deprecated, please follow the 1.5.0 migration guide to update the schema.
6
- *
7
- * This resource allows you to add, manage and delete dbt Projects in your account.
8
- *
9
- * ## Example Usage
10
- *
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as fivetran from "@ryan-pip/pulumi-fivetran";
14
- *
15
- * const project = new fivetran.DbtProject("project", {
16
- * dbtVersion: "1.4.1",
17
- * defaultSchema: "default_schema",
18
- * environmentVars: ["environment_var=value"],
19
- * groupId: "group_id",
20
- * targetName: "target_name",
21
- * threads: 8,
22
- * type: "GIT",
23
- * });
24
- * ```
25
- *
26
- * ## Import
27
- *
28
- * 1. To import an existing `fivetran_dbt_project` resource into your Terraform state, you need to get **Dbt Project ID** via API call `GET https://api.fivetran.com/v1/dbt/projects` to retrieve available projects.
29
- *
30
- * 2. Fetch project details for particular `project-id` using `GET https://api.fivetran.com/v1/dbt/projects/{project-id}` to ensure that this is the project you want to import.
31
- *
32
- * 3. Define an empty resource in your `.tf` configuration:
33
- *
34
- * hcl
35
- *
36
- * resource "fivetran_dbt_project" "my_imported_fivetran_dbt_project" {
37
- *
38
- * }
39
- *
40
- * 4. Run the `pulumi import` command:
41
- *
42
- * ```sh
43
- * $ pulumi import fivetran:index/dbtProject:DbtProject my_imported_fivetran_dbt_project {Dbt Project ID}
44
- * ```
45
- *
46
- * 4. Use the `terraform state show` command to get the values from the state:
47
- *
48
- * terraform state show 'fivetran_dbt_project.my_imported_fivetran_dbt_project'
49
- *
50
- * 5. Copy the values and paste them to your `.tf` configuration.
51
- */
52
- export declare class DbtProject extends pulumi.CustomResource {
53
- /**
54
- * Get an existing DbtProject resource's state with the given name, ID, and optional extra
55
- * properties used to qualify the lookup.
56
- *
57
- * @param name The _unique_ name of the resulting resource.
58
- * @param id The _unique_ provider ID of the resource to lookup.
59
- * @param state Any extra arguments used during the lookup.
60
- * @param opts Optional settings to control the behavior of the CustomResource.
61
- */
62
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DbtProjectState, opts?: pulumi.CustomResourceOptions): DbtProject;
63
- /**
64
- * Returns true if the given object is an instance of DbtProject. This is designed to work even
65
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
- */
67
- static isInstance(obj: any): obj is DbtProject;
68
- /**
69
- * The timestamp of the dbt Project creation.
70
- */
71
- readonly createdAt: pulumi.Output<string>;
72
- /**
73
- * The unique identifier for the User within the Fivetran system who created the dbt Project.
74
- */
75
- readonly createdById: pulumi.Output<string>;
76
- /**
77
- * The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
78
- */
79
- readonly dbtVersion: pulumi.Output<string>;
80
- /**
81
- * Default schema in destination. This production schema will contain your transformed data.
82
- */
83
- readonly defaultSchema: pulumi.Output<string>;
84
- /**
85
- * Should resource wait for project to finish initialization. Default value: true.
86
- *
87
- * @deprecated Deprecated attribute. Please migrate to the resource fivetran_dbt_git_project_config
88
- */
89
- readonly ensureReadiness: pulumi.Output<boolean>;
90
- /**
91
- * List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
92
- */
93
- readonly environmentVars: pulumi.Output<string[] | undefined>;
94
- /**
95
- * The unique identifier for the group within the Fivetran system.
96
- */
97
- readonly groupId: pulumi.Output<string>;
98
- readonly models: pulumi.Output<outputs.DbtProjectModel[]>;
99
- /**
100
- * @deprecated Deprecated block. The projectConfig block of the resource fivetran.DbtProject is deprecated and will be removed. Please migrate to the resource fivetran_dbt_git_project_config
101
- */
102
- readonly projectConfig: pulumi.Output<outputs.DbtProjectProjectConfig | undefined>;
103
- /**
104
- * Public key to grant Fivetran SSH access to git repository.
105
- */
106
- readonly publicKey: pulumi.Output<string>;
107
- /**
108
- * Status of dbt Project (NOT_READY, READY, ERROR).
109
- */
110
- readonly status: pulumi.Output<string>;
111
- /**
112
- * Target name to set or override the value from the deployment.yaml
113
- */
114
- readonly targetName: pulumi.Output<string | undefined>;
115
- /**
116
- * The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
117
- */
118
- readonly threads: pulumi.Output<number>;
119
- readonly timeouts: pulumi.Output<outputs.DbtProjectTimeouts | undefined>;
120
- /**
121
- * Type of dbt Project. Currently only `GIT` supported. Empty value will be considered as default (GIT).
122
- */
123
- readonly type: pulumi.Output<string | undefined>;
124
- /**
125
- * Create a DbtProject resource with the given unique name, arguments, and options.
126
- *
127
- * @param name The _unique_ name of the resource.
128
- * @param args The arguments to use to populate this resource's properties.
129
- * @param opts A bag of options that control this resource's behavior.
130
- */
131
- constructor(name: string, args: DbtProjectArgs, opts?: pulumi.CustomResourceOptions);
132
- }
133
- /**
134
- * Input properties used for looking up and filtering DbtProject resources.
135
- */
136
- export interface DbtProjectState {
137
- /**
138
- * The timestamp of the dbt Project creation.
139
- */
140
- createdAt?: pulumi.Input<string>;
141
- /**
142
- * The unique identifier for the User within the Fivetran system who created the dbt Project.
143
- */
144
- createdById?: pulumi.Input<string>;
145
- /**
146
- * The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
147
- */
148
- dbtVersion?: pulumi.Input<string>;
149
- /**
150
- * Default schema in destination. This production schema will contain your transformed data.
151
- */
152
- defaultSchema?: pulumi.Input<string>;
153
- /**
154
- * Should resource wait for project to finish initialization. Default value: true.
155
- *
156
- * @deprecated Deprecated attribute. Please migrate to the resource fivetran_dbt_git_project_config
157
- */
158
- ensureReadiness?: pulumi.Input<boolean>;
159
- /**
160
- * List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
161
- */
162
- environmentVars?: pulumi.Input<pulumi.Input<string>[]>;
163
- /**
164
- * The unique identifier for the group within the Fivetran system.
165
- */
166
- groupId?: pulumi.Input<string>;
167
- models?: pulumi.Input<pulumi.Input<inputs.DbtProjectModel>[]>;
168
- /**
169
- * @deprecated Deprecated block. The projectConfig block of the resource fivetran.DbtProject is deprecated and will be removed. Please migrate to the resource fivetran_dbt_git_project_config
170
- */
171
- projectConfig?: pulumi.Input<inputs.DbtProjectProjectConfig>;
172
- /**
173
- * Public key to grant Fivetran SSH access to git repository.
174
- */
175
- publicKey?: pulumi.Input<string>;
176
- /**
177
- * Status of dbt Project (NOT_READY, READY, ERROR).
178
- */
179
- status?: pulumi.Input<string>;
180
- /**
181
- * Target name to set or override the value from the deployment.yaml
182
- */
183
- targetName?: pulumi.Input<string>;
184
- /**
185
- * The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
186
- */
187
- threads?: pulumi.Input<number>;
188
- timeouts?: pulumi.Input<inputs.DbtProjectTimeouts>;
189
- /**
190
- * Type of dbt Project. Currently only `GIT` supported. Empty value will be considered as default (GIT).
191
- */
192
- type?: pulumi.Input<string>;
193
- }
194
- /**
195
- * The set of arguments for constructing a DbtProject resource.
196
- */
197
- export interface DbtProjectArgs {
198
- /**
199
- * The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
200
- */
201
- dbtVersion: pulumi.Input<string>;
202
- /**
203
- * Default schema in destination. This production schema will contain your transformed data.
204
- */
205
- defaultSchema: pulumi.Input<string>;
206
- /**
207
- * Should resource wait for project to finish initialization. Default value: true.
208
- *
209
- * @deprecated Deprecated attribute. Please migrate to the resource fivetran_dbt_git_project_config
210
- */
211
- ensureReadiness?: pulumi.Input<boolean>;
212
- /**
213
- * List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
214
- */
215
- environmentVars?: pulumi.Input<pulumi.Input<string>[]>;
216
- /**
217
- * The unique identifier for the group within the Fivetran system.
218
- */
219
- groupId: pulumi.Input<string>;
220
- /**
221
- * @deprecated Deprecated block. The projectConfig block of the resource fivetran.DbtProject is deprecated and will be removed. Please migrate to the resource fivetran_dbt_git_project_config
222
- */
223
- projectConfig?: pulumi.Input<inputs.DbtProjectProjectConfig>;
224
- /**
225
- * Target name to set or override the value from the deployment.yaml
226
- */
227
- targetName?: pulumi.Input<string>;
228
- /**
229
- * The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
230
- */
231
- threads?: pulumi.Input<number>;
232
- timeouts?: pulumi.Input<inputs.DbtProjectTimeouts>;
233
- /**
234
- * Type of dbt Project. Currently only `GIT` supported. Empty value will be considered as default (GIT).
235
- */
236
- type?: pulumi.Input<string>;
237
- }