@pulumi/dbtcloud 1.2.0-alpha.1760375140 → 1.2.0-alpha.1760499184

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/environment.d.ts CHANGED
@@ -9,7 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as dbtcloud from "@pulumi/dbtcloud";
10
10
  *
11
11
  * const ciEnvironment = new dbtcloud.Environment("ci_environment", {
12
- * dbtVersion: "latest-fusion",
12
+ * dbtVersion: "latest",
13
13
  * name: "CI",
14
14
  * projectId: dbtProject.id,
15
15
  * type: "deployment",
@@ -95,7 +95,7 @@ export declare class Environment extends pulumi.CustomResource {
95
95
  */
96
96
  readonly customBranch: pulumi.Output<string | undefined>;
97
97
  /**
98
- * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` (e.g. `1.5.0-latest`), `major.minor.0-pre`, `compatible`, `extended`, `versionless`, `latest` or `latest-fusion`. While `versionless` is still supported, using `latest` or `latest-fusion` is recommended. Defaults to `latest` if no version is provided
98
+ * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` (e.g. `1.5.0-latest`), `major.minor.0-pre`, `compatible`, `extended`, `versionless`, `latest` or `latest-fusion`. While `versionless` is still supported, using `latest` is recommended. Defaults to `latest` if no version is provided
99
99
  */
100
100
  readonly dbtVersion: pulumi.Output<string>;
101
101
  /**
@@ -160,7 +160,7 @@ export interface EnvironmentState {
160
160
  */
161
161
  customBranch?: pulumi.Input<string>;
162
162
  /**
163
- * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` (e.g. `1.5.0-latest`), `major.minor.0-pre`, `compatible`, `extended`, `versionless`, `latest` or `latest-fusion`. While `versionless` is still supported, using `latest` or `latest-fusion` is recommended. Defaults to `latest` if no version is provided
163
+ * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` (e.g. `1.5.0-latest`), `major.minor.0-pre`, `compatible`, `extended`, `versionless`, `latest` or `latest-fusion`. While `versionless` is still supported, using `latest` is recommended. Defaults to `latest` if no version is provided
164
164
  */
165
165
  dbtVersion?: pulumi.Input<string>;
166
166
  /**
@@ -217,7 +217,7 @@ export interface EnvironmentArgs {
217
217
  */
218
218
  customBranch?: pulumi.Input<string>;
219
219
  /**
220
- * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` (e.g. `1.5.0-latest`), `major.minor.0-pre`, `compatible`, `extended`, `versionless`, `latest` or `latest-fusion`. While `versionless` is still supported, using `latest` or `latest-fusion` is recommended. Defaults to `latest` if no version is provided
220
+ * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` (e.g. `1.5.0-latest`), `major.minor.0-pre`, `compatible`, `extended`, `versionless`, `latest` or `latest-fusion`. While `versionless` is still supported, using `latest` is recommended. Defaults to `latest` if no version is provided
221
221
  */
222
222
  dbtVersion?: pulumi.Input<string>;
223
223
  /**
package/environment.js CHANGED
@@ -15,7 +15,7 @@ const utilities = require("./utilities");
15
15
  * import * as dbtcloud from "@pulumi/dbtcloud";
16
16
  *
17
17
  * const ciEnvironment = new dbtcloud.Environment("ci_environment", {
18
- * dbtVersion: "latest-fusion",
18
+ * dbtVersion: "latest",
19
19
  * name: "CI",
20
20
  * projectId: dbtProject.id,
21
21
  * type: "deployment",
@@ -1,6 +1,43 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
2
3
  /**
3
- * Privatelink endpoint data sources.
4
+ * Retrieve information about all PrivateLink endpoints in the dbt Cloud account.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as dbtcloud from "@pulumi/dbtcloud";
11
+ *
12
+ * export = async () => {
13
+ * const all = await dbtcloud.getPrivatelinkEndpoints({});
14
+ * const snowflakeEndpoint = .filter(endpoint => endpoint.name == "Snowflake Production Endpoint").map(endpoint => (endpoint))[0];
15
+ * // Use the endpoint in a global connection
16
+ * const snowflake = new dbtcloud.GlobalConnection("snowflake", {
17
+ * name: "Snowflake via PrivateLink",
18
+ * privateLinkEndpointId: snowflakeEndpoint.id,
19
+ * snowflake: {
20
+ * account: "my-snowflake-account",
21
+ * database: "ANALYTICS",
22
+ * warehouse: "COMPUTE_WH",
23
+ * },
24
+ * });
25
+ * const snowflakeEndpoints = .filter(endpoint => endpoint.type == "snowflake").map(endpoint => (endpoint));
26
+ * // Create connections for all Snowflake endpoints
27
+ * const snowflakeConnections: dbtcloud.GlobalConnection[] = [];
28
+ * for (const range of Object.entries(.reduce((__obj, ep) => ({ ...__obj, [ep.id]: ep }))).map(([k, v]) => ({key: k, value: v}))) {
29
+ * snowflakeConnections.push(new dbtcloud.GlobalConnection(`snowflake_connections-${range.key}`, {
30
+ * name: `Connection for ${range.value.name}`,
31
+ * privateLinkEndpointId: range.value.id,
32
+ * snowflake: {
33
+ * account: "my-account",
34
+ * database: "ANALYTICS",
35
+ * warehouse: "COMPUTE_WH",
36
+ * },
37
+ * }));
38
+ * }
39
+ * }
40
+ * ```
4
41
  */
5
42
  export declare function getPrivatelinkEndpoints(opts?: pulumi.InvokeOptions): Promise<GetPrivatelinkEndpointsResult>;
6
43
  /**
@@ -8,11 +45,51 @@ export declare function getPrivatelinkEndpoints(opts?: pulumi.InvokeOptions): Pr
8
45
  */
9
46
  export interface GetPrivatelinkEndpointsResult {
10
47
  /**
11
- * The internal ID of the PrivateLink Endpoint
48
+ * A list of all PrivateLink endpoints in the account
49
+ */
50
+ readonly endpoints: outputs.GetPrivatelinkEndpointsEndpoint[];
51
+ /**
52
+ * The provider-assigned unique ID for this managed resource.
12
53
  */
13
54
  readonly id: string;
14
55
  }
15
56
  /**
16
- * Privatelink endpoint data sources.
57
+ * Retrieve information about all PrivateLink endpoints in the dbt Cloud account.
58
+ *
59
+ * ## Example Usage
60
+ *
61
+ * ```typescript
62
+ * import * as pulumi from "@pulumi/pulumi";
63
+ * import * as dbtcloud from "@pulumi/dbtcloud";
64
+ *
65
+ * export = async () => {
66
+ * const all = await dbtcloud.getPrivatelinkEndpoints({});
67
+ * const snowflakeEndpoint = .filter(endpoint => endpoint.name == "Snowflake Production Endpoint").map(endpoint => (endpoint))[0];
68
+ * // Use the endpoint in a global connection
69
+ * const snowflake = new dbtcloud.GlobalConnection("snowflake", {
70
+ * name: "Snowflake via PrivateLink",
71
+ * privateLinkEndpointId: snowflakeEndpoint.id,
72
+ * snowflake: {
73
+ * account: "my-snowflake-account",
74
+ * database: "ANALYTICS",
75
+ * warehouse: "COMPUTE_WH",
76
+ * },
77
+ * });
78
+ * const snowflakeEndpoints = .filter(endpoint => endpoint.type == "snowflake").map(endpoint => (endpoint));
79
+ * // Create connections for all Snowflake endpoints
80
+ * const snowflakeConnections: dbtcloud.GlobalConnection[] = [];
81
+ * for (const range of Object.entries(.reduce((__obj, ep) => ({ ...__obj, [ep.id]: ep }))).map(([k, v]) => ({key: k, value: v}))) {
82
+ * snowflakeConnections.push(new dbtcloud.GlobalConnection(`snowflake_connections-${range.key}`, {
83
+ * name: `Connection for ${range.value.name}`,
84
+ * privateLinkEndpointId: range.value.id,
85
+ * snowflake: {
86
+ * account: "my-account",
87
+ * database: "ANALYTICS",
88
+ * warehouse: "COMPUTE_WH",
89
+ * },
90
+ * }));
91
+ * }
92
+ * }
93
+ * ```
17
94
  */
18
95
  export declare function getPrivatelinkEndpointsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPrivatelinkEndpointsResult>;
@@ -6,7 +6,43 @@ exports.getPrivatelinkEndpointsOutput = exports.getPrivatelinkEndpoints = void 0
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Privatelink endpoint data sources.
9
+ * Retrieve information about all PrivateLink endpoints in the dbt Cloud account.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as dbtcloud from "@pulumi/dbtcloud";
16
+ *
17
+ * export = async () => {
18
+ * const all = await dbtcloud.getPrivatelinkEndpoints({});
19
+ * const snowflakeEndpoint = .filter(endpoint => endpoint.name == "Snowflake Production Endpoint").map(endpoint => (endpoint))[0];
20
+ * // Use the endpoint in a global connection
21
+ * const snowflake = new dbtcloud.GlobalConnection("snowflake", {
22
+ * name: "Snowflake via PrivateLink",
23
+ * privateLinkEndpointId: snowflakeEndpoint.id,
24
+ * snowflake: {
25
+ * account: "my-snowflake-account",
26
+ * database: "ANALYTICS",
27
+ * warehouse: "COMPUTE_WH",
28
+ * },
29
+ * });
30
+ * const snowflakeEndpoints = .filter(endpoint => endpoint.type == "snowflake").map(endpoint => (endpoint));
31
+ * // Create connections for all Snowflake endpoints
32
+ * const snowflakeConnections: dbtcloud.GlobalConnection[] = [];
33
+ * for (const range of Object.entries(.reduce((__obj, ep) => ({ ...__obj, [ep.id]: ep }))).map(([k, v]) => ({key: k, value: v}))) {
34
+ * snowflakeConnections.push(new dbtcloud.GlobalConnection(`snowflake_connections-${range.key}`, {
35
+ * name: `Connection for ${range.value.name}`,
36
+ * privateLinkEndpointId: range.value.id,
37
+ * snowflake: {
38
+ * account: "my-account",
39
+ * database: "ANALYTICS",
40
+ * warehouse: "COMPUTE_WH",
41
+ * },
42
+ * }));
43
+ * }
44
+ * }
45
+ * ```
10
46
  */
11
47
  function getPrivatelinkEndpoints(opts) {
12
48
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -14,7 +50,43 @@ function getPrivatelinkEndpoints(opts) {
14
50
  }
15
51
  exports.getPrivatelinkEndpoints = getPrivatelinkEndpoints;
16
52
  /**
17
- * Privatelink endpoint data sources.
53
+ * Retrieve information about all PrivateLink endpoints in the dbt Cloud account.
54
+ *
55
+ * ## Example Usage
56
+ *
57
+ * ```typescript
58
+ * import * as pulumi from "@pulumi/pulumi";
59
+ * import * as dbtcloud from "@pulumi/dbtcloud";
60
+ *
61
+ * export = async () => {
62
+ * const all = await dbtcloud.getPrivatelinkEndpoints({});
63
+ * const snowflakeEndpoint = .filter(endpoint => endpoint.name == "Snowflake Production Endpoint").map(endpoint => (endpoint))[0];
64
+ * // Use the endpoint in a global connection
65
+ * const snowflake = new dbtcloud.GlobalConnection("snowflake", {
66
+ * name: "Snowflake via PrivateLink",
67
+ * privateLinkEndpointId: snowflakeEndpoint.id,
68
+ * snowflake: {
69
+ * account: "my-snowflake-account",
70
+ * database: "ANALYTICS",
71
+ * warehouse: "COMPUTE_WH",
72
+ * },
73
+ * });
74
+ * const snowflakeEndpoints = .filter(endpoint => endpoint.type == "snowflake").map(endpoint => (endpoint));
75
+ * // Create connections for all Snowflake endpoints
76
+ * const snowflakeConnections: dbtcloud.GlobalConnection[] = [];
77
+ * for (const range of Object.entries(.reduce((__obj, ep) => ({ ...__obj, [ep.id]: ep }))).map(([k, v]) => ({key: k, value: v}))) {
78
+ * snowflakeConnections.push(new dbtcloud.GlobalConnection(`snowflake_connections-${range.key}`, {
79
+ * name: `Connection for ${range.value.name}`,
80
+ * privateLinkEndpointId: range.value.id,
81
+ * snowflake: {
82
+ * account: "my-account",
83
+ * database: "ANALYTICS",
84
+ * warehouse: "COMPUTE_WH",
85
+ * },
86
+ * }));
87
+ * }
88
+ * }
89
+ * ```
18
90
  */
19
91
  function getPrivatelinkEndpointsOutput(opts) {
20
92
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getPrivatelinkEndpoints.js","sourceRoot":"","sources":["../getPrivatelinkEndpoints.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,uBAAuB,CAAC,IAA2B;IAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE,EAC9F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,0DAIC;AAWD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,IAAiC;IAC3E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gEAAgE,EAAE,EACpG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,sEAIC"}
1
+ {"version":3,"file":"getPrivatelinkEndpoints.js","sourceRoot":"","sources":["../getPrivatelinkEndpoints.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAgB,uBAAuB,CAAC,IAA2B;IAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE,EAC9F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,0DAIC;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAgB,6BAA6B,CAAC,IAAiC;IAC3E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gEAAgE,EAAE,EACpG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,sEAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/dbtcloud",
3
- "version": "1.2.0-alpha.1760375140",
3
+ "version": "1.2.0-alpha.1760499184",
4
4
  "description": "A Pulumi package for creating and managing dbt Cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -26,7 +26,7 @@
26
26
  "pulumi": {
27
27
  "resource": true,
28
28
  "name": "dbtcloud",
29
- "version": "1.2.0-alpha.1760375140",
29
+ "version": "1.2.0-alpha.1760499184",
30
30
  "server": "github://api.github.com/pulumi/pulumi-dbtcloud"
31
31
  }
32
32
  }
package/types/input.d.ts CHANGED
@@ -379,6 +379,10 @@ export interface GlobalConnectionBigquery {
379
379
  * Maximum timeout for the job creation step
380
380
  */
381
381
  jobCreationTimeoutSeconds?: pulumi.Input<number>;
382
+ /**
383
+ * Timeout in seconds for job execution, to be used for the bigqueryV1 adapter
384
+ */
385
+ jobExecutionTimeoutSeconds?: pulumi.Input<number>;
382
386
  /**
383
387
  * Total number of seconds to wait while retrying the same query
384
388
  */
@@ -412,13 +416,17 @@ export interface GlobalConnectionBigquery {
412
416
  */
413
417
  scopes?: pulumi.Input<pulumi.Input<string>[]>;
414
418
  /**
415
- * Timeout in seconds for queries
419
+ * Timeout in seconds for queries, to be used ONLY for the bigqueryV0 adapter
416
420
  */
417
421
  timeoutSeconds?: pulumi.Input<number>;
418
422
  /**
419
423
  * Token URI for the Service Account
420
424
  */
421
425
  tokenUri: pulumi.Input<string>;
426
+ /**
427
+ * Whether to use the latest bigqueryV1 adapter (use this for BQ WIF). If true, the `jobExecutionTimeoutSeconds` field will be used. Warning! changing the adapter version (from legacy to latest or vice versa) is not supported.
428
+ */
429
+ useLatestAdapter?: pulumi.Input<boolean>;
422
430
  }
423
431
  export interface GlobalConnectionDatabricks {
424
432
  /**
package/types/output.d.ts CHANGED
@@ -861,6 +861,28 @@ export interface GetJobsJobTriggers {
861
861
  */
862
862
  schedule: boolean;
863
863
  }
864
+ export interface GetPrivatelinkEndpointsEndpoint {
865
+ /**
866
+ * CIDR range of the PrivateLink Endpoint
867
+ */
868
+ cidrRange: string;
869
+ /**
870
+ * The internal ID of the PrivateLink Endpoint
871
+ */
872
+ id: string;
873
+ /**
874
+ * Given descriptive name for the PrivateLink Endpoint
875
+ */
876
+ name: string;
877
+ /**
878
+ * URL of the PrivateLink Endpoint
879
+ */
880
+ privateLinkEndpointUrl: string;
881
+ /**
882
+ * Type of the PrivateLink Endpoint
883
+ */
884
+ type: string;
885
+ }
864
886
  export interface GetProjectProjectConnection {
865
887
  /**
866
888
  * Version of the adapter for the connection. Will tell what connection type it is
@@ -1204,6 +1226,10 @@ export interface GlobalConnectionBigquery {
1204
1226
  * Maximum timeout for the job creation step
1205
1227
  */
1206
1228
  jobCreationTimeoutSeconds?: number;
1229
+ /**
1230
+ * Timeout in seconds for job execution, to be used for the bigqueryV1 adapter
1231
+ */
1232
+ jobExecutionTimeoutSeconds?: number;
1207
1233
  /**
1208
1234
  * Total number of seconds to wait while retrying the same query
1209
1235
  */
@@ -1237,13 +1263,17 @@ export interface GlobalConnectionBigquery {
1237
1263
  */
1238
1264
  scopes: string[];
1239
1265
  /**
1240
- * Timeout in seconds for queries
1266
+ * Timeout in seconds for queries, to be used ONLY for the bigqueryV0 adapter
1241
1267
  */
1242
1268
  timeoutSeconds: number;
1243
1269
  /**
1244
1270
  * Token URI for the Service Account
1245
1271
  */
1246
1272
  tokenUri: string;
1273
+ /**
1274
+ * Whether to use the latest bigqueryV1 adapter (use this for BQ WIF). If true, the `jobExecutionTimeoutSeconds` field will be used. Warning! changing the adapter version (from legacy to latest or vice versa) is not supported.
1275
+ */
1276
+ useLatestAdapter?: boolean;
1247
1277
  }
1248
1278
  export interface GlobalConnectionDatabricks {
1249
1279
  /**