@pulumi/dbtcloud 0.2.0-alpha.1749534410 → 1.0.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.
- package/accountFeatures.d.ts +24 -0
- package/accountFeatures.js +4 -0
- package/accountFeatures.js.map +1 -1
- package/bigQueryCredential.d.ts +5 -3
- package/bigQueryCredential.js +2 -0
- package/bigQueryCredential.js.map +1 -1
- package/bigquerySemanticLayerCredential.d.ts +161 -0
- package/bigquerySemanticLayerCredential.js +102 -0
- package/bigquerySemanticLayerCredential.js.map +1 -0
- package/databricksCredential.d.ts +16 -14
- package/databricksCredential.js +14 -2
- package/databricksCredential.js.map +1 -1
- package/environment.d.ts +37 -45
- package/environment.js +1 -6
- package/environment.js.map +1 -1
- package/environmentVariable.d.ts +3 -3
- package/environmentVariableJobOverride.d.ts +15 -5
- package/environmentVariableJobOverride.js +4 -0
- package/environmentVariableJobOverride.js.map +1 -1
- package/extendedAttributes.d.ts +7 -13
- package/extendedAttributes.js +1 -1
- package/extendedAttributes.js.map +1 -1
- package/fabricCredential.d.ts +16 -16
- package/fabricCredential.js +6 -6
- package/fabricCredential.js.map +1 -1
- package/getBigQueryCredential.d.ts +7 -1
- package/getBigQueryCredential.js +6 -0
- package/getBigQueryCredential.js.map +1 -1
- package/getDatabricksCredential.d.ts +10 -4
- package/getDatabricksCredential.js +6 -0
- package/getDatabricksCredential.js.map +1 -1
- package/getEnvironment.d.ts +4 -7
- package/getEnvironment.js.map +1 -1
- package/getEnvironmentVariable.d.ts +38 -8
- package/getEnvironmentVariable.js +30 -0
- package/getEnvironmentVariable.js.map +1 -1
- package/getExtendedAttributes.d.ts +12 -8
- package/getExtendedAttributes.js +4 -0
- package/getExtendedAttributes.js.map +1 -1
- package/getGlobalConnection.d.ts +4 -0
- package/getGlobalConnection.js.map +1 -1
- package/getGroupUsers.d.ts +3 -3
- package/getGroupUsers.js +2 -2
- package/getJob.d.ts +59 -26
- package/getJob.js +8 -2
- package/getJob.js.map +1 -1
- package/getPostgresCredential.d.ts +7 -1
- package/getPostgresCredential.js +6 -0
- package/getPostgresCredential.js.map +1 -1
- package/getPrivatelinkEndpoint.d.ts +16 -10
- package/getPrivatelinkEndpoint.js +6 -0
- package/getPrivatelinkEndpoint.js.map +1 -1
- package/getProject.d.ts +81 -44
- package/getProject.js +50 -22
- package/getProject.js.map +1 -1
- package/getRedshiftCredential.d.ts +72 -0
- package/getRedshiftCredential.js +32 -0
- package/getRedshiftCredential.js.map +1 -0
- package/getRepository.d.ts +25 -3
- package/getRepository.js +6 -0
- package/getRepository.js.map +1 -1
- package/getRuns.d.ts +46 -0
- package/getRuns.js +30 -0
- package/getRuns.js.map +1 -0
- package/getSnowflakeCredential.d.ts +8 -2
- package/getSnowflakeCredential.js +6 -0
- package/getSnowflakeCredential.js.map +1 -1
- package/getSynapseCredential.d.ts +80 -0
- package/getSynapseCredential.js +30 -0
- package/getSynapseCredential.js.map +1 -0
- package/getTeradataCredential.d.ts +68 -0
- package/getTeradataCredential.js +30 -0
- package/getTeradataCredential.js.map +1 -0
- package/getUserGroups.d.ts +9 -5
- package/getUserGroups.js +4 -0
- package/getUserGroups.js.map +1 -1
- package/getWebhook.d.ts +16 -4
- package/getWebhook.js +6 -0
- package/getWebhook.js.map +1 -1
- package/globalConnection.d.ts +12 -2
- package/globalConnection.js +2 -2
- package/globalConnection.js.map +1 -1
- package/index.d.ts +36 -18
- package/index.js +55 -28
- package/index.js.map +1 -1
- package/job.d.ts +41 -144
- package/job.js +4 -113
- package/job.js.map +1 -1
- package/package.json +2 -2
- package/partialEnvironmentVariable.d.ts +83 -0
- package/partialEnvironmentVariable.js +64 -0
- package/partialEnvironmentVariable.js.map +1 -0
- package/postgresCredential.d.ts +13 -11
- package/postgresCredential.js +2 -0
- package/postgresCredential.js.map +1 -1
- package/project.d.ts +20 -6
- package/project.js +5 -1
- package/project.js.map +1 -1
- package/projectRepository.d.ts +1 -1
- package/projectRepository.js +1 -1
- package/redshiftCredential.d.ts +165 -0
- package/redshiftCredential.js +121 -0
- package/redshiftCredential.js.map +1 -0
- package/redshiftSemanticLayerCredential.d.ts +65 -0
- package/redshiftSemanticLayerCredential.js +60 -0
- package/redshiftSemanticLayerCredential.js.map +1 -0
- package/repository.d.ts +6 -6
- package/semanticLayerConfiguration.d.ts +106 -0
- package/semanticLayerConfiguration.js +103 -0
- package/semanticLayerConfiguration.js.map +1 -0
- package/snowflakeCredential.d.ts +46 -32
- package/snowflakeCredential.js +4 -6
- package/snowflakeCredential.js.map +1 -1
- package/snowflakeSemanticLayerCredential.d.ts +95 -0
- package/snowflakeSemanticLayerCredential.js +90 -0
- package/snowflakeSemanticLayerCredential.js.map +1 -0
- package/synapseCredential.d.ts +233 -0
- package/synapseCredential.js +152 -0
- package/synapseCredential.js.map +1 -0
- package/teradataCredential.d.ts +107 -0
- package/teradataCredential.js +76 -0
- package/teradataCredential.js.map +1 -0
- package/types/input.d.ts +300 -0
- package/types/output.d.ts +409 -6
- package/userGroups.d.ts +4 -5
- package/userGroups.js +1 -2
- package/userGroups.js.map +1 -1
- package/webhook.d.ts +13 -7
- package/webhook.js +2 -0
- package/webhook.js.map +1 -1
- package/bigQueryConnection.d.ts +0 -420
- package/bigQueryConnection.js +0 -217
- package/bigQueryConnection.js.map +0 -1
- package/connection.d.ts +0 -342
- package/connection.js +0 -170
- package/connection.js.map +0 -1
- package/fabricConnection.d.ts +0 -199
- package/fabricConnection.js +0 -130
- package/fabricConnection.js.map +0 -1
- package/getBigQueryConnection.d.ts +0 -134
- package/getBigQueryConnection.js +0 -24
- package/getBigQueryConnection.js.map +0 -1
- package/getConnection.d.ts +0 -86
- package/getConnection.js +0 -24
- package/getConnection.js.map +0 -1
- package/projectConnection.d.ts +0 -105
- package/projectConnection.js +0 -102
- package/projectConnection.js.map +0 -1
package/connection.d.ts
DELETED
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Resource to create a Data Warehouse connection in dbt Cloud.
|
|
4
|
-
*
|
|
5
|
-
* > This resource is deprecated and is going to be removed in the next major release, please use the `dbtcloud.GlobalConnection` resource instead to create connections.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
12
|
-
*
|
|
13
|
-
* const databricks = new dbtcloud.Connection("databricks", {
|
|
14
|
-
* projectId: dbtProject.id,
|
|
15
|
-
* type: "adapter",
|
|
16
|
-
* name: "Databricks",
|
|
17
|
-
* database: "",
|
|
18
|
-
* hostName: "my-databricks-host.cloud.databricks.com",
|
|
19
|
-
* httpPath: "/my/path",
|
|
20
|
-
* catalog: "moo",
|
|
21
|
-
* oauthClientId: "yourclientid",
|
|
22
|
-
* oauthClientSecret: "yourclientsecret",
|
|
23
|
-
* });
|
|
24
|
-
* const redshift = new dbtcloud.Connection("redshift", {
|
|
25
|
-
* projectId: dbtProject.id,
|
|
26
|
-
* type: "redshift",
|
|
27
|
-
* name: "My Redshift Warehouse",
|
|
28
|
-
* database: "my-database",
|
|
29
|
-
* port: 5439,
|
|
30
|
-
* hostName: "my-redshift-hostname",
|
|
31
|
-
* });
|
|
32
|
-
* const snowflake = new dbtcloud.Connection("snowflake", {
|
|
33
|
-
* projectId: dbtProject.id,
|
|
34
|
-
* type: "snowflake",
|
|
35
|
-
* name: "My Snowflake warehouse",
|
|
36
|
-
* account: "my-snowflake-account",
|
|
37
|
-
* database: "MY_DATABASE",
|
|
38
|
-
* role: "MY_ROLE",
|
|
39
|
-
* warehouse: "MY_WAREHOUSE",
|
|
40
|
-
* oauthClientId: "yourclientid",
|
|
41
|
-
* oauthClientSecret: "yourclientsecret",
|
|
42
|
-
* allowSso: true,
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* ## Import
|
|
47
|
-
*
|
|
48
|
-
* using import blocks (requires Terraform >= 1.5)
|
|
49
|
-
*
|
|
50
|
-
* import {
|
|
51
|
-
*
|
|
52
|
-
* to = dbtcloud_connection.test_connection
|
|
53
|
-
*
|
|
54
|
-
* id = "project_id:connection_id"
|
|
55
|
-
*
|
|
56
|
-
* }
|
|
57
|
-
*
|
|
58
|
-
* import {
|
|
59
|
-
*
|
|
60
|
-
* to = dbtcloud_connection.test_connection
|
|
61
|
-
*
|
|
62
|
-
* id = "12345:6789"
|
|
63
|
-
*
|
|
64
|
-
* }
|
|
65
|
-
*
|
|
66
|
-
* using the older import command
|
|
67
|
-
*
|
|
68
|
-
* ```sh
|
|
69
|
-
* $ pulumi import dbtcloud:index/connection:Connection test_connection "project_id:connection_id"
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* ```sh
|
|
73
|
-
* $ pulumi import dbtcloud:index/connection:Connection test_connection 12345:6789
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
export declare class Connection extends pulumi.CustomResource {
|
|
77
|
-
/**
|
|
78
|
-
* Get an existing Connection resource's state with the given name, ID, and optional extra
|
|
79
|
-
* properties used to qualify the lookup.
|
|
80
|
-
*
|
|
81
|
-
* @param name The _unique_ name of the resulting resource.
|
|
82
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
83
|
-
* @param state Any extra arguments used during the lookup.
|
|
84
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
85
|
-
*/
|
|
86
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConnectionState, opts?: pulumi.CustomResourceOptions): Connection;
|
|
87
|
-
/**
|
|
88
|
-
* Returns true if the given object is an instance of Connection. This is designed to work even
|
|
89
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
90
|
-
*/
|
|
91
|
-
static isInstance(obj: any): obj is Connection;
|
|
92
|
-
/**
|
|
93
|
-
* Account name for the connection (for Snowflake)
|
|
94
|
-
*/
|
|
95
|
-
readonly account: pulumi.Output<string | undefined>;
|
|
96
|
-
/**
|
|
97
|
-
* Adapter id created for the Databricks connection (for Databricks)
|
|
98
|
-
*/
|
|
99
|
-
readonly adapterId: pulumi.Output<number>;
|
|
100
|
-
/**
|
|
101
|
-
* Whether or not the connection should allow client session keep alive (for Snowflake)
|
|
102
|
-
*/
|
|
103
|
-
readonly allowKeepAlive: pulumi.Output<boolean | undefined>;
|
|
104
|
-
/**
|
|
105
|
-
* Whether or not the connection should allow SSO (for Snowflake)
|
|
106
|
-
*/
|
|
107
|
-
readonly allowSso: pulumi.Output<boolean | undefined>;
|
|
108
|
-
/**
|
|
109
|
-
* Catalog name if Unity Catalog is enabled in your Databricks workspace (for Databricks)
|
|
110
|
-
*/
|
|
111
|
-
readonly catalog: pulumi.Output<string | undefined>;
|
|
112
|
-
/**
|
|
113
|
-
* Connection Identifier
|
|
114
|
-
*/
|
|
115
|
-
readonly connectionId: pulumi.Output<number>;
|
|
116
|
-
/**
|
|
117
|
-
* Database name for the connection
|
|
118
|
-
*/
|
|
119
|
-
readonly database: pulumi.Output<string>;
|
|
120
|
-
/**
|
|
121
|
-
* Host name for the connection, including Databricks cluster
|
|
122
|
-
*/
|
|
123
|
-
readonly hostName: pulumi.Output<string | undefined>;
|
|
124
|
-
/**
|
|
125
|
-
* The HTTP path of the Databricks cluster or SQL warehouse (for Databricks)
|
|
126
|
-
*/
|
|
127
|
-
readonly httpPath: pulumi.Output<string | undefined>;
|
|
128
|
-
/**
|
|
129
|
-
* Whether the connection is active
|
|
130
|
-
*/
|
|
131
|
-
readonly isActive: pulumi.Output<boolean | undefined>;
|
|
132
|
-
/**
|
|
133
|
-
* Connection name
|
|
134
|
-
*/
|
|
135
|
-
readonly name: pulumi.Output<string>;
|
|
136
|
-
/**
|
|
137
|
-
* OAuth client identifier (for Snowflake and Databricks)
|
|
138
|
-
*/
|
|
139
|
-
readonly oauthClientId: pulumi.Output<string | undefined>;
|
|
140
|
-
/**
|
|
141
|
-
* OAuth client secret (for Snowflake and Databricks)
|
|
142
|
-
*/
|
|
143
|
-
readonly oauthClientSecret: pulumi.Output<string | undefined>;
|
|
144
|
-
/**
|
|
145
|
-
* Port number to connect via
|
|
146
|
-
*/
|
|
147
|
-
readonly port: pulumi.Output<number | undefined>;
|
|
148
|
-
/**
|
|
149
|
-
* The ID of the PrivateLink connection. This ID can be found using the `privatelinkEndpoint` data source
|
|
150
|
-
*/
|
|
151
|
-
readonly privateLinkEndpointId: pulumi.Output<string | undefined>;
|
|
152
|
-
/**
|
|
153
|
-
* Project ID to create the connection in
|
|
154
|
-
*/
|
|
155
|
-
readonly projectId: pulumi.Output<number>;
|
|
156
|
-
/**
|
|
157
|
-
* Role name for the connection (for Snowflake)
|
|
158
|
-
*/
|
|
159
|
-
readonly role: pulumi.Output<string | undefined>;
|
|
160
|
-
/**
|
|
161
|
-
* Whether or not tunneling should be enabled on your database connection
|
|
162
|
-
*/
|
|
163
|
-
readonly tunnelEnabled: pulumi.Output<boolean | undefined>;
|
|
164
|
-
/**
|
|
165
|
-
* The type of connection
|
|
166
|
-
*/
|
|
167
|
-
readonly type: pulumi.Output<string>;
|
|
168
|
-
/**
|
|
169
|
-
* Warehouse name for the connection (for Snowflake)
|
|
170
|
-
*/
|
|
171
|
-
readonly warehouse: pulumi.Output<string | undefined>;
|
|
172
|
-
/**
|
|
173
|
-
* Create a Connection resource with the given unique name, arguments, and options.
|
|
174
|
-
*
|
|
175
|
-
* @param name The _unique_ name of the resource.
|
|
176
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
177
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
178
|
-
*/
|
|
179
|
-
constructor(name: string, args: ConnectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Input properties used for looking up and filtering Connection resources.
|
|
183
|
-
*/
|
|
184
|
-
export interface ConnectionState {
|
|
185
|
-
/**
|
|
186
|
-
* Account name for the connection (for Snowflake)
|
|
187
|
-
*/
|
|
188
|
-
account?: pulumi.Input<string>;
|
|
189
|
-
/**
|
|
190
|
-
* Adapter id created for the Databricks connection (for Databricks)
|
|
191
|
-
*/
|
|
192
|
-
adapterId?: pulumi.Input<number>;
|
|
193
|
-
/**
|
|
194
|
-
* Whether or not the connection should allow client session keep alive (for Snowflake)
|
|
195
|
-
*/
|
|
196
|
-
allowKeepAlive?: pulumi.Input<boolean>;
|
|
197
|
-
/**
|
|
198
|
-
* Whether or not the connection should allow SSO (for Snowflake)
|
|
199
|
-
*/
|
|
200
|
-
allowSso?: pulumi.Input<boolean>;
|
|
201
|
-
/**
|
|
202
|
-
* Catalog name if Unity Catalog is enabled in your Databricks workspace (for Databricks)
|
|
203
|
-
*/
|
|
204
|
-
catalog?: pulumi.Input<string>;
|
|
205
|
-
/**
|
|
206
|
-
* Connection Identifier
|
|
207
|
-
*/
|
|
208
|
-
connectionId?: pulumi.Input<number>;
|
|
209
|
-
/**
|
|
210
|
-
* Database name for the connection
|
|
211
|
-
*/
|
|
212
|
-
database?: pulumi.Input<string>;
|
|
213
|
-
/**
|
|
214
|
-
* Host name for the connection, including Databricks cluster
|
|
215
|
-
*/
|
|
216
|
-
hostName?: pulumi.Input<string>;
|
|
217
|
-
/**
|
|
218
|
-
* The HTTP path of the Databricks cluster or SQL warehouse (for Databricks)
|
|
219
|
-
*/
|
|
220
|
-
httpPath?: pulumi.Input<string>;
|
|
221
|
-
/**
|
|
222
|
-
* Whether the connection is active
|
|
223
|
-
*/
|
|
224
|
-
isActive?: pulumi.Input<boolean>;
|
|
225
|
-
/**
|
|
226
|
-
* Connection name
|
|
227
|
-
*/
|
|
228
|
-
name?: pulumi.Input<string>;
|
|
229
|
-
/**
|
|
230
|
-
* OAuth client identifier (for Snowflake and Databricks)
|
|
231
|
-
*/
|
|
232
|
-
oauthClientId?: pulumi.Input<string>;
|
|
233
|
-
/**
|
|
234
|
-
* OAuth client secret (for Snowflake and Databricks)
|
|
235
|
-
*/
|
|
236
|
-
oauthClientSecret?: pulumi.Input<string>;
|
|
237
|
-
/**
|
|
238
|
-
* Port number to connect via
|
|
239
|
-
*/
|
|
240
|
-
port?: pulumi.Input<number>;
|
|
241
|
-
/**
|
|
242
|
-
* The ID of the PrivateLink connection. This ID can be found using the `privatelinkEndpoint` data source
|
|
243
|
-
*/
|
|
244
|
-
privateLinkEndpointId?: pulumi.Input<string>;
|
|
245
|
-
/**
|
|
246
|
-
* Project ID to create the connection in
|
|
247
|
-
*/
|
|
248
|
-
projectId?: pulumi.Input<number>;
|
|
249
|
-
/**
|
|
250
|
-
* Role name for the connection (for Snowflake)
|
|
251
|
-
*/
|
|
252
|
-
role?: pulumi.Input<string>;
|
|
253
|
-
/**
|
|
254
|
-
* Whether or not tunneling should be enabled on your database connection
|
|
255
|
-
*/
|
|
256
|
-
tunnelEnabled?: pulumi.Input<boolean>;
|
|
257
|
-
/**
|
|
258
|
-
* The type of connection
|
|
259
|
-
*/
|
|
260
|
-
type?: pulumi.Input<string>;
|
|
261
|
-
/**
|
|
262
|
-
* Warehouse name for the connection (for Snowflake)
|
|
263
|
-
*/
|
|
264
|
-
warehouse?: pulumi.Input<string>;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* The set of arguments for constructing a Connection resource.
|
|
268
|
-
*/
|
|
269
|
-
export interface ConnectionArgs {
|
|
270
|
-
/**
|
|
271
|
-
* Account name for the connection (for Snowflake)
|
|
272
|
-
*/
|
|
273
|
-
account?: pulumi.Input<string>;
|
|
274
|
-
/**
|
|
275
|
-
* Whether or not the connection should allow client session keep alive (for Snowflake)
|
|
276
|
-
*/
|
|
277
|
-
allowKeepAlive?: pulumi.Input<boolean>;
|
|
278
|
-
/**
|
|
279
|
-
* Whether or not the connection should allow SSO (for Snowflake)
|
|
280
|
-
*/
|
|
281
|
-
allowSso?: pulumi.Input<boolean>;
|
|
282
|
-
/**
|
|
283
|
-
* Catalog name if Unity Catalog is enabled in your Databricks workspace (for Databricks)
|
|
284
|
-
*/
|
|
285
|
-
catalog?: pulumi.Input<string>;
|
|
286
|
-
/**
|
|
287
|
-
* Database name for the connection
|
|
288
|
-
*/
|
|
289
|
-
database: pulumi.Input<string>;
|
|
290
|
-
/**
|
|
291
|
-
* Host name for the connection, including Databricks cluster
|
|
292
|
-
*/
|
|
293
|
-
hostName?: pulumi.Input<string>;
|
|
294
|
-
/**
|
|
295
|
-
* The HTTP path of the Databricks cluster or SQL warehouse (for Databricks)
|
|
296
|
-
*/
|
|
297
|
-
httpPath?: pulumi.Input<string>;
|
|
298
|
-
/**
|
|
299
|
-
* Whether the connection is active
|
|
300
|
-
*/
|
|
301
|
-
isActive?: pulumi.Input<boolean>;
|
|
302
|
-
/**
|
|
303
|
-
* Connection name
|
|
304
|
-
*/
|
|
305
|
-
name?: pulumi.Input<string>;
|
|
306
|
-
/**
|
|
307
|
-
* OAuth client identifier (for Snowflake and Databricks)
|
|
308
|
-
*/
|
|
309
|
-
oauthClientId?: pulumi.Input<string>;
|
|
310
|
-
/**
|
|
311
|
-
* OAuth client secret (for Snowflake and Databricks)
|
|
312
|
-
*/
|
|
313
|
-
oauthClientSecret?: pulumi.Input<string>;
|
|
314
|
-
/**
|
|
315
|
-
* Port number to connect via
|
|
316
|
-
*/
|
|
317
|
-
port?: pulumi.Input<number>;
|
|
318
|
-
/**
|
|
319
|
-
* The ID of the PrivateLink connection. This ID can be found using the `privatelinkEndpoint` data source
|
|
320
|
-
*/
|
|
321
|
-
privateLinkEndpointId?: pulumi.Input<string>;
|
|
322
|
-
/**
|
|
323
|
-
* Project ID to create the connection in
|
|
324
|
-
*/
|
|
325
|
-
projectId: pulumi.Input<number>;
|
|
326
|
-
/**
|
|
327
|
-
* Role name for the connection (for Snowflake)
|
|
328
|
-
*/
|
|
329
|
-
role?: pulumi.Input<string>;
|
|
330
|
-
/**
|
|
331
|
-
* Whether or not tunneling should be enabled on your database connection
|
|
332
|
-
*/
|
|
333
|
-
tunnelEnabled?: pulumi.Input<boolean>;
|
|
334
|
-
/**
|
|
335
|
-
* The type of connection
|
|
336
|
-
*/
|
|
337
|
-
type: pulumi.Input<string>;
|
|
338
|
-
/**
|
|
339
|
-
* Warehouse name for the connection (for Snowflake)
|
|
340
|
-
*/
|
|
341
|
-
warehouse?: pulumi.Input<string>;
|
|
342
|
-
}
|
package/connection.js
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
-
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Connection = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Resource to create a Data Warehouse connection in dbt Cloud.
|
|
10
|
-
*
|
|
11
|
-
* > This resource is deprecated and is going to be removed in the next major release, please use the `dbtcloud.GlobalConnection` resource instead to create connections.
|
|
12
|
-
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
18
|
-
*
|
|
19
|
-
* const databricks = new dbtcloud.Connection("databricks", {
|
|
20
|
-
* projectId: dbtProject.id,
|
|
21
|
-
* type: "adapter",
|
|
22
|
-
* name: "Databricks",
|
|
23
|
-
* database: "",
|
|
24
|
-
* hostName: "my-databricks-host.cloud.databricks.com",
|
|
25
|
-
* httpPath: "/my/path",
|
|
26
|
-
* catalog: "moo",
|
|
27
|
-
* oauthClientId: "yourclientid",
|
|
28
|
-
* oauthClientSecret: "yourclientsecret",
|
|
29
|
-
* });
|
|
30
|
-
* const redshift = new dbtcloud.Connection("redshift", {
|
|
31
|
-
* projectId: dbtProject.id,
|
|
32
|
-
* type: "redshift",
|
|
33
|
-
* name: "My Redshift Warehouse",
|
|
34
|
-
* database: "my-database",
|
|
35
|
-
* port: 5439,
|
|
36
|
-
* hostName: "my-redshift-hostname",
|
|
37
|
-
* });
|
|
38
|
-
* const snowflake = new dbtcloud.Connection("snowflake", {
|
|
39
|
-
* projectId: dbtProject.id,
|
|
40
|
-
* type: "snowflake",
|
|
41
|
-
* name: "My Snowflake warehouse",
|
|
42
|
-
* account: "my-snowflake-account",
|
|
43
|
-
* database: "MY_DATABASE",
|
|
44
|
-
* role: "MY_ROLE",
|
|
45
|
-
* warehouse: "MY_WAREHOUSE",
|
|
46
|
-
* oauthClientId: "yourclientid",
|
|
47
|
-
* oauthClientSecret: "yourclientsecret",
|
|
48
|
-
* allowSso: true,
|
|
49
|
-
* });
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* ## Import
|
|
53
|
-
*
|
|
54
|
-
* using import blocks (requires Terraform >= 1.5)
|
|
55
|
-
*
|
|
56
|
-
* import {
|
|
57
|
-
*
|
|
58
|
-
* to = dbtcloud_connection.test_connection
|
|
59
|
-
*
|
|
60
|
-
* id = "project_id:connection_id"
|
|
61
|
-
*
|
|
62
|
-
* }
|
|
63
|
-
*
|
|
64
|
-
* import {
|
|
65
|
-
*
|
|
66
|
-
* to = dbtcloud_connection.test_connection
|
|
67
|
-
*
|
|
68
|
-
* id = "12345:6789"
|
|
69
|
-
*
|
|
70
|
-
* }
|
|
71
|
-
*
|
|
72
|
-
* using the older import command
|
|
73
|
-
*
|
|
74
|
-
* ```sh
|
|
75
|
-
* $ pulumi import dbtcloud:index/connection:Connection test_connection "project_id:connection_id"
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* ```sh
|
|
79
|
-
* $ pulumi import dbtcloud:index/connection:Connection test_connection 12345:6789
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
class Connection extends pulumi.CustomResource {
|
|
83
|
-
/**
|
|
84
|
-
* Get an existing Connection resource's state with the given name, ID, and optional extra
|
|
85
|
-
* properties used to qualify the lookup.
|
|
86
|
-
*
|
|
87
|
-
* @param name The _unique_ name of the resulting resource.
|
|
88
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
89
|
-
* @param state Any extra arguments used during the lookup.
|
|
90
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
91
|
-
*/
|
|
92
|
-
static get(name, id, state, opts) {
|
|
93
|
-
return new Connection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Returns true if the given object is an instance of Connection. This is designed to work even
|
|
97
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
98
|
-
*/
|
|
99
|
-
static isInstance(obj) {
|
|
100
|
-
if (obj === undefined || obj === null) {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
return obj['__pulumiType'] === Connection.__pulumiType;
|
|
104
|
-
}
|
|
105
|
-
constructor(name, argsOrState, opts) {
|
|
106
|
-
let resourceInputs = {};
|
|
107
|
-
opts = opts || {};
|
|
108
|
-
if (opts.id) {
|
|
109
|
-
const state = argsOrState;
|
|
110
|
-
resourceInputs["account"] = state ? state.account : undefined;
|
|
111
|
-
resourceInputs["adapterId"] = state ? state.adapterId : undefined;
|
|
112
|
-
resourceInputs["allowKeepAlive"] = state ? state.allowKeepAlive : undefined;
|
|
113
|
-
resourceInputs["allowSso"] = state ? state.allowSso : undefined;
|
|
114
|
-
resourceInputs["catalog"] = state ? state.catalog : undefined;
|
|
115
|
-
resourceInputs["connectionId"] = state ? state.connectionId : undefined;
|
|
116
|
-
resourceInputs["database"] = state ? state.database : undefined;
|
|
117
|
-
resourceInputs["hostName"] = state ? state.hostName : undefined;
|
|
118
|
-
resourceInputs["httpPath"] = state ? state.httpPath : undefined;
|
|
119
|
-
resourceInputs["isActive"] = state ? state.isActive : undefined;
|
|
120
|
-
resourceInputs["name"] = state ? state.name : undefined;
|
|
121
|
-
resourceInputs["oauthClientId"] = state ? state.oauthClientId : undefined;
|
|
122
|
-
resourceInputs["oauthClientSecret"] = state ? state.oauthClientSecret : undefined;
|
|
123
|
-
resourceInputs["port"] = state ? state.port : undefined;
|
|
124
|
-
resourceInputs["privateLinkEndpointId"] = state ? state.privateLinkEndpointId : undefined;
|
|
125
|
-
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
126
|
-
resourceInputs["role"] = state ? state.role : undefined;
|
|
127
|
-
resourceInputs["tunnelEnabled"] = state ? state.tunnelEnabled : undefined;
|
|
128
|
-
resourceInputs["type"] = state ? state.type : undefined;
|
|
129
|
-
resourceInputs["warehouse"] = state ? state.warehouse : undefined;
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
const args = argsOrState;
|
|
133
|
-
if ((!args || args.database === undefined) && !opts.urn) {
|
|
134
|
-
throw new Error("Missing required property 'database'");
|
|
135
|
-
}
|
|
136
|
-
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
137
|
-
throw new Error("Missing required property 'projectId'");
|
|
138
|
-
}
|
|
139
|
-
if ((!args || args.type === undefined) && !opts.urn) {
|
|
140
|
-
throw new Error("Missing required property 'type'");
|
|
141
|
-
}
|
|
142
|
-
resourceInputs["account"] = args ? args.account : undefined;
|
|
143
|
-
resourceInputs["allowKeepAlive"] = args ? args.allowKeepAlive : undefined;
|
|
144
|
-
resourceInputs["allowSso"] = args ? args.allowSso : undefined;
|
|
145
|
-
resourceInputs["catalog"] = args ? args.catalog : undefined;
|
|
146
|
-
resourceInputs["database"] = args ? args.database : undefined;
|
|
147
|
-
resourceInputs["hostName"] = args ? args.hostName : undefined;
|
|
148
|
-
resourceInputs["httpPath"] = args ? args.httpPath : undefined;
|
|
149
|
-
resourceInputs["isActive"] = args ? args.isActive : undefined;
|
|
150
|
-
resourceInputs["name"] = args ? args.name : undefined;
|
|
151
|
-
resourceInputs["oauthClientId"] = args ? args.oauthClientId : undefined;
|
|
152
|
-
resourceInputs["oauthClientSecret"] = args ? args.oauthClientSecret : undefined;
|
|
153
|
-
resourceInputs["port"] = args ? args.port : undefined;
|
|
154
|
-
resourceInputs["privateLinkEndpointId"] = args ? args.privateLinkEndpointId : undefined;
|
|
155
|
-
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
156
|
-
resourceInputs["role"] = args ? args.role : undefined;
|
|
157
|
-
resourceInputs["tunnelEnabled"] = args ? args.tunnelEnabled : undefined;
|
|
158
|
-
resourceInputs["type"] = args ? args.type : undefined;
|
|
159
|
-
resourceInputs["warehouse"] = args ? args.warehouse : undefined;
|
|
160
|
-
resourceInputs["adapterId"] = undefined /*out*/;
|
|
161
|
-
resourceInputs["connectionId"] = undefined /*out*/;
|
|
162
|
-
}
|
|
163
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
164
|
-
super(Connection.__pulumiType, name, resourceInputs, opts);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
exports.Connection = Connection;
|
|
168
|
-
/** @internal */
|
|
169
|
-
Connection.__pulumiType = 'dbtcloud:index/connection:Connection';
|
|
170
|
-
//# sourceMappingURL=connection.js.map
|
package/connection.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../connection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GA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