@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
package/dist-es/Batch.js CHANGED
@@ -3,14 +3,18 @@ import { BatchClient } from "./BatchClient";
3
3
  import { CancelJobCommand } from "./commands/CancelJobCommand";
4
4
  import { CreateComputeEnvironmentCommand, } from "./commands/CreateComputeEnvironmentCommand";
5
5
  import { CreateJobQueueCommand, } from "./commands/CreateJobQueueCommand";
6
+ import { CreateSchedulingPolicyCommand, } from "./commands/CreateSchedulingPolicyCommand";
6
7
  import { DeleteComputeEnvironmentCommand, } from "./commands/DeleteComputeEnvironmentCommand";
7
8
  import { DeleteJobQueueCommand, } from "./commands/DeleteJobQueueCommand";
9
+ import { DeleteSchedulingPolicyCommand, } from "./commands/DeleteSchedulingPolicyCommand";
8
10
  import { DeregisterJobDefinitionCommand, } from "./commands/DeregisterJobDefinitionCommand";
9
11
  import { DescribeComputeEnvironmentsCommand, } from "./commands/DescribeComputeEnvironmentsCommand";
10
12
  import { DescribeJobDefinitionsCommand, } from "./commands/DescribeJobDefinitionsCommand";
11
13
  import { DescribeJobQueuesCommand, } from "./commands/DescribeJobQueuesCommand";
12
14
  import { DescribeJobsCommand, } from "./commands/DescribeJobsCommand";
15
+ import { DescribeSchedulingPoliciesCommand, } from "./commands/DescribeSchedulingPoliciesCommand";
13
16
  import { ListJobsCommand } from "./commands/ListJobsCommand";
17
+ import { ListSchedulingPoliciesCommand, } from "./commands/ListSchedulingPoliciesCommand";
14
18
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
15
19
  import { RegisterJobDefinitionCommand, } from "./commands/RegisterJobDefinitionCommand";
16
20
  import { SubmitJobCommand } from "./commands/SubmitJobCommand";
@@ -19,6 +23,7 @@ import { TerminateJobCommand, } from "./commands/TerminateJobCommand";
19
23
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
20
24
  import { UpdateComputeEnvironmentCommand, } from "./commands/UpdateComputeEnvironmentCommand";
21
25
  import { UpdateJobQueueCommand, } from "./commands/UpdateJobQueueCommand";
26
+ import { UpdateSchedulingPolicyCommand, } from "./commands/UpdateSchedulingPolicyCommand";
22
27
  var Batch = (function (_super) {
23
28
  __extends(Batch, _super);
24
29
  function Batch() {
@@ -66,6 +71,20 @@ var Batch = (function (_super) {
66
71
  return this.send(command, optionsOrCb);
67
72
  }
68
73
  };
74
+ Batch.prototype.createSchedulingPolicy = function (args, optionsOrCb, cb) {
75
+ var command = new CreateSchedulingPolicyCommand(args);
76
+ if (typeof optionsOrCb === "function") {
77
+ this.send(command, optionsOrCb);
78
+ }
79
+ else if (typeof cb === "function") {
80
+ if (typeof optionsOrCb !== "object")
81
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
82
+ this.send(command, optionsOrCb || {}, cb);
83
+ }
84
+ else {
85
+ return this.send(command, optionsOrCb);
86
+ }
87
+ };
69
88
  Batch.prototype.deleteComputeEnvironment = function (args, optionsOrCb, cb) {
70
89
  var command = new DeleteComputeEnvironmentCommand(args);
71
90
  if (typeof optionsOrCb === "function") {
@@ -94,6 +113,20 @@ var Batch = (function (_super) {
94
113
  return this.send(command, optionsOrCb);
95
114
  }
96
115
  };
116
+ Batch.prototype.deleteSchedulingPolicy = function (args, optionsOrCb, cb) {
117
+ var command = new DeleteSchedulingPolicyCommand(args);
118
+ if (typeof optionsOrCb === "function") {
119
+ this.send(command, optionsOrCb);
120
+ }
121
+ else if (typeof cb === "function") {
122
+ if (typeof optionsOrCb !== "object")
123
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
124
+ this.send(command, optionsOrCb || {}, cb);
125
+ }
126
+ else {
127
+ return this.send(command, optionsOrCb);
128
+ }
129
+ };
97
130
  Batch.prototype.deregisterJobDefinition = function (args, optionsOrCb, cb) {
98
131
  var command = new DeregisterJobDefinitionCommand(args);
99
132
  if (typeof optionsOrCb === "function") {
@@ -164,6 +197,20 @@ var Batch = (function (_super) {
164
197
  return this.send(command, optionsOrCb);
165
198
  }
166
199
  };
200
+ Batch.prototype.describeSchedulingPolicies = function (args, optionsOrCb, cb) {
201
+ var command = new DescribeSchedulingPoliciesCommand(args);
202
+ if (typeof optionsOrCb === "function") {
203
+ this.send(command, optionsOrCb);
204
+ }
205
+ else if (typeof cb === "function") {
206
+ if (typeof optionsOrCb !== "object")
207
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
208
+ this.send(command, optionsOrCb || {}, cb);
209
+ }
210
+ else {
211
+ return this.send(command, optionsOrCb);
212
+ }
213
+ };
167
214
  Batch.prototype.listJobs = function (args, optionsOrCb, cb) {
168
215
  var command = new ListJobsCommand(args);
169
216
  if (typeof optionsOrCb === "function") {
@@ -178,6 +225,20 @@ var Batch = (function (_super) {
178
225
  return this.send(command, optionsOrCb);
179
226
  }
180
227
  };
228
+ Batch.prototype.listSchedulingPolicies = function (args, optionsOrCb, cb) {
229
+ var command = new ListSchedulingPoliciesCommand(args);
230
+ if (typeof optionsOrCb === "function") {
231
+ this.send(command, optionsOrCb);
232
+ }
233
+ else if (typeof cb === "function") {
234
+ if (typeof optionsOrCb !== "object")
235
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
236
+ this.send(command, optionsOrCb || {}, cb);
237
+ }
238
+ else {
239
+ return this.send(command, optionsOrCb);
240
+ }
241
+ };
181
242
  Batch.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
182
243
  var command = new ListTagsForResourceCommand(args);
183
244
  if (typeof optionsOrCb === "function") {
@@ -290,6 +351,20 @@ var Batch = (function (_super) {
290
351
  return this.send(command, optionsOrCb);
291
352
  }
292
353
  };
354
+ Batch.prototype.updateSchedulingPolicy = function (args, optionsOrCb, cb) {
355
+ var command = new UpdateSchedulingPolicyCommand(args);
356
+ if (typeof optionsOrCb === "function") {
357
+ this.send(command, optionsOrCb);
358
+ }
359
+ else if (typeof cb === "function") {
360
+ if (typeof optionsOrCb !== "object")
361
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
362
+ this.send(command, optionsOrCb || {}, cb);
363
+ }
364
+ else {
365
+ return this.send(command, optionsOrCb);
366
+ }
367
+ };
293
368
  return Batch;
294
369
  }(BatchClient));
295
370
  export { Batch };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateSchedulingPolicyRequest, CreateSchedulingPolicyResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateSchedulingPolicyCommand, serializeAws_restJson1CreateSchedulingPolicyCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateSchedulingPolicyCommand = (function (_super) {
7
+ __extends(CreateSchedulingPolicyCommand, _super);
8
+ function CreateSchedulingPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateSchedulingPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "CreateSchedulingPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateSchedulingPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateSchedulingPolicyResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateSchedulingPolicyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateSchedulingPolicyCommand(input, context);
33
+ };
34
+ CreateSchedulingPolicyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateSchedulingPolicyCommand(output, context);
36
+ };
37
+ return CreateSchedulingPolicyCommand;
38
+ }($Command));
39
+ export { CreateSchedulingPolicyCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteSchedulingPolicyRequest, DeleteSchedulingPolicyResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteSchedulingPolicyCommand, serializeAws_restJson1DeleteSchedulingPolicyCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteSchedulingPolicyCommand = (function (_super) {
7
+ __extends(DeleteSchedulingPolicyCommand, _super);
8
+ function DeleteSchedulingPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteSchedulingPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "DeleteSchedulingPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteSchedulingPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteSchedulingPolicyResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteSchedulingPolicyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteSchedulingPolicyCommand(input, context);
33
+ };
34
+ DeleteSchedulingPolicyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteSchedulingPolicyCommand(output, context);
36
+ };
37
+ return DeleteSchedulingPolicyCommand;
38
+ }($Command));
39
+ export { DeleteSchedulingPolicyCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeSchedulingPoliciesRequest, DescribeSchedulingPoliciesResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeSchedulingPoliciesCommand, serializeAws_restJson1DescribeSchedulingPoliciesCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeSchedulingPoliciesCommand = (function (_super) {
7
+ __extends(DescribeSchedulingPoliciesCommand, _super);
8
+ function DescribeSchedulingPoliciesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeSchedulingPoliciesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "DescribeSchedulingPoliciesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeSchedulingPoliciesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeSchedulingPoliciesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeSchedulingPoliciesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeSchedulingPoliciesCommand(input, context);
33
+ };
34
+ DescribeSchedulingPoliciesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeSchedulingPoliciesCommand(output, context);
36
+ };
37
+ return DescribeSchedulingPoliciesCommand;
38
+ }($Command));
39
+ export { DescribeSchedulingPoliciesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListSchedulingPoliciesCommand, serializeAws_restJson1ListSchedulingPoliciesCommand, } from "../protocols/Aws_restJson1";
6
+ var ListSchedulingPoliciesCommand = (function (_super) {
7
+ __extends(ListSchedulingPoliciesCommand, _super);
8
+ function ListSchedulingPoliciesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListSchedulingPoliciesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "ListSchedulingPoliciesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListSchedulingPoliciesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListSchedulingPoliciesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListSchedulingPoliciesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListSchedulingPoliciesCommand(input, context);
33
+ };
34
+ ListSchedulingPoliciesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListSchedulingPoliciesCommand(output, context);
36
+ };
37
+ return ListSchedulingPoliciesCommand;
38
+ }($Command));
39
+ export { ListSchedulingPoliciesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateSchedulingPolicyRequest, UpdateSchedulingPolicyResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateSchedulingPolicyCommand, serializeAws_restJson1UpdateSchedulingPolicyCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateSchedulingPolicyCommand = (function (_super) {
7
+ __extends(UpdateSchedulingPolicyCommand, _super);
8
+ function UpdateSchedulingPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateSchedulingPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "UpdateSchedulingPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateSchedulingPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateSchedulingPolicyResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateSchedulingPolicyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateSchedulingPolicyCommand(input, context);
33
+ };
34
+ UpdateSchedulingPolicyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateSchedulingPolicyCommand(output, context);
36
+ };
37
+ return UpdateSchedulingPolicyCommand;
38
+ }($Command));
39
+ export { UpdateSchedulingPolicyCommand };
@@ -1,14 +1,18 @@
1
1
  export * from "./CancelJobCommand";
2
2
  export * from "./CreateComputeEnvironmentCommand";
3
3
  export * from "./CreateJobQueueCommand";
4
+ export * from "./CreateSchedulingPolicyCommand";
4
5
  export * from "./DeleteComputeEnvironmentCommand";
5
6
  export * from "./DeleteJobQueueCommand";
7
+ export * from "./DeleteSchedulingPolicyCommand";
6
8
  export * from "./DeregisterJobDefinitionCommand";
7
9
  export * from "./DescribeComputeEnvironmentsCommand";
8
10
  export * from "./DescribeJobDefinitionsCommand";
9
11
  export * from "./DescribeJobQueuesCommand";
10
12
  export * from "./DescribeJobsCommand";
13
+ export * from "./DescribeSchedulingPoliciesCommand";
11
14
  export * from "./ListJobsCommand";
15
+ export * from "./ListSchedulingPoliciesCommand";
12
16
  export * from "./ListTagsForResourceCommand";
13
17
  export * from "./RegisterJobDefinitionCommand";
14
18
  export * from "./SubmitJobCommand";
@@ -17,3 +21,4 @@ export * from "./TerminateJobCommand";
17
21
  export * from "./UntagResourceCommand";
18
22
  export * from "./UpdateComputeEnvironmentCommand";
19
23
  export * from "./UpdateJobQueueCommand";
24
+ export * from "./UpdateSchedulingPolicyCommand";
@@ -85,6 +85,7 @@ var partitionHash = {
85
85
  "ap-south-1",
86
86
  "ap-southeast-1",
87
87
  "ap-southeast-2",
88
+ "ap-southeast-3",
88
89
  "ca-central-1",
89
90
  "eu-central-1",
90
91
  "eu-north-1",
@@ -113,6 +114,14 @@ var partitionHash = {
113
114
  hostname: "fips.batch.{region}.amazonaws.com",
114
115
  tags: ["fips"],
115
116
  },
117
+ {
118
+ hostname: "batch-fips.{region}.api.aws",
119
+ tags: ["dualstack", "fips"],
120
+ },
121
+ {
122
+ hostname: "batch.{region}.api.aws",
123
+ tags: ["dualstack"],
124
+ },
116
125
  ],
117
126
  },
118
127
  "aws-cn": {
@@ -145,6 +154,10 @@ var partitionHash = {
145
154
  hostname: "batch.{region}.c2s.ic.gov",
146
155
  tags: [],
147
156
  },
157
+ {
158
+ hostname: "batch-fips.{region}.c2s.ic.gov",
159
+ tags: ["fips"],
160
+ },
148
161
  ],
149
162
  },
150
163
  "aws-iso-b": {
@@ -155,6 +168,10 @@ var partitionHash = {
155
168
  hostname: "batch.{region}.sc2s.sgov.gov",
156
169
  tags: [],
157
170
  },
171
+ {
172
+ hostname: "batch-fips.{region}.sc2s.sgov.gov",
173
+ tags: ["fips"],
174
+ },
158
175
  ],
159
176
  },
160
177
  "aws-us-gov": {
@@ -169,6 +186,14 @@ var partitionHash = {
169
186
  hostname: "batch.{region}.amazonaws.com",
170
187
  tags: ["fips"],
171
188
  },
189
+ {
190
+ hostname: "batch-fips.{region}.api.aws",
191
+ tags: ["dualstack", "fips"],
192
+ },
193
+ {
194
+ hostname: "batch.{region}.api.aws",
195
+ tags: ["dualstack"],
196
+ },
172
197
  ],
173
198
  },
174
199
  };
@@ -109,6 +109,22 @@ export var CreateJobQueueResponse;
109
109
  (function (CreateJobQueueResponse) {
110
110
  CreateJobQueueResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
111
111
  })(CreateJobQueueResponse || (CreateJobQueueResponse = {}));
112
+ export var ShareAttributes;
113
+ (function (ShareAttributes) {
114
+ ShareAttributes.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
+ })(ShareAttributes || (ShareAttributes = {}));
116
+ export var FairsharePolicy;
117
+ (function (FairsharePolicy) {
118
+ FairsharePolicy.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
+ })(FairsharePolicy || (FairsharePolicy = {}));
120
+ export var CreateSchedulingPolicyRequest;
121
+ (function (CreateSchedulingPolicyRequest) {
122
+ CreateSchedulingPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
+ })(CreateSchedulingPolicyRequest || (CreateSchedulingPolicyRequest = {}));
124
+ export var CreateSchedulingPolicyResponse;
125
+ (function (CreateSchedulingPolicyResponse) {
126
+ CreateSchedulingPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
+ })(CreateSchedulingPolicyResponse || (CreateSchedulingPolicyResponse = {}));
112
128
  export var DeleteComputeEnvironmentRequest;
113
129
  (function (DeleteComputeEnvironmentRequest) {
114
130
  DeleteComputeEnvironmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -125,6 +141,14 @@ export var DeleteJobQueueResponse;
125
141
  (function (DeleteJobQueueResponse) {
126
142
  DeleteJobQueueResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
143
  })(DeleteJobQueueResponse || (DeleteJobQueueResponse = {}));
144
+ export var DeleteSchedulingPolicyRequest;
145
+ (function (DeleteSchedulingPolicyRequest) {
146
+ DeleteSchedulingPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
+ })(DeleteSchedulingPolicyRequest || (DeleteSchedulingPolicyRequest = {}));
148
+ export var DeleteSchedulingPolicyResponse;
149
+ (function (DeleteSchedulingPolicyResponse) {
150
+ DeleteSchedulingPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
+ })(DeleteSchedulingPolicyResponse || (DeleteSchedulingPolicyResponse = {}));
128
152
  export var DeregisterJobDefinitionRequest;
129
153
  (function (DeregisterJobDefinitionRequest) {
130
154
  DeregisterJobDefinitionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -347,6 +371,18 @@ export var DescribeJobsResponse;
347
371
  (function (DescribeJobsResponse) {
348
372
  DescribeJobsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
349
373
  })(DescribeJobsResponse || (DescribeJobsResponse = {}));
374
+ export var DescribeSchedulingPoliciesRequest;
375
+ (function (DescribeSchedulingPoliciesRequest) {
376
+ DescribeSchedulingPoliciesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
377
+ })(DescribeSchedulingPoliciesRequest || (DescribeSchedulingPoliciesRequest = {}));
378
+ export var SchedulingPolicyDetail;
379
+ (function (SchedulingPolicyDetail) {
380
+ SchedulingPolicyDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
381
+ })(SchedulingPolicyDetail || (SchedulingPolicyDetail = {}));
382
+ export var DescribeSchedulingPoliciesResponse;
383
+ (function (DescribeSchedulingPoliciesResponse) {
384
+ DescribeSchedulingPoliciesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
385
+ })(DescribeSchedulingPoliciesResponse || (DescribeSchedulingPoliciesResponse = {}));
350
386
  export var KeyValuesPair;
351
387
  (function (KeyValuesPair) {
352
388
  KeyValuesPair.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -371,6 +407,18 @@ export var ListJobsResponse;
371
407
  (function (ListJobsResponse) {
372
408
  ListJobsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
373
409
  })(ListJobsResponse || (ListJobsResponse = {}));
410
+ export var ListSchedulingPoliciesRequest;
411
+ (function (ListSchedulingPoliciesRequest) {
412
+ ListSchedulingPoliciesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
413
+ })(ListSchedulingPoliciesRequest || (ListSchedulingPoliciesRequest = {}));
414
+ export var SchedulingPolicyListingDetail;
415
+ (function (SchedulingPolicyListingDetail) {
416
+ SchedulingPolicyListingDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
417
+ })(SchedulingPolicyListingDetail || (SchedulingPolicyListingDetail = {}));
418
+ export var ListSchedulingPoliciesResponse;
419
+ (function (ListSchedulingPoliciesResponse) {
420
+ ListSchedulingPoliciesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
421
+ })(ListSchedulingPoliciesResponse || (ListSchedulingPoliciesResponse = {}));
374
422
  export var ListTagsForResourceRequest;
375
423
  (function (ListTagsForResourceRequest) {
376
424
  ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -456,3 +504,11 @@ export var UpdateJobQueueResponse;
456
504
  (function (UpdateJobQueueResponse) {
457
505
  UpdateJobQueueResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
458
506
  })(UpdateJobQueueResponse || (UpdateJobQueueResponse = {}));
507
+ export var UpdateSchedulingPolicyRequest;
508
+ (function (UpdateSchedulingPolicyRequest) {
509
+ UpdateSchedulingPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
510
+ })(UpdateSchedulingPolicyRequest || (UpdateSchedulingPolicyRequest = {}));
511
+ export var UpdateSchedulingPolicyResponse;
512
+ (function (UpdateSchedulingPolicyResponse) {
513
+ UpdateSchedulingPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
514
+ })(UpdateSchedulingPolicyResponse || (UpdateSchedulingPolicyResponse = {}));
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { Batch } from "../Batch";
3
+ import { BatchClient } from "../BatchClient";
4
+ import { ListSchedulingPoliciesCommand, } from "../commands/ListSchedulingPoliciesCommand";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListSchedulingPoliciesCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listSchedulingPolicies.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListSchedulingPolicies(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListSchedulingPolicies_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Batch)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof BatchClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Batch | BatchClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.nextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -3,3 +3,4 @@ export * from "./DescribeJobDefinitionsPaginator";
3
3
  export * from "./DescribeJobQueuesPaginator";
4
4
  export * from "./Interfaces";
5
5
  export * from "./ListJobsPaginator";
6
+ export * from "./ListSchedulingPoliciesPaginator";