@aws-sdk/client-drs 3.186.0 → 3.190.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 (52) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Drs.js +130 -137
  3. package/dist-es/DrsClient.js +22 -28
  4. package/dist-es/commands/CreateExtendedSourceServerCommand.js +21 -28
  5. package/dist-es/commands/CreateReplicationConfigurationTemplateCommand.js +21 -28
  6. package/dist-es/commands/DeleteJobCommand.js +21 -28
  7. package/dist-es/commands/DeleteRecoveryInstanceCommand.js +22 -29
  8. package/dist-es/commands/DeleteReplicationConfigurationTemplateCommand.js +21 -28
  9. package/dist-es/commands/DeleteSourceServerCommand.js +21 -28
  10. package/dist-es/commands/DescribeJobLogItemsCommand.js +21 -28
  11. package/dist-es/commands/DescribeJobsCommand.js +21 -28
  12. package/dist-es/commands/DescribeRecoveryInstancesCommand.js +21 -28
  13. package/dist-es/commands/DescribeRecoverySnapshotsCommand.js +21 -28
  14. package/dist-es/commands/DescribeReplicationConfigurationTemplatesCommand.js +21 -28
  15. package/dist-es/commands/DescribeSourceServersCommand.js +21 -28
  16. package/dist-es/commands/DisconnectRecoveryInstanceCommand.js +22 -29
  17. package/dist-es/commands/DisconnectSourceServerCommand.js +21 -28
  18. package/dist-es/commands/GetFailbackReplicationConfigurationCommand.js +21 -28
  19. package/dist-es/commands/GetLaunchConfigurationCommand.js +21 -28
  20. package/dist-es/commands/GetReplicationConfigurationCommand.js +21 -28
  21. package/dist-es/commands/InitializeServiceCommand.js +21 -28
  22. package/dist-es/commands/ListExtensibleSourceServersCommand.js +21 -28
  23. package/dist-es/commands/ListStagingAccountsCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/RetryDataReplicationCommand.js +21 -28
  26. package/dist-es/commands/StartFailbackLaunchCommand.js +21 -28
  27. package/dist-es/commands/StartRecoveryCommand.js +21 -28
  28. package/dist-es/commands/StopFailbackCommand.js +22 -29
  29. package/dist-es/commands/TagResourceCommand.js +22 -29
  30. package/dist-es/commands/TerminateRecoveryInstancesCommand.js +21 -28
  31. package/dist-es/commands/UntagResourceCommand.js +22 -29
  32. package/dist-es/commands/UpdateFailbackReplicationConfigurationCommand.js +22 -29
  33. package/dist-es/commands/UpdateLaunchConfigurationCommand.js +21 -28
  34. package/dist-es/commands/UpdateReplicationConfigurationCommand.js +21 -28
  35. package/dist-es/commands/UpdateReplicationConfigurationTemplateCommand.js +21 -28
  36. package/dist-es/endpoints.js +8 -8
  37. package/dist-es/models/DrsServiceException.js +5 -10
  38. package/dist-es/models/models_0.js +419 -204
  39. package/dist-es/pagination/DescribeJobLogItemsPaginator.js +25 -68
  40. package/dist-es/pagination/DescribeJobsPaginator.js +25 -68
  41. package/dist-es/pagination/DescribeRecoveryInstancesPaginator.js +25 -68
  42. package/dist-es/pagination/DescribeRecoverySnapshotsPaginator.js +25 -68
  43. package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +25 -68
  44. package/dist-es/pagination/DescribeSourceServersPaginator.js +25 -68
  45. package/dist-es/pagination/ListExtensibleSourceServersPaginator.js +25 -68
  46. package/dist-es/pagination/ListStagingAccountsPaginator.js +25 -68
  47. package/dist-es/protocols/Aws_restJson1.js +2882 -3774
  48. package/dist-es/runtimeConfig.browser.js +26 -12
  49. package/dist-es/runtimeConfig.js +30 -12
  50. package/dist-es/runtimeConfig.native.js +8 -5
  51. package/dist-es/runtimeConfig.shared.js +8 -11
  52. 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 { 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
+ }
@@ -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 { DescribeReplicationConfigurationTemplatesRequestFilterSensitiveLog, DescribeReplicationConfigurationTemplatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand, serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeReplicationConfigurationTemplatesCommand = (function (_super) {
7
- __extends(DescribeReplicationConfigurationTemplatesCommand, _super);
8
- function DescribeReplicationConfigurationTemplatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeReplicationConfigurationTemplatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeReplicationConfigurationTemplatesCommand.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 = "DescribeReplicationConfigurationTemplatesCommand";
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 = "DescribeReplicationConfigurationTemplatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeReplicationConfigurationTemplatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeReplicationConfigurationTemplatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeReplicationConfigurationTemplatesCommand.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_restJson1DescribeReplicationConfigurationTemplatesCommand(input, context);
33
- };
34
- DescribeReplicationConfigurationTemplatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand(output, context);
36
- };
37
- return DescribeReplicationConfigurationTemplatesCommand;
38
- }($Command));
39
- export { DescribeReplicationConfigurationTemplatesCommand };
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 { DescribeSourceServersRequestFilterSensitiveLog, DescribeSourceServersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeSourceServersCommand, serializeAws_restJson1DescribeSourceServersCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeSourceServersCommand = (function (_super) {
7
- __extends(DescribeSourceServersCommand, _super);
8
- function DescribeSourceServersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeSourceServersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeSourceServersCommand.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 = "DescribeSourceServersCommand";
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 = "DescribeSourceServersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeSourceServersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeSourceServersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeSourceServersCommand.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_restJson1DescribeSourceServersCommand(input, context);
33
- };
34
- DescribeSourceServersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeSourceServersCommand(output, context);
36
- };
37
- return DescribeSourceServersCommand;
38
- }($Command));
39
- export { DescribeSourceServersCommand };
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 { DisconnectRecoveryInstanceRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisconnectRecoveryInstanceCommand, serializeAws_restJson1DisconnectRecoveryInstanceCommand, } from "../protocols/Aws_restJson1";
6
- var DisconnectRecoveryInstanceCommand = (function (_super) {
7
- __extends(DisconnectRecoveryInstanceCommand, _super);
8
- function DisconnectRecoveryInstanceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisconnectRecoveryInstanceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisconnectRecoveryInstanceCommand.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 = "DisconnectRecoveryInstanceCommand";
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 = "DisconnectRecoveryInstanceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisconnectRecoveryInstanceRequestFilterSensitiveLog,
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
- DisconnectRecoveryInstanceCommand.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_restJson1DisconnectRecoveryInstanceCommand(input, context);
33
- };
34
- DisconnectRecoveryInstanceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisconnectRecoveryInstanceCommand(output, context);
36
- };
37
- return DisconnectRecoveryInstanceCommand;
38
- }($Command));
39
- export { DisconnectRecoveryInstanceCommand };
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 { DisconnectSourceServerRequestFilterSensitiveLog, SourceServerFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisconnectSourceServerCommand, serializeAws_restJson1DisconnectSourceServerCommand, } from "../protocols/Aws_restJson1";
6
- var DisconnectSourceServerCommand = (function (_super) {
7
- __extends(DisconnectSourceServerCommand, _super);
8
- function DisconnectSourceServerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisconnectSourceServerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisconnectSourceServerCommand.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 = "DisconnectSourceServerCommand";
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 = "DisconnectSourceServerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisconnectSourceServerRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisconnectSourceServerCommand.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_restJson1DisconnectSourceServerCommand(input, context);
33
- };
34
- DisconnectSourceServerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisconnectSourceServerCommand(output, context);
36
- };
37
- return DisconnectSourceServerCommand;
38
- }($Command));
39
- export { DisconnectSourceServerCommand };
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 { GetFailbackReplicationConfigurationRequestFilterSensitiveLog, GetFailbackReplicationConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetFailbackReplicationConfigurationCommand, serializeAws_restJson1GetFailbackReplicationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var GetFailbackReplicationConfigurationCommand = (function (_super) {
7
- __extends(GetFailbackReplicationConfigurationCommand, _super);
8
- function GetFailbackReplicationConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetFailbackReplicationConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetFailbackReplicationConfigurationCommand.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 = "GetFailbackReplicationConfigurationCommand";
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 = "GetFailbackReplicationConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetFailbackReplicationConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetFailbackReplicationConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetFailbackReplicationConfigurationCommand.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_restJson1GetFailbackReplicationConfigurationCommand(input, context);
33
- };
34
- GetFailbackReplicationConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetFailbackReplicationConfigurationCommand(output, context);
36
- };
37
- return GetFailbackReplicationConfigurationCommand;
38
- }($Command));
39
- export { GetFailbackReplicationConfigurationCommand };
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 { GetLaunchConfigurationRequestFilterSensitiveLog, LaunchConfigurationFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetLaunchConfigurationCommand, serializeAws_restJson1GetLaunchConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var GetLaunchConfigurationCommand = (function (_super) {
7
- __extends(GetLaunchConfigurationCommand, _super);
8
- function GetLaunchConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetLaunchConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetLaunchConfigurationCommand.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 = "GetLaunchConfigurationCommand";
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 = "GetLaunchConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetLaunchConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: LaunchConfigurationFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetLaunchConfigurationCommand.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_restJson1GetLaunchConfigurationCommand(input, context);
33
- };
34
- GetLaunchConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetLaunchConfigurationCommand(output, context);
36
- };
37
- return GetLaunchConfigurationCommand;
38
- }($Command));
39
- export { GetLaunchConfigurationCommand };
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 { GetReplicationConfigurationRequestFilterSensitiveLog, ReplicationConfigurationFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetReplicationConfigurationCommand, serializeAws_restJson1GetReplicationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var GetReplicationConfigurationCommand = (function (_super) {
7
- __extends(GetReplicationConfigurationCommand, _super);
8
- function GetReplicationConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetReplicationConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetReplicationConfigurationCommand.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 = "GetReplicationConfigurationCommand";
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 = "GetReplicationConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetReplicationConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ReplicationConfigurationFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetReplicationConfigurationCommand.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_restJson1GetReplicationConfigurationCommand(input, context);
33
- };
34
- GetReplicationConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetReplicationConfigurationCommand(output, context);
36
- };
37
- return GetReplicationConfigurationCommand;
38
- }($Command));
39
- export { GetReplicationConfigurationCommand };
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 { InitializeServiceRequestFilterSensitiveLog, InitializeServiceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1InitializeServiceCommand, serializeAws_restJson1InitializeServiceCommand, } from "../protocols/Aws_restJson1";
6
- var InitializeServiceCommand = (function (_super) {
7
- __extends(InitializeServiceCommand, _super);
8
- function InitializeServiceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InitializeServiceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InitializeServiceCommand.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 = "InitializeServiceCommand";
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 = "InitializeServiceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InitializeServiceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InitializeServiceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InitializeServiceCommand.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_restJson1InitializeServiceCommand(input, context);
33
- };
34
- InitializeServiceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1InitializeServiceCommand(output, context);
36
- };
37
- return InitializeServiceCommand;
38
- }($Command));
39
- export { InitializeServiceCommand };
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 { ListExtensibleSourceServersRequestFilterSensitiveLog, ListExtensibleSourceServersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListExtensibleSourceServersCommand, serializeAws_restJson1ListExtensibleSourceServersCommand, } from "../protocols/Aws_restJson1";
6
- var ListExtensibleSourceServersCommand = (function (_super) {
7
- __extends(ListExtensibleSourceServersCommand, _super);
8
- function ListExtensibleSourceServersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListExtensibleSourceServersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListExtensibleSourceServersCommand.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 = "ListExtensibleSourceServersCommand";
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 = "ListExtensibleSourceServersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListExtensibleSourceServersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListExtensibleSourceServersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListExtensibleSourceServersCommand.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_restJson1ListExtensibleSourceServersCommand(input, context);
33
- };
34
- ListExtensibleSourceServersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListExtensibleSourceServersCommand(output, context);
36
- };
37
- return ListExtensibleSourceServersCommand;
38
- }($Command));
39
- export { ListExtensibleSourceServersCommand };
31
+ }
32
+ }