@aws-sdk/client-memorydb 3.236.0 → 3.239.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/dist-cjs/MemoryDB.js +45 -0
- package/dist-cjs/commands/DescribeReservedNodesCommand.js +46 -0
- package/dist-cjs/commands/DescribeReservedNodesOfferingsCommand.js +46 -0
- package/dist-cjs/commands/PurchaseReservedNodesOfferingCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +92 -4
- package/dist-cjs/pagination/DescribeACLsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeClustersPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeEngineVersionsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeEventsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeParameterGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeParametersPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeReservedNodesOfferingsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeReservedNodesPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeServiceUpdatesPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeSubnetGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeUsersPaginator.js +36 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/index.js +16 -0
- package/dist-cjs/protocols/Aws_json1_1.js +342 -2
- package/dist-es/MemoryDB.js +45 -0
- package/dist-es/commands/DescribeReservedNodesCommand.js +42 -0
- package/dist-es/commands/DescribeReservedNodesOfferingsCommand.js +42 -0
- package/dist-es/commands/PurchaseReservedNodesOfferingCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +75 -0
- package/dist-es/pagination/DescribeACLsPaginator.js +32 -0
- package/dist-es/pagination/DescribeClustersPaginator.js +32 -0
- package/dist-es/pagination/DescribeEngineVersionsPaginator.js +32 -0
- package/dist-es/pagination/DescribeEventsPaginator.js +32 -0
- package/dist-es/pagination/DescribeParameterGroupsPaginator.js +32 -0
- package/dist-es/pagination/DescribeParametersPaginator.js +32 -0
- package/dist-es/pagination/DescribeReservedNodesOfferingsPaginator.js +32 -0
- package/dist-es/pagination/DescribeReservedNodesPaginator.js +32 -0
- package/dist-es/pagination/DescribeServiceUpdatesPaginator.js +32 -0
- package/dist-es/pagination/DescribeSnapshotsPaginator.js +32 -0
- package/dist-es/pagination/DescribeSubnetGroupsPaginator.js +32 -0
- package/dist-es/pagination/DescribeUsersPaginator.js +32 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/index.js +13 -0
- package/dist-es/protocols/Aws_json1_1.js +335 -1
- package/dist-types/MemoryDB.d.ts +21 -1
- package/dist-types/MemoryDBClient.d.ts +5 -2
- package/dist-types/commands/DescribeReservedNodesCommand.d.ts +37 -0
- package/dist-types/commands/DescribeReservedNodesOfferingsCommand.d.ts +37 -0
- package/dist-types/commands/PurchaseReservedNodesOfferingCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +0 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +275 -2
- package/dist-types/pagination/DescribeACLsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeClustersPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeEngineVersionsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeEventsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeParameterGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeParametersPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeReservedNodesOfferingsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeReservedNodesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeServiceUpdatesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeSubnetGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeUsersPaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/index.d.ts +13 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/MemoryDB.d.ts +51 -0
- package/dist-types/ts3.4/MemoryDBClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DescribeReservedNodesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeReservedNodesOfferingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PurchaseReservedNodesOfferingCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +115 -0
- package/dist-types/ts3.4/pagination/DescribeACLsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeEngineVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeParameterGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeParametersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeReservedNodesOfferingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeReservedNodesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeServiceUpdatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSubnetGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/index.d.ts +13 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateUserCommand = exports.deserializeAws_json1_1UpdateSubnetGroupCommand = exports.deserializeAws_json1_1UpdateParameterGroupCommand = exports.deserializeAws_json1_1UpdateClusterCommand = exports.deserializeAws_json1_1UpdateACLCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1ResetParameterGroupCommand = exports.deserializeAws_json1_1ListTagsCommand = exports.deserializeAws_json1_1ListAllowedNodeTypeUpdatesCommand = exports.deserializeAws_json1_1FailoverShardCommand = exports.deserializeAws_json1_1DescribeUsersCommand = exports.deserializeAws_json1_1DescribeSubnetGroupsCommand = exports.deserializeAws_json1_1DescribeSnapshotsCommand = exports.deserializeAws_json1_1DescribeServiceUpdatesCommand = exports.deserializeAws_json1_1DescribeParametersCommand = exports.deserializeAws_json1_1DescribeParameterGroupsCommand = exports.deserializeAws_json1_1DescribeEventsCommand = exports.deserializeAws_json1_1DescribeEngineVersionsCommand = exports.deserializeAws_json1_1DescribeClustersCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1DeleteSnapshotCommand = exports.deserializeAws_json1_1DeleteParameterGroupCommand = exports.deserializeAws_json1_1DeleteClusterCommand = exports.deserializeAws_json1_1DeleteACLCommand = exports.deserializeAws_json1_1CreateUserCommand = exports.deserializeAws_json1_1CreateSubnetGroupCommand = exports.deserializeAws_json1_1CreateSnapshotCommand = exports.deserializeAws_json1_1CreateParameterGroupCommand = exports.deserializeAws_json1_1CreateClusterCommand = exports.deserializeAws_json1_1CreateACLCommand = exports.deserializeAws_json1_1CopySnapshotCommand = exports.deserializeAws_json1_1BatchUpdateClusterCommand = exports.serializeAws_json1_1UpdateUserCommand = exports.serializeAws_json1_1UpdateSubnetGroupCommand = exports.serializeAws_json1_1UpdateParameterGroupCommand = exports.serializeAws_json1_1UpdateClusterCommand = exports.serializeAws_json1_1UpdateACLCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1ResetParameterGroupCommand = exports.serializeAws_json1_1PurchaseReservedNodesOfferingCommand = exports.serializeAws_json1_1ListTagsCommand = exports.serializeAws_json1_1ListAllowedNodeTypeUpdatesCommand = exports.serializeAws_json1_1FailoverShardCommand = exports.serializeAws_json1_1DescribeUsersCommand = exports.serializeAws_json1_1DescribeSubnetGroupsCommand = exports.serializeAws_json1_1DescribeSnapshotsCommand = exports.serializeAws_json1_1DescribeServiceUpdatesCommand = exports.serializeAws_json1_1DescribeReservedNodesOfferingsCommand = exports.serializeAws_json1_1DescribeReservedNodesCommand = exports.serializeAws_json1_1DescribeParametersCommand = exports.serializeAws_json1_1DescribeParameterGroupsCommand = exports.serializeAws_json1_1DescribeEventsCommand = exports.serializeAws_json1_1DescribeEngineVersionsCommand = exports.serializeAws_json1_1DescribeClustersCommand = exports.serializeAws_json1_1DescribeACLsCommand = exports.serializeAws_json1_1DeleteUserCommand = exports.serializeAws_json1_1DeleteSubnetGroupCommand = exports.serializeAws_json1_1DeleteSnapshotCommand = exports.serializeAws_json1_1DeleteParameterGroupCommand = exports.serializeAws_json1_1DeleteClusterCommand = exports.serializeAws_json1_1DeleteACLCommand = exports.serializeAws_json1_1CreateUserCommand = exports.serializeAws_json1_1CreateSubnetGroupCommand = exports.serializeAws_json1_1CreateSnapshotCommand = exports.serializeAws_json1_1CreateParameterGroupCommand = exports.serializeAws_json1_1CreateClusterCommand = exports.serializeAws_json1_1CreateACLCommand = exports.serializeAws_json1_1CopySnapshotCommand = exports.serializeAws_json1_1BatchUpdateClusterCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateUserCommand = exports.deserializeAws_json1_1UpdateSubnetGroupCommand = exports.deserializeAws_json1_1UpdateParameterGroupCommand = exports.deserializeAws_json1_1UpdateClusterCommand = exports.deserializeAws_json1_1UpdateACLCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1ResetParameterGroupCommand = exports.deserializeAws_json1_1PurchaseReservedNodesOfferingCommand = exports.deserializeAws_json1_1ListTagsCommand = exports.deserializeAws_json1_1ListAllowedNodeTypeUpdatesCommand = exports.deserializeAws_json1_1FailoverShardCommand = exports.deserializeAws_json1_1DescribeUsersCommand = exports.deserializeAws_json1_1DescribeSubnetGroupsCommand = exports.deserializeAws_json1_1DescribeSnapshotsCommand = exports.deserializeAws_json1_1DescribeServiceUpdatesCommand = exports.deserializeAws_json1_1DescribeReservedNodesOfferingsCommand = exports.deserializeAws_json1_1DescribeReservedNodesCommand = exports.deserializeAws_json1_1DescribeParametersCommand = exports.deserializeAws_json1_1DescribeParameterGroupsCommand = exports.deserializeAws_json1_1DescribeEventsCommand = exports.deserializeAws_json1_1DescribeEngineVersionsCommand = exports.deserializeAws_json1_1DescribeClustersCommand = exports.deserializeAws_json1_1DescribeACLsCommand = exports.deserializeAws_json1_1DeleteUserCommand = exports.deserializeAws_json1_1DeleteSubnetGroupCommand = 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 MemoryDBServiceException_1 = require("../models/MemoryDBServiceException");
|
|
@@ -206,6 +206,26 @@ const serializeAws_json1_1DescribeParametersCommand = async (input, context) =>
|
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
208
|
exports.serializeAws_json1_1DescribeParametersCommand = serializeAws_json1_1DescribeParametersCommand;
|
|
209
|
+
const serializeAws_json1_1DescribeReservedNodesCommand = async (input, context) => {
|
|
210
|
+
const headers = {
|
|
211
|
+
"content-type": "application/x-amz-json-1.1",
|
|
212
|
+
"x-amz-target": "AmazonMemoryDB.DescribeReservedNodes",
|
|
213
|
+
};
|
|
214
|
+
let body;
|
|
215
|
+
body = JSON.stringify(serializeAws_json1_1DescribeReservedNodesRequest(input, context));
|
|
216
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
+
};
|
|
218
|
+
exports.serializeAws_json1_1DescribeReservedNodesCommand = serializeAws_json1_1DescribeReservedNodesCommand;
|
|
219
|
+
const serializeAws_json1_1DescribeReservedNodesOfferingsCommand = async (input, context) => {
|
|
220
|
+
const headers = {
|
|
221
|
+
"content-type": "application/x-amz-json-1.1",
|
|
222
|
+
"x-amz-target": "AmazonMemoryDB.DescribeReservedNodesOfferings",
|
|
223
|
+
};
|
|
224
|
+
let body;
|
|
225
|
+
body = JSON.stringify(serializeAws_json1_1DescribeReservedNodesOfferingsRequest(input, context));
|
|
226
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
+
};
|
|
228
|
+
exports.serializeAws_json1_1DescribeReservedNodesOfferingsCommand = serializeAws_json1_1DescribeReservedNodesOfferingsCommand;
|
|
209
229
|
const serializeAws_json1_1DescribeServiceUpdatesCommand = async (input, context) => {
|
|
210
230
|
const headers = {
|
|
211
231
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -276,6 +296,16 @@ const serializeAws_json1_1ListTagsCommand = async (input, context) => {
|
|
|
276
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
297
|
};
|
|
278
298
|
exports.serializeAws_json1_1ListTagsCommand = serializeAws_json1_1ListTagsCommand;
|
|
299
|
+
const serializeAws_json1_1PurchaseReservedNodesOfferingCommand = async (input, context) => {
|
|
300
|
+
const headers = {
|
|
301
|
+
"content-type": "application/x-amz-json-1.1",
|
|
302
|
+
"x-amz-target": "AmazonMemoryDB.PurchaseReservedNodesOffering",
|
|
303
|
+
};
|
|
304
|
+
let body;
|
|
305
|
+
body = JSON.stringify(serializeAws_json1_1PurchaseReservedNodesOfferingRequest(input, context));
|
|
306
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
|
+
};
|
|
308
|
+
exports.serializeAws_json1_1PurchaseReservedNodesOfferingCommand = serializeAws_json1_1PurchaseReservedNodesOfferingCommand;
|
|
279
309
|
const serializeAws_json1_1ResetParameterGroupCommand = async (input, context) => {
|
|
280
310
|
const headers = {
|
|
281
311
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1294,6 +1324,92 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
|
|
|
1294
1324
|
});
|
|
1295
1325
|
}
|
|
1296
1326
|
};
|
|
1327
|
+
const deserializeAws_json1_1DescribeReservedNodesCommand = async (output, context) => {
|
|
1328
|
+
if (output.statusCode >= 300) {
|
|
1329
|
+
return deserializeAws_json1_1DescribeReservedNodesCommandError(output, context);
|
|
1330
|
+
}
|
|
1331
|
+
const data = await parseBody(output.body, context);
|
|
1332
|
+
let contents = {};
|
|
1333
|
+
contents = deserializeAws_json1_1DescribeReservedNodesResponse(data, context);
|
|
1334
|
+
const response = {
|
|
1335
|
+
$metadata: deserializeMetadata(output),
|
|
1336
|
+
...contents,
|
|
1337
|
+
};
|
|
1338
|
+
return Promise.resolve(response);
|
|
1339
|
+
};
|
|
1340
|
+
exports.deserializeAws_json1_1DescribeReservedNodesCommand = deserializeAws_json1_1DescribeReservedNodesCommand;
|
|
1341
|
+
const deserializeAws_json1_1DescribeReservedNodesCommandError = async (output, context) => {
|
|
1342
|
+
const parsedOutput = {
|
|
1343
|
+
...output,
|
|
1344
|
+
body: await parseErrorBody(output.body, context),
|
|
1345
|
+
};
|
|
1346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
+
switch (errorCode) {
|
|
1348
|
+
case "InvalidParameterCombinationException":
|
|
1349
|
+
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1350
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
1351
|
+
case "InvalidParameterValueException":
|
|
1352
|
+
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1353
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1354
|
+
case "ReservedNodeNotFoundFault":
|
|
1355
|
+
case "com.amazonaws.memorydb#ReservedNodeNotFoundFault":
|
|
1356
|
+
throw await deserializeAws_json1_1ReservedNodeNotFoundFaultResponse(parsedOutput, context);
|
|
1357
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
1358
|
+
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1359
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1360
|
+
default:
|
|
1361
|
+
const parsedBody = parsedOutput.body;
|
|
1362
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1363
|
+
output,
|
|
1364
|
+
parsedBody,
|
|
1365
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1366
|
+
errorCode,
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
const deserializeAws_json1_1DescribeReservedNodesOfferingsCommand = async (output, context) => {
|
|
1371
|
+
if (output.statusCode >= 300) {
|
|
1372
|
+
return deserializeAws_json1_1DescribeReservedNodesOfferingsCommandError(output, context);
|
|
1373
|
+
}
|
|
1374
|
+
const data = await parseBody(output.body, context);
|
|
1375
|
+
let contents = {};
|
|
1376
|
+
contents = deserializeAws_json1_1DescribeReservedNodesOfferingsResponse(data, context);
|
|
1377
|
+
const response = {
|
|
1378
|
+
$metadata: deserializeMetadata(output),
|
|
1379
|
+
...contents,
|
|
1380
|
+
};
|
|
1381
|
+
return Promise.resolve(response);
|
|
1382
|
+
};
|
|
1383
|
+
exports.deserializeAws_json1_1DescribeReservedNodesOfferingsCommand = deserializeAws_json1_1DescribeReservedNodesOfferingsCommand;
|
|
1384
|
+
const deserializeAws_json1_1DescribeReservedNodesOfferingsCommandError = async (output, context) => {
|
|
1385
|
+
const parsedOutput = {
|
|
1386
|
+
...output,
|
|
1387
|
+
body: await parseErrorBody(output.body, context),
|
|
1388
|
+
};
|
|
1389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1390
|
+
switch (errorCode) {
|
|
1391
|
+
case "InvalidParameterCombinationException":
|
|
1392
|
+
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1393
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
1394
|
+
case "InvalidParameterValueException":
|
|
1395
|
+
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1396
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1397
|
+
case "ReservedNodesOfferingNotFoundFault":
|
|
1398
|
+
case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
|
|
1399
|
+
throw await deserializeAws_json1_1ReservedNodesOfferingNotFoundFaultResponse(parsedOutput, context);
|
|
1400
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
1401
|
+
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1402
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1403
|
+
default:
|
|
1404
|
+
const parsedBody = parsedOutput.body;
|
|
1405
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1406
|
+
output,
|
|
1407
|
+
parsedBody,
|
|
1408
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1409
|
+
errorCode,
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
};
|
|
1297
1413
|
const deserializeAws_json1_1DescribeServiceUpdatesCommand = async (output, context) => {
|
|
1298
1414
|
if (output.statusCode >= 300) {
|
|
1299
1415
|
return deserializeAws_json1_1DescribeServiceUpdatesCommandError(output, context);
|
|
@@ -1604,6 +1720,58 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1604
1720
|
});
|
|
1605
1721
|
}
|
|
1606
1722
|
};
|
|
1723
|
+
const deserializeAws_json1_1PurchaseReservedNodesOfferingCommand = async (output, context) => {
|
|
1724
|
+
if (output.statusCode >= 300) {
|
|
1725
|
+
return deserializeAws_json1_1PurchaseReservedNodesOfferingCommandError(output, context);
|
|
1726
|
+
}
|
|
1727
|
+
const data = await parseBody(output.body, context);
|
|
1728
|
+
let contents = {};
|
|
1729
|
+
contents = deserializeAws_json1_1PurchaseReservedNodesOfferingResponse(data, context);
|
|
1730
|
+
const response = {
|
|
1731
|
+
$metadata: deserializeMetadata(output),
|
|
1732
|
+
...contents,
|
|
1733
|
+
};
|
|
1734
|
+
return Promise.resolve(response);
|
|
1735
|
+
};
|
|
1736
|
+
exports.deserializeAws_json1_1PurchaseReservedNodesOfferingCommand = deserializeAws_json1_1PurchaseReservedNodesOfferingCommand;
|
|
1737
|
+
const deserializeAws_json1_1PurchaseReservedNodesOfferingCommandError = async (output, context) => {
|
|
1738
|
+
const parsedOutput = {
|
|
1739
|
+
...output,
|
|
1740
|
+
body: await parseErrorBody(output.body, context),
|
|
1741
|
+
};
|
|
1742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
|
+
switch (errorCode) {
|
|
1744
|
+
case "InvalidParameterCombinationException":
|
|
1745
|
+
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1746
|
+
throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
|
|
1747
|
+
case "InvalidParameterValueException":
|
|
1748
|
+
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1749
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1750
|
+
case "ReservedNodeAlreadyExistsFault":
|
|
1751
|
+
case "com.amazonaws.memorydb#ReservedNodeAlreadyExistsFault":
|
|
1752
|
+
throw await deserializeAws_json1_1ReservedNodeAlreadyExistsFaultResponse(parsedOutput, context);
|
|
1753
|
+
case "ReservedNodeQuotaExceededFault":
|
|
1754
|
+
case "com.amazonaws.memorydb#ReservedNodeQuotaExceededFault":
|
|
1755
|
+
throw await deserializeAws_json1_1ReservedNodeQuotaExceededFaultResponse(parsedOutput, context);
|
|
1756
|
+
case "ReservedNodesOfferingNotFoundFault":
|
|
1757
|
+
case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
|
|
1758
|
+
throw await deserializeAws_json1_1ReservedNodesOfferingNotFoundFaultResponse(parsedOutput, context);
|
|
1759
|
+
case "ServiceLinkedRoleNotFoundFault":
|
|
1760
|
+
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1761
|
+
throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
|
|
1762
|
+
case "TagQuotaPerResourceExceeded":
|
|
1763
|
+
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
1764
|
+
throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
|
|
1765
|
+
default:
|
|
1766
|
+
const parsedBody = parsedOutput.body;
|
|
1767
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1768
|
+
output,
|
|
1769
|
+
parsedBody,
|
|
1770
|
+
exceptionCtor: MemoryDBServiceException_1.MemoryDBServiceException,
|
|
1771
|
+
errorCode,
|
|
1772
|
+
});
|
|
1773
|
+
}
|
|
1774
|
+
};
|
|
1607
1775
|
const deserializeAws_json1_1ResetParameterGroupCommand = async (output, context) => {
|
|
1608
1776
|
if (output.statusCode >= 300) {
|
|
1609
1777
|
return deserializeAws_json1_1ResetParameterGroupCommandError(output, context);
|
|
@@ -2302,6 +2470,42 @@ const deserializeAws_json1_1ParameterGroupQuotaExceededFaultResponse = async (pa
|
|
|
2302
2470
|
});
|
|
2303
2471
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2304
2472
|
};
|
|
2473
|
+
const deserializeAws_json1_1ReservedNodeAlreadyExistsFaultResponse = async (parsedOutput, context) => {
|
|
2474
|
+
const body = parsedOutput.body;
|
|
2475
|
+
const deserialized = deserializeAws_json1_1ReservedNodeAlreadyExistsFault(body, context);
|
|
2476
|
+
const exception = new models_0_1.ReservedNodeAlreadyExistsFault({
|
|
2477
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2478
|
+
...deserialized,
|
|
2479
|
+
});
|
|
2480
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2481
|
+
};
|
|
2482
|
+
const deserializeAws_json1_1ReservedNodeNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
2483
|
+
const body = parsedOutput.body;
|
|
2484
|
+
const deserialized = deserializeAws_json1_1ReservedNodeNotFoundFault(body, context);
|
|
2485
|
+
const exception = new models_0_1.ReservedNodeNotFoundFault({
|
|
2486
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2487
|
+
...deserialized,
|
|
2488
|
+
});
|
|
2489
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2490
|
+
};
|
|
2491
|
+
const deserializeAws_json1_1ReservedNodeQuotaExceededFaultResponse = async (parsedOutput, context) => {
|
|
2492
|
+
const body = parsedOutput.body;
|
|
2493
|
+
const deserialized = deserializeAws_json1_1ReservedNodeQuotaExceededFault(body, context);
|
|
2494
|
+
const exception = new models_0_1.ReservedNodeQuotaExceededFault({
|
|
2495
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2496
|
+
...deserialized,
|
|
2497
|
+
});
|
|
2498
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2499
|
+
};
|
|
2500
|
+
const deserializeAws_json1_1ReservedNodesOfferingNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
2501
|
+
const body = parsedOutput.body;
|
|
2502
|
+
const deserialized = deserializeAws_json1_1ReservedNodesOfferingNotFoundFault(body, context);
|
|
2503
|
+
const exception = new models_0_1.ReservedNodesOfferingNotFoundFault({
|
|
2504
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2505
|
+
...deserialized,
|
|
2506
|
+
});
|
|
2507
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2508
|
+
};
|
|
2305
2509
|
const deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse = async (parsedOutput, context) => {
|
|
2306
2510
|
const body = parsedOutput.body;
|
|
2307
2511
|
const deserialized = deserializeAws_json1_1ServiceLinkedRoleNotFoundFault(body, context);
|
|
@@ -2665,6 +2869,27 @@ const serializeAws_json1_1DescribeParametersRequest = (input, context) => {
|
|
|
2665
2869
|
...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
|
|
2666
2870
|
};
|
|
2667
2871
|
};
|
|
2872
|
+
const serializeAws_json1_1DescribeReservedNodesOfferingsRequest = (input, context) => {
|
|
2873
|
+
return {
|
|
2874
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
2875
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2876
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2877
|
+
...(input.NodeType != null && { NodeType: input.NodeType }),
|
|
2878
|
+
...(input.OfferingType != null && { OfferingType: input.OfferingType }),
|
|
2879
|
+
...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
|
|
2880
|
+
};
|
|
2881
|
+
};
|
|
2882
|
+
const serializeAws_json1_1DescribeReservedNodesRequest = (input, context) => {
|
|
2883
|
+
return {
|
|
2884
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
2885
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2886
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2887
|
+
...(input.NodeType != null && { NodeType: input.NodeType }),
|
|
2888
|
+
...(input.OfferingType != null && { OfferingType: input.OfferingType }),
|
|
2889
|
+
...(input.ReservationId != null && { ReservationId: input.ReservationId }),
|
|
2890
|
+
...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
|
|
2891
|
+
};
|
|
2892
|
+
};
|
|
2668
2893
|
const serializeAws_json1_1DescribeServiceUpdatesRequest = (input, context) => {
|
|
2669
2894
|
return {
|
|
2670
2895
|
...(input.ClusterNames != null && {
|
|
@@ -2771,6 +2996,14 @@ const serializeAws_json1_1PasswordListInput = (input, context) => {
|
|
|
2771
2996
|
return entry;
|
|
2772
2997
|
});
|
|
2773
2998
|
};
|
|
2999
|
+
const serializeAws_json1_1PurchaseReservedNodesOfferingRequest = (input, context) => {
|
|
3000
|
+
return {
|
|
3001
|
+
...(input.NodeCount != null && { NodeCount: input.NodeCount }),
|
|
3002
|
+
...(input.ReservationId != null && { ReservationId: input.ReservationId }),
|
|
3003
|
+
...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
|
|
3004
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3005
|
+
};
|
|
3006
|
+
};
|
|
2774
3007
|
const serializeAws_json1_1ReplicaConfigurationRequest = (input, context) => {
|
|
2775
3008
|
return {
|
|
2776
3009
|
...(input.ReplicaCount != null && { ReplicaCount: input.ReplicaCount }),
|
|
@@ -3211,6 +3444,20 @@ const deserializeAws_json1_1DescribeParametersResponse = (output, context) => {
|
|
|
3211
3444
|
Parameters: output.Parameters != null ? deserializeAws_json1_1ParametersList(output.Parameters, context) : undefined,
|
|
3212
3445
|
};
|
|
3213
3446
|
};
|
|
3447
|
+
const deserializeAws_json1_1DescribeReservedNodesOfferingsResponse = (output, context) => {
|
|
3448
|
+
return {
|
|
3449
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3450
|
+
ReservedNodesOfferings: output.ReservedNodesOfferings != null
|
|
3451
|
+
? deserializeAws_json1_1ReservedNodesOfferingList(output.ReservedNodesOfferings, context)
|
|
3452
|
+
: undefined,
|
|
3453
|
+
};
|
|
3454
|
+
};
|
|
3455
|
+
const deserializeAws_json1_1DescribeReservedNodesResponse = (output, context) => {
|
|
3456
|
+
return {
|
|
3457
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3458
|
+
ReservedNodes: output.ReservedNodes != null ? deserializeAws_json1_1ReservedNodeList(output.ReservedNodes, context) : undefined,
|
|
3459
|
+
};
|
|
3460
|
+
};
|
|
3214
3461
|
const deserializeAws_json1_1DescribeServiceUpdatesResponse = (output, context) => {
|
|
3215
3462
|
return {
|
|
3216
3463
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3493,6 +3740,99 @@ const deserializeAws_json1_1PendingModifiedServiceUpdateList = (output, context)
|
|
|
3493
3740
|
});
|
|
3494
3741
|
return retVal;
|
|
3495
3742
|
};
|
|
3743
|
+
const deserializeAws_json1_1PurchaseReservedNodesOfferingResponse = (output, context) => {
|
|
3744
|
+
return {
|
|
3745
|
+
ReservedNode: output.ReservedNode != null ? deserializeAws_json1_1ReservedNode(output.ReservedNode, context) : undefined,
|
|
3746
|
+
};
|
|
3747
|
+
};
|
|
3748
|
+
const deserializeAws_json1_1RecurringCharge = (output, context) => {
|
|
3749
|
+
return {
|
|
3750
|
+
RecurringChargeAmount: (0, smithy_client_1.limitedParseDouble)(output.RecurringChargeAmount),
|
|
3751
|
+
RecurringChargeFrequency: (0, smithy_client_1.expectString)(output.RecurringChargeFrequency),
|
|
3752
|
+
};
|
|
3753
|
+
};
|
|
3754
|
+
const deserializeAws_json1_1RecurringChargeList = (output, context) => {
|
|
3755
|
+
const retVal = (output || [])
|
|
3756
|
+
.filter((e) => e != null)
|
|
3757
|
+
.map((entry) => {
|
|
3758
|
+
if (entry === null) {
|
|
3759
|
+
return null;
|
|
3760
|
+
}
|
|
3761
|
+
return deserializeAws_json1_1RecurringCharge(entry, context);
|
|
3762
|
+
});
|
|
3763
|
+
return retVal;
|
|
3764
|
+
};
|
|
3765
|
+
const deserializeAws_json1_1ReservedNode = (output, context) => {
|
|
3766
|
+
return {
|
|
3767
|
+
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
3768
|
+
Duration: (0, smithy_client_1.expectInt32)(output.Duration),
|
|
3769
|
+
FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
|
|
3770
|
+
NodeCount: (0, smithy_client_1.expectInt32)(output.NodeCount),
|
|
3771
|
+
NodeType: (0, smithy_client_1.expectString)(output.NodeType),
|
|
3772
|
+
OfferingType: (0, smithy_client_1.expectString)(output.OfferingType),
|
|
3773
|
+
RecurringCharges: output.RecurringCharges != null
|
|
3774
|
+
? deserializeAws_json1_1RecurringChargeList(output.RecurringCharges, context)
|
|
3775
|
+
: undefined,
|
|
3776
|
+
ReservationId: (0, smithy_client_1.expectString)(output.ReservationId),
|
|
3777
|
+
ReservedNodesOfferingId: (0, smithy_client_1.expectString)(output.ReservedNodesOfferingId),
|
|
3778
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3779
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
3780
|
+
};
|
|
3781
|
+
};
|
|
3782
|
+
const deserializeAws_json1_1ReservedNodeAlreadyExistsFault = (output, context) => {
|
|
3783
|
+
return {
|
|
3784
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3785
|
+
};
|
|
3786
|
+
};
|
|
3787
|
+
const deserializeAws_json1_1ReservedNodeList = (output, context) => {
|
|
3788
|
+
const retVal = (output || [])
|
|
3789
|
+
.filter((e) => e != null)
|
|
3790
|
+
.map((entry) => {
|
|
3791
|
+
if (entry === null) {
|
|
3792
|
+
return null;
|
|
3793
|
+
}
|
|
3794
|
+
return deserializeAws_json1_1ReservedNode(entry, context);
|
|
3795
|
+
});
|
|
3796
|
+
return retVal;
|
|
3797
|
+
};
|
|
3798
|
+
const deserializeAws_json1_1ReservedNodeNotFoundFault = (output, context) => {
|
|
3799
|
+
return {
|
|
3800
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3801
|
+
};
|
|
3802
|
+
};
|
|
3803
|
+
const deserializeAws_json1_1ReservedNodeQuotaExceededFault = (output, context) => {
|
|
3804
|
+
return {
|
|
3805
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3806
|
+
};
|
|
3807
|
+
};
|
|
3808
|
+
const deserializeAws_json1_1ReservedNodesOffering = (output, context) => {
|
|
3809
|
+
return {
|
|
3810
|
+
Duration: (0, smithy_client_1.expectInt32)(output.Duration),
|
|
3811
|
+
FixedPrice: (0, smithy_client_1.limitedParseDouble)(output.FixedPrice),
|
|
3812
|
+
NodeType: (0, smithy_client_1.expectString)(output.NodeType),
|
|
3813
|
+
OfferingType: (0, smithy_client_1.expectString)(output.OfferingType),
|
|
3814
|
+
RecurringCharges: output.RecurringCharges != null
|
|
3815
|
+
? deserializeAws_json1_1RecurringChargeList(output.RecurringCharges, context)
|
|
3816
|
+
: undefined,
|
|
3817
|
+
ReservedNodesOfferingId: (0, smithy_client_1.expectString)(output.ReservedNodesOfferingId),
|
|
3818
|
+
};
|
|
3819
|
+
};
|
|
3820
|
+
const deserializeAws_json1_1ReservedNodesOfferingList = (output, context) => {
|
|
3821
|
+
const retVal = (output || [])
|
|
3822
|
+
.filter((e) => e != null)
|
|
3823
|
+
.map((entry) => {
|
|
3824
|
+
if (entry === null) {
|
|
3825
|
+
return null;
|
|
3826
|
+
}
|
|
3827
|
+
return deserializeAws_json1_1ReservedNodesOffering(entry, context);
|
|
3828
|
+
});
|
|
3829
|
+
return retVal;
|
|
3830
|
+
};
|
|
3831
|
+
const deserializeAws_json1_1ReservedNodesOfferingNotFoundFault = (output, context) => {
|
|
3832
|
+
return {
|
|
3833
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3834
|
+
};
|
|
3835
|
+
};
|
|
3496
3836
|
const deserializeAws_json1_1ResetParameterGroupResponse = (output, context) => {
|
|
3497
3837
|
return {
|
|
3498
3838
|
ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
|
package/dist-es/MemoryDB.js
CHANGED
|
@@ -18,6 +18,8 @@ import { DescribeEngineVersionsCommand, } from "./commands/DescribeEngineVersion
|
|
|
18
18
|
import { DescribeEventsCommand, } from "./commands/DescribeEventsCommand";
|
|
19
19
|
import { DescribeParameterGroupsCommand, } from "./commands/DescribeParameterGroupsCommand";
|
|
20
20
|
import { DescribeParametersCommand, } from "./commands/DescribeParametersCommand";
|
|
21
|
+
import { DescribeReservedNodesCommand, } from "./commands/DescribeReservedNodesCommand";
|
|
22
|
+
import { DescribeReservedNodesOfferingsCommand, } from "./commands/DescribeReservedNodesOfferingsCommand";
|
|
21
23
|
import { DescribeServiceUpdatesCommand, } from "./commands/DescribeServiceUpdatesCommand";
|
|
22
24
|
import { DescribeSnapshotsCommand, } from "./commands/DescribeSnapshotsCommand";
|
|
23
25
|
import { DescribeSubnetGroupsCommand, } from "./commands/DescribeSubnetGroupsCommand";
|
|
@@ -25,6 +27,7 @@ import { DescribeUsersCommand, } from "./commands/DescribeUsersCommand";
|
|
|
25
27
|
import { FailoverShardCommand, } from "./commands/FailoverShardCommand";
|
|
26
28
|
import { ListAllowedNodeTypeUpdatesCommand, } from "./commands/ListAllowedNodeTypeUpdatesCommand";
|
|
27
29
|
import { ListTagsCommand } from "./commands/ListTagsCommand";
|
|
30
|
+
import { PurchaseReservedNodesOfferingCommand, } from "./commands/PurchaseReservedNodesOfferingCommand";
|
|
28
31
|
import { ResetParameterGroupCommand, } from "./commands/ResetParameterGroupCommand";
|
|
29
32
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
30
33
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
@@ -315,6 +318,34 @@ export class MemoryDB extends MemoryDBClient {
|
|
|
315
318
|
return this.send(command, optionsOrCb);
|
|
316
319
|
}
|
|
317
320
|
}
|
|
321
|
+
describeReservedNodes(args, optionsOrCb, cb) {
|
|
322
|
+
const command = new DescribeReservedNodesCommand(args);
|
|
323
|
+
if (typeof optionsOrCb === "function") {
|
|
324
|
+
this.send(command, optionsOrCb);
|
|
325
|
+
}
|
|
326
|
+
else if (typeof cb === "function") {
|
|
327
|
+
if (typeof optionsOrCb !== "object")
|
|
328
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
329
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
return this.send(command, optionsOrCb);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
describeReservedNodesOfferings(args, optionsOrCb, cb) {
|
|
336
|
+
const command = new DescribeReservedNodesOfferingsCommand(args);
|
|
337
|
+
if (typeof optionsOrCb === "function") {
|
|
338
|
+
this.send(command, optionsOrCb);
|
|
339
|
+
}
|
|
340
|
+
else if (typeof cb === "function") {
|
|
341
|
+
if (typeof optionsOrCb !== "object")
|
|
342
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
343
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
return this.send(command, optionsOrCb);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
318
349
|
describeServiceUpdates(args, optionsOrCb, cb) {
|
|
319
350
|
const command = new DescribeServiceUpdatesCommand(args);
|
|
320
351
|
if (typeof optionsOrCb === "function") {
|
|
@@ -413,6 +444,20 @@ export class MemoryDB extends MemoryDBClient {
|
|
|
413
444
|
return this.send(command, optionsOrCb);
|
|
414
445
|
}
|
|
415
446
|
}
|
|
447
|
+
purchaseReservedNodesOffering(args, optionsOrCb, cb) {
|
|
448
|
+
const command = new PurchaseReservedNodesOfferingCommand(args);
|
|
449
|
+
if (typeof optionsOrCb === "function") {
|
|
450
|
+
this.send(command, optionsOrCb);
|
|
451
|
+
}
|
|
452
|
+
else if (typeof cb === "function") {
|
|
453
|
+
if (typeof optionsOrCb !== "object")
|
|
454
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
455
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
return this.send(command, optionsOrCb);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
416
461
|
resetParameterGroup(args, optionsOrCb, cb) {
|
|
417
462
|
const command = new ResetParameterGroupCommand(args);
|
|
418
463
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeReservedNodesRequestFilterSensitiveLog, DescribeReservedNodesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeReservedNodesCommand, serializeAws_json1_1DescribeReservedNodesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class DescribeReservedNodesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeReservedNodesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MemoryDBClient";
|
|
25
|
+
const commandName = "DescribeReservedNodesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DescribeReservedNodesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DescribeReservedNodesResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1DescribeReservedNodesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1DescribeReservedNodesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeReservedNodesOfferingsRequestFilterSensitiveLog, DescribeReservedNodesOfferingsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeReservedNodesOfferingsCommand, serializeAws_json1_1DescribeReservedNodesOfferingsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class DescribeReservedNodesOfferingsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeReservedNodesOfferingsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MemoryDBClient";
|
|
25
|
+
const commandName = "DescribeReservedNodesOfferingsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DescribeReservedNodesOfferingsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DescribeReservedNodesOfferingsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1DescribeReservedNodesOfferingsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1DescribeReservedNodesOfferingsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PurchaseReservedNodesOfferingRequestFilterSensitiveLog, PurchaseReservedNodesOfferingResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1PurchaseReservedNodesOfferingCommand, serializeAws_json1_1PurchaseReservedNodesOfferingCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class PurchaseReservedNodesOfferingCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PurchaseReservedNodesOfferingCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MemoryDBClient";
|
|
25
|
+
const commandName = "PurchaseReservedNodesOfferingCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: PurchaseReservedNodesOfferingRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: PurchaseReservedNodesOfferingResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1PurchaseReservedNodesOfferingCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1PurchaseReservedNodesOfferingCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -18,6 +18,8 @@ export * from "./DescribeEngineVersionsCommand";
|
|
|
18
18
|
export * from "./DescribeEventsCommand";
|
|
19
19
|
export * from "./DescribeParameterGroupsCommand";
|
|
20
20
|
export * from "./DescribeParametersCommand";
|
|
21
|
+
export * from "./DescribeReservedNodesCommand";
|
|
22
|
+
export * from "./DescribeReservedNodesOfferingsCommand";
|
|
21
23
|
export * from "./DescribeServiceUpdatesCommand";
|
|
22
24
|
export * from "./DescribeSnapshotsCommand";
|
|
23
25
|
export * from "./DescribeSubnetGroupsCommand";
|
|
@@ -25,6 +27,7 @@ export * from "./DescribeUsersCommand";
|
|
|
25
27
|
export * from "./FailoverShardCommand";
|
|
26
28
|
export * from "./ListAllowedNodeTypeUpdatesCommand";
|
|
27
29
|
export * from "./ListTagsCommand";
|
|
30
|
+
export * from "./PurchaseReservedNodesOfferingCommand";
|
|
28
31
|
export * from "./ResetParameterGroupCommand";
|
|
29
32
|
export * from "./TagResourceCommand";
|
|
30
33
|
export * from "./UntagResourceCommand";
|