@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.
Files changed (89) hide show
  1. package/athenaCredential.d.ts +2 -2
  2. package/athenaCredential.js +2 -2
  3. package/bigQueryCredential.d.ts +3 -3
  4. package/bigQueryCredential.js +3 -3
  5. package/bigquerySemanticLayerCredential.d.ts +3 -3
  6. package/bigquerySemanticLayerCredential.js +3 -3
  7. package/clickhouseCredential.d.ts +2 -2
  8. package/clickhouseCredential.js +2 -2
  9. package/connectionCatalogConfig.d.ts +4 -4
  10. package/connectionCatalogConfig.js +4 -4
  11. package/databricksCredential.d.ts +2 -2
  12. package/databricksCredential.js +2 -2
  13. package/databricksPlatformMetadataCredential.d.ts +2 -2
  14. package/databricksPlatformMetadataCredential.js +2 -2
  15. package/databricksSemanticLayerCredential.d.ts +2 -2
  16. package/databricksSemanticLayerCredential.js +2 -2
  17. package/environment.d.ts +10 -10
  18. package/environment.js +10 -10
  19. package/environmentVariable.d.ts +1 -1
  20. package/environmentVariable.js +1 -1
  21. package/environmentVariableJobOverride.d.ts +2 -2
  22. package/environmentVariableJobOverride.js +2 -2
  23. package/extendedAttributes.d.ts +5 -5
  24. package/extendedAttributes.js +5 -5
  25. package/fabricCredential.d.ts +4 -4
  26. package/fabricCredential.js +4 -4
  27. package/getProject.d.ts +2 -2
  28. package/getProject.js +2 -2
  29. package/getSparkCredential.d.ts +2 -2
  30. package/getSparkCredential.js +2 -2
  31. package/getUsers.d.ts +2 -2
  32. package/getUsers.js +2 -2
  33. package/group.d.ts +1 -1
  34. package/group.js +1 -1
  35. package/groupPartialPermissions.d.ts +4 -4
  36. package/groupPartialPermissions.js +4 -4
  37. package/job.d.ts +3 -3
  38. package/job.js +3 -3
  39. package/lineageIntegration.d.ts +2 -2
  40. package/lineageIntegration.js +2 -2
  41. package/notification.d.ts +1 -1
  42. package/notification.js +1 -1
  43. package/notificationSetting.d.ts +2 -2
  44. package/notificationSetting.js +2 -2
  45. package/openaiIntegration.d.ts +2 -2
  46. package/openaiIntegration.js +2 -2
  47. package/package.json +2 -2
  48. package/postgresCredential.d.ts +2 -2
  49. package/postgresCredential.js +2 -2
  50. package/postgresSemanticLayerCredential.d.ts +2 -2
  51. package/postgresSemanticLayerCredential.js +2 -2
  52. package/profile.d.ts +7 -7
  53. package/profile.js +7 -7
  54. package/projectArtefacts.d.ts +3 -3
  55. package/projectArtefacts.js +3 -3
  56. package/projectRepository.d.ts +2 -2
  57. package/projectRepository.js +2 -2
  58. package/redshiftCredential.d.ts +2 -2
  59. package/redshiftCredential.js +2 -2
  60. package/redshiftSemanticLayerCredential.d.ts +3 -3
  61. package/redshiftSemanticLayerCredential.js +3 -3
  62. package/salesforceCredential.d.ts +2 -2
  63. package/salesforceCredential.js +2 -2
  64. package/scimConfigToken.d.ts +1 -1
  65. package/scimConfigToken.js +1 -1
  66. package/scimGroupPartialPermissions.d.ts +4 -4
  67. package/scimGroupPartialPermissions.js +4 -4
  68. package/semanticLayerConfiguration.d.ts +2 -2
  69. package/semanticLayerConfiguration.js +2 -2
  70. package/semanticLayerCredentialServiceTokenMapping.d.ts +3 -3
  71. package/semanticLayerCredentialServiceTokenMapping.js +3 -3
  72. package/serviceToken.d.ts +1 -1
  73. package/serviceToken.js +1 -1
  74. package/snowflakeCredential.d.ts +2 -2
  75. package/snowflakeCredential.js +2 -2
  76. package/snowflakePlatformMetadataCredential.d.ts +4 -4
  77. package/snowflakePlatformMetadataCredential.js +4 -4
  78. package/snowflakeSemanticLayerCredential.d.ts +4 -4
  79. package/snowflakeSemanticLayerCredential.js +4 -4
  80. package/sparkCredential.d.ts +2 -2
  81. package/sparkCredential.js +2 -2
  82. package/starburstCredential.d.ts +2 -2
  83. package/starburstCredential.js +2 -2
  84. package/synapseCredential.d.ts +5 -5
  85. package/synapseCredential.js +5 -5
  86. package/teradataCredential.d.ts +2 -2
  87. package/teradataCredential.js +2 -2
  88. package/userGroups.d.ts +1 -1
  89. package/userGroups.js +1 -1
@@ -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: Number(exampleDbtcloudProject.id),
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: Number(exampleDbtcloudProject.id),
22
+ * projectId: exampleDbtcloudProject.id,
23
23
  * awsAccessKeyIdWo: athenaAwsAccessKeyId,
24
24
  * awsAccessKeyIdWoVersion: 1,
25
25
  * awsSecretAccessKeyWo: athenaAwsSecretAccessKey,
@@ -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: Number(exampleDbtcloudProject.id),
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: Number(exampleDbtcloudProject.id),
51
+ * projectId: exampleDbtcloudProject.id,
52
52
  * awsAccessKeyIdWo: athenaAwsAccessKeyId,
53
53
  * awsAccessKeyIdWoVersion: 1,
54
54
  * awsSecretAccessKeyWo: athenaAwsSecretAccessKey,
@@ -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: Number(dbtProject.id),
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: Number(dbtProject.id),
19
+ * projectId: dbtProject.id,
20
20
  * dataset: "my_bq_dataset",
21
21
  * numThreads: 16,
22
- * connectionId: Number(myConnection.id),
22
+ * connectionId: myConnection.id,
23
23
  * });
24
24
  * ```
25
25
  *
@@ -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: Number(dbtProject.id),
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: Number(dbtProject.id),
48
+ * projectId: dbtProject.id,
49
49
  * dataset: "my_bq_dataset",
50
50
  * numThreads: 16,
51
- * connectionId: Number(myConnection.id),
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: Number(projectId),
15
+ * projectId: projectId,
16
16
  * name: "BigQuery SL Credential",
17
17
  * adapterVersion: "bigquery_v0",
18
18
  * },
19
19
  * credential: {
20
- * projectId: Number(projectId),
20
+ * projectId: projectId,
21
21
  * isActive: true,
22
- * numThreads: Number(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: Number(projectId),
42
+ * projectId: projectId,
43
43
  * name: "BigQuery SL Credential",
44
44
  * adapterVersion: "bigquery_v0",
45
45
  * },
46
46
  * credential: {
47
- * projectId: Number(projectId),
47
+ * projectId: projectId,
48
48
  * isActive: true,
49
- * numThreads: Number(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: Number(dbtProject.id),
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: Number(dbtProject.id),
23
+ * projectId: dbtProject.id,
24
24
  * schema: "my_schema",
25
25
  * user: "my_user",
26
26
  * passwordWo: clickhousePassword,
@@ -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: Number(dbtProject.id),
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: Number(dbtProject.id),
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: Number(snowflake.id),
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: Number(snowflake.id),
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: Number(snowflake.id),
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: Number(snowflake.id),
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: Number(snowflake.id),
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: Number(snowflake.id),
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: Number(snowflake.id),
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: Number(snowflake.id),
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: Number(dbtProject.id),
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: Number(dbtProject.id),
21
+ * projectId: dbtProject.id,
22
22
  * tokenWo: databricksToken,
23
23
  * tokenWoVersion: 1,
24
24
  * schema: "my_schema",
@@ -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: Number(dbtProject.id),
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: Number(dbtProject.id),
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: Number(databricks.id),
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: Number(databricks.id),
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: Number(databricks.id),
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: Number(databricks.id),
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: Number(projectId),
15
+ * projectId: projectId,
16
16
  * name: "Databricks SL Credential",
17
17
  * adapterVersion: "databricks_v0",
18
18
  * },
19
19
  * credential: {
20
- * projectId: Number(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: Number(projectId),
42
+ * projectId: projectId,
43
43
  * name: "Databricks SL Credential",
44
44
  * adapterVersion: "databricks_v0",
45
45
  * },
46
46
  * credential: {
47
- * projectId: Number(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: Number(dbtProject.id),
14
+ * projectId: dbtProject.id,
15
15
  * type: "deployment",
16
- * credentialId: Number(ciCredential.credentialId),
17
- * connectionId: Number(myGlobalConnection.id),
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: Number(dbtProject.id),
23
+ * projectId: dbtProject.id,
24
24
  * type: "deployment",
25
- * credentialId: Number(prodCredential.credentialId),
25
+ * credentialId: prodCredential.credentialId,
26
26
  * deploymentType: "production",
27
- * connectionId: Number(myLegacyConnection.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: Number(dbtProject.id),
33
+ * projectId: dbtProject.id,
34
34
  * type: "development",
35
- * connectionId: Number(myOtherGlobalConnection.id),
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: Number(dbtProject.id),
44
+ * projectId: dbtProject.id,
45
45
  * type: "deployment",
46
46
  * deploymentType: "staging",
47
- * primaryProfileId: Number(myProfile.profileId),
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: Number(dbtProject.id),
43
+ * projectId: dbtProject.id,
44
44
  * type: "deployment",
45
- * credentialId: Number(ciCredential.credentialId),
46
- * connectionId: Number(myGlobalConnection.id),
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: Number(dbtProject.id),
52
+ * projectId: dbtProject.id,
53
53
  * type: "deployment",
54
- * credentialId: Number(prodCredential.credentialId),
54
+ * credentialId: prodCredential.credentialId,
55
55
  * deploymentType: "production",
56
- * connectionId: Number(myLegacyConnection.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: Number(dbtProject.id),
62
+ * projectId: dbtProject.id,
63
63
  * type: "development",
64
- * connectionId: Number(myOtherGlobalConnection.id),
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: Number(dbtProject.id),
73
+ * projectId: dbtProject.id,
74
74
  * type: "deployment",
75
75
  * deploymentType: "staging",
76
- * primaryProfileId: Number(myProfile.profileId),
76
+ * primaryProfileId: myProfile.profileId,
77
77
  * });
78
78
  * ```
79
79
  *
@@ -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: Number(dbtProject.id),
14
+ * projectId: dbtProject.id,
15
15
  * environmentValues: {
16
16
  * project: "my_project_level_value",
17
17
  * Dev: "my_env_level_value",
@@ -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: Number(dbtProject.id),
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: Number(dbtProject.id),
14
- * jobDefinitionId: Number(dailyJob.id),
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: Number(dbtProject.id),
43
- * jobDefinitionId: Number(dailyJob.id),
42
+ * projectId: dbtProject.id,
43
+ * jobDefinitionId: dailyJob.id,
44
44
  * rawValue: "my_override_value",
45
45
  * });
46
46
  * ```
@@ -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 Terraform's `jsonencode()` function
12
- * // we recommend using `jsonencode()` to avoid Terraform reporting changes due to whitespaces or keys ordering
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: Number(dbtProject.id),
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: Number(dbtProject.id),
27
+ * projectId: dbtProject.id,
28
28
  * type: "deployment",
29
29
  * useCustomBranch: false,
30
- * credentialId: Number(dbtCredentialId),
30
+ * credentialId: dbtCredentialId,
31
31
  * deploymentType: "production",
32
32
  * extendedAttributesId: myAttributes.extendedAttributesId,
33
33
  * });
@@ -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 Terraform's `jsonencode()` function
41
- * // we recommend using `jsonencode()` to avoid Terraform reporting changes due to whitespaces or keys ordering
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: Number(dbtProject.id),
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: Number(dbtProject.id),
56
+ * projectId: dbtProject.id,
57
57
  * type: "deployment",
58
58
  * useCustomBranch: false,
59
- * credentialId: Number(dbtCredentialId),
59
+ * credentialId: dbtCredentialId,
60
60
  * deploymentType: "production",
61
61
  * extendedAttributesId: myAttributes.extendedAttributesId,
62
62
  * });
@@ -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: Number(dbtProject.id),
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: Number(dbtProject.id),
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: Number(dbtProject.id),
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: Number(dbtProject.id),
43
+ * projectId: dbtProject.id,
44
44
  * schema: "my_schema",
45
45
  * clientId: "my_client_id",
46
46
  * tenantId: "my_tenant_id",
@@ -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: Number(dbtProject.id),
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: Number(dbtProject.id),
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: Number(dbtProject.id),
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: Number(dbtProject.id),
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 data sources can use the project_id parameter (preferred uniqueness is ensured)
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 data sources can use the project_id parameter (preferred uniqueness is ensured)
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
  * });