@aws-sdk/client-datasync 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 (62) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +50 -44
  3. package/dist-es/DataSync.js +178 -185
  4. package/dist-es/DataSyncClient.js +22 -28
  5. package/dist-es/commands/CancelTaskExecutionCommand.js +21 -28
  6. package/dist-es/commands/CreateAgentCommand.js +21 -28
  7. package/dist-es/commands/CreateLocationEfsCommand.js +21 -28
  8. package/dist-es/commands/CreateLocationFsxLustreCommand.js +21 -28
  9. package/dist-es/commands/CreateLocationFsxOntapCommand.js +21 -28
  10. package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +21 -28
  11. package/dist-es/commands/CreateLocationFsxWindowsCommand.js +21 -28
  12. package/dist-es/commands/CreateLocationHdfsCommand.js +21 -28
  13. package/dist-es/commands/CreateLocationNfsCommand.js +21 -28
  14. package/dist-es/commands/CreateLocationObjectStorageCommand.js +21 -28
  15. package/dist-es/commands/CreateLocationS3Command.js +21 -28
  16. package/dist-es/commands/CreateLocationSmbCommand.js +21 -28
  17. package/dist-es/commands/CreateTaskCommand.js +21 -28
  18. package/dist-es/commands/DeleteAgentCommand.js +21 -28
  19. package/dist-es/commands/DeleteLocationCommand.js +21 -28
  20. package/dist-es/commands/DeleteTaskCommand.js +21 -28
  21. package/dist-es/commands/DescribeAgentCommand.js +21 -28
  22. package/dist-es/commands/DescribeLocationEfsCommand.js +21 -28
  23. package/dist-es/commands/DescribeLocationFsxLustreCommand.js +21 -28
  24. package/dist-es/commands/DescribeLocationFsxOntapCommand.js +21 -28
  25. package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +21 -28
  26. package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +21 -28
  27. package/dist-es/commands/DescribeLocationHdfsCommand.js +21 -28
  28. package/dist-es/commands/DescribeLocationNfsCommand.js +21 -28
  29. package/dist-es/commands/DescribeLocationObjectStorageCommand.js +21 -28
  30. package/dist-es/commands/DescribeLocationS3Command.js +21 -28
  31. package/dist-es/commands/DescribeLocationSmbCommand.js +21 -28
  32. package/dist-es/commands/DescribeTaskCommand.js +21 -28
  33. package/dist-es/commands/DescribeTaskExecutionCommand.js +21 -28
  34. package/dist-es/commands/ListAgentsCommand.js +21 -28
  35. package/dist-es/commands/ListLocationsCommand.js +21 -28
  36. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  37. package/dist-es/commands/ListTaskExecutionsCommand.js +21 -28
  38. package/dist-es/commands/ListTasksCommand.js +21 -28
  39. package/dist-es/commands/StartTaskExecutionCommand.js +21 -28
  40. package/dist-es/commands/TagResourceCommand.js +21 -28
  41. package/dist-es/commands/UntagResourceCommand.js +21 -28
  42. package/dist-es/commands/UpdateAgentCommand.js +21 -28
  43. package/dist-es/commands/UpdateLocationHdfsCommand.js +21 -28
  44. package/dist-es/commands/UpdateLocationNfsCommand.js +21 -28
  45. package/dist-es/commands/UpdateLocationObjectStorageCommand.js +21 -28
  46. package/dist-es/commands/UpdateLocationSmbCommand.js +21 -28
  47. package/dist-es/commands/UpdateTaskCommand.js +21 -28
  48. package/dist-es/commands/UpdateTaskExecutionCommand.js +21 -28
  49. package/dist-es/endpoints.js +8 -8
  50. package/dist-es/models/DataSyncServiceException.js +5 -10
  51. package/dist-es/models/models_0.js +366 -136
  52. package/dist-es/pagination/ListAgentsPaginator.js +25 -68
  53. package/dist-es/pagination/ListLocationsPaginator.js +25 -68
  54. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  55. package/dist-es/pagination/ListTaskExecutionsPaginator.js +25 -68
  56. package/dist-es/pagination/ListTasksPaginator.js +25 -68
  57. package/dist-es/protocols/Aws_json1_1.js +2608 -3275
  58. package/dist-es/runtimeConfig.browser.js +26 -12
  59. package/dist-es/runtimeConfig.js +30 -12
  60. package/dist-es/runtimeConfig.native.js +8 -5
  61. package/dist-es/runtimeConfig.shared.js +8 -11
  62. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var DataSyncClient = (function (_super) {
13
- __extends(DataSyncClient, _super);
14
- function DataSyncClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class DataSyncClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- DataSyncClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return DataSyncClient;
38
- }(__Client));
39
- export { DataSyncClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { CancelTaskExecutionRequestFilterSensitiveLog, CancelTaskExecutionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CancelTaskExecutionCommand, serializeAws_json1_1CancelTaskExecutionCommand, } from "../protocols/Aws_json1_1";
6
- var CancelTaskExecutionCommand = (function (_super) {
7
- __extends(CancelTaskExecutionCommand, _super);
8
- function CancelTaskExecutionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelTaskExecutionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelTaskExecutionCommand.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 = "DataSyncClient";
18
- var commandName = "CancelTaskExecutionCommand";
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 = "DataSyncClient";
15
+ const commandName = "CancelTaskExecutionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelTaskExecutionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelTaskExecutionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelTaskExecutionCommand.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_json1_1CancelTaskExecutionCommand(input, context);
33
- };
34
- CancelTaskExecutionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CancelTaskExecutionCommand(output, context);
36
- };
37
- return CancelTaskExecutionCommand;
38
- }($Command));
39
- export { CancelTaskExecutionCommand };
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 { CreateAgentRequestFilterSensitiveLog, CreateAgentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateAgentCommand, serializeAws_json1_1CreateAgentCommand, } from "../protocols/Aws_json1_1";
6
- var CreateAgentCommand = (function (_super) {
7
- __extends(CreateAgentCommand, _super);
8
- function CreateAgentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAgentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAgentCommand.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 = "DataSyncClient";
18
- var commandName = "CreateAgentCommand";
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 = "DataSyncClient";
15
+ const commandName = "CreateAgentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAgentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAgentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAgentCommand.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_json1_1CreateAgentCommand(input, context);
33
- };
34
- CreateAgentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateAgentCommand(output, context);
36
- };
37
- return CreateAgentCommand;
38
- }($Command));
39
- export { CreateAgentCommand };
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 { CreateLocationEfsRequestFilterSensitiveLog, CreateLocationEfsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateLocationEfsCommand, serializeAws_json1_1CreateLocationEfsCommand, } from "../protocols/Aws_json1_1";
6
- var CreateLocationEfsCommand = (function (_super) {
7
- __extends(CreateLocationEfsCommand, _super);
8
- function CreateLocationEfsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLocationEfsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLocationEfsCommand.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 = "DataSyncClient";
18
- var commandName = "CreateLocationEfsCommand";
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 = "DataSyncClient";
15
+ const commandName = "CreateLocationEfsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLocationEfsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLocationEfsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLocationEfsCommand.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_json1_1CreateLocationEfsCommand(input, context);
33
- };
34
- CreateLocationEfsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateLocationEfsCommand(output, context);
36
- };
37
- return CreateLocationEfsCommand;
38
- }($Command));
39
- export { CreateLocationEfsCommand };
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 { CreateLocationFsxLustreRequestFilterSensitiveLog, CreateLocationFsxLustreResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateLocationFsxLustreCommand, serializeAws_json1_1CreateLocationFsxLustreCommand, } from "../protocols/Aws_json1_1";
6
- var CreateLocationFsxLustreCommand = (function (_super) {
7
- __extends(CreateLocationFsxLustreCommand, _super);
8
- function CreateLocationFsxLustreCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLocationFsxLustreCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLocationFsxLustreCommand.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 = "DataSyncClient";
18
- var commandName = "CreateLocationFsxLustreCommand";
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 = "DataSyncClient";
15
+ const commandName = "CreateLocationFsxLustreCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLocationFsxLustreRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLocationFsxLustreResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLocationFsxLustreCommand.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_json1_1CreateLocationFsxLustreCommand(input, context);
33
- };
34
- CreateLocationFsxLustreCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateLocationFsxLustreCommand(output, context);
36
- };
37
- return CreateLocationFsxLustreCommand;
38
- }($Command));
39
- export { CreateLocationFsxLustreCommand };
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 { CreateLocationFsxOntapRequestFilterSensitiveLog, CreateLocationFsxOntapResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateLocationFsxOntapCommand, serializeAws_json1_1CreateLocationFsxOntapCommand, } from "../protocols/Aws_json1_1";
6
- var CreateLocationFsxOntapCommand = (function (_super) {
7
- __extends(CreateLocationFsxOntapCommand, _super);
8
- function CreateLocationFsxOntapCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLocationFsxOntapCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLocationFsxOntapCommand.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 = "DataSyncClient";
18
- var commandName = "CreateLocationFsxOntapCommand";
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 = "DataSyncClient";
15
+ const commandName = "CreateLocationFsxOntapCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLocationFsxOntapRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLocationFsxOntapResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLocationFsxOntapCommand.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_json1_1CreateLocationFsxOntapCommand(input, context);
33
- };
34
- CreateLocationFsxOntapCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateLocationFsxOntapCommand(output, context);
36
- };
37
- return CreateLocationFsxOntapCommand;
38
- }($Command));
39
- export { CreateLocationFsxOntapCommand };
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 { CreateLocationFsxOpenZfsRequestFilterSensitiveLog, CreateLocationFsxOpenZfsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateLocationFsxOpenZfsCommand, serializeAws_json1_1CreateLocationFsxOpenZfsCommand, } from "../protocols/Aws_json1_1";
6
- var CreateLocationFsxOpenZfsCommand = (function (_super) {
7
- __extends(CreateLocationFsxOpenZfsCommand, _super);
8
- function CreateLocationFsxOpenZfsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLocationFsxOpenZfsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLocationFsxOpenZfsCommand.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 = "DataSyncClient";
18
- var commandName = "CreateLocationFsxOpenZfsCommand";
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 = "DataSyncClient";
15
+ const commandName = "CreateLocationFsxOpenZfsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLocationFsxOpenZfsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLocationFsxOpenZfsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLocationFsxOpenZfsCommand.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_json1_1CreateLocationFsxOpenZfsCommand(input, context);
33
- };
34
- CreateLocationFsxOpenZfsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateLocationFsxOpenZfsCommand(output, context);
36
- };
37
- return CreateLocationFsxOpenZfsCommand;
38
- }($Command));
39
- export { CreateLocationFsxOpenZfsCommand };
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 { CreateLocationFsxWindowsRequestFilterSensitiveLog, CreateLocationFsxWindowsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateLocationFsxWindowsCommand, serializeAws_json1_1CreateLocationFsxWindowsCommand, } from "../protocols/Aws_json1_1";
6
- var CreateLocationFsxWindowsCommand = (function (_super) {
7
- __extends(CreateLocationFsxWindowsCommand, _super);
8
- function CreateLocationFsxWindowsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLocationFsxWindowsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLocationFsxWindowsCommand.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 = "DataSyncClient";
18
- var commandName = "CreateLocationFsxWindowsCommand";
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 = "DataSyncClient";
15
+ const commandName = "CreateLocationFsxWindowsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLocationFsxWindowsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLocationFsxWindowsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLocationFsxWindowsCommand.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_json1_1CreateLocationFsxWindowsCommand(input, context);
33
- };
34
- CreateLocationFsxWindowsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateLocationFsxWindowsCommand(output, context);
36
- };
37
- return CreateLocationFsxWindowsCommand;
38
- }($Command));
39
- export { CreateLocationFsxWindowsCommand };
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 { CreateLocationHdfsRequestFilterSensitiveLog, CreateLocationHdfsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateLocationHdfsCommand, serializeAws_json1_1CreateLocationHdfsCommand, } from "../protocols/Aws_json1_1";
6
- var CreateLocationHdfsCommand = (function (_super) {
7
- __extends(CreateLocationHdfsCommand, _super);
8
- function CreateLocationHdfsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLocationHdfsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLocationHdfsCommand.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 = "DataSyncClient";
18
- var commandName = "CreateLocationHdfsCommand";
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 = "DataSyncClient";
15
+ const commandName = "CreateLocationHdfsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLocationHdfsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLocationHdfsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLocationHdfsCommand.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_json1_1CreateLocationHdfsCommand(input, context);
33
- };
34
- CreateLocationHdfsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateLocationHdfsCommand(output, context);
36
- };
37
- return CreateLocationHdfsCommand;
38
- }($Command));
39
- export { CreateLocationHdfsCommand };
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 { CreateLocationNfsRequestFilterSensitiveLog, CreateLocationNfsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateLocationNfsCommand, serializeAws_json1_1CreateLocationNfsCommand, } from "../protocols/Aws_json1_1";
6
- var CreateLocationNfsCommand = (function (_super) {
7
- __extends(CreateLocationNfsCommand, _super);
8
- function CreateLocationNfsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLocationNfsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLocationNfsCommand.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 = "DataSyncClient";
18
- var commandName = "CreateLocationNfsCommand";
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 = "DataSyncClient";
15
+ const commandName = "CreateLocationNfsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLocationNfsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLocationNfsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLocationNfsCommand.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_json1_1CreateLocationNfsCommand(input, context);
33
- };
34
- CreateLocationNfsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateLocationNfsCommand(output, context);
36
- };
37
- return CreateLocationNfsCommand;
38
- }($Command));
39
- export { CreateLocationNfsCommand };
31
+ }
32
+ }