@aws-sdk/client-batch 3.39.0 → 3.43.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 (80) 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 +140 -23
  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-cjs/runtimeConfig.browser.js +6 -3
  16. package/dist-cjs/runtimeConfig.js +5 -3
  17. package/dist-es/Batch.js +75 -0
  18. package/dist-es/commands/CreateSchedulingPolicyCommand.js +39 -0
  19. package/dist-es/commands/DeleteSchedulingPolicyCommand.js +39 -0
  20. package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +39 -0
  21. package/dist-es/commands/ListSchedulingPoliciesCommand.js +39 -0
  22. package/dist-es/commands/UpdateSchedulingPolicyCommand.js +39 -0
  23. package/dist-es/commands/index.js +5 -0
  24. package/dist-es/endpoints.js +140 -23
  25. package/dist-es/models/models_0.js +56 -0
  26. package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +74 -0
  27. package/dist-es/pagination/index.js +1 -0
  28. package/dist-es/protocols/Aws_restJson1.js +584 -13
  29. package/dist-es/runtimeConfig.browser.js +3 -2
  30. package/dist-es/runtimeConfig.js +3 -3
  31. package/dist-types/Batch.d.ts +50 -12
  32. package/dist-types/BatchClient.d.ts +17 -4
  33. package/dist-types/commands/CancelJobCommand.d.ts +1 -1
  34. package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +5 -6
  35. package/dist-types/commands/CreateJobQueueCommand.d.ts +1 -1
  36. package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +35 -0
  37. package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +1 -1
  38. package/dist-types/commands/DeleteJobQueueCommand.d.ts +1 -1
  39. package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +36 -0
  40. package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +1 -1
  41. package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +1 -1
  43. package/dist-types/commands/DescribeJobQueuesCommand.d.ts +1 -1
  44. package/dist-types/commands/DescribeJobsCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +35 -0
  46. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  47. package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +35 -0
  48. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
  49. package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +1 -1
  50. package/dist-types/commands/SubmitJobCommand.d.ts +5 -2
  51. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  52. package/dist-types/commands/TerminateJobCommand.d.ts +1 -1
  53. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateJobQueueCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +35 -0
  57. package/dist-types/commands/index.d.ts +5 -0
  58. package/dist-types/models/models_0.d.ts +455 -114
  59. package/dist-types/pagination/ListSchedulingPoliciesPaginator.d.ts +4 -0
  60. package/dist-types/pagination/index.d.ts +1 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  63. package/dist-types/runtimeConfig.d.ts +2 -0
  64. package/dist-types/runtimeConfig.native.d.ts +2 -0
  65. package/dist-types/ts3.4/Batch.d.ts +25 -0
  66. package/dist-types/ts3.4/BatchClient.d.ts +11 -2
  67. package/dist-types/ts3.4/commands/CreateSchedulingPolicyCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/DeleteSchedulingPolicyCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/DescribeSchedulingPoliciesCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/ListSchedulingPoliciesCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/UpdateSchedulingPolicyCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  73. package/dist-types/ts3.4/models/models_0.d.ts +164 -0
  74. package/dist-types/ts3.4/pagination/ListSchedulingPoliciesPaginator.d.ts +4 -0
  75. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  76. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  77. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  78. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  79. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  80. package/package.json +23 -23
package/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** merge default variants by comparing tags ([#3044](https://github.com/aws/aws-sdk-js-v3/issues/3044)) ([d65a310](https://github.com/aws/aws-sdk-js-v3/commit/d65a310ed5a471e72633a18ae6f3c98390e20783))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
29
+
30
+
31
+ ### Features
32
+
33
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
34
+
35
+
36
+
37
+
38
+
39
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
40
+
41
+
42
+ ### Features
43
+
44
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
45
+
46
+
47
+
48
+
49
+
6
50
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
51
 
8
52
  **Note:** Version bump only for package @aws-sdk/client-batch
package/README.md CHANGED
@@ -9,7 +9,7 @@ AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native.
9
9
 
10
10
  <fullname>Batch</fullname>
11
11
 
12
- <p>Using Batch, you can run batch computing workloads on the Cloud. Batch computing is a common means for
12
+ <p>Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. Batch computing is a common means for
13
13
  developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of
14
14
  this computing workload to remove the undifferentiated heavy lifting of configuring and managing required
15
15
  infrastructure. At the same time, it also adopts a familiar batch computing software approach. Given these
@@ -18,7 +18,7 @@ helping you to eliminate capacity constraints, reduce compute costs, and deliver
18
18
  <p>As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically
19
19
  provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific
20
20
  workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus
21
- your time and energy on analyzing results and solving your specific problems. </p>
21
+ your time and energy on analyzing results and solving your specific problems.</p>
22
22
 
23
23
  ## Installing
24
24
 
package/dist-cjs/Batch.js CHANGED
@@ -5,14 +5,18 @@ const BatchClient_1 = require("./BatchClient");
5
5
  const CancelJobCommand_1 = require("./commands/CancelJobCommand");
6
6
  const CreateComputeEnvironmentCommand_1 = require("./commands/CreateComputeEnvironmentCommand");
7
7
  const CreateJobQueueCommand_1 = require("./commands/CreateJobQueueCommand");
8
+ const CreateSchedulingPolicyCommand_1 = require("./commands/CreateSchedulingPolicyCommand");
8
9
  const DeleteComputeEnvironmentCommand_1 = require("./commands/DeleteComputeEnvironmentCommand");
9
10
  const DeleteJobQueueCommand_1 = require("./commands/DeleteJobQueueCommand");
11
+ const DeleteSchedulingPolicyCommand_1 = require("./commands/DeleteSchedulingPolicyCommand");
10
12
  const DeregisterJobDefinitionCommand_1 = require("./commands/DeregisterJobDefinitionCommand");
11
13
  const DescribeComputeEnvironmentsCommand_1 = require("./commands/DescribeComputeEnvironmentsCommand");
12
14
  const DescribeJobDefinitionsCommand_1 = require("./commands/DescribeJobDefinitionsCommand");
13
15
  const DescribeJobQueuesCommand_1 = require("./commands/DescribeJobQueuesCommand");
14
16
  const DescribeJobsCommand_1 = require("./commands/DescribeJobsCommand");
17
+ const DescribeSchedulingPoliciesCommand_1 = require("./commands/DescribeSchedulingPoliciesCommand");
15
18
  const ListJobsCommand_1 = require("./commands/ListJobsCommand");
19
+ const ListSchedulingPoliciesCommand_1 = require("./commands/ListSchedulingPoliciesCommand");
16
20
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
17
21
  const RegisterJobDefinitionCommand_1 = require("./commands/RegisterJobDefinitionCommand");
18
22
  const SubmitJobCommand_1 = require("./commands/SubmitJobCommand");
@@ -21,6 +25,7 @@ const TerminateJobCommand_1 = require("./commands/TerminateJobCommand");
21
25
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
22
26
  const UpdateComputeEnvironmentCommand_1 = require("./commands/UpdateComputeEnvironmentCommand");
23
27
  const UpdateJobQueueCommand_1 = require("./commands/UpdateJobQueueCommand");
28
+ const UpdateSchedulingPolicyCommand_1 = require("./commands/UpdateSchedulingPolicyCommand");
24
29
  class Batch extends BatchClient_1.BatchClient {
25
30
  cancelJob(args, optionsOrCb, cb) {
26
31
  const command = new CancelJobCommand_1.CancelJobCommand(args);
@@ -64,6 +69,20 @@ class Batch extends BatchClient_1.BatchClient {
64
69
  return this.send(command, optionsOrCb);
65
70
  }
66
71
  }
72
+ createSchedulingPolicy(args, optionsOrCb, cb) {
73
+ const command = new CreateSchedulingPolicyCommand_1.CreateSchedulingPolicyCommand(args);
74
+ if (typeof optionsOrCb === "function") {
75
+ this.send(command, optionsOrCb);
76
+ }
77
+ else if (typeof cb === "function") {
78
+ if (typeof optionsOrCb !== "object")
79
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
+ this.send(command, optionsOrCb || {}, cb);
81
+ }
82
+ else {
83
+ return this.send(command, optionsOrCb);
84
+ }
85
+ }
67
86
  deleteComputeEnvironment(args, optionsOrCb, cb) {
68
87
  const command = new DeleteComputeEnvironmentCommand_1.DeleteComputeEnvironmentCommand(args);
69
88
  if (typeof optionsOrCb === "function") {
@@ -92,6 +111,20 @@ class Batch extends BatchClient_1.BatchClient {
92
111
  return this.send(command, optionsOrCb);
93
112
  }
94
113
  }
114
+ deleteSchedulingPolicy(args, optionsOrCb, cb) {
115
+ const command = new DeleteSchedulingPolicyCommand_1.DeleteSchedulingPolicyCommand(args);
116
+ if (typeof optionsOrCb === "function") {
117
+ this.send(command, optionsOrCb);
118
+ }
119
+ else if (typeof cb === "function") {
120
+ if (typeof optionsOrCb !== "object")
121
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
+ this.send(command, optionsOrCb || {}, cb);
123
+ }
124
+ else {
125
+ return this.send(command, optionsOrCb);
126
+ }
127
+ }
95
128
  deregisterJobDefinition(args, optionsOrCb, cb) {
96
129
  const command = new DeregisterJobDefinitionCommand_1.DeregisterJobDefinitionCommand(args);
97
130
  if (typeof optionsOrCb === "function") {
@@ -162,6 +195,20 @@ class Batch extends BatchClient_1.BatchClient {
162
195
  return this.send(command, optionsOrCb);
163
196
  }
164
197
  }
198
+ describeSchedulingPolicies(args, optionsOrCb, cb) {
199
+ const command = new DescribeSchedulingPoliciesCommand_1.DescribeSchedulingPoliciesCommand(args);
200
+ if (typeof optionsOrCb === "function") {
201
+ this.send(command, optionsOrCb);
202
+ }
203
+ else if (typeof cb === "function") {
204
+ if (typeof optionsOrCb !== "object")
205
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
+ this.send(command, optionsOrCb || {}, cb);
207
+ }
208
+ else {
209
+ return this.send(command, optionsOrCb);
210
+ }
211
+ }
165
212
  listJobs(args, optionsOrCb, cb) {
166
213
  const command = new ListJobsCommand_1.ListJobsCommand(args);
167
214
  if (typeof optionsOrCb === "function") {
@@ -176,6 +223,20 @@ class Batch extends BatchClient_1.BatchClient {
176
223
  return this.send(command, optionsOrCb);
177
224
  }
178
225
  }
226
+ listSchedulingPolicies(args, optionsOrCb, cb) {
227
+ const command = new ListSchedulingPoliciesCommand_1.ListSchedulingPoliciesCommand(args);
228
+ if (typeof optionsOrCb === "function") {
229
+ this.send(command, optionsOrCb);
230
+ }
231
+ else if (typeof cb === "function") {
232
+ if (typeof optionsOrCb !== "object")
233
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
+ this.send(command, optionsOrCb || {}, cb);
235
+ }
236
+ else {
237
+ return this.send(command, optionsOrCb);
238
+ }
239
+ }
179
240
  listTagsForResource(args, optionsOrCb, cb) {
180
241
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
181
242
  if (typeof optionsOrCb === "function") {
@@ -288,5 +349,19 @@ class Batch extends BatchClient_1.BatchClient {
288
349
  return this.send(command, optionsOrCb);
289
350
  }
290
351
  }
352
+ updateSchedulingPolicy(args, optionsOrCb, cb) {
353
+ const command = new UpdateSchedulingPolicyCommand_1.UpdateSchedulingPolicyCommand(args);
354
+ if (typeof optionsOrCb === "function") {
355
+ this.send(command, optionsOrCb);
356
+ }
357
+ else if (typeof cb === "function") {
358
+ if (typeof optionsOrCb !== "object")
359
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
360
+ this.send(command, optionsOrCb || {}, cb);
361
+ }
362
+ else {
363
+ return this.send(command, optionsOrCb);
364
+ }
365
+ }
291
366
  }
292
367
  exports.Batch = Batch;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateSchedulingPolicyCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateSchedulingPolicyCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BatchClient";
18
+ const commandName = "CreateSchedulingPolicyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateSchedulingPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateSchedulingPolicyResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateSchedulingPolicyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateSchedulingPolicyCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateSchedulingPolicyCommand = CreateSchedulingPolicyCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteSchedulingPolicyCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteSchedulingPolicyCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BatchClient";
18
+ const commandName = "DeleteSchedulingPolicyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteSchedulingPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteSchedulingPolicyResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DeleteSchedulingPolicyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteSchedulingPolicyCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteSchedulingPolicyCommand = DeleteSchedulingPolicyCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeSchedulingPoliciesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DescribeSchedulingPoliciesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BatchClient";
18
+ const commandName = "DescribeSchedulingPoliciesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeSchedulingPoliciesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeSchedulingPoliciesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DescribeSchedulingPoliciesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DescribeSchedulingPoliciesCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeSchedulingPoliciesCommand = DescribeSchedulingPoliciesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListSchedulingPoliciesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListSchedulingPoliciesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BatchClient";
18
+ const commandName = "ListSchedulingPoliciesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListSchedulingPoliciesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListSchedulingPoliciesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1ListSchedulingPoliciesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1ListSchedulingPoliciesCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListSchedulingPoliciesCommand = ListSchedulingPoliciesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSchedulingPolicyCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateSchedulingPolicyCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BatchClient";
18
+ const commandName = "UpdateSchedulingPolicyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateSchedulingPolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateSchedulingPolicyResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1UpdateSchedulingPolicyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1UpdateSchedulingPolicyCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateSchedulingPolicyCommand = UpdateSchedulingPolicyCommand;
@@ -4,14 +4,18 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CancelJobCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CreateComputeEnvironmentCommand"), exports);
6
6
  tslib_1.__exportStar(require("./CreateJobQueueCommand"), exports);
7
+ tslib_1.__exportStar(require("./CreateSchedulingPolicyCommand"), exports);
7
8
  tslib_1.__exportStar(require("./DeleteComputeEnvironmentCommand"), exports);
8
9
  tslib_1.__exportStar(require("./DeleteJobQueueCommand"), exports);
10
+ tslib_1.__exportStar(require("./DeleteSchedulingPolicyCommand"), exports);
9
11
  tslib_1.__exportStar(require("./DeregisterJobDefinitionCommand"), exports);
10
12
  tslib_1.__exportStar(require("./DescribeComputeEnvironmentsCommand"), exports);
11
13
  tslib_1.__exportStar(require("./DescribeJobDefinitionsCommand"), exports);
12
14
  tslib_1.__exportStar(require("./DescribeJobQueuesCommand"), exports);
13
15
  tslib_1.__exportStar(require("./DescribeJobsCommand"), exports);
16
+ tslib_1.__exportStar(require("./DescribeSchedulingPoliciesCommand"), exports);
14
17
  tslib_1.__exportStar(require("./ListJobsCommand"), exports);
18
+ tslib_1.__exportStar(require("./ListSchedulingPoliciesCommand"), exports);
15
19
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
16
20
  tslib_1.__exportStar(require("./RegisterJobDefinitionCommand"), exports);
17
21
  tslib_1.__exportStar(require("./SubmitJobCommand"), exports);
@@ -20,3 +24,4 @@ tslib_1.__exportStar(require("./TerminateJobCommand"), exports);
20
24
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
21
25
  tslib_1.__exportStar(require("./UpdateComputeEnvironmentCommand"), exports);
22
26
  tslib_1.__exportStar(require("./UpdateJobQueueCommand"), exports);
27
+ tslib_1.__exportStar(require("./UpdateSchedulingPolicyCommand"), exports);
@@ -3,29 +3,77 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
- "fips-us-east-1": {
7
- hostname: "fips.batch.us-east-1.amazonaws.com",
8
- signingRegion: "us-east-1",
6
+ "us-east-1": {
7
+ variants: [
8
+ {
9
+ hostname: "batch.us-east-1.amazonaws.com",
10
+ tags: [],
11
+ },
12
+ {
13
+ hostname: "fips.batch.us-east-1.amazonaws.com",
14
+ tags: ["fips"],
15
+ },
16
+ ],
9
17
  },
10
- "fips-us-east-2": {
11
- hostname: "fips.batch.us-east-2.amazonaws.com",
12
- signingRegion: "us-east-2",
18
+ "us-east-2": {
19
+ variants: [
20
+ {
21
+ hostname: "batch.us-east-2.amazonaws.com",
22
+ tags: [],
23
+ },
24
+ {
25
+ hostname: "fips.batch.us-east-2.amazonaws.com",
26
+ tags: ["fips"],
27
+ },
28
+ ],
13
29
  },
14
- "fips-us-gov-east-1": {
15
- hostname: "batch.us-gov-east-1.amazonaws.com",
16
- signingRegion: "us-gov-east-1",
30
+ "us-gov-east-1": {
31
+ variants: [
32
+ {
33
+ hostname: "batch.us-gov-east-1.amazonaws.com",
34
+ tags: [],
35
+ },
36
+ {
37
+ hostname: "batch.us-gov-east-1.amazonaws.com",
38
+ tags: ["fips"],
39
+ },
40
+ ],
17
41
  },
18
- "fips-us-gov-west-1": {
19
- hostname: "batch.us-gov-west-1.amazonaws.com",
20
- signingRegion: "us-gov-west-1",
42
+ "us-gov-west-1": {
43
+ variants: [
44
+ {
45
+ hostname: "batch.us-gov-west-1.amazonaws.com",
46
+ tags: [],
47
+ },
48
+ {
49
+ hostname: "batch.us-gov-west-1.amazonaws.com",
50
+ tags: ["fips"],
51
+ },
52
+ ],
21
53
  },
22
- "fips-us-west-1": {
23
- hostname: "fips.batch.us-west-1.amazonaws.com",
24
- signingRegion: "us-west-1",
54
+ "us-west-1": {
55
+ variants: [
56
+ {
57
+ hostname: "batch.us-west-1.amazonaws.com",
58
+ tags: [],
59
+ },
60
+ {
61
+ hostname: "fips.batch.us-west-1.amazonaws.com",
62
+ tags: ["fips"],
63
+ },
64
+ ],
25
65
  },
26
- "fips-us-west-2": {
27
- hostname: "fips.batch.us-west-2.amazonaws.com",
28
- signingRegion: "us-west-2",
66
+ "us-west-2": {
67
+ variants: [
68
+ {
69
+ hostname: "batch.us-west-2.amazonaws.com",
70
+ tags: [],
71
+ },
72
+ {
73
+ hostname: "fips.batch.us-west-2.amazonaws.com",
74
+ tags: ["fips"],
75
+ },
76
+ ],
29
77
  },
30
78
  };
31
79
  const partitionHash = {
@@ -58,27 +106,96 @@ const partitionHash = {
58
106
  "us-west-2",
59
107
  ],
60
108
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
61
- hostname: "batch.{region}.amazonaws.com",
109
+ variants: [
110
+ {
111
+ hostname: "batch.{region}.amazonaws.com",
112
+ tags: [],
113
+ },
114
+ {
115
+ hostname: "fips.batch.{region}.amazonaws.com",
116
+ tags: ["fips"],
117
+ },
118
+ {
119
+ hostname: "batch-fips.{region}.api.aws",
120
+ tags: ["dualstack", "fips"],
121
+ },
122
+ {
123
+ hostname: "batch.{region}.api.aws",
124
+ tags: ["dualstack"],
125
+ },
126
+ ],
62
127
  },
63
128
  "aws-cn": {
64
129
  regions: ["cn-north-1", "cn-northwest-1"],
65
130
  regionRegex: "^cn\\-\\w+\\-\\d+$",
66
- hostname: "batch.{region}.amazonaws.com.cn",
131
+ variants: [
132
+ {
133
+ hostname: "batch.{region}.amazonaws.com.cn",
134
+ tags: [],
135
+ },
136
+ {
137
+ hostname: "batch-fips.{region}.amazonaws.com.cn",
138
+ tags: ["fips"],
139
+ },
140
+ {
141
+ hostname: "batch-fips.{region}.api.amazonwebservices.com.cn",
142
+ tags: ["dualstack", "fips"],
143
+ },
144
+ {
145
+ hostname: "batch.{region}.api.amazonwebservices.com.cn",
146
+ tags: ["dualstack"],
147
+ },
148
+ ],
67
149
  },
68
150
  "aws-iso": {
69
151
  regions: ["us-iso-east-1", "us-iso-west-1"],
70
152
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
71
- hostname: "batch.{region}.c2s.ic.gov",
153
+ variants: [
154
+ {
155
+ hostname: "batch.{region}.c2s.ic.gov",
156
+ tags: [],
157
+ },
158
+ {
159
+ hostname: "batch-fips.{region}.c2s.ic.gov",
160
+ tags: ["fips"],
161
+ },
162
+ ],
72
163
  },
73
164
  "aws-iso-b": {
74
165
  regions: ["us-isob-east-1"],
75
166
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
76
- hostname: "batch.{region}.sc2s.sgov.gov",
167
+ variants: [
168
+ {
169
+ hostname: "batch.{region}.sc2s.sgov.gov",
170
+ tags: [],
171
+ },
172
+ {
173
+ hostname: "batch-fips.{region}.sc2s.sgov.gov",
174
+ tags: ["fips"],
175
+ },
176
+ ],
77
177
  },
78
178
  "aws-us-gov": {
79
179
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
80
180
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
81
- hostname: "batch.{region}.amazonaws.com",
181
+ variants: [
182
+ {
183
+ hostname: "batch.{region}.amazonaws.com",
184
+ tags: [],
185
+ },
186
+ {
187
+ hostname: "batch.{region}.amazonaws.com",
188
+ tags: ["fips"],
189
+ },
190
+ {
191
+ hostname: "batch-fips.{region}.api.aws",
192
+ tags: ["dualstack", "fips"],
193
+ },
194
+ {
195
+ hostname: "batch.{region}.api.aws",
196
+ tags: ["dualstack"],
197
+ },
198
+ ],
82
199
  },
83
200
  };
84
201
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {