Skip to content

Commit b3bbf57

Browse files
author
awstools
committed
feat(client-glue): Add optional field JobRunQueuingEnabled to CreateJob and UpdateJob APIs.
1 parent 17db5f7 commit b3bbf57

17 files changed

+118
-0
lines changed

clients/client-glue/src/commands/BatchGetJobsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface BatchGetJobsCommandOutput extends BatchGetJobsResponse, __Metad
4949
* // { // Job
5050
* // Name: "STRING_VALUE",
5151
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
52+
* // JobRunQueuingEnabled: true || false,
5253
* // Description: "STRING_VALUE",
5354
* // LogUri: "STRING_VALUE",
5455
* // Role: "STRING_VALUE",

clients/client-glue/src/commands/BatchGetWorkflowsCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
130130
* // TriggerName: "STRING_VALUE",
131131
* // JobName: "STRING_VALUE",
132132
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
133+
* // JobRunQueuingEnabled: true || false,
133134
* // StartedOn: new Date("TIMESTAMP"),
134135
* // LastModifiedOn: new Date("TIMESTAMP"),
135136
* // CompletedOn: new Date("TIMESTAMP"),
@@ -160,6 +161,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
160161
* // ExecutionClass: "FLEX" || "STANDARD",
161162
* // MaintenanceWindow: "STRING_VALUE",
162163
* // ProfileName: "STRING_VALUE",
164+
* // StateDetail: "STRING_VALUE",
163165
* // },
164166
* // ],
165167
* // },
@@ -245,6 +247,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
245247
* // TriggerName: "STRING_VALUE",
246248
* // JobName: "STRING_VALUE",
247249
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
250+
* // JobRunQueuingEnabled: true || false,
248251
* // StartedOn: new Date("TIMESTAMP"),
249252
* // LastModifiedOn: new Date("TIMESTAMP"),
250253
* // CompletedOn: new Date("TIMESTAMP"),
@@ -271,6 +274,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
271274
* // ExecutionClass: "FLEX" || "STANDARD",
272275
* // MaintenanceWindow: "STRING_VALUE",
273276
* // ProfileName: "STRING_VALUE",
277+
* // StateDetail: "STRING_VALUE",
274278
* // },
275279
* // ],
276280
* // },

clients/client-glue/src/commands/CreateJobCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export interface CreateJobCommandOutput extends CreateJobResponse, __MetadataBea
3939
* const input = { // CreateJobRequest
4040
* Name: "STRING_VALUE", // required
4141
* JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
42+
* JobRunQueuingEnabled: true || false,
4243
* Description: "STRING_VALUE",
4344
* LogUri: "STRING_VALUE",
4445
* Role: "STRING_VALUE", // required

clients/client-glue/src/commands/GetJobCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface GetJobCommandOutput extends GetJobResponse, __MetadataBearer {}
4545
* // Job: { // Job
4646
* // Name: "STRING_VALUE",
4747
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
48+
* // JobRunQueuingEnabled: true || false,
4849
* // Description: "STRING_VALUE",
4950
* // LogUri: "STRING_VALUE",
5051
* // Role: "STRING_VALUE",

clients/client-glue/src/commands/GetJobRunCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
5050
* // TriggerName: "STRING_VALUE",
5151
* // JobName: "STRING_VALUE",
5252
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
53+
* // JobRunQueuingEnabled: true || false,
5354
* // StartedOn: new Date("TIMESTAMP"),
5455
* // LastModifiedOn: new Date("TIMESTAMP"),
5556
* // CompletedOn: new Date("TIMESTAMP"),
@@ -80,6 +81,7 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
8081
* // ExecutionClass: "FLEX" || "STANDARD",
8182
* // MaintenanceWindow: "STRING_VALUE",
8283
* // ProfileName: "STRING_VALUE",
84+
* // StateDetail: "STRING_VALUE",
8385
* // },
8486
* // };
8587
*

clients/client-glue/src/commands/GetJobRunsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export interface GetJobRunsCommandOutput extends GetJobRunsResponse, __MetadataB
5151
* // TriggerName: "STRING_VALUE",
5252
* // JobName: "STRING_VALUE",
5353
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
54+
* // JobRunQueuingEnabled: true || false,
5455
* // StartedOn: new Date("TIMESTAMP"),
5556
* // LastModifiedOn: new Date("TIMESTAMP"),
5657
* // CompletedOn: new Date("TIMESTAMP"),
@@ -81,6 +82,7 @@ export interface GetJobRunsCommandOutput extends GetJobRunsResponse, __MetadataB
8182
* // ExecutionClass: "FLEX" || "STANDARD",
8283
* // MaintenanceWindow: "STRING_VALUE",
8384
* // ProfileName: "STRING_VALUE",
85+
* // StateDetail: "STRING_VALUE",
8486
* // },
8587
* // ],
8688
* // NextToken: "STRING_VALUE",

clients/client-glue/src/commands/GetJobsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface GetJobsCommandOutput extends GetJobsResponse, __MetadataBearer
4747
* // { // Job
4848
* // Name: "STRING_VALUE",
4949
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
50+
* // JobRunQueuingEnabled: true || false,
5051
* // Description: "STRING_VALUE",
5152
* // LogUri: "STRING_VALUE",
5253
* // Role: "STRING_VALUE",

clients/client-glue/src/commands/GetWorkflowCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
127127
* // TriggerName: "STRING_VALUE",
128128
* // JobName: "STRING_VALUE",
129129
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
130+
* // JobRunQueuingEnabled: true || false,
130131
* // StartedOn: new Date("TIMESTAMP"),
131132
* // LastModifiedOn: new Date("TIMESTAMP"),
132133
* // CompletedOn: new Date("TIMESTAMP"),
@@ -157,6 +158,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
157158
* // ExecutionClass: "FLEX" || "STANDARD",
158159
* // MaintenanceWindow: "STRING_VALUE",
159160
* // ProfileName: "STRING_VALUE",
161+
* // StateDetail: "STRING_VALUE",
160162
* // },
161163
* // ],
162164
* // },
@@ -242,6 +244,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
242244
* // TriggerName: "STRING_VALUE",
243245
* // JobName: "STRING_VALUE",
244246
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
247+
* // JobRunQueuingEnabled: true || false,
245248
* // StartedOn: new Date("TIMESTAMP"),
246249
* // LastModifiedOn: new Date("TIMESTAMP"),
247250
* // CompletedOn: new Date("TIMESTAMP"),
@@ -268,6 +271,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
268271
* // ExecutionClass: "FLEX" || "STANDARD",
269272
* // MaintenanceWindow: "STRING_VALUE",
270273
* // ProfileName: "STRING_VALUE",
274+
* // StateDetail: "STRING_VALUE",
271275
* // },
272276
* // ],
273277
* // },

clients/client-glue/src/commands/GetWorkflowRunCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export interface GetWorkflowRunCommandOutput extends GetWorkflowRunResponse, __M
120120
* // TriggerName: "STRING_VALUE",
121121
* // JobName: "STRING_VALUE",
122122
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
123+
* // JobRunQueuingEnabled: true || false,
123124
* // StartedOn: new Date("TIMESTAMP"),
124125
* // LastModifiedOn: new Date("TIMESTAMP"),
125126
* // CompletedOn: new Date("TIMESTAMP"),
@@ -150,6 +151,7 @@ export interface GetWorkflowRunCommandOutput extends GetWorkflowRunResponse, __M
150151
* // ExecutionClass: "FLEX" || "STANDARD",
151152
* // MaintenanceWindow: "STRING_VALUE",
152153
* // ProfileName: "STRING_VALUE",
154+
* // StateDetail: "STRING_VALUE",
153155
* // },
154156
* // ],
155157
* // },

clients/client-glue/src/commands/GetWorkflowRunsCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export interface GetWorkflowRunsCommandOutput extends GetWorkflowRunsResponse, _
122122
* // TriggerName: "STRING_VALUE",
123123
* // JobName: "STRING_VALUE",
124124
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
125+
* // JobRunQueuingEnabled: true || false,
125126
* // StartedOn: new Date("TIMESTAMP"),
126127
* // LastModifiedOn: new Date("TIMESTAMP"),
127128
* // CompletedOn: new Date("TIMESTAMP"),
@@ -152,6 +153,7 @@ export interface GetWorkflowRunsCommandOutput extends GetWorkflowRunsResponse, _
152153
* // ExecutionClass: "FLEX" || "STANDARD",
153154
* // MaintenanceWindow: "STRING_VALUE",
154155
* // ProfileName: "STRING_VALUE",
156+
* // StateDetail: "STRING_VALUE",
155157
* // },
156158
* // ],
157159
* // },

clients/client-glue/src/commands/StartJobRunCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface StartJobRunCommandOutput extends StartJobRunResponse, __Metadat
3737
* const client = new GlueClient(config);
3838
* const input = { // StartJobRunRequest
3939
* JobName: "STRING_VALUE", // required
40+
* JobRunQueuingEnabled: true || false,
4041
* JobRunId: "STRING_VALUE",
4142
* Arguments: { // GenericMap
4243
* "<keys>": "STRING_VALUE",

clients/client-glue/src/commands/UpdateJobCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface UpdateJobCommandOutput extends UpdateJobResponse, __MetadataBea
4040
* JobName: "STRING_VALUE", // required
4141
* JobUpdate: { // JobUpdate
4242
* JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
43+
* JobRunQueuingEnabled: true || false,
4344
* Description: "STRING_VALUE",
4445
* LogUri: "STRING_VALUE",
4546
* Role: "STRING_VALUE",

clients/client-glue/src/models/models_0.ts

+14
Original file line numberDiff line numberDiff line change
@@ -8181,6 +8181,13 @@ export interface JobRun {
81818181
*/
81828182
JobMode?: JobMode;
81838183

8184+
/**
8185+
* <p>Specifies whether job run queuing is enabled for the job run.</p>
8186+
* <p>A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.</p>
8187+
* @public
8188+
*/
8189+
JobRunQueuingEnabled?: boolean;
8190+
81848191
/**
81858192
* <p>The date and time at which this job run was started.</p>
81868193
* @public
@@ -8387,6 +8394,13 @@ export interface JobRun {
83878394
* @public
83888395
*/
83898396
ProfileName?: string;
8397+
8398+
/**
8399+
* <p>This field holds details that pertain to the state of a job run. The field is nullable.</p>
8400+
* <p>For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.</p>
8401+
* @public
8402+
*/
8403+
StateDetail?: string;
83908404
}
83918405

83928406
/**

clients/client-glue/src/models/models_2.ts

+7
Original file line numberDiff line numberDiff line change
@@ -5881,6 +5881,13 @@ export interface StartJobRunRequest {
58815881
*/
58825882
JobName: string | undefined;
58835883

5884+
/**
5885+
* <p>Specifies whether job run queuing is enabled for the job run.</p>
5886+
* <p>A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.</p>
5887+
* @public
5888+
*/
5889+
JobRunQueuingEnabled?: boolean;
5890+
58845891
/**
58855892
* <p>The ID of a previous <code>JobRun</code> to retry.</p>
58865893
* @public

clients/client-glue/src/models/models_3.ts

+24
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,14 @@ export interface CreateJobRequest {
10571057
*/
10581058
JobMode?: JobMode;
10591059

1060+
/**
1061+
* <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
1062+
* <p>A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.</p>
1063+
* <p>If this field does not match the value set in the job run, then the value from the job run field will be used.</p>
1064+
* @public
1065+
*/
1066+
JobRunQueuingEnabled?: boolean;
1067+
10601068
/**
10611069
* <p>Description of the job being defined.</p>
10621070
* @public
@@ -1319,6 +1327,14 @@ export interface Job {
13191327
*/
13201328
JobMode?: JobMode;
13211329

1330+
/**
1331+
* <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
1332+
* <p>A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.</p>
1333+
* <p>If this field does not match the value set in the job run, then the value from the job run field will be used.</p>
1334+
* @public
1335+
*/
1336+
JobRunQueuingEnabled?: boolean;
1337+
13221338
/**
13231339
* <p>A description of the job.</p>
13241340
* @public
@@ -1570,6 +1586,14 @@ export interface JobUpdate {
15701586
*/
15711587
JobMode?: JobMode;
15721588

1589+
/**
1590+
* <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
1591+
* <p>A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.</p>
1592+
* <p>If this field does not match the value set in the job run, then the value from the job run field will be used.</p>
1593+
* @public
1594+
*/
1595+
JobRunQueuingEnabled?: boolean;
1596+
15731597
/**
15741598
* <p>Description of the job being defined.</p>
15751599
* @public

clients/client-glue/src/protocols/Aws_json1_1.ts

+6
Original file line numberDiff line numberDiff line change
@@ -9715,6 +9715,7 @@ const se_CreateJobRequest = (input: CreateJobRequest, context: __SerdeContext):
97159715
ExecutionProperty: _json,
97169716
GlueVersion: [],
97179717
JobMode: [],
9718+
JobRunQueuingEnabled: [],
97189719
LogUri: [],
97199720
MaintenanceWindow: [],
97209721
MaxCapacity: __serializeFloat,
@@ -10478,6 +10479,7 @@ const se_JobUpdate = (input: JobUpdate, context: __SerdeContext): any => {
1047810479
ExecutionProperty: _json,
1047910480
GlueVersion: [],
1048010481
JobMode: [],
10482+
JobRunQueuingEnabled: [],
1048110483
LogUri: [],
1048210484
MaintenanceWindow: [],
1048310485
MaxCapacity: __serializeFloat,
@@ -11075,6 +11077,7 @@ const se_StartJobRunRequest = (input: StartJobRunRequest, context: __SerdeContex
1107511077
ExecutionClass: [],
1107611078
JobName: [],
1107711079
JobRunId: [],
11080+
JobRunQueuingEnabled: [],
1107811081
MaxCapacity: __serializeFloat,
1107911082
NotificationProperty: _json,
1108011083
NumberOfWorkers: [],
@@ -13817,6 +13820,7 @@ const de_Job = (output: any, context: __SerdeContext): Job => {
1381713820
ExecutionProperty: _json,
1381813821
GlueVersion: __expectString,
1381913822
JobMode: __expectString,
13823+
JobRunQueuingEnabled: __expectBoolean,
1382013824
LastModifiedOn: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1382113825
LogUri: __expectString,
1382213826
MaintenanceWindow: __expectString,
@@ -13881,6 +13885,7 @@ const de_JobRun = (output: any, context: __SerdeContext): JobRun => {
1388113885
Id: __expectString,
1388213886
JobMode: __expectString,
1388313887
JobName: __expectString,
13888+
JobRunQueuingEnabled: __expectBoolean,
1388413889
JobRunState: __expectString,
1388513890
LastModifiedOn: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1388613891
LogGroupName: __expectString,
@@ -13893,6 +13898,7 @@ const de_JobRun = (output: any, context: __SerdeContext): JobRun => {
1389313898
ProfileName: __expectString,
1389413899
SecurityConfiguration: __expectString,
1389513900
StartedOn: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
13901+
StateDetail: __expectString,
1389613902
Timeout: __expectInt32,
1389713903
TriggerName: __expectString,
1389813904
WorkerType: __expectString,

0 commit comments

Comments
 (0)