@aws-sdk/client-batch 3.40.0 → 3.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +2 -2
  3. package/dist-cjs/Batch.js +75 -0
  4. package/dist-cjs/commands/CreateSchedulingPolicyCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteSchedulingPolicyCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeSchedulingPoliciesCommand.js +36 -0
  7. package/dist-cjs/commands/ListSchedulingPoliciesCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateSchedulingPolicyCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/endpoints.js +25 -0
  11. package/dist-cjs/models/models_0.js +87 -3
  12. package/dist-cjs/pagination/ListSchedulingPoliciesPaginator.js +35 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +509 -1
  15. package/dist-es/Batch.js +75 -0
  16. package/dist-es/commands/CreateSchedulingPolicyCommand.js +39 -0
  17. package/dist-es/commands/DeleteSchedulingPolicyCommand.js +39 -0
  18. package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +39 -0
  19. package/dist-es/commands/ListSchedulingPoliciesCommand.js +39 -0
  20. package/dist-es/commands/UpdateSchedulingPolicyCommand.js +39 -0
  21. package/dist-es/commands/index.js +5 -0
  22. package/dist-es/endpoints.js +25 -0
  23. package/dist-es/models/models_0.js +56 -0
  24. package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +74 -0
  25. package/dist-es/pagination/index.js +1 -0
  26. package/dist-es/protocols/Aws_restJson1.js +584 -13
  27. package/dist-types/Batch.d.ts +50 -12
  28. package/dist-types/BatchClient.d.ts +9 -4
  29. package/dist-types/commands/CancelJobCommand.d.ts +1 -1
  30. package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +5 -6
  31. package/dist-types/commands/CreateJobQueueCommand.d.ts +1 -1
  32. package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +35 -0
  33. package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +1 -1
  34. package/dist-types/commands/DeleteJobQueueCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +36 -0
  36. package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeJobQueuesCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeJobsCommand.d.ts +1 -1
  41. package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +35 -0
  42. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  43. package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +35 -0
  44. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
  45. package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +1 -1
  46. package/dist-types/commands/SubmitJobCommand.d.ts +5 -2
  47. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  48. package/dist-types/commands/TerminateJobCommand.d.ts +1 -1
  49. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  50. package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateJobQueueCommand.d.ts +1 -1
  52. package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +35 -0
  53. package/dist-types/commands/index.d.ts +5 -0
  54. package/dist-types/models/models_0.d.ts +455 -114
  55. package/dist-types/pagination/ListSchedulingPoliciesPaginator.d.ts +4 -0
  56. package/dist-types/pagination/index.d.ts +1 -0
  57. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  58. package/dist-types/ts3.4/Batch.d.ts +25 -0
  59. package/dist-types/ts3.4/BatchClient.d.ts +7 -2
  60. package/dist-types/ts3.4/commands/CreateSchedulingPolicyCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/DeleteSchedulingPolicyCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/DescribeSchedulingPoliciesCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/ListSchedulingPoliciesCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/UpdateSchedulingPolicyCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  66. package/dist-types/ts3.4/models/models_0.d.ts +164 -0
  67. package/dist-types/ts3.4/pagination/ListSchedulingPoliciesPaginator.d.ts +4 -0
  68. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  69. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  70. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat32 as __limitedParseFloat32, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1CancelJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
6
  return __generator(this, function (_c) {
@@ -36,12 +36,13 @@ export var serializeAws_restJson1CreateComputeEnvironmentCommand = function (inp
36
36
  "content-type": "application/json",
37
37
  };
38
38
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/createcomputeenvironment";
39
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentName !== undefined &&
39
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentName !== undefined &&
40
40
  input.computeEnvironmentName !== null && { computeEnvironmentName: input.computeEnvironmentName })), (input.computeResources !== undefined &&
41
41
  input.computeResources !== null && {
42
42
  computeResources: serializeAws_restJson1ComputeResource(input.computeResources, context),
43
43
  })), (input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole })), (input.state !== undefined && input.state !== null && { state: input.state })), (input.tags !== undefined &&
44
- input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
44
+ input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.unmanagedvCpus !== undefined &&
45
+ input.unmanagedvCpus !== null && { unmanagedvCpus: input.unmanagedvCpus })));
45
46
  return [2, new __HttpRequest({
46
47
  protocol: protocol,
47
48
  hostname: hostname,
@@ -65,10 +66,39 @@ export var serializeAws_restJson1CreateJobQueueCommand = function (input, contex
65
66
  "content-type": "application/json",
66
67
  };
67
68
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/createjobqueue";
68
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentOrder !== undefined &&
69
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentOrder !== undefined &&
69
70
  input.computeEnvironmentOrder !== null && {
70
71
  computeEnvironmentOrder: serializeAws_restJson1ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
71
- })), (input.jobQueueName !== undefined && input.jobQueueName !== null && { jobQueueName: input.jobQueueName })), (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.state !== undefined && input.state !== null && { state: input.state })), (input.tags !== undefined &&
72
+ })), (input.jobQueueName !== undefined && input.jobQueueName !== null && { jobQueueName: input.jobQueueName })), (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.schedulingPolicyArn !== undefined &&
73
+ input.schedulingPolicyArn !== null && { schedulingPolicyArn: input.schedulingPolicyArn })), (input.state !== undefined && input.state !== null && { state: input.state })), (input.tags !== undefined &&
74
+ input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
75
+ return [2, new __HttpRequest({
76
+ protocol: protocol,
77
+ hostname: hostname,
78
+ port: port,
79
+ method: "POST",
80
+ headers: headers,
81
+ path: resolvedPath,
82
+ body: body,
83
+ })];
84
+ }
85
+ });
86
+ }); };
87
+ export var serializeAws_restJson1CreateSchedulingPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
88
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
89
+ return __generator(this, function (_c) {
90
+ switch (_c.label) {
91
+ case 0: return [4, context.endpoint()];
92
+ case 1:
93
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
94
+ headers = {
95
+ "content-type": "application/json",
96
+ };
97
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/createschedulingpolicy";
98
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.fairsharePolicy !== undefined &&
99
+ input.fairsharePolicy !== null && {
100
+ fairsharePolicy: serializeAws_restJson1FairsharePolicy(input.fairsharePolicy, context),
101
+ })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined &&
72
102
  input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
73
103
  return [2, new __HttpRequest({
74
104
  protocol: protocol,
@@ -131,6 +161,30 @@ export var serializeAws_restJson1DeleteJobQueueCommand = function (input, contex
131
161
  }
132
162
  });
133
163
  }); };
164
+ export var serializeAws_restJson1DeleteSchedulingPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
165
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
166
+ return __generator(this, function (_c) {
167
+ switch (_c.label) {
168
+ case 0: return [4, context.endpoint()];
169
+ case 1:
170
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
171
+ headers = {
172
+ "content-type": "application/json",
173
+ };
174
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/deleteschedulingpolicy";
175
+ body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
176
+ return [2, new __HttpRequest({
177
+ protocol: protocol,
178
+ hostname: hostname,
179
+ port: port,
180
+ method: "POST",
181
+ headers: headers,
182
+ path: resolvedPath,
183
+ body: body,
184
+ })];
185
+ }
186
+ });
187
+ }); };
134
188
  export var serializeAws_restJson1DeregisterJobDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
135
189
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
136
190
  return __generator(this, function (_c) {
@@ -260,6 +314,31 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
260
314
  }
261
315
  });
262
316
  }); };
317
+ export var serializeAws_restJson1DescribeSchedulingPoliciesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
318
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
319
+ return __generator(this, function (_c) {
320
+ switch (_c.label) {
321
+ case 0: return [4, context.endpoint()];
322
+ case 1:
323
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
324
+ headers = {
325
+ "content-type": "application/json",
326
+ };
327
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/describeschedulingpolicies";
328
+ body = JSON.stringify(__assign({}, (input.arns !== undefined &&
329
+ input.arns !== null && { arns: serializeAws_restJson1StringList(input.arns, context) })));
330
+ return [2, new __HttpRequest({
331
+ protocol: protocol,
332
+ hostname: hostname,
333
+ port: port,
334
+ method: "POST",
335
+ headers: headers,
336
+ path: resolvedPath,
337
+ body: body,
338
+ })];
339
+ }
340
+ });
341
+ }); };
263
342
  export var serializeAws_restJson1ListJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
264
343
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
265
344
  return __generator(this, function (_c) {
@@ -286,6 +365,30 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
286
365
  }
287
366
  });
288
367
  }); };
368
+ export var serializeAws_restJson1ListSchedulingPoliciesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
369
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
370
+ return __generator(this, function (_c) {
371
+ switch (_c.label) {
372
+ case 0: return [4, context.endpoint()];
373
+ case 1:
374
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
375
+ headers = {
376
+ "content-type": "application/json",
377
+ };
378
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/listschedulingpolicies";
379
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
380
+ return [2, new __HttpRequest({
381
+ protocol: protocol,
382
+ hostname: hostname,
383
+ port: port,
384
+ method: "POST",
385
+ headers: headers,
386
+ path: resolvedPath,
387
+ body: body,
388
+ })];
389
+ }
390
+ });
391
+ }); };
289
392
  export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
290
393
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
291
394
  return __generator(this, function (_c) {
@@ -328,7 +431,7 @@ export var serializeAws_restJson1RegisterJobDefinitionCommand = function (input,
328
431
  "content-type": "application/json",
329
432
  };
330
433
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registerjobdefinition";
331
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerProperties !== undefined &&
434
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerProperties !== undefined &&
332
435
  input.containerProperties !== null && {
333
436
  containerProperties: serializeAws_restJson1ContainerProperties(input.containerProperties, context),
334
437
  })), (input.jobDefinitionName !== undefined &&
@@ -342,7 +445,8 @@ export var serializeAws_restJson1RegisterJobDefinitionCommand = function (input,
342
445
  })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.retryStrategy !== undefined &&
343
446
  input.retryStrategy !== null && {
344
447
  retryStrategy: serializeAws_restJson1RetryStrategy(input.retryStrategy, context),
345
- })), (input.tags !== undefined &&
448
+ })), (input.schedulingPriority !== undefined &&
449
+ input.schedulingPriority !== null && { schedulingPriority: input.schedulingPriority })), (input.tags !== undefined &&
346
450
  input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.timeout !== undefined &&
347
451
  input.timeout !== null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
348
452
  return [2, new __HttpRequest({
@@ -368,7 +472,7 @@ export var serializeAws_restJson1SubmitJobCommand = function (input, context) {
368
472
  "content-type": "application/json",
369
473
  };
370
474
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/submitjob";
371
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arrayProperties !== undefined &&
475
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arrayProperties !== undefined &&
372
476
  input.arrayProperties !== null && {
373
477
  arrayProperties: serializeAws_restJson1ArrayProperties(input.arrayProperties, context),
374
478
  })), (input.containerOverrides !== undefined &&
@@ -382,7 +486,9 @@ export var serializeAws_restJson1SubmitJobCommand = function (input, context) {
382
486
  input.parameters !== null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.retryStrategy !== undefined &&
383
487
  input.retryStrategy !== null && {
384
488
  retryStrategy: serializeAws_restJson1RetryStrategy(input.retryStrategy, context),
385
- })), (input.tags !== undefined &&
489
+ })), (input.schedulingPriorityOverride !== undefined &&
490
+ input.schedulingPriorityOverride !== null && { schedulingPriorityOverride: input.schedulingPriorityOverride })), (input.shareIdentifier !== undefined &&
491
+ input.shareIdentifier !== null && { shareIdentifier: input.shareIdentifier })), (input.tags !== undefined &&
386
492
  input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.timeout !== undefined &&
387
493
  input.timeout !== null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) })));
388
494
  return [2, new __HttpRequest({
@@ -500,11 +606,12 @@ export var serializeAws_restJson1UpdateComputeEnvironmentCommand = function (inp
500
606
  "content-type": "application/json",
501
607
  };
502
608
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/updatecomputeenvironment";
503
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.computeEnvironment !== undefined &&
609
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironment !== undefined &&
504
610
  input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment })), (input.computeResources !== undefined &&
505
611
  input.computeResources !== null && {
506
612
  computeResources: serializeAws_restJson1ComputeResourceUpdate(input.computeResources, context),
507
- })), (input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole })), (input.state !== undefined && input.state !== null && { state: input.state })));
613
+ })), (input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole })), (input.state !== undefined && input.state !== null && { state: input.state })), (input.unmanagedvCpus !== undefined &&
614
+ input.unmanagedvCpus !== null && { unmanagedvCpus: input.unmanagedvCpus })));
508
615
  return [2, new __HttpRequest({
509
616
  protocol: protocol,
510
617
  hostname: hostname,
@@ -528,10 +635,38 @@ export var serializeAws_restJson1UpdateJobQueueCommand = function (input, contex
528
635
  "content-type": "application/json",
529
636
  };
530
637
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/updatejobqueue";
531
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentOrder !== undefined &&
638
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentOrder !== undefined &&
532
639
  input.computeEnvironmentOrder !== null && {
533
640
  computeEnvironmentOrder: serializeAws_restJson1ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
534
- })), (input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue })), (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.state !== undefined && input.state !== null && { state: input.state })));
641
+ })), (input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue })), (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.schedulingPolicyArn !== undefined &&
642
+ input.schedulingPolicyArn !== null && { schedulingPolicyArn: input.schedulingPolicyArn })), (input.state !== undefined && input.state !== null && { state: input.state })));
643
+ return [2, new __HttpRequest({
644
+ protocol: protocol,
645
+ hostname: hostname,
646
+ port: port,
647
+ method: "POST",
648
+ headers: headers,
649
+ path: resolvedPath,
650
+ body: body,
651
+ })];
652
+ }
653
+ });
654
+ }); };
655
+ export var serializeAws_restJson1UpdateSchedulingPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
656
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
657
+ return __generator(this, function (_c) {
658
+ switch (_c.label) {
659
+ case 0: return [4, context.endpoint()];
660
+ case 1:
661
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
662
+ headers = {
663
+ "content-type": "application/json",
664
+ };
665
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/updateschedulingpolicy";
666
+ body = JSON.stringify(__assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.fairsharePolicy !== undefined &&
667
+ input.fairsharePolicy !== null && {
668
+ fairsharePolicy: serializeAws_restJson1FairsharePolicy(input.fairsharePolicy, context),
669
+ })));
535
670
  return [2, new __HttpRequest({
536
671
  protocol: protocol,
537
672
  hostname: hostname,
@@ -756,6 +891,80 @@ var deserializeAws_restJson1CreateJobQueueCommandError = function (output, conte
756
891
  }
757
892
  });
758
893
  }); };
894
+ export var deserializeAws_restJson1CreateSchedulingPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
895
+ var contents, data, _a, _b;
896
+ return __generator(this, function (_c) {
897
+ switch (_c.label) {
898
+ case 0:
899
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
900
+ return [2, deserializeAws_restJson1CreateSchedulingPolicyCommandError(output, context)];
901
+ }
902
+ contents = {
903
+ $metadata: deserializeMetadata(output),
904
+ arn: undefined,
905
+ name: undefined,
906
+ };
907
+ _a = __expectNonNull;
908
+ _b = __expectObject;
909
+ return [4, parseBody(output.body, context)];
910
+ case 1:
911
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
912
+ if (data.arn !== undefined && data.arn !== null) {
913
+ contents.arn = __expectString(data.arn);
914
+ }
915
+ if (data.name !== undefined && data.name !== null) {
916
+ contents.name = __expectString(data.name);
917
+ }
918
+ return [2, Promise.resolve(contents)];
919
+ }
920
+ });
921
+ }); };
922
+ var deserializeAws_restJson1CreateSchedulingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
923
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
924
+ var _e;
925
+ return __generator(this, function (_f) {
926
+ switch (_f.label) {
927
+ case 0:
928
+ _a = [__assign({}, output)];
929
+ _e = {};
930
+ return [4, parseBody(output.body, context)];
931
+ case 1:
932
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
933
+ errorCode = "UnknownError";
934
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
935
+ _b = errorCode;
936
+ switch (_b) {
937
+ case "ClientException": return [3, 2];
938
+ case "com.amazonaws.batch#ClientException": return [3, 2];
939
+ case "ServerException": return [3, 4];
940
+ case "com.amazonaws.batch#ServerException": return [3, 4];
941
+ }
942
+ return [3, 6];
943
+ case 2:
944
+ _c = [{}];
945
+ return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
946
+ case 3:
947
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
948
+ return [3, 7];
949
+ case 4:
950
+ _d = [{}];
951
+ return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
952
+ case 5:
953
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
954
+ return [3, 7];
955
+ case 6:
956
+ parsedBody = parsedOutput.body;
957
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
958
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
959
+ _f.label = 7;
960
+ case 7:
961
+ message = response.message || response.Message || errorCode;
962
+ response.message = message;
963
+ delete response.Message;
964
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
965
+ }
966
+ });
967
+ }); };
759
968
  export var deserializeAws_restJson1DeleteComputeEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
760
969
  var contents;
761
970
  return __generator(this, function (_a) {
@@ -884,6 +1093,70 @@ var deserializeAws_restJson1DeleteJobQueueCommandError = function (output, conte
884
1093
  }
885
1094
  });
886
1095
  }); };
1096
+ export var deserializeAws_restJson1DeleteSchedulingPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1097
+ var contents;
1098
+ return __generator(this, function (_a) {
1099
+ switch (_a.label) {
1100
+ case 0:
1101
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1102
+ return [2, deserializeAws_restJson1DeleteSchedulingPolicyCommandError(output, context)];
1103
+ }
1104
+ contents = {
1105
+ $metadata: deserializeMetadata(output),
1106
+ };
1107
+ return [4, collectBody(output.body, context)];
1108
+ case 1:
1109
+ _a.sent();
1110
+ return [2, Promise.resolve(contents)];
1111
+ }
1112
+ });
1113
+ }); };
1114
+ var deserializeAws_restJson1DeleteSchedulingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1115
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
1116
+ var _e;
1117
+ return __generator(this, function (_f) {
1118
+ switch (_f.label) {
1119
+ case 0:
1120
+ _a = [__assign({}, output)];
1121
+ _e = {};
1122
+ return [4, parseBody(output.body, context)];
1123
+ case 1:
1124
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1125
+ errorCode = "UnknownError";
1126
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1127
+ _b = errorCode;
1128
+ switch (_b) {
1129
+ case "ClientException": return [3, 2];
1130
+ case "com.amazonaws.batch#ClientException": return [3, 2];
1131
+ case "ServerException": return [3, 4];
1132
+ case "com.amazonaws.batch#ServerException": return [3, 4];
1133
+ }
1134
+ return [3, 6];
1135
+ case 2:
1136
+ _c = [{}];
1137
+ return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
1138
+ case 3:
1139
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1140
+ return [3, 7];
1141
+ case 4:
1142
+ _d = [{}];
1143
+ return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
1144
+ case 5:
1145
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1146
+ return [3, 7];
1147
+ case 6:
1148
+ parsedBody = parsedOutput.body;
1149
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1150
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1151
+ _f.label = 7;
1152
+ case 7:
1153
+ message = response.message || response.Message || errorCode;
1154
+ response.message = message;
1155
+ delete response.Message;
1156
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1157
+ }
1158
+ });
1159
+ }); };
887
1160
  export var deserializeAws_restJson1DeregisterJobDefinitionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
888
1161
  var contents;
889
1162
  return __generator(this, function (_a) {
@@ -1240,6 +1513,76 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
1240
1513
  }
1241
1514
  });
1242
1515
  }); };
1516
+ export var deserializeAws_restJson1DescribeSchedulingPoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1517
+ var contents, data, _a, _b;
1518
+ return __generator(this, function (_c) {
1519
+ switch (_c.label) {
1520
+ case 0:
1521
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1522
+ return [2, deserializeAws_restJson1DescribeSchedulingPoliciesCommandError(output, context)];
1523
+ }
1524
+ contents = {
1525
+ $metadata: deserializeMetadata(output),
1526
+ schedulingPolicies: undefined,
1527
+ };
1528
+ _a = __expectNonNull;
1529
+ _b = __expectObject;
1530
+ return [4, parseBody(output.body, context)];
1531
+ case 1:
1532
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1533
+ if (data.schedulingPolicies !== undefined && data.schedulingPolicies !== null) {
1534
+ contents.schedulingPolicies = deserializeAws_restJson1SchedulingPolicyDetailList(data.schedulingPolicies, context);
1535
+ }
1536
+ return [2, Promise.resolve(contents)];
1537
+ }
1538
+ });
1539
+ }); };
1540
+ var deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1541
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
1542
+ var _e;
1543
+ return __generator(this, function (_f) {
1544
+ switch (_f.label) {
1545
+ case 0:
1546
+ _a = [__assign({}, output)];
1547
+ _e = {};
1548
+ return [4, parseBody(output.body, context)];
1549
+ case 1:
1550
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1551
+ errorCode = "UnknownError";
1552
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1553
+ _b = errorCode;
1554
+ switch (_b) {
1555
+ case "ClientException": return [3, 2];
1556
+ case "com.amazonaws.batch#ClientException": return [3, 2];
1557
+ case "ServerException": return [3, 4];
1558
+ case "com.amazonaws.batch#ServerException": return [3, 4];
1559
+ }
1560
+ return [3, 6];
1561
+ case 2:
1562
+ _c = [{}];
1563
+ return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
1564
+ case 3:
1565
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1566
+ return [3, 7];
1567
+ case 4:
1568
+ _d = [{}];
1569
+ return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
1570
+ case 5:
1571
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1572
+ return [3, 7];
1573
+ case 6:
1574
+ parsedBody = parsedOutput.body;
1575
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1576
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1577
+ _f.label = 7;
1578
+ case 7:
1579
+ message = response.message || response.Message || errorCode;
1580
+ response.message = message;
1581
+ delete response.Message;
1582
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1583
+ }
1584
+ });
1585
+ }); };
1243
1586
  export var deserializeAws_restJson1ListJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1244
1587
  var contents, data, _a, _b;
1245
1588
  return __generator(this, function (_c) {
@@ -1314,6 +1657,80 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
1314
1657
  }
1315
1658
  });
1316
1659
  }); };
1660
+ export var deserializeAws_restJson1ListSchedulingPoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1661
+ var contents, data, _a, _b;
1662
+ return __generator(this, function (_c) {
1663
+ switch (_c.label) {
1664
+ case 0:
1665
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
+ return [2, deserializeAws_restJson1ListSchedulingPoliciesCommandError(output, context)];
1667
+ }
1668
+ contents = {
1669
+ $metadata: deserializeMetadata(output),
1670
+ nextToken: undefined,
1671
+ schedulingPolicies: undefined,
1672
+ };
1673
+ _a = __expectNonNull;
1674
+ _b = __expectObject;
1675
+ return [4, parseBody(output.body, context)];
1676
+ case 1:
1677
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1678
+ if (data.nextToken !== undefined && data.nextToken !== null) {
1679
+ contents.nextToken = __expectString(data.nextToken);
1680
+ }
1681
+ if (data.schedulingPolicies !== undefined && data.schedulingPolicies !== null) {
1682
+ contents.schedulingPolicies = deserializeAws_restJson1SchedulingPolicyListingDetailList(data.schedulingPolicies, context);
1683
+ }
1684
+ return [2, Promise.resolve(contents)];
1685
+ }
1686
+ });
1687
+ }); };
1688
+ var deserializeAws_restJson1ListSchedulingPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1689
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
1690
+ var _e;
1691
+ return __generator(this, function (_f) {
1692
+ switch (_f.label) {
1693
+ case 0:
1694
+ _a = [__assign({}, output)];
1695
+ _e = {};
1696
+ return [4, parseBody(output.body, context)];
1697
+ case 1:
1698
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1699
+ errorCode = "UnknownError";
1700
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1701
+ _b = errorCode;
1702
+ switch (_b) {
1703
+ case "ClientException": return [3, 2];
1704
+ case "com.amazonaws.batch#ClientException": return [3, 2];
1705
+ case "ServerException": return [3, 4];
1706
+ case "com.amazonaws.batch#ServerException": return [3, 4];
1707
+ }
1708
+ return [3, 6];
1709
+ case 2:
1710
+ _c = [{}];
1711
+ return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
1712
+ case 3:
1713
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1714
+ return [3, 7];
1715
+ case 4:
1716
+ _d = [{}];
1717
+ return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
1718
+ case 5:
1719
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1720
+ return [3, 7];
1721
+ case 6:
1722
+ parsedBody = parsedOutput.body;
1723
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1724
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1725
+ _f.label = 7;
1726
+ case 7:
1727
+ message = response.message || response.Message || errorCode;
1728
+ response.message = message;
1729
+ delete response.Message;
1730
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1731
+ }
1732
+ });
1733
+ }); };
1317
1734
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1318
1735
  var contents, data, _a, _b;
1319
1736
  return __generator(this, function (_c) {
@@ -1880,6 +2297,70 @@ var deserializeAws_restJson1UpdateJobQueueCommandError = function (output, conte
1880
2297
  }
1881
2298
  });
1882
2299
  }); };
2300
+ export var deserializeAws_restJson1UpdateSchedulingPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2301
+ var contents;
2302
+ return __generator(this, function (_a) {
2303
+ switch (_a.label) {
2304
+ case 0:
2305
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2306
+ return [2, deserializeAws_restJson1UpdateSchedulingPolicyCommandError(output, context)];
2307
+ }
2308
+ contents = {
2309
+ $metadata: deserializeMetadata(output),
2310
+ };
2311
+ return [4, collectBody(output.body, context)];
2312
+ case 1:
2313
+ _a.sent();
2314
+ return [2, Promise.resolve(contents)];
2315
+ }
2316
+ });
2317
+ }); };
2318
+ var deserializeAws_restJson1UpdateSchedulingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2319
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
2320
+ var _e;
2321
+ return __generator(this, function (_f) {
2322
+ switch (_f.label) {
2323
+ case 0:
2324
+ _a = [__assign({}, output)];
2325
+ _e = {};
2326
+ return [4, parseBody(output.body, context)];
2327
+ case 1:
2328
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
2329
+ errorCode = "UnknownError";
2330
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2331
+ _b = errorCode;
2332
+ switch (_b) {
2333
+ case "ClientException": return [3, 2];
2334
+ case "com.amazonaws.batch#ClientException": return [3, 2];
2335
+ case "ServerException": return [3, 4];
2336
+ case "com.amazonaws.batch#ServerException": return [3, 4];
2337
+ }
2338
+ return [3, 6];
2339
+ case 2:
2340
+ _c = [{}];
2341
+ return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
2342
+ case 3:
2343
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2344
+ return [3, 7];
2345
+ case 4:
2346
+ _d = [{}];
2347
+ return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
2348
+ case 5:
2349
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2350
+ return [3, 7];
2351
+ case 6:
2352
+ parsedBody = parsedOutput.body;
2353
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2354
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2355
+ _f.label = 7;
2356
+ case 7:
2357
+ message = response.message || response.Message || errorCode;
2358
+ response.message = message;
2359
+ delete response.Message;
2360
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2361
+ }
2362
+ });
2363
+ }); };
1883
2364
  var deserializeAws_restJson1ClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1884
2365
  var contents, data;
1885
2366
  return __generator(this, function (_a) {
@@ -2069,6 +2550,14 @@ var serializeAws_restJson1EvaluateOnExitList = function (input, context) {
2069
2550
  return serializeAws_restJson1EvaluateOnExit(entry, context);
2070
2551
  });
2071
2552
  };
2553
+ var serializeAws_restJson1FairsharePolicy = function (input, context) {
2554
+ return __assign(__assign(__assign({}, (input.computeReservation !== undefined &&
2555
+ input.computeReservation !== null && { computeReservation: input.computeReservation })), (input.shareDecaySeconds !== undefined &&
2556
+ input.shareDecaySeconds !== null && { shareDecaySeconds: input.shareDecaySeconds })), (input.shareDistribution !== undefined &&
2557
+ input.shareDistribution !== null && {
2558
+ shareDistribution: serializeAws_restJson1ShareAttributesList(input.shareDistribution, context),
2559
+ }));
2560
+ };
2072
2561
  var serializeAws_restJson1FargatePlatformConfiguration = function (input, context) {
2073
2562
  return __assign({}, (input.platformVersion !== undefined &&
2074
2563
  input.platformVersion !== null && { platformVersion: input.platformVersion }));
@@ -2250,6 +2739,21 @@ var serializeAws_restJson1SecretList = function (input, context) {
2250
2739
  return serializeAws_restJson1Secret(entry, context);
2251
2740
  });
2252
2741
  };
2742
+ var serializeAws_restJson1ShareAttributes = function (input, context) {
2743
+ return __assign(__assign({}, (input.shareIdentifier !== undefined &&
2744
+ input.shareIdentifier !== null && { shareIdentifier: input.shareIdentifier })), (input.weightFactor !== undefined &&
2745
+ input.weightFactor !== null && { weightFactor: __serializeFloat(input.weightFactor) }));
2746
+ };
2747
+ var serializeAws_restJson1ShareAttributesList = function (input, context) {
2748
+ return input
2749
+ .filter(function (e) { return e != null; })
2750
+ .map(function (entry) {
2751
+ if (entry === null) {
2752
+ return null;
2753
+ }
2754
+ return serializeAws_restJson1ShareAttributes(entry, context);
2755
+ });
2756
+ };
2253
2757
  var serializeAws_restJson1StringList = function (input, context) {
2254
2758
  return input
2255
2759
  .filter(function (e) { return e != null; })
@@ -2396,6 +2900,7 @@ var deserializeAws_restJson1ComputeEnvironmentDetail = function (output, context
2396
2900
  ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2397
2901
  : undefined,
2398
2902
  type: __expectString(output.type),
2903
+ unmanagedvCpus: __expectInt32(output.unmanagedvCpus),
2399
2904
  };
2400
2905
  };
2401
2906
  var deserializeAws_restJson1ComputeEnvironmentDetailList = function (output, context) {
@@ -2653,6 +3158,15 @@ var deserializeAws_restJson1EvaluateOnExitList = function (output, context) {
2653
3158
  return deserializeAws_restJson1EvaluateOnExit(entry, context);
2654
3159
  });
2655
3160
  };
3161
+ var deserializeAws_restJson1FairsharePolicy = function (output, context) {
3162
+ return {
3163
+ computeReservation: __expectInt32(output.computeReservation),
3164
+ shareDecaySeconds: __expectInt32(output.shareDecaySeconds),
3165
+ shareDistribution: output.shareDistribution !== undefined && output.shareDistribution !== null
3166
+ ? deserializeAws_restJson1ShareAttributesList(output.shareDistribution, context)
3167
+ : undefined,
3168
+ };
3169
+ };
2656
3170
  var deserializeAws_restJson1FargatePlatformConfiguration = function (output, context) {
2657
3171
  return {
2658
3172
  platformVersion: __expectString(output.platformVersion),
@@ -2684,6 +3198,7 @@ var deserializeAws_restJson1JobDefinition = function (output, context) {
2684
3198
  ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
2685
3199
  : undefined,
2686
3200
  revision: __expectInt32(output.revision),
3201
+ schedulingPriority: __expectInt32(output.schedulingPriority),
2687
3202
  status: __expectString(output.status),
2688
3203
  tags: output.tags !== undefined && output.tags !== null
2689
3204
  ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
@@ -2756,6 +3271,8 @@ var deserializeAws_restJson1JobDetail = function (output, context) {
2756
3271
  retryStrategy: output.retryStrategy !== undefined && output.retryStrategy !== null
2757
3272
  ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
2758
3273
  : undefined,
3274
+ schedulingPriority: __expectInt32(output.schedulingPriority),
3275
+ shareIdentifier: __expectString(output.shareIdentifier),
2759
3276
  startedAt: __expectLong(output.startedAt),
2760
3277
  status: __expectString(output.status),
2761
3278
  statusReason: __expectString(output.statusReason),
@@ -2786,6 +3303,7 @@ var deserializeAws_restJson1JobQueueDetail = function (output, context) {
2786
3303
  jobQueueArn: __expectString(output.jobQueueArn),
2787
3304
  jobQueueName: __expectString(output.jobQueueName),
2788
3305
  priority: __expectInt32(output.priority),
3306
+ schedulingPolicyArn: __expectString(output.schedulingPolicyArn),
2789
3307
  state: __expectString(output.state),
2790
3308
  status: __expectString(output.status),
2791
3309
  statusReason: __expectString(output.statusReason),
@@ -3012,6 +3530,43 @@ var deserializeAws_restJson1RetryStrategy = function (output, context) {
3012
3530
  : undefined,
3013
3531
  };
3014
3532
  };
3533
+ var deserializeAws_restJson1SchedulingPolicyDetail = function (output, context) {
3534
+ return {
3535
+ arn: __expectString(output.arn),
3536
+ fairsharePolicy: output.fairsharePolicy !== undefined && output.fairsharePolicy !== null
3537
+ ? deserializeAws_restJson1FairsharePolicy(output.fairsharePolicy, context)
3538
+ : undefined,
3539
+ name: __expectString(output.name),
3540
+ tags: output.tags !== undefined && output.tags !== null
3541
+ ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
3542
+ : undefined,
3543
+ };
3544
+ };
3545
+ var deserializeAws_restJson1SchedulingPolicyDetailList = function (output, context) {
3546
+ return (output || [])
3547
+ .filter(function (e) { return e != null; })
3548
+ .map(function (entry) {
3549
+ if (entry === null) {
3550
+ return null;
3551
+ }
3552
+ return deserializeAws_restJson1SchedulingPolicyDetail(entry, context);
3553
+ });
3554
+ };
3555
+ var deserializeAws_restJson1SchedulingPolicyListingDetail = function (output, context) {
3556
+ return {
3557
+ arn: __expectString(output.arn),
3558
+ };
3559
+ };
3560
+ var deserializeAws_restJson1SchedulingPolicyListingDetailList = function (output, context) {
3561
+ return (output || [])
3562
+ .filter(function (e) { return e != null; })
3563
+ .map(function (entry) {
3564
+ if (entry === null) {
3565
+ return null;
3566
+ }
3567
+ return deserializeAws_restJson1SchedulingPolicyListingDetail(entry, context);
3568
+ });
3569
+ };
3015
3570
  var deserializeAws_restJson1Secret = function (output, context) {
3016
3571
  return {
3017
3572
  name: __expectString(output.name),
@@ -3028,6 +3583,22 @@ var deserializeAws_restJson1SecretList = function (output, context) {
3028
3583
  return deserializeAws_restJson1Secret(entry, context);
3029
3584
  });
3030
3585
  };
3586
+ var deserializeAws_restJson1ShareAttributes = function (output, context) {
3587
+ return {
3588
+ shareIdentifier: __expectString(output.shareIdentifier),
3589
+ weightFactor: __limitedParseFloat32(output.weightFactor),
3590
+ };
3591
+ };
3592
+ var deserializeAws_restJson1ShareAttributesList = function (output, context) {
3593
+ return (output || [])
3594
+ .filter(function (e) { return e != null; })
3595
+ .map(function (entry) {
3596
+ if (entry === null) {
3597
+ return null;
3598
+ }
3599
+ return deserializeAws_restJson1ShareAttributes(entry, context);
3600
+ });
3601
+ };
3031
3602
  var deserializeAws_restJson1StringList = function (output, context) {
3032
3603
  return (output || [])
3033
3604
  .filter(function (e) { return e != null; })