@aws-sdk/client-datasync 3.58.0 → 3.72.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/README.md +2 -2
- 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 +6 -6
|
@@ -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 };
|
|
@@ -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 { DescribeLocationFsxOpenZfsRequest, DescribeLocationFsxOpenZfsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand, serializeAws_json1_1DescribeLocationFsxOpenZfsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribeLocationFsxOpenZfsCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeLocationFsxOpenZfsCommand, _super);
|
|
8
|
+
function DescribeLocationFsxOpenZfsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeLocationFsxOpenZfsCommand.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 = "DescribeLocationFsxOpenZfsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeLocationFsxOpenZfsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeLocationFsxOpenZfsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeLocationFsxOpenZfsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DescribeLocationFsxOpenZfsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeLocationFsxOpenZfsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeLocationFsxOpenZfsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeLocationFsxOpenZfsCommand };
|
|
@@ -2,6 +2,7 @@ export * from "./CancelTaskExecutionCommand";
|
|
|
2
2
|
export * from "./CreateAgentCommand";
|
|
3
3
|
export * from "./CreateLocationEfsCommand";
|
|
4
4
|
export * from "./CreateLocationFsxLustreCommand";
|
|
5
|
+
export * from "./CreateLocationFsxOpenZfsCommand";
|
|
5
6
|
export * from "./CreateLocationFsxWindowsCommand";
|
|
6
7
|
export * from "./CreateLocationHdfsCommand";
|
|
7
8
|
export * from "./CreateLocationNfsCommand";
|
|
@@ -15,6 +16,7 @@ export * from "./DeleteTaskCommand";
|
|
|
15
16
|
export * from "./DescribeAgentCommand";
|
|
16
17
|
export * from "./DescribeLocationEfsCommand";
|
|
17
18
|
export * from "./DescribeLocationFsxLustreCommand";
|
|
19
|
+
export * from "./DescribeLocationFsxOpenZfsCommand";
|
|
18
20
|
export * from "./DescribeLocationFsxWindowsCommand";
|
|
19
21
|
export * from "./DescribeLocationHdfsCommand";
|
|
20
22
|
export * from "./DescribeLocationNfsCommand";
|
|
@@ -81,6 +81,33 @@ export var CreateLocationFsxLustreResponse;
|
|
|
81
81
|
(function (CreateLocationFsxLustreResponse) {
|
|
82
82
|
CreateLocationFsxLustreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
83
83
|
})(CreateLocationFsxLustreResponse || (CreateLocationFsxLustreResponse = {}));
|
|
84
|
+
export var NfsVersion;
|
|
85
|
+
(function (NfsVersion) {
|
|
86
|
+
NfsVersion["AUTOMATIC"] = "AUTOMATIC";
|
|
87
|
+
NfsVersion["NFS3"] = "NFS3";
|
|
88
|
+
NfsVersion["NFS4_0"] = "NFS4_0";
|
|
89
|
+
NfsVersion["NFS4_1"] = "NFS4_1";
|
|
90
|
+
})(NfsVersion || (NfsVersion = {}));
|
|
91
|
+
export var NfsMountOptions;
|
|
92
|
+
(function (NfsMountOptions) {
|
|
93
|
+
NfsMountOptions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
|
+
})(NfsMountOptions || (NfsMountOptions = {}));
|
|
95
|
+
export var FsxProtocolNfs;
|
|
96
|
+
(function (FsxProtocolNfs) {
|
|
97
|
+
FsxProtocolNfs.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
98
|
+
})(FsxProtocolNfs || (FsxProtocolNfs = {}));
|
|
99
|
+
export var FsxProtocol;
|
|
100
|
+
(function (FsxProtocol) {
|
|
101
|
+
FsxProtocol.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
+
})(FsxProtocol || (FsxProtocol = {}));
|
|
103
|
+
export var CreateLocationFsxOpenZfsRequest;
|
|
104
|
+
(function (CreateLocationFsxOpenZfsRequest) {
|
|
105
|
+
CreateLocationFsxOpenZfsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
+
})(CreateLocationFsxOpenZfsRequest || (CreateLocationFsxOpenZfsRequest = {}));
|
|
107
|
+
export var CreateLocationFsxOpenZfsResponse;
|
|
108
|
+
(function (CreateLocationFsxOpenZfsResponse) {
|
|
109
|
+
CreateLocationFsxOpenZfsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
+
})(CreateLocationFsxOpenZfsResponse || (CreateLocationFsxOpenZfsResponse = {}));
|
|
84
111
|
export var CreateLocationFsxWindowsRequest;
|
|
85
112
|
(function (CreateLocationFsxWindowsRequest) {
|
|
86
113
|
CreateLocationFsxWindowsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Password && { Password: SENSITIVE_STRING }))); };
|
|
@@ -124,17 +151,6 @@ export var CreateLocationHdfsResponse;
|
|
|
124
151
|
(function (CreateLocationHdfsResponse) {
|
|
125
152
|
CreateLocationHdfsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
126
153
|
})(CreateLocationHdfsResponse || (CreateLocationHdfsResponse = {}));
|
|
127
|
-
export var NfsVersion;
|
|
128
|
-
(function (NfsVersion) {
|
|
129
|
-
NfsVersion["AUTOMATIC"] = "AUTOMATIC";
|
|
130
|
-
NfsVersion["NFS3"] = "NFS3";
|
|
131
|
-
NfsVersion["NFS4_0"] = "NFS4_0";
|
|
132
|
-
NfsVersion["NFS4_1"] = "NFS4_1";
|
|
133
|
-
})(NfsVersion || (NfsVersion = {}));
|
|
134
|
-
export var NfsMountOptions;
|
|
135
|
-
(function (NfsMountOptions) {
|
|
136
|
-
NfsMountOptions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
|
-
})(NfsMountOptions || (NfsMountOptions = {}));
|
|
138
154
|
export var OnPremConfig;
|
|
139
155
|
(function (OnPremConfig) {
|
|
140
156
|
OnPremConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -349,6 +365,14 @@ export var DescribeLocationFsxLustreResponse;
|
|
|
349
365
|
(function (DescribeLocationFsxLustreResponse) {
|
|
350
366
|
DescribeLocationFsxLustreResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
351
367
|
})(DescribeLocationFsxLustreResponse || (DescribeLocationFsxLustreResponse = {}));
|
|
368
|
+
export var DescribeLocationFsxOpenZfsRequest;
|
|
369
|
+
(function (DescribeLocationFsxOpenZfsRequest) {
|
|
370
|
+
DescribeLocationFsxOpenZfsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
371
|
+
})(DescribeLocationFsxOpenZfsRequest || (DescribeLocationFsxOpenZfsRequest = {}));
|
|
372
|
+
export var DescribeLocationFsxOpenZfsResponse;
|
|
373
|
+
(function (DescribeLocationFsxOpenZfsResponse) {
|
|
374
|
+
DescribeLocationFsxOpenZfsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
375
|
+
})(DescribeLocationFsxOpenZfsResponse || (DescribeLocationFsxOpenZfsResponse = {}));
|
|
352
376
|
export var DescribeLocationFsxWindowsRequest;
|
|
353
377
|
(function (DescribeLocationFsxWindowsRequest) {
|
|
354
378
|
DescribeLocationFsxWindowsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -47,6 +47,17 @@ export var serializeAws_json1_1CreateLocationFsxLustreCommand = function (input,
|
|
|
47
47
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
48
|
});
|
|
49
49
|
}); };
|
|
50
|
+
export var serializeAws_json1_1CreateLocationFsxOpenZfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "FmrsService.CreateLocationFsxOpenZfs",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1CreateLocationFsxOpenZfsRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
50
61
|
export var serializeAws_json1_1CreateLocationFsxWindowsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
62
|
var headers, body;
|
|
52
63
|
return __generator(this, function (_a) {
|
|
@@ -190,6 +201,17 @@ export var serializeAws_json1_1DescribeLocationFsxLustreCommand = function (inpu
|
|
|
190
201
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
191
202
|
});
|
|
192
203
|
}); };
|
|
204
|
+
export var serializeAws_json1_1DescribeLocationFsxOpenZfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
+
var headers, body;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
headers = {
|
|
208
|
+
"content-type": "application/x-amz-json-1.1",
|
|
209
|
+
"x-amz-target": "FmrsService.DescribeLocationFsxOpenZfs",
|
|
210
|
+
};
|
|
211
|
+
body = JSON.stringify(serializeAws_json1_1DescribeLocationFsxOpenZfsRequest(input, context));
|
|
212
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
|
+
});
|
|
214
|
+
}); };
|
|
193
215
|
export var serializeAws_json1_1DescribeLocationFsxWindowsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
216
|
var headers, body;
|
|
195
217
|
return __generator(this, function (_a) {
|
|
@@ -659,6 +681,60 @@ var deserializeAws_json1_1CreateLocationFsxLustreCommandError = function (output
|
|
|
659
681
|
}
|
|
660
682
|
});
|
|
661
683
|
}); };
|
|
684
|
+
export var deserializeAws_json1_1CreateLocationFsxOpenZfsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
685
|
+
var data, contents, response;
|
|
686
|
+
return __generator(this, function (_a) {
|
|
687
|
+
switch (_a.label) {
|
|
688
|
+
case 0:
|
|
689
|
+
if (output.statusCode >= 300) {
|
|
690
|
+
return [2, deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError(output, context)];
|
|
691
|
+
}
|
|
692
|
+
return [4, parseBody(output.body, context)];
|
|
693
|
+
case 1:
|
|
694
|
+
data = _a.sent();
|
|
695
|
+
contents = {};
|
|
696
|
+
contents = deserializeAws_json1_1CreateLocationFsxOpenZfsResponse(data, context);
|
|
697
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
698
|
+
return [2, Promise.resolve(response)];
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
}); };
|
|
702
|
+
var deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
703
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
704
|
+
var _c;
|
|
705
|
+
return __generator(this, function (_d) {
|
|
706
|
+
switch (_d.label) {
|
|
707
|
+
case 0:
|
|
708
|
+
_a = [__assign({}, output)];
|
|
709
|
+
_c = {};
|
|
710
|
+
return [4, parseBody(output.body, context)];
|
|
711
|
+
case 1:
|
|
712
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
713
|
+
errorCode = "UnknownError";
|
|
714
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
+
_b = errorCode;
|
|
716
|
+
switch (_b) {
|
|
717
|
+
case "InternalException": return [3, 2];
|
|
718
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
719
|
+
case "InvalidRequestException": return [3, 4];
|
|
720
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
721
|
+
}
|
|
722
|
+
return [3, 6];
|
|
723
|
+
case 2: return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
724
|
+
case 3: throw _d.sent();
|
|
725
|
+
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
726
|
+
case 5: throw _d.sent();
|
|
727
|
+
case 6:
|
|
728
|
+
parsedBody = parsedOutput.body;
|
|
729
|
+
response = new __BaseException({
|
|
730
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
731
|
+
$fault: "client",
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
});
|
|
734
|
+
throw __decorateServiceException(response, parsedBody);
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
}); };
|
|
662
738
|
export var deserializeAws_json1_1CreateLocationFsxWindowsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
663
739
|
var data, contents, response;
|
|
664
740
|
return __generator(this, function (_a) {
|
|
@@ -1361,6 +1437,60 @@ var deserializeAws_json1_1DescribeLocationFsxLustreCommandError = function (outp
|
|
|
1361
1437
|
}
|
|
1362
1438
|
});
|
|
1363
1439
|
}); };
|
|
1440
|
+
export var deserializeAws_json1_1DescribeLocationFsxOpenZfsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1441
|
+
var data, contents, response;
|
|
1442
|
+
return __generator(this, function (_a) {
|
|
1443
|
+
switch (_a.label) {
|
|
1444
|
+
case 0:
|
|
1445
|
+
if (output.statusCode >= 300) {
|
|
1446
|
+
return [2, deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError(output, context)];
|
|
1447
|
+
}
|
|
1448
|
+
return [4, parseBody(output.body, context)];
|
|
1449
|
+
case 1:
|
|
1450
|
+
data = _a.sent();
|
|
1451
|
+
contents = {};
|
|
1452
|
+
contents = deserializeAws_json1_1DescribeLocationFsxOpenZfsResponse(data, context);
|
|
1453
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1454
|
+
return [2, Promise.resolve(response)];
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1457
|
+
}); };
|
|
1458
|
+
var deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1459
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1460
|
+
var _c;
|
|
1461
|
+
return __generator(this, function (_d) {
|
|
1462
|
+
switch (_d.label) {
|
|
1463
|
+
case 0:
|
|
1464
|
+
_a = [__assign({}, output)];
|
|
1465
|
+
_c = {};
|
|
1466
|
+
return [4, parseBody(output.body, context)];
|
|
1467
|
+
case 1:
|
|
1468
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1469
|
+
errorCode = "UnknownError";
|
|
1470
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
+
_b = errorCode;
|
|
1472
|
+
switch (_b) {
|
|
1473
|
+
case "InternalException": return [3, 2];
|
|
1474
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1475
|
+
case "InvalidRequestException": return [3, 4];
|
|
1476
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1477
|
+
}
|
|
1478
|
+
return [3, 6];
|
|
1479
|
+
case 2: return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1480
|
+
case 3: throw _d.sent();
|
|
1481
|
+
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1482
|
+
case 5: throw _d.sent();
|
|
1483
|
+
case 6:
|
|
1484
|
+
parsedBody = parsedOutput.body;
|
|
1485
|
+
response = new __BaseException({
|
|
1486
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1487
|
+
$fault: "client",
|
|
1488
|
+
$metadata: deserializeMetadata(output),
|
|
1489
|
+
});
|
|
1490
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1491
|
+
}
|
|
1492
|
+
});
|
|
1493
|
+
}); };
|
|
1364
1494
|
export var deserializeAws_json1_1DescribeLocationFsxWindowsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1365
1495
|
var data, contents, response;
|
|
1366
1496
|
return __generator(this, function (_a) {
|
|
@@ -2657,6 +2787,15 @@ var serializeAws_json1_1CreateLocationFsxLustreRequest = function (input, contex
|
|
|
2657
2787
|
})), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2658
2788
|
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2659
2789
|
};
|
|
2790
|
+
var serializeAws_json1_1CreateLocationFsxOpenZfsRequest = function (input, context) {
|
|
2791
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.FsxFilesystemArn !== undefined &&
|
|
2792
|
+
input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.Protocol !== undefined &&
|
|
2793
|
+
input.Protocol !== null && { Protocol: serializeAws_json1_1FsxProtocol(input.Protocol, context) })), (input.SecurityGroupArns !== undefined &&
|
|
2794
|
+
input.SecurityGroupArns !== null && {
|
|
2795
|
+
SecurityGroupArns: serializeAws_json1_1Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2796
|
+
})), (input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory })), (input.Tags !== undefined &&
|
|
2797
|
+
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }));
|
|
2798
|
+
};
|
|
2660
2799
|
var serializeAws_json1_1CreateLocationFsxWindowsRequest = function (input, context) {
|
|
2661
2800
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.FsxFilesystemArn !== undefined &&
|
|
2662
2801
|
input.FsxFilesystemArn !== null && { FsxFilesystemArn: input.FsxFilesystemArn })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.SecurityGroupArns !== undefined &&
|
|
@@ -2741,6 +2880,9 @@ var serializeAws_json1_1DescribeLocationEfsRequest = function (input, context) {
|
|
|
2741
2880
|
var serializeAws_json1_1DescribeLocationFsxLustreRequest = function (input, context) {
|
|
2742
2881
|
return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
|
|
2743
2882
|
};
|
|
2883
|
+
var serializeAws_json1_1DescribeLocationFsxOpenZfsRequest = function (input, context) {
|
|
2884
|
+
return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
|
|
2885
|
+
};
|
|
2744
2886
|
var serializeAws_json1_1DescribeLocationFsxWindowsRequest = function (input, context) {
|
|
2745
2887
|
return __assign({}, (input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }));
|
|
2746
2888
|
};
|
|
@@ -2805,6 +2947,16 @@ var serializeAws_json1_1FilterValues = function (input, context) {
|
|
|
2805
2947
|
return entry;
|
|
2806
2948
|
});
|
|
2807
2949
|
};
|
|
2950
|
+
var serializeAws_json1_1FsxProtocol = function (input, context) {
|
|
2951
|
+
return __assign({}, (input.NFS !== undefined &&
|
|
2952
|
+
input.NFS !== null && { NFS: serializeAws_json1_1FsxProtocolNfs(input.NFS, context) }));
|
|
2953
|
+
};
|
|
2954
|
+
var serializeAws_json1_1FsxProtocolNfs = function (input, context) {
|
|
2955
|
+
return __assign({}, (input.MountOptions !== undefined &&
|
|
2956
|
+
input.MountOptions !== null && {
|
|
2957
|
+
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
2958
|
+
}));
|
|
2959
|
+
};
|
|
2808
2960
|
var serializeAws_json1_1HdfsNameNode = function (input, context) {
|
|
2809
2961
|
return __assign(__assign({}, (input.Hostname !== undefined && input.Hostname !== null && { Hostname: input.Hostname })), (input.Port !== undefined && input.Port !== null && { Port: input.Port }));
|
|
2810
2962
|
};
|
|
@@ -3048,6 +3200,11 @@ var deserializeAws_json1_1CreateLocationFsxLustreResponse = function (output, co
|
|
|
3048
3200
|
LocationArn: __expectString(output.LocationArn),
|
|
3049
3201
|
};
|
|
3050
3202
|
};
|
|
3203
|
+
var deserializeAws_json1_1CreateLocationFsxOpenZfsResponse = function (output, context) {
|
|
3204
|
+
return {
|
|
3205
|
+
LocationArn: __expectString(output.LocationArn),
|
|
3206
|
+
};
|
|
3207
|
+
};
|
|
3051
3208
|
var deserializeAws_json1_1CreateLocationFsxWindowsResponse = function (output, context) {
|
|
3052
3209
|
return {
|
|
3053
3210
|
LocationArn: __expectString(output.LocationArn),
|
|
@@ -3133,6 +3290,21 @@ var deserializeAws_json1_1DescribeLocationFsxLustreResponse = function (output,
|
|
|
3133
3290
|
: undefined,
|
|
3134
3291
|
};
|
|
3135
3292
|
};
|
|
3293
|
+
var deserializeAws_json1_1DescribeLocationFsxOpenZfsResponse = function (output, context) {
|
|
3294
|
+
return {
|
|
3295
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3296
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3297
|
+
: undefined,
|
|
3298
|
+
LocationArn: __expectString(output.LocationArn),
|
|
3299
|
+
LocationUri: __expectString(output.LocationUri),
|
|
3300
|
+
Protocol: output.Protocol !== undefined && output.Protocol !== null
|
|
3301
|
+
? deserializeAws_json1_1FsxProtocol(output.Protocol, context)
|
|
3302
|
+
: undefined,
|
|
3303
|
+
SecurityGroupArns: output.SecurityGroupArns !== undefined && output.SecurityGroupArns !== null
|
|
3304
|
+
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
3305
|
+
: undefined,
|
|
3306
|
+
};
|
|
3307
|
+
};
|
|
3136
3308
|
var deserializeAws_json1_1DescribeLocationFsxWindowsResponse = function (output, context) {
|
|
3137
3309
|
return {
|
|
3138
3310
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -3341,6 +3513,20 @@ var deserializeAws_json1_1FilterRule = function (output, context) {
|
|
|
3341
3513
|
Value: __expectString(output.Value),
|
|
3342
3514
|
};
|
|
3343
3515
|
};
|
|
3516
|
+
var deserializeAws_json1_1FsxProtocol = function (output, context) {
|
|
3517
|
+
return {
|
|
3518
|
+
NFS: output.NFS !== undefined && output.NFS !== null
|
|
3519
|
+
? deserializeAws_json1_1FsxProtocolNfs(output.NFS, context)
|
|
3520
|
+
: undefined,
|
|
3521
|
+
};
|
|
3522
|
+
};
|
|
3523
|
+
var deserializeAws_json1_1FsxProtocolNfs = function (output, context) {
|
|
3524
|
+
return {
|
|
3525
|
+
MountOptions: output.MountOptions !== undefined && output.MountOptions !== null
|
|
3526
|
+
? deserializeAws_json1_1NfsMountOptions(output.MountOptions, context)
|
|
3527
|
+
: undefined,
|
|
3528
|
+
};
|
|
3529
|
+
};
|
|
3344
3530
|
var deserializeAws_json1_1HdfsNameNode = function (output, context) {
|
|
3345
3531
|
return {
|
|
3346
3532
|
Hostname: __expectString(output.Hostname),
|
package/dist-types/DataSync.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { CancelTaskExecutionCommandInput, CancelTaskExecutionCommandOutput } fro
|
|
|
3
3
|
import { CreateAgentCommandInput, CreateAgentCommandOutput } from "./commands/CreateAgentCommand";
|
|
4
4
|
import { CreateLocationEfsCommandInput, CreateLocationEfsCommandOutput } from "./commands/CreateLocationEfsCommand";
|
|
5
5
|
import { CreateLocationFsxLustreCommandInput, CreateLocationFsxLustreCommandOutput } from "./commands/CreateLocationFsxLustreCommand";
|
|
6
|
+
import { CreateLocationFsxOpenZfsCommandInput, CreateLocationFsxOpenZfsCommandOutput } from "./commands/CreateLocationFsxOpenZfsCommand";
|
|
6
7
|
import { CreateLocationFsxWindowsCommandInput, CreateLocationFsxWindowsCommandOutput } from "./commands/CreateLocationFsxWindowsCommand";
|
|
7
8
|
import { CreateLocationHdfsCommandInput, CreateLocationHdfsCommandOutput } from "./commands/CreateLocationHdfsCommand";
|
|
8
9
|
import { CreateLocationNfsCommandInput, CreateLocationNfsCommandOutput } from "./commands/CreateLocationNfsCommand";
|
|
@@ -16,6 +17,7 @@ import { DeleteTaskCommandInput, DeleteTaskCommandOutput } from "./commands/Dele
|
|
|
16
17
|
import { DescribeAgentCommandInput, DescribeAgentCommandOutput } from "./commands/DescribeAgentCommand";
|
|
17
18
|
import { DescribeLocationEfsCommandInput, DescribeLocationEfsCommandOutput } from "./commands/DescribeLocationEfsCommand";
|
|
18
19
|
import { DescribeLocationFsxLustreCommandInput, DescribeLocationFsxLustreCommandOutput } from "./commands/DescribeLocationFsxLustreCommand";
|
|
20
|
+
import { DescribeLocationFsxOpenZfsCommandInput, DescribeLocationFsxOpenZfsCommandOutput } from "./commands/DescribeLocationFsxOpenZfsCommand";
|
|
19
21
|
import { DescribeLocationFsxWindowsCommandInput, DescribeLocationFsxWindowsCommandOutput } from "./commands/DescribeLocationFsxWindowsCommand";
|
|
20
22
|
import { DescribeLocationHdfsCommandInput, DescribeLocationHdfsCommandOutput } from "./commands/DescribeLocationHdfsCommand";
|
|
21
23
|
import { DescribeLocationNfsCommandInput, DescribeLocationNfsCommandOutput } from "./commands/DescribeLocationNfsCommand";
|
|
@@ -95,6 +97,12 @@ export declare class DataSync extends DataSyncClient {
|
|
|
95
97
|
createLocationFsxLustre(args: CreateLocationFsxLustreCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationFsxLustreCommandOutput>;
|
|
96
98
|
createLocationFsxLustre(args: CreateLocationFsxLustreCommandInput, cb: (err: any, data?: CreateLocationFsxLustreCommandOutput) => void): void;
|
|
97
99
|
createLocationFsxLustre(args: CreateLocationFsxLustreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationFsxLustreCommandOutput) => void): void;
|
|
100
|
+
/**
|
|
101
|
+
* <p>Creates an endpoint for an Amazon FSx for OpenZFS file system.</p>
|
|
102
|
+
*/
|
|
103
|
+
createLocationFsxOpenZfs(args: CreateLocationFsxOpenZfsCommandInput, options?: __HttpHandlerOptions): Promise<CreateLocationFsxOpenZfsCommandOutput>;
|
|
104
|
+
createLocationFsxOpenZfs(args: CreateLocationFsxOpenZfsCommandInput, cb: (err: any, data?: CreateLocationFsxOpenZfsCommandOutput) => void): void;
|
|
105
|
+
createLocationFsxOpenZfs(args: CreateLocationFsxOpenZfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLocationFsxOpenZfsCommandOutput) => void): void;
|
|
98
106
|
/**
|
|
99
107
|
* <p>Creates an endpoint for an Amazon FSx for Windows File Server file system.</p>
|
|
100
108
|
*/
|
|
@@ -200,15 +208,22 @@ export declare class DataSync extends DataSyncClient {
|
|
|
200
208
|
describeLocationEfs(args: DescribeLocationEfsCommandInput, cb: (err: any, data?: DescribeLocationEfsCommandOutput) => void): void;
|
|
201
209
|
describeLocationEfs(args: DescribeLocationEfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationEfsCommandOutput) => void): void;
|
|
202
210
|
/**
|
|
203
|
-
* <p>Returns metadata
|
|
204
|
-
* location.</p>
|
|
211
|
+
* <p>Returns metadata about an Amazon FSx for Lustre
|
|
212
|
+
* location, such as information about its path.</p>
|
|
205
213
|
*/
|
|
206
214
|
describeLocationFsxLustre(args: DescribeLocationFsxLustreCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationFsxLustreCommandOutput>;
|
|
207
215
|
describeLocationFsxLustre(args: DescribeLocationFsxLustreCommandInput, cb: (err: any, data?: DescribeLocationFsxLustreCommandOutput) => void): void;
|
|
208
216
|
describeLocationFsxLustre(args: DescribeLocationFsxLustreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationFsxLustreCommandOutput) => void): void;
|
|
209
217
|
/**
|
|
210
|
-
* <p>Returns metadata
|
|
211
|
-
* location.</p>
|
|
218
|
+
* <p>Returns metadata about an Amazon FSx for OpenZFS
|
|
219
|
+
* location, such as information about its path.</p>
|
|
220
|
+
*/
|
|
221
|
+
describeLocationFsxOpenZfs(args: DescribeLocationFsxOpenZfsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationFsxOpenZfsCommandOutput>;
|
|
222
|
+
describeLocationFsxOpenZfs(args: DescribeLocationFsxOpenZfsCommandInput, cb: (err: any, data?: DescribeLocationFsxOpenZfsCommandOutput) => void): void;
|
|
223
|
+
describeLocationFsxOpenZfs(args: DescribeLocationFsxOpenZfsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLocationFsxOpenZfsCommandOutput) => void): void;
|
|
224
|
+
/**
|
|
225
|
+
* <p>Returns metadata about an Amazon FSx for Windows File Server
|
|
226
|
+
* location, such as information about its path.</p>
|
|
212
227
|
*/
|
|
213
228
|
describeLocationFsxWindows(args: DescribeLocationFsxWindowsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLocationFsxWindowsCommandOutput>;
|
|
214
229
|
describeLocationFsxWindows(args: DescribeLocationFsxWindowsCommandInput, cb: (err: any, data?: DescribeLocationFsxWindowsCommandOutput) => void): void;
|
|
@@ -10,6 +10,7 @@ import { CancelTaskExecutionCommandInput, CancelTaskExecutionCommandOutput } fro
|
|
|
10
10
|
import { CreateAgentCommandInput, CreateAgentCommandOutput } from "./commands/CreateAgentCommand";
|
|
11
11
|
import { CreateLocationEfsCommandInput, CreateLocationEfsCommandOutput } from "./commands/CreateLocationEfsCommand";
|
|
12
12
|
import { CreateLocationFsxLustreCommandInput, CreateLocationFsxLustreCommandOutput } from "./commands/CreateLocationFsxLustreCommand";
|
|
13
|
+
import { CreateLocationFsxOpenZfsCommandInput, CreateLocationFsxOpenZfsCommandOutput } from "./commands/CreateLocationFsxOpenZfsCommand";
|
|
13
14
|
import { CreateLocationFsxWindowsCommandInput, CreateLocationFsxWindowsCommandOutput } from "./commands/CreateLocationFsxWindowsCommand";
|
|
14
15
|
import { CreateLocationHdfsCommandInput, CreateLocationHdfsCommandOutput } from "./commands/CreateLocationHdfsCommand";
|
|
15
16
|
import { CreateLocationNfsCommandInput, CreateLocationNfsCommandOutput } from "./commands/CreateLocationNfsCommand";
|
|
@@ -23,6 +24,7 @@ import { DeleteTaskCommandInput, DeleteTaskCommandOutput } from "./commands/Dele
|
|
|
23
24
|
import { DescribeAgentCommandInput, DescribeAgentCommandOutput } from "./commands/DescribeAgentCommand";
|
|
24
25
|
import { DescribeLocationEfsCommandInput, DescribeLocationEfsCommandOutput } from "./commands/DescribeLocationEfsCommand";
|
|
25
26
|
import { DescribeLocationFsxLustreCommandInput, DescribeLocationFsxLustreCommandOutput } from "./commands/DescribeLocationFsxLustreCommand";
|
|
27
|
+
import { DescribeLocationFsxOpenZfsCommandInput, DescribeLocationFsxOpenZfsCommandOutput } from "./commands/DescribeLocationFsxOpenZfsCommand";
|
|
26
28
|
import { DescribeLocationFsxWindowsCommandInput, DescribeLocationFsxWindowsCommandOutput } from "./commands/DescribeLocationFsxWindowsCommand";
|
|
27
29
|
import { DescribeLocationHdfsCommandInput, DescribeLocationHdfsCommandOutput } from "./commands/DescribeLocationHdfsCommand";
|
|
28
30
|
import { DescribeLocationNfsCommandInput, DescribeLocationNfsCommandOutput } from "./commands/DescribeLocationNfsCommand";
|
|
@@ -46,8 +48,8 @@ import { UpdateLocationObjectStorageCommandInput, UpdateLocationObjectStorageCom
|
|
|
46
48
|
import { UpdateLocationSmbCommandInput, UpdateLocationSmbCommandOutput } from "./commands/UpdateLocationSmbCommand";
|
|
47
49
|
import { UpdateTaskCommandInput, UpdateTaskCommandOutput } from "./commands/UpdateTaskCommand";
|
|
48
50
|
import { UpdateTaskExecutionCommandInput, UpdateTaskExecutionCommandOutput } from "./commands/UpdateTaskExecutionCommand";
|
|
49
|
-
export declare type ServiceInputTypes = CancelTaskExecutionCommandInput | CreateAgentCommandInput | CreateLocationEfsCommandInput | CreateLocationFsxLustreCommandInput | CreateLocationFsxWindowsCommandInput | CreateLocationHdfsCommandInput | CreateLocationNfsCommandInput | CreateLocationObjectStorageCommandInput | CreateLocationS3CommandInput | CreateLocationSmbCommandInput | CreateTaskCommandInput | DeleteAgentCommandInput | DeleteLocationCommandInput | DeleteTaskCommandInput | DescribeAgentCommandInput | DescribeLocationEfsCommandInput | DescribeLocationFsxLustreCommandInput | DescribeLocationFsxWindowsCommandInput | DescribeLocationHdfsCommandInput | DescribeLocationNfsCommandInput | DescribeLocationObjectStorageCommandInput | DescribeLocationS3CommandInput | DescribeLocationSmbCommandInput | DescribeTaskCommandInput | DescribeTaskExecutionCommandInput | ListAgentsCommandInput | ListLocationsCommandInput | ListTagsForResourceCommandInput | ListTaskExecutionsCommandInput | ListTasksCommandInput | StartTaskExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentCommandInput | UpdateLocationHdfsCommandInput | UpdateLocationNfsCommandInput | UpdateLocationObjectStorageCommandInput | UpdateLocationSmbCommandInput | UpdateTaskCommandInput | UpdateTaskExecutionCommandInput;
|
|
50
|
-
export declare type ServiceOutputTypes = CancelTaskExecutionCommandOutput | CreateAgentCommandOutput | CreateLocationEfsCommandOutput | CreateLocationFsxLustreCommandOutput | CreateLocationFsxWindowsCommandOutput | CreateLocationHdfsCommandOutput | CreateLocationNfsCommandOutput | CreateLocationObjectStorageCommandOutput | CreateLocationS3CommandOutput | CreateLocationSmbCommandOutput | CreateTaskCommandOutput | DeleteAgentCommandOutput | DeleteLocationCommandOutput | DeleteTaskCommandOutput | DescribeAgentCommandOutput | DescribeLocationEfsCommandOutput | DescribeLocationFsxLustreCommandOutput | DescribeLocationFsxWindowsCommandOutput | DescribeLocationHdfsCommandOutput | DescribeLocationNfsCommandOutput | DescribeLocationObjectStorageCommandOutput | DescribeLocationS3CommandOutput | DescribeLocationSmbCommandOutput | DescribeTaskCommandOutput | DescribeTaskExecutionCommandOutput | ListAgentsCommandOutput | ListLocationsCommandOutput | ListTagsForResourceCommandOutput | ListTaskExecutionsCommandOutput | ListTasksCommandOutput | StartTaskExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentCommandOutput | UpdateLocationHdfsCommandOutput | UpdateLocationNfsCommandOutput | UpdateLocationObjectStorageCommandOutput | UpdateLocationSmbCommandOutput | UpdateTaskCommandOutput | UpdateTaskExecutionCommandOutput;
|
|
51
|
+
export declare type ServiceInputTypes = CancelTaskExecutionCommandInput | CreateAgentCommandInput | CreateLocationEfsCommandInput | CreateLocationFsxLustreCommandInput | CreateLocationFsxOpenZfsCommandInput | CreateLocationFsxWindowsCommandInput | CreateLocationHdfsCommandInput | CreateLocationNfsCommandInput | CreateLocationObjectStorageCommandInput | CreateLocationS3CommandInput | CreateLocationSmbCommandInput | CreateTaskCommandInput | DeleteAgentCommandInput | DeleteLocationCommandInput | DeleteTaskCommandInput | DescribeAgentCommandInput | DescribeLocationEfsCommandInput | DescribeLocationFsxLustreCommandInput | DescribeLocationFsxOpenZfsCommandInput | DescribeLocationFsxWindowsCommandInput | DescribeLocationHdfsCommandInput | DescribeLocationNfsCommandInput | DescribeLocationObjectStorageCommandInput | DescribeLocationS3CommandInput | DescribeLocationSmbCommandInput | DescribeTaskCommandInput | DescribeTaskExecutionCommandInput | ListAgentsCommandInput | ListLocationsCommandInput | ListTagsForResourceCommandInput | ListTaskExecutionsCommandInput | ListTasksCommandInput | StartTaskExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentCommandInput | UpdateLocationHdfsCommandInput | UpdateLocationNfsCommandInput | UpdateLocationObjectStorageCommandInput | UpdateLocationSmbCommandInput | UpdateTaskCommandInput | UpdateTaskExecutionCommandInput;
|
|
52
|
+
export declare type ServiceOutputTypes = CancelTaskExecutionCommandOutput | CreateAgentCommandOutput | CreateLocationEfsCommandOutput | CreateLocationFsxLustreCommandOutput | CreateLocationFsxOpenZfsCommandOutput | CreateLocationFsxWindowsCommandOutput | CreateLocationHdfsCommandOutput | CreateLocationNfsCommandOutput | CreateLocationObjectStorageCommandOutput | CreateLocationS3CommandOutput | CreateLocationSmbCommandOutput | CreateTaskCommandOutput | DeleteAgentCommandOutput | DeleteLocationCommandOutput | DeleteTaskCommandOutput | DescribeAgentCommandOutput | DescribeLocationEfsCommandOutput | DescribeLocationFsxLustreCommandOutput | DescribeLocationFsxOpenZfsCommandOutput | DescribeLocationFsxWindowsCommandOutput | DescribeLocationHdfsCommandOutput | DescribeLocationNfsCommandOutput | DescribeLocationObjectStorageCommandOutput | DescribeLocationS3CommandOutput | DescribeLocationSmbCommandOutput | DescribeTaskCommandOutput | DescribeTaskExecutionCommandOutput | ListAgentsCommandOutput | ListLocationsCommandOutput | ListTagsForResourceCommandOutput | ListTaskExecutionsCommandOutput | ListTasksCommandOutput | StartTaskExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentCommandOutput | UpdateLocationHdfsCommandOutput | UpdateLocationNfsCommandOutput | UpdateLocationObjectStorageCommandOutput | UpdateLocationSmbCommandOutput | UpdateTaskCommandOutput | UpdateTaskExecutionCommandOutput;
|
|
51
53
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
52
54
|
/**
|
|
53
55
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient";
|
|
4
|
+
import { CreateLocationFsxOpenZfsRequest, CreateLocationFsxOpenZfsResponse } from "../models/models_0";
|
|
5
|
+
export interface CreateLocationFsxOpenZfsCommandInput extends CreateLocationFsxOpenZfsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateLocationFsxOpenZfsCommandOutput extends CreateLocationFsxOpenZfsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates an endpoint for an Amazon FSx for OpenZFS file system.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { DataSyncClient, CreateLocationFsxOpenZfsCommand } from "@aws-sdk/client-datasync"; // ES Modules import
|
|
15
|
+
* // const { DataSyncClient, CreateLocationFsxOpenZfsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
|
|
16
|
+
* const client = new DataSyncClient(config);
|
|
17
|
+
* const command = new CreateLocationFsxOpenZfsCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link CreateLocationFsxOpenZfsCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link CreateLocationFsxOpenZfsCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link DataSyncClientResolvedConfig | config} for DataSyncClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class CreateLocationFsxOpenZfsCommand extends $Command<CreateLocationFsxOpenZfsCommandInput, CreateLocationFsxOpenZfsCommandOutput, DataSyncClientResolvedConfig> {
|
|
27
|
+
readonly input: CreateLocationFsxOpenZfsCommandInput;
|
|
28
|
+
constructor(input: CreateLocationFsxOpenZfsCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateLocationFsxOpenZfsCommandInput, CreateLocationFsxOpenZfsCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -7,8 +7,8 @@ export interface DescribeLocationFsxLustreCommandInput extends DescribeLocationF
|
|
|
7
7
|
export interface DescribeLocationFsxLustreCommandOutput extends DescribeLocationFsxLustreResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Returns metadata
|
|
11
|
-
* location.</p>
|
|
10
|
+
* <p>Returns metadata about an Amazon FSx for Lustre
|
|
11
|
+
* location, such as information about its path.</p>
|
|
12
12
|
* @example
|
|
13
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
14
|
* ```javascript
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient";
|
|
4
|
+
import { DescribeLocationFsxOpenZfsRequest, DescribeLocationFsxOpenZfsResponse } from "../models/models_0";
|
|
5
|
+
export interface DescribeLocationFsxOpenZfsCommandInput extends DescribeLocationFsxOpenZfsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DescribeLocationFsxOpenZfsCommandOutput extends DescribeLocationFsxOpenZfsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Returns metadata about an Amazon FSx for OpenZFS
|
|
11
|
+
* location, such as information about its path.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DataSyncClient, DescribeLocationFsxOpenZfsCommand } from "@aws-sdk/client-datasync"; // ES Modules import
|
|
16
|
+
* // const { DataSyncClient, DescribeLocationFsxOpenZfsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
|
|
17
|
+
* const client = new DataSyncClient(config);
|
|
18
|
+
* const command = new DescribeLocationFsxOpenZfsCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link DescribeLocationFsxOpenZfsCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link DescribeLocationFsxOpenZfsCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DataSyncClientResolvedConfig | config} for DataSyncClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class DescribeLocationFsxOpenZfsCommand extends $Command<DescribeLocationFsxOpenZfsCommandInput, DescribeLocationFsxOpenZfsCommandOutput, DataSyncClientResolvedConfig> {
|
|
28
|
+
readonly input: DescribeLocationFsxOpenZfsCommandInput;
|
|
29
|
+
constructor(input: DescribeLocationFsxOpenZfsCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DataSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeLocationFsxOpenZfsCommandInput, DescribeLocationFsxOpenZfsCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|
|
@@ -7,8 +7,8 @@ export interface DescribeLocationFsxWindowsCommandInput extends DescribeLocation
|
|
|
7
7
|
export interface DescribeLocationFsxWindowsCommandOutput extends DescribeLocationFsxWindowsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Returns metadata
|
|
11
|
-
* location.</p>
|
|
10
|
+
* <p>Returns metadata about an Amazon FSx for Windows File Server
|
|
11
|
+
* location, such as information about its path.</p>
|
|
12
12
|
* @example
|
|
13
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
14
|
* ```javascript
|
|
@@ -2,6 +2,7 @@ export * from "./CancelTaskExecutionCommand";
|
|
|
2
2
|
export * from "./CreateAgentCommand";
|
|
3
3
|
export * from "./CreateLocationEfsCommand";
|
|
4
4
|
export * from "./CreateLocationFsxLustreCommand";
|
|
5
|
+
export * from "./CreateLocationFsxOpenZfsCommand";
|
|
5
6
|
export * from "./CreateLocationFsxWindowsCommand";
|
|
6
7
|
export * from "./CreateLocationHdfsCommand";
|
|
7
8
|
export * from "./CreateLocationNfsCommand";
|
|
@@ -15,6 +16,7 @@ export * from "./DeleteTaskCommand";
|
|
|
15
16
|
export * from "./DescribeAgentCommand";
|
|
16
17
|
export * from "./DescribeLocationEfsCommand";
|
|
17
18
|
export * from "./DescribeLocationFsxLustreCommand";
|
|
19
|
+
export * from "./DescribeLocationFsxOpenZfsCommand";
|
|
18
20
|
export * from "./DescribeLocationFsxWindowsCommand";
|
|
19
21
|
export * from "./DescribeLocationHdfsCommand";
|
|
20
22
|
export * from "./DescribeLocationNfsCommand";
|