Skip to content

Commit

Permalink
feat(client-glue): Add optional field JobRunQueuingEnabled to CreateJ…
Browse files Browse the repository at this point in the history
…ob and UpdateJob APIs.
  • Loading branch information
awstools committed Aug 21, 2024
1 parent 17db5f7 commit b3bbf57
Show file tree
Hide file tree
Showing 17 changed files with 118 additions and 0 deletions.
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/BatchGetJobsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface BatchGetJobsCommandOutput extends BatchGetJobsResponse, __Metad
* // { // Job
* // Name: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // Description: "STRING_VALUE",
* // LogUri: "STRING_VALUE",
* // Role: "STRING_VALUE",
Expand Down
4 changes: 4 additions & 0 deletions clients/client-glue/src/commands/BatchGetWorkflowsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -160,6 +161,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // ProfileName: "STRING_VALUE",
* // StateDetail: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -245,6 +247,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand All @@ -271,6 +274,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // ProfileName: "STRING_VALUE",
* // StateDetail: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/CreateJobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface CreateJobCommandOutput extends CreateJobResponse, __MetadataBea
* const input = { // CreateJobRequest
* Name: "STRING_VALUE", // required
* JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* JobRunQueuingEnabled: true || false,
* Description: "STRING_VALUE",
* LogUri: "STRING_VALUE",
* Role: "STRING_VALUE", // required
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetJobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface GetJobCommandOutput extends GetJobResponse, __MetadataBearer {}
* // Job: { // Job
* // Name: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // Description: "STRING_VALUE",
* // LogUri: "STRING_VALUE",
* // Role: "STRING_VALUE",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-glue/src/commands/GetJobRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -80,6 +81,7 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // ProfileName: "STRING_VALUE",
* // StateDetail: "STRING_VALUE",
* // },
* // };
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-glue/src/commands/GetJobRunsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export interface GetJobRunsCommandOutput extends GetJobRunsResponse, __MetadataB
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -81,6 +82,7 @@ export interface GetJobRunsCommandOutput extends GetJobRunsResponse, __MetadataB
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // ProfileName: "STRING_VALUE",
* // StateDetail: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetJobsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface GetJobsCommandOutput extends GetJobsResponse, __MetadataBearer
* // { // Job
* // Name: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // Description: "STRING_VALUE",
* // LogUri: "STRING_VALUE",
* // Role: "STRING_VALUE",
Expand Down
4 changes: 4 additions & 0 deletions clients/client-glue/src/commands/GetWorkflowCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -157,6 +158,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // ProfileName: "STRING_VALUE",
* // StateDetail: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -242,6 +244,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand All @@ -268,6 +271,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // ProfileName: "STRING_VALUE",
* // StateDetail: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
2 changes: 2 additions & 0 deletions clients/client-glue/src/commands/GetWorkflowRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export interface GetWorkflowRunCommandOutput extends GetWorkflowRunResponse, __M
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -150,6 +151,7 @@ export interface GetWorkflowRunCommandOutput extends GetWorkflowRunResponse, __M
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // ProfileName: "STRING_VALUE",
* // StateDetail: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
2 changes: 2 additions & 0 deletions clients/client-glue/src/commands/GetWorkflowRunsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export interface GetWorkflowRunsCommandOutput extends GetWorkflowRunsResponse, _
* // TriggerName: "STRING_VALUE",
* // JobName: "STRING_VALUE",
* // JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* // JobRunQueuingEnabled: true || false,
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
Expand Down Expand Up @@ -152,6 +153,7 @@ export interface GetWorkflowRunsCommandOutput extends GetWorkflowRunsResponse, _
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // ProfileName: "STRING_VALUE",
* // StateDetail: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/StartJobRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface StartJobRunCommandOutput extends StartJobRunResponse, __Metadat
* const client = new GlueClient(config);
* const input = { // StartJobRunRequest
* JobName: "STRING_VALUE", // required
* JobRunQueuingEnabled: true || false,
* JobRunId: "STRING_VALUE",
* Arguments: { // GenericMap
* "<keys>": "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/UpdateJobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface UpdateJobCommandOutput extends UpdateJobResponse, __MetadataBea
* JobName: "STRING_VALUE", // required
* JobUpdate: { // JobUpdate
* JobMode: "SCRIPT" || "VISUAL" || "NOTEBOOK",
* JobRunQueuingEnabled: true || false,
* Description: "STRING_VALUE",
* LogUri: "STRING_VALUE",
* Role: "STRING_VALUE",
Expand Down
14 changes: 14 additions & 0 deletions clients/client-glue/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8181,6 +8181,13 @@ export interface JobRun {
*/
JobMode?: JobMode;

/**
* <p>Specifies whether job run queuing is enabled for the job run.</p>
* <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>
* @public
*/
JobRunQueuingEnabled?: boolean;

/**
* <p>The date and time at which this job run was started.</p>
* @public
Expand Down Expand Up @@ -8387,6 +8394,13 @@ export interface JobRun {
* @public
*/
ProfileName?: string;

/**
* <p>This field holds details that pertain to the state of a job run. The field is nullable.</p>
* <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>
* @public
*/
StateDetail?: string;
}

/**
Expand Down
7 changes: 7 additions & 0 deletions clients/client-glue/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5881,6 +5881,13 @@ export interface StartJobRunRequest {
*/
JobName: string | undefined;

/**
* <p>Specifies whether job run queuing is enabled for the job run.</p>
* <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>
* @public
*/
JobRunQueuingEnabled?: boolean;

/**
* <p>The ID of a previous <code>JobRun</code> to retry.</p>
* @public
Expand Down
24 changes: 24 additions & 0 deletions clients/client-glue/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,14 @@ export interface CreateJobRequest {
*/
JobMode?: JobMode;

/**
* <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
* <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>
* <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>
* @public
*/
JobRunQueuingEnabled?: boolean;

/**
* <p>Description of the job being defined.</p>
* @public
Expand Down Expand Up @@ -1319,6 +1327,14 @@ export interface Job {
*/
JobMode?: JobMode;

/**
* <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
* <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>
* <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>
* @public
*/
JobRunQueuingEnabled?: boolean;

/**
* <p>A description of the job.</p>
* @public
Expand Down Expand Up @@ -1570,6 +1586,14 @@ export interface JobUpdate {
*/
JobMode?: JobMode;

/**
* <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
* <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>
* <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>
* @public
*/
JobRunQueuingEnabled?: boolean;

/**
* <p>Description of the job being defined.</p>
* @public
Expand Down
6 changes: 6 additions & 0 deletions clients/client-glue/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9715,6 +9715,7 @@ const se_CreateJobRequest = (input: CreateJobRequest, context: __SerdeContext):
ExecutionProperty: _json,
GlueVersion: [],
JobMode: [],
JobRunQueuingEnabled: [],
LogUri: [],
MaintenanceWindow: [],
MaxCapacity: __serializeFloat,
Expand Down Expand Up @@ -10478,6 +10479,7 @@ const se_JobUpdate = (input: JobUpdate, context: __SerdeContext): any => {
ExecutionProperty: _json,
GlueVersion: [],
JobMode: [],
JobRunQueuingEnabled: [],
LogUri: [],
MaintenanceWindow: [],
MaxCapacity: __serializeFloat,
Expand Down Expand Up @@ -11075,6 +11077,7 @@ const se_StartJobRunRequest = (input: StartJobRunRequest, context: __SerdeContex
ExecutionClass: [],
JobName: [],
JobRunId: [],
JobRunQueuingEnabled: [],
MaxCapacity: __serializeFloat,
NotificationProperty: _json,
NumberOfWorkers: [],
Expand Down Expand Up @@ -13817,6 +13820,7 @@ const de_Job = (output: any, context: __SerdeContext): Job => {
ExecutionProperty: _json,
GlueVersion: __expectString,
JobMode: __expectString,
JobRunQueuingEnabled: __expectBoolean,
LastModifiedOn: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
LogUri: __expectString,
MaintenanceWindow: __expectString,
Expand Down Expand Up @@ -13881,6 +13885,7 @@ const de_JobRun = (output: any, context: __SerdeContext): JobRun => {
Id: __expectString,
JobMode: __expectString,
JobName: __expectString,
JobRunQueuingEnabled: __expectBoolean,
JobRunState: __expectString,
LastModifiedOn: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
LogGroupName: __expectString,
Expand All @@ -13893,6 +13898,7 @@ const de_JobRun = (output: any, context: __SerdeContext): JobRun => {
ProfileName: __expectString,
SecurityConfiguration: __expectString,
StartedOn: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
StateDetail: __expectString,
Timeout: __expectInt32,
TriggerName: __expectString,
WorkerType: __expectString,
Expand Down
Loading

0 comments on commit b3bbf57

Please sign in to comment.