@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
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
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";
@@ -1,29 +1,77 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-us-east-1": {
5
- hostname: "fips.batch.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "batch.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "fips.batch.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-us-east-2": {
9
- hostname: "fips.batch.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "batch.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "fips.batch.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-us-gov-east-1": {
13
- hostname: "batch.us-gov-east-1.amazonaws.com",
14
- signingRegion: "us-gov-east-1",
28
+ "us-gov-east-1": {
29
+ variants: [
30
+ {
31
+ hostname: "batch.us-gov-east-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "batch.us-gov-east-1.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-us-gov-west-1": {
17
- hostname: "batch.us-gov-west-1.amazonaws.com",
18
- signingRegion: "us-gov-west-1",
40
+ "us-gov-west-1": {
41
+ variants: [
42
+ {
43
+ hostname: "batch.us-gov-west-1.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "batch.us-gov-west-1.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-us-west-1": {
21
- hostname: "fips.batch.us-west-1.amazonaws.com",
22
- signingRegion: "us-west-1",
52
+ "us-west-1": {
53
+ variants: [
54
+ {
55
+ hostname: "batch.us-west-1.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "fips.batch.us-west-1.amazonaws.com",
60
+ tags: ["fips"],
61
+ },
62
+ ],
23
63
  },
24
- "fips-us-west-2": {
25
- hostname: "fips.batch.us-west-2.amazonaws.com",
26
- signingRegion: "us-west-2",
64
+ "us-west-2": {
65
+ variants: [
66
+ {
67
+ hostname: "batch.us-west-2.amazonaws.com",
68
+ tags: [],
69
+ },
70
+ {
71
+ hostname: "fips.batch.us-west-2.amazonaws.com",
72
+ tags: ["fips"],
73
+ },
74
+ ],
27
75
  },
28
76
  };
29
77
  var partitionHash = {
@@ -56,27 +104,96 @@ var partitionHash = {
56
104
  "us-west-2",
57
105
  ],
58
106
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
59
- hostname: "batch.{region}.amazonaws.com",
107
+ variants: [
108
+ {
109
+ hostname: "batch.{region}.amazonaws.com",
110
+ tags: [],
111
+ },
112
+ {
113
+ hostname: "fips.batch.{region}.amazonaws.com",
114
+ tags: ["fips"],
115
+ },
116
+ {
117
+ hostname: "batch-fips.{region}.api.aws",
118
+ tags: ["dualstack", "fips"],
119
+ },
120
+ {
121
+ hostname: "batch.{region}.api.aws",
122
+ tags: ["dualstack"],
123
+ },
124
+ ],
60
125
  },
61
126
  "aws-cn": {
62
127
  regions: ["cn-north-1", "cn-northwest-1"],
63
128
  regionRegex: "^cn\\-\\w+\\-\\d+$",
64
- hostname: "batch.{region}.amazonaws.com.cn",
129
+ variants: [
130
+ {
131
+ hostname: "batch.{region}.amazonaws.com.cn",
132
+ tags: [],
133
+ },
134
+ {
135
+ hostname: "batch-fips.{region}.amazonaws.com.cn",
136
+ tags: ["fips"],
137
+ },
138
+ {
139
+ hostname: "batch-fips.{region}.api.amazonwebservices.com.cn",
140
+ tags: ["dualstack", "fips"],
141
+ },
142
+ {
143
+ hostname: "batch.{region}.api.amazonwebservices.com.cn",
144
+ tags: ["dualstack"],
145
+ },
146
+ ],
65
147
  },
66
148
  "aws-iso": {
67
149
  regions: ["us-iso-east-1", "us-iso-west-1"],
68
150
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
69
- hostname: "batch.{region}.c2s.ic.gov",
151
+ variants: [
152
+ {
153
+ hostname: "batch.{region}.c2s.ic.gov",
154
+ tags: [],
155
+ },
156
+ {
157
+ hostname: "batch-fips.{region}.c2s.ic.gov",
158
+ tags: ["fips"],
159
+ },
160
+ ],
70
161
  },
71
162
  "aws-iso-b": {
72
163
  regions: ["us-isob-east-1"],
73
164
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
74
- hostname: "batch.{region}.sc2s.sgov.gov",
165
+ variants: [
166
+ {
167
+ hostname: "batch.{region}.sc2s.sgov.gov",
168
+ tags: [],
169
+ },
170
+ {
171
+ hostname: "batch-fips.{region}.sc2s.sgov.gov",
172
+ tags: ["fips"],
173
+ },
174
+ ],
75
175
  },
76
176
  "aws-us-gov": {
77
177
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
78
178
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
79
- hostname: "batch.{region}.amazonaws.com",
179
+ variants: [
180
+ {
181
+ hostname: "batch.{region}.amazonaws.com",
182
+ tags: [],
183
+ },
184
+ {
185
+ hostname: "batch.{region}.amazonaws.com",
186
+ tags: ["fips"],
187
+ },
188
+ {
189
+ hostname: "batch-fips.{region}.api.aws",
190
+ tags: ["dualstack", "fips"],
191
+ },
192
+ {
193
+ hostname: "batch.{region}.api.aws",
194
+ tags: ["dualstack"],
195
+ },
196
+ ],
80
197
  },
81
198
  };
82
199
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {