@aws-sdk/client-datasync 3.39.0 → 3.43.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 +39 -0
- package/dist-cjs/DataSync.js +45 -0
- package/dist-cjs/commands/CreateLocationHdfsCommand.js +36 -0
- package/dist-cjs/commands/DescribeLocationHdfsCommand.js +36 -0
- package/dist-cjs/commands/UpdateLocationHdfsCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoints.js +151 -26
- package/dist-cjs/models/models_0.js +70 -3
- package/dist-cjs/protocols/Aws_json1_1.js +336 -2
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/DataSync.js +45 -0
- package/dist-es/commands/CreateLocationHdfsCommand.js +39 -0
- package/dist-es/commands/DescribeLocationHdfsCommand.js +39 -0
- package/dist-es/commands/UpdateLocationHdfsCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +151 -26
- package/dist-es/models/models_0.js +51 -0
- package/dist-es/protocols/Aws_json1_1.js +328 -0
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/DataSync.d.ts +23 -0
- package/dist-types/DataSyncClient.d.ts +13 -2
- package/dist-types/commands/CancelTaskExecutionCommand.d.ts +1 -1
- package/dist-types/commands/CreateAgentCommand.d.ts +1 -1
- package/dist-types/commands/CreateLocationEfsCommand.d.ts +1 -1
- package/dist-types/commands/CreateLocationFsxWindowsCommand.d.ts +1 -1
- package/dist-types/commands/CreateLocationHdfsCommand.d.ts +35 -0
- package/dist-types/commands/CreateLocationNfsCommand.d.ts +1 -1
- package/dist-types/commands/CreateLocationObjectStorageCommand.d.ts +1 -1
- package/dist-types/commands/CreateLocationS3Command.d.ts +1 -1
- package/dist-types/commands/CreateLocationSmbCommand.d.ts +1 -1
- package/dist-types/commands/CreateTaskCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAgentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLocationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTaskCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAgentCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLocationEfsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLocationFsxWindowsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLocationHdfsCommand.d.ts +36 -0
- package/dist-types/commands/DescribeLocationNfsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLocationObjectStorageCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLocationS3Command.d.ts +1 -1
- package/dist-types/commands/DescribeLocationSmbCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTaskCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTaskExecutionCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentsCommand.d.ts +1 -1
- package/dist-types/commands/ListLocationsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTaskExecutionsCommand.d.ts +1 -1
- package/dist-types/commands/ListTasksCommand.d.ts +1 -1
- package/dist-types/commands/StartTaskExecutionCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLocationHdfsCommand.d.ts +36 -0
- package/dist-types/commands/UpdateLocationNfsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLocationObjectStorageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLocationSmbCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTaskCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTaskExecutionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +343 -25
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/DataSync.d.ts +15 -0
- package/dist-types/ts3.4/DataSyncClient.d.ts +9 -2
- package/dist-types/ts3.4/commands/CreateLocationHdfsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLocationHdfsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLocationHdfsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +154 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -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_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 = void 0;
|
|
3
|
+
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 = 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_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_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_1DescribeLocationEfsCommand = exports.deserializeAws_json1_1DescribeAgentCommand = exports.deserializeAws_json1_1DeleteTaskCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const serializeAws_json1_1CancelTaskExecutionCommand = async (input, context) => {
|
|
@@ -44,6 +44,16 @@ const serializeAws_json1_1CreateLocationFsxWindowsCommand = async (input, contex
|
|
|
44
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
45
45
|
};
|
|
46
46
|
exports.serializeAws_json1_1CreateLocationFsxWindowsCommand = serializeAws_json1_1CreateLocationFsxWindowsCommand;
|
|
47
|
+
const serializeAws_json1_1CreateLocationHdfsCommand = async (input, context) => {
|
|
48
|
+
const headers = {
|
|
49
|
+
"content-type": "application/x-amz-json-1.1",
|
|
50
|
+
"x-amz-target": "FmrsService.CreateLocationHdfs",
|
|
51
|
+
};
|
|
52
|
+
let body;
|
|
53
|
+
body = JSON.stringify(serializeAws_json1_1CreateLocationHdfsRequest(input, context));
|
|
54
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
+
};
|
|
56
|
+
exports.serializeAws_json1_1CreateLocationHdfsCommand = serializeAws_json1_1CreateLocationHdfsCommand;
|
|
47
57
|
const serializeAws_json1_1CreateLocationNfsCommand = async (input, context) => {
|
|
48
58
|
const headers = {
|
|
49
59
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -154,6 +164,16 @@ const serializeAws_json1_1DescribeLocationFsxWindowsCommand = async (input, cont
|
|
|
154
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
165
|
};
|
|
156
166
|
exports.serializeAws_json1_1DescribeLocationFsxWindowsCommand = serializeAws_json1_1DescribeLocationFsxWindowsCommand;
|
|
167
|
+
const serializeAws_json1_1DescribeLocationHdfsCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "FmrsService.DescribeLocationHdfs",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1DescribeLocationHdfsRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
exports.serializeAws_json1_1DescribeLocationHdfsCommand = serializeAws_json1_1DescribeLocationHdfsCommand;
|
|
157
177
|
const serializeAws_json1_1DescribeLocationNfsCommand = async (input, context) => {
|
|
158
178
|
const headers = {
|
|
159
179
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -304,6 +324,16 @@ const serializeAws_json1_1UpdateAgentCommand = async (input, context) => {
|
|
|
304
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
325
|
};
|
|
306
326
|
exports.serializeAws_json1_1UpdateAgentCommand = serializeAws_json1_1UpdateAgentCommand;
|
|
327
|
+
const serializeAws_json1_1UpdateLocationHdfsCommand = async (input, context) => {
|
|
328
|
+
const headers = {
|
|
329
|
+
"content-type": "application/x-amz-json-1.1",
|
|
330
|
+
"x-amz-target": "FmrsService.UpdateLocationHdfs",
|
|
331
|
+
};
|
|
332
|
+
let body;
|
|
333
|
+
body = JSON.stringify(serializeAws_json1_1UpdateLocationHdfsRequest(input, context));
|
|
334
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
335
|
+
};
|
|
336
|
+
exports.serializeAws_json1_1UpdateLocationHdfsCommand = serializeAws_json1_1UpdateLocationHdfsCommand;
|
|
307
337
|
const serializeAws_json1_1UpdateLocationNfsCommand = async (input, context) => {
|
|
308
338
|
const headers = {
|
|
309
339
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -574,6 +604,61 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output
|
|
|
574
604
|
delete response.Message;
|
|
575
605
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
576
606
|
};
|
|
607
|
+
const deserializeAws_json1_1CreateLocationHdfsCommand = async (output, context) => {
|
|
608
|
+
if (output.statusCode >= 300) {
|
|
609
|
+
return deserializeAws_json1_1CreateLocationHdfsCommandError(output, context);
|
|
610
|
+
}
|
|
611
|
+
const data = await parseBody(output.body, context);
|
|
612
|
+
let contents = {};
|
|
613
|
+
contents = deserializeAws_json1_1CreateLocationHdfsResponse(data, context);
|
|
614
|
+
const response = {
|
|
615
|
+
$metadata: deserializeMetadata(output),
|
|
616
|
+
...contents,
|
|
617
|
+
};
|
|
618
|
+
return Promise.resolve(response);
|
|
619
|
+
};
|
|
620
|
+
exports.deserializeAws_json1_1CreateLocationHdfsCommand = deserializeAws_json1_1CreateLocationHdfsCommand;
|
|
621
|
+
const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, context) => {
|
|
622
|
+
const parsedOutput = {
|
|
623
|
+
...output,
|
|
624
|
+
body: await parseBody(output.body, context),
|
|
625
|
+
};
|
|
626
|
+
let response;
|
|
627
|
+
let errorCode = "UnknownError";
|
|
628
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
+
switch (errorCode) {
|
|
630
|
+
case "InternalException":
|
|
631
|
+
case "com.amazonaws.datasync#InternalException":
|
|
632
|
+
response = {
|
|
633
|
+
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
634
|
+
name: errorCode,
|
|
635
|
+
$metadata: deserializeMetadata(output),
|
|
636
|
+
};
|
|
637
|
+
break;
|
|
638
|
+
case "InvalidRequestException":
|
|
639
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
640
|
+
response = {
|
|
641
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
642
|
+
name: errorCode,
|
|
643
|
+
$metadata: deserializeMetadata(output),
|
|
644
|
+
};
|
|
645
|
+
break;
|
|
646
|
+
default:
|
|
647
|
+
const parsedBody = parsedOutput.body;
|
|
648
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
649
|
+
response = {
|
|
650
|
+
...parsedBody,
|
|
651
|
+
name: `${errorCode}`,
|
|
652
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
653
|
+
$fault: "client",
|
|
654
|
+
$metadata: deserializeMetadata(output),
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
const message = response.message || response.Message || errorCode;
|
|
658
|
+
response.message = message;
|
|
659
|
+
delete response.Message;
|
|
660
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
661
|
+
};
|
|
577
662
|
const deserializeAws_json1_1CreateLocationNfsCommand = async (output, context) => {
|
|
578
663
|
if (output.statusCode >= 300) {
|
|
579
664
|
return deserializeAws_json1_1CreateLocationNfsCommandError(output, context);
|
|
@@ -1179,6 +1264,61 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (outp
|
|
|
1179
1264
|
delete response.Message;
|
|
1180
1265
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1181
1266
|
};
|
|
1267
|
+
const deserializeAws_json1_1DescribeLocationHdfsCommand = async (output, context) => {
|
|
1268
|
+
if (output.statusCode >= 300) {
|
|
1269
|
+
return deserializeAws_json1_1DescribeLocationHdfsCommandError(output, context);
|
|
1270
|
+
}
|
|
1271
|
+
const data = await parseBody(output.body, context);
|
|
1272
|
+
let contents = {};
|
|
1273
|
+
contents = deserializeAws_json1_1DescribeLocationHdfsResponse(data, context);
|
|
1274
|
+
const response = {
|
|
1275
|
+
$metadata: deserializeMetadata(output),
|
|
1276
|
+
...contents,
|
|
1277
|
+
};
|
|
1278
|
+
return Promise.resolve(response);
|
|
1279
|
+
};
|
|
1280
|
+
exports.deserializeAws_json1_1DescribeLocationHdfsCommand = deserializeAws_json1_1DescribeLocationHdfsCommand;
|
|
1281
|
+
const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, context) => {
|
|
1282
|
+
const parsedOutput = {
|
|
1283
|
+
...output,
|
|
1284
|
+
body: await parseBody(output.body, context),
|
|
1285
|
+
};
|
|
1286
|
+
let response;
|
|
1287
|
+
let errorCode = "UnknownError";
|
|
1288
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1289
|
+
switch (errorCode) {
|
|
1290
|
+
case "InternalException":
|
|
1291
|
+
case "com.amazonaws.datasync#InternalException":
|
|
1292
|
+
response = {
|
|
1293
|
+
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
1294
|
+
name: errorCode,
|
|
1295
|
+
$metadata: deserializeMetadata(output),
|
|
1296
|
+
};
|
|
1297
|
+
break;
|
|
1298
|
+
case "InvalidRequestException":
|
|
1299
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1300
|
+
response = {
|
|
1301
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1302
|
+
name: errorCode,
|
|
1303
|
+
$metadata: deserializeMetadata(output),
|
|
1304
|
+
};
|
|
1305
|
+
break;
|
|
1306
|
+
default:
|
|
1307
|
+
const parsedBody = parsedOutput.body;
|
|
1308
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1309
|
+
response = {
|
|
1310
|
+
...parsedBody,
|
|
1311
|
+
name: `${errorCode}`,
|
|
1312
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1313
|
+
$fault: "client",
|
|
1314
|
+
$metadata: deserializeMetadata(output),
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
const message = response.message || response.Message || errorCode;
|
|
1318
|
+
response.message = message;
|
|
1319
|
+
delete response.Message;
|
|
1320
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1321
|
+
};
|
|
1182
1322
|
const deserializeAws_json1_1DescribeLocationNfsCommand = async (output, context) => {
|
|
1183
1323
|
if (output.statusCode >= 300) {
|
|
1184
1324
|
return deserializeAws_json1_1DescribeLocationNfsCommandError(output, context);
|
|
@@ -2004,6 +2144,61 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) =>
|
|
|
2004
2144
|
delete response.Message;
|
|
2005
2145
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2006
2146
|
};
|
|
2147
|
+
const deserializeAws_json1_1UpdateLocationHdfsCommand = async (output, context) => {
|
|
2148
|
+
if (output.statusCode >= 300) {
|
|
2149
|
+
return deserializeAws_json1_1UpdateLocationHdfsCommandError(output, context);
|
|
2150
|
+
}
|
|
2151
|
+
const data = await parseBody(output.body, context);
|
|
2152
|
+
let contents = {};
|
|
2153
|
+
contents = deserializeAws_json1_1UpdateLocationHdfsResponse(data, context);
|
|
2154
|
+
const response = {
|
|
2155
|
+
$metadata: deserializeMetadata(output),
|
|
2156
|
+
...contents,
|
|
2157
|
+
};
|
|
2158
|
+
return Promise.resolve(response);
|
|
2159
|
+
};
|
|
2160
|
+
exports.deserializeAws_json1_1UpdateLocationHdfsCommand = deserializeAws_json1_1UpdateLocationHdfsCommand;
|
|
2161
|
+
const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, context) => {
|
|
2162
|
+
const parsedOutput = {
|
|
2163
|
+
...output,
|
|
2164
|
+
body: await parseBody(output.body, context),
|
|
2165
|
+
};
|
|
2166
|
+
let response;
|
|
2167
|
+
let errorCode = "UnknownError";
|
|
2168
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2169
|
+
switch (errorCode) {
|
|
2170
|
+
case "InternalException":
|
|
2171
|
+
case "com.amazonaws.datasync#InternalException":
|
|
2172
|
+
response = {
|
|
2173
|
+
...(await deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)),
|
|
2174
|
+
name: errorCode,
|
|
2175
|
+
$metadata: deserializeMetadata(output),
|
|
2176
|
+
};
|
|
2177
|
+
break;
|
|
2178
|
+
case "InvalidRequestException":
|
|
2179
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2180
|
+
response = {
|
|
2181
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2182
|
+
name: errorCode,
|
|
2183
|
+
$metadata: deserializeMetadata(output),
|
|
2184
|
+
};
|
|
2185
|
+
break;
|
|
2186
|
+
default:
|
|
2187
|
+
const parsedBody = parsedOutput.body;
|
|
2188
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2189
|
+
response = {
|
|
2190
|
+
...parsedBody,
|
|
2191
|
+
name: `${errorCode}`,
|
|
2192
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2193
|
+
$fault: "client",
|
|
2194
|
+
$metadata: deserializeMetadata(output),
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
const message = response.message || response.Message || errorCode;
|
|
2198
|
+
response.message = message;
|
|
2199
|
+
delete response.Message;
|
|
2200
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2201
|
+
};
|
|
2007
2202
|
const deserializeAws_json1_1UpdateLocationNfsCommand = async (output, context) => {
|
|
2008
2203
|
if (output.statusCode >= 300) {
|
|
2009
2204
|
return deserializeAws_json1_1UpdateLocationNfsCommandError(output, context);
|
|
@@ -2359,6 +2554,35 @@ const serializeAws_json1_1CreateLocationFsxWindowsRequest = (input, context) =>
|
|
|
2359
2554
|
...(input.User !== undefined && input.User !== null && { User: input.User }),
|
|
2360
2555
|
};
|
|
2361
2556
|
};
|
|
2557
|
+
const serializeAws_json1_1CreateLocationHdfsRequest = (input, context) => {
|
|
2558
|
+
return {
|
|
2559
|
+
...(input.AgentArns !== undefined &&
|
|
2560
|
+
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
2561
|
+
...(input.AuthenticationType !== undefined &&
|
|
2562
|
+
input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
|
|
2563
|
+
...(input.BlockSize !== undefined && input.BlockSize !== null && { BlockSize: input.BlockSize }),
|
|
2564
|
+
...(input.KerberosKeytab !== undefined &&
|
|
2565
|
+
input.KerberosKeytab !== null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
|
|
2566
|
+
...(input.KerberosKrb5Conf !== undefined &&
|
|
2567
|
+
input.KerberosKrb5Conf !== null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
|
|
2568
|
+
...(input.KerberosPrincipal !== undefined &&
|
|
2569
|
+
input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal }),
|
|
2570
|
+
...(input.KmsKeyProviderUri !== undefined &&
|
|
2571
|
+
input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
|
|
2572
|
+
...(input.NameNodes !== undefined &&
|
|
2573
|
+
input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
|
|
2574
|
+
...(input.QopConfiguration !== undefined &&
|
|
2575
|
+
input.QopConfiguration !== null && {
|
|
2576
|
+
QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
|
|
2577
|
+
}),
|
|
2578
|
+
...(input.ReplicationFactor !== undefined &&
|
|
2579
|
+
input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor }),
|
|
2580
|
+
...(input.SimpleUser !== undefined && input.SimpleUser !== null && { SimpleUser: input.SimpleUser }),
|
|
2581
|
+
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
2582
|
+
...(input.Tags !== undefined &&
|
|
2583
|
+
input.Tags !== null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2584
|
+
};
|
|
2585
|
+
};
|
|
2362
2586
|
const serializeAws_json1_1CreateLocationNfsRequest = (input, context) => {
|
|
2363
2587
|
return {
|
|
2364
2588
|
...(input.MountOptions !== undefined &&
|
|
@@ -2474,6 +2698,11 @@ const serializeAws_json1_1DescribeLocationFsxWindowsRequest = (input, context) =
|
|
|
2474
2698
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2475
2699
|
};
|
|
2476
2700
|
};
|
|
2701
|
+
const serializeAws_json1_1DescribeLocationHdfsRequest = (input, context) => {
|
|
2702
|
+
return {
|
|
2703
|
+
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2477
2706
|
const serializeAws_json1_1DescribeLocationNfsRequest = (input, context) => {
|
|
2478
2707
|
return {
|
|
2479
2708
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
@@ -2550,6 +2779,22 @@ const serializeAws_json1_1FilterValues = (input, context) => {
|
|
|
2550
2779
|
return entry;
|
|
2551
2780
|
});
|
|
2552
2781
|
};
|
|
2782
|
+
const serializeAws_json1_1HdfsNameNode = (input, context) => {
|
|
2783
|
+
return {
|
|
2784
|
+
...(input.Hostname !== undefined && input.Hostname !== null && { Hostname: input.Hostname }),
|
|
2785
|
+
...(input.Port !== undefined && input.Port !== null && { Port: input.Port }),
|
|
2786
|
+
};
|
|
2787
|
+
};
|
|
2788
|
+
const serializeAws_json1_1HdfsNameNodeList = (input, context) => {
|
|
2789
|
+
return input
|
|
2790
|
+
.filter((e) => e != null)
|
|
2791
|
+
.map((entry) => {
|
|
2792
|
+
if (entry === null) {
|
|
2793
|
+
return null;
|
|
2794
|
+
}
|
|
2795
|
+
return serializeAws_json1_1HdfsNameNode(entry, context);
|
|
2796
|
+
});
|
|
2797
|
+
};
|
|
2553
2798
|
const serializeAws_json1_1InputTagList = (input, context) => {
|
|
2554
2799
|
return input
|
|
2555
2800
|
.filter((e) => e != null)
|
|
@@ -2668,6 +2913,13 @@ const serializeAws_json1_1PLSubnetArnList = (input, context) => {
|
|
|
2668
2913
|
return entry;
|
|
2669
2914
|
});
|
|
2670
2915
|
};
|
|
2916
|
+
const serializeAws_json1_1QopConfiguration = (input, context) => {
|
|
2917
|
+
return {
|
|
2918
|
+
...(input.DataTransferProtection !== undefined &&
|
|
2919
|
+
input.DataTransferProtection !== null && { DataTransferProtection: input.DataTransferProtection }),
|
|
2920
|
+
...(input.RpcProtection !== undefined && input.RpcProtection !== null && { RpcProtection: input.RpcProtection }),
|
|
2921
|
+
};
|
|
2922
|
+
};
|
|
2671
2923
|
const serializeAws_json1_1S3Config = (input, context) => {
|
|
2672
2924
|
return {
|
|
2673
2925
|
...(input.BucketAccessRoleArn !== undefined &&
|
|
@@ -2752,6 +3004,34 @@ const serializeAws_json1_1UpdateAgentRequest = (input, context) => {
|
|
|
2752
3004
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2753
3005
|
};
|
|
2754
3006
|
};
|
|
3007
|
+
const serializeAws_json1_1UpdateLocationHdfsRequest = (input, context) => {
|
|
3008
|
+
return {
|
|
3009
|
+
...(input.AgentArns !== undefined &&
|
|
3010
|
+
input.AgentArns !== null && { AgentArns: serializeAws_json1_1AgentArnList(input.AgentArns, context) }),
|
|
3011
|
+
...(input.AuthenticationType !== undefined &&
|
|
3012
|
+
input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
|
|
3013
|
+
...(input.BlockSize !== undefined && input.BlockSize !== null && { BlockSize: input.BlockSize }),
|
|
3014
|
+
...(input.KerberosKeytab !== undefined &&
|
|
3015
|
+
input.KerberosKeytab !== null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
|
|
3016
|
+
...(input.KerberosKrb5Conf !== undefined &&
|
|
3017
|
+
input.KerberosKrb5Conf !== null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
|
|
3018
|
+
...(input.KerberosPrincipal !== undefined &&
|
|
3019
|
+
input.KerberosPrincipal !== null && { KerberosPrincipal: input.KerberosPrincipal }),
|
|
3020
|
+
...(input.KmsKeyProviderUri !== undefined &&
|
|
3021
|
+
input.KmsKeyProviderUri !== null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
|
|
3022
|
+
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
3023
|
+
...(input.NameNodes !== undefined &&
|
|
3024
|
+
input.NameNodes !== null && { NameNodes: serializeAws_json1_1HdfsNameNodeList(input.NameNodes, context) }),
|
|
3025
|
+
...(input.QopConfiguration !== undefined &&
|
|
3026
|
+
input.QopConfiguration !== null && {
|
|
3027
|
+
QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
|
|
3028
|
+
}),
|
|
3029
|
+
...(input.ReplicationFactor !== undefined &&
|
|
3030
|
+
input.ReplicationFactor !== null && { ReplicationFactor: input.ReplicationFactor }),
|
|
3031
|
+
...(input.SimpleUser !== undefined && input.SimpleUser !== null && { SimpleUser: input.SimpleUser }),
|
|
3032
|
+
...(input.Subdirectory !== undefined && input.Subdirectory !== null && { Subdirectory: input.Subdirectory }),
|
|
3033
|
+
};
|
|
3034
|
+
};
|
|
2755
3035
|
const serializeAws_json1_1UpdateLocationNfsRequest = (input, context) => {
|
|
2756
3036
|
return {
|
|
2757
3037
|
...(input.LocationArn !== undefined && input.LocationArn !== null && { LocationArn: input.LocationArn }),
|
|
@@ -2861,6 +3141,11 @@ const deserializeAws_json1_1CreateLocationFsxWindowsResponse = (output, context)
|
|
|
2861
3141
|
LocationArn: smithy_client_1.expectString(output.LocationArn),
|
|
2862
3142
|
};
|
|
2863
3143
|
};
|
|
3144
|
+
const deserializeAws_json1_1CreateLocationHdfsResponse = (output, context) => {
|
|
3145
|
+
return {
|
|
3146
|
+
LocationArn: smithy_client_1.expectString(output.LocationArn),
|
|
3147
|
+
};
|
|
3148
|
+
};
|
|
2864
3149
|
const deserializeAws_json1_1CreateLocationNfsResponse = (output, context) => {
|
|
2865
3150
|
return {
|
|
2866
3151
|
LocationArn: smithy_client_1.expectString(output.LocationArn),
|
|
@@ -2938,6 +3223,30 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsResponse = (output, contex
|
|
|
2938
3223
|
User: smithy_client_1.expectString(output.User),
|
|
2939
3224
|
};
|
|
2940
3225
|
};
|
|
3226
|
+
const deserializeAws_json1_1DescribeLocationHdfsResponse = (output, context) => {
|
|
3227
|
+
return {
|
|
3228
|
+
AgentArns: output.AgentArns !== undefined && output.AgentArns !== null
|
|
3229
|
+
? deserializeAws_json1_1AgentArnList(output.AgentArns, context)
|
|
3230
|
+
: undefined,
|
|
3231
|
+
AuthenticationType: smithy_client_1.expectString(output.AuthenticationType),
|
|
3232
|
+
BlockSize: smithy_client_1.expectInt32(output.BlockSize),
|
|
3233
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3234
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
3235
|
+
: undefined,
|
|
3236
|
+
KerberosPrincipal: smithy_client_1.expectString(output.KerberosPrincipal),
|
|
3237
|
+
KmsKeyProviderUri: smithy_client_1.expectString(output.KmsKeyProviderUri),
|
|
3238
|
+
LocationArn: smithy_client_1.expectString(output.LocationArn),
|
|
3239
|
+
LocationUri: smithy_client_1.expectString(output.LocationUri),
|
|
3240
|
+
NameNodes: output.NameNodes !== undefined && output.NameNodes !== null
|
|
3241
|
+
? deserializeAws_json1_1HdfsNameNodeList(output.NameNodes, context)
|
|
3242
|
+
: undefined,
|
|
3243
|
+
QopConfiguration: output.QopConfiguration !== undefined && output.QopConfiguration !== null
|
|
3244
|
+
? deserializeAws_json1_1QopConfiguration(output.QopConfiguration, context)
|
|
3245
|
+
: undefined,
|
|
3246
|
+
ReplicationFactor: smithy_client_1.expectInt32(output.ReplicationFactor),
|
|
3247
|
+
SimpleUser: smithy_client_1.expectString(output.SimpleUser),
|
|
3248
|
+
};
|
|
3249
|
+
};
|
|
2941
3250
|
const deserializeAws_json1_1DescribeLocationNfsResponse = (output, context) => {
|
|
2942
3251
|
return {
|
|
2943
3252
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
@@ -3105,6 +3414,22 @@ const deserializeAws_json1_1FilterRule = (output, context) => {
|
|
|
3105
3414
|
Value: smithy_client_1.expectString(output.Value),
|
|
3106
3415
|
};
|
|
3107
3416
|
};
|
|
3417
|
+
const deserializeAws_json1_1HdfsNameNode = (output, context) => {
|
|
3418
|
+
return {
|
|
3419
|
+
Hostname: smithy_client_1.expectString(output.Hostname),
|
|
3420
|
+
Port: smithy_client_1.expectInt32(output.Port),
|
|
3421
|
+
};
|
|
3422
|
+
};
|
|
3423
|
+
const deserializeAws_json1_1HdfsNameNodeList = (output, context) => {
|
|
3424
|
+
return (output || [])
|
|
3425
|
+
.filter((e) => e != null)
|
|
3426
|
+
.map((entry) => {
|
|
3427
|
+
if (entry === null) {
|
|
3428
|
+
return null;
|
|
3429
|
+
}
|
|
3430
|
+
return deserializeAws_json1_1HdfsNameNode(entry, context);
|
|
3431
|
+
});
|
|
3432
|
+
};
|
|
3108
3433
|
const deserializeAws_json1_1InternalException = (output, context) => {
|
|
3109
3434
|
return {
|
|
3110
3435
|
errorCode: smithy_client_1.expectString(output.errorCode),
|
|
@@ -3245,6 +3570,12 @@ const deserializeAws_json1_1PrivateLinkConfig = (output, context) => {
|
|
|
3245
3570
|
VpcEndpointId: smithy_client_1.expectString(output.VpcEndpointId),
|
|
3246
3571
|
};
|
|
3247
3572
|
};
|
|
3573
|
+
const deserializeAws_json1_1QopConfiguration = (output, context) => {
|
|
3574
|
+
return {
|
|
3575
|
+
DataTransferProtection: smithy_client_1.expectString(output.DataTransferProtection),
|
|
3576
|
+
RpcProtection: smithy_client_1.expectString(output.RpcProtection),
|
|
3577
|
+
};
|
|
3578
|
+
};
|
|
3248
3579
|
const deserializeAws_json1_1S3Config = (output, context) => {
|
|
3249
3580
|
return {
|
|
3250
3581
|
BucketAccessRoleArn: smithy_client_1.expectString(output.BucketAccessRoleArn),
|
|
@@ -3336,6 +3667,9 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
3336
3667
|
const deserializeAws_json1_1UpdateAgentResponse = (output, context) => {
|
|
3337
3668
|
return {};
|
|
3338
3669
|
};
|
|
3670
|
+
const deserializeAws_json1_1UpdateLocationHdfsResponse = (output, context) => {
|
|
3671
|
+
return {};
|
|
3672
|
+
};
|
|
3339
3673
|
const deserializeAws_json1_1UpdateLocationNfsResponse = (output, context) => {
|
|
3340
3674
|
return {};
|
|
3341
3675
|
};
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
35
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|
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 { CreateLocationFsxWindowsCommand, } from "./commands/CreateLocationFsxWindowsCommand";
|
|
6
|
+
import { CreateLocationHdfsCommand, } from "./commands/CreateLocationHdfsCommand";
|
|
6
7
|
import { CreateLocationNfsCommand, } from "./commands/CreateLocationNfsCommand";
|
|
7
8
|
import { CreateLocationObjectStorageCommand, } from "./commands/CreateLocationObjectStorageCommand";
|
|
8
9
|
import { CreateLocationS3Command, } from "./commands/CreateLocationS3Command";
|
|
@@ -14,6 +15,7 @@ import { DeleteTaskCommand } from "./commands/DeleteTaskCommand";
|
|
|
14
15
|
import { DescribeAgentCommand, } from "./commands/DescribeAgentCommand";
|
|
15
16
|
import { DescribeLocationEfsCommand, } from "./commands/DescribeLocationEfsCommand";
|
|
16
17
|
import { DescribeLocationFsxWindowsCommand, } from "./commands/DescribeLocationFsxWindowsCommand";
|
|
18
|
+
import { DescribeLocationHdfsCommand, } from "./commands/DescribeLocationHdfsCommand";
|
|
17
19
|
import { DescribeLocationNfsCommand, } from "./commands/DescribeLocationNfsCommand";
|
|
18
20
|
import { DescribeLocationObjectStorageCommand, } from "./commands/DescribeLocationObjectStorageCommand";
|
|
19
21
|
import { DescribeLocationS3Command, } from "./commands/DescribeLocationS3Command";
|
|
@@ -29,6 +31,7 @@ import { StartTaskExecutionCommand, } from "./commands/StartTaskExecutionCommand
|
|
|
29
31
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
30
32
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
31
33
|
import { UpdateAgentCommand } from "./commands/UpdateAgentCommand";
|
|
34
|
+
import { UpdateLocationHdfsCommand, } from "./commands/UpdateLocationHdfsCommand";
|
|
32
35
|
import { UpdateLocationNfsCommand, } from "./commands/UpdateLocationNfsCommand";
|
|
33
36
|
import { UpdateLocationObjectStorageCommand, } from "./commands/UpdateLocationObjectStorageCommand";
|
|
34
37
|
import { UpdateLocationSmbCommand, } from "./commands/UpdateLocationSmbCommand";
|
|
@@ -96,6 +99,20 @@ var DataSync = (function (_super) {
|
|
|
96
99
|
return this.send(command, optionsOrCb);
|
|
97
100
|
}
|
|
98
101
|
};
|
|
102
|
+
DataSync.prototype.createLocationHdfs = function (args, optionsOrCb, cb) {
|
|
103
|
+
var command = new CreateLocationHdfsCommand(args);
|
|
104
|
+
if (typeof optionsOrCb === "function") {
|
|
105
|
+
this.send(command, optionsOrCb);
|
|
106
|
+
}
|
|
107
|
+
else if (typeof cb === "function") {
|
|
108
|
+
if (typeof optionsOrCb !== "object")
|
|
109
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
110
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
return this.send(command, optionsOrCb);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
99
116
|
DataSync.prototype.createLocationNfs = function (args, optionsOrCb, cb) {
|
|
100
117
|
var command = new CreateLocationNfsCommand(args);
|
|
101
118
|
if (typeof optionsOrCb === "function") {
|
|
@@ -250,6 +267,20 @@ var DataSync = (function (_super) {
|
|
|
250
267
|
return this.send(command, optionsOrCb);
|
|
251
268
|
}
|
|
252
269
|
};
|
|
270
|
+
DataSync.prototype.describeLocationHdfs = function (args, optionsOrCb, cb) {
|
|
271
|
+
var command = new DescribeLocationHdfsCommand(args);
|
|
272
|
+
if (typeof optionsOrCb === "function") {
|
|
273
|
+
this.send(command, optionsOrCb);
|
|
274
|
+
}
|
|
275
|
+
else if (typeof cb === "function") {
|
|
276
|
+
if (typeof optionsOrCb !== "object")
|
|
277
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
278
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
return this.send(command, optionsOrCb);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
253
284
|
DataSync.prototype.describeLocationNfs = function (args, optionsOrCb, cb) {
|
|
254
285
|
var command = new DescribeLocationNfsCommand(args);
|
|
255
286
|
if (typeof optionsOrCb === "function") {
|
|
@@ -460,6 +491,20 @@ var DataSync = (function (_super) {
|
|
|
460
491
|
return this.send(command, optionsOrCb);
|
|
461
492
|
}
|
|
462
493
|
};
|
|
494
|
+
DataSync.prototype.updateLocationHdfs = function (args, optionsOrCb, cb) {
|
|
495
|
+
var command = new UpdateLocationHdfsCommand(args);
|
|
496
|
+
if (typeof optionsOrCb === "function") {
|
|
497
|
+
this.send(command, optionsOrCb);
|
|
498
|
+
}
|
|
499
|
+
else if (typeof cb === "function") {
|
|
500
|
+
if (typeof optionsOrCb !== "object")
|
|
501
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
502
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
return this.send(command, optionsOrCb);
|
|
506
|
+
}
|
|
507
|
+
};
|
|
463
508
|
DataSync.prototype.updateLocationNfs = function (args, optionsOrCb, cb) {
|
|
464
509
|
var command = new UpdateLocationNfsCommand(args);
|
|
465
510
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateLocationHdfsRequest, CreateLocationHdfsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateLocationHdfsCommand, serializeAws_json1_1CreateLocationHdfsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var CreateLocationHdfsCommand = (function (_super) {
|
|
7
|
+
__extends(CreateLocationHdfsCommand, _super);
|
|
8
|
+
function CreateLocationHdfsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateLocationHdfsCommand.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 = "CreateLocationHdfsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateLocationHdfsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateLocationHdfsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateLocationHdfsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1CreateLocationHdfsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateLocationHdfsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreateLocationHdfsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateLocationHdfsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateLocationHdfsCommand };
|