@pulumi/dbtcloud 1.11.8 → 1.11.9-alpha.1791907841
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/athenaCredential.d.ts +2 -2
- package/athenaCredential.js +2 -2
- package/bigQueryCredential.d.ts +3 -3
- package/bigQueryCredential.js +3 -3
- package/bigquerySemanticLayerCredential.d.ts +3 -3
- package/bigquerySemanticLayerCredential.js +3 -3
- package/clickhouseCredential.d.ts +2 -2
- package/clickhouseCredential.js +2 -2
- package/connectionCatalogConfig.d.ts +4 -4
- package/connectionCatalogConfig.js +4 -4
- package/databricksCredential.d.ts +2 -2
- package/databricksCredential.js +2 -2
- package/databricksPlatformMetadataCredential.d.ts +2 -2
- package/databricksPlatformMetadataCredential.js +2 -2
- package/databricksSemanticLayerCredential.d.ts +2 -2
- package/databricksSemanticLayerCredential.js +2 -2
- package/environment.d.ts +10 -10
- package/environment.js +10 -10
- package/environmentVariable.d.ts +1 -1
- package/environmentVariable.js +1 -1
- package/environmentVariableJobOverride.d.ts +2 -2
- package/environmentVariableJobOverride.js +2 -2
- package/extendedAttributes.d.ts +5 -5
- package/extendedAttributes.js +5 -5
- package/fabricCredential.d.ts +4 -4
- package/fabricCredential.js +4 -4
- package/getProject.d.ts +2 -2
- package/getProject.js +2 -2
- package/getSparkCredential.d.ts +2 -2
- package/getSparkCredential.js +2 -2
- package/getUsers.d.ts +2 -2
- package/getUsers.js +2 -2
- package/group.d.ts +1 -1
- package/group.js +1 -1
- package/groupPartialPermissions.d.ts +4 -4
- package/groupPartialPermissions.js +4 -4
- package/job.d.ts +3 -3
- package/job.js +3 -3
- package/lineageIntegration.d.ts +2 -2
- package/lineageIntegration.js +2 -2
- package/notification.d.ts +1 -1
- package/notification.js +1 -1
- package/notificationSetting.d.ts +2 -2
- package/notificationSetting.js +2 -2
- package/openaiIntegration.d.ts +2 -2
- package/openaiIntegration.js +2 -2
- package/package.json +2 -2
- package/postgresCredential.d.ts +2 -2
- package/postgresCredential.js +2 -2
- package/postgresSemanticLayerCredential.d.ts +2 -2
- package/postgresSemanticLayerCredential.js +2 -2
- package/profile.d.ts +7 -7
- package/profile.js +7 -7
- package/projectArtefacts.d.ts +3 -3
- package/projectArtefacts.js +3 -3
- package/projectRepository.d.ts +2 -2
- package/projectRepository.js +2 -2
- package/redshiftCredential.d.ts +2 -2
- package/redshiftCredential.js +2 -2
- package/redshiftSemanticLayerCredential.d.ts +3 -3
- package/redshiftSemanticLayerCredential.js +3 -3
- package/salesforceCredential.d.ts +2 -2
- package/salesforceCredential.js +2 -2
- package/scimConfigToken.d.ts +1 -1
- package/scimConfigToken.js +1 -1
- package/scimGroupPartialPermissions.d.ts +4 -4
- package/scimGroupPartialPermissions.js +4 -4
- package/semanticLayerConfiguration.d.ts +2 -2
- package/semanticLayerConfiguration.js +2 -2
- package/semanticLayerCredentialServiceTokenMapping.d.ts +3 -3
- package/semanticLayerCredentialServiceTokenMapping.js +3 -3
- package/serviceToken.d.ts +1 -1
- package/serviceToken.js +1 -1
- package/snowflakeCredential.d.ts +2 -2
- package/snowflakeCredential.js +2 -2
- package/snowflakePlatformMetadataCredential.d.ts +4 -4
- package/snowflakePlatformMetadataCredential.js +4 -4
- package/snowflakeSemanticLayerCredential.d.ts +4 -4
- package/snowflakeSemanticLayerCredential.js +4 -4
- package/sparkCredential.d.ts +2 -2
- package/sparkCredential.js +2 -2
- package/starburstCredential.d.ts +2 -2
- package/starburstCredential.js +2 -2
- package/synapseCredential.d.ts +5 -5
- package/synapseCredential.js +5 -5
- package/teradataCredential.d.ts +2 -2
- package/teradataCredential.js +2 -2
- package/userGroups.d.ts +1 -1
- package/userGroups.js +1 -1
package/athenaCredential.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
*
|
|
11
11
|
* // Using the classic sensitive attributes (stored in state)
|
|
12
12
|
* const example = new dbtcloud.AthenaCredential("example", {
|
|
13
|
-
* projectId:
|
|
13
|
+
* projectId: exampleDbtcloudProject.id,
|
|
14
14
|
* awsAccessKeyId: "your-access-key-id",
|
|
15
15
|
* awsSecretAccessKey: "your-secret-access-key",
|
|
16
16
|
* schema: "your_schema",
|
|
@@ -19,7 +19,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* const athenaAwsAccessKeyId = config.require("athenaAwsAccessKeyId");
|
|
20
20
|
* const athenaAwsSecretAccessKey = config.require("athenaAwsSecretAccessKey");
|
|
21
21
|
* const exampleWo = new dbtcloud.AthenaCredential("example_wo", {
|
|
22
|
-
* projectId:
|
|
22
|
+
* projectId: exampleDbtcloudProject.id,
|
|
23
23
|
* awsAccessKeyIdWo: athenaAwsAccessKeyId,
|
|
24
24
|
* awsAccessKeyIdWoVersion: 1,
|
|
25
25
|
* awsSecretAccessKeyWo: athenaAwsSecretAccessKey,
|
package/athenaCredential.js
CHANGED
|
@@ -39,7 +39,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
39
39
|
*
|
|
40
40
|
* // Using the classic sensitive attributes (stored in state)
|
|
41
41
|
* const example = new dbtcloud.AthenaCredential("example", {
|
|
42
|
-
* projectId:
|
|
42
|
+
* projectId: exampleDbtcloudProject.id,
|
|
43
43
|
* awsAccessKeyId: "your-access-key-id",
|
|
44
44
|
* awsSecretAccessKey: "your-secret-access-key",
|
|
45
45
|
* schema: "your_schema",
|
|
@@ -48,7 +48,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
48
48
|
* const athenaAwsAccessKeyId = config.require("athenaAwsAccessKeyId");
|
|
49
49
|
* const athenaAwsSecretAccessKey = config.require("athenaAwsSecretAccessKey");
|
|
50
50
|
* const exampleWo = new dbtcloud.AthenaCredential("example_wo", {
|
|
51
|
-
* projectId:
|
|
51
|
+
* projectId: exampleDbtcloudProject.id,
|
|
52
52
|
* awsAccessKeyIdWo: athenaAwsAccessKeyId,
|
|
53
53
|
* awsAccessKeyIdWoVersion: 1,
|
|
54
54
|
* awsSecretAccessKeyWo: athenaAwsSecretAccessKey,
|
package/bigQueryCredential.d.ts
CHANGED
|
@@ -9,17 +9,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
10
10
|
*
|
|
11
11
|
* const myCredential = new dbtcloud.BigQueryCredential("my_credential", {
|
|
12
|
-
* projectId:
|
|
12
|
+
* projectId: dbtProject.id,
|
|
13
13
|
* dataset: "my_bq_dataset",
|
|
14
14
|
* numThreads: 16,
|
|
15
15
|
* });
|
|
16
16
|
* // When using a global connection with use_latest_adapter = true,
|
|
17
17
|
* // provide the connection_id to automatically use the correct adapter version
|
|
18
18
|
* const myCredentialV1 = new dbtcloud.BigQueryCredential("my_credential_v1", {
|
|
19
|
-
* projectId:
|
|
19
|
+
* projectId: dbtProject.id,
|
|
20
20
|
* dataset: "my_bq_dataset",
|
|
21
21
|
* numThreads: 16,
|
|
22
|
-
* connectionId:
|
|
22
|
+
* connectionId: myConnection.id,
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*
|
package/bigQueryCredential.js
CHANGED
|
@@ -38,17 +38,17 @@ const utilities = __importStar(require("./utilities"));
|
|
|
38
38
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
39
39
|
*
|
|
40
40
|
* const myCredential = new dbtcloud.BigQueryCredential("my_credential", {
|
|
41
|
-
* projectId:
|
|
41
|
+
* projectId: dbtProject.id,
|
|
42
42
|
* dataset: "my_bq_dataset",
|
|
43
43
|
* numThreads: 16,
|
|
44
44
|
* });
|
|
45
45
|
* // When using a global connection with use_latest_adapter = true,
|
|
46
46
|
* // provide the connection_id to automatically use the correct adapter version
|
|
47
47
|
* const myCredentialV1 = new dbtcloud.BigQueryCredential("my_credential_v1", {
|
|
48
|
-
* projectId:
|
|
48
|
+
* projectId: dbtProject.id,
|
|
49
49
|
* dataset: "my_bq_dataset",
|
|
50
50
|
* numThreads: 16,
|
|
51
|
-
* connectionId:
|
|
51
|
+
* connectionId: myConnection.id,
|
|
52
52
|
* });
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
@@ -12,14 +12,14 @@ import * as outputs from "./types/output";
|
|
|
12
12
|
*
|
|
13
13
|
* const example = new dbtcloud.BigquerySemanticLayerCredential("example", {
|
|
14
14
|
* configuration: {
|
|
15
|
-
* projectId:
|
|
15
|
+
* projectId: projectId,
|
|
16
16
|
* name: "BigQuery SL Credential",
|
|
17
17
|
* adapterVersion: "bigquery_v0",
|
|
18
18
|
* },
|
|
19
19
|
* credential: {
|
|
20
|
-
* projectId:
|
|
20
|
+
* projectId: projectId,
|
|
21
21
|
* isActive: true,
|
|
22
|
-
* numThreads:
|
|
22
|
+
* numThreads: numThreads,
|
|
23
23
|
* dataset: dataset,
|
|
24
24
|
* },
|
|
25
25
|
* privateKeyId: privateKeyId,
|
|
@@ -39,14 +39,14 @@ const utilities = __importStar(require("./utilities"));
|
|
|
39
39
|
*
|
|
40
40
|
* const example = new dbtcloud.BigquerySemanticLayerCredential("example", {
|
|
41
41
|
* configuration: {
|
|
42
|
-
* projectId:
|
|
42
|
+
* projectId: projectId,
|
|
43
43
|
* name: "BigQuery SL Credential",
|
|
44
44
|
* adapterVersion: "bigquery_v0",
|
|
45
45
|
* },
|
|
46
46
|
* credential: {
|
|
47
|
-
* projectId:
|
|
47
|
+
* projectId: projectId,
|
|
48
48
|
* isActive: true,
|
|
49
|
-
* numThreads:
|
|
49
|
+
* numThreads: numThreads,
|
|
50
50
|
* dataset: dataset,
|
|
51
51
|
* },
|
|
52
52
|
* privateKeyId: privateKeyId,
|
|
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
*
|
|
11
11
|
* // Using the classic sensitive attribute (stored in state)
|
|
12
12
|
* const myClickhouseCred = new dbtcloud.ClickhouseCredential("my_clickhouse_cred", {
|
|
13
|
-
* projectId:
|
|
13
|
+
* projectId: dbtProject.id,
|
|
14
14
|
* schema: "my_schema",
|
|
15
15
|
* user: "my_user",
|
|
16
16
|
* password: "my_password",
|
|
@@ -20,7 +20,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
20
|
* const config = new pulumi.Config();
|
|
21
21
|
* const clickhousePassword = config.require("clickhousePassword");
|
|
22
22
|
* const myClickhouseCredWo = new dbtcloud.ClickhouseCredential("my_clickhouse_cred_wo", {
|
|
23
|
-
* projectId:
|
|
23
|
+
* projectId: dbtProject.id,
|
|
24
24
|
* schema: "my_schema",
|
|
25
25
|
* user: "my_user",
|
|
26
26
|
* passwordWo: clickhousePassword,
|
package/clickhouseCredential.js
CHANGED
|
@@ -39,7 +39,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
39
39
|
*
|
|
40
40
|
* // Using the classic sensitive attribute (stored in state)
|
|
41
41
|
* const myClickhouseCred = new dbtcloud.ClickhouseCredential("my_clickhouse_cred", {
|
|
42
|
-
* projectId:
|
|
42
|
+
* projectId: dbtProject.id,
|
|
43
43
|
* schema: "my_schema",
|
|
44
44
|
* user: "my_user",
|
|
45
45
|
* password: "my_password",
|
|
@@ -49,7 +49,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
49
49
|
* const config = new pulumi.Config();
|
|
50
50
|
* const clickhousePassword = config.require("clickhousePassword");
|
|
51
51
|
* const myClickhouseCredWo = new dbtcloud.ClickhouseCredential("my_clickhouse_cred_wo", {
|
|
52
|
-
* projectId:
|
|
52
|
+
* projectId: dbtProject.id,
|
|
53
53
|
* schema: "my_schema",
|
|
54
54
|
* user: "my_user",
|
|
55
55
|
* passwordWo: clickhousePassword,
|
|
@@ -25,7 +25,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
25
|
*
|
|
26
26
|
* // Example: Configure catalog filters for a Snowflake connection
|
|
27
27
|
* const snowflakeFilters = new dbtcloud.ConnectionCatalogConfig("snowflake_filters", {
|
|
28
|
-
* connectionId:
|
|
28
|
+
* connectionId: snowflake.id,
|
|
29
29
|
* databaseAllows: [
|
|
30
30
|
* "analytics",
|
|
31
31
|
* "reporting",
|
|
@@ -46,12 +46,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
46
46
|
* });
|
|
47
47
|
* // Example: Minimal configuration - just filter databases
|
|
48
48
|
* const minimal = new dbtcloud.ConnectionCatalogConfig("minimal", {
|
|
49
|
-
* connectionId:
|
|
49
|
+
* connectionId: snowflake.id,
|
|
50
50
|
* databaseAllows: ["production"],
|
|
51
51
|
* });
|
|
52
52
|
* // Example: Full configuration with platform metadata credential
|
|
53
53
|
* const creds = new dbtcloud.SnowflakePlatformMetadataCredential("creds", {
|
|
54
|
-
* connectionId:
|
|
54
|
+
* connectionId: snowflake.id,
|
|
55
55
|
* catalogIngestionEnabled: true,
|
|
56
56
|
* authType: "password",
|
|
57
57
|
* user: snowflakeUser,
|
|
@@ -60,7 +60,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
60
60
|
* warehouse: snowflakeWarehouse,
|
|
61
61
|
* });
|
|
62
62
|
* const withCreds = new dbtcloud.ConnectionCatalogConfig("with_creds", {
|
|
63
|
-
* connectionId:
|
|
63
|
+
* connectionId: snowflake.id,
|
|
64
64
|
* databaseAllows: [
|
|
65
65
|
* "analytics",
|
|
66
66
|
* "reporting",
|
|
@@ -54,7 +54,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
54
54
|
*
|
|
55
55
|
* // Example: Configure catalog filters for a Snowflake connection
|
|
56
56
|
* const snowflakeFilters = new dbtcloud.ConnectionCatalogConfig("snowflake_filters", {
|
|
57
|
-
* connectionId:
|
|
57
|
+
* connectionId: snowflake.id,
|
|
58
58
|
* databaseAllows: [
|
|
59
59
|
* "analytics",
|
|
60
60
|
* "reporting",
|
|
@@ -75,12 +75,12 @@ const utilities = __importStar(require("./utilities"));
|
|
|
75
75
|
* });
|
|
76
76
|
* // Example: Minimal configuration - just filter databases
|
|
77
77
|
* const minimal = new dbtcloud.ConnectionCatalogConfig("minimal", {
|
|
78
|
-
* connectionId:
|
|
78
|
+
* connectionId: snowflake.id,
|
|
79
79
|
* databaseAllows: ["production"],
|
|
80
80
|
* });
|
|
81
81
|
* // Example: Full configuration with platform metadata credential
|
|
82
82
|
* const creds = new dbtcloud.SnowflakePlatformMetadataCredential("creds", {
|
|
83
|
-
* connectionId:
|
|
83
|
+
* connectionId: snowflake.id,
|
|
84
84
|
* catalogIngestionEnabled: true,
|
|
85
85
|
* authType: "password",
|
|
86
86
|
* user: snowflakeUser,
|
|
@@ -89,7 +89,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
89
89
|
* warehouse: snowflakeWarehouse,
|
|
90
90
|
* });
|
|
91
91
|
* const withCreds = new dbtcloud.ConnectionCatalogConfig("with_creds", {
|
|
92
|
-
* connectionId:
|
|
92
|
+
* connectionId: snowflake.id,
|
|
93
93
|
* databaseAllows: [
|
|
94
94
|
* "analytics",
|
|
95
95
|
* "reporting",
|
|
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
*
|
|
11
11
|
* // Using the classic sensitive attribute (stored in state)
|
|
12
12
|
* const myDatabricksCred = new dbtcloud.DatabricksCredential("my_databricks_cred", {
|
|
13
|
-
* projectId:
|
|
13
|
+
* projectId: dbtProject.id,
|
|
14
14
|
* token: "abcdefgh",
|
|
15
15
|
* schema: "my_schema",
|
|
16
16
|
* adapterType: "databricks",
|
|
@@ -18,7 +18,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
18
|
* const config = new pulumi.Config();
|
|
19
19
|
* const databricksToken = config.require("databricksToken");
|
|
20
20
|
* const myDatabricksCredWo = new dbtcloud.DatabricksCredential("my_databricks_cred_wo", {
|
|
21
|
-
* projectId:
|
|
21
|
+
* projectId: dbtProject.id,
|
|
22
22
|
* tokenWo: databricksToken,
|
|
23
23
|
* tokenWoVersion: 1,
|
|
24
24
|
* schema: "my_schema",
|
package/databricksCredential.js
CHANGED
|
@@ -39,7 +39,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
39
39
|
*
|
|
40
40
|
* // Using the classic sensitive attribute (stored in state)
|
|
41
41
|
* const myDatabricksCred = new dbtcloud.DatabricksCredential("my_databricks_cred", {
|
|
42
|
-
* projectId:
|
|
42
|
+
* projectId: dbtProject.id,
|
|
43
43
|
* token: "abcdefgh",
|
|
44
44
|
* schema: "my_schema",
|
|
45
45
|
* adapterType: "databricks",
|
|
@@ -47,7 +47,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
47
47
|
* const config = new pulumi.Config();
|
|
48
48
|
* const databricksToken = config.require("databricksToken");
|
|
49
49
|
* const myDatabricksCredWo = new dbtcloud.DatabricksCredential("my_databricks_cred_wo", {
|
|
50
|
-
* projectId:
|
|
50
|
+
* projectId: dbtProject.id,
|
|
51
51
|
* tokenWo: databricksToken,
|
|
52
52
|
* tokenWoVersion: 1,
|
|
53
53
|
* schema: "my_schema",
|
|
@@ -23,7 +23,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
23
23
|
*
|
|
24
24
|
* // Using the classic sensitive attribute (stored in state)
|
|
25
25
|
* const example = new dbtcloud.DatabricksPlatformMetadataCredential("example", {
|
|
26
|
-
* connectionId:
|
|
26
|
+
* connectionId: databricks.id,
|
|
27
27
|
* catalogIngestionEnabled: true,
|
|
28
28
|
* costOptimizationEnabled: false,
|
|
29
29
|
* costInsightsEnabled: false,
|
|
@@ -33,7 +33,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
33
33
|
* const config = new pulumi.Config();
|
|
34
34
|
* const databricksMetadataToken = config.require("databricksMetadataToken");
|
|
35
35
|
* const exampleWo = new dbtcloud.DatabricksPlatformMetadataCredential("example_wo", {
|
|
36
|
-
* connectionId:
|
|
36
|
+
* connectionId: databricks.id,
|
|
37
37
|
* catalogIngestionEnabled: true,
|
|
38
38
|
* costOptimizationEnabled: false,
|
|
39
39
|
* costInsightsEnabled: false,
|
|
@@ -52,7 +52,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
52
52
|
*
|
|
53
53
|
* // Using the classic sensitive attribute (stored in state)
|
|
54
54
|
* const example = new dbtcloud.DatabricksPlatformMetadataCredential("example", {
|
|
55
|
-
* connectionId:
|
|
55
|
+
* connectionId: databricks.id,
|
|
56
56
|
* catalogIngestionEnabled: true,
|
|
57
57
|
* costOptimizationEnabled: false,
|
|
58
58
|
* costInsightsEnabled: false,
|
|
@@ -62,7 +62,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
62
62
|
* const config = new pulumi.Config();
|
|
63
63
|
* const databricksMetadataToken = config.require("databricksMetadataToken");
|
|
64
64
|
* const exampleWo = new dbtcloud.DatabricksPlatformMetadataCredential("example_wo", {
|
|
65
|
-
* connectionId:
|
|
65
|
+
* connectionId: databricks.id,
|
|
66
66
|
* catalogIngestionEnabled: true,
|
|
67
67
|
* costOptimizationEnabled: false,
|
|
68
68
|
* costInsightsEnabled: false,
|
|
@@ -12,12 +12,12 @@ import * as outputs from "./types/output";
|
|
|
12
12
|
*
|
|
13
13
|
* const slCredDatabricksExample = new dbtcloud.DatabricksSemanticLayerCredential("sl_cred_databricks_example", {
|
|
14
14
|
* configuration: {
|
|
15
|
-
* projectId:
|
|
15
|
+
* projectId: projectId,
|
|
16
16
|
* name: "Databricks SL Credential",
|
|
17
17
|
* adapterVersion: "databricks_v0",
|
|
18
18
|
* },
|
|
19
19
|
* credential: {
|
|
20
|
-
* projectId:
|
|
20
|
+
* projectId: projectId,
|
|
21
21
|
* catalog: catalog,
|
|
22
22
|
* token: token,
|
|
23
23
|
* semanticLayerCredential: true,
|
|
@@ -39,12 +39,12 @@ const utilities = __importStar(require("./utilities"));
|
|
|
39
39
|
*
|
|
40
40
|
* const slCredDatabricksExample = new dbtcloud.DatabricksSemanticLayerCredential("sl_cred_databricks_example", {
|
|
41
41
|
* configuration: {
|
|
42
|
-
* projectId:
|
|
42
|
+
* projectId: projectId,
|
|
43
43
|
* name: "Databricks SL Credential",
|
|
44
44
|
* adapterVersion: "databricks_v0",
|
|
45
45
|
* },
|
|
46
46
|
* credential: {
|
|
47
|
-
* projectId:
|
|
47
|
+
* projectId: projectId,
|
|
48
48
|
* catalog: catalog,
|
|
49
49
|
* token: token,
|
|
50
50
|
* semanticLayerCredential: true,
|
package/environment.d.ts
CHANGED
|
@@ -11,28 +11,28 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* const ciEnvironment = new dbtcloud.Environment("ci_environment", {
|
|
12
12
|
* dbtVersion: "latest",
|
|
13
13
|
* name: "CI",
|
|
14
|
-
* projectId:
|
|
14
|
+
* projectId: dbtProject.id,
|
|
15
15
|
* type: "deployment",
|
|
16
|
-
* credentialId:
|
|
17
|
-
* connectionId:
|
|
16
|
+
* credentialId: ciCredential.credentialId,
|
|
17
|
+
* connectionId: myGlobalConnection.id,
|
|
18
18
|
* });
|
|
19
19
|
* // we can also set a deployment environment as being the production one
|
|
20
20
|
* const prodEnvironment = new dbtcloud.Environment("prod_environment", {
|
|
21
21
|
* dbtVersion: "1.7.0-latest",
|
|
22
22
|
* name: "Prod",
|
|
23
|
-
* projectId:
|
|
23
|
+
* projectId: dbtProject.id,
|
|
24
24
|
* type: "deployment",
|
|
25
|
-
* credentialId:
|
|
25
|
+
* credentialId: prodCredential.credentialId,
|
|
26
26
|
* deploymentType: "production",
|
|
27
|
-
* connectionId:
|
|
27
|
+
* connectionId: myLegacyConnection.connectionId,
|
|
28
28
|
* });
|
|
29
29
|
* // Creating a development environment
|
|
30
30
|
* const devEnvironment = new dbtcloud.Environment("dev_environment", {
|
|
31
31
|
* dbtVersion: "latest",
|
|
32
32
|
* name: "Dev",
|
|
33
|
-
* projectId:
|
|
33
|
+
* projectId: dbtProject.id,
|
|
34
34
|
* type: "development",
|
|
35
|
-
* connectionId:
|
|
35
|
+
* connectionId: myOtherGlobalConnection.id,
|
|
36
36
|
* });
|
|
37
37
|
* // Deployment environment with a primary profile (binds connection + credentials via profile)
|
|
38
38
|
* // NOTE: avoid setting connection_id, credential_id, or extended_attributes_id alongside
|
|
@@ -41,10 +41,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
41
41
|
* const profiledEnvironment = new dbtcloud.Environment("profiled_environment", {
|
|
42
42
|
* dbtVersion: "latest",
|
|
43
43
|
* name: "Staging",
|
|
44
|
-
* projectId:
|
|
44
|
+
* projectId: dbtProject.id,
|
|
45
45
|
* type: "deployment",
|
|
46
46
|
* deploymentType: "staging",
|
|
47
|
-
* primaryProfileId:
|
|
47
|
+
* primaryProfileId: myProfile.profileId,
|
|
48
48
|
* });
|
|
49
49
|
* ```
|
|
50
50
|
*
|
package/environment.js
CHANGED
|
@@ -40,28 +40,28 @@ const utilities = __importStar(require("./utilities"));
|
|
|
40
40
|
* const ciEnvironment = new dbtcloud.Environment("ci_environment", {
|
|
41
41
|
* dbtVersion: "latest",
|
|
42
42
|
* name: "CI",
|
|
43
|
-
* projectId:
|
|
43
|
+
* projectId: dbtProject.id,
|
|
44
44
|
* type: "deployment",
|
|
45
|
-
* credentialId:
|
|
46
|
-
* connectionId:
|
|
45
|
+
* credentialId: ciCredential.credentialId,
|
|
46
|
+
* connectionId: myGlobalConnection.id,
|
|
47
47
|
* });
|
|
48
48
|
* // we can also set a deployment environment as being the production one
|
|
49
49
|
* const prodEnvironment = new dbtcloud.Environment("prod_environment", {
|
|
50
50
|
* dbtVersion: "1.7.0-latest",
|
|
51
51
|
* name: "Prod",
|
|
52
|
-
* projectId:
|
|
52
|
+
* projectId: dbtProject.id,
|
|
53
53
|
* type: "deployment",
|
|
54
|
-
* credentialId:
|
|
54
|
+
* credentialId: prodCredential.credentialId,
|
|
55
55
|
* deploymentType: "production",
|
|
56
|
-
* connectionId:
|
|
56
|
+
* connectionId: myLegacyConnection.connectionId,
|
|
57
57
|
* });
|
|
58
58
|
* // Creating a development environment
|
|
59
59
|
* const devEnvironment = new dbtcloud.Environment("dev_environment", {
|
|
60
60
|
* dbtVersion: "latest",
|
|
61
61
|
* name: "Dev",
|
|
62
|
-
* projectId:
|
|
62
|
+
* projectId: dbtProject.id,
|
|
63
63
|
* type: "development",
|
|
64
|
-
* connectionId:
|
|
64
|
+
* connectionId: myOtherGlobalConnection.id,
|
|
65
65
|
* });
|
|
66
66
|
* // Deployment environment with a primary profile (binds connection + credentials via profile)
|
|
67
67
|
* // NOTE: avoid setting connection_id, credential_id, or extended_attributes_id alongside
|
|
@@ -70,10 +70,10 @@ const utilities = __importStar(require("./utilities"));
|
|
|
70
70
|
* const profiledEnvironment = new dbtcloud.Environment("profiled_environment", {
|
|
71
71
|
* dbtVersion: "latest",
|
|
72
72
|
* name: "Staging",
|
|
73
|
-
* projectId:
|
|
73
|
+
* projectId: dbtProject.id,
|
|
74
74
|
* type: "deployment",
|
|
75
75
|
* deploymentType: "staging",
|
|
76
|
-
* primaryProfileId:
|
|
76
|
+
* primaryProfileId: myProfile.profileId,
|
|
77
77
|
* });
|
|
78
78
|
* ```
|
|
79
79
|
*
|
package/environmentVariable.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
*
|
|
12
12
|
* const dbtMyEnvVar = new dbtcloud.EnvironmentVariable("dbt_my_env_var", {
|
|
13
13
|
* name: "DBT_MY_ENV_VAR",
|
|
14
|
-
* projectId:
|
|
14
|
+
* projectId: dbtProject.id,
|
|
15
15
|
* environmentValues: {
|
|
16
16
|
* project: "my_project_level_value",
|
|
17
17
|
* Dev: "my_env_level_value",
|
package/environmentVariable.js
CHANGED
|
@@ -40,7 +40,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
40
40
|
*
|
|
41
41
|
* const dbtMyEnvVar = new dbtcloud.EnvironmentVariable("dbt_my_env_var", {
|
|
42
42
|
* name: "DBT_MY_ENV_VAR",
|
|
43
|
-
* projectId:
|
|
43
|
+
* projectId: dbtProject.id,
|
|
44
44
|
* environmentValues: {
|
|
45
45
|
* project: "my_project_level_value",
|
|
46
46
|
* Dev: "my_env_level_value",
|
|
@@ -10,8 +10,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
*
|
|
11
11
|
* const myEnvVarJobOverride = new dbtcloud.EnvironmentVariableJobOverride("my_env_var_job_override", {
|
|
12
12
|
* name: dbtMyEnvVar.name,
|
|
13
|
-
* projectId:
|
|
14
|
-
* jobDefinitionId:
|
|
13
|
+
* projectId: dbtProject.id,
|
|
14
|
+
* jobDefinitionId: dailyJob.id,
|
|
15
15
|
* rawValue: "my_override_value",
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
@@ -39,8 +39,8 @@ const utilities = __importStar(require("./utilities"));
|
|
|
39
39
|
*
|
|
40
40
|
* const myEnvVarJobOverride = new dbtcloud.EnvironmentVariableJobOverride("my_env_var_job_override", {
|
|
41
41
|
* name: dbtMyEnvVar.name,
|
|
42
|
-
* projectId:
|
|
43
|
-
* jobDefinitionId:
|
|
42
|
+
* projectId: dbtProject.id,
|
|
43
|
+
* jobDefinitionId: dailyJob.id,
|
|
44
44
|
* rawValue: "my_override_value",
|
|
45
45
|
* });
|
|
46
46
|
* ```
|
package/extendedAttributes.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
10
10
|
*
|
|
11
|
-
* // extended_attributes can be set as a raw JSON string or encoded with
|
|
12
|
-
* // we recommend using `jsonencode()` to avoid
|
|
11
|
+
* // extended_attributes can be set as a raw JSON string or encoded with Pulumi's `jsonencode()` function
|
|
12
|
+
* // we recommend using `jsonencode()` to avoid Pulumi reporting changes due to whitespaces or keys ordering
|
|
13
13
|
* const myAttributes = new dbtcloud.ExtendedAttributes("my_attributes", {
|
|
14
14
|
* extendedAttributes: JSON.stringify({
|
|
15
15
|
* type: "databricks",
|
|
@@ -19,15 +19,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* subfield: "my_value",
|
|
20
20
|
* },
|
|
21
21
|
* }),
|
|
22
|
-
* projectId:
|
|
22
|
+
* projectId: dbtProject.id,
|
|
23
23
|
* });
|
|
24
24
|
* const issueDepl = new dbtcloud.Environment("issue_depl", {
|
|
25
25
|
* dbtVersion: "latest",
|
|
26
26
|
* name: "My environment",
|
|
27
|
-
* projectId:
|
|
27
|
+
* projectId: dbtProject.id,
|
|
28
28
|
* type: "deployment",
|
|
29
29
|
* useCustomBranch: false,
|
|
30
|
-
* credentialId:
|
|
30
|
+
* credentialId: dbtCredentialId,
|
|
31
31
|
* deploymentType: "production",
|
|
32
32
|
* extendedAttributesId: myAttributes.extendedAttributesId,
|
|
33
33
|
* });
|
package/extendedAttributes.js
CHANGED
|
@@ -37,8 +37,8 @@ const utilities = __importStar(require("./utilities"));
|
|
|
37
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
38
38
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
39
39
|
*
|
|
40
|
-
* // extended_attributes can be set as a raw JSON string or encoded with
|
|
41
|
-
* // we recommend using `jsonencode()` to avoid
|
|
40
|
+
* // extended_attributes can be set as a raw JSON string or encoded with Pulumi's `jsonencode()` function
|
|
41
|
+
* // we recommend using `jsonencode()` to avoid Pulumi reporting changes due to whitespaces or keys ordering
|
|
42
42
|
* const myAttributes = new dbtcloud.ExtendedAttributes("my_attributes", {
|
|
43
43
|
* extendedAttributes: JSON.stringify({
|
|
44
44
|
* type: "databricks",
|
|
@@ -48,15 +48,15 @@ const utilities = __importStar(require("./utilities"));
|
|
|
48
48
|
* subfield: "my_value",
|
|
49
49
|
* },
|
|
50
50
|
* }),
|
|
51
|
-
* projectId:
|
|
51
|
+
* projectId: dbtProject.id,
|
|
52
52
|
* });
|
|
53
53
|
* const issueDepl = new dbtcloud.Environment("issue_depl", {
|
|
54
54
|
* dbtVersion: "latest",
|
|
55
55
|
* name: "My environment",
|
|
56
|
-
* projectId:
|
|
56
|
+
* projectId: dbtProject.id,
|
|
57
57
|
* type: "deployment",
|
|
58
58
|
* useCustomBranch: false,
|
|
59
|
-
* credentialId:
|
|
59
|
+
* credentialId: dbtCredentialId,
|
|
60
60
|
* deploymentType: "production",
|
|
61
61
|
* extendedAttributesId: myAttributes.extendedAttributesId,
|
|
62
62
|
* });
|
package/fabricCredential.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* // Using the classic sensitive attributes (stored in state)
|
|
12
12
|
* // when using AD authentication
|
|
13
13
|
* const myFabricCredAd = new dbtcloud.FabricCredential("my_fabric_cred_ad", {
|
|
14
|
-
* projectId:
|
|
14
|
+
* projectId: dbtProject.id,
|
|
15
15
|
* schema: "my_schema",
|
|
16
16
|
* user: "my_user",
|
|
17
17
|
* password: "my_password",
|
|
@@ -19,7 +19,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* });
|
|
20
20
|
* // when using service principal authentication
|
|
21
21
|
* const myFabricCredServPrinc = new dbtcloud.FabricCredential("my_fabric_cred_serv_princ", {
|
|
22
|
-
* projectId:
|
|
22
|
+
* projectId: dbtProject.id,
|
|
23
23
|
* schema: "my_schema",
|
|
24
24
|
* clientId: "my_client_id",
|
|
25
25
|
* tenantId: "my_tenant_id",
|
|
@@ -31,7 +31,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
31
|
* const fabricClientSecret = config.require("fabricClientSecret");
|
|
32
32
|
* // when using AD authentication with write-only password
|
|
33
33
|
* const myFabricCredAdWo = new dbtcloud.FabricCredential("my_fabric_cred_ad_wo", {
|
|
34
|
-
* projectId:
|
|
34
|
+
* projectId: dbtProject.id,
|
|
35
35
|
* schema: "my_schema",
|
|
36
36
|
* user: "my_user",
|
|
37
37
|
* passwordWo: fabricPassword,
|
|
@@ -40,7 +40,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
40
40
|
* });
|
|
41
41
|
* // when using service principal authentication with write-only client secret
|
|
42
42
|
* const myFabricCredServPrincWo = new dbtcloud.FabricCredential("my_fabric_cred_serv_princ_wo", {
|
|
43
|
-
* projectId:
|
|
43
|
+
* projectId: dbtProject.id,
|
|
44
44
|
* schema: "my_schema",
|
|
45
45
|
* clientId: "my_client_id",
|
|
46
46
|
* tenantId: "my_tenant_id",
|
package/fabricCredential.js
CHANGED
|
@@ -40,7 +40,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
40
40
|
* // Using the classic sensitive attributes (stored in state)
|
|
41
41
|
* // when using AD authentication
|
|
42
42
|
* const myFabricCredAd = new dbtcloud.FabricCredential("my_fabric_cred_ad", {
|
|
43
|
-
* projectId:
|
|
43
|
+
* projectId: dbtProject.id,
|
|
44
44
|
* schema: "my_schema",
|
|
45
45
|
* user: "my_user",
|
|
46
46
|
* password: "my_password",
|
|
@@ -48,7 +48,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
48
48
|
* });
|
|
49
49
|
* // when using service principal authentication
|
|
50
50
|
* const myFabricCredServPrinc = new dbtcloud.FabricCredential("my_fabric_cred_serv_princ", {
|
|
51
|
-
* projectId:
|
|
51
|
+
* projectId: dbtProject.id,
|
|
52
52
|
* schema: "my_schema",
|
|
53
53
|
* clientId: "my_client_id",
|
|
54
54
|
* tenantId: "my_tenant_id",
|
|
@@ -60,7 +60,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
60
60
|
* const fabricClientSecret = config.require("fabricClientSecret");
|
|
61
61
|
* // when using AD authentication with write-only password
|
|
62
62
|
* const myFabricCredAdWo = new dbtcloud.FabricCredential("my_fabric_cred_ad_wo", {
|
|
63
|
-
* projectId:
|
|
63
|
+
* projectId: dbtProject.id,
|
|
64
64
|
* schema: "my_schema",
|
|
65
65
|
* user: "my_user",
|
|
66
66
|
* passwordWo: fabricPassword,
|
|
@@ -69,7 +69,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
69
69
|
* });
|
|
70
70
|
* // when using service principal authentication with write-only client secret
|
|
71
71
|
* const myFabricCredServPrincWo = new dbtcloud.FabricCredential("my_fabric_cred_serv_princ_wo", {
|
|
72
|
-
* projectId:
|
|
72
|
+
* projectId: dbtProject.id,
|
|
73
73
|
* schema: "my_schema",
|
|
74
74
|
* clientId: "my_client_id",
|
|
75
75
|
* tenantId: "my_tenant_id",
|
package/getProject.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
11
11
|
*
|
|
12
12
|
* export = async () => {
|
|
13
|
-
* // projects
|
|
13
|
+
* // projects functions can use the project_id parameter (preferred uniqueness is ensured)
|
|
14
14
|
* const projectById = await dbtcloud.getProject({
|
|
15
15
|
* id: 0,
|
|
16
16
|
* });
|
|
@@ -114,7 +114,7 @@ export interface GetProjectResult {
|
|
|
114
114
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
115
115
|
*
|
|
116
116
|
* export = async () => {
|
|
117
|
-
* // projects
|
|
117
|
+
* // projects functions can use the project_id parameter (preferred uniqueness is ensured)
|
|
118
118
|
* const projectById = await dbtcloud.getProject({
|
|
119
119
|
* id: 0,
|
|
120
120
|
* });
|