@aws-sdk/client-drs 3.180.0 → 3.183.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 (53) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +38 -32
  3. package/dist-es/Drs.js +130 -137
  4. package/dist-es/DrsClient.js +22 -28
  5. package/dist-es/commands/CreateExtendedSourceServerCommand.js +21 -28
  6. package/dist-es/commands/CreateReplicationConfigurationTemplateCommand.js +21 -28
  7. package/dist-es/commands/DeleteJobCommand.js +21 -28
  8. package/dist-es/commands/DeleteRecoveryInstanceCommand.js +22 -29
  9. package/dist-es/commands/DeleteReplicationConfigurationTemplateCommand.js +21 -28
  10. package/dist-es/commands/DeleteSourceServerCommand.js +21 -28
  11. package/dist-es/commands/DescribeJobLogItemsCommand.js +21 -28
  12. package/dist-es/commands/DescribeJobsCommand.js +21 -28
  13. package/dist-es/commands/DescribeRecoveryInstancesCommand.js +21 -28
  14. package/dist-es/commands/DescribeRecoverySnapshotsCommand.js +21 -28
  15. package/dist-es/commands/DescribeReplicationConfigurationTemplatesCommand.js +21 -28
  16. package/dist-es/commands/DescribeSourceServersCommand.js +21 -28
  17. package/dist-es/commands/DisconnectRecoveryInstanceCommand.js +22 -29
  18. package/dist-es/commands/DisconnectSourceServerCommand.js +21 -28
  19. package/dist-es/commands/GetFailbackReplicationConfigurationCommand.js +21 -28
  20. package/dist-es/commands/GetLaunchConfigurationCommand.js +21 -28
  21. package/dist-es/commands/GetReplicationConfigurationCommand.js +21 -28
  22. package/dist-es/commands/InitializeServiceCommand.js +21 -28
  23. package/dist-es/commands/ListExtensibleSourceServersCommand.js +21 -28
  24. package/dist-es/commands/ListStagingAccountsCommand.js +21 -28
  25. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  26. package/dist-es/commands/RetryDataReplicationCommand.js +21 -28
  27. package/dist-es/commands/StartFailbackLaunchCommand.js +21 -28
  28. package/dist-es/commands/StartRecoveryCommand.js +21 -28
  29. package/dist-es/commands/StopFailbackCommand.js +22 -29
  30. package/dist-es/commands/TagResourceCommand.js +22 -29
  31. package/dist-es/commands/TerminateRecoveryInstancesCommand.js +21 -28
  32. package/dist-es/commands/UntagResourceCommand.js +22 -29
  33. package/dist-es/commands/UpdateFailbackReplicationConfigurationCommand.js +22 -29
  34. package/dist-es/commands/UpdateLaunchConfigurationCommand.js +21 -28
  35. package/dist-es/commands/UpdateReplicationConfigurationCommand.js +21 -28
  36. package/dist-es/commands/UpdateReplicationConfigurationTemplateCommand.js +21 -28
  37. package/dist-es/endpoints.js +8 -8
  38. package/dist-es/models/DrsServiceException.js +5 -10
  39. package/dist-es/models/models_0.js +419 -204
  40. package/dist-es/pagination/DescribeJobLogItemsPaginator.js +25 -68
  41. package/dist-es/pagination/DescribeJobsPaginator.js +25 -68
  42. package/dist-es/pagination/DescribeRecoveryInstancesPaginator.js +25 -68
  43. package/dist-es/pagination/DescribeRecoverySnapshotsPaginator.js +25 -68
  44. package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +25 -68
  45. package/dist-es/pagination/DescribeSourceServersPaginator.js +25 -68
  46. package/dist-es/pagination/ListExtensibleSourceServersPaginator.js +25 -68
  47. package/dist-es/pagination/ListStagingAccountsPaginator.js +25 -68
  48. package/dist-es/protocols/Aws_restJson1.js +2882 -3761
  49. package/dist-es/runtimeConfig.browser.js +26 -12
  50. package/dist-es/runtimeConfig.js +30 -12
  51. package/dist-es/runtimeConfig.native.js +8 -5
  52. package/dist-es/runtimeConfig.shared.js +8 -11
  53. 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 { CreateExtendedSourceServerRequestFilterSensitiveLog, CreateExtendedSourceServerResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateExtendedSourceServerCommand, serializeAws_restJson1CreateExtendedSourceServerCommand, } from "../protocols/Aws_restJson1";
6
- var CreateExtendedSourceServerCommand = (function (_super) {
7
- __extends(CreateExtendedSourceServerCommand, _super);
8
- function CreateExtendedSourceServerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateExtendedSourceServerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateExtendedSourceServerCommand.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 = "DrsClient";
18
- var commandName = "CreateExtendedSourceServerCommand";
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 = "DrsClient";
15
+ const commandName = "CreateExtendedSourceServerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateExtendedSourceServerRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateExtendedSourceServerResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateExtendedSourceServerCommand.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_restJson1CreateExtendedSourceServerCommand(input, context);
33
- };
34
- CreateExtendedSourceServerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateExtendedSourceServerCommand(output, context);
36
- };
37
- return CreateExtendedSourceServerCommand;
38
- }($Command));
39
- export { CreateExtendedSourceServerCommand };
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 { CreateReplicationConfigurationTemplateRequestFilterSensitiveLog, ReplicationConfigurationTemplateFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand, serializeAws_restJson1CreateReplicationConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var CreateReplicationConfigurationTemplateCommand = (function (_super) {
7
- __extends(CreateReplicationConfigurationTemplateCommand, _super);
8
- function CreateReplicationConfigurationTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateReplicationConfigurationTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateReplicationConfigurationTemplateCommand.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 = "DrsClient";
18
- var commandName = "CreateReplicationConfigurationTemplateCommand";
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 = "DrsClient";
15
+ const commandName = "CreateReplicationConfigurationTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateReplicationConfigurationTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ReplicationConfigurationTemplateFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateReplicationConfigurationTemplateCommand.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_restJson1CreateReplicationConfigurationTemplateCommand(input, context);
33
- };
34
- CreateReplicationConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand(output, context);
36
- };
37
- return CreateReplicationConfigurationTemplateCommand;
38
- }($Command));
39
- export { CreateReplicationConfigurationTemplateCommand };
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 { DeleteJobRequestFilterSensitiveLog, DeleteJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteJobCommand, serializeAws_restJson1DeleteJobCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteJobCommand = (function (_super) {
7
- __extends(DeleteJobCommand, _super);
8
- function DeleteJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteJobCommand.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 = "DrsClient";
18
- var commandName = "DeleteJobCommand";
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 = "DrsClient";
15
+ const commandName = "DeleteJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteJobCommand.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_restJson1DeleteJobCommand(input, context);
33
- };
34
- DeleteJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteJobCommand(output, context);
36
- };
37
- return DeleteJobCommand;
38
- }($Command));
39
- export { DeleteJobCommand };
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 { DeleteRecoveryInstanceRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteRecoveryInstanceCommand, serializeAws_restJson1DeleteRecoveryInstanceCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteRecoveryInstanceCommand = (function (_super) {
7
- __extends(DeleteRecoveryInstanceCommand, _super);
8
- function DeleteRecoveryInstanceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteRecoveryInstanceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteRecoveryInstanceCommand.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 = "DrsClient";
18
- var commandName = "DeleteRecoveryInstanceCommand";
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 = "DrsClient";
15
+ const commandName = "DeleteRecoveryInstanceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteRecoveryInstanceRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteRecoveryInstanceCommand.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_restJson1DeleteRecoveryInstanceCommand(input, context);
33
- };
34
- DeleteRecoveryInstanceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteRecoveryInstanceCommand(output, context);
36
- };
37
- return DeleteRecoveryInstanceCommand;
38
- }($Command));
39
- export { DeleteRecoveryInstanceCommand };
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 { DeleteReplicationConfigurationTemplateRequestFilterSensitiveLog, DeleteReplicationConfigurationTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand, serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteReplicationConfigurationTemplateCommand = (function (_super) {
7
- __extends(DeleteReplicationConfigurationTemplateCommand, _super);
8
- function DeleteReplicationConfigurationTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteReplicationConfigurationTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteReplicationConfigurationTemplateCommand.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 = "DrsClient";
18
- var commandName = "DeleteReplicationConfigurationTemplateCommand";
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 = "DrsClient";
15
+ const commandName = "DeleteReplicationConfigurationTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteReplicationConfigurationTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteReplicationConfigurationTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteReplicationConfigurationTemplateCommand.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_restJson1DeleteReplicationConfigurationTemplateCommand(input, context);
33
- };
34
- DeleteReplicationConfigurationTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand(output, context);
36
- };
37
- return DeleteReplicationConfigurationTemplateCommand;
38
- }($Command));
39
- export { DeleteReplicationConfigurationTemplateCommand };
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 { DeleteSourceServerRequestFilterSensitiveLog, DeleteSourceServerResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteSourceServerCommand, serializeAws_restJson1DeleteSourceServerCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteSourceServerCommand = (function (_super) {
7
- __extends(DeleteSourceServerCommand, _super);
8
- function DeleteSourceServerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSourceServerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSourceServerCommand.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 = "DrsClient";
18
- var commandName = "DeleteSourceServerCommand";
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 = "DrsClient";
15
+ const commandName = "DeleteSourceServerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSourceServerRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSourceServerResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSourceServerCommand.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_restJson1DeleteSourceServerCommand(input, context);
33
- };
34
- DeleteSourceServerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteSourceServerCommand(output, context);
36
- };
37
- return DeleteSourceServerCommand;
38
- }($Command));
39
- export { DeleteSourceServerCommand };
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 { DescribeJobLogItemsRequestFilterSensitiveLog, DescribeJobLogItemsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeJobLogItemsCommand, serializeAws_restJson1DescribeJobLogItemsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeJobLogItemsCommand = (function (_super) {
7
- __extends(DescribeJobLogItemsCommand, _super);
8
- function DescribeJobLogItemsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeJobLogItemsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeJobLogItemsCommand.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 = "DrsClient";
18
- var commandName = "DescribeJobLogItemsCommand";
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 = "DrsClient";
15
+ const commandName = "DescribeJobLogItemsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeJobLogItemsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeJobLogItemsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeJobLogItemsCommand.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_restJson1DescribeJobLogItemsCommand(input, context);
33
- };
34
- DescribeJobLogItemsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeJobLogItemsCommand(output, context);
36
- };
37
- return DescribeJobLogItemsCommand;
38
- }($Command));
39
- export { DescribeJobLogItemsCommand };
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 { DescribeJobsRequestFilterSensitiveLog, DescribeJobsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeJobsCommand, serializeAws_restJson1DescribeJobsCommand, } from "../protocols/Aws_restJson1";
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;
5
+ export class DescribeJobsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeJobsCommand.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 = "DrsClient";
18
- var commandName = "DescribeJobsCommand";
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 = "DrsClient";
15
+ const commandName = "DescribeJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeJobsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeJobsResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeJobsCommand(input, context);
33
- };
34
- DescribeJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeJobsCommand(output, context);
36
- };
37
- return DescribeJobsCommand;
38
- }($Command));
39
- export { DescribeJobsCommand };
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 { DescribeRecoveryInstancesRequestFilterSensitiveLog, DescribeRecoveryInstancesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeRecoveryInstancesCommand, serializeAws_restJson1DescribeRecoveryInstancesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeRecoveryInstancesCommand = (function (_super) {
7
- __extends(DescribeRecoveryInstancesCommand, _super);
8
- function DescribeRecoveryInstancesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeRecoveryInstancesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeRecoveryInstancesCommand.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 = "DrsClient";
18
- var commandName = "DescribeRecoveryInstancesCommand";
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 = "DrsClient";
15
+ const commandName = "DescribeRecoveryInstancesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeRecoveryInstancesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeRecoveryInstancesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeRecoveryInstancesCommand.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_restJson1DescribeRecoveryInstancesCommand(input, context);
33
- };
34
- DescribeRecoveryInstancesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeRecoveryInstancesCommand(output, context);
36
- };
37
- return DescribeRecoveryInstancesCommand;
38
- }($Command));
39
- export { DescribeRecoveryInstancesCommand };
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 { DescribeRecoverySnapshotsRequestFilterSensitiveLog, DescribeRecoverySnapshotsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeRecoverySnapshotsCommand, serializeAws_restJson1DescribeRecoverySnapshotsCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeRecoverySnapshotsCommand = (function (_super) {
7
- __extends(DescribeRecoverySnapshotsCommand, _super);
8
- function DescribeRecoverySnapshotsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeRecoverySnapshotsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeRecoverySnapshotsCommand.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 = "DrsClient";
18
- var commandName = "DescribeRecoverySnapshotsCommand";
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 = "DrsClient";
15
+ const commandName = "DescribeRecoverySnapshotsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeRecoverySnapshotsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeRecoverySnapshotsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeRecoverySnapshotsCommand.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_restJson1DescribeRecoverySnapshotsCommand(input, context);
33
- };
34
- DescribeRecoverySnapshotsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeRecoverySnapshotsCommand(output, context);
36
- };
37
- return DescribeRecoverySnapshotsCommand;
38
- }($Command));
39
- export { DescribeRecoverySnapshotsCommand };
31
+ }
32
+ }