@aws-sdk/client-datasync 3.41.0 → 3.46.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.
- package/CHANGELOG.md +44 -0
- package/dist-cjs/DataSync.js +30 -0
- package/dist-cjs/commands/CreateLocationFsxLustreCommand.js +36 -0
- package/dist-cjs/commands/DescribeLocationFsxLustreCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +27 -3
- package/dist-cjs/protocols/Aws_json1_1.js +167 -2
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/DataSync.js +30 -0
- package/dist-es/commands/CreateLocationFsxLustreCommand.js +39 -0
- package/dist-es/commands/DescribeLocationFsxLustreCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/protocols/Aws_json1_1.js +178 -0
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/DataSync.d.ts +15 -0
- package/dist-types/DataSyncClient.d.ts +4 -2
- package/dist-types/commands/CreateLocationFsxLustreCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLocationFsxLustreCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +76 -3
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/DataSync.d.ts +10 -0
- package/dist-types/ts3.4/DataSyncClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/CreateLocationFsxLustreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLocationFsxLustreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +44 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/package.json +36 -43
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
17
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @aws-sdk/client-datasync
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @aws-sdk/client-datasync
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
51
|
|
|
8
52
|
|
package/dist-cjs/DataSync.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.DataSync = void 0;
|
|
|
4
4
|
const CancelTaskExecutionCommand_1 = require("./commands/CancelTaskExecutionCommand");
|
|
5
5
|
const CreateAgentCommand_1 = require("./commands/CreateAgentCommand");
|
|
6
6
|
const CreateLocationEfsCommand_1 = require("./commands/CreateLocationEfsCommand");
|
|
7
|
+
const CreateLocationFsxLustreCommand_1 = require("./commands/CreateLocationFsxLustreCommand");
|
|
7
8
|
const CreateLocationFsxWindowsCommand_1 = require("./commands/CreateLocationFsxWindowsCommand");
|
|
8
9
|
const CreateLocationHdfsCommand_1 = require("./commands/CreateLocationHdfsCommand");
|
|
9
10
|
const CreateLocationNfsCommand_1 = require("./commands/CreateLocationNfsCommand");
|
|
@@ -16,6 +17,7 @@ const DeleteLocationCommand_1 = require("./commands/DeleteLocationCommand");
|
|
|
16
17
|
const DeleteTaskCommand_1 = require("./commands/DeleteTaskCommand");
|
|
17
18
|
const DescribeAgentCommand_1 = require("./commands/DescribeAgentCommand");
|
|
18
19
|
const DescribeLocationEfsCommand_1 = require("./commands/DescribeLocationEfsCommand");
|
|
20
|
+
const DescribeLocationFsxLustreCommand_1 = require("./commands/DescribeLocationFsxLustreCommand");
|
|
19
21
|
const DescribeLocationFsxWindowsCommand_1 = require("./commands/DescribeLocationFsxWindowsCommand");
|
|
20
22
|
const DescribeLocationHdfsCommand_1 = require("./commands/DescribeLocationHdfsCommand");
|
|
21
23
|
const DescribeLocationNfsCommand_1 = require("./commands/DescribeLocationNfsCommand");
|
|
@@ -83,6 +85,20 @@ class DataSync extends DataSyncClient_1.DataSyncClient {
|
|
|
83
85
|
return this.send(command, optionsOrCb);
|
|
84
86
|
}
|
|
85
87
|
}
|
|
88
|
+
createLocationFsxLustre(args, optionsOrCb, cb) {
|
|
89
|
+
const command = new CreateLocationFsxLustreCommand_1.CreateLocationFsxLustreCommand(args);
|
|
90
|
+
if (typeof optionsOrCb === "function") {
|
|
91
|
+
this.send(command, optionsOrCb);
|
|
92
|
+
}
|
|
93
|
+
else if (typeof cb === "function") {
|
|
94
|
+
if (typeof optionsOrCb !== "object")
|
|
95
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
96
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
return this.send(command, optionsOrCb);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
86
102
|
createLocationFsxWindows(args, optionsOrCb, cb) {
|
|
87
103
|
const command = new CreateLocationFsxWindowsCommand_1.CreateLocationFsxWindowsCommand(args);
|
|
88
104
|
if (typeof optionsOrCb === "function") {
|
|
@@ -251,6 +267,20 @@ class DataSync extends DataSyncClient_1.DataSyncClient {
|
|
|
251
267
|
return this.send(command, optionsOrCb);
|
|
252
268
|
}
|
|
253
269
|
}
|
|
270
|
+
describeLocationFsxLustre(args, optionsOrCb, cb) {
|
|
271
|
+
const command = new DescribeLocationFsxLustreCommand_1.DescribeLocationFsxLustreCommand(args);
|
|
272
|
+
if (typeof optionsOrCb === "function") {
|
|
273
|
+
this.send(command, optionsOrCb);
|
|
274
|
+
}
|
|
275
|
+
else if (typeof cb === "function") {
|
|
276
|
+
if (typeof optionsOrCb !== "object")
|
|
277
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
278
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
return this.send(command, optionsOrCb);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
254
284
|
describeLocationFsxWindows(args, optionsOrCb, cb) {
|
|
255
285
|
const command = new DescribeLocationFsxWindowsCommand_1.DescribeLocationFsxWindowsCommand(args);
|
|
256
286
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLocationFsxLustreCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class CreateLocationFsxLustreCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "DataSyncClient";
|
|
18
|
+
const commandName = "CreateLocationFsxLustreCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateLocationFsxLustreRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateLocationFsxLustreResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1CreateLocationFsxLustreCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1CreateLocationFsxLustreCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateLocationFsxLustreCommand = CreateLocationFsxLustreCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeLocationFsxLustreCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DescribeLocationFsxLustreCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "DataSyncClient";
|
|
18
|
+
const commandName = "DescribeLocationFsxLustreCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeLocationFsxLustreRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeLocationFsxLustreResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DescribeLocationFsxLustreCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DescribeLocationFsxLustreCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeLocationFsxLustreCommand = DescribeLocationFsxLustreCommand;
|
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./CancelTaskExecutionCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CreateAgentCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateLocationEfsCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CreateLocationFsxLustreCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CreateLocationFsxWindowsCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CreateLocationHdfsCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./CreateLocationNfsCommand"), exports);
|
|
@@ -16,6 +17,7 @@ tslib_1.__exportStar(require("./DeleteLocationCommand"), exports);
|
|
|
16
17
|
tslib_1.__exportStar(require("./DeleteTaskCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./DescribeAgentCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./DescribeLocationEfsCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./DescribeLocationFsxLustreCommand"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./DescribeLocationFsxWindowsCommand"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./DescribeLocationHdfsCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./DescribeLocationNfsCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateTaskExecutionResponse = exports.UpdateTaskExecutionRequest = exports.UpdateTaskResponse = exports.UpdateTaskRequest = exports.UpdateLocationSmbResponse = exports.UpdateLocationSmbRequest = exports.UpdateLocationObjectStorageResponse = exports.UpdateLocationObjectStorageRequest = exports.UpdateLocationNfsResponse = exports.UpdateLocationNfsRequest = exports.UpdateLocationHdfsResponse = exports.UpdateLocationHdfsRequest = exports.UpdateAgentResponse = exports.UpdateAgentRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartTaskExecutionResponse = exports.StartTaskExecutionRequest = exports.ListTasksResponse = exports.TaskListEntry = exports.ListTasksRequest = exports.TaskFilter = exports.TaskFilterName = exports.ListTaskExecutionsResponse = void 0;
|
|
3
|
+
exports.SmbSecurityDescriptorCopyFlags = exports.PreserveDevices = exports.PreserveDeletedFiles = exports.PosixPermissions = exports.OverwriteMode = exports.Mtime = exports.LogLevel = exports.Gid = exports.FilterRule = exports.FilterType = exports.CreateLocationSmbResponse = exports.CreateLocationSmbRequest = exports.SmbMountOptions = exports.SmbVersion = exports.CreateLocationS3Response = exports.CreateLocationS3Request = exports.S3StorageClass = exports.S3Config = exports.CreateLocationObjectStorageResponse = exports.CreateLocationObjectStorageRequest = exports.ObjectStorageServerProtocol = exports.CreateLocationNfsResponse = exports.CreateLocationNfsRequest = exports.OnPremConfig = exports.NfsMountOptions = exports.NfsVersion = exports.CreateLocationHdfsResponse = exports.CreateLocationHdfsRequest = exports.QopConfiguration = exports.HdfsRpcProtection = exports.HdfsDataTransferProtection = exports.HdfsNameNode = exports.HdfsAuthenticationType = exports.CreateLocationFsxWindowsResponse = exports.CreateLocationFsxWindowsRequest = exports.CreateLocationFsxLustreResponse = exports.CreateLocationFsxLustreRequest = exports.CreateLocationEfsResponse = exports.CreateLocationEfsRequest = exports.Ec2Config = exports.CreateAgentResponse = exports.CreateAgentRequest = exports.TagListEntry = exports.InvalidRequestException = exports.InternalException = exports.CancelTaskExecutionResponse = exports.CancelTaskExecutionRequest = exports.Atime = exports.AgentListEntry = exports.AgentStatus = void 0;
|
|
4
|
+
exports.ListLocationsResponse = exports.LocationListEntry = exports.ListLocationsRequest = exports.LocationFilter = exports.Operator = exports.LocationFilterName = exports.ListAgentsResponse = exports.ListAgentsRequest = exports.DescribeTaskExecutionResponse = exports.TaskExecutionStatus = exports.TaskExecutionResultDetail = exports.PhaseStatus = exports.DescribeTaskExecutionRequest = exports.DescribeTaskResponse = exports.TaskStatus = exports.DescribeTaskRequest = exports.DescribeLocationSmbResponse = exports.DescribeLocationSmbRequest = exports.DescribeLocationS3Response = exports.DescribeLocationS3Request = exports.DescribeLocationObjectStorageResponse = exports.DescribeLocationObjectStorageRequest = exports.DescribeLocationNfsResponse = exports.DescribeLocationNfsRequest = exports.DescribeLocationHdfsResponse = exports.DescribeLocationHdfsRequest = exports.DescribeLocationFsxWindowsResponse = exports.DescribeLocationFsxWindowsRequest = exports.DescribeLocationFsxLustreResponse = exports.DescribeLocationFsxLustreRequest = exports.DescribeLocationEfsResponse = exports.DescribeLocationEfsRequest = exports.DescribeAgentResponse = exports.PrivateLinkConfig = exports.EndpointType = exports.DescribeAgentRequest = exports.DeleteTaskResponse = exports.DeleteTaskRequest = exports.DeleteLocationResponse = exports.DeleteLocationRequest = exports.DeleteAgentResponse = exports.DeleteAgentRequest = exports.CreateTaskResponse = exports.CreateTaskRequest = exports.TaskSchedule = exports.Options = exports.VerifyMode = exports.Uid = exports.TransferMode = exports.TaskQueueing = void 0;
|
|
5
|
+
exports.UpdateTaskExecutionResponse = exports.UpdateTaskExecutionRequest = exports.UpdateTaskResponse = exports.UpdateTaskRequest = exports.UpdateLocationSmbResponse = exports.UpdateLocationSmbRequest = exports.UpdateLocationObjectStorageResponse = exports.UpdateLocationObjectStorageRequest = exports.UpdateLocationNfsResponse = exports.UpdateLocationNfsRequest = exports.UpdateLocationHdfsResponse = exports.UpdateLocationHdfsRequest = exports.UpdateAgentResponse = exports.UpdateAgentRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartTaskExecutionResponse = exports.StartTaskExecutionRequest = exports.ListTasksResponse = exports.TaskListEntry = exports.ListTasksRequest = exports.TaskFilter = exports.TaskFilterName = exports.ListTaskExecutionsResponse = exports.TaskExecutionListEntry = exports.ListTaskExecutionsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
var AgentStatus;
|
|
8
8
|
(function (AgentStatus) {
|
|
@@ -80,6 +80,18 @@ var CreateLocationEfsResponse;
|
|
|
80
80
|
...obj,
|
|
81
81
|
});
|
|
82
82
|
})(CreateLocationEfsResponse = exports.CreateLocationEfsResponse || (exports.CreateLocationEfsResponse = {}));
|
|
83
|
+
var CreateLocationFsxLustreRequest;
|
|
84
|
+
(function (CreateLocationFsxLustreRequest) {
|
|
85
|
+
CreateLocationFsxLustreRequest.filterSensitiveLog = (obj) => ({
|
|
86
|
+
...obj,
|
|
87
|
+
});
|
|
88
|
+
})(CreateLocationFsxLustreRequest = exports.CreateLocationFsxLustreRequest || (exports.CreateLocationFsxLustreRequest = {}));
|
|
89
|
+
var CreateLocationFsxLustreResponse;
|
|
90
|
+
(function (CreateLocationFsxLustreResponse) {
|
|
91
|
+
CreateLocationFsxLustreResponse.filterSensitiveLog = (obj) => ({
|
|
92
|
+
...obj,
|
|
93
|
+
});
|
|
94
|
+
})(CreateLocationFsxLustreResponse = exports.CreateLocationFsxLustreResponse || (exports.CreateLocationFsxLustreResponse = {}));
|
|
83
95
|
var CreateLocationFsxWindowsRequest;
|
|
84
96
|
(function (CreateLocationFsxWindowsRequest) {
|
|
85
97
|
CreateLocationFsxWindowsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -411,6 +423,18 @@ var DescribeLocationEfsResponse;
|
|
|
411
423
|
...obj,
|
|
412
424
|
});
|
|
413
425
|
})(DescribeLocationEfsResponse = exports.DescribeLocationEfsResponse || (exports.DescribeLocationEfsResponse = {}));
|
|
426
|
+
var DescribeLocationFsxLustreRequest;
|
|
427
|
+
(function (DescribeLocationFsxLustreRequest) {
|
|
428
|
+
DescribeLocationFsxLustreRequest.filterSensitiveLog = (obj) => ({
|
|
429
|
+
...obj,
|
|
430
|
+
});
|
|
431
|
+
})(DescribeLocationFsxLustreRequest = exports.DescribeLocationFsxLustreRequest || (exports.DescribeLocationFsxLustreRequest = {}));
|
|
432
|
+
var DescribeLocationFsxLustreResponse;
|
|
433
|
+
(function (DescribeLocationFsxLustreResponse) {
|
|
434
|
+
DescribeLocationFsxLustreResponse.filterSensitiveLog = (obj) => ({
|
|
435
|
+
...obj,
|
|
436
|
+
});
|
|
437
|
+
})(DescribeLocationFsxLustreResponse = exports.DescribeLocationFsxLustreResponse || (exports.DescribeLocationFsxLustreResponse = {}));
|
|
414
438
|
var DescribeLocationFsxWindowsRequest;
|
|
415
439
|
(function (DescribeLocationFsxWindowsRequest) {
|
|
416
440
|
DescribeLocationFsxWindowsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateTaskExecutionCommand = exports.deserializeAws_json1_1UpdateTaskCommand = exports.deserializeAws_json1_1UpdateLocationSmbCommand = exports.deserializeAws_json1_1UpdateLocationObjectStorageCommand = exports.deserializeAws_json1_1UpdateLocationNfsCommand = exports.deserializeAws_json1_1UpdateLocationHdfsCommand = exports.deserializeAws_json1_1UpdateAgentCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartTaskExecutionCommand = exports.deserializeAws_json1_1ListTasksCommand = exports.deserializeAws_json1_1ListTaskExecutionsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListLocationsCommand = exports.deserializeAws_json1_1ListAgentsCommand = exports.deserializeAws_json1_1DescribeTaskExecutionCommand = exports.deserializeAws_json1_1DescribeTaskCommand = exports.deserializeAws_json1_1DescribeLocationSmbCommand = exports.deserializeAws_json1_1DescribeLocationS3Command = exports.deserializeAws_json1_1DescribeLocationObjectStorageCommand = exports.deserializeAws_json1_1DescribeLocationNfsCommand = exports.deserializeAws_json1_1DescribeLocationHdfsCommand = exports.deserializeAws_json1_1DescribeLocationFsxWindowsCommand = exports.deserializeAws_json1_1DescribeLocationEfsCommand = exports.deserializeAws_json1_1DescribeAgentCommand = exports.deserializeAws_json1_1DeleteTaskCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1CreateLocationSmbCommand = exports.deserializeAws_json1_1CreateLocationS3Command = exports.deserializeAws_json1_1CreateLocationObjectStorageCommand = exports.deserializeAws_json1_1CreateLocationNfsCommand = exports.deserializeAws_json1_1CreateLocationHdfsCommand = exports.deserializeAws_json1_1CreateLocationFsxWindowsCommand = exports.deserializeAws_json1_1CreateLocationFsxLustreCommand = exports.deserializeAws_json1_1CreateLocationEfsCommand = exports.deserializeAws_json1_1CreateAgentCommand = exports.deserializeAws_json1_1CancelTaskExecutionCommand = exports.serializeAws_json1_1UpdateTaskExecutionCommand = exports.serializeAws_json1_1UpdateTaskCommand = exports.serializeAws_json1_1UpdateLocationSmbCommand = exports.serializeAws_json1_1UpdateLocationObjectStorageCommand = exports.serializeAws_json1_1UpdateLocationNfsCommand = exports.serializeAws_json1_1UpdateLocationHdfsCommand = exports.serializeAws_json1_1UpdateAgentCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartTaskExecutionCommand = exports.serializeAws_json1_1ListTasksCommand = exports.serializeAws_json1_1ListTaskExecutionsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListLocationsCommand = exports.serializeAws_json1_1ListAgentsCommand = exports.serializeAws_json1_1DescribeTaskExecutionCommand = exports.serializeAws_json1_1DescribeTaskCommand = exports.serializeAws_json1_1DescribeLocationSmbCommand = exports.serializeAws_json1_1DescribeLocationS3Command = exports.serializeAws_json1_1DescribeLocationObjectStorageCommand = exports.serializeAws_json1_1DescribeLocationNfsCommand = exports.serializeAws_json1_1DescribeLocationHdfsCommand = exports.serializeAws_json1_1DescribeLocationFsxWindowsCommand = exports.serializeAws_json1_1DescribeLocationFsxLustreCommand = exports.serializeAws_json1_1DescribeLocationEfsCommand = exports.serializeAws_json1_1DescribeAgentCommand = exports.serializeAws_json1_1DeleteTaskCommand = exports.serializeAws_json1_1DeleteLocationCommand = exports.serializeAws_json1_1DeleteAgentCommand = exports.serializeAws_json1_1CreateTaskCommand = exports.serializeAws_json1_1CreateLocationSmbCommand = exports.serializeAws_json1_1CreateLocationS3Command = exports.serializeAws_json1_1CreateLocationObjectStorageCommand = exports.serializeAws_json1_1CreateLocationNfsCommand = exports.serializeAws_json1_1CreateLocationHdfsCommand = exports.serializeAws_json1_1CreateLocationFsxWindowsCommand = exports.serializeAws_json1_1CreateLocationFsxLustreCommand = exports.serializeAws_json1_1CreateLocationEfsCommand = exports.serializeAws_json1_1CreateAgentCommand = exports.serializeAws_json1_1CancelTaskExecutionCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateTaskExecutionCommand = exports.deserializeAws_json1_1UpdateTaskCommand = exports.deserializeAws_json1_1UpdateLocationSmbCommand = exports.deserializeAws_json1_1UpdateLocationObjectStorageCommand = exports.deserializeAws_json1_1UpdateLocationNfsCommand = exports.deserializeAws_json1_1UpdateLocationHdfsCommand = exports.deserializeAws_json1_1UpdateAgentCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartTaskExecutionCommand = exports.deserializeAws_json1_1ListTasksCommand = exports.deserializeAws_json1_1ListTaskExecutionsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListLocationsCommand = exports.deserializeAws_json1_1ListAgentsCommand = exports.deserializeAws_json1_1DescribeTaskExecutionCommand = exports.deserializeAws_json1_1DescribeTaskCommand = exports.deserializeAws_json1_1DescribeLocationSmbCommand = exports.deserializeAws_json1_1DescribeLocationS3Command = exports.deserializeAws_json1_1DescribeLocationObjectStorageCommand = exports.deserializeAws_json1_1DescribeLocationNfsCommand = exports.deserializeAws_json1_1DescribeLocationHdfsCommand = exports.deserializeAws_json1_1DescribeLocationFsxWindowsCommand = exports.deserializeAws_json1_1DescribeLocationFsxLustreCommand = exports.deserializeAws_json1_1DescribeLocationEfsCommand = exports.deserializeAws_json1_1DescribeAgentCommand = exports.deserializeAws_json1_1DeleteTaskCommand = exports.deserializeAws_json1_1DeleteLocationCommand = exports.deserializeAws_json1_1DeleteAgentCommand = exports.deserializeAws_json1_1CreateTaskCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const serializeAws_json1_1CancelTaskExecutionCommand = async (input, context) => {
|
|
@@ -34,6 +34,16 @@ const serializeAws_json1_1CreateLocationEfsCommand = async (input, context) => {
|
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.serializeAws_json1_1CreateLocationEfsCommand = serializeAws_json1_1CreateLocationEfsCommand;
|
|
37
|
+
const serializeAws_json1_1CreateLocationFsxLustreCommand = async (input, context) => {
|
|
38
|
+
const headers = {
|
|
39
|
+
"content-type": "application/x-amz-json-1.1",
|
|
40
|
+
"x-amz-target": "FmrsService.CreateLocationFsxLustre",
|
|
41
|
+
};
|
|
42
|
+
let body;
|
|
43
|
+
body = JSON.stringify(serializeAws_json1_1CreateLocationFsxLustreRequest(input, context));
|
|
44
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
45
|
+
};
|
|
46
|
+
exports.serializeAws_json1_1CreateLocationFsxLustreCommand = serializeAws_json1_1CreateLocationFsxLustreCommand;
|
|
37
47
|
const serializeAws_json1_1CreateLocationFsxWindowsCommand = async (input, context) => {
|
|
38
48
|
const headers = {
|
|
39
49
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -154,6 +164,16 @@ const serializeAws_json1_1DescribeLocationEfsCommand = async (input, context) =>
|
|
|
154
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
165
|
};
|
|
156
166
|
exports.serializeAws_json1_1DescribeLocationEfsCommand = serializeAws_json1_1DescribeLocationEfsCommand;
|
|
167
|
+
const serializeAws_json1_1DescribeLocationFsxLustreCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "FmrsService.DescribeLocationFsxLustre",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1DescribeLocationFsxLustreRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
exports.serializeAws_json1_1DescribeLocationFsxLustreCommand = serializeAws_json1_1DescribeLocationFsxLustreCommand;
|
|
157
177
|
const serializeAws_json1_1DescribeLocationFsxWindowsCommand = async (input, context) => {
|
|
158
178
|
const headers = {
|
|
159
179
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -549,6 +569,61 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, conte
|
|
|
549
569
|
delete response.Message;
|
|
550
570
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
551
571
|
};
|
|
572
|
+
const deserializeAws_json1_1CreateLocationFsxLustreCommand = async (output, context) => {
|
|
573
|
+
if (output.statusCode >= 300) {
|
|
574
|
+
return deserializeAws_json1_1CreateLocationFsxLustreCommandError(output, context);
|
|
575
|
+
}
|
|
576
|
+
const data = await parseBody(output.body, context);
|
|
577
|
+
let contents = {};
|
|
578
|
+
contents = deserializeAws_json1_1CreateLocationFsxLustreResponse(data, context);
|
|
579
|
+
const response = {
|
|
580
|
+
$metadata: deserializeMetadata(output),
|
|
581
|
+
...contents,
|
|
582
|
+
};
|
|
583
|
+
return Promise.resolve(response);
|
|
584
|
+
};
|
|
585
|
+
exports.deserializeAws_json1_1CreateLocationFsxLustreCommand = deserializeAws_json1_1CreateLocationFsxLustreCommand;
|
|
586
|
+
const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output, context) => {
|
|
587
|
+
const parsedOutput = {
|
|
588
|
+
...output,
|
|
589
|
+
body: await parseBody(output.body, context),
|
|
590
|
+
};
|
|
591
|
+
let response;
|
|
592
|
+
let errorCode = "UnknownError";
|
|
593
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
|
+
switch (errorCode) {
|
|
595
|
+
case "InternalException":
|
|
596
|
+
case "com.amazonaws.datasync#InternalException":
|
|
597
|
+
response = {
|
|
598
|
+
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
599
|
+
name: errorCode,
|
|
600
|
+
$metadata: deserializeMetadata(output),
|
|
601
|
+
};
|
|
602
|
+
break;
|
|
603
|
+
case "InvalidRequestException":
|
|
604
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
605
|
+
response = {
|
|
606
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
607
|
+
name: errorCode,
|
|
608
|
+
$metadata: deserializeMetadata(output),
|
|
609
|
+
};
|
|
610
|
+
break;
|
|
611
|
+
default:
|
|
612
|
+
const parsedBody = parsedOutput.body;
|
|
613
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
614
|
+
response = {
|
|
615
|
+
...parsedBody,
|
|
616
|
+
name: `${errorCode}`,
|
|
617
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
618
|
+
$fault: "client",
|
|
619
|
+
$metadata: deserializeMetadata(output),
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
const message = response.message || response.Message || errorCode;
|
|
623
|
+
response.message = message;
|
|
624
|
+
delete response.Message;
|
|
625
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
626
|
+
};
|
|
552
627
|
const deserializeAws_json1_1CreateLocationFsxWindowsCommand = async (output, context) => {
|
|
553
628
|
if (output.statusCode >= 300) {
|
|
554
629
|
return deserializeAws_json1_1CreateLocationFsxWindowsCommandError(output, context);
|
|
@@ -1209,6 +1284,61 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, con
|
|
|
1209
1284
|
delete response.Message;
|
|
1210
1285
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1211
1286
|
};
|
|
1287
|
+
const deserializeAws_json1_1DescribeLocationFsxLustreCommand = async (output, context) => {
|
|
1288
|
+
if (output.statusCode >= 300) {
|
|
1289
|
+
return deserializeAws_json1_1DescribeLocationFsxLustreCommandError(output, context);
|
|
1290
|
+
}
|
|
1291
|
+
const data = await parseBody(output.body, context);
|
|
1292
|
+
let contents = {};
|
|
1293
|
+
contents = deserializeAws_json1_1DescribeLocationFsxLustreResponse(data, context);
|
|
1294
|
+
const response = {
|
|
1295
|
+
$metadata: deserializeMetadata(output),
|
|
1296
|
+
...contents,
|
|
1297
|
+
};
|
|
1298
|
+
return Promise.resolve(response);
|
|
1299
|
+
};
|
|
1300
|
+
exports.deserializeAws_json1_1DescribeLocationFsxLustreCommand = deserializeAws_json1_1DescribeLocationFsxLustreCommand;
|
|
1301
|
+
const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (output, context) => {
|
|
1302
|
+
const parsedOutput = {
|
|
1303
|
+
...output,
|
|
1304
|
+
body: await parseBody(output.body, context),
|
|
1305
|
+
};
|
|
1306
|
+
let response;
|
|
1307
|
+
let errorCode = "UnknownError";
|
|
1308
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
+
switch (errorCode) {
|
|
1310
|
+
case "InternalException":
|
|
1311
|
+
case "com.amazonaws.datasync#InternalException":
|
|
1312
|
+
response = {
|
|
1313
|
+
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1314
|
+
name: errorCode,
|
|
1315
|
+
$metadata: deserializeMetadata(output),
|
|
1316
|
+
};
|
|
1317
|
+
break;
|
|
1318
|
+
case "InvalidRequestException":
|
|
1319
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1320
|
+
response = {
|
|
1321
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1322
|
+
name: errorCode,
|
|
1323
|
+
$metadata: deserializeMetadata(output),
|
|
1324
|
+
};
|
|
1325
|
+
break;
|
|
1326
|
+
default:
|
|
1327
|
+
const parsedBody = parsedOutput.body;
|
|
1328
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1329
|
+
response = {
|
|
1330
|
+
...parsedBody,
|
|
1331
|
+
name: `${errorCode}`,
|
|
1332
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1333
|
+
$fault: "client",
|
|
1334
|
+
$metadata: deserializeMetadata(output),
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
const message = response.message || response.Message || errorCode;
|
|
1338
|
+
response.message = message;
|
|
1339
|
+
delete response.Message;
|
|
1340
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1341
|
+
};
|
|
1212
1342
|
const deserializeAws_json1_1DescribeLocationFsxWindowsCommand = async (output, context) => {
|
|
1213
1343
|
if (output.statusCode >= 300) {
|
|
1214
1344
|
return deserializeAws_json1_1DescribeLocationFsxWindowsCommandError(output, context);
|
|
@@ -2538,6 +2668,19 @@ const serializeAws_json1_1CreateLocationEfsRequest = (input, context) => {
|
|
|
2538
2668
|
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2539
2669
|
};
|
|
2540
2670
|
};
|
|
2671
|
+
const serializeAws_json1_1CreateLocationFsxLustreRequest = (input, context) => {
|
|
2672
|
+
return {
|
|
2673
|
+
...(input.FsxFilesystemArn !== undefined &&
|
|
2674
|
+
input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2675
|
+
...(input.SecurityGroupArns !== undefined &&
|
|
2676
|
+
input.SecurityGroupArns !== null && {
|
|
2677
|
+
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2678
|
+
}),
|
|
2679
|
+
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2680
|
+
...(input.Tags !== undefined &&
|
|
2681
|
+
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2541
2684
|
const serializeAws_json1_1CreateLocationFsxWindowsRequest = (input, context) => {
|
|
2542
2685
|
return {
|
|
2543
2686
|
...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
|
|
@@ -2693,6 +2836,11 @@ const serializeAws_json1_1DescribeLocationEfsRequest = (input, context) => {
|
|
|
2693
2836
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2694
2837
|
};
|
|
2695
2838
|
};
|
|
2839
|
+
const serializeAws_json1_1DescribeLocationFsxLustreRequest = (input, context) => {
|
|
2840
|
+
return {
|
|
2841
|
+
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2842
|
+
};
|
|
2843
|
+
};
|
|
2696
2844
|
const serializeAws_json1_1DescribeLocationFsxWindowsRequest = (input, context) => {
|
|
2697
2845
|
return {
|
|
2698
2846
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
@@ -3136,6 +3284,11 @@ const deserializeAws_json1_1CreateLocationEfsResponse = (output, context) => {
|
|
|
3136
3284
|
LocationArn: smithy_client_1.expectString(output.LocationArn),
|
|
3137
3285
|
};
|
|
3138
3286
|
};
|
|
3287
|
+
const deserializeAws_json1_1CreateLocationFsxLustreResponse = (output, context) => {
|
|
3288
|
+
return {
|
|
3289
|
+
LocationArn: smithy_client_1.expectString(output.LocationArn),
|
|
3290
|
+
};
|
|
3291
|
+
};
|
|
3139
3292
|
const deserializeAws_json1_1CreateLocationFsxWindowsResponse = (output, context) => {
|
|
3140
3293
|
return {
|
|
3141
3294
|
LocationArn: smithy_client_1.expectString(output.LocationArn),
|
|
@@ -3209,6 +3362,18 @@ const deserializeAws_json1_1DescribeLocationEfsResponse = (output, context) => {
|
|
|
3209
3362
|
LocationUri: smithy_client_1.expectString(output.LocationUri),
|
|
3210
3363
|
};
|
|
3211
3364
|
};
|
|
3365
|
+
const deserializeAws_json1_1DescribeLocationFsxLustreResponse = (output, context) => {
|
|
3366
|
+
return {
|
|
3367
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3368
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
3369
|
+
: undefined,
|
|
3370
|
+
LocationArn: smithy_client_1.expectString(output.LocationArn),
|
|
3371
|
+
LocationUri: smithy_client_1.expectString(output.LocationUri),
|
|
3372
|
+
SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
|
|
3373
|
+
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3374
|
+
: undefined,
|
|
3375
|
+
};
|
|
3376
|
+
};
|
|
3212
3377
|
const deserializeAws_json1_1DescribeLocationFsxWindowsResponse = (output, context) => {
|
|
3213
3378
|
return {
|
|
3214
3379
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
18
|
const getRuntimeConfig = (config) => {
|
|
20
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
20
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|
package/dist-es/DataSync.js
CHANGED
|
@@ -2,6 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { CancelTaskExecutionCommand, } from "./commands/CancelTaskExecutionCommand";
|
|
3
3
|
import { CreateAgentCommand } from "./commands/CreateAgentCommand";
|
|
4
4
|
import { CreateLocationEfsCommand, } from "./commands/CreateLocationEfsCommand";
|
|
5
|
+
import { CreateLocationFsxLustreCommand, } from "./commands/CreateLocationFsxLustreCommand";
|
|
5
6
|
import { CreateLocationFsxWindowsCommand, } from "./commands/CreateLocationFsxWindowsCommand";
|
|
6
7
|
import { CreateLocationHdfsCommand, } from "./commands/CreateLocationHdfsCommand";
|
|
7
8
|
import { CreateLocationNfsCommand, } from "./commands/CreateLocationNfsCommand";
|
|
@@ -14,6 +15,7 @@ import { DeleteLocationCommand, } from "./commands/DeleteLocationCommand";
|
|
|
14
15
|
import { DeleteTaskCommand } from "./commands/DeleteTaskCommand";
|
|
15
16
|
import { DescribeAgentCommand, } from "./commands/DescribeAgentCommand";
|
|
16
17
|
import { DescribeLocationEfsCommand, } from "./commands/DescribeLocationEfsCommand";
|
|
18
|
+
import { DescribeLocationFsxLustreCommand, } from "./commands/DescribeLocationFsxLustreCommand";
|
|
17
19
|
import { DescribeLocationFsxWindowsCommand, } from "./commands/DescribeLocationFsxWindowsCommand";
|
|
18
20
|
import { DescribeLocationHdfsCommand, } from "./commands/DescribeLocationHdfsCommand";
|
|
19
21
|
import { DescribeLocationNfsCommand, } from "./commands/DescribeLocationNfsCommand";
|
|
@@ -85,6 +87,20 @@ var DataSync = (function (_super) {
|
|
|
85
87
|
return this.send(command, optionsOrCb);
|
|
86
88
|
}
|
|
87
89
|
};
|
|
90
|
+
DataSync.prototype.createLocationFsxLustre = function (args, optionsOrCb, cb) {
|
|
91
|
+
var command = new CreateLocationFsxLustreCommand(args);
|
|
92
|
+
if (typeof optionsOrCb === "function") {
|
|
93
|
+
this.send(command, optionsOrCb);
|
|
94
|
+
}
|
|
95
|
+
else if (typeof cb === "function") {
|
|
96
|
+
if (typeof optionsOrCb !== "object")
|
|
97
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
98
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return this.send(command, optionsOrCb);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
88
104
|
DataSync.prototype.createLocationFsxWindows = function (args, optionsOrCb, cb) {
|
|
89
105
|
var command = new CreateLocationFsxWindowsCommand(args);
|
|
90
106
|
if (typeof optionsOrCb === "function") {
|
|
@@ -253,6 +269,20 @@ var DataSync = (function (_super) {
|
|
|
253
269
|
return this.send(command, optionsOrCb);
|
|
254
270
|
}
|
|
255
271
|
};
|
|
272
|
+
DataSync.prototype.describeLocationFsxLustre = function (args, optionsOrCb, cb) {
|
|
273
|
+
var command = new DescribeLocationFsxLustreCommand(args);
|
|
274
|
+
if (typeof optionsOrCb === "function") {
|
|
275
|
+
this.send(command, optionsOrCb);
|
|
276
|
+
}
|
|
277
|
+
else if (typeof cb === "function") {
|
|
278
|
+
if (typeof optionsOrCb !== "object")
|
|
279
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
280
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
return this.send(command, optionsOrCb);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
256
286
|
DataSync.prototype.describeLocationFsxWindows = function (args, optionsOrCb, cb) {
|
|
257
287
|
var command = new DescribeLocationFsxWindowsCommand(args);
|
|
258
288
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateLocationFsxLustreRequest, CreateLocationFsxLustreResponse } from "../models/models_0";
|
|
5
|
+
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;
|
|
12
|
+
}
|
|
13
|
+
CreateLocationFsxLustreCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
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,
|
|
23
|
+
inputFilterSensitiveLog: CreateLocationFsxLustreRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateLocationFsxLustreResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
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) {
|
|
32
|
+
return serializeAws_json1_1CreateLocationFsxLustreCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateLocationFsxLustreCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreateLocationFsxLustreCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateLocationFsxLustreCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateLocationFsxLustreCommand };
|