@pulumi/dbtcloud 0.2.0-alpha.1749534410 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accountFeatures.d.ts +24 -0
- package/accountFeatures.js +4 -0
- package/accountFeatures.js.map +1 -1
- package/bigQueryCredential.d.ts +5 -3
- package/bigQueryCredential.js +2 -0
- package/bigQueryCredential.js.map +1 -1
- package/bigquerySemanticLayerCredential.d.ts +161 -0
- package/bigquerySemanticLayerCredential.js +102 -0
- package/bigquerySemanticLayerCredential.js.map +1 -0
- package/databricksCredential.d.ts +16 -14
- package/databricksCredential.js +14 -2
- package/databricksCredential.js.map +1 -1
- package/environment.d.ts +37 -45
- package/environment.js +1 -6
- package/environment.js.map +1 -1
- package/environmentVariable.d.ts +3 -3
- package/environmentVariableJobOverride.d.ts +15 -5
- package/environmentVariableJobOverride.js +4 -0
- package/environmentVariableJobOverride.js.map +1 -1
- package/extendedAttributes.d.ts +7 -13
- package/extendedAttributes.js +1 -1
- package/extendedAttributes.js.map +1 -1
- package/fabricCredential.d.ts +16 -16
- package/fabricCredential.js +6 -6
- package/fabricCredential.js.map +1 -1
- package/getBigQueryCredential.d.ts +7 -1
- package/getBigQueryCredential.js +6 -0
- package/getBigQueryCredential.js.map +1 -1
- package/getDatabricksCredential.d.ts +10 -4
- package/getDatabricksCredential.js +6 -0
- package/getDatabricksCredential.js.map +1 -1
- package/getEnvironment.d.ts +4 -7
- package/getEnvironment.js.map +1 -1
- package/getEnvironmentVariable.d.ts +38 -8
- package/getEnvironmentVariable.js +30 -0
- package/getEnvironmentVariable.js.map +1 -1
- package/getExtendedAttributes.d.ts +12 -8
- package/getExtendedAttributes.js +4 -0
- package/getExtendedAttributes.js.map +1 -1
- package/getGlobalConnection.d.ts +4 -0
- package/getGlobalConnection.js.map +1 -1
- package/getGroupUsers.d.ts +3 -3
- package/getGroupUsers.js +2 -2
- package/getJob.d.ts +59 -26
- package/getJob.js +8 -2
- package/getJob.js.map +1 -1
- package/getPostgresCredential.d.ts +7 -1
- package/getPostgresCredential.js +6 -0
- package/getPostgresCredential.js.map +1 -1
- package/getPrivatelinkEndpoint.d.ts +16 -10
- package/getPrivatelinkEndpoint.js +6 -0
- package/getPrivatelinkEndpoint.js.map +1 -1
- package/getProject.d.ts +81 -44
- package/getProject.js +50 -22
- package/getProject.js.map +1 -1
- package/getRedshiftCredential.d.ts +72 -0
- package/getRedshiftCredential.js +32 -0
- package/getRedshiftCredential.js.map +1 -0
- package/getRepository.d.ts +25 -3
- package/getRepository.js +6 -0
- package/getRepository.js.map +1 -1
- package/getRuns.d.ts +46 -0
- package/getRuns.js +30 -0
- package/getRuns.js.map +1 -0
- package/getSnowflakeCredential.d.ts +8 -2
- package/getSnowflakeCredential.js +6 -0
- package/getSnowflakeCredential.js.map +1 -1
- package/getSynapseCredential.d.ts +80 -0
- package/getSynapseCredential.js +30 -0
- package/getSynapseCredential.js.map +1 -0
- package/getTeradataCredential.d.ts +68 -0
- package/getTeradataCredential.js +30 -0
- package/getTeradataCredential.js.map +1 -0
- package/getUserGroups.d.ts +9 -5
- package/getUserGroups.js +4 -0
- package/getUserGroups.js.map +1 -1
- package/getWebhook.d.ts +16 -4
- package/getWebhook.js +6 -0
- package/getWebhook.js.map +1 -1
- package/globalConnection.d.ts +12 -2
- package/globalConnection.js +2 -2
- package/globalConnection.js.map +1 -1
- package/index.d.ts +36 -18
- package/index.js +55 -28
- package/index.js.map +1 -1
- package/job.d.ts +41 -144
- package/job.js +4 -113
- package/job.js.map +1 -1
- package/package.json +2 -2
- package/partialEnvironmentVariable.d.ts +83 -0
- package/partialEnvironmentVariable.js +64 -0
- package/partialEnvironmentVariable.js.map +1 -0
- package/postgresCredential.d.ts +13 -11
- package/postgresCredential.js +2 -0
- package/postgresCredential.js.map +1 -1
- package/project.d.ts +20 -6
- package/project.js +5 -1
- package/project.js.map +1 -1
- package/projectRepository.d.ts +1 -1
- package/projectRepository.js +1 -1
- package/redshiftCredential.d.ts +165 -0
- package/redshiftCredential.js +121 -0
- package/redshiftCredential.js.map +1 -0
- package/redshiftSemanticLayerCredential.d.ts +65 -0
- package/redshiftSemanticLayerCredential.js +60 -0
- package/redshiftSemanticLayerCredential.js.map +1 -0
- package/repository.d.ts +6 -6
- package/semanticLayerConfiguration.d.ts +106 -0
- package/semanticLayerConfiguration.js +103 -0
- package/semanticLayerConfiguration.js.map +1 -0
- package/snowflakeCredential.d.ts +46 -32
- package/snowflakeCredential.js +4 -6
- package/snowflakeCredential.js.map +1 -1
- package/snowflakeSemanticLayerCredential.d.ts +95 -0
- package/snowflakeSemanticLayerCredential.js +90 -0
- package/snowflakeSemanticLayerCredential.js.map +1 -0
- package/synapseCredential.d.ts +233 -0
- package/synapseCredential.js +152 -0
- package/synapseCredential.js.map +1 -0
- package/teradataCredential.d.ts +107 -0
- package/teradataCredential.js +76 -0
- package/teradataCredential.js.map +1 -0
- package/types/input.d.ts +300 -0
- package/types/output.d.ts +409 -6
- package/userGroups.d.ts +4 -5
- package/userGroups.js +1 -2
- package/userGroups.js.map +1 -1
- package/webhook.d.ts +13 -7
- package/webhook.js +2 -0
- package/webhook.js.map +1 -1
- package/bigQueryConnection.d.ts +0 -420
- package/bigQueryConnection.js +0 -217
- package/bigQueryConnection.js.map +0 -1
- package/connection.d.ts +0 -342
- package/connection.js +0 -170
- package/connection.js.map +0 -1
- package/fabricConnection.d.ts +0 -199
- package/fabricConnection.js +0 -130
- package/fabricConnection.js.map +0 -1
- package/getBigQueryConnection.d.ts +0 -134
- package/getBigQueryConnection.js +0 -24
- package/getBigQueryConnection.js.map +0 -1
- package/getConnection.d.ts +0 -86
- package/getConnection.js +0 -24
- package/getConnection.js.map +0 -1
- package/projectConnection.d.ts +0 -105
- package/projectConnection.js +0 -102
- package/projectConnection.js.map +0 -1
package/job.d.ts
CHANGED
|
@@ -2,117 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* > In October 2023, CI improvements have been rolled out to dbt Cloud with minor impacts to some jobs: [more info](https://docs.getdbt.com/docs/dbt-versions/release-notes/june-2023/ci-updates-phase1-rn).
|
|
6
|
-
* <br/>
|
|
7
|
-
* <br/>
|
|
8
|
-
* Those improvements include modifications to deferral which was historically set at the job level and will now be set at the environment level.
|
|
9
|
-
* Deferral can still be set to "self" by setting `selfDeferring` to `true` but with the new approach, deferral to other runs need to be done with `deferringEnvironmentId` instead of `deferringJobId`.
|
|
10
|
-
*
|
|
11
|
-
* > New with 0.3.1, `triggers` now accepts a `onMerge` value to trigger jobs when code is merged in git. If `onMerge` is `true` all other triggers need to be `false`.
|
|
12
|
-
* <br/>
|
|
13
|
-
* <br/>
|
|
14
|
-
* For now, it is not a mandatory field, but it will be in a future version. Please add `onMerge` in your config or modules.
|
|
15
|
-
*
|
|
16
|
-
* ## Example Usage
|
|
17
|
-
*
|
|
18
|
-
* ```typescript
|
|
19
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
-
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
21
|
-
*
|
|
22
|
-
* // a job that has github_webhook and git_provider_webhook
|
|
23
|
-
* // set to false will be categorized as a "Deploy Job"
|
|
24
|
-
* const dailyJob = new dbtcloud.Job("daily_job", {
|
|
25
|
-
* environmentId: prodEnvironment.environmentId,
|
|
26
|
-
* executeSteps: ["dbt build"],
|
|
27
|
-
* generateDocs: true,
|
|
28
|
-
* isActive: true,
|
|
29
|
-
* name: "Daily job",
|
|
30
|
-
* numThreads: 64,
|
|
31
|
-
* projectId: dbtProject.id,
|
|
32
|
-
* runGenerateSources: true,
|
|
33
|
-
* targetName: "default",
|
|
34
|
-
* triggers: {
|
|
35
|
-
* github_webhook: false,
|
|
36
|
-
* git_provider_webhook: false,
|
|
37
|
-
* schedule: true,
|
|
38
|
-
* on_merge: false,
|
|
39
|
-
* },
|
|
40
|
-
* scheduleDays: [
|
|
41
|
-
* 0,
|
|
42
|
-
* 1,
|
|
43
|
-
* 2,
|
|
44
|
-
* 3,
|
|
45
|
-
* 4,
|
|
46
|
-
* 5,
|
|
47
|
-
* 6,
|
|
48
|
-
* ],
|
|
49
|
-
* scheduleType: "days_of_week",
|
|
50
|
-
* scheduleHours: [0],
|
|
51
|
-
* });
|
|
52
|
-
* // a job that has github_webhook and git_provider_webhook set
|
|
53
|
-
* // to true will be categorized as a "Continuous Integration Job"
|
|
54
|
-
* const ciJob = new dbtcloud.Job("ci_job", {
|
|
55
|
-
* environmentId: ciEnvironment.environmentId,
|
|
56
|
-
* executeSteps: ["dbt build -s state:modified+ --fail-fast"],
|
|
57
|
-
* generateDocs: false,
|
|
58
|
-
* deferringEnvironmentId: prodEnvironment.environmentId,
|
|
59
|
-
* name: "CI Job",
|
|
60
|
-
* numThreads: 32,
|
|
61
|
-
* projectId: dbtProject.id,
|
|
62
|
-
* runGenerateSources: false,
|
|
63
|
-
* runLint: true,
|
|
64
|
-
* errorsOnLintFailure: true,
|
|
65
|
-
* triggers: {
|
|
66
|
-
* github_webhook: true,
|
|
67
|
-
* git_provider_webhook: true,
|
|
68
|
-
* schedule: false,
|
|
69
|
-
* on_merge: false,
|
|
70
|
-
* },
|
|
71
|
-
* scheduleDays: [
|
|
72
|
-
* 0,
|
|
73
|
-
* 1,
|
|
74
|
-
* 2,
|
|
75
|
-
* 3,
|
|
76
|
-
* 4,
|
|
77
|
-
* 5,
|
|
78
|
-
* 6,
|
|
79
|
-
* ],
|
|
80
|
-
* scheduleType: "days_of_week",
|
|
81
|
-
* });
|
|
82
|
-
* // a job that is set to be triggered after another job finishes
|
|
83
|
-
* // this is sometimes referred as 'job chaining'
|
|
84
|
-
* const downstreamJob = new dbtcloud.Job("downstream_job", {
|
|
85
|
-
* environmentId: project2ProdEnvironment.environmentId,
|
|
86
|
-
* executeSteps: ["dbt build -s +my_model"],
|
|
87
|
-
* generateDocs: true,
|
|
88
|
-
* name: "Downstream job in project 2",
|
|
89
|
-
* numThreads: 32,
|
|
90
|
-
* projectId: dbtProject2.id,
|
|
91
|
-
* runGenerateSources: true,
|
|
92
|
-
* triggers: {
|
|
93
|
-
* github_webhook: false,
|
|
94
|
-
* git_provider_webhook: false,
|
|
95
|
-
* schedule: false,
|
|
96
|
-
* on_merge: false,
|
|
97
|
-
* },
|
|
98
|
-
* scheduleDays: [
|
|
99
|
-
* 0,
|
|
100
|
-
* 1,
|
|
101
|
-
* 2,
|
|
102
|
-
* 3,
|
|
103
|
-
* 4,
|
|
104
|
-
* 5,
|
|
105
|
-
* 6,
|
|
106
|
-
* ],
|
|
107
|
-
* scheduleType: "days_of_week",
|
|
108
|
-
* jobCompletionTriggerCondition: {
|
|
109
|
-
* jobId: dailyJob.id,
|
|
110
|
-
* projectId: dbtProject.id,
|
|
111
|
-
* statuses: ["success"],
|
|
112
|
-
* },
|
|
113
|
-
* });
|
|
114
|
-
* ```
|
|
115
|
-
*
|
|
116
5
|
* ## Import
|
|
117
6
|
*
|
|
118
7
|
* using import blocks (requires Terraform >= 1.5)
|
|
@@ -162,7 +51,7 @@ export declare class Job extends pulumi.CustomResource {
|
|
|
162
51
|
/**
|
|
163
52
|
* The model selector for checking changes in the compare changes Advanced CI feature
|
|
164
53
|
*/
|
|
165
|
-
readonly compareChangesFlags: pulumi.Output<string
|
|
54
|
+
readonly compareChangesFlags: pulumi.Output<string>;
|
|
166
55
|
/**
|
|
167
56
|
* Version number of dbt to use in this job, usually in the format 1.2.0-latest rather than core versions
|
|
168
57
|
*/
|
|
@@ -178,7 +67,7 @@ export declare class Job extends pulumi.CustomResource {
|
|
|
178
67
|
/**
|
|
179
68
|
* Description for the job
|
|
180
69
|
*/
|
|
181
|
-
readonly description: pulumi.Output<string
|
|
70
|
+
readonly description: pulumi.Output<string>;
|
|
182
71
|
/**
|
|
183
72
|
* Environment ID to create the job in
|
|
184
73
|
*/
|
|
@@ -186,7 +75,7 @@ export declare class Job extends pulumi.CustomResource {
|
|
|
186
75
|
/**
|
|
187
76
|
* Whether the CI job should fail when a lint error is found. Only used when `runLint` is set to `true`. Defaults to `true`.
|
|
188
77
|
*/
|
|
189
|
-
readonly errorsOnLintFailure: pulumi.Output<boolean
|
|
78
|
+
readonly errorsOnLintFailure: pulumi.Output<boolean>;
|
|
190
79
|
/**
|
|
191
80
|
* List of commands to execute for the job
|
|
192
81
|
*/
|
|
@@ -194,15 +83,19 @@ export declare class Job extends pulumi.CustomResource {
|
|
|
194
83
|
/**
|
|
195
84
|
* Flag for whether the job should generate documentation
|
|
196
85
|
*/
|
|
197
|
-
readonly generateDocs: pulumi.Output<boolean
|
|
86
|
+
readonly generateDocs: pulumi.Output<boolean>;
|
|
198
87
|
/**
|
|
199
88
|
* Should always be set to true as setting it to false is the same as creating a job in a deleted state. To create/keep a job in a 'deactivated' state, check the `triggers` config.
|
|
200
89
|
*/
|
|
201
|
-
readonly isActive: pulumi.Output<boolean
|
|
90
|
+
readonly isActive: pulumi.Output<boolean>;
|
|
202
91
|
/**
|
|
203
92
|
* Which other job should trigger this job when it finishes, and on which conditions (sometimes referred as 'job chaining').
|
|
204
93
|
*/
|
|
205
|
-
readonly
|
|
94
|
+
readonly jobCompletionTriggerConditions: pulumi.Output<outputs.JobJobCompletionTriggerCondition[] | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Job identifier
|
|
97
|
+
*/
|
|
98
|
+
readonly jobId: pulumi.Output<number>;
|
|
206
99
|
/**
|
|
207
100
|
* Can be used to enforce the job type betwen `ci`, `merge` and `scheduled`. Without this value the job type is inferred from the triggers configured
|
|
208
101
|
*/
|
|
@@ -214,7 +107,7 @@ export declare class Job extends pulumi.CustomResource {
|
|
|
214
107
|
/**
|
|
215
108
|
* Number of threads to use in the job
|
|
216
109
|
*/
|
|
217
|
-
readonly numThreads: pulumi.Output<number
|
|
110
|
+
readonly numThreads: pulumi.Output<number>;
|
|
218
111
|
/**
|
|
219
112
|
* Project ID to create the job in
|
|
220
113
|
*/
|
|
@@ -222,15 +115,15 @@ export declare class Job extends pulumi.CustomResource {
|
|
|
222
115
|
/**
|
|
223
116
|
* Whether the CI job should compare data changes introduced by the code changes. Requires `deferringEnvironmentId` to be set. (Advanced CI needs to be activated in the dbt Cloud Account Settings first as well)
|
|
224
117
|
*/
|
|
225
|
-
readonly runCompareChanges: pulumi.Output<boolean
|
|
118
|
+
readonly runCompareChanges: pulumi.Output<boolean>;
|
|
226
119
|
/**
|
|
227
120
|
* Flag for whether the job should add a `dbt source freshness` step to the job. The difference between manually adding a step with `dbt source freshness` in the job steps or using this flag is that with this flag, a failed freshness will still allow the following steps to run.
|
|
228
121
|
*/
|
|
229
|
-
readonly runGenerateSources: pulumi.Output<boolean
|
|
122
|
+
readonly runGenerateSources: pulumi.Output<boolean>;
|
|
230
123
|
/**
|
|
231
124
|
* Whether the CI job should lint SQL changes. Defaults to `false`.
|
|
232
125
|
*/
|
|
233
|
-
readonly runLint: pulumi.Output<boolean
|
|
126
|
+
readonly runLint: pulumi.Output<boolean>;
|
|
234
127
|
/**
|
|
235
128
|
* Custom cron expression for schedule
|
|
236
129
|
*/
|
|
@@ -246,33 +139,33 @@ export declare class Job extends pulumi.CustomResource {
|
|
|
246
139
|
/**
|
|
247
140
|
* Number of hours between job executions if running on a schedule
|
|
248
141
|
*/
|
|
249
|
-
readonly scheduleInterval: pulumi.Output<number
|
|
142
|
+
readonly scheduleInterval: pulumi.Output<number>;
|
|
250
143
|
/**
|
|
251
|
-
* Type of schedule to use, one of every*day/ days*of*week/ custom*cron
|
|
144
|
+
* Type of schedule to use, one of every*day/ days*of*week/ custom*cron/ interval_cron
|
|
252
145
|
*/
|
|
253
|
-
readonly scheduleType: pulumi.Output<string
|
|
146
|
+
readonly scheduleType: pulumi.Output<string>;
|
|
254
147
|
/**
|
|
255
148
|
* Whether this job defers on a previous run of itself
|
|
256
149
|
*/
|
|
257
|
-
readonly selfDeferring: pulumi.Output<boolean
|
|
150
|
+
readonly selfDeferring: pulumi.Output<boolean>;
|
|
258
151
|
/**
|
|
259
152
|
* Target name for the dbt profile
|
|
260
153
|
*/
|
|
261
|
-
readonly targetName: pulumi.Output<string
|
|
154
|
+
readonly targetName: pulumi.Output<string>;
|
|
262
155
|
/**
|
|
263
|
-
* Number of seconds to allow the job to run before timing out
|
|
156
|
+
* [Deprectated - Moved to execution.timeout_seconds] Number of seconds to allow the job to run before timing out
|
|
157
|
+
*
|
|
158
|
+
* @deprecated Moved to execution.timeout_seconds
|
|
264
159
|
*/
|
|
265
|
-
readonly timeoutSeconds: pulumi.Output<number
|
|
160
|
+
readonly timeoutSeconds: pulumi.Output<number>;
|
|
266
161
|
/**
|
|
267
162
|
* Flags for which types of triggers to use, the values are `githubWebhook`, `gitProviderWebhook`, `schedule` and `onMerge`. All flags should be listed and set with `true` or `false`. When `onMerge` is `true`, all the other values must be false.\n\n`customBranchOnly` used to be allowed but has been deprecated from the API. The jobs will use the custom branch of the environment. Please remove the `customBranchOnly` from your config. \n\nTo create a job in a 'deactivated' state, set all to `false`.
|
|
268
163
|
*/
|
|
269
|
-
readonly triggers: pulumi.Output<
|
|
270
|
-
[key: string]: boolean;
|
|
271
|
-
}>;
|
|
164
|
+
readonly triggers: pulumi.Output<outputs.JobTriggers>;
|
|
272
165
|
/**
|
|
273
166
|
* Whether the CI job should be automatically triggered on draft PRs
|
|
274
167
|
*/
|
|
275
|
-
readonly triggersOnDraftPr: pulumi.Output<boolean
|
|
168
|
+
readonly triggersOnDraftPr: pulumi.Output<boolean>;
|
|
276
169
|
/**
|
|
277
170
|
* Create a Job resource with the given unique name, arguments, and options.
|
|
278
171
|
*
|
|
@@ -329,7 +222,11 @@ export interface JobState {
|
|
|
329
222
|
/**
|
|
330
223
|
* Which other job should trigger this job when it finishes, and on which conditions (sometimes referred as 'job chaining').
|
|
331
224
|
*/
|
|
332
|
-
|
|
225
|
+
jobCompletionTriggerConditions?: pulumi.Input<pulumi.Input<inputs.JobJobCompletionTriggerCondition>[]>;
|
|
226
|
+
/**
|
|
227
|
+
* Job identifier
|
|
228
|
+
*/
|
|
229
|
+
jobId?: pulumi.Input<number>;
|
|
333
230
|
/**
|
|
334
231
|
* Can be used to enforce the job type betwen `ci`, `merge` and `scheduled`. Without this value the job type is inferred from the triggers configured
|
|
335
232
|
*/
|
|
@@ -375,7 +272,7 @@ export interface JobState {
|
|
|
375
272
|
*/
|
|
376
273
|
scheduleInterval?: pulumi.Input<number>;
|
|
377
274
|
/**
|
|
378
|
-
* Type of schedule to use, one of every*day/ days*of*week/ custom*cron
|
|
275
|
+
* Type of schedule to use, one of every*day/ days*of*week/ custom*cron/ interval_cron
|
|
379
276
|
*/
|
|
380
277
|
scheduleType?: pulumi.Input<string>;
|
|
381
278
|
/**
|
|
@@ -387,15 +284,15 @@ export interface JobState {
|
|
|
387
284
|
*/
|
|
388
285
|
targetName?: pulumi.Input<string>;
|
|
389
286
|
/**
|
|
390
|
-
* Number of seconds to allow the job to run before timing out
|
|
287
|
+
* [Deprectated - Moved to execution.timeout_seconds] Number of seconds to allow the job to run before timing out
|
|
288
|
+
*
|
|
289
|
+
* @deprecated Moved to execution.timeout_seconds
|
|
391
290
|
*/
|
|
392
291
|
timeoutSeconds?: pulumi.Input<number>;
|
|
393
292
|
/**
|
|
394
293
|
* Flags for which types of triggers to use, the values are `githubWebhook`, `gitProviderWebhook`, `schedule` and `onMerge`. All flags should be listed and set with `true` or `false`. When `onMerge` is `true`, all the other values must be false.\n\n`customBranchOnly` used to be allowed but has been deprecated from the API. The jobs will use the custom branch of the environment. Please remove the `customBranchOnly` from your config. \n\nTo create a job in a 'deactivated' state, set all to `false`.
|
|
395
294
|
*/
|
|
396
|
-
triggers?: pulumi.Input<
|
|
397
|
-
[key: string]: pulumi.Input<boolean>;
|
|
398
|
-
}>;
|
|
295
|
+
triggers?: pulumi.Input<inputs.JobTriggers>;
|
|
399
296
|
/**
|
|
400
297
|
* Whether the CI job should be automatically triggered on draft PRs
|
|
401
298
|
*/
|
|
@@ -448,7 +345,7 @@ export interface JobArgs {
|
|
|
448
345
|
/**
|
|
449
346
|
* Which other job should trigger this job when it finishes, and on which conditions (sometimes referred as 'job chaining').
|
|
450
347
|
*/
|
|
451
|
-
|
|
348
|
+
jobCompletionTriggerConditions?: pulumi.Input<pulumi.Input<inputs.JobJobCompletionTriggerCondition>[]>;
|
|
452
349
|
/**
|
|
453
350
|
* Can be used to enforce the job type betwen `ci`, `merge` and `scheduled`. Without this value the job type is inferred from the triggers configured
|
|
454
351
|
*/
|
|
@@ -494,7 +391,7 @@ export interface JobArgs {
|
|
|
494
391
|
*/
|
|
495
392
|
scheduleInterval?: pulumi.Input<number>;
|
|
496
393
|
/**
|
|
497
|
-
* Type of schedule to use, one of every*day/ days*of*week/ custom*cron
|
|
394
|
+
* Type of schedule to use, one of every*day/ days*of*week/ custom*cron/ interval_cron
|
|
498
395
|
*/
|
|
499
396
|
scheduleType?: pulumi.Input<string>;
|
|
500
397
|
/**
|
|
@@ -506,15 +403,15 @@ export interface JobArgs {
|
|
|
506
403
|
*/
|
|
507
404
|
targetName?: pulumi.Input<string>;
|
|
508
405
|
/**
|
|
509
|
-
* Number of seconds to allow the job to run before timing out
|
|
406
|
+
* [Deprectated - Moved to execution.timeout_seconds] Number of seconds to allow the job to run before timing out
|
|
407
|
+
*
|
|
408
|
+
* @deprecated Moved to execution.timeout_seconds
|
|
510
409
|
*/
|
|
511
410
|
timeoutSeconds?: pulumi.Input<number>;
|
|
512
411
|
/**
|
|
513
412
|
* Flags for which types of triggers to use, the values are `githubWebhook`, `gitProviderWebhook`, `schedule` and `onMerge`. All flags should be listed and set with `true` or `false`. When `onMerge` is `true`, all the other values must be false.\n\n`customBranchOnly` used to be allowed but has been deprecated from the API. The jobs will use the custom branch of the environment. Please remove the `customBranchOnly` from your config. \n\nTo create a job in a 'deactivated' state, set all to `false`.
|
|
514
413
|
*/
|
|
515
|
-
triggers: pulumi.Input<
|
|
516
|
-
[key: string]: pulumi.Input<boolean>;
|
|
517
|
-
}>;
|
|
414
|
+
triggers: pulumi.Input<inputs.JobTriggers>;
|
|
518
415
|
/**
|
|
519
416
|
* Whether the CI job should be automatically triggered on draft PRs
|
|
520
417
|
*/
|
package/job.js
CHANGED
|
@@ -6,117 +6,6 @@ exports.Job = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* > In October 2023, CI improvements have been rolled out to dbt Cloud with minor impacts to some jobs: [more info](https://docs.getdbt.com/docs/dbt-versions/release-notes/june-2023/ci-updates-phase1-rn).
|
|
10
|
-
* <br/>
|
|
11
|
-
* <br/>
|
|
12
|
-
* Those improvements include modifications to deferral which was historically set at the job level and will now be set at the environment level.
|
|
13
|
-
* Deferral can still be set to "self" by setting `selfDeferring` to `true` but with the new approach, deferral to other runs need to be done with `deferringEnvironmentId` instead of `deferringJobId`.
|
|
14
|
-
*
|
|
15
|
-
* > New with 0.3.1, `triggers` now accepts a `onMerge` value to trigger jobs when code is merged in git. If `onMerge` is `true` all other triggers need to be `false`.
|
|
16
|
-
* <br/>
|
|
17
|
-
* <br/>
|
|
18
|
-
* For now, it is not a mandatory field, but it will be in a future version. Please add `onMerge` in your config or modules.
|
|
19
|
-
*
|
|
20
|
-
* ## Example Usage
|
|
21
|
-
*
|
|
22
|
-
* ```typescript
|
|
23
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
-
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
25
|
-
*
|
|
26
|
-
* // a job that has github_webhook and git_provider_webhook
|
|
27
|
-
* // set to false will be categorized as a "Deploy Job"
|
|
28
|
-
* const dailyJob = new dbtcloud.Job("daily_job", {
|
|
29
|
-
* environmentId: prodEnvironment.environmentId,
|
|
30
|
-
* executeSteps: ["dbt build"],
|
|
31
|
-
* generateDocs: true,
|
|
32
|
-
* isActive: true,
|
|
33
|
-
* name: "Daily job",
|
|
34
|
-
* numThreads: 64,
|
|
35
|
-
* projectId: dbtProject.id,
|
|
36
|
-
* runGenerateSources: true,
|
|
37
|
-
* targetName: "default",
|
|
38
|
-
* triggers: {
|
|
39
|
-
* github_webhook: false,
|
|
40
|
-
* git_provider_webhook: false,
|
|
41
|
-
* schedule: true,
|
|
42
|
-
* on_merge: false,
|
|
43
|
-
* },
|
|
44
|
-
* scheduleDays: [
|
|
45
|
-
* 0,
|
|
46
|
-
* 1,
|
|
47
|
-
* 2,
|
|
48
|
-
* 3,
|
|
49
|
-
* 4,
|
|
50
|
-
* 5,
|
|
51
|
-
* 6,
|
|
52
|
-
* ],
|
|
53
|
-
* scheduleType: "days_of_week",
|
|
54
|
-
* scheduleHours: [0],
|
|
55
|
-
* });
|
|
56
|
-
* // a job that has github_webhook and git_provider_webhook set
|
|
57
|
-
* // to true will be categorized as a "Continuous Integration Job"
|
|
58
|
-
* const ciJob = new dbtcloud.Job("ci_job", {
|
|
59
|
-
* environmentId: ciEnvironment.environmentId,
|
|
60
|
-
* executeSteps: ["dbt build -s state:modified+ --fail-fast"],
|
|
61
|
-
* generateDocs: false,
|
|
62
|
-
* deferringEnvironmentId: prodEnvironment.environmentId,
|
|
63
|
-
* name: "CI Job",
|
|
64
|
-
* numThreads: 32,
|
|
65
|
-
* projectId: dbtProject.id,
|
|
66
|
-
* runGenerateSources: false,
|
|
67
|
-
* runLint: true,
|
|
68
|
-
* errorsOnLintFailure: true,
|
|
69
|
-
* triggers: {
|
|
70
|
-
* github_webhook: true,
|
|
71
|
-
* git_provider_webhook: true,
|
|
72
|
-
* schedule: false,
|
|
73
|
-
* on_merge: false,
|
|
74
|
-
* },
|
|
75
|
-
* scheduleDays: [
|
|
76
|
-
* 0,
|
|
77
|
-
* 1,
|
|
78
|
-
* 2,
|
|
79
|
-
* 3,
|
|
80
|
-
* 4,
|
|
81
|
-
* 5,
|
|
82
|
-
* 6,
|
|
83
|
-
* ],
|
|
84
|
-
* scheduleType: "days_of_week",
|
|
85
|
-
* });
|
|
86
|
-
* // a job that is set to be triggered after another job finishes
|
|
87
|
-
* // this is sometimes referred as 'job chaining'
|
|
88
|
-
* const downstreamJob = new dbtcloud.Job("downstream_job", {
|
|
89
|
-
* environmentId: project2ProdEnvironment.environmentId,
|
|
90
|
-
* executeSteps: ["dbt build -s +my_model"],
|
|
91
|
-
* generateDocs: true,
|
|
92
|
-
* name: "Downstream job in project 2",
|
|
93
|
-
* numThreads: 32,
|
|
94
|
-
* projectId: dbtProject2.id,
|
|
95
|
-
* runGenerateSources: true,
|
|
96
|
-
* triggers: {
|
|
97
|
-
* github_webhook: false,
|
|
98
|
-
* git_provider_webhook: false,
|
|
99
|
-
* schedule: false,
|
|
100
|
-
* on_merge: false,
|
|
101
|
-
* },
|
|
102
|
-
* scheduleDays: [
|
|
103
|
-
* 0,
|
|
104
|
-
* 1,
|
|
105
|
-
* 2,
|
|
106
|
-
* 3,
|
|
107
|
-
* 4,
|
|
108
|
-
* 5,
|
|
109
|
-
* 6,
|
|
110
|
-
* ],
|
|
111
|
-
* scheduleType: "days_of_week",
|
|
112
|
-
* jobCompletionTriggerCondition: {
|
|
113
|
-
* jobId: dailyJob.id,
|
|
114
|
-
* projectId: dbtProject.id,
|
|
115
|
-
* statuses: ["success"],
|
|
116
|
-
* },
|
|
117
|
-
* });
|
|
118
|
-
* ```
|
|
119
|
-
*
|
|
120
9
|
* ## Import
|
|
121
10
|
*
|
|
122
11
|
* using import blocks (requires Terraform >= 1.5)
|
|
@@ -185,7 +74,8 @@ class Job extends pulumi.CustomResource {
|
|
|
185
74
|
resourceInputs["executeSteps"] = state ? state.executeSteps : undefined;
|
|
186
75
|
resourceInputs["generateDocs"] = state ? state.generateDocs : undefined;
|
|
187
76
|
resourceInputs["isActive"] = state ? state.isActive : undefined;
|
|
188
|
-
resourceInputs["
|
|
77
|
+
resourceInputs["jobCompletionTriggerConditions"] = state ? state.jobCompletionTriggerConditions : undefined;
|
|
78
|
+
resourceInputs["jobId"] = state ? state.jobId : undefined;
|
|
189
79
|
resourceInputs["jobType"] = state ? state.jobType : undefined;
|
|
190
80
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
191
81
|
resourceInputs["numThreads"] = state ? state.numThreads : undefined;
|
|
@@ -228,7 +118,7 @@ class Job extends pulumi.CustomResource {
|
|
|
228
118
|
resourceInputs["executeSteps"] = args ? args.executeSteps : undefined;
|
|
229
119
|
resourceInputs["generateDocs"] = args ? args.generateDocs : undefined;
|
|
230
120
|
resourceInputs["isActive"] = args ? args.isActive : undefined;
|
|
231
|
-
resourceInputs["
|
|
121
|
+
resourceInputs["jobCompletionTriggerConditions"] = args ? args.jobCompletionTriggerConditions : undefined;
|
|
232
122
|
resourceInputs["jobType"] = args ? args.jobType : undefined;
|
|
233
123
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
234
124
|
resourceInputs["numThreads"] = args ? args.numThreads : undefined;
|
|
@@ -246,6 +136,7 @@ class Job extends pulumi.CustomResource {
|
|
|
246
136
|
resourceInputs["timeoutSeconds"] = args ? args.timeoutSeconds : undefined;
|
|
247
137
|
resourceInputs["triggers"] = args ? args.triggers : undefined;
|
|
248
138
|
resourceInputs["triggersOnDraftPr"] = args ? args.triggersOnDraftPr : undefined;
|
|
139
|
+
resourceInputs["jobId"] = undefined /*out*/;
|
|
249
140
|
}
|
|
250
141
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
251
142
|
super(Job.__pulumiType, name, resourceInputs, opts);
|
package/job.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../job.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"job.js","sourceRoot":"","sources":["../job.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,GAAI,SAAQ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C,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AA3OL,kBA4OC;AA9NG,gBAAgB;AACO,gBAAY,GAAG,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/dbtcloud",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing dbt Cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"pulumi": {
|
|
27
27
|
"resource": true,
|
|
28
28
|
"name": "dbtcloud",
|
|
29
|
-
"version": "0.
|
|
29
|
+
"version": "1.0.0",
|
|
30
30
|
"server": "github://api.github.com/pulumi/pulumi-dbtcloud"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ###
|
|
6
|
+
*/
|
|
7
|
+
export declare class PartialEnvironmentVariable extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing PartialEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PartialEnvironmentVariableState, opts?: pulumi.CustomResourceOptions): PartialEnvironmentVariable;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if the given object is an instance of PartialEnvironmentVariable. This is designed to work even
|
|
20
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
21
|
+
*/
|
|
22
|
+
static isInstance(obj: any): obj is PartialEnvironmentVariable;
|
|
23
|
+
/**
|
|
24
|
+
* Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
|
|
25
|
+
*/
|
|
26
|
+
readonly environmentValues: pulumi.Output<{
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
|
|
31
|
+
*/
|
|
32
|
+
readonly name: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Project ID to create or update the environment variable in
|
|
35
|
+
*/
|
|
36
|
+
readonly projectId: pulumi.Output<number>;
|
|
37
|
+
/**
|
|
38
|
+
* Create a PartialEnvironmentVariable resource with the given unique name, arguments, and options.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resource.
|
|
41
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
42
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
43
|
+
*/
|
|
44
|
+
constructor(name: string, args: PartialEnvironmentVariableArgs, opts?: pulumi.CustomResourceOptions);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Input properties used for looking up and filtering PartialEnvironmentVariable resources.
|
|
48
|
+
*/
|
|
49
|
+
export interface PartialEnvironmentVariableState {
|
|
50
|
+
/**
|
|
51
|
+
* Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
|
|
52
|
+
*/
|
|
53
|
+
environmentValues?: pulumi.Input<{
|
|
54
|
+
[key: string]: pulumi.Input<string>;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
|
|
58
|
+
*/
|
|
59
|
+
name?: pulumi.Input<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Project ID to create or update the environment variable in
|
|
62
|
+
*/
|
|
63
|
+
projectId?: pulumi.Input<number>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The set of arguments for constructing a PartialEnvironmentVariable resource.
|
|
67
|
+
*/
|
|
68
|
+
export interface PartialEnvironmentVariableArgs {
|
|
69
|
+
/**
|
|
70
|
+
* Map from environment names to respective variable value. This field is not set as sensitive so take precautions when using secret environment variables. Only the specified environment values will be managed by this resource.
|
|
71
|
+
*/
|
|
72
|
+
environmentValues: pulumi.Input<{
|
|
73
|
+
[key: string]: pulumi.Input<string>;
|
|
74
|
+
}>;
|
|
75
|
+
/**
|
|
76
|
+
* Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
|
|
77
|
+
*/
|
|
78
|
+
name?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Project ID to create or update the environment variable in
|
|
81
|
+
*/
|
|
82
|
+
projectId: pulumi.Input<number>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.PartialEnvironmentVariable = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ###
|
|
12
|
+
*/
|
|
13
|
+
class PartialEnvironmentVariable extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing PartialEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name, id, state, opts) {
|
|
24
|
+
return new PartialEnvironmentVariable(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of PartialEnvironmentVariable. This is designed to work even
|
|
28
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
|
+
*/
|
|
30
|
+
static isInstance(obj) {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === PartialEnvironmentVariable.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
constructor(name, argsOrState, opts) {
|
|
37
|
+
let resourceInputs = {};
|
|
38
|
+
opts = opts || {};
|
|
39
|
+
if (opts.id) {
|
|
40
|
+
const state = argsOrState;
|
|
41
|
+
resourceInputs["environmentValues"] = state ? state.environmentValues : undefined;
|
|
42
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
43
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const args = argsOrState;
|
|
47
|
+
if ((!args || args.environmentValues === undefined) && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'environmentValues'");
|
|
49
|
+
}
|
|
50
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'projectId'");
|
|
52
|
+
}
|
|
53
|
+
resourceInputs["environmentValues"] = args ? args.environmentValues : undefined;
|
|
54
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
55
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
56
|
+
}
|
|
57
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
|
+
super(PartialEnvironmentVariable.__pulumiType, name, resourceInputs, opts);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.PartialEnvironmentVariable = PartialEnvironmentVariable;
|
|
62
|
+
/** @internal */
|
|
63
|
+
PartialEnvironmentVariable.__pulumiType = 'dbtcloud:index/partialEnvironmentVariable:PartialEnvironmentVariable';
|
|
64
|
+
//# sourceMappingURL=partialEnvironmentVariable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partialEnvironmentVariable.js","sourceRoot":"","sources":["../partialEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC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