@ryan-pip/pulumi-fivetran 0.1.0

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 (199) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +56 -0
  3. package/config/index.d.ts +1 -0
  4. package/config/index.js +21 -0
  5. package/config/index.js.map +1 -0
  6. package/config/vars.d.ts +3 -0
  7. package/config/vars.js +28 -0
  8. package/config/vars.js.map +1 -0
  9. package/connector.d.ts +192 -0
  10. package/connector.js +88 -0
  11. package/connector.js.map +1 -0
  12. package/connectorCertificates.d.ts +53 -0
  13. package/connectorCertificates.js +54 -0
  14. package/connectorCertificates.js.map +1 -0
  15. package/connectorFingerprints.d.ts +103 -0
  16. package/connectorFingerprints.js +104 -0
  17. package/connectorFingerprints.js.map +1 -0
  18. package/connectorSchedule.d.ts +169 -0
  19. package/connectorSchedule.js +123 -0
  20. package/connectorSchedule.js.map +1 -0
  21. package/connectorSchemaConfig.d.ts +130 -0
  22. package/connectorSchemaConfig.js +72 -0
  23. package/connectorSchemaConfig.js.map +1 -0
  24. package/dbtProject.d.ts +205 -0
  25. package/dbtProject.js +117 -0
  26. package/dbtProject.js.map +1 -0
  27. package/dbtTransformation.d.ts +162 -0
  28. package/dbtTransformation.js +105 -0
  29. package/dbtTransformation.js.map +1 -0
  30. package/destination.d.ts +216 -0
  31. package/destination.js +114 -0
  32. package/destination.js.map +1 -0
  33. package/destinationCertificates.d.ts +53 -0
  34. package/destinationCertificates.js +54 -0
  35. package/destinationCertificates.js.map +1 -0
  36. package/destinationFingerprints.d.ts +103 -0
  37. package/destinationFingerprints.js +104 -0
  38. package/destinationFingerprints.js.map +1 -0
  39. package/externalLogging.d.ts +118 -0
  40. package/externalLogging.js +92 -0
  41. package/externalLogging.js.map +1 -0
  42. package/getConnector.d.ts +76 -0
  43. package/getConnector.js +50 -0
  44. package/getConnector.js.map +1 -0
  45. package/getConnectorCertificates.d.ts +39 -0
  46. package/getConnectorCertificates.js +20 -0
  47. package/getConnectorCertificates.js.map +1 -0
  48. package/getConnectorFingerprints.d.ts +67 -0
  49. package/getConnectorFingerprints.js +48 -0
  50. package/getConnectorFingerprints.js.map +1 -0
  51. package/getConnectorsMetadata.d.ts +51 -0
  52. package/getConnectorsMetadata.js +44 -0
  53. package/getConnectorsMetadata.js.map +1 -0
  54. package/getDbtModels.d.ts +67 -0
  55. package/getDbtModels.js +48 -0
  56. package/getDbtModels.js.map +1 -0
  57. package/getDbtProject.d.ts +112 -0
  58. package/getDbtProject.js +48 -0
  59. package/getDbtProject.js.map +1 -0
  60. package/getDbtProjects.d.ts +38 -0
  61. package/getDbtProjects.js +41 -0
  62. package/getDbtProjects.js.map +1 -0
  63. package/getDbtTransformation.d.ts +99 -0
  64. package/getDbtTransformation.js +48 -0
  65. package/getDbtTransformation.js.map +1 -0
  66. package/getDestination.d.ts +62 -0
  67. package/getDestination.js +48 -0
  68. package/getDestination.js.map +1 -0
  69. package/getDestinationCertificates.d.ts +39 -0
  70. package/getDestinationCertificates.js +20 -0
  71. package/getDestinationCertificates.js.map +1 -0
  72. package/getDestinationFingerprints.d.ts +67 -0
  73. package/getDestinationFingerprints.js +48 -0
  74. package/getDestinationFingerprints.js.map +1 -0
  75. package/getExternalLogging.d.ts +87 -0
  76. package/getExternalLogging.js +49 -0
  77. package/getExternalLogging.js.map +1 -0
  78. package/getGroup.d.ts +70 -0
  79. package/getGroup.js +47 -0
  80. package/getGroup.js.map +1 -0
  81. package/getGroupConnectors.d.ts +77 -0
  82. package/getGroupConnectors.js +51 -0
  83. package/getGroupConnectors.js.map +1 -0
  84. package/getGroupServiceAccount.d.ts +62 -0
  85. package/getGroupServiceAccount.js +47 -0
  86. package/getGroupServiceAccount.js.map +1 -0
  87. package/getGroupSshKey.d.ts +62 -0
  88. package/getGroupSshKey.js +47 -0
  89. package/getGroupSshKey.js.map +1 -0
  90. package/getGroupUsers.d.ts +63 -0
  91. package/getGroupUsers.js +48 -0
  92. package/getGroupUsers.js.map +1 -0
  93. package/getGroups.d.ts +51 -0
  94. package/getGroups.js +44 -0
  95. package/getGroups.js.map +1 -0
  96. package/getLocalProcessingAgent.d.ts +72 -0
  97. package/getLocalProcessingAgent.js +47 -0
  98. package/getLocalProcessingAgent.js.map +1 -0
  99. package/getLocalProcessingAgents.d.ts +38 -0
  100. package/getLocalProcessingAgents.js +41 -0
  101. package/getLocalProcessingAgents.js.map +1 -0
  102. package/getProxyAgent.d.ts +82 -0
  103. package/getProxyAgent.js +47 -0
  104. package/getProxyAgent.js.map +1 -0
  105. package/getProxyAgents.d.ts +51 -0
  106. package/getProxyAgents.js +44 -0
  107. package/getProxyAgents.js.map +1 -0
  108. package/getRoles.d.ts +51 -0
  109. package/getRoles.js +44 -0
  110. package/getRoles.js.map +1 -0
  111. package/getTeam.d.ts +70 -0
  112. package/getTeam.js +47 -0
  113. package/getTeam.js.map +1 -0
  114. package/getTeamConnectorMemberships.d.ts +45 -0
  115. package/getTeamConnectorMemberships.js +26 -0
  116. package/getTeamConnectorMemberships.js.map +1 -0
  117. package/getTeamGroupMemberships.d.ts +67 -0
  118. package/getTeamGroupMemberships.js +48 -0
  119. package/getTeamGroupMemberships.js.map +1 -0
  120. package/getTeamUserMemberships.d.ts +67 -0
  121. package/getTeamUserMemberships.js +48 -0
  122. package/getTeamUserMemberships.js.map +1 -0
  123. package/getTeams.d.ts +59 -0
  124. package/getTeams.js +45 -0
  125. package/getTeams.js.map +1 -0
  126. package/getUser.d.ts +98 -0
  127. package/getUser.js +47 -0
  128. package/getUser.js.map +1 -0
  129. package/getUserConnectorMemberships.d.ts +67 -0
  130. package/getUserConnectorMemberships.js +48 -0
  131. package/getUserConnectorMemberships.js.map +1 -0
  132. package/getUserGroupMemberships.d.ts +67 -0
  133. package/getUserGroupMemberships.js +48 -0
  134. package/getUserGroupMemberships.js.map +1 -0
  135. package/getUsers.d.ts +59 -0
  136. package/getUsers.js +45 -0
  137. package/getUsers.js.map +1 -0
  138. package/getWebhook.d.ts +94 -0
  139. package/getWebhook.js +47 -0
  140. package/getWebhook.js.map +1 -0
  141. package/getWebhooks.d.ts +38 -0
  142. package/getWebhooks.js +41 -0
  143. package/getWebhooks.js.map +1 -0
  144. package/group.d.ts +102 -0
  145. package/group.js +91 -0
  146. package/group.js.map +1 -0
  147. package/groupUsers.d.ts +79 -0
  148. package/groupUsers.js +80 -0
  149. package/groupUsers.js.map +1 -0
  150. package/index.d.ts +177 -0
  151. package/index.js +251 -0
  152. package/index.js.map +1 -0
  153. package/localProcessingAgent.d.ts +125 -0
  154. package/localProcessingAgent.js +86 -0
  155. package/localProcessingAgent.js.map +1 -0
  156. package/package.json +29 -0
  157. package/package.json.bak +29 -0
  158. package/provider.d.ts +33 -0
  159. package/provider.js +50 -0
  160. package/provider.js.map +1 -0
  161. package/proxyAgent.d.ts +117 -0
  162. package/proxyAgent.js +84 -0
  163. package/proxyAgent.js.map +1 -0
  164. package/team.d.ts +115 -0
  165. package/team.js +99 -0
  166. package/team.js.map +1 -0
  167. package/teamConnectorMembership.d.ts +107 -0
  168. package/teamConnectorMembership.js +108 -0
  169. package/teamConnectorMembership.js.map +1 -0
  170. package/teamGroupMembership.d.ts +82 -0
  171. package/teamGroupMembership.js +83 -0
  172. package/teamGroupMembership.js.map +1 -0
  173. package/teamUserMembership.d.ts +105 -0
  174. package/teamUserMembership.js +106 -0
  175. package/teamUserMembership.js.map +1 -0
  176. package/types/index.d.ts +3 -0
  177. package/types/index.js +11 -0
  178. package/types/index.js.map +1 -0
  179. package/types/input.d.ts +18230 -0
  180. package/types/input.js +5 -0
  181. package/types/input.js.map +1 -0
  182. package/types/output.d.ts +12255 -0
  183. package/types/output.js +5 -0
  184. package/types/output.js.map +1 -0
  185. package/user.d.ts +191 -0
  186. package/user.js +119 -0
  187. package/user.js.map +1 -0
  188. package/userConnectorMembership.d.ts +107 -0
  189. package/userConnectorMembership.js +108 -0
  190. package/userConnectorMembership.js.map +1 -0
  191. package/userGroupMembership.d.ts +82 -0
  192. package/userGroupMembership.js +83 -0
  193. package/userGroupMembership.js.map +1 -0
  194. package/utilities.d.ts +8 -0
  195. package/utilities.js +101 -0
  196. package/utilities.js.map +1 -0
  197. package/webhook.d.ts +165 -0
  198. package/webhook.js +111 -0
  199. package/webhook.js.map +1 -0
@@ -0,0 +1,5 @@
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
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
package/user.d.ts ADDED
@@ -0,0 +1,191 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * -This resource allows you to create, update, and delete users.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
10
+ *
11
+ * const user = new fivetran.User("user", {
12
+ * email: "user@email.address.com",
13
+ * familyName: "Doe",
14
+ * givenName: "John",
15
+ * phone: "+353 00 0000 0000",
16
+ * });
17
+ * ```
18
+ *
19
+ * ## Import
20
+ *
21
+ * 1. To import an existing `fivetran_user` resource into your Terraform state, you need to get `user_id`.
22
+ *
23
+ * You can retrieve all users using the [fivetran_users data source](/docs/data-sources/users).
24
+ *
25
+ * 2. Define an empty resource in your `.tf` configuration:
26
+ *
27
+ * hcl
28
+ *
29
+ * resource "fivetran_user" "my_imported_fivetran_user" {
30
+ *
31
+ * }
32
+ *
33
+ * 3. Run the `pulumi import` command:
34
+ *
35
+ * ```sh
36
+ * $ pulumi import fivetran:index/user:User my_imported_fivetran_user {user_id}
37
+ * ```
38
+ *
39
+ * 4. Use the `terraform state show` command to get the values from the state:
40
+ *
41
+ * terraform state show 'fivetran_user.my_imported_fivetran_user'
42
+ *
43
+ * 5. Copy the values and paste them to your `.tf` configuration.
44
+ */
45
+ export declare class User extends pulumi.CustomResource {
46
+ /**
47
+ * Get an existing User resource's state with the given name, ID, and optional extra
48
+ * properties used to qualify the lookup.
49
+ *
50
+ * @param name The _unique_ name of the resulting resource.
51
+ * @param id The _unique_ provider ID of the resource to lookup.
52
+ * @param state Any extra arguments used during the lookup.
53
+ * @param opts Optional settings to control the behavior of the CustomResource.
54
+ */
55
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserState, opts?: pulumi.CustomResourceOptions): User;
56
+ /**
57
+ * Returns true if the given object is an instance of User. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj: any): obj is User;
61
+ /**
62
+ * The timestamp that the user created their Fivetran account.
63
+ */
64
+ readonly createdAt: pulumi.Output<string>;
65
+ /**
66
+ * The email address that the user has associated with their user profile.
67
+ */
68
+ readonly email: pulumi.Output<string>;
69
+ /**
70
+ * The last name of the user.
71
+ */
72
+ readonly familyName: pulumi.Output<string>;
73
+ /**
74
+ * The first name of the user.
75
+ */
76
+ readonly givenName: pulumi.Output<string>;
77
+ /**
78
+ * The field indicates whether the user has been invited to your account.
79
+ */
80
+ readonly invited: pulumi.Output<boolean>;
81
+ /**
82
+ * The last time that the user has logged into their Fivetran account.
83
+ */
84
+ readonly loggedInAt: pulumi.Output<string>;
85
+ /**
86
+ * The phone number of the user.
87
+ */
88
+ readonly phone: pulumi.Output<string | undefined>;
89
+ /**
90
+ * The user's avatar as a URL link (for example, 'http://mycompany.com/avatars/john_white.png') or base64 data URI (for example, 'data:image/png;base64,aHR0cDovL215Y29tcGFueS5jb20vYXZhdGFycy9qb2huX3doaXRlLnBuZw==')
91
+ */
92
+ readonly picture: pulumi.Output<string | undefined>;
93
+ /**
94
+ * The role that you would like to assign to the user.
95
+ */
96
+ readonly role: pulumi.Output<string | undefined>;
97
+ /**
98
+ * The field indicates whether the user has verified their email address in the account creation process.
99
+ */
100
+ readonly verified: pulumi.Output<boolean>;
101
+ /**
102
+ * Create a User resource with the given unique name, arguments, and options.
103
+ *
104
+ * @param name The _unique_ name of the resource.
105
+ * @param args The arguments to use to populate this resource's properties.
106
+ * @param opts A bag of options that control this resource's behavior.
107
+ */
108
+ constructor(name: string, args: UserArgs, opts?: pulumi.CustomResourceOptions);
109
+ }
110
+ /**
111
+ * Input properties used for looking up and filtering User resources.
112
+ */
113
+ export interface UserState {
114
+ /**
115
+ * The timestamp that the user created their Fivetran account.
116
+ */
117
+ createdAt?: pulumi.Input<string>;
118
+ /**
119
+ * The email address that the user has associated with their user profile.
120
+ */
121
+ email?: pulumi.Input<string>;
122
+ /**
123
+ * The last name of the user.
124
+ */
125
+ familyName?: pulumi.Input<string>;
126
+ /**
127
+ * The first name of the user.
128
+ */
129
+ givenName?: pulumi.Input<string>;
130
+ /**
131
+ * The field indicates whether the user has been invited to your account.
132
+ */
133
+ invited?: pulumi.Input<boolean>;
134
+ /**
135
+ * The last time that the user has logged into their Fivetran account.
136
+ */
137
+ loggedInAt?: pulumi.Input<string>;
138
+ /**
139
+ * The phone number of the user.
140
+ */
141
+ phone?: pulumi.Input<string>;
142
+ /**
143
+ * The user's avatar as a URL link (for example, 'http://mycompany.com/avatars/john_white.png') or base64 data URI (for example, 'data:image/png;base64,aHR0cDovL215Y29tcGFueS5jb20vYXZhdGFycy9qb2huX3doaXRlLnBuZw==')
144
+ */
145
+ picture?: pulumi.Input<string>;
146
+ /**
147
+ * The role that you would like to assign to the user.
148
+ */
149
+ role?: pulumi.Input<string>;
150
+ /**
151
+ * The field indicates whether the user has verified their email address in the account creation process.
152
+ */
153
+ verified?: pulumi.Input<boolean>;
154
+ }
155
+ /**
156
+ * The set of arguments for constructing a User resource.
157
+ */
158
+ export interface UserArgs {
159
+ /**
160
+ * The email address that the user has associated with their user profile.
161
+ */
162
+ email: pulumi.Input<string>;
163
+ /**
164
+ * The last name of the user.
165
+ */
166
+ familyName: pulumi.Input<string>;
167
+ /**
168
+ * The first name of the user.
169
+ */
170
+ givenName: pulumi.Input<string>;
171
+ /**
172
+ * The field indicates whether the user has been invited to your account.
173
+ */
174
+ invited?: pulumi.Input<boolean>;
175
+ /**
176
+ * The phone number of the user.
177
+ */
178
+ phone?: pulumi.Input<string>;
179
+ /**
180
+ * The user's avatar as a URL link (for example, 'http://mycompany.com/avatars/john_white.png') or base64 data URI (for example, 'data:image/png;base64,aHR0cDovL215Y29tcGFueS5jb20vYXZhdGFycy9qb2huX3doaXRlLnBuZw==')
181
+ */
182
+ picture?: pulumi.Input<string>;
183
+ /**
184
+ * The role that you would like to assign to the user.
185
+ */
186
+ role?: pulumi.Input<string>;
187
+ /**
188
+ * The field indicates whether the user has verified their email address in the account creation process.
189
+ */
190
+ verified?: pulumi.Input<boolean>;
191
+ }
package/user.js ADDED
@@ -0,0 +1,119 @@
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.User = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * -This resource allows you to create, update, and delete users.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
16
+ *
17
+ * const user = new fivetran.User("user", {
18
+ * email: "user@email.address.com",
19
+ * familyName: "Doe",
20
+ * givenName: "John",
21
+ * phone: "+353 00 0000 0000",
22
+ * });
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * 1. To import an existing `fivetran_user` resource into your Terraform state, you need to get `user_id`.
28
+ *
29
+ * You can retrieve all users using the [fivetran_users data source](/docs/data-sources/users).
30
+ *
31
+ * 2. Define an empty resource in your `.tf` configuration:
32
+ *
33
+ * hcl
34
+ *
35
+ * resource "fivetran_user" "my_imported_fivetran_user" {
36
+ *
37
+ * }
38
+ *
39
+ * 3. Run the `pulumi import` command:
40
+ *
41
+ * ```sh
42
+ * $ pulumi import fivetran:index/user:User my_imported_fivetran_user {user_id}
43
+ * ```
44
+ *
45
+ * 4. Use the `terraform state show` command to get the values from the state:
46
+ *
47
+ * terraform state show 'fivetran_user.my_imported_fivetran_user'
48
+ *
49
+ * 5. Copy the values and paste them to your `.tf` configuration.
50
+ */
51
+ class User extends pulumi.CustomResource {
52
+ /**
53
+ * Get an existing User resource's state with the given name, ID, and optional extra
54
+ * properties used to qualify the lookup.
55
+ *
56
+ * @param name The _unique_ name of the resulting resource.
57
+ * @param id The _unique_ provider ID of the resource to lookup.
58
+ * @param state Any extra arguments used during the lookup.
59
+ * @param opts Optional settings to control the behavior of the CustomResource.
60
+ */
61
+ static get(name, id, state, opts) {
62
+ return new User(name, state, Object.assign(Object.assign({}, opts), { id: id }));
63
+ }
64
+ /**
65
+ * Returns true if the given object is an instance of User. This is designed to work even
66
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
67
+ */
68
+ static isInstance(obj) {
69
+ if (obj === undefined || obj === null) {
70
+ return false;
71
+ }
72
+ return obj['__pulumiType'] === User.__pulumiType;
73
+ }
74
+ constructor(name, argsOrState, opts) {
75
+ let resourceInputs = {};
76
+ opts = opts || {};
77
+ if (opts.id) {
78
+ const state = argsOrState;
79
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
80
+ resourceInputs["email"] = state ? state.email : undefined;
81
+ resourceInputs["familyName"] = state ? state.familyName : undefined;
82
+ resourceInputs["givenName"] = state ? state.givenName : undefined;
83
+ resourceInputs["invited"] = state ? state.invited : undefined;
84
+ resourceInputs["loggedInAt"] = state ? state.loggedInAt : undefined;
85
+ resourceInputs["phone"] = state ? state.phone : undefined;
86
+ resourceInputs["picture"] = state ? state.picture : undefined;
87
+ resourceInputs["role"] = state ? state.role : undefined;
88
+ resourceInputs["verified"] = state ? state.verified : undefined;
89
+ }
90
+ else {
91
+ const args = argsOrState;
92
+ if ((!args || args.email === undefined) && !opts.urn) {
93
+ throw new Error("Missing required property 'email'");
94
+ }
95
+ if ((!args || args.familyName === undefined) && !opts.urn) {
96
+ throw new Error("Missing required property 'familyName'");
97
+ }
98
+ if ((!args || args.givenName === undefined) && !opts.urn) {
99
+ throw new Error("Missing required property 'givenName'");
100
+ }
101
+ resourceInputs["email"] = args ? args.email : undefined;
102
+ resourceInputs["familyName"] = args ? args.familyName : undefined;
103
+ resourceInputs["givenName"] = args ? args.givenName : undefined;
104
+ resourceInputs["invited"] = args ? args.invited : undefined;
105
+ resourceInputs["phone"] = args ? args.phone : undefined;
106
+ resourceInputs["picture"] = args ? args.picture : undefined;
107
+ resourceInputs["role"] = args ? args.role : undefined;
108
+ resourceInputs["verified"] = args ? args.verified : undefined;
109
+ resourceInputs["createdAt"] = undefined /*out*/;
110
+ resourceInputs["loggedInAt"] = undefined /*out*/;
111
+ }
112
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
113
+ super(User.__pulumiType, name, resourceInputs, opts);
114
+ }
115
+ }
116
+ exports.User = User;
117
+ /** @internal */
118
+ User.__pulumiType = 'fivetran:index/user:User';
119
+ //# sourceMappingURL=user.js.map
package/user.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../user.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAA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CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AApHL,oBAqHC;AAvGG,gBAAgB;AACO,iBAAY,GAAG,0BAA0B,CAAC"}
@@ -0,0 +1,107 @@
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 allows you to create, update, and delete connector membership for user
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 testUserConnectorMembership = new fivetran.UserConnectorMembership("testUserConnectorMembership", {
14
+ * userId: "test_user",
15
+ * connectors: [
16
+ * {
17
+ * connectorId: "test_connector",
18
+ * role: "Connector Administrator",
19
+ * createdAt: "2020-05-25T15:26:47.306509Z",
20
+ * },
21
+ * {
22
+ * connectorId: "test_connector",
23
+ * role: "Connector Administrator",
24
+ * createdAt: "2020-05-25T15:26:47.306509Z",
25
+ * },
26
+ * ],
27
+ * }, {
28
+ * provider: fivetran_provider,
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * 1. To import an existing `fivetran_user_connector_membership` resource into your Terraform state, you need to get `user_id` and `connector_id`
35
+ *
36
+ * You can retrieve all users using the [fivetran_users data source](/docs/data-sources/users).
37
+ *
38
+ * 2. Define an empty resource in your `.tf` configuration:
39
+ *
40
+ * hcl
41
+ *
42
+ * resource "fivetran_user_connector_membership" "my_imported_fivetran_user_connector_membership" {
43
+ *
44
+ * }
45
+ *
46
+ * 3. Run the `pulumi import` command:
47
+ *
48
+ * ```sh
49
+ * $ pulumi import fivetran:index/userConnectorMembership:UserConnectorMembership my_imported_fivetran_user_connector_membership {user_id}
50
+ * ```
51
+ *
52
+ * 4. Use the `terraform state show` command to get the values from the state:
53
+ *
54
+ * terraform state show 'fivetran_user_connector_membership.my_imported_fivetran_user_connector_membership'
55
+ *
56
+ * 5. Copy the values and paste them to your `.tf` configuration.
57
+ */
58
+ export declare class UserConnectorMembership extends pulumi.CustomResource {
59
+ /**
60
+ * Get an existing UserConnectorMembership resource's state with the given name, ID, and optional extra
61
+ * properties used to qualify the lookup.
62
+ *
63
+ * @param name The _unique_ name of the resulting resource.
64
+ * @param id The _unique_ provider ID of the resource to lookup.
65
+ * @param state Any extra arguments used during the lookup.
66
+ * @param opts Optional settings to control the behavior of the CustomResource.
67
+ */
68
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserConnectorMembershipState, opts?: pulumi.CustomResourceOptions): UserConnectorMembership;
69
+ /**
70
+ * Returns true if the given object is an instance of UserConnectorMembership. This is designed to work even
71
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
72
+ */
73
+ static isInstance(obj: any): obj is UserConnectorMembership;
74
+ readonly connectors: pulumi.Output<outputs.UserConnectorMembershipConnector[] | undefined>;
75
+ /**
76
+ * The unique identifier for the user within your account.
77
+ */
78
+ readonly userId: pulumi.Output<string>;
79
+ /**
80
+ * Create a UserConnectorMembership resource with the given unique name, arguments, and options.
81
+ *
82
+ * @param name The _unique_ name of the resource.
83
+ * @param args The arguments to use to populate this resource's properties.
84
+ * @param opts A bag of options that control this resource's behavior.
85
+ */
86
+ constructor(name: string, args: UserConnectorMembershipArgs, opts?: pulumi.CustomResourceOptions);
87
+ }
88
+ /**
89
+ * Input properties used for looking up and filtering UserConnectorMembership resources.
90
+ */
91
+ export interface UserConnectorMembershipState {
92
+ connectors?: pulumi.Input<pulumi.Input<inputs.UserConnectorMembershipConnector>[]>;
93
+ /**
94
+ * The unique identifier for the user within your account.
95
+ */
96
+ userId?: pulumi.Input<string>;
97
+ }
98
+ /**
99
+ * The set of arguments for constructing a UserConnectorMembership resource.
100
+ */
101
+ export interface UserConnectorMembershipArgs {
102
+ connectors?: pulumi.Input<pulumi.Input<inputs.UserConnectorMembershipConnector>[]>;
103
+ /**
104
+ * The unique identifier for the user within your account.
105
+ */
106
+ userId: pulumi.Input<string>;
107
+ }
@@ -0,0 +1,108 @@
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.UserConnectorMembership = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * This resource allows you to create, update, and delete connector membership for user
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as fivetran from "@ryan-pip/pulumi-fivetran";
16
+ *
17
+ * const testUserConnectorMembership = new fivetran.UserConnectorMembership("testUserConnectorMembership", {
18
+ * userId: "test_user",
19
+ * connectors: [
20
+ * {
21
+ * connectorId: "test_connector",
22
+ * role: "Connector Administrator",
23
+ * createdAt: "2020-05-25T15:26:47.306509Z",
24
+ * },
25
+ * {
26
+ * connectorId: "test_connector",
27
+ * role: "Connector Administrator",
28
+ * createdAt: "2020-05-25T15:26:47.306509Z",
29
+ * },
30
+ * ],
31
+ * }, {
32
+ * provider: fivetran_provider,
33
+ * });
34
+ * ```
35
+ *
36
+ * ## Import
37
+ *
38
+ * 1. To import an existing `fivetran_user_connector_membership` resource into your Terraform state, you need to get `user_id` and `connector_id`
39
+ *
40
+ * You can retrieve all users using the [fivetran_users data source](/docs/data-sources/users).
41
+ *
42
+ * 2. Define an empty resource in your `.tf` configuration:
43
+ *
44
+ * hcl
45
+ *
46
+ * resource "fivetran_user_connector_membership" "my_imported_fivetran_user_connector_membership" {
47
+ *
48
+ * }
49
+ *
50
+ * 3. Run the `pulumi import` command:
51
+ *
52
+ * ```sh
53
+ * $ pulumi import fivetran:index/userConnectorMembership:UserConnectorMembership my_imported_fivetran_user_connector_membership {user_id}
54
+ * ```
55
+ *
56
+ * 4. Use the `terraform state show` command to get the values from the state:
57
+ *
58
+ * terraform state show 'fivetran_user_connector_membership.my_imported_fivetran_user_connector_membership'
59
+ *
60
+ * 5. Copy the values and paste them to your `.tf` configuration.
61
+ */
62
+ class UserConnectorMembership extends pulumi.CustomResource {
63
+ /**
64
+ * Get an existing UserConnectorMembership resource's state with the given name, ID, and optional extra
65
+ * properties used to qualify the lookup.
66
+ *
67
+ * @param name The _unique_ name of the resulting resource.
68
+ * @param id The _unique_ provider ID of the resource to lookup.
69
+ * @param state Any extra arguments used during the lookup.
70
+ * @param opts Optional settings to control the behavior of the CustomResource.
71
+ */
72
+ static get(name, id, state, opts) {
73
+ return new UserConnectorMembership(name, state, Object.assign(Object.assign({}, opts), { id: id }));
74
+ }
75
+ /**
76
+ * Returns true if the given object is an instance of UserConnectorMembership. This is designed to work even
77
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
78
+ */
79
+ static isInstance(obj) {
80
+ if (obj === undefined || obj === null) {
81
+ return false;
82
+ }
83
+ return obj['__pulumiType'] === UserConnectorMembership.__pulumiType;
84
+ }
85
+ constructor(name, argsOrState, opts) {
86
+ let resourceInputs = {};
87
+ opts = opts || {};
88
+ if (opts.id) {
89
+ const state = argsOrState;
90
+ resourceInputs["connectors"] = state ? state.connectors : undefined;
91
+ resourceInputs["userId"] = state ? state.userId : undefined;
92
+ }
93
+ else {
94
+ const args = argsOrState;
95
+ if ((!args || args.userId === undefined) && !opts.urn) {
96
+ throw new Error("Missing required property 'userId'");
97
+ }
98
+ resourceInputs["connectors"] = args ? args.connectors : undefined;
99
+ resourceInputs["userId"] = args ? args.userId : undefined;
100
+ }
101
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
102
+ super(UserConnectorMembership.__pulumiType, name, resourceInputs, opts);
103
+ }
104
+ }
105
+ exports.UserConnectorMembership = UserConnectorMembership;
106
+ /** @internal */
107
+ UserConnectorMembership.__pulumiType = 'fivetran:index/userConnectorMembership:UserConnectorMembership';
108
+ //# sourceMappingURL=userConnectorMembership.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userConnectorMembership.js","sourceRoot":"","sources":["../userConnectorMembership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,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,G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DA4DC;AA9CG,gBAAgB;AACO,oCAAY,GAAG,gEAAgE,CAAC"}
@@ -0,0 +1,82 @@
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 allows you to create, update, and delete group membership for user
6
+ *
7
+ * ## Import
8
+ *
9
+ * 1. To import an existing `fivetran_user_group_membership` resource into your Terraform state, you need to get `user_id` and `group_id`
10
+ *
11
+ * You can retrieve all users using the [fivetran_users data source](/docs/data-sources/users).
12
+ *
13
+ * 2. Define an empty resource in your `.tf` configuration:
14
+ *
15
+ * hcl
16
+ *
17
+ * resource "fivetran_user_group_membership" "my_imported_fivetran_user_group_membership" {
18
+ *
19
+ * }
20
+ *
21
+ * 3. Run the `pulumi import` command:
22
+ *
23
+ * ```sh
24
+ * $ pulumi import fivetran:index/userGroupMembership:UserGroupMembership my_imported_fivetran_user_group_membership {user_id}
25
+ * ```
26
+ *
27
+ * 4. Use the `terraform state show` command to get the values from the state:
28
+ *
29
+ * terraform state show 'fivetran_user_group_membership.my_imported_fivetran_user_group_membership'
30
+ *
31
+ * 5. Copy the values and paste them to your `.tf` configuration.
32
+ */
33
+ export declare class UserGroupMembership extends pulumi.CustomResource {
34
+ /**
35
+ * Get an existing UserGroupMembership resource's state with the given name, ID, and optional extra
36
+ * properties used to qualify the lookup.
37
+ *
38
+ * @param name The _unique_ name of the resulting resource.
39
+ * @param id The _unique_ provider ID of the resource to lookup.
40
+ * @param state Any extra arguments used during the lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserGroupMembershipState, opts?: pulumi.CustomResourceOptions): UserGroupMembership;
44
+ /**
45
+ * Returns true if the given object is an instance of UserGroupMembership. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj: any): obj is UserGroupMembership;
49
+ readonly groups: pulumi.Output<outputs.UserGroupMembershipGroup[] | undefined>;
50
+ /**
51
+ * The unique identifier for the user within your account.
52
+ */
53
+ readonly userId: pulumi.Output<string>;
54
+ /**
55
+ * Create a UserGroupMembership resource with the given unique name, arguments, and options.
56
+ *
57
+ * @param name The _unique_ name of the resource.
58
+ * @param args The arguments to use to populate this resource's properties.
59
+ * @param opts A bag of options that control this resource's behavior.
60
+ */
61
+ constructor(name: string, args: UserGroupMembershipArgs, opts?: pulumi.CustomResourceOptions);
62
+ }
63
+ /**
64
+ * Input properties used for looking up and filtering UserGroupMembership resources.
65
+ */
66
+ export interface UserGroupMembershipState {
67
+ groups?: pulumi.Input<pulumi.Input<inputs.UserGroupMembershipGroup>[]>;
68
+ /**
69
+ * The unique identifier for the user within your account.
70
+ */
71
+ userId?: pulumi.Input<string>;
72
+ }
73
+ /**
74
+ * The set of arguments for constructing a UserGroupMembership resource.
75
+ */
76
+ export interface UserGroupMembershipArgs {
77
+ groups?: pulumi.Input<pulumi.Input<inputs.UserGroupMembershipGroup>[]>;
78
+ /**
79
+ * The unique identifier for the user within your account.
80
+ */
81
+ userId: pulumi.Input<string>;
82
+ }