Skip to content

Commit 8c462a0

Browse files
author
AWS
committed
EMR Serverless Update: AWS EMR Serverless: Adds a new option in the CancelJobRun API in EMR 7.9.0+, to cancel a job with grace period. This feature is enabled by default with a 120-second grace period for streaming jobs and is not enabled by default for batch jobs.
1 parent 48a2c84 commit 8c462a0

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
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": "EMR Serverless",
4+
"contributor": "",
5+
"description": "AWS EMR Serverless: Adds a new option in the CancelJobRun API in EMR 7.9.0+, to cancel a job with grace period. This feature is enabled by default with a 120-second grace period for streaming jobs and is not enabled by default for batch jobs."
6+
}

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,12 @@
544544
"documentation":"<p>The ID of the job run to cancel.</p>",
545545
"location":"uri",
546546
"locationName":"jobRunId"
547+
},
548+
"shutdownGracePeriodInSeconds":{
549+
"shape":"ShutdownGracePeriodInSeconds",
550+
"documentation":"<p>The duration (in seconds) to wait before forcefully terminating the job after cancellation is requested.</p>",
551+
"location":"querystring",
552+
"locationName":"shutdownGracePeriodInSeconds"
547553
}
548554
}
549555
},
@@ -817,14 +823,15 @@
817823
},
818824
"EntryPointArgument":{
819825
"type":"string",
820-
"max":10280,
821826
"min":1,
822827
"pattern":".*\\S.*",
823828
"sensitive":true
824829
},
825830
"EntryPointArguments":{
826831
"type":"list",
827-
"member":{"shape":"EntryPointArgument"}
832+
"member":{"shape":"EntryPointArgument"},
833+
"max":1024,
834+
"min":0
828835
},
829836
"EntryPointPath":{
830837
"type":"string",
@@ -1891,6 +1898,10 @@
18911898
},
18921899
"exception":true
18931900
},
1901+
"ShutdownGracePeriodInSeconds":{
1902+
"type":"integer",
1903+
"box":true
1904+
},
18941905
"SparkSubmit":{
18951906
"type":"structure",
18961907
"required":["entryPoint"],

0 commit comments

Comments
 (0)