@aws-sdk/client-datasync 3.118.1 → 3.119.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 +11 -0
- package/dist-cjs/DataSync.js +30 -0
- package/dist-cjs/commands/CreateLocationFsxOntapCommand.js +36 -0
- package/dist-cjs/commands/DescribeLocationFsxOntapCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +51 -15
- package/dist-cjs/protocols/Aws_json1_1.js +168 -2
- package/dist-es/DataSync.js +30 -0
- package/dist-es/commands/CreateLocationFsxOntapCommand.js +39 -0
- package/dist-es/commands/DescribeLocationFsxOntapCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +33 -13
- package/dist-es/protocols/Aws_json1_1.js +186 -2
- package/dist-types/DataSync.d.ts +17 -4
- package/dist-types/DataSyncClient.d.ts +4 -2
- package/dist-types/commands/CreateLocationFsxOntapCommand.d.ts +36 -0
- package/dist-types/commands/CreateLocationObjectStorageCommand.d.ts +1 -2
- package/dist-types/commands/DescribeLocationFsxOntapCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLocationObjectStorageCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +293 -154
- 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/CreateLocationFsxOntapCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLocationFsxOntapCommand.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 +83 -14
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.119.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.1...v3.119.0) (2022-06-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-datasync:** AWS DataSync now supports Amazon FSx for NetApp ONTAP locations. ([87a3aac](https://github.com/aws/aws-sdk-js-v3/commit/87a3aac3af7566b6e0fe02f15a77521813534a74))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
18
|
|
|
8
19
|
**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 CreateLocationFsxOntapCommand_1 = require("./commands/CreateLocationFsxOntapCommand");
|
|
8
9
|
const CreateLocationFsxOpenZfsCommand_1 = require("./commands/CreateLocationFsxOpenZfsCommand");
|
|
9
10
|
const CreateLocationFsxWindowsCommand_1 = require("./commands/CreateLocationFsxWindowsCommand");
|
|
10
11
|
const CreateLocationHdfsCommand_1 = require("./commands/CreateLocationHdfsCommand");
|
|
@@ -19,6 +20,7 @@ const DeleteTaskCommand_1 = require("./commands/DeleteTaskCommand");
|
|
|
19
20
|
const DescribeAgentCommand_1 = require("./commands/DescribeAgentCommand");
|
|
20
21
|
const DescribeLocationEfsCommand_1 = require("./commands/DescribeLocationEfsCommand");
|
|
21
22
|
const DescribeLocationFsxLustreCommand_1 = require("./commands/DescribeLocationFsxLustreCommand");
|
|
23
|
+
const DescribeLocationFsxOntapCommand_1 = require("./commands/DescribeLocationFsxOntapCommand");
|
|
22
24
|
const DescribeLocationFsxOpenZfsCommand_1 = require("./commands/DescribeLocationFsxOpenZfsCommand");
|
|
23
25
|
const DescribeLocationFsxWindowsCommand_1 = require("./commands/DescribeLocationFsxWindowsCommand");
|
|
24
26
|
const DescribeLocationHdfsCommand_1 = require("./commands/DescribeLocationHdfsCommand");
|
|
@@ -101,6 +103,20 @@ class DataSync extends DataSyncClient_1.DataSyncClient {
|
|
|
101
103
|
return this.send(command, optionsOrCb);
|
|
102
104
|
}
|
|
103
105
|
}
|
|
106
|
+
createLocationFsxOntap(args, optionsOrCb, cb) {
|
|
107
|
+
const command = new CreateLocationFsxOntapCommand_1.CreateLocationFsxOntapCommand(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 ${typeof optionsOrCb}`);
|
|
114
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
104
120
|
createLocationFsxOpenZfs(args, optionsOrCb, cb) {
|
|
105
121
|
const command = new CreateLocationFsxOpenZfsCommand_1.CreateLocationFsxOpenZfsCommand(args);
|
|
106
122
|
if (typeof optionsOrCb === "function") {
|
|
@@ -297,6 +313,20 @@ class DataSync extends DataSyncClient_1.DataSyncClient {
|
|
|
297
313
|
return this.send(command, optionsOrCb);
|
|
298
314
|
}
|
|
299
315
|
}
|
|
316
|
+
describeLocationFsxOntap(args, optionsOrCb, cb) {
|
|
317
|
+
const command = new DescribeLocationFsxOntapCommand_1.DescribeLocationFsxOntapCommand(args);
|
|
318
|
+
if (typeof optionsOrCb === "function") {
|
|
319
|
+
this.send(command, optionsOrCb);
|
|
320
|
+
}
|
|
321
|
+
else if (typeof cb === "function") {
|
|
322
|
+
if (typeof optionsOrCb !== "object")
|
|
323
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
324
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
return this.send(command, optionsOrCb);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
300
330
|
describeLocationFsxOpenZfs(args, optionsOrCb, cb) {
|
|
301
331
|
const command = new DescribeLocationFsxOpenZfsCommand_1.DescribeLocationFsxOpenZfsCommand(args);
|
|
302
332
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLocationFsxOntapCommand = 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 CreateLocationFsxOntapCommand 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 = "CreateLocationFsxOntapCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateLocationFsxOntapRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateLocationFsxOntapResponse.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_1CreateLocationFsxOntapCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreateLocationFsxOntapCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateLocationFsxOntapCommand = CreateLocationFsxOntapCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeLocationFsxOntapCommand = 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 DescribeLocationFsxOntapCommand 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 = "DescribeLocationFsxOntapCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeLocationFsxOntapRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeLocationFsxOntapResponse.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_1DescribeLocationFsxOntapCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeLocationFsxOntapCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeLocationFsxOntapCommand = DescribeLocationFsxOntapCommand;
|
|
@@ -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("./CreateLocationFsxOntapCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CreateLocationFsxOpenZfsCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./CreateLocationFsxWindowsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./CreateLocationHdfsCommand"), exports);
|
|
@@ -19,6 +20,7 @@ tslib_1.__exportStar(require("./DeleteTaskCommand"), exports);
|
|
|
19
20
|
tslib_1.__exportStar(require("./DescribeAgentCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./DescribeLocationEfsCommand"), exports);
|
|
21
22
|
tslib_1.__exportStar(require("./DescribeLocationFsxLustreCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./DescribeLocationFsxOntapCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./DescribeLocationFsxOpenZfsCommand"), exports);
|
|
23
25
|
tslib_1.__exportStar(require("./DescribeLocationFsxWindowsCommand"), exports);
|
|
24
26
|
tslib_1.__exportStar(require("./DescribeLocationHdfsCommand"), 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 = exports.ListLocationsResponse = exports.LocationListEntry = exports.ListLocationsRequest = exports.LocationFilter = exports.Operator = exports.LocationFilterName = exports.ListAgentsResponse = exports.ListAgentsRequest = void 0;
|
|
3
|
+
exports.FilterRule = exports.FilterType = exports.CreateLocationSmbResponse = exports.CreateLocationSmbRequest = 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.CreateLocationFsxOntapResponse = exports.CreateLocationFsxOntapRequest = exports.FsxProtocol = exports.FsxProtocolSmb = exports.SmbMountOptions = exports.SmbVersion = exports.FsxProtocolNfs = exports.NfsMountOptions = exports.NfsVersion = exports.CreateLocationFsxLustreResponse = exports.CreateLocationFsxLustreRequest = exports.CreateLocationEfsResponse = exports.CreateLocationEfsRequest = exports.EfsInTransitEncryption = 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.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.DescribeLocationFsxOntapResponse = exports.DescribeLocationFsxOntapRequest = 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 = exports.OverwriteMode = exports.ObjectTags = exports.Mtime = exports.LogLevel = exports.Gid = 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 = exports.ListAgentsResponse = exports.ListAgentsRequest = exports.DescribeTaskExecutionResponse = exports.TaskExecutionStatus = exports.TaskExecutionResultDetail = exports.PhaseStatus = exports.DescribeTaskExecutionRequest = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const DataSyncServiceException_1 = require("./DataSyncServiceException");
|
|
8
8
|
var AgentStatus;
|
|
@@ -134,16 +134,50 @@ var FsxProtocolNfs;
|
|
|
134
134
|
...obj,
|
|
135
135
|
});
|
|
136
136
|
})(FsxProtocolNfs = exports.FsxProtocolNfs || (exports.FsxProtocolNfs = {}));
|
|
137
|
+
var SmbVersion;
|
|
138
|
+
(function (SmbVersion) {
|
|
139
|
+
SmbVersion["AUTOMATIC"] = "AUTOMATIC";
|
|
140
|
+
SmbVersion["SMB2"] = "SMB2";
|
|
141
|
+
SmbVersion["SMB3"] = "SMB3";
|
|
142
|
+
})(SmbVersion = exports.SmbVersion || (exports.SmbVersion = {}));
|
|
143
|
+
var SmbMountOptions;
|
|
144
|
+
(function (SmbMountOptions) {
|
|
145
|
+
SmbMountOptions.filterSensitiveLog = (obj) => ({
|
|
146
|
+
...obj,
|
|
147
|
+
});
|
|
148
|
+
})(SmbMountOptions = exports.SmbMountOptions || (exports.SmbMountOptions = {}));
|
|
149
|
+
var FsxProtocolSmb;
|
|
150
|
+
(function (FsxProtocolSmb) {
|
|
151
|
+
FsxProtocolSmb.filterSensitiveLog = (obj) => ({
|
|
152
|
+
...obj,
|
|
153
|
+
...(obj.Password && { Password: smithy_client_1.SENSITIVE_STRING }),
|
|
154
|
+
});
|
|
155
|
+
})(FsxProtocolSmb = exports.FsxProtocolSmb || (exports.FsxProtocolSmb = {}));
|
|
137
156
|
var FsxProtocol;
|
|
138
157
|
(function (FsxProtocol) {
|
|
139
158
|
FsxProtocol.filterSensitiveLog = (obj) => ({
|
|
140
159
|
...obj,
|
|
160
|
+
...(obj.SMB && { SMB: FsxProtocolSmb.filterSensitiveLog(obj.SMB) }),
|
|
141
161
|
});
|
|
142
162
|
})(FsxProtocol = exports.FsxProtocol || (exports.FsxProtocol = {}));
|
|
163
|
+
var CreateLocationFsxOntapRequest;
|
|
164
|
+
(function (CreateLocationFsxOntapRequest) {
|
|
165
|
+
CreateLocationFsxOntapRequest.filterSensitiveLog = (obj) => ({
|
|
166
|
+
...obj,
|
|
167
|
+
...(obj.Protocol && { Protocol: FsxProtocol.filterSensitiveLog(obj.Protocol) }),
|
|
168
|
+
});
|
|
169
|
+
})(CreateLocationFsxOntapRequest = exports.CreateLocationFsxOntapRequest || (exports.CreateLocationFsxOntapRequest = {}));
|
|
170
|
+
var CreateLocationFsxOntapResponse;
|
|
171
|
+
(function (CreateLocationFsxOntapResponse) {
|
|
172
|
+
CreateLocationFsxOntapResponse.filterSensitiveLog = (obj) => ({
|
|
173
|
+
...obj,
|
|
174
|
+
});
|
|
175
|
+
})(CreateLocationFsxOntapResponse = exports.CreateLocationFsxOntapResponse || (exports.CreateLocationFsxOntapResponse = {}));
|
|
143
176
|
var CreateLocationFsxOpenZfsRequest;
|
|
144
177
|
(function (CreateLocationFsxOpenZfsRequest) {
|
|
145
178
|
CreateLocationFsxOpenZfsRequest.filterSensitiveLog = (obj) => ({
|
|
146
179
|
...obj,
|
|
180
|
+
...(obj.Protocol && { Protocol: FsxProtocol.filterSensitiveLog(obj.Protocol) }),
|
|
147
181
|
});
|
|
148
182
|
})(CreateLocationFsxOpenZfsRequest = exports.CreateLocationFsxOpenZfsRequest || (exports.CreateLocationFsxOpenZfsRequest = {}));
|
|
149
183
|
var CreateLocationFsxOpenZfsResponse;
|
|
@@ -272,18 +306,6 @@ var CreateLocationS3Response;
|
|
|
272
306
|
...obj,
|
|
273
307
|
});
|
|
274
308
|
})(CreateLocationS3Response = exports.CreateLocationS3Response || (exports.CreateLocationS3Response = {}));
|
|
275
|
-
var SmbVersion;
|
|
276
|
-
(function (SmbVersion) {
|
|
277
|
-
SmbVersion["AUTOMATIC"] = "AUTOMATIC";
|
|
278
|
-
SmbVersion["SMB2"] = "SMB2";
|
|
279
|
-
SmbVersion["SMB3"] = "SMB3";
|
|
280
|
-
})(SmbVersion = exports.SmbVersion || (exports.SmbVersion = {}));
|
|
281
|
-
var SmbMountOptions;
|
|
282
|
-
(function (SmbMountOptions) {
|
|
283
|
-
SmbMountOptions.filterSensitiveLog = (obj) => ({
|
|
284
|
-
...obj,
|
|
285
|
-
});
|
|
286
|
-
})(SmbMountOptions = exports.SmbMountOptions || (exports.SmbMountOptions = {}));
|
|
287
309
|
var CreateLocationSmbRequest;
|
|
288
310
|
(function (CreateLocationSmbRequest) {
|
|
289
311
|
CreateLocationSmbRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -487,6 +509,19 @@ var DescribeLocationFsxLustreResponse;
|
|
|
487
509
|
...obj,
|
|
488
510
|
});
|
|
489
511
|
})(DescribeLocationFsxLustreResponse = exports.DescribeLocationFsxLustreResponse || (exports.DescribeLocationFsxLustreResponse = {}));
|
|
512
|
+
var DescribeLocationFsxOntapRequest;
|
|
513
|
+
(function (DescribeLocationFsxOntapRequest) {
|
|
514
|
+
DescribeLocationFsxOntapRequest.filterSensitiveLog = (obj) => ({
|
|
515
|
+
...obj,
|
|
516
|
+
});
|
|
517
|
+
})(DescribeLocationFsxOntapRequest = exports.DescribeLocationFsxOntapRequest || (exports.DescribeLocationFsxOntapRequest = {}));
|
|
518
|
+
var DescribeLocationFsxOntapResponse;
|
|
519
|
+
(function (DescribeLocationFsxOntapResponse) {
|
|
520
|
+
DescribeLocationFsxOntapResponse.filterSensitiveLog = (obj) => ({
|
|
521
|
+
...obj,
|
|
522
|
+
...(obj.Protocol && { Protocol: FsxProtocol.filterSensitiveLog(obj.Protocol) }),
|
|
523
|
+
});
|
|
524
|
+
})(DescribeLocationFsxOntapResponse = exports.DescribeLocationFsxOntapResponse || (exports.DescribeLocationFsxOntapResponse = {}));
|
|
490
525
|
var DescribeLocationFsxOpenZfsRequest;
|
|
491
526
|
(function (DescribeLocationFsxOpenZfsRequest) {
|
|
492
527
|
DescribeLocationFsxOpenZfsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -497,6 +532,7 @@ var DescribeLocationFsxOpenZfsResponse;
|
|
|
497
532
|
(function (DescribeLocationFsxOpenZfsResponse) {
|
|
498
533
|
DescribeLocationFsxOpenZfsResponse.filterSensitiveLog = (obj) => ({
|
|
499
534
|
...obj,
|
|
535
|
+
...(obj.Protocol && { Protocol: FsxProtocol.filterSensitiveLog(obj.Protocol) }),
|
|
500
536
|
});
|
|
501
537
|
})(DescribeLocationFsxOpenZfsResponse = exports.DescribeLocationFsxOpenZfsResponse || (exports.DescribeLocationFsxOpenZfsResponse = {}));
|
|
502
538
|
var DescribeLocationFsxWindowsRequest;
|
|
@@ -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_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;
|
|
3
|
+
exports.deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = exports.deserializeAws_json1_1CreateLocationFsxOntapCommand = 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_1DescribeLocationFsxOntapCommand = 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_1CreateLocationFsxOntapCommand = 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_1DescribeLocationFsxOntapCommand = 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 = exports.deserializeAws_json1_1CreateLocationNfsCommand = exports.deserializeAws_json1_1CreateLocationHdfsCommand = exports.deserializeAws_json1_1CreateLocationFsxWindowsCommand = 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_1CreateLocationFsxOntapCommand = async (input, context) => {
|
|
50
|
+
const headers = {
|
|
51
|
+
"content-type": "application/x-amz-json-1.1",
|
|
52
|
+
"x-amz-target": "FmrsService.CreateLocationFsxOntap",
|
|
53
|
+
};
|
|
54
|
+
let body;
|
|
55
|
+
body = JSON.stringify(serializeAws_json1_1CreateLocationFsxOntapRequest(input, context));
|
|
56
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
+
};
|
|
58
|
+
exports.serializeAws_json1_1CreateLocationFsxOntapCommand = serializeAws_json1_1CreateLocationFsxOntapCommand;
|
|
49
59
|
const serializeAws_json1_1CreateLocationFsxOpenZfsCommand = async (input, context) => {
|
|
50
60
|
const headers = {
|
|
51
61
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -186,6 +196,16 @@ const serializeAws_json1_1DescribeLocationFsxLustreCommand = async (input, conte
|
|
|
186
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
197
|
};
|
|
188
198
|
exports.serializeAws_json1_1DescribeLocationFsxLustreCommand = serializeAws_json1_1DescribeLocationFsxLustreCommand;
|
|
199
|
+
const serializeAws_json1_1DescribeLocationFsxOntapCommand = async (input, context) => {
|
|
200
|
+
const headers = {
|
|
201
|
+
"content-type": "application/x-amz-json-1.1",
|
|
202
|
+
"x-amz-target": "FmrsService.DescribeLocationFsxOntap",
|
|
203
|
+
};
|
|
204
|
+
let body;
|
|
205
|
+
body = JSON.stringify(serializeAws_json1_1DescribeLocationFsxOntapRequest(input, context));
|
|
206
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
|
+
};
|
|
208
|
+
exports.serializeAws_json1_1DescribeLocationFsxOntapCommand = serializeAws_json1_1DescribeLocationFsxOntapCommand;
|
|
189
209
|
const serializeAws_json1_1DescribeLocationFsxOpenZfsCommand = async (input, context) => {
|
|
190
210
|
const headers = {
|
|
191
211
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -582,6 +602,45 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
|
|
|
582
602
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
583
603
|
}
|
|
584
604
|
};
|
|
605
|
+
const deserializeAws_json1_1CreateLocationFsxOntapCommand = async (output, context) => {
|
|
606
|
+
if (output.statusCode >= 300) {
|
|
607
|
+
return deserializeAws_json1_1CreateLocationFsxOntapCommandError(output, context);
|
|
608
|
+
}
|
|
609
|
+
const data = await parseBody(output.body, context);
|
|
610
|
+
let contents = {};
|
|
611
|
+
contents = deserializeAws_json1_1CreateLocationFsxOntapResponse(data, context);
|
|
612
|
+
const response = {
|
|
613
|
+
$metadata: deserializeMetadata(output),
|
|
614
|
+
...contents,
|
|
615
|
+
};
|
|
616
|
+
return Promise.resolve(response);
|
|
617
|
+
};
|
|
618
|
+
exports.deserializeAws_json1_1CreateLocationFsxOntapCommand = deserializeAws_json1_1CreateLocationFsxOntapCommand;
|
|
619
|
+
const deserializeAws_json1_1CreateLocationFsxOntapCommandError = async (output, context) => {
|
|
620
|
+
const parsedOutput = {
|
|
621
|
+
...output,
|
|
622
|
+
body: await parseBody(output.body, context),
|
|
623
|
+
};
|
|
624
|
+
let response;
|
|
625
|
+
let errorCode = "UnknownError";
|
|
626
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
+
switch (errorCode) {
|
|
628
|
+
case "InternalException":
|
|
629
|
+
case "com.amazonaws.datasync#InternalException":
|
|
630
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
631
|
+
case "InvalidRequestException":
|
|
632
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
633
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
634
|
+
default:
|
|
635
|
+
const parsedBody = parsedOutput.body;
|
|
636
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
637
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
638
|
+
$fault: "client",
|
|
639
|
+
$metadata: deserializeMetadata(output),
|
|
640
|
+
});
|
|
641
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
642
|
+
}
|
|
643
|
+
};
|
|
585
644
|
const deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = async (output, context) => {
|
|
586
645
|
if (output.statusCode >= 300) {
|
|
587
646
|
return deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError(output, context);
|
|
@@ -1128,6 +1187,45 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
|
|
|
1128
1187
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1129
1188
|
}
|
|
1130
1189
|
};
|
|
1190
|
+
const deserializeAws_json1_1DescribeLocationFsxOntapCommand = async (output, context) => {
|
|
1191
|
+
if (output.statusCode >= 300) {
|
|
1192
|
+
return deserializeAws_json1_1DescribeLocationFsxOntapCommandError(output, context);
|
|
1193
|
+
}
|
|
1194
|
+
const data = await parseBody(output.body, context);
|
|
1195
|
+
let contents = {};
|
|
1196
|
+
contents = deserializeAws_json1_1DescribeLocationFsxOntapResponse(data, context);
|
|
1197
|
+
const response = {
|
|
1198
|
+
$metadata: deserializeMetadata(output),
|
|
1199
|
+
...contents,
|
|
1200
|
+
};
|
|
1201
|
+
return Promise.resolve(response);
|
|
1202
|
+
};
|
|
1203
|
+
exports.deserializeAws_json1_1DescribeLocationFsxOntapCommand = deserializeAws_json1_1DescribeLocationFsxOntapCommand;
|
|
1204
|
+
const deserializeAws_json1_1DescribeLocationFsxOntapCommandError = async (output, context) => {
|
|
1205
|
+
const parsedOutput = {
|
|
1206
|
+
...output,
|
|
1207
|
+
body: await parseBody(output.body, context),
|
|
1208
|
+
};
|
|
1209
|
+
let response;
|
|
1210
|
+
let errorCode = "UnknownError";
|
|
1211
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
|
+
switch (errorCode) {
|
|
1213
|
+
case "InternalException":
|
|
1214
|
+
case "com.amazonaws.datasync#InternalException":
|
|
1215
|
+
throw await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context);
|
|
1216
|
+
case "InvalidRequestException":
|
|
1217
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1218
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1219
|
+
default:
|
|
1220
|
+
const parsedBody = parsedOutput.body;
|
|
1221
|
+
response = new DataSyncServiceException_1.DataSyncServiceException({
|
|
1222
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1223
|
+
$fault: "client",
|
|
1224
|
+
$metadata: deserializeMetadata(output),
|
|
1225
|
+
});
|
|
1226
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1131
1229
|
const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand = async (output, context) => {
|
|
1132
1230
|
if (output.statusCode >= 300) {
|
|
1133
1231
|
return deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError(output, context);
|
|
@@ -2143,6 +2241,21 @@ const serializeAws_json1_1CreateLocationFsxLustreRequest = (input, context) => {
|
|
|
2143
2241
|
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2144
2242
|
};
|
|
2145
2243
|
};
|
|
2244
|
+
const serializeAws_json1_1CreateLocationFsxOntapRequest = (input, context) => {
|
|
2245
|
+
return {
|
|
2246
|
+
...(input.Protocol !== undefined &&
|
|
2247
|
+
input.Protocol !== null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) }),
|
|
2248
|
+
...(input.SecurityGroupArns !== undefined &&
|
|
2249
|
+
input.SecurityGroupArns !== null && {
|
|
2250
|
+
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2251
|
+
}),
|
|
2252
|
+
...(input.StorageVirtualMachineArn !== undefined &&
|
|
2253
|
+
input.StorageVirtualMachineArn !== null && { StorageVirtualMachineArn: input.StorageVirtualMachineArn }),
|
|
2254
|
+
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2255
|
+
...(input.Tags !== undefined &&
|
|
2256
|
+
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2146
2259
|
const serializeAws_json1_1CreateLocationFsxOpenZfsRequest = (input, context) => {
|
|
2147
2260
|
return {
|
|
2148
2261
|
...(input.FsxFilesystemArn !== undefined &&
|
|
@@ -2318,6 +2431,11 @@ const serializeAws_json1_1DescribeLocationFsxLustreRequest = (input, context) =>
|
|
|
2318
2431
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2319
2432
|
};
|
|
2320
2433
|
};
|
|
2434
|
+
const serializeAws_json1_1DescribeLocationFsxOntapRequest = (input, context) => {
|
|
2435
|
+
return {
|
|
2436
|
+
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2437
|
+
};
|
|
2438
|
+
};
|
|
2321
2439
|
const serializeAws_json1_1DescribeLocationFsxOpenZfsRequest = (input, context) => {
|
|
2322
2440
|
return {
|
|
2323
2441
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
@@ -2413,6 +2531,8 @@ const serializeAws_json1_1FsxProtocol = (input, context) => {
|
|
|
2413
2531
|
return {
|
|
2414
2532
|
...(input.NFS !== undefined &&
|
|
2415
2533
|
input.NFS !== null && { NFS: serializeAws_json1_1FsxProtocolNfs(input.NFS, context) }),
|
|
2534
|
+
...(input.SMB !== undefined &&
|
|
2535
|
+
input.SMB !== null && { SMB: serializeAws_json1_1FsxProtocolSmb(input.SMB, context) }),
|
|
2416
2536
|
};
|
|
2417
2537
|
};
|
|
2418
2538
|
const serializeAws_json1_1FsxProtocolNfs = (input, context) => {
|
|
@@ -2423,6 +2543,17 @@ const serializeAws_json1_1FsxProtocolNfs = (input, context) => {
|
|
|
2423
2543
|
}),
|
|
2424
2544
|
};
|
|
2425
2545
|
};
|
|
2546
|
+
const serializeAws_json1_1FsxProtocolSmb = (input, context) => {
|
|
2547
|
+
return {
|
|
2548
|
+
...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
|
|
2549
|
+
...(input.MountOptions !== undefined &&
|
|
2550
|
+
input.MountOptions !== null && {
|
|
2551
|
+
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
2552
|
+
}),
|
|
2553
|
+
...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
|
|
2554
|
+
...(input.User !== undefined && input.User !== null && { User: input.User }),
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2426
2557
|
const serializeAws_json1_1HdfsNameNode = (input, context) => {
|
|
2427
2558
|
return {
|
|
2428
2559
|
...(input.Hostname !== undefined && input.Hostname !== null && { Hostname: input.Hostname }),
|
|
@@ -2788,6 +2919,11 @@ const deserializeAws_json1_1CreateLocationFsxLustreResponse = (output, context)
|
|
|
2788
2919
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2789
2920
|
};
|
|
2790
2921
|
};
|
|
2922
|
+
const deserializeAws_json1_1CreateLocationFsxOntapResponse = (output, context) => {
|
|
2923
|
+
return {
|
|
2924
|
+
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2925
|
+
};
|
|
2926
|
+
};
|
|
2791
2927
|
const deserializeAws_json1_1CreateLocationFsxOpenZfsResponse = (output, context) => {
|
|
2792
2928
|
return {
|
|
2793
2929
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
@@ -2881,6 +3017,23 @@ const deserializeAws_json1_1DescribeLocationFsxLustreResponse = (output, context
|
|
|
2881
3017
|
: undefined,
|
|
2882
3018
|
};
|
|
2883
3019
|
};
|
|
3020
|
+
const deserializeAws_json1_1DescribeLocationFsxOntapResponse = (output, context) => {
|
|
3021
|
+
return {
|
|
3022
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3023
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3024
|
+
: undefined,
|
|
3025
|
+
FsxFilesystemArn: (0, smithy_client_1.expectString)(output.FsxFilesystemArn),
|
|
3026
|
+
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
3027
|
+
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
3028
|
+
Protocol: output.Protocol !== undefined && output.Protocol !== null
|
|
3029
|
+
? deserializeAws_json1_1FsxProtocol(output.Protocol, context)
|
|
3030
|
+
: undefined,
|
|
3031
|
+
SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
|
|
3032
|
+
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3033
|
+
: undefined,
|
|
3034
|
+
StorageVirtualMachineArn: (0, smithy_client_1.expectString)(output.StorageVirtualMachineArn),
|
|
3035
|
+
};
|
|
3036
|
+
};
|
|
2884
3037
|
const deserializeAws_json1_1DescribeLocationFsxOpenZfsResponse = (output, context) => {
|
|
2885
3038
|
return {
|
|
2886
3039
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -3109,6 +3262,9 @@ const deserializeAws_json1_1FsxProtocol = (output, context) => {
|
|
|
3109
3262
|
NFS: output.NFS !== undefined && output.NFS !== null
|
|
3110
3263
|
? deserializeAws_json1_1FsxProtocolNfs(output.NFS, context)
|
|
3111
3264
|
: undefined,
|
|
3265
|
+
SMB: output.SMB !== undefined && output.SMB !== null
|
|
3266
|
+
? deserializeAws_json1_1FsxProtocolSmb(output.SMB, context)
|
|
3267
|
+
: undefined,
|
|
3112
3268
|
};
|
|
3113
3269
|
};
|
|
3114
3270
|
const deserializeAws_json1_1FsxProtocolNfs = (output, context) => {
|
|
@@ -3118,6 +3274,16 @@ const deserializeAws_json1_1FsxProtocolNfs = (output, context) => {
|
|
|
3118
3274
|
: undefined,
|
|
3119
3275
|
};
|
|
3120
3276
|
};
|
|
3277
|
+
const deserializeAws_json1_1FsxProtocolSmb = (output, context) => {
|
|
3278
|
+
return {
|
|
3279
|
+
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
3280
|
+
MountOptions: output.MountOptions !== undefined && output.MountOptions !== null
|
|
3281
|
+
? deserializeAws_json1_1SmbMountOptions(output.MountOptions, context)
|
|
3282
|
+
: undefined,
|
|
3283
|
+
Password: (0, smithy_client_1.expectString)(output.Password),
|
|
3284
|
+
User: (0, smithy_client_1.expectString)(output.User),
|
|
3285
|
+
};
|
|
3286
|
+
};
|
|
3121
3287
|
const deserializeAws_json1_1HdfsNameNode = (output, context) => {
|
|
3122
3288
|
return {
|
|
3123
3289
|
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 { CreateLocationFsxOntapCommand, } from "./commands/CreateLocationFsxOntapCommand";
|
|
6
7
|
import { CreateLocationFsxOpenZfsCommand, } from "./commands/CreateLocationFsxOpenZfsCommand";
|
|
7
8
|
import { CreateLocationFsxWindowsCommand, } from "./commands/CreateLocationFsxWindowsCommand";
|
|
8
9
|
import { CreateLocationHdfsCommand, } from "./commands/CreateLocationHdfsCommand";
|
|
@@ -17,6 +18,7 @@ import { DeleteTaskCommand } from "./commands/DeleteTaskCommand";
|
|
|
17
18
|
import { DescribeAgentCommand, } from "./commands/DescribeAgentCommand";
|
|
18
19
|
import { DescribeLocationEfsCommand, } from "./commands/DescribeLocationEfsCommand";
|
|
19
20
|
import { DescribeLocationFsxLustreCommand, } from "./commands/DescribeLocationFsxLustreCommand";
|
|
21
|
+
import { DescribeLocationFsxOntapCommand, } from "./commands/DescribeLocationFsxOntapCommand";
|
|
20
22
|
import { DescribeLocationFsxOpenZfsCommand, } from "./commands/DescribeLocationFsxOpenZfsCommand";
|
|
21
23
|
import { DescribeLocationFsxWindowsCommand, } from "./commands/DescribeLocationFsxWindowsCommand";
|
|
22
24
|
import { DescribeLocationHdfsCommand, } from "./commands/DescribeLocationHdfsCommand";
|
|
@@ -103,6 +105,20 @@ var DataSync = (function (_super) {
|
|
|
103
105
|
return this.send(command, optionsOrCb);
|
|
104
106
|
}
|
|
105
107
|
};
|
|
108
|
+
DataSync.prototype.createLocationFsxOntap = function (args, optionsOrCb, cb) {
|
|
109
|
+
var command = new CreateLocationFsxOntapCommand(args);
|
|
110
|
+
if (typeof optionsOrCb === "function") {
|
|
111
|
+
this.send(command, optionsOrCb);
|
|
112
|
+
}
|
|
113
|
+
else if (typeof cb === "function") {
|
|
114
|
+
if (typeof optionsOrCb !== "object")
|
|
115
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
116
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
return this.send(command, optionsOrCb);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
106
122
|
DataSync.prototype.createLocationFsxOpenZfs = function (args, optionsOrCb, cb) {
|
|
107
123
|
var command = new CreateLocationFsxOpenZfsCommand(args);
|
|
108
124
|
if (typeof optionsOrCb === "function") {
|
|
@@ -299,6 +315,20 @@ var DataSync = (function (_super) {
|
|
|
299
315
|
return this.send(command, optionsOrCb);
|
|
300
316
|
}
|
|
301
317
|
};
|
|
318
|
+
DataSync.prototype.describeLocationFsxOntap = function (args, optionsOrCb, cb) {
|
|
319
|
+
var command = new DescribeLocationFsxOntapCommand(args);
|
|
320
|
+
if (typeof optionsOrCb === "function") {
|
|
321
|
+
this.send(command, optionsOrCb);
|
|
322
|
+
}
|
|
323
|
+
else if (typeof cb === "function") {
|
|
324
|
+
if (typeof optionsOrCb !== "object")
|
|
325
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
326
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
return this.send(command, optionsOrCb);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
302
332
|
DataSync.prototype.describeLocationFsxOpenZfs = function (args, optionsOrCb, cb) {
|
|
303
333
|
var command = new DescribeLocationFsxOpenZfsCommand(args);
|
|
304
334
|
if (typeof optionsOrCb === "function") {
|