Skip to content

Commit e23f449

Browse files
author
AWS
committed
AWS Glue Update: Add Maintenance window to CreateJob and UpdateJob APIs and JobRun response. Add a new Job Run State for EXPIRED.
1 parent ff83450 commit e23f449

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Glue",
4+
"contributor": "",
5+
"description": "Add Maintenance window to CreateJob and UpdateJob APIs and JobRun response. Add a new Job Run State for EXPIRED."
6+
}

services/glue/src/main/resources/codegen-resources/service-2.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"endpointPrefix":"glue",
66
"jsonVersion":"1.1",
77
"protocol":"json",
8+
"protocols":["json"],
89
"serviceFullName":"AWS Glue",
910
"serviceId":"Glue",
1011
"signatureVersion":"v4",
@@ -7446,6 +7447,10 @@
74467447
"SourceControlDetails":{
74477448
"shape":"SourceControlDetails",
74487449
"documentation":"<p>The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.</p>"
7450+
},
7451+
"MaintenanceWindow":{
7452+
"shape":"MaintenanceWindow",
7453+
"documentation":"<p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p> <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>"
74497454
}
74507455
}
74517456
},
@@ -14070,6 +14075,10 @@
1407014075
"SourceControlDetails":{
1407114076
"shape":"SourceControlDetails",
1407214077
"documentation":"<p>The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.</p>"
14078+
},
14079+
"MaintenanceWindow":{
14080+
"shape":"MaintenanceWindow",
14081+
"documentation":"<p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p> <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>"
1407314082
}
1407414083
},
1407514084
"documentation":"<p>Specifies a job definition.</p>"
@@ -14233,7 +14242,7 @@
1423314242
},
1423414243
"Timeout":{
1423514244
"shape":"Timeout",
14236-
"documentation":"<p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job.</p> <p>Streaming jobs do not have a timeout. The default for non-streaming jobs is 2,880 minutes (48 hours).</p>"
14245+
"documentation":"<p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job.</p> <p>The maximum value for timeout for batch jobs is 7 days or 10080 minutes. The default is 2880 minutes (48 hours) for batch jobs.</p> <p>Any existing Glue jobs that have a greater timeout value are defaulted to 7 days. For instance you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p> <p>Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.</p>"
1423714246
},
1423814247
"MaxCapacity":{
1423914248
"shape":"NullableDouble",
@@ -14265,11 +14274,15 @@
1426514274
},
1426614275
"DPUSeconds":{
1426714276
"shape":"NullableDouble",
14268-
"documentation":"<p>This field populates only for Auto Scaling job runs, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for <code>G.1X</code>, 2 for <code>G.2X</code>, or 0.25 for <code>G.025X</code> workers). This value may be different than the <code>executionEngineRuntime</code> * <code>MaxCapacity</code> as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the <code>MaxCapacity</code>. Therefore, it is possible that the value of <code>DPUSeconds</code> is less than <code>executionEngineRuntime</code> * <code>MaxCapacity</code>.</p>"
14277+
"documentation":"<p>This field can be set for either job runs with execution class <code>FLEX</code> or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for <code>G.1X</code>, 2 for <code>G.2X</code>, or 0.25 for <code>G.025X</code> workers). This value may be different than the <code>executionEngineRuntime</code> * <code>MaxCapacity</code> as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the <code>MaxCapacity</code>. Therefore, it is possible that the value of <code>DPUSeconds</code> is less than <code>executionEngineRuntime</code> * <code>MaxCapacity</code>.</p>"
1426914278
},
1427014279
"ExecutionClass":{
1427114280
"shape":"ExecutionClass",
1427214281
"documentation":"<p>Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.</p> <p>The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary. </p> <p>Only jobs with Glue version 3.0 and above and command type <code>glueetl</code> will be allowed to set <code>ExecutionClass</code> to <code>FLEX</code>. The flexible execution class is available for Spark jobs.</p>"
14282+
},
14283+
"MaintenanceWindow":{
14284+
"shape":"MaintenanceWindow",
14285+
"documentation":"<p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p> <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>"
1427314286
}
1427414287
},
1427514288
"documentation":"<p>Contains information about a job run.</p>"
@@ -14289,7 +14302,8 @@
1428914302
"FAILED",
1429014303
"TIMEOUT",
1429114304
"ERROR",
14292-
"WAITING"
14305+
"WAITING",
14306+
"EXPIRED"
1429314307
]
1429414308
},
1429514309
"JobUpdate":{
@@ -14376,6 +14390,10 @@
1437614390
"SourceControlDetails":{
1437714391
"shape":"SourceControlDetails",
1437814392
"documentation":"<p>The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.</p>"
14393+
},
14394+
"MaintenanceWindow":{
14395+
"shape":"MaintenanceWindow",
14396+
"documentation":"<p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p> <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>"
1437914397
}
1438014398
},
1438114399
"documentation":"<p>Specifies information used to update an existing job definition. The previous job definition is completely overwritten by this information.</p>"
@@ -15650,6 +15668,10 @@
1565015668
"SSE-KMS"
1565115669
]
1565215670
},
15671+
"MaintenanceWindow":{
15672+
"type":"string",
15673+
"pattern":"^(Sun|Mon|Tue|Wed|Thu|Fri|Sat):([01]?[0-9]|2[0-3])$"
15674+
},
1565315675
"ManyInputs":{
1565415676
"type":"list",
1565515677
"member":{"shape":"NodeId"},

0 commit comments

Comments
 (0)