@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/destination.js CHANGED
@@ -1,38 +1,101 @@
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.Destination = 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
- * ## Import
32
+ * This resource allows you to create, update, and delete destinations.
33
+ *
34
+ * IMPORTANT: Groups and destinations are mapped 1:1 to each other. We do this mapping using the group's id value that we automatically generate when you create a group using our REST API, and the destination's groupId value that you specify when you create a destination using our REST API. This means that if you use our REST API to create a destination, you must create a group in your Fivetran account before you can create a destination in it.
35
+ *
36
+ * When you create a destination in your Fivetran dashboard, we automatically create a group and assign a value to its id and a destination with the same groupId value, which is unique in your Fivetran account. The group's name corresponds to the Destination name you specify in your Fivetran dashboard when creating the destination in your Fivetran dashboard.
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
43
+ *
44
+ * const dest = new fivetran.Destination("dest", {
45
+ * groupId: group.id,
46
+ * service: "postgres_rds_warehouse",
47
+ * timeZoneOffset: "0",
48
+ * region: "GCP_US_EAST4",
49
+ * trustCertificates: true,
50
+ * trustFingerprints: true,
51
+ * daylightSavingTimeEnabled: true,
52
+ * runSetupTests: true,
53
+ * config: {
54
+ * host: "destination.fqdn",
55
+ * port: 5432,
56
+ * user: "postgres",
57
+ * password: "myPass",
58
+ * database: "fivetran",
59
+ * connectionType: "Directly",
60
+ * },
61
+ * });
62
+ * ```
10
63
  *
11
- * 1. To import an existing `fivetran_destination` resource into your Terraform state, you need to get **Destination Group ID** on the destination page in your Fivetran dashboard.
64
+ * ## Setup tests
12
65
  *
13
- * To retrieve existing groups, use the [fivetran_groups data source](/providers/fivetran/fivetran/latest/docs/data-sources/groups).
66
+ * The `runSetupTests` field doesn't have upstream value, it only defines local resource behavoir. This means that when you update only the `runSetupTests` value (from `false` to `true`, for example) it won't cause any upstream actions. The value will be just saved in terraform state and then used on effective field updates.
14
67
  *
15
- * 2. Define an empty resource in your `.tf` configuration:
68
+ * The default value is `false` - this means that no setup tests will be performed during create/update. To perform setup tests, you should set value to `true`.
16
69
  *
17
- * hcl
70
+ * ## Import
71
+ *
72
+ * 1. To import an existing `fivetran.Destination` resource into your Terraform state, you need to get **Destination Group ID** on the destination page in your Fivetran dashboard.
73
+ *
74
+ * 2. To retrieve existing destinations, use the [fivetran.getDestinations data source](https://www.terraform.io/docs/data-sources/destinations).
75
+ *
76
+ * 3. Define an empty resource in your `.tf` configuration:
18
77
  *
19
- * resource "fivetran_destination" "my_imported_destination" {
78
+ * ```typescript
79
+ * import * as pulumi from "@pulumi/pulumi";
80
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
20
81
  *
21
- * }
82
+ * const myImportedDestination = new fivetran.Destination("my_imported_destination", {});
83
+ * ```
22
84
  *
23
- * 3. Run the `pulumi import` command with the following parameters:
85
+ * 4. Run the `pulumi import` command with the following parameters:
24
86
  *
25
87
  * ```sh
26
- * $ pulumi import fivetran:index/destination:Destination my_imported_destination {your Destination Group ID}
88
+ * terraform import fivetran_destination.my_imported_destination {your Destination Group ID}
27
89
  * ```
28
90
  *
29
- * 4. Use the `terraform state show` command to get the values from the state:
91
+ * 5. Use the `terraform state show` command to get the values from the state:
30
92
  *
93
+ * ```sh
31
94
  * terraform state show 'fivetran_destination.my_imported_destination'
95
+ * ```
96
+ * 6. Copy the values and paste them to your `.tf` configuration.
32
97
  *
33
- * 5. Copy the values and paste them to your `.tf` configuration.
34
- *
35
- * -> The `config` object in the state contains all properties defined in the schema. You need to remove properties from the `config` that are not related to destinations. See the [Fivetran REST API documentation](https://fivetran.com/docs/rest-api/destinations/config) for reference to find the properties you need to keep in the `config` section.
98
+ * > The `config` object in the state contains all properties defined in the schema. You need to remove properties from the `config` that are not related to destinations. See the [Fivetran REST API documentation](https://fivetran.com/docs/rest-api/destinations/config) for reference to find the properties you need to keep in the `config` section.
36
99
  */
37
100
  class Destination extends pulumi.CustomResource {
38
101
  /**
@@ -45,8 +108,10 @@ class Destination extends pulumi.CustomResource {
45
108
  * @param opts Optional settings to control the behavior of the CustomResource.
46
109
  */
47
110
  static get(name, id, state, opts) {
48
- return new Destination(name, state, Object.assign(Object.assign({}, opts), { id: id }));
111
+ return new Destination(name, state, { ...opts, id: id });
49
112
  }
113
+ /** @internal */
114
+ static __pulumiType = 'fivetran:index/destination:Destination';
50
115
  /**
51
116
  * Returns true if the given object is an instance of Destination. This is designed to work even
52
117
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
@@ -62,48 +127,48 @@ class Destination extends pulumi.CustomResource {
62
127
  opts = opts || {};
63
128
  if (opts.id) {
64
129
  const state = argsOrState;
65
- resourceInputs["config"] = state ? state.config : undefined;
66
- resourceInputs["daylightSavingTimeEnabled"] = state ? state.daylightSavingTimeEnabled : undefined;
67
- resourceInputs["groupId"] = state ? state.groupId : undefined;
68
- resourceInputs["hybridDeploymentAgentId"] = state ? state.hybridDeploymentAgentId : undefined;
69
- resourceInputs["networkingMethod"] = state ? state.networkingMethod : undefined;
70
- resourceInputs["privateLinkId"] = state ? state.privateLinkId : undefined;
71
- resourceInputs["region"] = state ? state.region : undefined;
72
- resourceInputs["runSetupTests"] = state ? state.runSetupTests : undefined;
73
- resourceInputs["service"] = state ? state.service : undefined;
74
- resourceInputs["setupStatus"] = state ? state.setupStatus : undefined;
75
- resourceInputs["timeZoneOffset"] = state ? state.timeZoneOffset : undefined;
76
- resourceInputs["timeouts"] = state ? state.timeouts : undefined;
77
- resourceInputs["trustCertificates"] = state ? state.trustCertificates : undefined;
78
- resourceInputs["trustFingerprints"] = state ? state.trustFingerprints : undefined;
130
+ resourceInputs["config"] = state?.config;
131
+ resourceInputs["daylightSavingTimeEnabled"] = state?.daylightSavingTimeEnabled;
132
+ resourceInputs["groupId"] = state?.groupId;
133
+ resourceInputs["hybridDeploymentAgentId"] = state?.hybridDeploymentAgentId;
134
+ resourceInputs["networkingMethod"] = state?.networkingMethod;
135
+ resourceInputs["privateLinkId"] = state?.privateLinkId;
136
+ resourceInputs["region"] = state?.region;
137
+ resourceInputs["runSetupTests"] = state?.runSetupTests;
138
+ resourceInputs["service"] = state?.service;
139
+ resourceInputs["setupStatus"] = state?.setupStatus;
140
+ resourceInputs["timeZoneOffset"] = state?.timeZoneOffset;
141
+ resourceInputs["timeouts"] = state?.timeouts;
142
+ resourceInputs["trustCertificates"] = state?.trustCertificates;
143
+ resourceInputs["trustFingerprints"] = state?.trustFingerprints;
79
144
  }
80
145
  else {
81
146
  const args = argsOrState;
82
- if ((!args || args.groupId === undefined) && !opts.urn) {
147
+ if (args?.groupId === undefined && !opts.urn) {
83
148
  throw new Error("Missing required property 'groupId'");
84
149
  }
85
- if ((!args || args.region === undefined) && !opts.urn) {
150
+ if (args?.region === undefined && !opts.urn) {
86
151
  throw new Error("Missing required property 'region'");
87
152
  }
88
- if ((!args || args.service === undefined) && !opts.urn) {
153
+ if (args?.service === undefined && !opts.urn) {
89
154
  throw new Error("Missing required property 'service'");
90
155
  }
91
- if ((!args || args.timeZoneOffset === undefined) && !opts.urn) {
156
+ if (args?.timeZoneOffset === undefined && !opts.urn) {
92
157
  throw new Error("Missing required property 'timeZoneOffset'");
93
158
  }
94
- resourceInputs["config"] = args ? args.config : undefined;
95
- resourceInputs["daylightSavingTimeEnabled"] = args ? args.daylightSavingTimeEnabled : undefined;
96
- resourceInputs["groupId"] = args ? args.groupId : undefined;
97
- resourceInputs["hybridDeploymentAgentId"] = args ? args.hybridDeploymentAgentId : undefined;
98
- resourceInputs["networkingMethod"] = args ? args.networkingMethod : undefined;
99
- resourceInputs["privateLinkId"] = args ? args.privateLinkId : undefined;
100
- resourceInputs["region"] = args ? args.region : undefined;
101
- resourceInputs["runSetupTests"] = args ? args.runSetupTests : undefined;
102
- resourceInputs["service"] = args ? args.service : undefined;
103
- resourceInputs["timeZoneOffset"] = args ? args.timeZoneOffset : undefined;
104
- resourceInputs["timeouts"] = args ? args.timeouts : undefined;
105
- resourceInputs["trustCertificates"] = args ? args.trustCertificates : undefined;
106
- resourceInputs["trustFingerprints"] = args ? args.trustFingerprints : undefined;
159
+ resourceInputs["config"] = args?.config;
160
+ resourceInputs["daylightSavingTimeEnabled"] = args?.daylightSavingTimeEnabled;
161
+ resourceInputs["groupId"] = args?.groupId;
162
+ resourceInputs["hybridDeploymentAgentId"] = args?.hybridDeploymentAgentId;
163
+ resourceInputs["networkingMethod"] = args?.networkingMethod;
164
+ resourceInputs["privateLinkId"] = args?.privateLinkId;
165
+ resourceInputs["region"] = args?.region;
166
+ resourceInputs["runSetupTests"] = args?.runSetupTests;
167
+ resourceInputs["service"] = args?.service;
168
+ resourceInputs["timeZoneOffset"] = args?.timeZoneOffset;
169
+ resourceInputs["timeouts"] = args?.timeouts;
170
+ resourceInputs["trustCertificates"] = args?.trustCertificates;
171
+ resourceInputs["trustFingerprints"] = args?.trustFingerprints;
107
172
  resourceInputs["setupStatus"] = undefined /*out*/;
108
173
  }
109
174
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -111,6 +176,4 @@ class Destination extends pulumi.CustomResource {
111
176
  }
112
177
  }
113
178
  exports.Destination = Destination;
114
- /** @internal */
115
- Destination.__pulumiType = 'fivetran:index/destination:Destination';
116
179
  //# sourceMappingURL=destination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"destination.js","sourceRoot":"","sources":["../destination.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC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AgB,CAAC;YAC5D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,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,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAzIL,kCA0IC"}
@@ -1,6 +1,59 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
+ /**
5
+ * This resource allows you to manage list of approved SSH fingerprints for a particular destination.
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 myDestinationApprovedCertificates = new fivetran.DestinationCertificates("my_destination_approved_certificates", {
14
+ * destinationId: myDestination.id,
15
+ * certificates: [
16
+ * {
17
+ * hash: "jhgfJfgrI6yy...",
18
+ * encodedCert: "encoded_cert",
19
+ * },
20
+ * {
21
+ * hash: "eUtPirI6yytWe...",
22
+ * encodedCert: "encoded_cert",
23
+ * },
24
+ * ],
25
+ * });
26
+ * ```
27
+ *
28
+ * ## Import
29
+ *
30
+ * 1. To import an existing `fivetran.DestinationCertificates` resource into your Terraform state, you need to get **Destination Group ID** on the destination page in your Fivetran dashboard.
31
+ *
32
+ * 2. To retrieve existing destinations, use the [fivetran.getDestinations data source](https://www.terraform.io/docs/data-sources/destinations).
33
+ *
34
+ * 3. Define an empty resource in your `.tf` configuration:
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
39
+ *
40
+ * const myImportedDestinationCertificates = new fivetran.DestinationCertificates("my_imported_destination_certificates", {});
41
+ * ```
42
+ *
43
+ * 4. Run the `pulumi import` command:
44
+ *
45
+ * ```sh
46
+ * terraform import fivetran_destination_certificates.my_imported_destination_certificates {your Destination Group ID}
47
+ * ```
48
+ *
49
+ * 5. Use the `terraform state show` command to get the values from the state:
50
+ *
51
+ * ```sh
52
+ * terraform state show 'fivetran_destination_certificates.my_imported_destination_certificates'
53
+ * ```
54
+ *
55
+ * 6. Copy the values and paste them to your `.tf` configuration.
56
+ */
4
57
  export declare class DestinationCertificates extends pulumi.CustomResource {
5
58
  /**
6
59
  * Get an existing DestinationCertificates resource's state with the given name, ID, and optional extra
@@ -51,3 +104,4 @@ export interface DestinationCertificatesArgs {
51
104
  */
52
105
  destinationId: pulumi.Input<string>;
53
106
  }
107
+ //# sourceMappingURL=destinationCertificates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destinationCertificates.d.ts","sourceRoot":"","sources":["../destinationCertificates.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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+ // *** 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.DestinationCertificates = 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"));
31
+ /**
32
+ * This resource allows you to manage list of approved SSH fingerprints for a particular destination.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
39
+ *
40
+ * const myDestinationApprovedCertificates = new fivetran.DestinationCertificates("my_destination_approved_certificates", {
41
+ * destinationId: myDestination.id,
42
+ * certificates: [
43
+ * {
44
+ * hash: "jhgfJfgrI6yy...",
45
+ * encodedCert: "encoded_cert",
46
+ * },
47
+ * {
48
+ * hash: "eUtPirI6yytWe...",
49
+ * encodedCert: "encoded_cert",
50
+ * },
51
+ * ],
52
+ * });
53
+ * ```
54
+ *
55
+ * ## Import
56
+ *
57
+ * 1. To import an existing `fivetran.DestinationCertificates` resource into your Terraform state, you need to get **Destination Group ID** on the destination page in your Fivetran dashboard.
58
+ *
59
+ * 2. To retrieve existing destinations, use the [fivetran.getDestinations data source](https://www.terraform.io/docs/data-sources/destinations).
60
+ *
61
+ * 3. Define an empty resource in your `.tf` configuration:
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
66
+ *
67
+ * const myImportedDestinationCertificates = new fivetran.DestinationCertificates("my_imported_destination_certificates", {});
68
+ * ```
69
+ *
70
+ * 4. Run the `pulumi import` command:
71
+ *
72
+ * ```sh
73
+ * terraform import fivetran_destination_certificates.my_imported_destination_certificates {your Destination Group ID}
74
+ * ```
75
+ *
76
+ * 5. Use the `terraform state show` command to get the values from the state:
77
+ *
78
+ * ```sh
79
+ * terraform state show 'fivetran_destination_certificates.my_imported_destination_certificates'
80
+ * ```
81
+ *
82
+ * 6. Copy the values and paste them to your `.tf` configuration.
83
+ */
8
84
  class DestinationCertificates extends pulumi.CustomResource {
9
85
  /**
10
86
  * Get an existing DestinationCertificates resource's state with the given name, ID, and optional extra
@@ -16,8 +92,10 @@ class DestinationCertificates extends pulumi.CustomResource {
16
92
  * @param opts Optional settings to control the behavior of the CustomResource.
17
93
  */
18
94
  static get(name, id, state, opts) {
19
- return new DestinationCertificates(name, state, Object.assign(Object.assign({}, opts), { id: id }));
95
+ return new DestinationCertificates(name, state, { ...opts, id: id });
20
96
  }
97
+ /** @internal */
98
+ static __pulumiType = 'fivetran:index/destinationCertificates:DestinationCertificates';
21
99
  /**
22
100
  * Returns true if the given object is an instance of DestinationCertificates. This is designed to work even
23
101
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
@@ -33,22 +111,20 @@ class DestinationCertificates extends pulumi.CustomResource {
33
111
  opts = opts || {};
34
112
  if (opts.id) {
35
113
  const state = argsOrState;
36
- resourceInputs["certificates"] = state ? state.certificates : undefined;
37
- resourceInputs["destinationId"] = state ? state.destinationId : undefined;
114
+ resourceInputs["certificates"] = state?.certificates;
115
+ resourceInputs["destinationId"] = state?.destinationId;
38
116
  }
39
117
  else {
40
118
  const args = argsOrState;
41
- if ((!args || args.destinationId === undefined) && !opts.urn) {
119
+ if (args?.destinationId === undefined && !opts.urn) {
42
120
  throw new Error("Missing required property 'destinationId'");
43
121
  }
44
- resourceInputs["certificates"] = args ? args.certificates : undefined;
45
- resourceInputs["destinationId"] = args ? args.destinationId : undefined;
122
+ resourceInputs["certificates"] = args?.certificates;
123
+ resourceInputs["destinationId"] = args?.destinationId;
46
124
  }
47
125
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
48
126
  super(DestinationCertificates.__pulumiType, name, resourceInputs, opts);
49
127
  }
50
128
  }
51
129
  exports.DestinationCertificates = DestinationCertificates;
52
- /** @internal */
53
- DestinationCertificates.__pulumiType = 'fivetran:index/destinationCertificates:DestinationCertificates';
54
130
  //# sourceMappingURL=destinationCertificates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"destinationCertificates.js","sourceRoot":"","sources":["../destinationCertificates.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,G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C,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AA3DL,0DA4DC"}
@@ -10,8 +10,8 @@ import * as outputs from "./types/output";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as fivetran from "@ryan-pip/pulumi-fivetran";
12
12
  *
13
- * const myDestinationApprovedFingerprints = new fivetran.DestinationFingerprints("myDestinationApprovedFingerprints", {
14
- * destinationId: fivetran_destination.my_destination.id,
13
+ * const myDestinationApprovedFingerprints = new fivetran.DestinationFingerprints("my_destination_approved_fingerprints", {
14
+ * destinationId: myDestination.id,
15
15
  * fingerprints: [
16
16
  * {
17
17
  * hash: "jhgfJfgrI6yy...",
@@ -27,27 +27,30 @@ import * as outputs from "./types/output";
27
27
  *
28
28
  * ## Import
29
29
  *
30
- * 1. To import an existing `fivetran_destination_fingerprints` resource into your Terraform state, you need to get **Destination Group ID** on the destination page in your Fivetran dashboard.
30
+ * 1. To import an existing `fivetran.DestinationFingerprints` resource into your Terraform state, you need to get **Destination Group ID** on the destination page in your Fivetran dashboard.
31
31
  *
32
- * 2. To retrieve existing groups, use the [fivetran_groups data source](/docs/data-sources/groups).
32
+ * 2. To retrieve existing destinations, use the [fivetran.getDestinations data source](https://www.terraform.io/docs/data-sources/destinations).
33
33
  *
34
34
  * 3. Define an empty resource in your `.tf` configuration:
35
35
  *
36
- * hcl
37
- *
38
- * resource "fivetran_destination_fingerprints" "my_imported_destination_fingerprints" {
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
39
39
  *
40
- * }
40
+ * const myImportedDestinationFingerprints = new fivetran.DestinationFingerprints("my_imported_destination_fingerprints", {});
41
+ * ```
41
42
  *
42
43
  * 4. Run the `pulumi import` command:
43
44
  *
44
45
  * ```sh
45
- * $ pulumi import fivetran:index/destinationFingerprints:DestinationFingerprints my_imported_destination_fingerprints {your Destination Group ID}
46
+ * terraform import fivetran_destination_fingerprints.my_imported_destination_fingerprints {your Destination Group ID}
46
47
  * ```
47
48
  *
48
49
  * 5. Use the `terraform state show` command to get the values from the state:
49
50
  *
51
+ * ```sh
50
52
  * terraform state show 'fivetran_destination_fingerprints.my_imported_destination_fingerprints'
53
+ * ```
51
54
  *
52
55
  * 6. Copy the values and paste them to your `.tf` configuration.
53
56
  */
@@ -101,3 +104,4 @@ export interface DestinationFingerprintsArgs {
101
104
  destinationId: pulumi.Input<string>;
102
105
  fingerprints?: pulumi.Input<pulumi.Input<inputs.DestinationFingerprintsFingerprint>[]>;
103
106
  }
107
+ //# sourceMappingURL=destinationFingerprints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destinationFingerprints.d.ts","sourceRoot":"","sources":["../destinationFingerprints.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,uBAAuB;IAOhK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,uBAAuB;IAOlE;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7D,SAAwB,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,kCAAkC,EAAE,GAAG,SAAS,CAAC,CAAC;IAE9G;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAmBnG;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,kCAAkC,CAAC,EAAE,CAAC,CAAC;CAC1F;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,kCAAkC,CAAC,EAAE,CAAC,CAAC;CAC1F"}
@@ -1,10 +1,33 @@
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.DestinationFingerprints = 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 manage list of approved SSH fingerprints for a particular destination.
10
33
  *
@@ -14,8 +37,8 @@ const utilities = require("./utilities");
14
37
  * import * as pulumi from "@pulumi/pulumi";
15
38
  * import * as fivetran from "@ryan-pip/pulumi-fivetran";
16
39
  *
17
- * const myDestinationApprovedFingerprints = new fivetran.DestinationFingerprints("myDestinationApprovedFingerprints", {
18
- * destinationId: fivetran_destination.my_destination.id,
40
+ * const myDestinationApprovedFingerprints = new fivetran.DestinationFingerprints("my_destination_approved_fingerprints", {
41
+ * destinationId: myDestination.id,
19
42
  * fingerprints: [
20
43
  * {
21
44
  * hash: "jhgfJfgrI6yy...",
@@ -31,27 +54,30 @@ const utilities = require("./utilities");
31
54
  *
32
55
  * ## Import
33
56
  *
34
- * 1. To import an existing `fivetran_destination_fingerprints` resource into your Terraform state, you need to get **Destination Group ID** on the destination page in your Fivetran dashboard.
57
+ * 1. To import an existing `fivetran.DestinationFingerprints` resource into your Terraform state, you need to get **Destination Group ID** on the destination page in your Fivetran dashboard.
35
58
  *
36
- * 2. To retrieve existing groups, use the [fivetran_groups data source](/docs/data-sources/groups).
59
+ * 2. To retrieve existing destinations, use the [fivetran.getDestinations data source](https://www.terraform.io/docs/data-sources/destinations).
37
60
  *
38
61
  * 3. Define an empty resource in your `.tf` configuration:
39
62
  *
40
- * hcl
41
- *
42
- * resource "fivetran_destination_fingerprints" "my_imported_destination_fingerprints" {
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
43
66
  *
44
- * }
67
+ * const myImportedDestinationFingerprints = new fivetran.DestinationFingerprints("my_imported_destination_fingerprints", {});
68
+ * ```
45
69
  *
46
70
  * 4. Run the `pulumi import` command:
47
71
  *
48
72
  * ```sh
49
- * $ pulumi import fivetran:index/destinationFingerprints:DestinationFingerprints my_imported_destination_fingerprints {your Destination Group ID}
73
+ * terraform import fivetran_destination_fingerprints.my_imported_destination_fingerprints {your Destination Group ID}
50
74
  * ```
51
75
  *
52
76
  * 5. Use the `terraform state show` command to get the values from the state:
53
77
  *
78
+ * ```sh
54
79
  * terraform state show 'fivetran_destination_fingerprints.my_imported_destination_fingerprints'
80
+ * ```
55
81
  *
56
82
  * 6. Copy the values and paste them to your `.tf` configuration.
57
83
  */
@@ -66,8 +92,10 @@ class DestinationFingerprints extends pulumi.CustomResource {
66
92
  * @param opts Optional settings to control the behavior of the CustomResource.
67
93
  */
68
94
  static get(name, id, state, opts) {
69
- return new DestinationFingerprints(name, state, Object.assign(Object.assign({}, opts), { id: id }));
95
+ return new DestinationFingerprints(name, state, { ...opts, id: id });
70
96
  }
97
+ /** @internal */
98
+ static __pulumiType = 'fivetran:index/destinationFingerprints:DestinationFingerprints';
71
99
  /**
72
100
  * Returns true if the given object is an instance of DestinationFingerprints. This is designed to work even
73
101
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
@@ -83,22 +111,20 @@ class DestinationFingerprints extends pulumi.CustomResource {
83
111
  opts = opts || {};
84
112
  if (opts.id) {
85
113
  const state = argsOrState;
86
- resourceInputs["destinationId"] = state ? state.destinationId : undefined;
87
- resourceInputs["fingerprints"] = state ? state.fingerprints : undefined;
114
+ resourceInputs["destinationId"] = state?.destinationId;
115
+ resourceInputs["fingerprints"] = state?.fingerprints;
88
116
  }
89
117
  else {
90
118
  const args = argsOrState;
91
- if ((!args || args.destinationId === undefined) && !opts.urn) {
119
+ if (args?.destinationId === undefined && !opts.urn) {
92
120
  throw new Error("Missing required property 'destinationId'");
93
121
  }
94
- resourceInputs["destinationId"] = args ? args.destinationId : undefined;
95
- resourceInputs["fingerprints"] = args ? args.fingerprints : undefined;
122
+ resourceInputs["destinationId"] = args?.destinationId;
123
+ resourceInputs["fingerprints"] = args?.fingerprints;
96
124
  }
97
125
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
98
126
  super(DestinationFingerprints.__pulumiType, name, resourceInputs, opts);
99
127
  }
100
128
  }
101
129
  exports.DestinationFingerprints = DestinationFingerprints;
102
- /** @internal */
103
- DestinationFingerprints.__pulumiType = 'fivetran:index/destinationFingerprints:DestinationFingerprints';
104
130
  //# sourceMappingURL=destinationFingerprints.js.map