@@ -74,6 +74,34 @@ defmodule AWS.EMRcontainers do
7474 )
7575 end
7676
77+ @ doc """
78+ Creates a job template.
79+
80+ Job template stores values of StartJobRun API request in a template and can be
81+ used to start a job run. Job template allows two use cases: avoid repeating
82+ recurring StartJobRun API request values, enforcing certain values in
83+ StartJobRun API request.
84+ """
85+ def create_job_template ( % Client { } = client , input , options \\ [ ] ) do
86+ url_path = "/jobtemplates"
87+ headers = [ ]
88+ query_params = [ ]
89+
90+ meta = metadata ( )
91+
92+ Request . request_rest (
93+ client ,
94+ meta ,
95+ :post ,
96+ url_path ,
97+ query_params ,
98+ headers ,
99+ input ,
100+ options ,
101+ nil
102+ )
103+ end
104+
77105 @ doc """
78106 Creates a managed endpoint.
79107
@@ -129,6 +157,34 @@ defmodule AWS.EMRcontainers do
129157 )
130158 end
131159
160+ @ doc """
161+ Deletes a job template.
162+
163+ Job template stores values of StartJobRun API request in a template and can be
164+ used to start a job run. Job template allows two use cases: avoid repeating
165+ recurring StartJobRun API request values, enforcing certain values in
166+ StartJobRun API request.
167+ """
168+ def delete_job_template ( % Client { } = client , id , input , options \\ [ ] ) do
169+ url_path = "/jobtemplates/#{ AWS.Util . encode_uri ( id ) } "
170+ headers = [ ]
171+ query_params = [ ]
172+
173+ meta = metadata ( )
174+
175+ Request . request_rest (
176+ client ,
177+ meta ,
178+ :delete ,
179+ url_path ,
180+ query_params ,
181+ headers ,
182+ input ,
183+ options ,
184+ nil
185+ )
186+ end
187+
132188 @ doc """
133189 Deletes a managed endpoint.
134190
@@ -204,6 +260,24 @@ defmodule AWS.EMRcontainers do
204260 Request . request_rest ( client , meta , :get , url_path , query_params , headers , nil , options , nil )
205261 end
206262
263+ @ doc """
264+ Displays detailed information about a specified job template.
265+
266+ Job template stores values of StartJobRun API request in a template and can be
267+ used to start a job run. Job template allows two use cases: avoid repeating
268+ recurring StartJobRun API request values, enforcing certain values in
269+ StartJobRun API request.
270+ """
271+ def describe_job_template ( % Client { } = client , id , options \\ [ ] ) do
272+ url_path = "/jobtemplates/#{ AWS.Util . encode_uri ( id ) } "
273+ headers = [ ]
274+ query_params = [ ]
275+
276+ meta = metadata ( )
277+
278+ Request . request_rest ( client , meta , :get , url_path , query_params , headers , nil , options , nil )
279+ end
280+
207281 @ doc """
208282 Displays detailed information about a managed endpoint.
209283
@@ -309,6 +383,59 @@ defmodule AWS.EMRcontainers do
309383 Request . request_rest ( client , meta , :get , url_path , query_params , headers , nil , options , nil )
310384 end
311385
386+ @ doc """
387+ Lists job templates based on a set of parameters.
388+
389+ Job template stores values of StartJobRun API request in a template and can be
390+ used to start a job run. Job template allows two use cases: avoid repeating
391+ recurring StartJobRun API request values, enforcing certain values in
392+ StartJobRun API request.
393+ """
394+ def list_job_templates (
395+ % Client { } = client ,
396+ created_after \\ nil ,
397+ created_before \\ nil ,
398+ max_results \\ nil ,
399+ next_token \\ nil ,
400+ options \\ [ ]
401+ ) do
402+ url_path = "/jobtemplates"
403+ headers = [ ]
404+ query_params = [ ]
405+
406+ query_params =
407+ if ! is_nil ( next_token ) do
408+ [ { "nextToken" , next_token } | query_params ]
409+ else
410+ query_params
411+ end
412+
413+ query_params =
414+ if ! is_nil ( max_results ) do
415+ [ { "maxResults" , max_results } | query_params ]
416+ else
417+ query_params
418+ end
419+
420+ query_params =
421+ if ! is_nil ( created_before ) do
422+ [ { "createdBefore" , created_before } | query_params ]
423+ else
424+ query_params
425+ end
426+
427+ query_params =
428+ if ! is_nil ( created_after ) do
429+ [ { "createdAfter" , created_after } | query_params ]
430+ else
431+ query_params
432+ end
433+
434+ meta = metadata ( )
435+
436+ Request . request_rest ( client , meta , :get , url_path , query_params , headers , nil , options , nil )
437+ end
438+
312439 @ doc """
313440 Lists managed endpoints based on a set of parameters.
314441
0 commit comments