@aws-sdk/client-efs 3.47.2 → 3.51.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 +35 -0
- package/README.md +1 -1
- package/dist-cjs/EFS.js +45 -0
- package/dist-cjs/commands/CreateReplicationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteReplicationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DescribeReplicationConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/models/models_0.js +51 -2
- package/dist-cjs/protocols/Aws_restJson1.js +482 -2
- package/dist-es/EFS.js +45 -0
- package/dist-es/commands/CreateReplicationConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteReplicationConfigurationCommand.js +39 -0
- package/dist-es/commands/DescribeReplicationConfigurationsCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +9 -0
- package/dist-es/models/models_0.js +35 -0
- package/dist-es/protocols/Aws_restJson1.js +606 -78
- package/dist-types/EFS.d.ts +106 -3
- package/dist-types/EFSClient.d.ts +6 -3
- package/dist-types/commands/CreateReplicationConfigurationCommand.d.ts +110 -0
- package/dist-types/commands/DeleteReplicationConfigurationCommand.d.ts +39 -0
- package/dist-types/commands/DescribeReplicationConfigurationsCommand.d.ts +36 -0
- package/dist-types/commands/PutAccountPreferencesCommand.d.ts +4 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +538 -24
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/EFS.d.ts +15 -0
- package/dist-types/ts3.4/EFSClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/CreateReplicationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteReplicationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeReplicationConfigurationsCommand.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 +164 -7
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +39 -33
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateFileSystemCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutLifecycleConfigurationCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1DescribeReplicationConfigurationsCommand = exports.deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = exports.deserializeAws_restJson1DescribeMountTargetsCommand = exports.deserializeAws_restJson1DescribeLifecycleConfigurationCommand = exports.deserializeAws_restJson1DescribeFileSystemsCommand = exports.deserializeAws_restJson1DescribeFileSystemPolicyCommand = exports.deserializeAws_restJson1DescribeBackupPolicyCommand = exports.deserializeAws_restJson1DescribeAccountPreferencesCommand = exports.deserializeAws_restJson1DescribeAccessPointsCommand = exports.deserializeAws_restJson1DeleteTagsCommand = exports.deserializeAws_restJson1DeleteReplicationConfigurationCommand = exports.deserializeAws_restJson1DeleteMountTargetCommand = exports.deserializeAws_restJson1DeleteFileSystemPolicyCommand = exports.deserializeAws_restJson1DeleteFileSystemCommand = exports.deserializeAws_restJson1DeleteAccessPointCommand = exports.deserializeAws_restJson1CreateTagsCommand = exports.deserializeAws_restJson1CreateReplicationConfigurationCommand = exports.deserializeAws_restJson1CreateMountTargetCommand = exports.deserializeAws_restJson1CreateFileSystemCommand = exports.deserializeAws_restJson1CreateAccessPointCommand = exports.serializeAws_restJson1UpdateFileSystemCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutLifecycleConfigurationCommand = exports.serializeAws_restJson1PutFileSystemPolicyCommand = exports.serializeAws_restJson1PutBackupPolicyCommand = exports.serializeAws_restJson1PutAccountPreferencesCommand = exports.serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1DescribeTagsCommand = exports.serializeAws_restJson1DescribeReplicationConfigurationsCommand = exports.serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = exports.serializeAws_restJson1DescribeMountTargetsCommand = exports.serializeAws_restJson1DescribeLifecycleConfigurationCommand = exports.serializeAws_restJson1DescribeFileSystemsCommand = exports.serializeAws_restJson1DescribeFileSystemPolicyCommand = exports.serializeAws_restJson1DescribeBackupPolicyCommand = exports.serializeAws_restJson1DescribeAccountPreferencesCommand = exports.serializeAws_restJson1DescribeAccessPointsCommand = exports.serializeAws_restJson1DeleteTagsCommand = exports.serializeAws_restJson1DeleteReplicationConfigurationCommand = exports.serializeAws_restJson1DeleteMountTargetCommand = exports.serializeAws_restJson1DeleteFileSystemPolicyCommand = exports.serializeAws_restJson1DeleteFileSystemCommand = exports.serializeAws_restJson1DeleteAccessPointCommand = exports.serializeAws_restJson1CreateTagsCommand = exports.serializeAws_restJson1CreateReplicationConfigurationCommand = exports.serializeAws_restJson1CreateMountTargetCommand = exports.serializeAws_restJson1CreateFileSystemCommand = exports.serializeAws_restJson1CreateAccessPointCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateFileSystemCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutLifecycleConfigurationCommand = exports.deserializeAws_restJson1PutFileSystemPolicyCommand = exports.deserializeAws_restJson1PutBackupPolicyCommand = exports.deserializeAws_restJson1PutAccountPreferencesCommand = exports.deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1DescribeTagsCommand = 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 uuid_1 = require("uuid");
|
|
@@ -98,6 +98,41 @@ const serializeAws_restJson1CreateMountTargetCommand = async (input, context) =>
|
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
100
|
exports.serializeAws_restJson1CreateMountTargetCommand = serializeAws_restJson1CreateMountTargetCommand;
|
|
101
|
+
const serializeAws_restJson1CreateReplicationConfigurationCommand = async (input, context) => {
|
|
102
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
103
|
+
const headers = {
|
|
104
|
+
"content-type": "application/json",
|
|
105
|
+
};
|
|
106
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
107
|
+
"/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration";
|
|
108
|
+
if (input.SourceFileSystemId !== undefined) {
|
|
109
|
+
const labelValue = input.SourceFileSystemId;
|
|
110
|
+
if (labelValue.length <= 0) {
|
|
111
|
+
throw new Error("Empty value provided for input HTTP label: SourceFileSystemId.");
|
|
112
|
+
}
|
|
113
|
+
resolvedPath = resolvedPath.replace("{SourceFileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
throw new Error("No value provided for input HTTP label: SourceFileSystemId.");
|
|
117
|
+
}
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify({
|
|
120
|
+
...(input.Destinations !== undefined &&
|
|
121
|
+
input.Destinations !== null && {
|
|
122
|
+
Destinations: serializeAws_restJson1DestinationsToCreate(input.Destinations, context),
|
|
123
|
+
}),
|
|
124
|
+
});
|
|
125
|
+
return new protocol_http_1.HttpRequest({
|
|
126
|
+
protocol,
|
|
127
|
+
hostname,
|
|
128
|
+
port,
|
|
129
|
+
method: "POST",
|
|
130
|
+
headers,
|
|
131
|
+
path: resolvedPath,
|
|
132
|
+
body,
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
exports.serializeAws_restJson1CreateReplicationConfigurationCommand = serializeAws_restJson1CreateReplicationConfigurationCommand;
|
|
101
136
|
const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
|
|
102
137
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
103
138
|
const headers = {
|
|
@@ -234,6 +269,33 @@ const serializeAws_restJson1DeleteMountTargetCommand = async (input, context) =>
|
|
|
234
269
|
});
|
|
235
270
|
};
|
|
236
271
|
exports.serializeAws_restJson1DeleteMountTargetCommand = serializeAws_restJson1DeleteMountTargetCommand;
|
|
272
|
+
const serializeAws_restJson1DeleteReplicationConfigurationCommand = async (input, context) => {
|
|
273
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
|
+
const headers = {};
|
|
275
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
276
|
+
"/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration";
|
|
277
|
+
if (input.SourceFileSystemId !== undefined) {
|
|
278
|
+
const labelValue = input.SourceFileSystemId;
|
|
279
|
+
if (labelValue.length <= 0) {
|
|
280
|
+
throw new Error("Empty value provided for input HTTP label: SourceFileSystemId.");
|
|
281
|
+
}
|
|
282
|
+
resolvedPath = resolvedPath.replace("{SourceFileSystemId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
throw new Error("No value provided for input HTTP label: SourceFileSystemId.");
|
|
286
|
+
}
|
|
287
|
+
let body;
|
|
288
|
+
return new protocol_http_1.HttpRequest({
|
|
289
|
+
protocol,
|
|
290
|
+
hostname,
|
|
291
|
+
port,
|
|
292
|
+
method: "DELETE",
|
|
293
|
+
headers,
|
|
294
|
+
path: resolvedPath,
|
|
295
|
+
body,
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
exports.serializeAws_restJson1DeleteReplicationConfigurationCommand = serializeAws_restJson1DeleteReplicationConfigurationCommand;
|
|
237
299
|
const serializeAws_restJson1DeleteTagsCommand = async (input, context) => {
|
|
238
300
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
239
301
|
const headers = {
|
|
@@ -466,6 +528,29 @@ const serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = async (in
|
|
|
466
528
|
});
|
|
467
529
|
};
|
|
468
530
|
exports.serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand;
|
|
531
|
+
const serializeAws_restJson1DescribeReplicationConfigurationsCommand = async (input, context) => {
|
|
532
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
533
|
+
const headers = {};
|
|
534
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
535
|
+
"/2015-02-01/file-systems/replication-configurations";
|
|
536
|
+
const query = {
|
|
537
|
+
...(input.FileSystemId !== undefined && { FileSystemId: input.FileSystemId }),
|
|
538
|
+
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
539
|
+
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
540
|
+
};
|
|
541
|
+
let body;
|
|
542
|
+
return new protocol_http_1.HttpRequest({
|
|
543
|
+
protocol,
|
|
544
|
+
hostname,
|
|
545
|
+
port,
|
|
546
|
+
method: "GET",
|
|
547
|
+
headers,
|
|
548
|
+
path: resolvedPath,
|
|
549
|
+
query,
|
|
550
|
+
body,
|
|
551
|
+
});
|
|
552
|
+
};
|
|
553
|
+
exports.serializeAws_restJson1DescribeReplicationConfigurationsCommand = serializeAws_restJson1DescribeReplicationConfigurationsCommand;
|
|
469
554
|
const serializeAws_restJson1DescribeTagsCommand = async (input, context) => {
|
|
470
555
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
556
|
const headers = {};
|
|
@@ -1250,6 +1335,146 @@ const deserializeAws_restJson1CreateMountTargetCommandError = async (output, con
|
|
|
1250
1335
|
delete response.Message;
|
|
1251
1336
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1252
1337
|
};
|
|
1338
|
+
const deserializeAws_restJson1CreateReplicationConfigurationCommand = async (output, context) => {
|
|
1339
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1340
|
+
return deserializeAws_restJson1CreateReplicationConfigurationCommandError(output, context);
|
|
1341
|
+
}
|
|
1342
|
+
const contents = {
|
|
1343
|
+
$metadata: deserializeMetadata(output),
|
|
1344
|
+
CreationTime: undefined,
|
|
1345
|
+
Destinations: undefined,
|
|
1346
|
+
OriginalSourceFileSystemArn: undefined,
|
|
1347
|
+
SourceFileSystemArn: undefined,
|
|
1348
|
+
SourceFileSystemId: undefined,
|
|
1349
|
+
SourceFileSystemRegion: undefined,
|
|
1350
|
+
};
|
|
1351
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1352
|
+
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1353
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1354
|
+
}
|
|
1355
|
+
if (data.Destinations !== undefined && data.Destinations !== null) {
|
|
1356
|
+
contents.Destinations = deserializeAws_restJson1Destinations(data.Destinations, context);
|
|
1357
|
+
}
|
|
1358
|
+
if (data.OriginalSourceFileSystemArn !== undefined && data.OriginalSourceFileSystemArn !== null) {
|
|
1359
|
+
contents.OriginalSourceFileSystemArn = smithy_client_1.expectString(data.OriginalSourceFileSystemArn);
|
|
1360
|
+
}
|
|
1361
|
+
if (data.SourceFileSystemArn !== undefined && data.SourceFileSystemArn !== null) {
|
|
1362
|
+
contents.SourceFileSystemArn = smithy_client_1.expectString(data.SourceFileSystemArn);
|
|
1363
|
+
}
|
|
1364
|
+
if (data.SourceFileSystemId !== undefined && data.SourceFileSystemId !== null) {
|
|
1365
|
+
contents.SourceFileSystemId = smithy_client_1.expectString(data.SourceFileSystemId);
|
|
1366
|
+
}
|
|
1367
|
+
if (data.SourceFileSystemRegion !== undefined && data.SourceFileSystemRegion !== null) {
|
|
1368
|
+
contents.SourceFileSystemRegion = smithy_client_1.expectString(data.SourceFileSystemRegion);
|
|
1369
|
+
}
|
|
1370
|
+
return Promise.resolve(contents);
|
|
1371
|
+
};
|
|
1372
|
+
exports.deserializeAws_restJson1CreateReplicationConfigurationCommand = deserializeAws_restJson1CreateReplicationConfigurationCommand;
|
|
1373
|
+
const deserializeAws_restJson1CreateReplicationConfigurationCommandError = async (output, context) => {
|
|
1374
|
+
const parsedOutput = {
|
|
1375
|
+
...output,
|
|
1376
|
+
body: await parseBody(output.body, context),
|
|
1377
|
+
};
|
|
1378
|
+
let response;
|
|
1379
|
+
let errorCode = "UnknownError";
|
|
1380
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
+
switch (errorCode) {
|
|
1382
|
+
case "BadRequest":
|
|
1383
|
+
case "com.amazonaws.efs#BadRequest":
|
|
1384
|
+
response = {
|
|
1385
|
+
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1386
|
+
name: errorCode,
|
|
1387
|
+
$metadata: deserializeMetadata(output),
|
|
1388
|
+
};
|
|
1389
|
+
break;
|
|
1390
|
+
case "FileSystemLimitExceeded":
|
|
1391
|
+
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
1392
|
+
response = {
|
|
1393
|
+
...(await deserializeAws_restJson1FileSystemLimitExceededResponse(parsedOutput, context)),
|
|
1394
|
+
name: errorCode,
|
|
1395
|
+
$metadata: deserializeMetadata(output),
|
|
1396
|
+
};
|
|
1397
|
+
break;
|
|
1398
|
+
case "FileSystemNotFound":
|
|
1399
|
+
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1400
|
+
response = {
|
|
1401
|
+
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1402
|
+
name: errorCode,
|
|
1403
|
+
$metadata: deserializeMetadata(output),
|
|
1404
|
+
};
|
|
1405
|
+
break;
|
|
1406
|
+
case "IncorrectFileSystemLifeCycleState":
|
|
1407
|
+
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1408
|
+
response = {
|
|
1409
|
+
...(await deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)),
|
|
1410
|
+
name: errorCode,
|
|
1411
|
+
$metadata: deserializeMetadata(output),
|
|
1412
|
+
};
|
|
1413
|
+
break;
|
|
1414
|
+
case "InsufficientThroughputCapacity":
|
|
1415
|
+
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1416
|
+
response = {
|
|
1417
|
+
...(await deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context)),
|
|
1418
|
+
name: errorCode,
|
|
1419
|
+
$metadata: deserializeMetadata(output),
|
|
1420
|
+
};
|
|
1421
|
+
break;
|
|
1422
|
+
case "InternalServerError":
|
|
1423
|
+
case "com.amazonaws.efs#InternalServerError":
|
|
1424
|
+
response = {
|
|
1425
|
+
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1426
|
+
name: errorCode,
|
|
1427
|
+
$metadata: deserializeMetadata(output),
|
|
1428
|
+
};
|
|
1429
|
+
break;
|
|
1430
|
+
case "ReplicationNotFound":
|
|
1431
|
+
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1432
|
+
response = {
|
|
1433
|
+
...(await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context)),
|
|
1434
|
+
name: errorCode,
|
|
1435
|
+
$metadata: deserializeMetadata(output),
|
|
1436
|
+
};
|
|
1437
|
+
break;
|
|
1438
|
+
case "ThroughputLimitExceeded":
|
|
1439
|
+
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
1440
|
+
response = {
|
|
1441
|
+
...(await deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context)),
|
|
1442
|
+
name: errorCode,
|
|
1443
|
+
$metadata: deserializeMetadata(output),
|
|
1444
|
+
};
|
|
1445
|
+
break;
|
|
1446
|
+
case "UnsupportedAvailabilityZone":
|
|
1447
|
+
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1448
|
+
response = {
|
|
1449
|
+
...(await deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context)),
|
|
1450
|
+
name: errorCode,
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
};
|
|
1453
|
+
break;
|
|
1454
|
+
case "ValidationException":
|
|
1455
|
+
case "com.amazonaws.efs#ValidationException":
|
|
1456
|
+
response = {
|
|
1457
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1458
|
+
name: errorCode,
|
|
1459
|
+
$metadata: deserializeMetadata(output),
|
|
1460
|
+
};
|
|
1461
|
+
break;
|
|
1462
|
+
default:
|
|
1463
|
+
const parsedBody = parsedOutput.body;
|
|
1464
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1465
|
+
response = {
|
|
1466
|
+
...parsedBody,
|
|
1467
|
+
name: `${errorCode}`,
|
|
1468
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1469
|
+
$fault: "client",
|
|
1470
|
+
$metadata: deserializeMetadata(output),
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
const message = response.message || response.Message || errorCode;
|
|
1474
|
+
response.message = message;
|
|
1475
|
+
delete response.Message;
|
|
1476
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1477
|
+
};
|
|
1253
1478
|
const deserializeAws_restJson1CreateTagsCommand = async (output, context) => {
|
|
1254
1479
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1255
1480
|
return deserializeAws_restJson1CreateTagsCommandError(output, context);
|
|
@@ -1458,6 +1683,14 @@ const deserializeAws_restJson1DeleteFileSystemPolicyCommandError = async (output
|
|
|
1458
1683
|
let errorCode = "UnknownError";
|
|
1459
1684
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
1685
|
switch (errorCode) {
|
|
1686
|
+
case "BadRequest":
|
|
1687
|
+
case "com.amazonaws.efs#BadRequest":
|
|
1688
|
+
response = {
|
|
1689
|
+
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1690
|
+
name: errorCode,
|
|
1691
|
+
$metadata: deserializeMetadata(output),
|
|
1692
|
+
};
|
|
1693
|
+
break;
|
|
1461
1694
|
case "FileSystemNotFound":
|
|
1462
1695
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1463
1696
|
response = {
|
|
@@ -1566,6 +1799,74 @@ const deserializeAws_restJson1DeleteMountTargetCommandError = async (output, con
|
|
|
1566
1799
|
delete response.Message;
|
|
1567
1800
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1568
1801
|
};
|
|
1802
|
+
const deserializeAws_restJson1DeleteReplicationConfigurationCommand = async (output, context) => {
|
|
1803
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1804
|
+
return deserializeAws_restJson1DeleteReplicationConfigurationCommandError(output, context);
|
|
1805
|
+
}
|
|
1806
|
+
const contents = {
|
|
1807
|
+
$metadata: deserializeMetadata(output),
|
|
1808
|
+
};
|
|
1809
|
+
await collectBody(output.body, context);
|
|
1810
|
+
return Promise.resolve(contents);
|
|
1811
|
+
};
|
|
1812
|
+
exports.deserializeAws_restJson1DeleteReplicationConfigurationCommand = deserializeAws_restJson1DeleteReplicationConfigurationCommand;
|
|
1813
|
+
const deserializeAws_restJson1DeleteReplicationConfigurationCommandError = async (output, context) => {
|
|
1814
|
+
const parsedOutput = {
|
|
1815
|
+
...output,
|
|
1816
|
+
body: await parseBody(output.body, context),
|
|
1817
|
+
};
|
|
1818
|
+
let response;
|
|
1819
|
+
let errorCode = "UnknownError";
|
|
1820
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
|
+
switch (errorCode) {
|
|
1822
|
+
case "BadRequest":
|
|
1823
|
+
case "com.amazonaws.efs#BadRequest":
|
|
1824
|
+
response = {
|
|
1825
|
+
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
1826
|
+
name: errorCode,
|
|
1827
|
+
$metadata: deserializeMetadata(output),
|
|
1828
|
+
};
|
|
1829
|
+
break;
|
|
1830
|
+
case "FileSystemNotFound":
|
|
1831
|
+
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1832
|
+
response = {
|
|
1833
|
+
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
1834
|
+
name: errorCode,
|
|
1835
|
+
$metadata: deserializeMetadata(output),
|
|
1836
|
+
};
|
|
1837
|
+
break;
|
|
1838
|
+
case "InternalServerError":
|
|
1839
|
+
case "com.amazonaws.efs#InternalServerError":
|
|
1840
|
+
response = {
|
|
1841
|
+
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
1842
|
+
name: errorCode,
|
|
1843
|
+
$metadata: deserializeMetadata(output),
|
|
1844
|
+
};
|
|
1845
|
+
break;
|
|
1846
|
+
case "ReplicationNotFound":
|
|
1847
|
+
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1848
|
+
response = {
|
|
1849
|
+
...(await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context)),
|
|
1850
|
+
name: errorCode,
|
|
1851
|
+
$metadata: deserializeMetadata(output),
|
|
1852
|
+
};
|
|
1853
|
+
break;
|
|
1854
|
+
default:
|
|
1855
|
+
const parsedBody = parsedOutput.body;
|
|
1856
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1857
|
+
response = {
|
|
1858
|
+
...parsedBody,
|
|
1859
|
+
name: `${errorCode}`,
|
|
1860
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1861
|
+
$fault: "client",
|
|
1862
|
+
$metadata: deserializeMetadata(output),
|
|
1863
|
+
};
|
|
1864
|
+
}
|
|
1865
|
+
const message = response.message || response.Message || errorCode;
|
|
1866
|
+
response.message = message;
|
|
1867
|
+
delete response.Message;
|
|
1868
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1869
|
+
};
|
|
1569
1870
|
const deserializeAws_restJson1DeleteTagsCommand = async (output, context) => {
|
|
1570
1871
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1571
1872
|
return deserializeAws_restJson1DeleteTagsCommandError(output, context);
|
|
@@ -1862,6 +2163,14 @@ const deserializeAws_restJson1DescribeFileSystemPolicyCommandError = async (outp
|
|
|
1862
2163
|
let errorCode = "UnknownError";
|
|
1863
2164
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
2165
|
switch (errorCode) {
|
|
2166
|
+
case "BadRequest":
|
|
2167
|
+
case "com.amazonaws.efs#BadRequest":
|
|
2168
|
+
response = {
|
|
2169
|
+
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2170
|
+
name: errorCode,
|
|
2171
|
+
$metadata: deserializeMetadata(output),
|
|
2172
|
+
};
|
|
2173
|
+
break;
|
|
1865
2174
|
case "FileSystemNotFound":
|
|
1866
2175
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1867
2176
|
response = {
|
|
@@ -2198,6 +2507,90 @@ const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = as
|
|
|
2198
2507
|
delete response.Message;
|
|
2199
2508
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2200
2509
|
};
|
|
2510
|
+
const deserializeAws_restJson1DescribeReplicationConfigurationsCommand = async (output, context) => {
|
|
2511
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2512
|
+
return deserializeAws_restJson1DescribeReplicationConfigurationsCommandError(output, context);
|
|
2513
|
+
}
|
|
2514
|
+
const contents = {
|
|
2515
|
+
$metadata: deserializeMetadata(output),
|
|
2516
|
+
NextToken: undefined,
|
|
2517
|
+
Replications: undefined,
|
|
2518
|
+
};
|
|
2519
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2520
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2521
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2522
|
+
}
|
|
2523
|
+
if (data.Replications !== undefined && data.Replications !== null) {
|
|
2524
|
+
contents.Replications = deserializeAws_restJson1ReplicationConfigurationDescriptions(data.Replications, context);
|
|
2525
|
+
}
|
|
2526
|
+
return Promise.resolve(contents);
|
|
2527
|
+
};
|
|
2528
|
+
exports.deserializeAws_restJson1DescribeReplicationConfigurationsCommand = deserializeAws_restJson1DescribeReplicationConfigurationsCommand;
|
|
2529
|
+
const deserializeAws_restJson1DescribeReplicationConfigurationsCommandError = async (output, context) => {
|
|
2530
|
+
const parsedOutput = {
|
|
2531
|
+
...output,
|
|
2532
|
+
body: await parseBody(output.body, context),
|
|
2533
|
+
};
|
|
2534
|
+
let response;
|
|
2535
|
+
let errorCode = "UnknownError";
|
|
2536
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2537
|
+
switch (errorCode) {
|
|
2538
|
+
case "BadRequest":
|
|
2539
|
+
case "com.amazonaws.efs#BadRequest":
|
|
2540
|
+
response = {
|
|
2541
|
+
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2542
|
+
name: errorCode,
|
|
2543
|
+
$metadata: deserializeMetadata(output),
|
|
2544
|
+
};
|
|
2545
|
+
break;
|
|
2546
|
+
case "FileSystemNotFound":
|
|
2547
|
+
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2548
|
+
response = {
|
|
2549
|
+
...(await deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)),
|
|
2550
|
+
name: errorCode,
|
|
2551
|
+
$metadata: deserializeMetadata(output),
|
|
2552
|
+
};
|
|
2553
|
+
break;
|
|
2554
|
+
case "InternalServerError":
|
|
2555
|
+
case "com.amazonaws.efs#InternalServerError":
|
|
2556
|
+
response = {
|
|
2557
|
+
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
2558
|
+
name: errorCode,
|
|
2559
|
+
$metadata: deserializeMetadata(output),
|
|
2560
|
+
};
|
|
2561
|
+
break;
|
|
2562
|
+
case "ReplicationNotFound":
|
|
2563
|
+
case "com.amazonaws.efs#ReplicationNotFound":
|
|
2564
|
+
response = {
|
|
2565
|
+
...(await deserializeAws_restJson1ReplicationNotFoundResponse(parsedOutput, context)),
|
|
2566
|
+
name: errorCode,
|
|
2567
|
+
$metadata: deserializeMetadata(output),
|
|
2568
|
+
};
|
|
2569
|
+
break;
|
|
2570
|
+
case "ValidationException":
|
|
2571
|
+
case "com.amazonaws.efs#ValidationException":
|
|
2572
|
+
response = {
|
|
2573
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2574
|
+
name: errorCode,
|
|
2575
|
+
$metadata: deserializeMetadata(output),
|
|
2576
|
+
};
|
|
2577
|
+
break;
|
|
2578
|
+
default:
|
|
2579
|
+
const parsedBody = parsedOutput.body;
|
|
2580
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2581
|
+
response = {
|
|
2582
|
+
...parsedBody,
|
|
2583
|
+
name: `${errorCode}`,
|
|
2584
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2585
|
+
$fault: "client",
|
|
2586
|
+
$metadata: deserializeMetadata(output),
|
|
2587
|
+
};
|
|
2588
|
+
}
|
|
2589
|
+
const message = response.message || response.Message || errorCode;
|
|
2590
|
+
response.message = message;
|
|
2591
|
+
delete response.Message;
|
|
2592
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2593
|
+
};
|
|
2201
2594
|
const deserializeAws_restJson1DescribeTagsCommand = async (output, context) => {
|
|
2202
2595
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2203
2596
|
return deserializeAws_restJson1DescribeTagsCommandError(output, context);
|
|
@@ -2594,6 +2987,14 @@ const deserializeAws_restJson1PutFileSystemPolicyCommandError = async (output, c
|
|
|
2594
2987
|
let errorCode = "UnknownError";
|
|
2595
2988
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
2989
|
switch (errorCode) {
|
|
2990
|
+
case "BadRequest":
|
|
2991
|
+
case "com.amazonaws.efs#BadRequest":
|
|
2992
|
+
response = {
|
|
2993
|
+
...(await deserializeAws_restJson1BadRequestResponse(parsedOutput, context)),
|
|
2994
|
+
name: errorCode,
|
|
2995
|
+
$metadata: deserializeMetadata(output),
|
|
2996
|
+
};
|
|
2997
|
+
break;
|
|
2597
2998
|
case "FileSystemNotFound":
|
|
2598
2999
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2599
3000
|
response = {
|
|
@@ -3375,6 +3776,23 @@ const deserializeAws_restJson1PolicyNotFoundResponse = async (parsedOutput, cont
|
|
|
3375
3776
|
}
|
|
3376
3777
|
return contents;
|
|
3377
3778
|
};
|
|
3779
|
+
const deserializeAws_restJson1ReplicationNotFoundResponse = async (parsedOutput, context) => {
|
|
3780
|
+
const contents = {
|
|
3781
|
+
name: "ReplicationNotFound",
|
|
3782
|
+
$fault: "client",
|
|
3783
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3784
|
+
ErrorCode: undefined,
|
|
3785
|
+
Message: undefined,
|
|
3786
|
+
};
|
|
3787
|
+
const data = parsedOutput.body;
|
|
3788
|
+
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
3789
|
+
contents.ErrorCode = smithy_client_1.expectString(data.ErrorCode);
|
|
3790
|
+
}
|
|
3791
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
3792
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3793
|
+
}
|
|
3794
|
+
return contents;
|
|
3795
|
+
};
|
|
3378
3796
|
const deserializeAws_restJson1SecurityGroupLimitExceededResponse = async (parsedOutput, context) => {
|
|
3379
3797
|
const contents = {
|
|
3380
3798
|
name: "SecurityGroupLimitExceeded",
|
|
@@ -3506,6 +3924,24 @@ const serializeAws_restJson1CreationInfo = (input, context) => {
|
|
|
3506
3924
|
...(input.Permissions !== undefined && input.Permissions !== null && { Permissions: input.Permissions }),
|
|
3507
3925
|
};
|
|
3508
3926
|
};
|
|
3927
|
+
const serializeAws_restJson1DestinationsToCreate = (input, context) => {
|
|
3928
|
+
return input
|
|
3929
|
+
.filter((e) => e != null)
|
|
3930
|
+
.map((entry) => {
|
|
3931
|
+
if (entry === null) {
|
|
3932
|
+
return null;
|
|
3933
|
+
}
|
|
3934
|
+
return serializeAws_restJson1DestinationToCreate(entry, context);
|
|
3935
|
+
});
|
|
3936
|
+
};
|
|
3937
|
+
const serializeAws_restJson1DestinationToCreate = (input, context) => {
|
|
3938
|
+
return {
|
|
3939
|
+
...(input.AvailabilityZoneName !== undefined &&
|
|
3940
|
+
input.AvailabilityZoneName !== null && { AvailabilityZoneName: input.AvailabilityZoneName }),
|
|
3941
|
+
...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
|
|
3942
|
+
...(input.Region !== undefined && input.Region !== null && { Region: input.Region }),
|
|
3943
|
+
};
|
|
3944
|
+
};
|
|
3509
3945
|
const serializeAws_restJson1LifecyclePolicies = (input, context) => {
|
|
3510
3946
|
return input
|
|
3511
3947
|
.filter((e) => e != null)
|
|
@@ -3631,6 +4067,26 @@ const deserializeAws_restJson1CreationInfo = (output, context) => {
|
|
|
3631
4067
|
Permissions: smithy_client_1.expectString(output.Permissions),
|
|
3632
4068
|
};
|
|
3633
4069
|
};
|
|
4070
|
+
const deserializeAws_restJson1Destination = (output, context) => {
|
|
4071
|
+
return {
|
|
4072
|
+
FileSystemId: smithy_client_1.expectString(output.FileSystemId),
|
|
4073
|
+
LastReplicatedTimestamp: output.LastReplicatedTimestamp !== undefined && output.LastReplicatedTimestamp !== null
|
|
4074
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastReplicatedTimestamp)))
|
|
4075
|
+
: undefined,
|
|
4076
|
+
Region: smithy_client_1.expectString(output.Region),
|
|
4077
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4078
|
+
};
|
|
4079
|
+
};
|
|
4080
|
+
const deserializeAws_restJson1Destinations = (output, context) => {
|
|
4081
|
+
return (output || [])
|
|
4082
|
+
.filter((e) => e != null)
|
|
4083
|
+
.map((entry) => {
|
|
4084
|
+
if (entry === null) {
|
|
4085
|
+
return null;
|
|
4086
|
+
}
|
|
4087
|
+
return deserializeAws_restJson1Destination(entry, context);
|
|
4088
|
+
});
|
|
4089
|
+
};
|
|
3634
4090
|
const deserializeAws_restJson1FileSystemDescription = (output, context) => {
|
|
3635
4091
|
return {
|
|
3636
4092
|
AvailabilityZoneId: smithy_client_1.expectString(output.AvailabilityZoneId),
|
|
@@ -3727,6 +4183,30 @@ const deserializeAws_restJson1PosixUser = (output, context) => {
|
|
|
3727
4183
|
Uid: smithy_client_1.expectLong(output.Uid),
|
|
3728
4184
|
};
|
|
3729
4185
|
};
|
|
4186
|
+
const deserializeAws_restJson1ReplicationConfigurationDescription = (output, context) => {
|
|
4187
|
+
return {
|
|
4188
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4189
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
4190
|
+
: undefined,
|
|
4191
|
+
Destinations: output.Destinations !== undefined && output.Destinations !== null
|
|
4192
|
+
? deserializeAws_restJson1Destinations(output.Destinations, context)
|
|
4193
|
+
: undefined,
|
|
4194
|
+
OriginalSourceFileSystemArn: smithy_client_1.expectString(output.OriginalSourceFileSystemArn),
|
|
4195
|
+
SourceFileSystemArn: smithy_client_1.expectString(output.SourceFileSystemArn),
|
|
4196
|
+
SourceFileSystemId: smithy_client_1.expectString(output.SourceFileSystemId),
|
|
4197
|
+
SourceFileSystemRegion: smithy_client_1.expectString(output.SourceFileSystemRegion),
|
|
4198
|
+
};
|
|
4199
|
+
};
|
|
4200
|
+
const deserializeAws_restJson1ReplicationConfigurationDescriptions = (output, context) => {
|
|
4201
|
+
return (output || [])
|
|
4202
|
+
.filter((e) => e != null)
|
|
4203
|
+
.map((entry) => {
|
|
4204
|
+
if (entry === null) {
|
|
4205
|
+
return null;
|
|
4206
|
+
}
|
|
4207
|
+
return deserializeAws_restJson1ReplicationConfigurationDescription(entry, context);
|
|
4208
|
+
});
|
|
4209
|
+
};
|
|
3730
4210
|
const deserializeAws_restJson1ResourceIdPreference = (output, context) => {
|
|
3731
4211
|
return {
|
|
3732
4212
|
ResourceIdType: smithy_client_1.expectString(output.ResourceIdType),
|
package/dist-es/EFS.js
CHANGED
|
@@ -2,11 +2,13 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { CreateAccessPointCommand, } from "./commands/CreateAccessPointCommand";
|
|
3
3
|
import { CreateFileSystemCommand, } from "./commands/CreateFileSystemCommand";
|
|
4
4
|
import { CreateMountTargetCommand, } from "./commands/CreateMountTargetCommand";
|
|
5
|
+
import { CreateReplicationConfigurationCommand, } from "./commands/CreateReplicationConfigurationCommand";
|
|
5
6
|
import { CreateTagsCommand } from "./commands/CreateTagsCommand";
|
|
6
7
|
import { DeleteAccessPointCommand, } from "./commands/DeleteAccessPointCommand";
|
|
7
8
|
import { DeleteFileSystemCommand, } from "./commands/DeleteFileSystemCommand";
|
|
8
9
|
import { DeleteFileSystemPolicyCommand, } from "./commands/DeleteFileSystemPolicyCommand";
|
|
9
10
|
import { DeleteMountTargetCommand, } from "./commands/DeleteMountTargetCommand";
|
|
11
|
+
import { DeleteReplicationConfigurationCommand, } from "./commands/DeleteReplicationConfigurationCommand";
|
|
10
12
|
import { DeleteTagsCommand } from "./commands/DeleteTagsCommand";
|
|
11
13
|
import { DescribeAccessPointsCommand, } from "./commands/DescribeAccessPointsCommand";
|
|
12
14
|
import { DescribeAccountPreferencesCommand, } from "./commands/DescribeAccountPreferencesCommand";
|
|
@@ -16,6 +18,7 @@ import { DescribeFileSystemsCommand, } from "./commands/DescribeFileSystemsComma
|
|
|
16
18
|
import { DescribeLifecycleConfigurationCommand, } from "./commands/DescribeLifecycleConfigurationCommand";
|
|
17
19
|
import { DescribeMountTargetsCommand, } from "./commands/DescribeMountTargetsCommand";
|
|
18
20
|
import { DescribeMountTargetSecurityGroupsCommand, } from "./commands/DescribeMountTargetSecurityGroupsCommand";
|
|
21
|
+
import { DescribeReplicationConfigurationsCommand, } from "./commands/DescribeReplicationConfigurationsCommand";
|
|
19
22
|
import { DescribeTagsCommand, } from "./commands/DescribeTagsCommand";
|
|
20
23
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
21
24
|
import { ModifyMountTargetSecurityGroupsCommand, } from "./commands/ModifyMountTargetSecurityGroupsCommand";
|
|
@@ -74,6 +77,20 @@ var EFS = (function (_super) {
|
|
|
74
77
|
return this.send(command, optionsOrCb);
|
|
75
78
|
}
|
|
76
79
|
};
|
|
80
|
+
EFS.prototype.createReplicationConfiguration = function (args, optionsOrCb, cb) {
|
|
81
|
+
var command = new CreateReplicationConfigurationCommand(args);
|
|
82
|
+
if (typeof optionsOrCb === "function") {
|
|
83
|
+
this.send(command, optionsOrCb);
|
|
84
|
+
}
|
|
85
|
+
else if (typeof cb === "function") {
|
|
86
|
+
if (typeof optionsOrCb !== "object")
|
|
87
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
88
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return this.send(command, optionsOrCb);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
77
94
|
EFS.prototype.createTags = function (args, optionsOrCb, cb) {
|
|
78
95
|
var command = new CreateTagsCommand(args);
|
|
79
96
|
if (typeof optionsOrCb === "function") {
|
|
@@ -144,6 +161,20 @@ var EFS = (function (_super) {
|
|
|
144
161
|
return this.send(command, optionsOrCb);
|
|
145
162
|
}
|
|
146
163
|
};
|
|
164
|
+
EFS.prototype.deleteReplicationConfiguration = function (args, optionsOrCb, cb) {
|
|
165
|
+
var command = new DeleteReplicationConfigurationCommand(args);
|
|
166
|
+
if (typeof optionsOrCb === "function") {
|
|
167
|
+
this.send(command, optionsOrCb);
|
|
168
|
+
}
|
|
169
|
+
else if (typeof cb === "function") {
|
|
170
|
+
if (typeof optionsOrCb !== "object")
|
|
171
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
172
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return this.send(command, optionsOrCb);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
147
178
|
EFS.prototype.deleteTags = function (args, optionsOrCb, cb) {
|
|
148
179
|
var command = new DeleteTagsCommand(args);
|
|
149
180
|
if (typeof optionsOrCb === "function") {
|
|
@@ -270,6 +301,20 @@ var EFS = (function (_super) {
|
|
|
270
301
|
return this.send(command, optionsOrCb);
|
|
271
302
|
}
|
|
272
303
|
};
|
|
304
|
+
EFS.prototype.describeReplicationConfigurations = function (args, optionsOrCb, cb) {
|
|
305
|
+
var command = new DescribeReplicationConfigurationsCommand(args);
|
|
306
|
+
if (typeof optionsOrCb === "function") {
|
|
307
|
+
this.send(command, optionsOrCb);
|
|
308
|
+
}
|
|
309
|
+
else if (typeof cb === "function") {
|
|
310
|
+
if (typeof optionsOrCb !== "object")
|
|
311
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
312
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
return this.send(command, optionsOrCb);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
273
318
|
EFS.prototype.describeTags = function (args, optionsOrCb, cb) {
|
|
274
319
|
var command = new DescribeTagsCommand(args);
|
|
275
320
|
if (typeof optionsOrCb === "function") {
|