Skip to content

Commit 3863bcd

Browse files
author
AWS
committed
AWSDeadlineCloud Update: Add support for using the template from a previous job during job creation and listing parameter definitions for a job.
1 parent 78704cd commit 3863bcd

File tree

3 files changed

+111
-2
lines changed

3 files changed

+111
-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": "AWSDeadlineCloud",
4+
"contributor": "",
5+
"description": "Add support for using the template from a previous job during job creation and listing parameter definitions for a job."
6+
}

services/deadline/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
"limit_key": "maxResults",
4949
"result_key": "members"
5050
},
51+
"ListJobParameterDefinitions": {
52+
"input_token": "nextToken",
53+
"output_token": "nextToken",
54+
"limit_key": "maxResults",
55+
"result_key": "jobParameterDefinitions"
56+
},
5157
"ListJobs": {
5258
"input_token": "nextToken",
5359
"output_token": "nextToken",

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

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,25 @@
12181218
"documentation":"<p>Lists members on a job.</p>",
12191219
"endpoint":{"hostPrefix":"management."}
12201220
},
1221+
"ListJobParameterDefinitions":{
1222+
"name":"ListJobParameterDefinitions",
1223+
"http":{
1224+
"method":"GET",
1225+
"requestUri":"/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/parameter-definitions",
1226+
"responseCode":200
1227+
},
1228+
"input":{"shape":"ListJobParameterDefinitionsRequest"},
1229+
"output":{"shape":"ListJobParameterDefinitionsResponse"},
1230+
"errors":[
1231+
{"shape":"AccessDeniedException"},
1232+
{"shape":"InternalServerErrorException"},
1233+
{"shape":"ResourceNotFoundException"},
1234+
{"shape":"ThrottlingException"},
1235+
{"shape":"ValidationException"}
1236+
],
1237+
"documentation":"<p>Lists parameter definitions of a job.</p>",
1238+
"endpoint":{"hostPrefix":"management."}
1239+
},
12211240
"ListJobs":{
12221241
"name":"ListJobs",
12231242
"http":{
@@ -3203,8 +3222,6 @@
32033222
"required":[
32043223
"farmId",
32053224
"queueId",
3206-
"template",
3207-
"templateType",
32083225
"priority"
32093226
],
32103227
"members":{
@@ -3262,6 +3279,10 @@
32623279
"maxRetriesPerTask":{
32633280
"shape":"MaxRetriesPerTask",
32643281
"documentation":"<p>The maximum number of retries for each task.</p>"
3282+
},
3283+
"sourceJobId":{
3284+
"shape":"JobId",
3285+
"documentation":"<p>The job ID for the source job.</p>"
32653286
}
32663287
}
32673288
},
@@ -5211,6 +5232,10 @@
52115232
"description":{
52125233
"shape":"JobDescription",
52135234
"documentation":"<p>The description of the job.</p> <important> <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important>"
5235+
},
5236+
"sourceJobId":{
5237+
"shape":"JobId",
5238+
"documentation":"<p>The job ID for the source job.</p>"
52145239
}
52155240
}
52165241
},
@@ -6693,6 +6718,16 @@
66936718
"documentation":"<p>The details of job parameters.</p>",
66946719
"union":true
66956720
},
6721+
"JobParameterDefinition":{
6722+
"type":"structure",
6723+
"members":{
6724+
},
6725+
"document":true
6726+
},
6727+
"JobParameterDefinitions":{
6728+
"type":"list",
6729+
"member":{"shape":"JobParameterDefinition"}
6730+
},
66966731
"JobParameters":{
66976732
"type":"map",
66986733
"key":{"shape":"String"},
@@ -6794,6 +6829,10 @@
67946829
"jobParameters":{
67956830
"shape":"JobParameters",
67966831
"documentation":"<p>The job parameters.</p>"
6832+
},
6833+
"sourceJobId":{
6834+
"shape":"JobId",
6835+
"documentation":"<p>The job ID for the source job.</p>"
67976836
}
67986837
},
67996838
"documentation":"<p>The details of a job search.</p>"
@@ -6877,6 +6916,10 @@
68776916
"maxRetriesPerTask":{
68786917
"shape":"MaxRetriesPerTask",
68796918
"documentation":"<p>The maximum number of retries for a job.</p>"
6919+
},
6920+
"sourceJobId":{
6921+
"shape":"JobId",
6922+
"documentation":"<p>The job ID for the source job.</p>"
68806923
}
68816924
},
68826925
"documentation":"<p>A summary of job details.</p>"
@@ -7260,6 +7303,60 @@
72607303
}
72617304
}
72627305
},
7306+
"ListJobParameterDefinitionsRequest":{
7307+
"type":"structure",
7308+
"required":[
7309+
"farmId",
7310+
"jobId",
7311+
"queueId"
7312+
],
7313+
"members":{
7314+
"farmId":{
7315+
"shape":"FarmId",
7316+
"documentation":"<p>The farm ID of the job to list.</p>",
7317+
"location":"uri",
7318+
"locationName":"farmId"
7319+
},
7320+
"jobId":{
7321+
"shape":"JobId",
7322+
"documentation":"<p>The job ID to include on the list.</p>",
7323+
"location":"uri",
7324+
"locationName":"jobId"
7325+
},
7326+
"queueId":{
7327+
"shape":"QueueId",
7328+
"documentation":"<p>The queue ID to include on the list.</p>",
7329+
"location":"uri",
7330+
"locationName":"queueId"
7331+
},
7332+
"nextToken":{
7333+
"shape":"String",
7334+
"documentation":"<p>The token for the next set of results, or <code>null</code> to start from the beginning.</p>",
7335+
"location":"querystring",
7336+
"locationName":"nextToken"
7337+
},
7338+
"maxResults":{
7339+
"shape":"MaxResults",
7340+
"documentation":"<p>The maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p>",
7341+
"location":"querystring",
7342+
"locationName":"maxResults"
7343+
}
7344+
}
7345+
},
7346+
"ListJobParameterDefinitionsResponse":{
7347+
"type":"structure",
7348+
"required":["jobParameterDefinitions"],
7349+
"members":{
7350+
"jobParameterDefinitions":{
7351+
"shape":"JobParameterDefinitions",
7352+
"documentation":"<p>Lists parameter definitions of a job.</p>"
7353+
},
7354+
"nextToken":{
7355+
"shape":"String",
7356+
"documentation":"<p>If Deadline Cloud returns <code>nextToken</code>, then there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then <code>nextToken</code> is set to <code>null</code>. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 <code>ValidationException</code> error.</p>"
7357+
}
7358+
}
7359+
},
72637360
"ListJobsRequest":{
72647361
"type":"structure",
72657362
"required":[

0 commit comments

Comments
 (0)