@ryan-pip/pulumi-fivetran 1.9.37 → 1.9.40

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 (44) hide show
  1. package/connectionV2.d.ts +362 -0
  2. package/connectionV2.d.ts.map +1 -0
  3. package/connectionV2.js +159 -0
  4. package/connectionV2.js.map +1 -0
  5. package/connectionV2PauseState.d.ts +82 -0
  6. package/connectionV2PauseState.d.ts.map +1 -0
  7. package/connectionV2PauseState.js +101 -0
  8. package/connectionV2PauseState.js.map +1 -0
  9. package/getHybridDeploymentAgents.d.ts +0 -4
  10. package/getHybridDeploymentAgents.d.ts.map +1 -1
  11. package/getHybridDeploymentAgents.js.map +1 -1
  12. package/getPrivateLinks.d.ts +0 -4
  13. package/getPrivateLinks.d.ts.map +1 -1
  14. package/getPrivateLinks.js.map +1 -1
  15. package/getProxyAgents.d.ts +0 -4
  16. package/getProxyAgents.d.ts.map +1 -1
  17. package/getProxyAgents.js.map +1 -1
  18. package/getQuickstartPackages.d.ts +0 -4
  19. package/getQuickstartPackages.d.ts.map +1 -1
  20. package/getQuickstartPackages.js.map +1 -1
  21. package/getTransformationProjects.d.ts +0 -4
  22. package/getTransformationProjects.d.ts.map +1 -1
  23. package/getTransformationProjects.js.map +1 -1
  24. package/getTransformations.d.ts +0 -4
  25. package/getTransformations.d.ts.map +1 -1
  26. package/getTransformations.js.map +1 -1
  27. package/getUserConnectorMemberships.d.ts +0 -4
  28. package/getUserConnectorMemberships.d.ts.map +1 -1
  29. package/getUserConnectorMemberships.js.map +1 -1
  30. package/getUserGroupMemberships.d.ts +0 -4
  31. package/getUserGroupMemberships.d.ts.map +1 -1
  32. package/getUserGroupMemberships.js.map +1 -1
  33. package/getWebhooks.d.ts +0 -4
  34. package/getWebhooks.d.ts.map +1 -1
  35. package/getWebhooks.js.map +1 -1
  36. package/index.d.ts +6 -0
  37. package/index.d.ts.map +1 -1
  38. package/index.js +13 -3
  39. package/index.js.map +1 -1
  40. package/package.json +2 -2
  41. package/types/input.d.ts +475 -51
  42. package/types/input.d.ts.map +1 -1
  43. package/types/output.d.ts +339 -34
  44. package/types/output.d.ts.map +1 -1
@@ -0,0 +1,362 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * > **Alpha:** This resource is in alpha and its schema and behavior may change without notice. Not recommended for production use.
6
+ *
7
+ * Manages a Fivetran connection. Unlike `fivetran.Connector`/`fivetran.Connection`, `config` and `auth` are provided as dynamic, service-specific objects: their accepted fields, types, and required/readonly/immutable rules are resolved from connector metadata at plan time rather than from a fixed schema. This means the same resource works across services (e.g. `s3`, `postgres`, `fivetranLog`) without a per-service Terraform schema.
8
+ *
9
+ * Pause state is managed separately via `fivetran.ConnectionV2PauseState`; this resource does not expose a `paused` attribute. **New connections are always created paused.** To start syncing, add a linked `fivetran.ConnectionV2PauseState` resource with `paused = false`.
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 connection = new fivetran.ConnectionV2("connection", {
18
+ * service: "fivetran_log",
19
+ * groupId: "group_id",
20
+ * config: {
21
+ * schema: "my_schema",
22
+ * },
23
+ * });
24
+ * // The connection above is created paused. Unpause it to start syncing:
25
+ * const pauseState = new fivetran.ConnectionV2PauseState("pause_state", {
26
+ * connectionId: connection.id,
27
+ * paused: false,
28
+ * });
29
+ * ```
30
+ */
31
+ export declare class ConnectionV2 extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing ConnectionV2 resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConnectionV2State, opts?: pulumi.CustomResourceOptions): ConnectionV2;
42
+ /**
43
+ * Returns true if the given object is an instance of ConnectionV2. This is designed to work even
44
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
45
+ */
46
+ static isInstance(obj: any): obj is ConnectionV2;
47
+ /**
48
+ * Service-specific authorization configuration. The accepted fields are defined by connector metadata at runtime.
49
+ */
50
+ readonly auth: pulumi.Output<any | undefined>;
51
+ /**
52
+ * Service-specific connection configuration. The accepted fields are defined by connector metadata at runtime.
53
+ */
54
+ readonly config: pulumi.Output<any>;
55
+ /**
56
+ * Configuration for the interactive Connect Card setup flow.
57
+ */
58
+ readonly connectCardConfig: pulumi.Output<outputs.ConnectionV2ConnectCardConfig | undefined>;
59
+ /**
60
+ * The unique identifier of the user who created the connection in your account.
61
+ */
62
+ readonly connectedBy: pulumi.Output<string>;
63
+ /**
64
+ * The timestamp of the time the connection was created in your account.
65
+ */
66
+ readonly createdAt: pulumi.Output<string>;
67
+ /**
68
+ * Sync start time. Only used when `syncFrequency` is `1440`.
69
+ */
70
+ readonly dailySyncTime: pulumi.Output<string>;
71
+ /**
72
+ * The level of data delay notification threshold. Possible values: `LOW`, `NORMAL`, `HIGH`, `CUSTOM`, `SYNC_FREQUENCY`.
73
+ */
74
+ readonly dataDelaySensitivity: pulumi.Output<string>;
75
+ /**
76
+ * Custom sync delay notification threshold in minutes. Only used when `dataDelaySensitivity` is `CUSTOM`.
77
+ */
78
+ readonly dataDelayThreshold: pulumi.Output<number>;
79
+ /**
80
+ * Destination-specific configuration for the connection.
81
+ */
82
+ readonly destinationConfiguration: pulumi.Output<outputs.ConnectionV2DestinationConfiguration>;
83
+ /**
84
+ * Defines how schema names appear in the destination. Supported values: `FIVETRAN_NAMING`, `SOURCE_NAMING`. Changing this forces the connection to be replaced.
85
+ */
86
+ readonly destinationSchemaNames: pulumi.Output<string | undefined>;
87
+ /**
88
+ * The timestamp of the time the connection sync failed last time.
89
+ */
90
+ readonly failedAt: pulumi.Output<string>;
91
+ /**
92
+ * The unique identifier for the Group (Destination) within the Fivetran system. Changing this forces the connection to be replaced.
93
+ */
94
+ readonly groupId: pulumi.Output<string>;
95
+ /**
96
+ * The hybrid deployment agent ID for the group the connection belongs to.
97
+ */
98
+ readonly hybridDeploymentAgentId: pulumi.Output<string>;
99
+ /**
100
+ * The name used both as the connection's name within the Fivetran system and as the source schema's name within your destination.
101
+ */
102
+ readonly name: pulumi.Output<string>;
103
+ /**
104
+ * The networking method for the connection. Possible values: `Directly`, `SshTunnel`, `ProxyAgent`, `PrivateLink`.
105
+ */
106
+ readonly networkingMethod: pulumi.Output<string>;
107
+ /**
108
+ * Whether the connection should be paused after the free trial period has ended.
109
+ */
110
+ readonly pauseAfterTrial: pulumi.Output<boolean>;
111
+ /**
112
+ * The private link ID. Required when `networkingMethod` is `PrivateLink`.
113
+ */
114
+ readonly privateLinkId: pulumi.Output<string>;
115
+ /**
116
+ * The ID of the proxy agent to use. Required when `networkingMethod` is `ProxyAgent`.
117
+ */
118
+ readonly proxyAgentId: pulumi.Output<string>;
119
+ /**
120
+ * Whether to run setup tests when creating or updating the connection.
121
+ */
122
+ readonly runSetupTests: pulumi.Output<boolean>;
123
+ /**
124
+ * The connection schedule configuration type. Supported values: `auto`, `manual`.
125
+ */
126
+ readonly scheduleType: pulumi.Output<string>;
127
+ /**
128
+ * The connection service type (e.g., `postgres`, `mysql`, `s3`, `snowflake`). Changing this forces the connection to be replaced.
129
+ */
130
+ readonly service: pulumi.Output<string>;
131
+ /**
132
+ * The connection type version within the Fivetran system.
133
+ */
134
+ readonly serviceVersion: pulumi.Output<string>;
135
+ /**
136
+ * The current connection status.
137
+ */
138
+ readonly status: pulumi.Output<outputs.ConnectionV2Status>;
139
+ /**
140
+ * The timestamp of the time the connection sync succeeded last time.
141
+ */
142
+ readonly succeededAt: pulumi.Output<string>;
143
+ /**
144
+ * The connection sync frequency in minutes.
145
+ */
146
+ readonly syncFrequency: pulumi.Output<number>;
147
+ /**
148
+ * Whether Fivetran should trust certificates automatically.
149
+ */
150
+ readonly trustCertificates: pulumi.Output<boolean>;
151
+ /**
152
+ * Whether Fivetran should trust SSH fingerprints automatically.
153
+ */
154
+ readonly trustFingerprints: pulumi.Output<boolean>;
155
+ /**
156
+ * Create a ConnectionV2 resource with the given unique name, arguments, and options.
157
+ *
158
+ * @param name The _unique_ name of the resource.
159
+ * @param args The arguments to use to populate this resource's properties.
160
+ * @param opts A bag of options that control this resource's behavior.
161
+ */
162
+ constructor(name: string, args: ConnectionV2Args, opts?: pulumi.CustomResourceOptions);
163
+ }
164
+ /**
165
+ * Input properties used for looking up and filtering ConnectionV2 resources.
166
+ */
167
+ export interface ConnectionV2State {
168
+ /**
169
+ * Service-specific authorization configuration. The accepted fields are defined by connector metadata at runtime.
170
+ */
171
+ auth?: any | undefined;
172
+ /**
173
+ * Service-specific connection configuration. The accepted fields are defined by connector metadata at runtime.
174
+ */
175
+ config?: any | undefined;
176
+ /**
177
+ * Configuration for the interactive Connect Card setup flow.
178
+ */
179
+ connectCardConfig?: pulumi.Input<inputs.ConnectionV2ConnectCardConfig | undefined>;
180
+ /**
181
+ * The unique identifier of the user who created the connection in your account.
182
+ */
183
+ connectedBy?: pulumi.Input<string | undefined>;
184
+ /**
185
+ * The timestamp of the time the connection was created in your account.
186
+ */
187
+ createdAt?: pulumi.Input<string | undefined>;
188
+ /**
189
+ * Sync start time. Only used when `syncFrequency` is `1440`.
190
+ */
191
+ dailySyncTime?: pulumi.Input<string | undefined>;
192
+ /**
193
+ * The level of data delay notification threshold. Possible values: `LOW`, `NORMAL`, `HIGH`, `CUSTOM`, `SYNC_FREQUENCY`.
194
+ */
195
+ dataDelaySensitivity?: pulumi.Input<string | undefined>;
196
+ /**
197
+ * Custom sync delay notification threshold in minutes. Only used when `dataDelaySensitivity` is `CUSTOM`.
198
+ */
199
+ dataDelayThreshold?: pulumi.Input<number | undefined>;
200
+ /**
201
+ * Destination-specific configuration for the connection.
202
+ */
203
+ destinationConfiguration?: pulumi.Input<inputs.ConnectionV2DestinationConfiguration | undefined>;
204
+ /**
205
+ * Defines how schema names appear in the destination. Supported values: `FIVETRAN_NAMING`, `SOURCE_NAMING`. Changing this forces the connection to be replaced.
206
+ */
207
+ destinationSchemaNames?: pulumi.Input<string | undefined>;
208
+ /**
209
+ * The timestamp of the time the connection sync failed last time.
210
+ */
211
+ failedAt?: pulumi.Input<string | undefined>;
212
+ /**
213
+ * The unique identifier for the Group (Destination) within the Fivetran system. Changing this forces the connection to be replaced.
214
+ */
215
+ groupId?: pulumi.Input<string | undefined>;
216
+ /**
217
+ * The hybrid deployment agent ID for the group the connection belongs to.
218
+ */
219
+ hybridDeploymentAgentId?: pulumi.Input<string | undefined>;
220
+ /**
221
+ * The name used both as the connection's name within the Fivetran system and as the source schema's name within your destination.
222
+ */
223
+ name?: pulumi.Input<string | undefined>;
224
+ /**
225
+ * The networking method for the connection. Possible values: `Directly`, `SshTunnel`, `ProxyAgent`, `PrivateLink`.
226
+ */
227
+ networkingMethod?: pulumi.Input<string | undefined>;
228
+ /**
229
+ * Whether the connection should be paused after the free trial period has ended.
230
+ */
231
+ pauseAfterTrial?: pulumi.Input<boolean | undefined>;
232
+ /**
233
+ * The private link ID. Required when `networkingMethod` is `PrivateLink`.
234
+ */
235
+ privateLinkId?: pulumi.Input<string | undefined>;
236
+ /**
237
+ * The ID of the proxy agent to use. Required when `networkingMethod` is `ProxyAgent`.
238
+ */
239
+ proxyAgentId?: pulumi.Input<string | undefined>;
240
+ /**
241
+ * Whether to run setup tests when creating or updating the connection.
242
+ */
243
+ runSetupTests?: pulumi.Input<boolean | undefined>;
244
+ /**
245
+ * The connection schedule configuration type. Supported values: `auto`, `manual`.
246
+ */
247
+ scheduleType?: pulumi.Input<string | undefined>;
248
+ /**
249
+ * The connection service type (e.g., `postgres`, `mysql`, `s3`, `snowflake`). Changing this forces the connection to be replaced.
250
+ */
251
+ service?: pulumi.Input<string | undefined>;
252
+ /**
253
+ * The connection type version within the Fivetran system.
254
+ */
255
+ serviceVersion?: pulumi.Input<string | undefined>;
256
+ /**
257
+ * The current connection status.
258
+ */
259
+ status?: pulumi.Input<inputs.ConnectionV2Status | undefined>;
260
+ /**
261
+ * The timestamp of the time the connection sync succeeded last time.
262
+ */
263
+ succeededAt?: pulumi.Input<string | undefined>;
264
+ /**
265
+ * The connection sync frequency in minutes.
266
+ */
267
+ syncFrequency?: pulumi.Input<number | undefined>;
268
+ /**
269
+ * Whether Fivetran should trust certificates automatically.
270
+ */
271
+ trustCertificates?: pulumi.Input<boolean | undefined>;
272
+ /**
273
+ * Whether Fivetran should trust SSH fingerprints automatically.
274
+ */
275
+ trustFingerprints?: pulumi.Input<boolean | undefined>;
276
+ }
277
+ /**
278
+ * The set of arguments for constructing a ConnectionV2 resource.
279
+ */
280
+ export interface ConnectionV2Args {
281
+ /**
282
+ * Service-specific authorization configuration. The accepted fields are defined by connector metadata at runtime.
283
+ */
284
+ auth?: any | undefined;
285
+ /**
286
+ * Service-specific connection configuration. The accepted fields are defined by connector metadata at runtime.
287
+ */
288
+ config?: any | undefined;
289
+ /**
290
+ * Configuration for the interactive Connect Card setup flow.
291
+ */
292
+ connectCardConfig?: pulumi.Input<inputs.ConnectionV2ConnectCardConfig | undefined>;
293
+ /**
294
+ * Sync start time. Only used when `syncFrequency` is `1440`.
295
+ */
296
+ dailySyncTime?: pulumi.Input<string | undefined>;
297
+ /**
298
+ * The level of data delay notification threshold. Possible values: `LOW`, `NORMAL`, `HIGH`, `CUSTOM`, `SYNC_FREQUENCY`.
299
+ */
300
+ dataDelaySensitivity?: pulumi.Input<string | undefined>;
301
+ /**
302
+ * Custom sync delay notification threshold in minutes. Only used when `dataDelaySensitivity` is `CUSTOM`.
303
+ */
304
+ dataDelayThreshold?: pulumi.Input<number | undefined>;
305
+ /**
306
+ * Destination-specific configuration for the connection.
307
+ */
308
+ destinationConfiguration?: pulumi.Input<inputs.ConnectionV2DestinationConfiguration | undefined>;
309
+ /**
310
+ * Defines how schema names appear in the destination. Supported values: `FIVETRAN_NAMING`, `SOURCE_NAMING`. Changing this forces the connection to be replaced.
311
+ */
312
+ destinationSchemaNames?: pulumi.Input<string | undefined>;
313
+ /**
314
+ * The unique identifier for the Group (Destination) within the Fivetran system. Changing this forces the connection to be replaced.
315
+ */
316
+ groupId: pulumi.Input<string>;
317
+ /**
318
+ * The hybrid deployment agent ID for the group the connection belongs to.
319
+ */
320
+ hybridDeploymentAgentId?: pulumi.Input<string | undefined>;
321
+ /**
322
+ * The networking method for the connection. Possible values: `Directly`, `SshTunnel`, `ProxyAgent`, `PrivateLink`.
323
+ */
324
+ networkingMethod?: pulumi.Input<string | undefined>;
325
+ /**
326
+ * Whether the connection should be paused after the free trial period has ended.
327
+ */
328
+ pauseAfterTrial?: pulumi.Input<boolean | undefined>;
329
+ /**
330
+ * The private link ID. Required when `networkingMethod` is `PrivateLink`.
331
+ */
332
+ privateLinkId?: pulumi.Input<string | undefined>;
333
+ /**
334
+ * The ID of the proxy agent to use. Required when `networkingMethod` is `ProxyAgent`.
335
+ */
336
+ proxyAgentId?: pulumi.Input<string | undefined>;
337
+ /**
338
+ * Whether to run setup tests when creating or updating the connection.
339
+ */
340
+ runSetupTests?: pulumi.Input<boolean | undefined>;
341
+ /**
342
+ * The connection schedule configuration type. Supported values: `auto`, `manual`.
343
+ */
344
+ scheduleType?: pulumi.Input<string | undefined>;
345
+ /**
346
+ * The connection service type (e.g., `postgres`, `mysql`, `s3`, `snowflake`). Changing this forces the connection to be replaced.
347
+ */
348
+ service: pulumi.Input<string>;
349
+ /**
350
+ * The connection sync frequency in minutes.
351
+ */
352
+ syncFrequency?: pulumi.Input<number | undefined>;
353
+ /**
354
+ * Whether Fivetran should trust certificates automatically.
355
+ */
356
+ trustCertificates?: pulumi.Input<boolean | undefined>;
357
+ /**
358
+ * Whether Fivetran should trust SSH fingerprints automatically.
359
+ */
360
+ trustFingerprints?: pulumi.Input<boolean | undefined>;
361
+ }
362
+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do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.ConnectionV2 = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * > **Alpha:** This resource is in alpha and its schema and behavior may change without notice. Not recommended for production use.
33
+ *
34
+ * Manages a Fivetran connection. Unlike `fivetran.Connector`/`fivetran.Connection`, `config` and `auth` are provided as dynamic, service-specific objects: their accepted fields, types, and required/readonly/immutable rules are resolved from connector metadata at plan time rather than from a fixed schema. This means the same resource works across services (e.g. `s3`, `postgres`, `fivetranLog`) without a per-service Terraform schema.
35
+ *
36
+ * Pause state is managed separately via `fivetran.ConnectionV2PauseState`; this resource does not expose a `paused` attribute. **New connections are always created paused.** To start syncing, add a linked `fivetran.ConnectionV2PauseState` resource with `paused = false`.
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 connection = new fivetran.ConnectionV2("connection", {
45
+ * service: "fivetran_log",
46
+ * groupId: "group_id",
47
+ * config: {
48
+ * schema: "my_schema",
49
+ * },
50
+ * });
51
+ * // The connection above is created paused. Unpause it to start syncing:
52
+ * const pauseState = new fivetran.ConnectionV2PauseState("pause_state", {
53
+ * connectionId: connection.id,
54
+ * paused: false,
55
+ * });
56
+ * ```
57
+ */
58
+ class ConnectionV2 extends pulumi.CustomResource {
59
+ /**
60
+ * Get an existing ConnectionV2 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, id, state, opts) {
69
+ return new ConnectionV2(name, state, { ...opts, id: id });
70
+ }
71
+ /** @internal */
72
+ static __pulumiType = 'fivetran:index/connectionV2:ConnectionV2';
73
+ /**
74
+ * Returns true if the given object is an instance of ConnectionV2. This is designed to work even
75
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
76
+ */
77
+ static isInstance(obj) {
78
+ if (obj === undefined || obj === null) {
79
+ return false;
80
+ }
81
+ return obj['__pulumiType'] === ConnectionV2.__pulumiType;
82
+ }
83
+ constructor(name, argsOrState, opts) {
84
+ let resourceInputs = {};
85
+ opts = opts || {};
86
+ if (opts.id) {
87
+ const state = argsOrState;
88
+ resourceInputs["auth"] = state?.auth;
89
+ resourceInputs["config"] = state?.config;
90
+ resourceInputs["connectCardConfig"] = state?.connectCardConfig;
91
+ resourceInputs["connectedBy"] = state?.connectedBy;
92
+ resourceInputs["createdAt"] = state?.createdAt;
93
+ resourceInputs["dailySyncTime"] = state?.dailySyncTime;
94
+ resourceInputs["dataDelaySensitivity"] = state?.dataDelaySensitivity;
95
+ resourceInputs["dataDelayThreshold"] = state?.dataDelayThreshold;
96
+ resourceInputs["destinationConfiguration"] = state?.destinationConfiguration;
97
+ resourceInputs["destinationSchemaNames"] = state?.destinationSchemaNames;
98
+ resourceInputs["failedAt"] = state?.failedAt;
99
+ resourceInputs["groupId"] = state?.groupId;
100
+ resourceInputs["hybridDeploymentAgentId"] = state?.hybridDeploymentAgentId;
101
+ resourceInputs["name"] = state?.name;
102
+ resourceInputs["networkingMethod"] = state?.networkingMethod;
103
+ resourceInputs["pauseAfterTrial"] = state?.pauseAfterTrial;
104
+ resourceInputs["privateLinkId"] = state?.privateLinkId;
105
+ resourceInputs["proxyAgentId"] = state?.proxyAgentId;
106
+ resourceInputs["runSetupTests"] = state?.runSetupTests;
107
+ resourceInputs["scheduleType"] = state?.scheduleType;
108
+ resourceInputs["service"] = state?.service;
109
+ resourceInputs["serviceVersion"] = state?.serviceVersion;
110
+ resourceInputs["status"] = state?.status;
111
+ resourceInputs["succeededAt"] = state?.succeededAt;
112
+ resourceInputs["syncFrequency"] = state?.syncFrequency;
113
+ resourceInputs["trustCertificates"] = state?.trustCertificates;
114
+ resourceInputs["trustFingerprints"] = state?.trustFingerprints;
115
+ }
116
+ else {
117
+ const args = argsOrState;
118
+ if (args?.groupId === undefined && !opts.urn) {
119
+ throw new Error("Missing required property 'groupId'");
120
+ }
121
+ if (args?.service === undefined && !opts.urn) {
122
+ throw new Error("Missing required property 'service'");
123
+ }
124
+ resourceInputs["auth"] = args?.auth ? pulumi.secret(args.auth) : undefined;
125
+ resourceInputs["config"] = args?.config;
126
+ resourceInputs["connectCardConfig"] = args?.connectCardConfig;
127
+ resourceInputs["dailySyncTime"] = args?.dailySyncTime;
128
+ resourceInputs["dataDelaySensitivity"] = args?.dataDelaySensitivity;
129
+ resourceInputs["dataDelayThreshold"] = args?.dataDelayThreshold;
130
+ resourceInputs["destinationConfiguration"] = args?.destinationConfiguration;
131
+ resourceInputs["destinationSchemaNames"] = args?.destinationSchemaNames;
132
+ resourceInputs["groupId"] = args?.groupId;
133
+ resourceInputs["hybridDeploymentAgentId"] = args?.hybridDeploymentAgentId;
134
+ resourceInputs["networkingMethod"] = args?.networkingMethod;
135
+ resourceInputs["pauseAfterTrial"] = args?.pauseAfterTrial;
136
+ resourceInputs["privateLinkId"] = args?.privateLinkId;
137
+ resourceInputs["proxyAgentId"] = args?.proxyAgentId;
138
+ resourceInputs["runSetupTests"] = args?.runSetupTests;
139
+ resourceInputs["scheduleType"] = args?.scheduleType;
140
+ resourceInputs["service"] = args?.service;
141
+ resourceInputs["syncFrequency"] = args?.syncFrequency;
142
+ resourceInputs["trustCertificates"] = args?.trustCertificates;
143
+ resourceInputs["trustFingerprints"] = args?.trustFingerprints;
144
+ resourceInputs["connectedBy"] = undefined /*out*/;
145
+ resourceInputs["createdAt"] = undefined /*out*/;
146
+ resourceInputs["failedAt"] = undefined /*out*/;
147
+ resourceInputs["name"] = undefined /*out*/;
148
+ resourceInputs["serviceVersion"] = undefined /*out*/;
149
+ resourceInputs["status"] = undefined /*out*/;
150
+ resourceInputs["succeededAt"] = undefined /*out*/;
151
+ }
152
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
153
+ const secretOpts = { additionalSecretOutputs: ["auth"] };
154
+ opts = pulumi.mergeOptions(opts, secretOpts);
155
+ super(ConnectionV2.__pulumiType, name, resourceInputs, opts);
156
+ }
157
+ }
158
+ exports.ConnectionV2 = ConnectionV2;
159
+ //# sourceMappingURL=connectionV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectionV2.js","sourceRoot":"","sources":["../connectionV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAA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ACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,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;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;QACzD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAzNL,oCA0NC"}
@@ -0,0 +1,82 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * > **Alpha:** This resource is in alpha and its schema and behavior may change without notice. Not recommended for production use.
4
+ *
5
+ * Manages the paused state of a `fivetran.ConnectionV2` connection, separately from the connection resource itself. This lets you pause and resume a connection without triggering changes to (or replacement of) the connection's own configuration.
6
+ *
7
+ * **`fivetran.ConnectionV2` always creates connections paused.** Add this resource with `paused = false` to start syncing.
8
+ *
9
+ * If you are importing both resources, import `fivetran.ConnectionV2` first, then `fivetran.ConnectionV2PauseState` — importing the pause state before the connection exists in state forces a replacement plan.
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 pauseState = new fivetran.ConnectionV2PauseState("pause_state", {
18
+ * connectionId: connection.id,
19
+ * paused: false,
20
+ * });
21
+ * ```
22
+ */
23
+ export declare class ConnectionV2PauseState extends pulumi.CustomResource {
24
+ /**
25
+ * Get an existing ConnectionV2PauseState resource's state with the given name, ID, and optional extra
26
+ * properties used to qualify the lookup.
27
+ *
28
+ * @param name The _unique_ name of the resulting resource.
29
+ * @param id The _unique_ provider ID of the resource to lookup.
30
+ * @param state Any extra arguments used during the lookup.
31
+ * @param opts Optional settings to control the behavior of the CustomResource.
32
+ */
33
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConnectionV2PauseStateState, opts?: pulumi.CustomResourceOptions): ConnectionV2PauseState;
34
+ /**
35
+ * Returns true if the given object is an instance of ConnectionV2PauseState. This is designed to work even
36
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
37
+ */
38
+ static isInstance(obj: any): obj is ConnectionV2PauseState;
39
+ /**
40
+ * The unique identifier for the connection whose pause state is managed. Changing this forces the resource to be replaced.
41
+ */
42
+ readonly connectionId: pulumi.Output<string>;
43
+ /**
44
+ * Whether the connection should be paused.
45
+ */
46
+ readonly paused: pulumi.Output<boolean>;
47
+ /**
48
+ * Create a ConnectionV2PauseState resource with the given unique name, arguments, and options.
49
+ *
50
+ * @param name The _unique_ name of the resource.
51
+ * @param args The arguments to use to populate this resource's properties.
52
+ * @param opts A bag of options that control this resource's behavior.
53
+ */
54
+ constructor(name: string, args: ConnectionV2PauseStateArgs, opts?: pulumi.CustomResourceOptions);
55
+ }
56
+ /**
57
+ * Input properties used for looking up and filtering ConnectionV2PauseState resources.
58
+ */
59
+ export interface ConnectionV2PauseStateState {
60
+ /**
61
+ * The unique identifier for the connection whose pause state is managed. Changing this forces the resource to be replaced.
62
+ */
63
+ connectionId?: pulumi.Input<string | undefined>;
64
+ /**
65
+ * Whether the connection should be paused.
66
+ */
67
+ paused?: pulumi.Input<boolean | undefined>;
68
+ }
69
+ /**
70
+ * The set of arguments for constructing a ConnectionV2PauseState resource.
71
+ */
72
+ export interface ConnectionV2PauseStateArgs {
73
+ /**
74
+ * The unique identifier for the connection whose pause state is managed. Changing this forces the resource to be replaced.
75
+ */
76
+ connectionId: pulumi.Input<string>;
77
+ /**
78
+ * Whether the connection should be paused.
79
+ */
80
+ paused: pulumi.Input<boolean>;
81
+ }
82
+ //# sourceMappingURL=connectionV2PauseState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectionV2PauseState.d.ts","sourceRoot":"","sources":["../connectionV2PauseState.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,sBAAsB;IAO9J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,sBAAsB;IAOjE;;OAEG;IACH,SAAwB,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC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