@aws-sdk/client-datasync 3.55.0 → 3.64.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 +27 -0
- package/dist-cjs/DataSync.js +30 -0
- package/dist-cjs/commands/CreateLocationFsxOpenZfsCommand.js +36 -0
- package/dist-cjs/commands/DescribeLocationFsxOpenZfsCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +52 -16
- package/dist-cjs/protocols/Aws_json1_1.js +168 -2
- package/dist-es/DataSync.js +30 -0
- package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +39 -0
- package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +35 -11
- package/dist-es/protocols/Aws_json1_1.js +186 -0
- package/dist-types/DataSync.d.ts +19 -4
- package/dist-types/DataSyncClient.d.ts +4 -2
- package/dist-types/commands/CreateLocationFsxOpenZfsCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLocationFsxLustreCommand.d.ts +2 -2
- package/dist-types/commands/DescribeLocationFsxOpenZfsCommand.d.ts +36 -0
- package/dist-types/commands/DescribeLocationFsxWindowsCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +206 -87
- 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/CreateLocationFsxOpenZfsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLocationFsxOpenZfsCommand.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 +81 -15
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.64.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.63.0...v3.64.0) (2022-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-datasync:** AWS DataSync now supports Amazon FSx for OpenZFS locations. ([9159aa9](https://github.com/aws/aws-sdk-js-v3/commit/9159aa90df2e4f01792501c5b64a3b41fa8282e8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-datasync
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-datasync
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-datasync
|
package/dist-cjs/DataSync.js
CHANGED
|
@@ -5,6 +5,7 @@ const CancelTaskExecutionCommand_1 = require("./commands/CancelTaskExecutionComm
|
|
|
5
5
|
const CreateAgentCommand_1 = require("./commands/CreateAgentCommand");
|
|
6
6
|
const CreateLocationEfsCommand_1 = require("./commands/CreateLocationEfsCommand");
|
|
7
7
|
const CreateLocationFsxLustreCommand_1 = require("./commands/CreateLocationFsxLustreCommand");
|
|
8
|
+
const CreateLocationFsxOpenZfsCommand_1 = require("./commands/CreateLocationFsxOpenZfsCommand");
|
|
8
9
|
const CreateLocationFsxWindowsCommand_1 = require("./commands/CreateLocationFsxWindowsCommand");
|
|
9
10
|
const CreateLocationHdfsCommand_1 = require("./commands/CreateLocationHdfsCommand");
|
|
10
11
|
const CreateLocationNfsCommand_1 = require("./commands/CreateLocationNfsCommand");
|
|
@@ -18,6 +19,7 @@ const DeleteTaskCommand_1 = require("./commands/DeleteTaskCommand");
|
|
|
18
19
|
const DescribeAgentCommand_1 = require("./commands/DescribeAgentCommand");
|
|
19
20
|
const DescribeLocationEfsCommand_1 = require("./commands/DescribeLocationEfsCommand");
|
|
20
21
|
const DescribeLocationFsxLustreCommand_1 = require("./commands/DescribeLocationFsxLustreCommand");
|
|
22
|
+
const DescribeLocationFsxOpenZfsCommand_1 = require("./commands/DescribeLocationFsxOpenZfsCommand");
|
|
21
23
|
const DescribeLocationFsxWindowsCommand_1 = require("./commands/DescribeLocationFsxWindowsCommand");
|
|
22
24
|
const DescribeLocationHdfsCommand_1 = require("./commands/DescribeLocationHdfsCommand");
|
|
23
25
|
const DescribeLocationNfsCommand_1 = require("./commands/DescribeLocationNfsCommand");
|
|
@@ -99,6 +101,20 @@ class DataSync extends DataSyncClient_1.DataSyncClient {
|
|
|
99
101
|
return this.send(command, optionsOrCb);
|
|
100
102
|
}
|
|
101
103
|
}
|
|
104
|
+
createLocationFsxOpenZfs(args, optionsOrCb, cb) {
|
|
105
|
+
const command = new CreateLocationFsxOpenZfsCommand_1.CreateLocationFsxOpenZfsCommand(args);
|
|
106
|
+
if (typeof optionsOrCb === "function") {
|
|
107
|
+
this.send(command, optionsOrCb);
|
|
108
|
+
}
|
|
109
|
+
else if (typeof cb === "function") {
|
|
110
|
+
if (typeof optionsOrCb !== "object")
|
|
111
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return this.send(command, optionsOrCb);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
102
118
|
createLocationFsxWindows(args, optionsOrCb, cb) {
|
|
103
119
|
const command = new CreateLocationFsxWindowsCommand_1.CreateLocationFsxWindowsCommand(args);
|
|
104
120
|
if (typeof optionsOrCb === "function") {
|
|
@@ -281,6 +297,20 @@ class DataSync extends DataSyncClient_1.DataSyncClient {
|
|
|
281
297
|
return this.send(command, optionsOrCb);
|
|
282
298
|
}
|
|
283
299
|
}
|
|
300
|
+
describeLocationFsxOpenZfs(args, optionsOrCb, cb) {
|
|
301
|
+
const command = new DescribeLocationFsxOpenZfsCommand_1.DescribeLocationFsxOpenZfsCommand(args);
|
|
302
|
+
if (typeof optionsOrCb === "function") {
|
|
303
|
+
this.send(command, optionsOrCb);
|
|
304
|
+
}
|
|
305
|
+
else if (typeof cb === "function") {
|
|
306
|
+
if (typeof optionsOrCb !== "object")
|
|
307
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
308
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
return this.send(command, optionsOrCb);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
284
314
|
describeLocationFsxWindows(args, optionsOrCb, cb) {
|
|
285
315
|
const command = new DescribeLocationFsxWindowsCommand_1.DescribeLocationFsxWindowsCommand(args);
|
|
286
316
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLocationFsxOpenZfsCommand = 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 CreateLocationFsxOpenZfsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, 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 = "CreateLocationFsxOpenZfsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateLocationFsxOpenZfsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateLocationFsxOpenZfsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1CreateLocationFsxOpenZfsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreateLocationFsxOpenZfsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateLocationFsxOpenZfsCommand = CreateLocationFsxOpenZfsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeLocationFsxOpenZfsCommand = 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 DescribeLocationFsxOpenZfsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, 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 = "DescribeLocationFsxOpenZfsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeLocationFsxOpenZfsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeLocationFsxOpenZfsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DescribeLocationFsxOpenZfsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeLocationFsxOpenZfsCommand = DescribeLocationFsxOpenZfsCommand;
|
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./CancelTaskExecutionCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./CreateAgentCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateLocationEfsCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./CreateLocationFsxLustreCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CreateLocationFsxOpenZfsCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CreateLocationFsxWindowsCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./CreateLocationHdfsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./CreateLocationNfsCommand"), exports);
|
|
@@ -18,6 +19,7 @@ tslib_1.__exportStar(require("./DeleteTaskCommand"), exports);
|
|
|
18
19
|
tslib_1.__exportStar(require("./DescribeAgentCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./DescribeLocationEfsCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./DescribeLocationFsxLustreCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./DescribeLocationFsxOpenZfsCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./DescribeLocationFsxWindowsCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./DescribeLocationHdfsCommand"), exports);
|
|
23
25
|
tslib_1.__exportStar(require("./DescribeLocationNfsCommand"), exports);
|
|
@@ -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 = exports.TaskExecutionListEntry = exports.ListTaskExecutionsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = void 0;
|
|
3
|
+
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.CreateLocationHdfsResponse = exports.CreateLocationHdfsRequest = exports.QopConfiguration = exports.HdfsRpcProtection = exports.HdfsDataTransferProtection = exports.HdfsNameNode = exports.HdfsAuthenticationType = exports.CreateLocationFsxWindowsResponse = exports.CreateLocationFsxWindowsRequest = exports.CreateLocationFsxOpenZfsResponse = exports.CreateLocationFsxOpenZfsRequest = exports.FsxProtocol = exports.FsxProtocolNfs = exports.NfsMountOptions = exports.NfsVersion = 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.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.DescribeLocationFsxOpenZfsResponse = exports.DescribeLocationFsxOpenZfsRequest = 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 = exports.SmbSecurityDescriptorCopyFlags = exports.PreserveDevices = exports.PreserveDeletedFiles = exports.PosixPermissions = 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 = exports.ListLocationsResponse = exports.LocationListEntry = exports.ListLocationsRequest = exports.LocationFilter = exports.Operator = exports.LocationFilterName = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const DataSyncServiceException_1 = require("./DataSyncServiceException");
|
|
8
8
|
var AgentStatus;
|
|
@@ -109,6 +109,43 @@ var CreateLocationFsxLustreResponse;
|
|
|
109
109
|
...obj,
|
|
110
110
|
});
|
|
111
111
|
})(CreateLocationFsxLustreResponse = exports.CreateLocationFsxLustreResponse || (exports.CreateLocationFsxLustreResponse = {}));
|
|
112
|
+
var NfsVersion;
|
|
113
|
+
(function (NfsVersion) {
|
|
114
|
+
NfsVersion["AUTOMATIC"] = "AUTOMATIC";
|
|
115
|
+
NfsVersion["NFS3"] = "NFS3";
|
|
116
|
+
NfsVersion["NFS4_0"] = "NFS4_0";
|
|
117
|
+
NfsVersion["NFS4_1"] = "NFS4_1";
|
|
118
|
+
})(NfsVersion = exports.NfsVersion || (exports.NfsVersion = {}));
|
|
119
|
+
var NfsMountOptions;
|
|
120
|
+
(function (NfsMountOptions) {
|
|
121
|
+
NfsMountOptions.filterSensitiveLog = (obj) => ({
|
|
122
|
+
...obj,
|
|
123
|
+
});
|
|
124
|
+
})(NfsMountOptions = exports.NfsMountOptions || (exports.NfsMountOptions = {}));
|
|
125
|
+
var FsxProtocolNfs;
|
|
126
|
+
(function (FsxProtocolNfs) {
|
|
127
|
+
FsxProtocolNfs.filterSensitiveLog = (obj) => ({
|
|
128
|
+
...obj,
|
|
129
|
+
});
|
|
130
|
+
})(FsxProtocolNfs = exports.FsxProtocolNfs || (exports.FsxProtocolNfs = {}));
|
|
131
|
+
var FsxProtocol;
|
|
132
|
+
(function (FsxProtocol) {
|
|
133
|
+
FsxProtocol.filterSensitiveLog = (obj) => ({
|
|
134
|
+
...obj,
|
|
135
|
+
});
|
|
136
|
+
})(FsxProtocol = exports.FsxProtocol || (exports.FsxProtocol = {}));
|
|
137
|
+
var CreateLocationFsxOpenZfsRequest;
|
|
138
|
+
(function (CreateLocationFsxOpenZfsRequest) {
|
|
139
|
+
CreateLocationFsxOpenZfsRequest.filterSensitiveLog = (obj) => ({
|
|
140
|
+
...obj,
|
|
141
|
+
});
|
|
142
|
+
})(CreateLocationFsxOpenZfsRequest = exports.CreateLocationFsxOpenZfsRequest || (exports.CreateLocationFsxOpenZfsRequest = {}));
|
|
143
|
+
var CreateLocationFsxOpenZfsResponse;
|
|
144
|
+
(function (CreateLocationFsxOpenZfsResponse) {
|
|
145
|
+
CreateLocationFsxOpenZfsResponse.filterSensitiveLog = (obj) => ({
|
|
146
|
+
...obj,
|
|
147
|
+
});
|
|
148
|
+
})(CreateLocationFsxOpenZfsResponse = exports.CreateLocationFsxOpenZfsResponse || (exports.CreateLocationFsxOpenZfsResponse = {}));
|
|
112
149
|
var CreateLocationFsxWindowsRequest;
|
|
113
150
|
(function (CreateLocationFsxWindowsRequest) {
|
|
114
151
|
CreateLocationFsxWindowsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -165,19 +202,6 @@ var CreateLocationHdfsResponse;
|
|
|
165
202
|
...obj,
|
|
166
203
|
});
|
|
167
204
|
})(CreateLocationHdfsResponse = exports.CreateLocationHdfsResponse || (exports.CreateLocationHdfsResponse = {}));
|
|
168
|
-
var NfsVersion;
|
|
169
|
-
(function (NfsVersion) {
|
|
170
|
-
NfsVersion["AUTOMATIC"] = "AUTOMATIC";
|
|
171
|
-
NfsVersion["NFS3"] = "NFS3";
|
|
172
|
-
NfsVersion["NFS4_0"] = "NFS4_0";
|
|
173
|
-
NfsVersion["NFS4_1"] = "NFS4_1";
|
|
174
|
-
})(NfsVersion = exports.NfsVersion || (exports.NfsVersion = {}));
|
|
175
|
-
var NfsMountOptions;
|
|
176
|
-
(function (NfsMountOptions) {
|
|
177
|
-
NfsMountOptions.filterSensitiveLog = (obj) => ({
|
|
178
|
-
...obj,
|
|
179
|
-
});
|
|
180
|
-
})(NfsMountOptions = exports.NfsMountOptions || (exports.NfsMountOptions = {}));
|
|
181
205
|
var OnPremConfig;
|
|
182
206
|
(function (OnPremConfig) {
|
|
183
207
|
OnPremConfig.filterSensitiveLog = (obj) => ({
|
|
@@ -452,6 +476,18 @@ var DescribeLocationFsxLustreResponse;
|
|
|
452
476
|
...obj,
|
|
453
477
|
});
|
|
454
478
|
})(DescribeLocationFsxLustreResponse = exports.DescribeLocationFsxLustreResponse || (exports.DescribeLocationFsxLustreResponse = {}));
|
|
479
|
+
var DescribeLocationFsxOpenZfsRequest;
|
|
480
|
+
(function (DescribeLocationFsxOpenZfsRequest) {
|
|
481
|
+
DescribeLocationFsxOpenZfsRequest.filterSensitiveLog = (obj) => ({
|
|
482
|
+
...obj,
|
|
483
|
+
});
|
|
484
|
+
})(DescribeLocationFsxOpenZfsRequest = exports.DescribeLocationFsxOpenZfsRequest || (exports.DescribeLocationFsxOpenZfsRequest = {}));
|
|
485
|
+
var DescribeLocationFsxOpenZfsResponse;
|
|
486
|
+
(function (DescribeLocationFsxOpenZfsResponse) {
|
|
487
|
+
DescribeLocationFsxOpenZfsResponse.filterSensitiveLog = (obj) => ({
|
|
488
|
+
...obj,
|
|
489
|
+
});
|
|
490
|
+
})(DescribeLocationFsxOpenZfsResponse = exports.DescribeLocationFsxOpenZfsResponse || (exports.DescribeLocationFsxOpenZfsResponse = {}));
|
|
455
491
|
var DescribeLocationFsxWindowsRequest;
|
|
456
492
|
(function (DescribeLocationFsxWindowsRequest) {
|
|
457
493
|
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_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;
|
|
3
|
+
exports.deserializeAws_json1_1CreateLocationNfsCommand = exports.deserializeAws_json1_1CreateLocationHdfsCommand = exports.deserializeAws_json1_1CreateLocationFsxWindowsCommand = exports.deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = 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_1DescribeLocationFsxOpenZfsCommand = 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_1CreateLocationFsxOpenZfsCommand = 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_1DescribeLocationFsxOpenZfsCommand = 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 = exports.deserializeAws_json1_1CreateLocationSmbCommand = exports.deserializeAws_json1_1CreateLocationS3Command = exports.deserializeAws_json1_1CreateLocationObjectStorageCommand = 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 DataSyncServiceException_1 = require("../models/DataSyncServiceException");
|
|
@@ -46,6 +46,16 @@ const serializeAws_json1_1CreateLocationFsxLustreCommand = async (input, context
|
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
48
|
exports.serializeAws_json1_1CreateLocationFsxLustreCommand = serializeAws_json1_1CreateLocationFsxLustreCommand;
|
|
49
|
+
const serializeAws_json1_1CreateLocationFsxOpenZfsCommand = async (input, context) => {
|
|
50
|
+
const headers = {
|
|
51
|
+
"content-type": "application/x-amz-json-1.1",
|
|
52
|
+
"x-amz-target": "FmrsService.CreateLocationFsxOpenZfs",
|
|
53
|
+
};
|
|
54
|
+
let body;
|
|
55
|
+
body = JSON.stringify(serializeAws_json1_1CreateLocationFsxOpenZfsRequest(input, context));
|
|
56
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
+
};
|
|
58
|
+
exports.serializeAws_json1_1CreateLocationFsxOpenZfsCommand = serializeAws_json1_1CreateLocationFsxOpenZfsCommand;
|
|
49
59
|
const serializeAws_json1_1CreateLocationFsxWindowsCommand = async (input, context) => {
|
|
50
60
|
const headers = {
|
|
51
61
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -176,6 +186,16 @@ const serializeAws_json1_1DescribeLocationFsxLustreCommand = async (input, conte
|
|
|
176
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
187
|
};
|
|
178
188
|
exports.serializeAws_json1_1DescribeLocationFsxLustreCommand = serializeAws_json1_1DescribeLocationFsxLustreCommand;
|
|
189
|
+
const serializeAws_json1_1DescribeLocationFsxOpenZfsCommand = async (input, context) => {
|
|
190
|
+
const headers = {
|
|
191
|
+
"content-type": "application/x-amz-json-1.1",
|
|
192
|
+
"x-amz-target": "FmrsService.DescribeLocationFsxOpenZfs",
|
|
193
|
+
};
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(serializeAws_json1_1DescribeLocationFsxOpenZfsRequest(input, context));
|
|
196
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
+
};
|
|
198
|
+
exports.serializeAws_json1_1DescribeLocationFsxOpenZfsCommand = serializeAws_json1_1DescribeLocationFsxOpenZfsCommand;
|
|
179
199
|
const serializeAws_json1_1DescribeLocationFsxWindowsCommand = async (input, context) => {
|
|
180
200
|
const headers = {
|
|
181
201
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -562,6 +582,45 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
|
|
|
562
582
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
563
583
|
}
|
|
564
584
|
};
|
|
585
|
+
const deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = async (output, context) => {
|
|
586
|
+
if (output.statusCode >= 300) {
|
|
587
|
+
return deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError(output, context);
|
|
588
|
+
}
|
|
589
|
+
const data = await parseBody(output.body, context);
|
|
590
|
+
let contents = {};
|
|
591
|
+
contents = deserializeAws_json1_1CreateLocationFsxOpenZfsResponse(data, context);
|
|
592
|
+
const response = {
|
|
593
|
+
$metadata: deserializeMetadata(output),
|
|
594
|
+
...contents,
|
|
595
|
+
};
|
|
596
|
+
return Promise.resolve(response);
|
|
597
|
+
};
|
|
598
|
+
exports.deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = deserializeAws_json1_1CreateLocationFsxOpenZfsCommand;
|
|
599
|
+
const deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
600
|
+
const parsedOutput = {
|
|
601
|
+
...output,
|
|
602
|
+
body: await parseBody(output.body, context),
|
|
603
|
+
};
|
|
604
|
+
let response;
|
|
605
|
+
let errorCode = "UnknownError";
|
|
606
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
|
+
switch (errorCode) {
|
|
608
|
+
case "InternalException":
|
|
609
|
+
case "com.amazonaws.datasync#InternalException":
|
|
610
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
611
|
+
case "InvalidRequestException":
|
|
612
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
613
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
614
|
+
default:
|
|
615
|
+
const parsedBody = parsedOutput.body;
|
|
616
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
617
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
618
|
+
$fault: "client",
|
|
619
|
+
$metadata: deserializeMetadata(output),
|
|
620
|
+
});
|
|
621
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
622
|
+
}
|
|
623
|
+
};
|
|
565
624
|
const deserializeAws_json1_1CreateLocationFsxWindowsCommand = async (output, context) => {
|
|
566
625
|
if (output.statusCode >= 300) {
|
|
567
626
|
return deserializeAws_json1_1CreateLocationFsxWindowsCommandError(output, context);
|
|
@@ -1069,6 +1128,45 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
|
|
|
1069
1128
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1070
1129
|
}
|
|
1071
1130
|
};
|
|
1131
|
+
const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand = async (output, context) => {
|
|
1132
|
+
if (output.statusCode >= 300) {
|
|
1133
|
+
return deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError(output, context);
|
|
1134
|
+
}
|
|
1135
|
+
const data = await parseBody(output.body, context);
|
|
1136
|
+
let contents = {};
|
|
1137
|
+
contents = deserializeAws_json1_1DescribeLocationFsxOpenZfsResponse(data, context);
|
|
1138
|
+
const response = {
|
|
1139
|
+
$metadata: deserializeMetadata(output),
|
|
1140
|
+
...contents,
|
|
1141
|
+
};
|
|
1142
|
+
return Promise.resolve(response);
|
|
1143
|
+
};
|
|
1144
|
+
exports.deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand = deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand;
|
|
1145
|
+
const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
1146
|
+
const parsedOutput = {
|
|
1147
|
+
...output,
|
|
1148
|
+
body: await parseBody(output.body, context),
|
|
1149
|
+
};
|
|
1150
|
+
let response;
|
|
1151
|
+
let errorCode = "UnknownError";
|
|
1152
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
+
switch (errorCode) {
|
|
1154
|
+
case "InternalException":
|
|
1155
|
+
case "com.amazonaws.datasync#InternalException":
|
|
1156
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1157
|
+
case "InvalidRequestException":
|
|
1158
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1159
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1160
|
+
default:
|
|
1161
|
+
const parsedBody = parsedOutput.body;
|
|
1162
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1163
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1164
|
+
$fault: "client",
|
|
1165
|
+
$metadata: deserializeMetadata(output),
|
|
1166
|
+
});
|
|
1167
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1072
1170
|
const deserializeAws_json1_1DescribeLocationFsxWindowsCommand = async (output, context) => {
|
|
1073
1171
|
if (output.statusCode >= 300) {
|
|
1074
1172
|
return deserializeAws_json1_1DescribeLocationFsxWindowsCommandError(output, context);
|
|
@@ -2039,6 +2137,21 @@ const serializeAws_json1_1CreateLocationFsxLustreRequest = (input, context) => {
|
|
|
2039
2137
|
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2040
2138
|
};
|
|
2041
2139
|
};
|
|
2140
|
+
const serializeAws_json1_1CreateLocationFsxOpenZfsRequest = (input, context) => {
|
|
2141
|
+
return {
|
|
2142
|
+
...(input.FsxFilesystemArn !== undefined &&
|
|
2143
|
+
input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2144
|
+
...(input.Protocol !== undefined &&
|
|
2145
|
+
input.Protocol !== null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
|
|
2146
|
+
...(input.SecurityGroupArns !== undefined &&
|
|
2147
|
+
input.SecurityGroupArns !== null && {
|
|
2148
|
+
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2149
|
+
}),
|
|
2150
|
+
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2151
|
+
...(input.Tags !== undefined &&
|
|
2152
|
+
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2153
|
+
};
|
|
2154
|
+
};
|
|
2042
2155
|
const serializeAws_json1_1CreateLocationFsxWindowsRequest = (input, context) => {
|
|
2043
2156
|
return {
|
|
2044
2157
|
...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
|
|
@@ -2199,6 +2312,11 @@ const serializeAws_json1_1DescribeLocationFsxLustreRequest = (input, context) =>
|
|
|
2199
2312
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2200
2313
|
};
|
|
2201
2314
|
};
|
|
2315
|
+
const serializeAws_json1_1DescribeLocationFsxOpenZfsRequest = (input, context) => {
|
|
2316
|
+
return {
|
|
2317
|
+
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2318
|
+
};
|
|
2319
|
+
};
|
|
2202
2320
|
const serializeAws_json1_1DescribeLocationFsxWindowsRequest = (input, context) => {
|
|
2203
2321
|
return {
|
|
2204
2322
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
@@ -2285,6 +2403,20 @@ const serializeAws_json1_1FilterValues = (input, context) => {
|
|
|
2285
2403
|
return entry;
|
|
2286
2404
|
});
|
|
2287
2405
|
};
|
|
2406
|
+
const serializeAws_json1_1FsxProtocol = (input, context) => {
|
|
2407
|
+
return {
|
|
2408
|
+
...(input.NFS !== undefined &&
|
|
2409
|
+
input.NFS !== null && { NFS: serializeAws_json1_1FsxProtocolNfs(input.NFS, context) }),
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2412
|
+
const serializeAws_json1_1FsxProtocolNfs = (input, context) => {
|
|
2413
|
+
return {
|
|
2414
|
+
...(input.MountOptions !== undefined &&
|
|
2415
|
+
input.MountOptions !== null && {
|
|
2416
|
+
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
2417
|
+
}),
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2288
2420
|
const serializeAws_json1_1HdfsNameNode = (input, context) => {
|
|
2289
2421
|
return {
|
|
2290
2422
|
...(input.Hostname !== undefined && input.Hostname !== null && { Hostname: input.Hostname }),
|
|
@@ -2649,6 +2781,11 @@ const deserializeAws_json1_1CreateLocationFsxLustreResponse = (output, context)
|
|
|
2649
2781
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2650
2782
|
};
|
|
2651
2783
|
};
|
|
2784
|
+
const deserializeAws_json1_1CreateLocationFsxOpenZfsResponse = (output, context) => {
|
|
2785
|
+
return {
|
|
2786
|
+
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2787
|
+
};
|
|
2788
|
+
};
|
|
2652
2789
|
const deserializeAws_json1_1CreateLocationFsxWindowsResponse = (output, context) => {
|
|
2653
2790
|
return {
|
|
2654
2791
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
@@ -2734,6 +2871,21 @@ const deserializeAws_json1_1DescribeLocationFsxLustreResponse = (output, context
|
|
|
2734
2871
|
: undefined,
|
|
2735
2872
|
};
|
|
2736
2873
|
};
|
|
2874
|
+
const deserializeAws_json1_1DescribeLocationFsxOpenZfsResponse = (output, context) => {
|
|
2875
|
+
return {
|
|
2876
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
2877
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2878
|
+
: undefined,
|
|
2879
|
+
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2880
|
+
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2881
|
+
Protocol: output.Protocol !== undefined && output.Protocol !== null
|
|
2882
|
+
? deserializeAws_json1_1FsxProtocol(output.Protocol, context)
|
|
2883
|
+
: undefined,
|
|
2884
|
+
SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
|
|
2885
|
+
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2886
|
+
: undefined,
|
|
2887
|
+
};
|
|
2888
|
+
};
|
|
2737
2889
|
const deserializeAws_json1_1DescribeLocationFsxWindowsResponse = (output, context) => {
|
|
2738
2890
|
return {
|
|
2739
2891
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -2942,6 +3094,20 @@ const deserializeAws_json1_1FilterRule = (output, context) => {
|
|
|
2942
3094
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2943
3095
|
};
|
|
2944
3096
|
};
|
|
3097
|
+
const deserializeAws_json1_1FsxProtocol = (output, context) => {
|
|
3098
|
+
return {
|
|
3099
|
+
NFS: output.NFS !== undefined && output.NFS !== null
|
|
3100
|
+
? deserializeAws_json1_1FsxProtocolNfs(output.NFS, context)
|
|
3101
|
+
: undefined,
|
|
3102
|
+
};
|
|
3103
|
+
};
|
|
3104
|
+
const deserializeAws_json1_1FsxProtocolNfs = (output, context) => {
|
|
3105
|
+
return {
|
|
3106
|
+
MountOptions: output.MountOptions !== undefined && output.MountOptions !== null
|
|
3107
|
+
? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context)
|
|
3108
|
+
: undefined,
|
|
3109
|
+
};
|
|
3110
|
+
};
|
|
2945
3111
|
const deserializeAws_json1_1HdfsNameNode = (output, context) => {
|
|
2946
3112
|
return {
|
|
2947
3113
|
Hostname: (0, smithy_client_1.expectString)(output.Hostname),
|
package/dist-es/DataSync.js
CHANGED
|
@@ -3,6 +3,7 @@ import { CancelTaskExecutionCommand, } from "./commands/CancelTaskExecutionComma
|
|
|
3
3
|
import { CreateAgentCommand } from "./commands/CreateAgentCommand";
|
|
4
4
|
import { CreateLocationEfsCommand, } from "./commands/CreateLocationEfsCommand";
|
|
5
5
|
import { CreateLocationFsxLustreCommand, } from "./commands/CreateLocationFsxLustreCommand";
|
|
6
|
+
import { CreateLocationFsxOpenZfsCommand, } from "./commands/CreateLocationFsxOpenZfsCommand";
|
|
6
7
|
import { CreateLocationFsxWindowsCommand, } from "./commands/CreateLocationFsxWindowsCommand";
|
|
7
8
|
import { CreateLocationHdfsCommand, } from "./commands/CreateLocationHdfsCommand";
|
|
8
9
|
import { CreateLocationNfsCommand, } from "./commands/CreateLocationNfsCommand";
|
|
@@ -16,6 +17,7 @@ import { DeleteTaskCommand } from "./commands/DeleteTaskCommand";
|
|
|
16
17
|
import { DescribeAgentCommand, } from "./commands/DescribeAgentCommand";
|
|
17
18
|
import { DescribeLocationEfsCommand, } from "./commands/DescribeLocationEfsCommand";
|
|
18
19
|
import { DescribeLocationFsxLustreCommand, } from "./commands/DescribeLocationFsxLustreCommand";
|
|
20
|
+
import { DescribeLocationFsxOpenZfsCommand, } from "./commands/DescribeLocationFsxOpenZfsCommand";
|
|
19
21
|
import { DescribeLocationFsxWindowsCommand, } from "./commands/DescribeLocationFsxWindowsCommand";
|
|
20
22
|
import { DescribeLocationHdfsCommand, } from "./commands/DescribeLocationHdfsCommand";
|
|
21
23
|
import { DescribeLocationNfsCommand, } from "./commands/DescribeLocationNfsCommand";
|
|
@@ -101,6 +103,20 @@ var DataSync = (function (_super) {
|
|
|
101
103
|
return this.send(command, optionsOrCb);
|
|
102
104
|
}
|
|
103
105
|
};
|
|
106
|
+
DataSync.prototype.createLocationFsxOpenZfs = function (args, optionsOrCb, cb) {
|
|
107
|
+
var command = new CreateLocationFsxOpenZfsCommand(args);
|
|
108
|
+
if (typeof optionsOrCb === "function") {
|
|
109
|
+
this.send(command, optionsOrCb);
|
|
110
|
+
}
|
|
111
|
+
else if (typeof cb === "function") {
|
|
112
|
+
if (typeof optionsOrCb !== "object")
|
|
113
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
114
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
104
120
|
DataSync.prototype.createLocationFsxWindows = function (args, optionsOrCb, cb) {
|
|
105
121
|
var command = new CreateLocationFsxWindowsCommand(args);
|
|
106
122
|
if (typeof optionsOrCb === "function") {
|
|
@@ -283,6 +299,20 @@ var DataSync = (function (_super) {
|
|
|
283
299
|
return this.send(command, optionsOrCb);
|
|
284
300
|
}
|
|
285
301
|
};
|
|
302
|
+
DataSync.prototype.describeLocationFsxOpenZfs = function (args, optionsOrCb, cb) {
|
|
303
|
+
var command = new DescribeLocationFsxOpenZfsCommand(args);
|
|
304
|
+
if (typeof optionsOrCb === "function") {
|
|
305
|
+
this.send(command, optionsOrCb);
|
|
306
|
+
}
|
|
307
|
+
else if (typeof cb === "function") {
|
|
308
|
+
if (typeof optionsOrCb !== "object")
|
|
309
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
310
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
return this.send(command, optionsOrCb);
|
|
314
|
+
}
|
|
315
|
+
};
|
|
286
316
|
DataSync.prototype.describeLocationFsxWindows = function (args, optionsOrCb, cb) {
|
|
287
317
|
var command = new DescribeLocationFsxWindowsCommand(args);
|
|
288
318
|
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 { CreateLocationFsxOpenZfsRequest, CreateLocationFsxOpenZfsResponse } from "../models/models_0";
|
|
5
|
+
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;
|
|
12
|
+
}
|
|
13
|
+
CreateLocationFsxOpenZfsCommand.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 = "CreateLocationFsxOpenZfsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateLocationFsxOpenZfsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateLocationFsxOpenZfsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
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) {
|
|
32
|
+
return serializeAws_json1_1CreateLocationFsxOpenZfsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateLocationFsxOpenZfsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreateLocationFsxOpenZfsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateLocationFsxOpenZfsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateLocationFsxOpenZfsCommand };
|