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