@pulumi/dbtcloud 0.1.0-alpha.1715944408

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 (166) hide show
  1. package/LICENSE +177 -0
  2. package/README.md +70 -0
  3. package/bigQueryConnection.d.ts +399 -0
  4. package/bigQueryConnection.js +196 -0
  5. package/bigQueryConnection.js.map +1 -0
  6. package/bigQueryCredential.d.ts +117 -0
  7. package/bigQueryCredential.js +91 -0
  8. package/bigQueryCredential.js.map +1 -0
  9. package/config/index.d.ts +1 -0
  10. package/config/index.js +21 -0
  11. package/config/index.js.map +1 -0
  12. package/config/vars.d.ts +14 -0
  13. package/config/vars.js +29 -0
  14. package/config/vars.js.map +1 -0
  15. package/connection.d.ts +321 -0
  16. package/connection.js +149 -0
  17. package/connection.js.map +1 -0
  18. package/databricksCredential.d.ts +168 -0
  19. package/databricksCredential.js +120 -0
  20. package/databricksCredential.js.map +1 -0
  21. package/environment.d.ts +209 -0
  22. package/environment.js +123 -0
  23. package/environment.js.map +1 -0
  24. package/environmentVariable.d.ts +120 -0
  25. package/environmentVariable.js +101 -0
  26. package/environmentVariable.js.map +1 -0
  27. package/environmentVariableJobOverride.d.ts +119 -0
  28. package/environmentVariableJobOverride.js +93 -0
  29. package/environmentVariableJobOverride.js.map +1 -0
  30. package/extendedAttributes.d.ts +135 -0
  31. package/extendedAttributes.js +107 -0
  32. package/extendedAttributes.js.map +1 -0
  33. package/fabricConnection.d.ts +177 -0
  34. package/fabricConnection.js +108 -0
  35. package/fabricConnection.js.map +1 -0
  36. package/fabricCredential.d.ts +167 -0
  37. package/fabricCredential.js +93 -0
  38. package/fabricCredential.js.map +1 -0
  39. package/getAzureDevOpsProject.d.ts +72 -0
  40. package/getAzureDevOpsProject.js +53 -0
  41. package/getAzureDevOpsProject.js.map +1 -0
  42. package/getAzureDevOpsRepository.d.ts +98 -0
  43. package/getAzureDevOpsRepository.js +56 -0
  44. package/getAzureDevOpsRepository.js.map +1 -0
  45. package/getBigQueryConnection.d.ts +134 -0
  46. package/getBigQueryConnection.js +20 -0
  47. package/getBigQueryConnection.js.map +1 -0
  48. package/getBigQueryCredential.d.ts +58 -0
  49. package/getBigQueryCredential.js +20 -0
  50. package/getBigQueryCredential.js.map +1 -0
  51. package/getConnection.d.ts +86 -0
  52. package/getConnection.js +20 -0
  53. package/getConnection.js.map +1 -0
  54. package/getDatabricksCredential.d.ts +66 -0
  55. package/getDatabricksCredential.js +20 -0
  56. package/getDatabricksCredential.js.map +1 -0
  57. package/getEnvironment.d.ts +82 -0
  58. package/getEnvironment.js +20 -0
  59. package/getEnvironment.js.map +1 -0
  60. package/getEnvironmentVariable.d.ts +52 -0
  61. package/getEnvironmentVariable.js +20 -0
  62. package/getEnvironmentVariable.js.map +1 -0
  63. package/getExtendedAttributes.d.ts +80 -0
  64. package/getExtendedAttributes.js +46 -0
  65. package/getExtendedAttributes.js.map +1 -0
  66. package/getGroup.d.ts +50 -0
  67. package/getGroup.js +19 -0
  68. package/getGroup.js.map +1 -0
  69. package/getGroupUsers.d.ts +67 -0
  70. package/getGroupUsers.js +47 -0
  71. package/getGroupUsers.js.map +1 -0
  72. package/getJob.d.ts +89 -0
  73. package/getJob.js +20 -0
  74. package/getJob.js.map +1 -0
  75. package/getNotification.d.ts +82 -0
  76. package/getNotification.js +43 -0
  77. package/getNotification.js.map +1 -0
  78. package/getPostgresCredential.d.ts +62 -0
  79. package/getPostgresCredential.js +20 -0
  80. package/getPostgresCredential.js.map +1 -0
  81. package/getPrivatelinkEndpoint.d.ts +98 -0
  82. package/getPrivatelinkEndpoint.js +61 -0
  83. package/getPrivatelinkEndpoint.js.map +1 -0
  84. package/getProject.d.ts +102 -0
  85. package/getProject.js +57 -0
  86. package/getProject.js.map +1 -0
  87. package/getRepository.d.ts +86 -0
  88. package/getRepository.js +21 -0
  89. package/getRepository.js.map +1 -0
  90. package/getServiceToken.d.ts +47 -0
  91. package/getServiceToken.js +19 -0
  92. package/getServiceToken.js.map +1 -0
  93. package/getSnowflakeCredential.d.ts +66 -0
  94. package/getSnowflakeCredential.js +20 -0
  95. package/getSnowflakeCredential.js.map +1 -0
  96. package/getUser.d.ts +58 -0
  97. package/getUser.js +43 -0
  98. package/getUser.js.map +1 -0
  99. package/getUserGroups.d.ts +62 -0
  100. package/getUserGroups.js +43 -0
  101. package/getUserGroups.js.map +1 -0
  102. package/getWebhook.d.ts +66 -0
  103. package/getWebhook.js +19 -0
  104. package/getWebhook.js.map +1 -0
  105. package/group.d.ts +127 -0
  106. package/group.js +95 -0
  107. package/group.js.map +1 -0
  108. package/index.d.ts +144 -0
  109. package/index.js +220 -0
  110. package/index.js.map +1 -0
  111. package/job.d.ts +443 -0
  112. package/job.js +228 -0
  113. package/job.js.map +1 -0
  114. package/licenseMap.d.ts +96 -0
  115. package/licenseMap.js +90 -0
  116. package/licenseMap.js.map +1 -0
  117. package/notification.d.ts +202 -0
  118. package/notification.js +126 -0
  119. package/notification.js.map +1 -0
  120. package/package.json +31 -0
  121. package/package.json.bak +31 -0
  122. package/postgresCredential.d.ts +171 -0
  123. package/postgresCredential.js +110 -0
  124. package/postgresCredential.js.map +1 -0
  125. package/project.d.ts +87 -0
  126. package/project.js +78 -0
  127. package/project.js.map +1 -0
  128. package/projectArtefacts.d.ts +99 -0
  129. package/projectArtefacts.js +83 -0
  130. package/projectArtefacts.js.map +1 -0
  131. package/projectConnection.d.ts +86 -0
  132. package/projectConnection.js +83 -0
  133. package/projectConnection.js.map +1 -0
  134. package/projectRepository.d.ts +86 -0
  135. package/projectRepository.js +83 -0
  136. package/projectRepository.js.map +1 -0
  137. package/provider.d.ts +50 -0
  138. package/provider.js +48 -0
  139. package/provider.js.map +1 -0
  140. package/repository.d.ts +204 -0
  141. package/repository.js +103 -0
  142. package/repository.js.map +1 -0
  143. package/serviceToken.d.ts +126 -0
  144. package/serviceToken.js +95 -0
  145. package/serviceToken.js.map +1 -0
  146. package/snowflakeCredential.d.ts +218 -0
  147. package/snowflakeCredential.js +120 -0
  148. package/snowflakeCredential.js.map +1 -0
  149. package/types/index.d.ts +3 -0
  150. package/types/index.js +11 -0
  151. package/types/index.js.map +1 -0
  152. package/types/input.d.ts +43 -0
  153. package/types/input.js +5 -0
  154. package/types/input.js.map +1 -0
  155. package/types/output.d.ts +74 -0
  156. package/types/output.js +5 -0
  157. package/types/output.js.map +1 -0
  158. package/userGroups.d.ts +105 -0
  159. package/userGroups.js +102 -0
  160. package/userGroups.js.map +1 -0
  161. package/utilities.d.ts +8 -0
  162. package/utilities.js +101 -0
  163. package/utilities.js.map +1 -0
  164. package/webhook.d.ts +175 -0
  165. package/webhook.js +110 -0
  166. package/webhook.js.map +1 -0
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.DatabricksCredential = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as dbtcloud from "@pulumi/dbtcloud";
14
+ *
15
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
16
+ * // when using the Databricks adapter
17
+ * const myDatabricksCred = new dbtcloud.DatabricksCredential("my_databricks_cred", {
18
+ * projectId: dbtProject.id,
19
+ * adapterId: myDatabricksConnection.adapterId,
20
+ * targetName: "prod",
21
+ * token: "abcdefgh",
22
+ * schema: "my_schema",
23
+ * adapterType: "databricks",
24
+ * });
25
+ * // when using the Spark adapter
26
+ * const mySparkCred = new dbtcloud.DatabricksCredential("my_spark_cred", {
27
+ * projectId: dbtProject.id,
28
+ * adapterId: myDatabricksConnection.adapterId,
29
+ * targetName: "prod",
30
+ * token: "abcdefgh",
31
+ * schema: "my_schema",
32
+ * adapterType: "spark",
33
+ * });
34
+ * ```
35
+ *
36
+ * ## Import
37
+ *
38
+ * Import using a project ID and credential ID found in the URL or via the API.
39
+ *
40
+ * ```sh
41
+ * $ pulumi import dbtcloud:index/databricksCredential:DatabricksCredential my_databricks_credential "project_id:credential_id"
42
+ * ```
43
+ *
44
+ * ```sh
45
+ * $ pulumi import dbtcloud:index/databricksCredential:DatabricksCredential my_databricks_credential 12345:6789
46
+ * ```
47
+ */
48
+ class DatabricksCredential extends pulumi.CustomResource {
49
+ /**
50
+ * Get an existing DatabricksCredential resource's state with the given name, ID, and optional extra
51
+ * properties used to qualify the lookup.
52
+ *
53
+ * @param name The _unique_ name of the resulting resource.
54
+ * @param id The _unique_ provider ID of the resource to lookup.
55
+ * @param state Any extra arguments used during the lookup.
56
+ * @param opts Optional settings to control the behavior of the CustomResource.
57
+ */
58
+ static get(name, id, state, opts) {
59
+ return new DatabricksCredential(name, state, Object.assign(Object.assign({}, opts), { id: id }));
60
+ }
61
+ /**
62
+ * Returns true if the given object is an instance of DatabricksCredential. This is designed to work even
63
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
+ */
65
+ static isInstance(obj) {
66
+ if (obj === undefined || obj === null) {
67
+ return false;
68
+ }
69
+ return obj['__pulumiType'] === DatabricksCredential.__pulumiType;
70
+ }
71
+ constructor(name, argsOrState, opts) {
72
+ let resourceInputs = {};
73
+ opts = opts || {};
74
+ if (opts.id) {
75
+ const state = argsOrState;
76
+ resourceInputs["adapterId"] = state ? state.adapterId : undefined;
77
+ resourceInputs["adapterType"] = state ? state.adapterType : undefined;
78
+ resourceInputs["catalog"] = state ? state.catalog : undefined;
79
+ resourceInputs["credentialId"] = state ? state.credentialId : undefined;
80
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
81
+ resourceInputs["schema"] = state ? state.schema : undefined;
82
+ resourceInputs["targetName"] = state ? state.targetName : undefined;
83
+ resourceInputs["token"] = state ? state.token : undefined;
84
+ }
85
+ else {
86
+ const args = argsOrState;
87
+ if ((!args || args.adapterId === undefined) && !opts.urn) {
88
+ throw new Error("Missing required property 'adapterId'");
89
+ }
90
+ if ((!args || args.adapterType === undefined) && !opts.urn) {
91
+ throw new Error("Missing required property 'adapterType'");
92
+ }
93
+ if ((!args || args.projectId === undefined) && !opts.urn) {
94
+ throw new Error("Missing required property 'projectId'");
95
+ }
96
+ if ((!args || args.schema === undefined) && !opts.urn) {
97
+ throw new Error("Missing required property 'schema'");
98
+ }
99
+ if ((!args || args.token === undefined) && !opts.urn) {
100
+ throw new Error("Missing required property 'token'");
101
+ }
102
+ resourceInputs["adapterId"] = args ? args.adapterId : undefined;
103
+ resourceInputs["adapterType"] = args ? args.adapterType : undefined;
104
+ resourceInputs["catalog"] = args ? args.catalog : undefined;
105
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
106
+ resourceInputs["schema"] = args ? args.schema : undefined;
107
+ resourceInputs["targetName"] = args ? args.targetName : undefined;
108
+ resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
109
+ resourceInputs["credentialId"] = undefined /*out*/;
110
+ }
111
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
112
+ const secretOpts = { additionalSecretOutputs: ["token"] };
113
+ opts = pulumi.mergeOptions(opts, secretOpts);
114
+ super(DatabricksCredential.__pulumiType, name, resourceInputs, opts);
115
+ }
116
+ }
117
+ exports.DatabricksCredential = DatabricksCredential;
118
+ /** @internal */
119
+ DatabricksCredential.__pulumiType = 'dbtcloud:index/databricksCredential:DatabricksCredential';
120
+ //# sourceMappingURL=databricksCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databricksCredential.js","sourceRoot":"","sources":["../databricksCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;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@@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as dbtcloud from "@pulumi/dbtcloud";
8
+ *
9
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
10
+ * const ciEnvironment = new dbtcloud.Environment("ci_environment", {
11
+ * dbtVersion: "1.6.0-latest",
12
+ * name: "CI",
13
+ * projectId: dbtProject.id,
14
+ * type: "deployment",
15
+ * credentialId: ciCredential.credentialId,
16
+ * });
17
+ * // we can also set a deployment environment as being the production one
18
+ * const prodEnvironment = new dbtcloud.Environment("prod_environment", {
19
+ * dbtVersion: "1.6.0-latest",
20
+ * name: "Prod",
21
+ * projectId: dbtProject.id,
22
+ * type: "deployment",
23
+ * credentialId: prodCredential.credentialId,
24
+ * deploymentType: "production",
25
+ * });
26
+ * // Creating a development environment
27
+ * const devEnvironment = new dbtcloud.Environment("dev_environment", {
28
+ * dbtVersion: "1.6.0-latest",
29
+ * name: "Dev",
30
+ * projectId: dbtProject.id,
31
+ * type: "development",
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * Import using a project ID and environment ID found in the URL or via the API.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import dbtcloud:index/environment:Environment prod_environment "project_id:environment_id"
41
+ * ```
42
+ *
43
+ * ```sh
44
+ * $ pulumi import dbtcloud:index/environment:Environment prod_environment 12345:6789
45
+ * ```
46
+ */
47
+ export declare class Environment extends pulumi.CustomResource {
48
+ /**
49
+ * Get an existing Environment resource's state with the given name, ID, and optional extra
50
+ * properties used to qualify the lookup.
51
+ *
52
+ * @param name The _unique_ name of the resulting resource.
53
+ * @param id The _unique_ provider ID of the resource to lookup.
54
+ * @param state Any extra arguments used during the lookup.
55
+ * @param opts Optional settings to control the behavior of the CustomResource.
56
+ */
57
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnvironmentState, opts?: pulumi.CustomResourceOptions): Environment;
58
+ /**
59
+ * Returns true if the given object is an instance of Environment. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj: any): obj is Environment;
63
+ /**
64
+ * Credential ID to create the environment with. A credential is not required for development environments but is required for deployment environments
65
+ */
66
+ readonly credentialId: pulumi.Output<number | undefined>;
67
+ /**
68
+ * Which custom branch to use in this environment
69
+ */
70
+ readonly customBranch: pulumi.Output<string | undefined>;
71
+ /**
72
+ * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` or `major.minor.0-pre`, e.g. `1.5.0-latest`
73
+ */
74
+ readonly dbtVersion: pulumi.Output<string>;
75
+ /**
76
+ * The type of environment. Only valid for environments of type 'deployment' and for now can only be empty or set to 'production'
77
+ */
78
+ readonly deploymentType: pulumi.Output<string | undefined>;
79
+ /**
80
+ * Environment ID within the project
81
+ */
82
+ readonly environmentId: pulumi.Output<number>;
83
+ /**
84
+ * ID of the extended attributes for the environment
85
+ */
86
+ readonly extendedAttributesId: pulumi.Output<number | undefined>;
87
+ /**
88
+ * Whether the environment is active
89
+ */
90
+ readonly isActive: pulumi.Output<boolean | undefined>;
91
+ /**
92
+ * Environment name
93
+ */
94
+ readonly name: pulumi.Output<string>;
95
+ /**
96
+ * Project ID to create the environment in
97
+ */
98
+ readonly projectId: pulumi.Output<number>;
99
+ /**
100
+ * The type of environment (must be either development or deployment)
101
+ */
102
+ readonly type: pulumi.Output<string>;
103
+ /**
104
+ * Whether to use a custom git branch in this environment
105
+ */
106
+ readonly useCustomBranch: pulumi.Output<boolean | undefined>;
107
+ /**
108
+ * Create a Environment resource with the given unique name, arguments, and options.
109
+ *
110
+ * @param name The _unique_ name of the resource.
111
+ * @param args The arguments to use to populate this resource's properties.
112
+ * @param opts A bag of options that control this resource's behavior.
113
+ */
114
+ constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions);
115
+ }
116
+ /**
117
+ * Input properties used for looking up and filtering Environment resources.
118
+ */
119
+ export interface EnvironmentState {
120
+ /**
121
+ * Credential ID to create the environment with. A credential is not required for development environments but is required for deployment environments
122
+ */
123
+ credentialId?: pulumi.Input<number>;
124
+ /**
125
+ * Which custom branch to use in this environment
126
+ */
127
+ customBranch?: pulumi.Input<string>;
128
+ /**
129
+ * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` or `major.minor.0-pre`, e.g. `1.5.0-latest`
130
+ */
131
+ dbtVersion?: pulumi.Input<string>;
132
+ /**
133
+ * The type of environment. Only valid for environments of type 'deployment' and for now can only be empty or set to 'production'
134
+ */
135
+ deploymentType?: pulumi.Input<string>;
136
+ /**
137
+ * Environment ID within the project
138
+ */
139
+ environmentId?: pulumi.Input<number>;
140
+ /**
141
+ * ID of the extended attributes for the environment
142
+ */
143
+ extendedAttributesId?: pulumi.Input<number>;
144
+ /**
145
+ * Whether the environment is active
146
+ */
147
+ isActive?: pulumi.Input<boolean>;
148
+ /**
149
+ * Environment name
150
+ */
151
+ name?: pulumi.Input<string>;
152
+ /**
153
+ * Project ID to create the environment in
154
+ */
155
+ projectId?: pulumi.Input<number>;
156
+ /**
157
+ * The type of environment (must be either development or deployment)
158
+ */
159
+ type?: pulumi.Input<string>;
160
+ /**
161
+ * Whether to use a custom git branch in this environment
162
+ */
163
+ useCustomBranch?: pulumi.Input<boolean>;
164
+ }
165
+ /**
166
+ * The set of arguments for constructing a Environment resource.
167
+ */
168
+ export interface EnvironmentArgs {
169
+ /**
170
+ * Credential ID to create the environment with. A credential is not required for development environments but is required for deployment environments
171
+ */
172
+ credentialId?: pulumi.Input<number>;
173
+ /**
174
+ * Which custom branch to use in this environment
175
+ */
176
+ customBranch?: pulumi.Input<string>;
177
+ /**
178
+ * Version number of dbt to use in this environment. It needs to be in the format `major.minor.0-latest` or `major.minor.0-pre`, e.g. `1.5.0-latest`
179
+ */
180
+ dbtVersion: pulumi.Input<string>;
181
+ /**
182
+ * The type of environment. Only valid for environments of type 'deployment' and for now can only be empty or set to 'production'
183
+ */
184
+ deploymentType?: pulumi.Input<string>;
185
+ /**
186
+ * ID of the extended attributes for the environment
187
+ */
188
+ extendedAttributesId?: pulumi.Input<number>;
189
+ /**
190
+ * Whether the environment is active
191
+ */
192
+ isActive?: pulumi.Input<boolean>;
193
+ /**
194
+ * Environment name
195
+ */
196
+ name?: pulumi.Input<string>;
197
+ /**
198
+ * Project ID to create the environment in
199
+ */
200
+ projectId: pulumi.Input<number>;
201
+ /**
202
+ * The type of environment (must be either development or deployment)
203
+ */
204
+ type: pulumi.Input<string>;
205
+ /**
206
+ * Whether to use a custom git branch in this environment
207
+ */
208
+ useCustomBranch?: pulumi.Input<boolean>;
209
+ }
package/environment.js ADDED
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.Environment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as dbtcloud from "@pulumi/dbtcloud";
14
+ *
15
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
16
+ * const ciEnvironment = new dbtcloud.Environment("ci_environment", {
17
+ * dbtVersion: "1.6.0-latest",
18
+ * name: "CI",
19
+ * projectId: dbtProject.id,
20
+ * type: "deployment",
21
+ * credentialId: ciCredential.credentialId,
22
+ * });
23
+ * // we can also set a deployment environment as being the production one
24
+ * const prodEnvironment = new dbtcloud.Environment("prod_environment", {
25
+ * dbtVersion: "1.6.0-latest",
26
+ * name: "Prod",
27
+ * projectId: dbtProject.id,
28
+ * type: "deployment",
29
+ * credentialId: prodCredential.credentialId,
30
+ * deploymentType: "production",
31
+ * });
32
+ * // Creating a development environment
33
+ * const devEnvironment = new dbtcloud.Environment("dev_environment", {
34
+ * dbtVersion: "1.6.0-latest",
35
+ * name: "Dev",
36
+ * projectId: dbtProject.id,
37
+ * type: "development",
38
+ * });
39
+ * ```
40
+ *
41
+ * ## Import
42
+ *
43
+ * Import using a project ID and environment ID found in the URL or via the API.
44
+ *
45
+ * ```sh
46
+ * $ pulumi import dbtcloud:index/environment:Environment prod_environment "project_id:environment_id"
47
+ * ```
48
+ *
49
+ * ```sh
50
+ * $ pulumi import dbtcloud:index/environment:Environment prod_environment 12345:6789
51
+ * ```
52
+ */
53
+ class Environment extends pulumi.CustomResource {
54
+ /**
55
+ * Get an existing Environment resource's state with the given name, ID, and optional extra
56
+ * properties used to qualify the lookup.
57
+ *
58
+ * @param name The _unique_ name of the resulting resource.
59
+ * @param id The _unique_ provider ID of the resource to lookup.
60
+ * @param state Any extra arguments used during the lookup.
61
+ * @param opts Optional settings to control the behavior of the CustomResource.
62
+ */
63
+ static get(name, id, state, opts) {
64
+ return new Environment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
65
+ }
66
+ /**
67
+ * Returns true if the given object is an instance of Environment. This is designed to work even
68
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
69
+ */
70
+ static isInstance(obj) {
71
+ if (obj === undefined || obj === null) {
72
+ return false;
73
+ }
74
+ return obj['__pulumiType'] === Environment.__pulumiType;
75
+ }
76
+ constructor(name, argsOrState, opts) {
77
+ let resourceInputs = {};
78
+ opts = opts || {};
79
+ if (opts.id) {
80
+ const state = argsOrState;
81
+ resourceInputs["credentialId"] = state ? state.credentialId : undefined;
82
+ resourceInputs["customBranch"] = state ? state.customBranch : undefined;
83
+ resourceInputs["dbtVersion"] = state ? state.dbtVersion : undefined;
84
+ resourceInputs["deploymentType"] = state ? state.deploymentType : undefined;
85
+ resourceInputs["environmentId"] = state ? state.environmentId : undefined;
86
+ resourceInputs["extendedAttributesId"] = state ? state.extendedAttributesId : undefined;
87
+ resourceInputs["isActive"] = state ? state.isActive : undefined;
88
+ resourceInputs["name"] = state ? state.name : undefined;
89
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
90
+ resourceInputs["type"] = state ? state.type : undefined;
91
+ resourceInputs["useCustomBranch"] = state ? state.useCustomBranch : undefined;
92
+ }
93
+ else {
94
+ const args = argsOrState;
95
+ if ((!args || args.dbtVersion === undefined) && !opts.urn) {
96
+ throw new Error("Missing required property 'dbtVersion'");
97
+ }
98
+ if ((!args || args.projectId === undefined) && !opts.urn) {
99
+ throw new Error("Missing required property 'projectId'");
100
+ }
101
+ if ((!args || args.type === undefined) && !opts.urn) {
102
+ throw new Error("Missing required property 'type'");
103
+ }
104
+ resourceInputs["credentialId"] = args ? args.credentialId : undefined;
105
+ resourceInputs["customBranch"] = args ? args.customBranch : undefined;
106
+ resourceInputs["dbtVersion"] = args ? args.dbtVersion : undefined;
107
+ resourceInputs["deploymentType"] = args ? args.deploymentType : undefined;
108
+ resourceInputs["extendedAttributesId"] = args ? args.extendedAttributesId : undefined;
109
+ resourceInputs["isActive"] = args ? args.isActive : undefined;
110
+ resourceInputs["name"] = args ? args.name : undefined;
111
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
112
+ resourceInputs["type"] = args ? args.type : undefined;
113
+ resourceInputs["useCustomBranch"] = args ? args.useCustomBranch : undefined;
114
+ resourceInputs["environmentId"] = undefined /*out*/;
115
+ }
116
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
117
+ super(Environment.__pulumiType, name, resourceInputs, opts);
118
+ }
119
+ }
120
+ exports.Environment = Environment;
121
+ /** @internal */
122
+ Environment.__pulumiType = 'dbtcloud:index/environment:Environment';
123
+ //# sourceMappingURL=environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.js","sourceRoot":"","sources":["../environment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,WAAY,SAAQ,MAA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,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA1HL,kCA2HC;AA7GG,gBAAgB;AACO,wBAAY,GAAG,wCAAwC,CAAC"}
@@ -0,0 +1,120 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * *Note*: Some upstream resources can be slow to create, so if creating a project or environment at
4
+ * the same time as the environment variables, it's recommended to use the `dependsOn` meta argument.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as dbtcloud from "@pulumi/dbtcloud";
11
+ *
12
+ * // NOTE for customers using the LEGACY dbt_cloud provider:
13
+ * const dbtMyEnvVar = new dbtcloud.EnvironmentVariable("dbt_my_env_var", {
14
+ * name: "DBT_MY_ENV_VAR",
15
+ * projectId: dbtProject.id,
16
+ * environmentValues: {
17
+ * project: "my_project_level_value",
18
+ * Dev: "my_env_level_value",
19
+ * CI: "my_ci_override_value",
20
+ * Prod: "my_prod_override_value",
21
+ * },
22
+ * }, {
23
+ * dependsOn: [
24
+ * dbtProject,
25
+ * devEnv,
26
+ * ciEnv,
27
+ * prodEnv,
28
+ * ],
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * Import using a project ID and environment variable name found in the URL and UI or via the API.
35
+ *
36
+ * ```sh
37
+ * $ pulumi import dbtcloud:index/environmentVariable:EnvironmentVariable test_environment_variable "project_id:environment_variable_name"
38
+ * ```
39
+ *
40
+ * ```sh
41
+ * $ pulumi import dbtcloud:index/environmentVariable:EnvironmentVariable test_environment_variable 12345:DBT_ENV_VAR
42
+ * ```
43
+ */
44
+ export declare class EnvironmentVariable extends pulumi.CustomResource {
45
+ /**
46
+ * Get an existing EnvironmentVariable resource's state with the given name, ID, and optional extra
47
+ * properties used to qualify the lookup.
48
+ *
49
+ * @param name The _unique_ name of the resulting resource.
50
+ * @param id The _unique_ provider ID of the resource to lookup.
51
+ * @param state Any extra arguments used during the lookup.
52
+ * @param opts Optional settings to control the behavior of the CustomResource.
53
+ */
54
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnvironmentVariableState, opts?: pulumi.CustomResourceOptions): EnvironmentVariable;
55
+ /**
56
+ * Returns true if the given object is an instance of EnvironmentVariable. This is designed to work even
57
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
+ */
59
+ static isInstance(obj: any): obj is EnvironmentVariable;
60
+ /**
61
+ * Map from environment names to respective variable value, a special key `project` should be set for the project default variable value. This field is not set as sensitive so take precautions when using secret environment variables.
62
+ */
63
+ readonly environmentValues: pulumi.Output<{
64
+ [key: string]: any;
65
+ }>;
66
+ /**
67
+ * Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
68
+ */
69
+ readonly name: pulumi.Output<string>;
70
+ /**
71
+ * Project for the variable to be created in
72
+ */
73
+ readonly projectId: pulumi.Output<number>;
74
+ /**
75
+ * Create a EnvironmentVariable resource with the given unique name, arguments, and options.
76
+ *
77
+ * @param name The _unique_ name of the resource.
78
+ * @param args The arguments to use to populate this resource's properties.
79
+ * @param opts A bag of options that control this resource's behavior.
80
+ */
81
+ constructor(name: string, args: EnvironmentVariableArgs, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering EnvironmentVariable resources.
85
+ */
86
+ export interface EnvironmentVariableState {
87
+ /**
88
+ * Map from environment names to respective variable value, a special key `project` should be set for the project default variable value. This field is not set as sensitive so take precautions when using secret environment variables.
89
+ */
90
+ environmentValues?: pulumi.Input<{
91
+ [key: string]: any;
92
+ }>;
93
+ /**
94
+ * Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
95
+ */
96
+ name?: pulumi.Input<string>;
97
+ /**
98
+ * Project for the variable to be created in
99
+ */
100
+ projectId?: pulumi.Input<number>;
101
+ }
102
+ /**
103
+ * The set of arguments for constructing a EnvironmentVariable resource.
104
+ */
105
+ export interface EnvironmentVariableArgs {
106
+ /**
107
+ * Map from environment names to respective variable value, a special key `project` should be set for the project default variable value. This field is not set as sensitive so take precautions when using secret environment variables.
108
+ */
109
+ environmentValues: pulumi.Input<{
110
+ [key: string]: any;
111
+ }>;
112
+ /**
113
+ * Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
114
+ */
115
+ name?: pulumi.Input<string>;
116
+ /**
117
+ * Project for the variable to be created in
118
+ */
119
+ projectId: pulumi.Input<number>;
120
+ }