@aws-sdk/client-batch 3.185.0 → 3.188.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 (41) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Batch.js +98 -105
  3. package/dist-es/BatchClient.js +22 -28
  4. package/dist-es/commands/CancelJobCommand.js +21 -28
  5. package/dist-es/commands/CreateComputeEnvironmentCommand.js +21 -28
  6. package/dist-es/commands/CreateJobQueueCommand.js +21 -28
  7. package/dist-es/commands/CreateSchedulingPolicyCommand.js +21 -28
  8. package/dist-es/commands/DeleteComputeEnvironmentCommand.js +21 -28
  9. package/dist-es/commands/DeleteJobQueueCommand.js +21 -28
  10. package/dist-es/commands/DeleteSchedulingPolicyCommand.js +21 -28
  11. package/dist-es/commands/DeregisterJobDefinitionCommand.js +21 -28
  12. package/dist-es/commands/DescribeComputeEnvironmentsCommand.js +21 -28
  13. package/dist-es/commands/DescribeJobDefinitionsCommand.js +21 -28
  14. package/dist-es/commands/DescribeJobQueuesCommand.js +21 -28
  15. package/dist-es/commands/DescribeJobsCommand.js +21 -28
  16. package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +21 -28
  17. package/dist-es/commands/ListJobsCommand.js +21 -28
  18. package/dist-es/commands/ListSchedulingPoliciesCommand.js +21 -28
  19. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  20. package/dist-es/commands/RegisterJobDefinitionCommand.js +21 -28
  21. package/dist-es/commands/SubmitJobCommand.js +21 -28
  22. package/dist-es/commands/TagResourceCommand.js +21 -28
  23. package/dist-es/commands/TerminateJobCommand.js +21 -28
  24. package/dist-es/commands/UntagResourceCommand.js +21 -28
  25. package/dist-es/commands/UpdateComputeEnvironmentCommand.js +21 -28
  26. package/dist-es/commands/UpdateJobQueueCommand.js +21 -28
  27. package/dist-es/commands/UpdateSchedulingPolicyCommand.js +21 -28
  28. package/dist-es/endpoints.js +8 -8
  29. package/dist-es/models/BatchServiceException.js +5 -10
  30. package/dist-es/models/models_0.js +319 -122
  31. package/dist-es/pagination/DescribeComputeEnvironmentsPaginator.js +25 -68
  32. package/dist-es/pagination/DescribeJobDefinitionsPaginator.js +25 -68
  33. package/dist-es/pagination/DescribeJobQueuesPaginator.js +25 -68
  34. package/dist-es/pagination/ListJobsPaginator.js +25 -68
  35. package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +25 -68
  36. package/dist-es/protocols/Aws_restJson1.js +2036 -2471
  37. package/dist-es/runtimeConfig.browser.js +26 -12
  38. package/dist-es/runtimeConfig.js +30 -12
  39. package/dist-es/runtimeConfig.native.js +8 -5
  40. package/dist-es/runtimeConfig.shared.js +8 -11
  41. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateComputeEnvironmentRequestFilterSensitiveLog, CreateComputeEnvironmentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateComputeEnvironmentCommand, serializeAws_restJson1CreateComputeEnvironmentCommand, } from "../protocols/Aws_restJson1";
6
- var CreateComputeEnvironmentCommand = (function (_super) {
7
- __extends(CreateComputeEnvironmentCommand, _super);
8
- function CreateComputeEnvironmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateComputeEnvironmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateComputeEnvironmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "CreateComputeEnvironmentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "CreateComputeEnvironmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateComputeEnvironmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateComputeEnvironmentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateComputeEnvironmentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateComputeEnvironmentCommand(input, context);
33
- };
34
- CreateComputeEnvironmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateComputeEnvironmentCommand(output, context);
36
- };
37
- return CreateComputeEnvironmentCommand;
38
- }($Command));
39
- export { CreateComputeEnvironmentCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateJobQueueRequestFilterSensitiveLog, CreateJobQueueResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateJobQueueCommand, serializeAws_restJson1CreateJobQueueCommand, } from "../protocols/Aws_restJson1";
6
- var CreateJobQueueCommand = (function (_super) {
7
- __extends(CreateJobQueueCommand, _super);
8
- function CreateJobQueueCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateJobQueueCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateJobQueueCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "CreateJobQueueCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "CreateJobQueueCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateJobQueueRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateJobQueueResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateJobQueueCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateJobQueueCommand(input, context);
33
- };
34
- CreateJobQueueCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateJobQueueCommand(output, context);
36
- };
37
- return CreateJobQueueCommand;
38
- }($Command));
39
- export { CreateJobQueueCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateSchedulingPolicyRequestFilterSensitiveLog, CreateSchedulingPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  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;
5
+ export class CreateSchedulingPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateSchedulingPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "CreateSchedulingPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateSchedulingPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateSchedulingPolicyResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateSchedulingPolicyCommand(input, context);
33
- };
34
- CreateSchedulingPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateSchedulingPolicyCommand(output, context);
36
- };
37
- return CreateSchedulingPolicyCommand;
38
- }($Command));
39
- export { CreateSchedulingPolicyCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteComputeEnvironmentRequestFilterSensitiveLog, DeleteComputeEnvironmentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteComputeEnvironmentCommand, serializeAws_restJson1DeleteComputeEnvironmentCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteComputeEnvironmentCommand = (function (_super) {
7
- __extends(DeleteComputeEnvironmentCommand, _super);
8
- function DeleteComputeEnvironmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteComputeEnvironmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteComputeEnvironmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "DeleteComputeEnvironmentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "DeleteComputeEnvironmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteComputeEnvironmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteComputeEnvironmentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteComputeEnvironmentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteComputeEnvironmentCommand(input, context);
33
- };
34
- DeleteComputeEnvironmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteComputeEnvironmentCommand(output, context);
36
- };
37
- return DeleteComputeEnvironmentCommand;
38
- }($Command));
39
- export { DeleteComputeEnvironmentCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteJobQueueRequestFilterSensitiveLog, DeleteJobQueueResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteJobQueueCommand, serializeAws_restJson1DeleteJobQueueCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteJobQueueCommand = (function (_super) {
7
- __extends(DeleteJobQueueCommand, _super);
8
- function DeleteJobQueueCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteJobQueueCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteJobQueueCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "DeleteJobQueueCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "DeleteJobQueueCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteJobQueueRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteJobQueueResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteJobQueueCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteJobQueueCommand(input, context);
33
- };
34
- DeleteJobQueueCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteJobQueueCommand(output, context);
36
- };
37
- return DeleteJobQueueCommand;
38
- }($Command));
39
- export { DeleteJobQueueCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteSchedulingPolicyRequestFilterSensitiveLog, DeleteSchedulingPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  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;
5
+ export class DeleteSchedulingPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSchedulingPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "DeleteSchedulingPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSchedulingPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSchedulingPolicyResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteSchedulingPolicyCommand(input, context);
33
- };
34
- DeleteSchedulingPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteSchedulingPolicyCommand(output, context);
36
- };
37
- return DeleteSchedulingPolicyCommand;
38
- }($Command));
39
- export { DeleteSchedulingPolicyCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeregisterJobDefinitionRequestFilterSensitiveLog, DeregisterJobDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeregisterJobDefinitionCommand, serializeAws_restJson1DeregisterJobDefinitionCommand, } from "../protocols/Aws_restJson1";
6
- var DeregisterJobDefinitionCommand = (function (_super) {
7
- __extends(DeregisterJobDefinitionCommand, _super);
8
- function DeregisterJobDefinitionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeregisterJobDefinitionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeregisterJobDefinitionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "DeregisterJobDefinitionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "DeregisterJobDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeregisterJobDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeregisterJobDefinitionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeregisterJobDefinitionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeregisterJobDefinitionCommand(input, context);
33
- };
34
- DeregisterJobDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeregisterJobDefinitionCommand(output, context);
36
- };
37
- return DeregisterJobDefinitionCommand;
38
- }($Command));
39
- export { DeregisterJobDefinitionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeComputeEnvironmentsRequestFilterSensitiveLog, DescribeComputeEnvironmentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeComputeEnvironmentsCommand, serializeAws_restJson1DescribeComputeEnvironmentsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeComputeEnvironmentsCommand = (function (_super) {
7
- __extends(DescribeComputeEnvironmentsCommand, _super);
8
- function DescribeComputeEnvironmentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeComputeEnvironmentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeComputeEnvironmentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "DescribeComputeEnvironmentsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "DescribeComputeEnvironmentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeComputeEnvironmentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeComputeEnvironmentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeComputeEnvironmentsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeComputeEnvironmentsCommand(input, context);
33
- };
34
- DescribeComputeEnvironmentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeComputeEnvironmentsCommand(output, context);
36
- };
37
- return DescribeComputeEnvironmentsCommand;
38
- }($Command));
39
- export { DescribeComputeEnvironmentsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeJobDefinitionsRequestFilterSensitiveLog, DescribeJobDefinitionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeJobDefinitionsCommand, serializeAws_restJson1DescribeJobDefinitionsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeJobDefinitionsCommand = (function (_super) {
7
- __extends(DescribeJobDefinitionsCommand, _super);
8
- function DescribeJobDefinitionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeJobDefinitionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeJobDefinitionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "DescribeJobDefinitionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "DescribeJobDefinitionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeJobDefinitionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeJobDefinitionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeJobDefinitionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeJobDefinitionsCommand(input, context);
33
- };
34
- DescribeJobDefinitionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeJobDefinitionsCommand(output, context);
36
- };
37
- return DescribeJobDefinitionsCommand;
38
- }($Command));
39
- export { DescribeJobDefinitionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeJobQueuesRequestFilterSensitiveLog, DescribeJobQueuesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeJobQueuesCommand, serializeAws_restJson1DescribeJobQueuesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeJobQueuesCommand = (function (_super) {
7
- __extends(DescribeJobQueuesCommand, _super);
8
- function DescribeJobQueuesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeJobQueuesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeJobQueuesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "DescribeJobQueuesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "DescribeJobQueuesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeJobQueuesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeJobQueuesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeJobQueuesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeJobQueuesCommand(input, context);
33
- };
34
- DescribeJobQueuesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeJobQueuesCommand(output, context);
36
- };
37
- return DescribeJobQueuesCommand;
38
- }($Command));
39
- export { DescribeJobQueuesCommand };
31
+ }
32
+ }