Skip to content

Commit

Permalink
feat(client-glue): Add Maintenance window to CreateJob and UpdateJob …
Browse files Browse the repository at this point in the history
…APIs and JobRun response. Add a new Job Run State for EXPIRED.
  • Loading branch information
awstools committed May 21, 2024
1 parent 2df9c49 commit 72bc2a8
Show file tree
Hide file tree
Showing 20 changed files with 108 additions and 24 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 @@ -1118,6 +1118,7 @@ export interface BatchGetJobsCommandOutput extends BatchGetJobsResponse, __Metad
* // AuthStrategy: "PERSONAL_ACCESS_TOKEN" || "AWS_SECRETS_MANAGER",
* // AuthToken: "STRING_VALUE",
* // },
* // MaintenanceWindow: "STRING_VALUE",
* // },
* // ],
* // JobsNotFound: [ // JobNameList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface BatchGetTriggersCommandOutput extends BatchGetTriggersResponse,
* // { // Condition
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand Down
10 changes: 6 additions & 4 deletions clients/client-glue/src/commands/BatchGetWorkflowsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // { // Condition
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand All @@ -131,7 +131,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // Arguments: {
* // "<keys>": "STRING_VALUE",
* // },
Expand All @@ -156,6 +156,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // GlueVersion: "STRING_VALUE",
* // DPUSeconds: Number("double"),
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -220,7 +221,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // {
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand All @@ -243,7 +244,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // Arguments: "<GenericMap>",
* // ErrorMessage: "STRING_VALUE",
* // PredecessorRuns: [
Expand All @@ -264,6 +265,7 @@ export interface BatchGetWorkflowsCommandOutput extends BatchGetWorkflowsRespons
* // GlueVersion: "STRING_VALUE",
* // DPUSeconds: Number("double"),
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "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 @@ -1109,6 +1109,7 @@ export interface CreateJobCommandOutput extends CreateJobResponse, __MetadataBea
* AuthStrategy: "PERSONAL_ACCESS_TOKEN" || "AWS_SECRETS_MANAGER",
* AuthToken: "STRING_VALUE",
* },
* MaintenanceWindow: "STRING_VALUE",
* };
* const command = new CreateJobCommand(input);
* const response = await client.send(command);
Expand Down
2 changes: 1 addition & 1 deletion clients/client-glue/src/commands/CreateTriggerCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface CreateTriggerCommandOutput extends CreateTriggerResponse, __Met
* { // Condition
* LogicalOperator: "EQUALS",
* JobName: "STRING_VALUE",
* State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* CrawlerName: "STRING_VALUE",
* CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* },
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 @@ -1114,6 +1114,7 @@ export interface GetJobCommandOutput extends GetJobResponse, __MetadataBearer {}
* // AuthStrategy: "PERSONAL_ACCESS_TOKEN" || "AWS_SECRETS_MANAGER",
* // AuthToken: "STRING_VALUE",
* // },
* // MaintenanceWindow: "STRING_VALUE",
* // },
* // };
*
Expand Down
3 changes: 2 additions & 1 deletion clients/client-glue/src/commands/GetJobRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // Arguments: { // GenericMap
* // "<keys>": "STRING_VALUE",
* // },
Expand All @@ -76,6 +76,7 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
* // GlueVersion: "STRING_VALUE",
* // DPUSeconds: Number("double"),
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // },
* // };
*
Expand Down
3 changes: 2 additions & 1 deletion clients/client-glue/src/commands/GetJobRunsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface GetJobRunsCommandOutput extends GetJobRunsResponse, __MetadataB
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // Arguments: { // GenericMap
* // "<keys>": "STRING_VALUE",
* // },
Expand All @@ -77,6 +77,7 @@ export interface GetJobRunsCommandOutput extends GetJobRunsResponse, __MetadataB
* // GlueVersion: "STRING_VALUE",
* // DPUSeconds: Number("double"),
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "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 @@ -1116,6 +1116,7 @@ export interface GetJobsCommandOutput extends GetJobsResponse, __MetadataBearer
* // AuthStrategy: "PERSONAL_ACCESS_TOKEN" || "AWS_SECRETS_MANAGER",
* // AuthToken: "STRING_VALUE",
* // },
* // MaintenanceWindow: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-glue/src/commands/GetTriggerCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface GetTriggerCommandOutput extends GetTriggerResponse, __MetadataB
* // { // Condition
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand Down
2 changes: 1 addition & 1 deletion clients/client-glue/src/commands/GetTriggersCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface GetTriggersCommandOutput extends GetTriggersResponse, __Metadat
* // { // Condition
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand Down
10 changes: 6 additions & 4 deletions clients/client-glue/src/commands/GetWorkflowCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // { // Condition
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand All @@ -128,7 +128,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // Arguments: {
* // "<keys>": "STRING_VALUE",
* // },
Expand All @@ -153,6 +153,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // GlueVersion: "STRING_VALUE",
* // DPUSeconds: Number("double"),
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -217,7 +218,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // {
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand All @@ -240,7 +241,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // Arguments: "<GenericMap>",
* // ErrorMessage: "STRING_VALUE",
* // PredecessorRuns: [
Expand All @@ -261,6 +262,7 @@ export interface GetWorkflowCommandOutput extends GetWorkflowResponse, __Metadat
* // GlueVersion: "STRING_VALUE",
* // DPUSeconds: Number("double"),
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
5 changes: 3 additions & 2 deletions clients/client-glue/src/commands/GetWorkflowRunCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface GetWorkflowRunCommandOutput extends GetWorkflowRunResponse, __M
* // { // Condition
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand All @@ -121,7 +121,7 @@ export interface GetWorkflowRunCommandOutput extends GetWorkflowRunResponse, __M
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // Arguments: {
* // "<keys>": "STRING_VALUE",
* // },
Expand All @@ -146,6 +146,7 @@ export interface GetWorkflowRunCommandOutput extends GetWorkflowRunResponse, __M
* // GlueVersion: "STRING_VALUE",
* // DPUSeconds: Number("double"),
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
5 changes: 3 additions & 2 deletions clients/client-glue/src/commands/GetWorkflowRunsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface GetWorkflowRunsCommandOutput extends GetWorkflowRunsResponse, _
* // { // Condition
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand All @@ -123,7 +123,7 @@ export interface GetWorkflowRunsCommandOutput extends GetWorkflowRunsResponse, _
* // StartedOn: new Date("TIMESTAMP"),
* // LastModifiedOn: new Date("TIMESTAMP"),
* // CompletedOn: new Date("TIMESTAMP"),
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // JobRunState: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // Arguments: {
* // "<keys>": "STRING_VALUE",
* // },
Expand All @@ -148,6 +148,7 @@ export interface GetWorkflowRunsCommandOutput extends GetWorkflowRunsResponse, _
* // GlueVersion: "STRING_VALUE",
* // DPUSeconds: Number("double"),
* // ExecutionClass: "FLEX" || "STANDARD",
* // MaintenanceWindow: "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 @@ -1106,6 +1106,7 @@ export interface UpdateJobCommandOutput extends UpdateJobResponse, __MetadataBea
* AuthStrategy: "PERSONAL_ACCESS_TOKEN" || "AWS_SECRETS_MANAGER",
* AuthToken: "STRING_VALUE",
* },
* MaintenanceWindow: "STRING_VALUE",
* },
* };
* const command = new UpdateJobCommand(input);
Expand Down
4 changes: 2 additions & 2 deletions clients/client-glue/src/commands/UpdateTriggerCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface UpdateTriggerCommandOutput extends UpdateTriggerResponse, __Met
* { // Condition
* LogicalOperator: "EQUALS",
* JobName: "STRING_VALUE",
* State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* CrawlerName: "STRING_VALUE",
* CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* },
Expand Down Expand Up @@ -103,7 +103,7 @@ export interface UpdateTriggerCommandOutput extends UpdateTriggerResponse, __Met
* // { // Condition
* // LogicalOperator: "EQUALS",
* // JobName: "STRING_VALUE",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING",
* // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED" || "SUCCEEDED" || "FAILED" || "TIMEOUT" || "ERROR" || "WAITING" || "EXPIRED",
* // CrawlerName: "STRING_VALUE",
* // CrawlState: "RUNNING" || "CANCELLING" || "CANCELLED" || "SUCCEEDED" || "FAILED" || "ERROR",
* // },
Expand Down
Loading

0 comments on commit 72bc2a8

Please sign in to comment.