@aws-sdk/client-batch 3.183.0 → 3.186.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 (42) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Batch.js +105 -98
  4. package/dist-es/BatchClient.js +28 -22
  5. package/dist-es/commands/CancelJobCommand.js +28 -21
  6. package/dist-es/commands/CreateComputeEnvironmentCommand.js +28 -21
  7. package/dist-es/commands/CreateJobQueueCommand.js +28 -21
  8. package/dist-es/commands/CreateSchedulingPolicyCommand.js +28 -21
  9. package/dist-es/commands/DeleteComputeEnvironmentCommand.js +28 -21
  10. package/dist-es/commands/DeleteJobQueueCommand.js +28 -21
  11. package/dist-es/commands/DeleteSchedulingPolicyCommand.js +28 -21
  12. package/dist-es/commands/DeregisterJobDefinitionCommand.js +28 -21
  13. package/dist-es/commands/DescribeComputeEnvironmentsCommand.js +28 -21
  14. package/dist-es/commands/DescribeJobDefinitionsCommand.js +28 -21
  15. package/dist-es/commands/DescribeJobQueuesCommand.js +28 -21
  16. package/dist-es/commands/DescribeJobsCommand.js +28 -21
  17. package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +28 -21
  18. package/dist-es/commands/ListJobsCommand.js +28 -21
  19. package/dist-es/commands/ListSchedulingPoliciesCommand.js +28 -21
  20. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  21. package/dist-es/commands/RegisterJobDefinitionCommand.js +28 -21
  22. package/dist-es/commands/SubmitJobCommand.js +28 -21
  23. package/dist-es/commands/TagResourceCommand.js +28 -21
  24. package/dist-es/commands/TerminateJobCommand.js +28 -21
  25. package/dist-es/commands/UntagResourceCommand.js +28 -21
  26. package/dist-es/commands/UpdateComputeEnvironmentCommand.js +28 -21
  27. package/dist-es/commands/UpdateJobQueueCommand.js +28 -21
  28. package/dist-es/commands/UpdateSchedulingPolicyCommand.js +28 -21
  29. package/dist-es/endpoints.js +8 -8
  30. package/dist-es/models/BatchServiceException.js +10 -5
  31. package/dist-es/models/models_0.js +122 -319
  32. package/dist-es/pagination/DescribeComputeEnvironmentsPaginator.js +68 -25
  33. package/dist-es/pagination/DescribeJobDefinitionsPaginator.js +68 -25
  34. package/dist-es/pagination/DescribeJobQueuesPaginator.js +68 -25
  35. package/dist-es/pagination/ListJobsPaginator.js +68 -25
  36. package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +68 -25
  37. package/dist-es/protocols/Aws_restJson1.js +2471 -2036
  38. package/dist-es/runtimeConfig.browser.js +12 -26
  39. package/dist-es/runtimeConfig.js +12 -30
  40. package/dist-es/runtimeConfig.native.js +5 -8
  41. package/dist-es/runtimeConfig.shared.js +11 -8
  42. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeJobsRequestFilterSensitiveLog, DescribeJobsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeJobsCommand, serializeAws_restJson1DescribeJobsCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeJobsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeJobsCommand = (function (_super) {
7
+ __extends(DescribeJobsCommand, _super);
8
+ function DescribeJobsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "DescribeJobsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "DescribeJobsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeJobsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeJobsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeJobsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeJobsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeJobsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeJobsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeJobsCommand;
38
+ }($Command));
39
+ export { DescribeJobsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeSchedulingPoliciesRequestFilterSensitiveLog, DescribeSchedulingPoliciesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeSchedulingPoliciesCommand, serializeAws_restJson1DescribeSchedulingPoliciesCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeSchedulingPoliciesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeSchedulingPoliciesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "DescribeSchedulingPoliciesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DescribeSchedulingPoliciesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeSchedulingPoliciesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1DescribeSchedulingPoliciesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeSchedulingPoliciesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeSchedulingPoliciesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeSchedulingPoliciesCommand;
38
+ }($Command));
39
+ export { DescribeSchedulingPoliciesCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListJobsRequestFilterSensitiveLog, ListJobsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListJobsCommand, serializeAws_restJson1ListJobsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListJobsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListJobsCommand = (function (_super) {
7
+ __extends(ListJobsCommand, _super);
8
+ function ListJobsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "ListJobsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "ListJobsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListJobsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListJobsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListJobsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListJobsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListJobsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListJobsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListJobsCommand;
38
+ }($Command));
39
+ export { ListJobsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListSchedulingPoliciesRequestFilterSensitiveLog, ListSchedulingPoliciesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListSchedulingPoliciesCommand, serializeAws_restJson1ListSchedulingPoliciesCommand, } from "../protocols/Aws_restJson1";
5
- export class ListSchedulingPoliciesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListSchedulingPoliciesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "ListSchedulingPoliciesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: ListSchedulingPoliciesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListSchedulingPoliciesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1ListSchedulingPoliciesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListSchedulingPoliciesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListSchedulingPoliciesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListSchedulingPoliciesCommand;
38
+ }($Command));
39
+ export { ListSchedulingPoliciesCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class ListTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "ListTagsForResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { RegisterJobDefinitionRequestFilterSensitiveLog, RegisterJobDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1RegisterJobDefinitionCommand, serializeAws_restJson1RegisterJobDefinitionCommand, } from "../protocols/Aws_restJson1";
5
- export class RegisterJobDefinitionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var RegisterJobDefinitionCommand = (function (_super) {
7
+ __extends(RegisterJobDefinitionCommand, _super);
8
+ function RegisterJobDefinitionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RegisterJobDefinitionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "RegisterJobDefinitionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "RegisterJobDefinitionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: RegisterJobDefinitionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: RegisterJobDefinitionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ RegisterJobDefinitionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1RegisterJobDefinitionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RegisterJobDefinitionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1RegisterJobDefinitionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RegisterJobDefinitionCommand;
38
+ }($Command));
39
+ export { RegisterJobDefinitionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { SubmitJobRequestFilterSensitiveLog, SubmitJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1SubmitJobCommand, serializeAws_restJson1SubmitJobCommand, } from "../protocols/Aws_restJson1";
5
- export class SubmitJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var SubmitJobCommand = (function (_super) {
7
+ __extends(SubmitJobCommand, _super);
8
+ function SubmitJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SubmitJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "SubmitJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "SubmitJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: SubmitJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SubmitJobResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SubmitJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1SubmitJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SubmitJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1SubmitJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SubmitJobCommand;
38
+ }($Command));
39
+ export { SubmitJobCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class TagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "TagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1TagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1TagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { TerminateJobRequestFilterSensitiveLog, TerminateJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1TerminateJobCommand, serializeAws_restJson1TerminateJobCommand, } from "../protocols/Aws_restJson1";
5
- export class TerminateJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var TerminateJobCommand = (function (_super) {
7
+ __extends(TerminateJobCommand, _super);
8
+ function TerminateJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TerminateJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "TerminateJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "TerminateJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: TerminateJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: TerminateJobResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TerminateJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1TerminateJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TerminateJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1TerminateJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TerminateJobCommand;
38
+ }($Command));
39
+ export { TerminateJobCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class UntagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "BatchClient";
15
- const commandName = "UntagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BatchClient";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UntagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UntagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UntagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };