@aws-sdk/client-database-migration-service 3.282.0 → 3.286.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/README.md +32 -0
- package/dist-cjs/DatabaseMigrationService.js +60 -0
- package/dist-cjs/commands/BatchStartRecommendationsCommand.js +46 -0
- package/dist-cjs/commands/DescribeRecommendationLimitationsCommand.js +46 -0
- package/dist-cjs/commands/DescribeRecommendationsCommand.js +46 -0
- package/dist-cjs/commands/StartRecommendationsCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +70 -4
- package/dist-cjs/pagination/DescribeRecommendationLimitationsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeRecommendationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +363 -3
- package/dist-es/DatabaseMigrationService.js +60 -0
- package/dist-es/commands/BatchStartRecommendationsCommand.js +42 -0
- package/dist-es/commands/DescribeRecommendationLimitationsCommand.js +42 -0
- package/dist-es/commands/DescribeRecommendationsCommand.js +42 -0
- package/dist-es/commands/StartRecommendationsCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +49 -0
- package/dist-es/pagination/DescribeRecommendationLimitationsPaginator.js +32 -0
- package/dist-es/pagination/DescribeRecommendationsPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +352 -0
- package/dist-types/DatabaseMigrationService.d.ts +42 -8
- package/dist-types/DatabaseMigrationServiceClient.d.ts +6 -2
- package/dist-types/commands/AddTagsToResourceCommand.d.ts +1 -1
- package/dist-types/commands/BatchStartRecommendationsCommand.d.ts +48 -0
- package/dist-types/commands/DescribeFleetAdvisorLsaAnalysisCommand.d.ts +2 -3
- package/dist-types/commands/DescribeRecommendationLimitationsCommand.d.ts +44 -0
- package/dist-types/commands/DescribeRecommendationsCommand.d.ts +44 -0
- package/dist-types/commands/DescribeSchemasCommand.d.ts +0 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ModifyReplicationInstanceCommand.d.ts +0 -1
- package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +1 -1
- package/dist-types/commands/StartRecommendationsCommand.d.ts +45 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +560 -108
- package/dist-types/pagination/DescribeRecommendationLimitationsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeRecommendationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/DatabaseMigrationService.d.ts +74 -0
- package/dist-types/ts3.4/DatabaseMigrationServiceClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/BatchStartRecommendationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeRecommendationLimitationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeRecommendationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartRecommendationsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +137 -7
- package/dist-types/ts3.4/pagination/DescribeRecommendationLimitationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeRecommendationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
- package/package.json +1 -1
|
@@ -17,6 +17,8 @@ tslib_1.__exportStar(require("./DescribeFleetAdvisorSchemaObjectSummaryPaginator
|
|
|
17
17
|
tslib_1.__exportStar(require("./DescribeFleetAdvisorSchemasPaginator"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./DescribeOrderableReplicationInstancesPaginator"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./DescribePendingMaintenanceActionsPaginator"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./DescribeRecommendationLimitationsPaginator"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./DescribeRecommendationsPaginator"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./DescribeReplicationInstanceTaskLogsPaginator"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./DescribeReplicationInstancesPaginator"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./DescribeReplicationSubnetGroupsPaginator"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateSubscriptionsToEventBridgeCommand = exports.deserializeAws_json1_1TestConnectionCommand = exports.deserializeAws_json1_1StopReplicationTaskCommand = exports.deserializeAws_json1_1StartReplicationTaskAssessmentRunCommand = exports.deserializeAws_json1_1StartReplicationTaskAssessmentCommand = exports.deserializeAws_json1_1StartReplicationTaskCommand = exports.deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand = exports.deserializeAws_json1_1RemoveTagsFromResourceCommand = exports.deserializeAws_json1_1ReloadTablesCommand = exports.deserializeAws_json1_1RefreshSchemasCommand = exports.deserializeAws_json1_1RebootReplicationInstanceCommand = exports.deserializeAws_json1_1MoveReplicationTaskCommand = exports.deserializeAws_json1_1ModifyReplicationTaskCommand = exports.deserializeAws_json1_1ModifyReplicationSubnetGroupCommand = exports.deserializeAws_json1_1ModifyReplicationInstanceCommand = exports.deserializeAws_json1_1ModifyEventSubscriptionCommand = exports.deserializeAws_json1_1ModifyEndpointCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ImportCertificateCommand = exports.deserializeAws_json1_1DescribeTableStatisticsCommand = exports.deserializeAws_json1_1DescribeSchemasCommand = exports.deserializeAws_json1_1DescribeReplicationTasksCommand = exports.deserializeAws_json1_1DescribeReplicationTaskIndividualAssessmentsCommand = exports.deserializeAws_json1_1DescribeReplicationTaskAssessmentRunsCommand = exports.deserializeAws_json1_1DescribeReplicationTaskAssessmentResultsCommand = exports.deserializeAws_json1_1DescribeReplicationSubnetGroupsCommand = exports.deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommand = exports.deserializeAws_json1_1DescribeReplicationInstancesCommand = exports.deserializeAws_json1_1DescribeRefreshSchemasStatusCommand = exports.deserializeAws_json1_1DescribePendingMaintenanceActionsCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1ImportCertificateCommand = exports.serializeAws_json1_1DescribeTableStatisticsCommand = exports.serializeAws_json1_1DescribeSchemasCommand = exports.serializeAws_json1_1DescribeReplicationTasksCommand = exports.serializeAws_json1_1DescribeReplicationTaskIndividualAssessmentsCommand = exports.serializeAws_json1_1DescribeReplicationTaskAssessmentRunsCommand = exports.serializeAws_json1_1DescribeReplicationTaskAssessmentResultsCommand = exports.serializeAws_json1_1DescribeReplicationSubnetGroupsCommand = exports.serializeAws_json1_1DescribeReplicationInstanceTaskLogsCommand = exports.serializeAws_json1_1DescribeReplicationInstancesCommand = exports.serializeAws_json1_1DescribeRefreshSchemasStatusCommand = exports.serializeAws_json1_1DescribeRecommendationsCommand = exports.serializeAws_json1_1DescribeRecommendationLimitationsCommand = exports.serializeAws_json1_1DescribePendingMaintenanceActionsCommand = exports.serializeAws_json1_1DescribeOrderableReplicationInstancesCommand = exports.serializeAws_json1_1DescribeFleetAdvisorSchemasCommand = exports.serializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand = exports.serializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand = exports.serializeAws_json1_1DescribeFleetAdvisorDatabasesCommand = exports.serializeAws_json1_1DescribeFleetAdvisorCollectorsCommand = exports.serializeAws_json1_1DescribeEventSubscriptionsCommand = exports.serializeAws_json1_1DescribeEventsCommand = exports.serializeAws_json1_1DescribeEventCategoriesCommand = exports.serializeAws_json1_1DescribeEndpointTypesCommand = exports.serializeAws_json1_1DescribeEndpointSettingsCommand = exports.serializeAws_json1_1DescribeEndpointsCommand = exports.serializeAws_json1_1DescribeConnectionsCommand = exports.serializeAws_json1_1DescribeCertificatesCommand = exports.serializeAws_json1_1DescribeApplicableIndividualAssessmentsCommand = exports.serializeAws_json1_1DescribeAccountAttributesCommand = exports.serializeAws_json1_1DeleteReplicationTaskAssessmentRunCommand = exports.serializeAws_json1_1DeleteReplicationTaskCommand = exports.serializeAws_json1_1DeleteReplicationSubnetGroupCommand = exports.serializeAws_json1_1DeleteReplicationInstanceCommand = exports.serializeAws_json1_1DeleteFleetAdvisorDatabasesCommand = exports.serializeAws_json1_1DeleteFleetAdvisorCollectorCommand = exports.serializeAws_json1_1DeleteEventSubscriptionCommand = exports.serializeAws_json1_1DeleteEndpointCommand = exports.serializeAws_json1_1DeleteConnectionCommand = exports.serializeAws_json1_1DeleteCertificateCommand = exports.serializeAws_json1_1CreateReplicationTaskCommand = exports.serializeAws_json1_1CreateReplicationSubnetGroupCommand = exports.serializeAws_json1_1CreateReplicationInstanceCommand = exports.serializeAws_json1_1CreateFleetAdvisorCollectorCommand = exports.serializeAws_json1_1CreateEventSubscriptionCommand = exports.serializeAws_json1_1CreateEndpointCommand = exports.serializeAws_json1_1CancelReplicationTaskAssessmentRunCommand = exports.serializeAws_json1_1BatchStartRecommendationsCommand = exports.serializeAws_json1_1ApplyPendingMaintenanceActionCommand = exports.serializeAws_json1_1AddTagsToResourceCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DescribeFleetAdvisorCollectorsCommand = exports.deserializeAws_json1_1DescribeEventSubscriptionsCommand = exports.deserializeAws_json1_1DescribeEventsCommand = exports.deserializeAws_json1_1DescribeEventCategoriesCommand = exports.deserializeAws_json1_1DescribeEndpointTypesCommand = exports.deserializeAws_json1_1DescribeEndpointSettingsCommand = exports.deserializeAws_json1_1DescribeEndpointsCommand = exports.deserializeAws_json1_1DescribeConnectionsCommand = exports.deserializeAws_json1_1DescribeCertificatesCommand = exports.deserializeAws_json1_1DescribeApplicableIndividualAssessmentsCommand = exports.deserializeAws_json1_1DescribeAccountAttributesCommand = exports.deserializeAws_json1_1DeleteReplicationTaskAssessmentRunCommand = exports.deserializeAws_json1_1DeleteReplicationTaskCommand = exports.deserializeAws_json1_1DeleteReplicationSubnetGroupCommand = exports.deserializeAws_json1_1DeleteReplicationInstanceCommand = exports.deserializeAws_json1_1DeleteFleetAdvisorDatabasesCommand = exports.deserializeAws_json1_1DeleteFleetAdvisorCollectorCommand = exports.deserializeAws_json1_1DeleteEventSubscriptionCommand = exports.deserializeAws_json1_1DeleteEndpointCommand = exports.deserializeAws_json1_1DeleteConnectionCommand = exports.deserializeAws_json1_1DeleteCertificateCommand = exports.deserializeAws_json1_1CreateReplicationTaskCommand = exports.deserializeAws_json1_1CreateReplicationSubnetGroupCommand = exports.deserializeAws_json1_1CreateReplicationInstanceCommand = exports.deserializeAws_json1_1CreateFleetAdvisorCollectorCommand = exports.deserializeAws_json1_1CreateEventSubscriptionCommand = exports.deserializeAws_json1_1CreateEndpointCommand = exports.deserializeAws_json1_1CancelReplicationTaskAssessmentRunCommand = exports.deserializeAws_json1_1BatchStartRecommendationsCommand = exports.deserializeAws_json1_1ApplyPendingMaintenanceActionCommand = exports.deserializeAws_json1_1AddTagsToResourceCommand = exports.serializeAws_json1_1UpdateSubscriptionsToEventBridgeCommand = exports.serializeAws_json1_1TestConnectionCommand = exports.serializeAws_json1_1StopReplicationTaskCommand = exports.serializeAws_json1_1StartReplicationTaskAssessmentRunCommand = exports.serializeAws_json1_1StartReplicationTaskAssessmentCommand = exports.serializeAws_json1_1StartReplicationTaskCommand = exports.serializeAws_json1_1StartRecommendationsCommand = exports.serializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand = exports.serializeAws_json1_1RemoveTagsFromResourceCommand = exports.serializeAws_json1_1ReloadTablesCommand = exports.serializeAws_json1_1RefreshSchemasCommand = exports.serializeAws_json1_1RebootReplicationInstanceCommand = exports.serializeAws_json1_1MoveReplicationTaskCommand = exports.serializeAws_json1_1ModifyReplicationTaskCommand = exports.serializeAws_json1_1ModifyReplicationSubnetGroupCommand = exports.serializeAws_json1_1ModifyReplicationInstanceCommand = exports.serializeAws_json1_1ModifyEventSubscriptionCommand = exports.serializeAws_json1_1ModifyEndpointCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateSubscriptionsToEventBridgeCommand = exports.deserializeAws_json1_1TestConnectionCommand = exports.deserializeAws_json1_1StopReplicationTaskCommand = exports.deserializeAws_json1_1StartReplicationTaskAssessmentRunCommand = exports.deserializeAws_json1_1StartReplicationTaskAssessmentCommand = exports.deserializeAws_json1_1StartReplicationTaskCommand = exports.deserializeAws_json1_1StartRecommendationsCommand = exports.deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand = exports.deserializeAws_json1_1RemoveTagsFromResourceCommand = exports.deserializeAws_json1_1ReloadTablesCommand = exports.deserializeAws_json1_1RefreshSchemasCommand = exports.deserializeAws_json1_1RebootReplicationInstanceCommand = exports.deserializeAws_json1_1MoveReplicationTaskCommand = exports.deserializeAws_json1_1ModifyReplicationTaskCommand = exports.deserializeAws_json1_1ModifyReplicationSubnetGroupCommand = exports.deserializeAws_json1_1ModifyReplicationInstanceCommand = exports.deserializeAws_json1_1ModifyEventSubscriptionCommand = exports.deserializeAws_json1_1ModifyEndpointCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ImportCertificateCommand = exports.deserializeAws_json1_1DescribeTableStatisticsCommand = exports.deserializeAws_json1_1DescribeSchemasCommand = exports.deserializeAws_json1_1DescribeReplicationTasksCommand = exports.deserializeAws_json1_1DescribeReplicationTaskIndividualAssessmentsCommand = exports.deserializeAws_json1_1DescribeReplicationTaskAssessmentRunsCommand = exports.deserializeAws_json1_1DescribeReplicationTaskAssessmentResultsCommand = exports.deserializeAws_json1_1DescribeReplicationSubnetGroupsCommand = exports.deserializeAws_json1_1DescribeReplicationInstanceTaskLogsCommand = exports.deserializeAws_json1_1DescribeReplicationInstancesCommand = exports.deserializeAws_json1_1DescribeRefreshSchemasStatusCommand = exports.deserializeAws_json1_1DescribeRecommendationsCommand = exports.deserializeAws_json1_1DescribeRecommendationLimitationsCommand = exports.deserializeAws_json1_1DescribePendingMaintenanceActionsCommand = exports.deserializeAws_json1_1DescribeOrderableReplicationInstancesCommand = exports.deserializeAws_json1_1DescribeFleetAdvisorSchemasCommand = exports.deserializeAws_json1_1DescribeFleetAdvisorSchemaObjectSummaryCommand = exports.deserializeAws_json1_1DescribeFleetAdvisorLsaAnalysisCommand = exports.deserializeAws_json1_1DescribeFleetAdvisorDatabasesCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const DatabaseMigrationServiceServiceException_1 = require("../models/DatabaseMigrationServiceServiceException");
|
|
@@ -27,6 +27,16 @@ const serializeAws_json1_1ApplyPendingMaintenanceActionCommand = async (input, c
|
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.serializeAws_json1_1ApplyPendingMaintenanceActionCommand = serializeAws_json1_1ApplyPendingMaintenanceActionCommand;
|
|
30
|
+
const serializeAws_json1_1BatchStartRecommendationsCommand = async (input, context) => {
|
|
31
|
+
const headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "AmazonDMSv20160101.BatchStartRecommendations",
|
|
34
|
+
};
|
|
35
|
+
let body;
|
|
36
|
+
body = JSON.stringify(serializeAws_json1_1BatchStartRecommendationsRequest(input, context));
|
|
37
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
|
+
};
|
|
39
|
+
exports.serializeAws_json1_1BatchStartRecommendationsCommand = serializeAws_json1_1BatchStartRecommendationsCommand;
|
|
30
40
|
const serializeAws_json1_1CancelReplicationTaskAssessmentRunCommand = async (input, context) => {
|
|
31
41
|
const headers = {
|
|
32
42
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -367,6 +377,26 @@ const serializeAws_json1_1DescribePendingMaintenanceActionsCommand = async (inpu
|
|
|
367
377
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
368
378
|
};
|
|
369
379
|
exports.serializeAws_json1_1DescribePendingMaintenanceActionsCommand = serializeAws_json1_1DescribePendingMaintenanceActionsCommand;
|
|
380
|
+
const serializeAws_json1_1DescribeRecommendationLimitationsCommand = async (input, context) => {
|
|
381
|
+
const headers = {
|
|
382
|
+
"content-type": "application/x-amz-json-1.1",
|
|
383
|
+
"x-amz-target": "AmazonDMSv20160101.DescribeRecommendationLimitations",
|
|
384
|
+
};
|
|
385
|
+
let body;
|
|
386
|
+
body = JSON.stringify(serializeAws_json1_1DescribeRecommendationLimitationsRequest(input, context));
|
|
387
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
+
};
|
|
389
|
+
exports.serializeAws_json1_1DescribeRecommendationLimitationsCommand = serializeAws_json1_1DescribeRecommendationLimitationsCommand;
|
|
390
|
+
const serializeAws_json1_1DescribeRecommendationsCommand = async (input, context) => {
|
|
391
|
+
const headers = {
|
|
392
|
+
"content-type": "application/x-amz-json-1.1",
|
|
393
|
+
"x-amz-target": "AmazonDMSv20160101.DescribeRecommendations",
|
|
394
|
+
};
|
|
395
|
+
let body;
|
|
396
|
+
body = JSON.stringify(serializeAws_json1_1DescribeRecommendationsRequest(input, context));
|
|
397
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
398
|
+
};
|
|
399
|
+
exports.serializeAws_json1_1DescribeRecommendationsCommand = serializeAws_json1_1DescribeRecommendationsCommand;
|
|
370
400
|
const serializeAws_json1_1DescribeRefreshSchemasStatusCommand = async (input, context) => {
|
|
371
401
|
const headers = {
|
|
372
402
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -596,6 +626,16 @@ const serializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand = async (input, cont
|
|
|
596
626
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
597
627
|
};
|
|
598
628
|
exports.serializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand = serializeAws_json1_1RunFleetAdvisorLsaAnalysisCommand;
|
|
629
|
+
const serializeAws_json1_1StartRecommendationsCommand = async (input, context) => {
|
|
630
|
+
const headers = {
|
|
631
|
+
"content-type": "application/x-amz-json-1.1",
|
|
632
|
+
"x-amz-target": "AmazonDMSv20160101.StartRecommendations",
|
|
633
|
+
};
|
|
634
|
+
let body;
|
|
635
|
+
body = JSON.stringify(serializeAws_json1_1StartRecommendationsRequest(input, context));
|
|
636
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
637
|
+
};
|
|
638
|
+
exports.serializeAws_json1_1StartRecommendationsCommand = serializeAws_json1_1StartRecommendationsCommand;
|
|
599
639
|
const serializeAws_json1_1StartReplicationTaskCommand = async (input, context) => {
|
|
600
640
|
const headers = {
|
|
601
641
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -724,6 +764,46 @@ const deserializeAws_json1_1ApplyPendingMaintenanceActionCommandError = async (o
|
|
|
724
764
|
});
|
|
725
765
|
}
|
|
726
766
|
};
|
|
767
|
+
const deserializeAws_json1_1BatchStartRecommendationsCommand = async (output, context) => {
|
|
768
|
+
if (output.statusCode >= 300) {
|
|
769
|
+
return deserializeAws_json1_1BatchStartRecommendationsCommandError(output, context);
|
|
770
|
+
}
|
|
771
|
+
const data = await parseBody(output.body, context);
|
|
772
|
+
let contents = {};
|
|
773
|
+
contents = deserializeAws_json1_1BatchStartRecommendationsResponse(data, context);
|
|
774
|
+
const response = {
|
|
775
|
+
$metadata: deserializeMetadata(output),
|
|
776
|
+
...contents,
|
|
777
|
+
};
|
|
778
|
+
return Promise.resolve(response);
|
|
779
|
+
};
|
|
780
|
+
exports.deserializeAws_json1_1BatchStartRecommendationsCommand = deserializeAws_json1_1BatchStartRecommendationsCommand;
|
|
781
|
+
const deserializeAws_json1_1BatchStartRecommendationsCommandError = async (output, context) => {
|
|
782
|
+
const parsedOutput = {
|
|
783
|
+
...output,
|
|
784
|
+
body: await parseErrorBody(output.body, context),
|
|
785
|
+
};
|
|
786
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
|
+
switch (errorCode) {
|
|
788
|
+
case "AccessDeniedFault":
|
|
789
|
+
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
790
|
+
throw await deserializeAws_json1_1AccessDeniedFaultResponse(parsedOutput, context);
|
|
791
|
+
case "InvalidResourceStateFault":
|
|
792
|
+
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
793
|
+
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
794
|
+
case "ResourceNotFoundFault":
|
|
795
|
+
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
796
|
+
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
797
|
+
default:
|
|
798
|
+
const parsedBody = parsedOutput.body;
|
|
799
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
800
|
+
output,
|
|
801
|
+
parsedBody,
|
|
802
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
803
|
+
errorCode,
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
};
|
|
727
807
|
const deserializeAws_json1_1CancelReplicationTaskAssessmentRunCommand = async (output, context) => {
|
|
728
808
|
if (output.statusCode >= 300) {
|
|
729
809
|
return deserializeAws_json1_1CancelReplicationTaskAssessmentRunCommandError(output, context);
|
|
@@ -2003,6 +2083,80 @@ const deserializeAws_json1_1DescribePendingMaintenanceActionsCommandError = asyn
|
|
|
2003
2083
|
});
|
|
2004
2084
|
}
|
|
2005
2085
|
};
|
|
2086
|
+
const deserializeAws_json1_1DescribeRecommendationLimitationsCommand = async (output, context) => {
|
|
2087
|
+
if (output.statusCode >= 300) {
|
|
2088
|
+
return deserializeAws_json1_1DescribeRecommendationLimitationsCommandError(output, context);
|
|
2089
|
+
}
|
|
2090
|
+
const data = await parseBody(output.body, context);
|
|
2091
|
+
let contents = {};
|
|
2092
|
+
contents = deserializeAws_json1_1DescribeRecommendationLimitationsResponse(data, context);
|
|
2093
|
+
const response = {
|
|
2094
|
+
$metadata: deserializeMetadata(output),
|
|
2095
|
+
...contents,
|
|
2096
|
+
};
|
|
2097
|
+
return Promise.resolve(response);
|
|
2098
|
+
};
|
|
2099
|
+
exports.deserializeAws_json1_1DescribeRecommendationLimitationsCommand = deserializeAws_json1_1DescribeRecommendationLimitationsCommand;
|
|
2100
|
+
const deserializeAws_json1_1DescribeRecommendationLimitationsCommandError = async (output, context) => {
|
|
2101
|
+
const parsedOutput = {
|
|
2102
|
+
...output,
|
|
2103
|
+
body: await parseErrorBody(output.body, context),
|
|
2104
|
+
};
|
|
2105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2106
|
+
switch (errorCode) {
|
|
2107
|
+
case "AccessDeniedFault":
|
|
2108
|
+
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
2109
|
+
throw await deserializeAws_json1_1AccessDeniedFaultResponse(parsedOutput, context);
|
|
2110
|
+
case "InvalidResourceStateFault":
|
|
2111
|
+
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
2112
|
+
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
2113
|
+
default:
|
|
2114
|
+
const parsedBody = parsedOutput.body;
|
|
2115
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2116
|
+
output,
|
|
2117
|
+
parsedBody,
|
|
2118
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2119
|
+
errorCode,
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
};
|
|
2123
|
+
const deserializeAws_json1_1DescribeRecommendationsCommand = async (output, context) => {
|
|
2124
|
+
if (output.statusCode >= 300) {
|
|
2125
|
+
return deserializeAws_json1_1DescribeRecommendationsCommandError(output, context);
|
|
2126
|
+
}
|
|
2127
|
+
const data = await parseBody(output.body, context);
|
|
2128
|
+
let contents = {};
|
|
2129
|
+
contents = deserializeAws_json1_1DescribeRecommendationsResponse(data, context);
|
|
2130
|
+
const response = {
|
|
2131
|
+
$metadata: deserializeMetadata(output),
|
|
2132
|
+
...contents,
|
|
2133
|
+
};
|
|
2134
|
+
return Promise.resolve(response);
|
|
2135
|
+
};
|
|
2136
|
+
exports.deserializeAws_json1_1DescribeRecommendationsCommand = deserializeAws_json1_1DescribeRecommendationsCommand;
|
|
2137
|
+
const deserializeAws_json1_1DescribeRecommendationsCommandError = async (output, context) => {
|
|
2138
|
+
const parsedOutput = {
|
|
2139
|
+
...output,
|
|
2140
|
+
body: await parseErrorBody(output.body, context),
|
|
2141
|
+
};
|
|
2142
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
+
switch (errorCode) {
|
|
2144
|
+
case "AccessDeniedFault":
|
|
2145
|
+
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
2146
|
+
throw await deserializeAws_json1_1AccessDeniedFaultResponse(parsedOutput, context);
|
|
2147
|
+
case "InvalidResourceStateFault":
|
|
2148
|
+
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
2149
|
+
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
2150
|
+
default:
|
|
2151
|
+
const parsedBody = parsedOutput.body;
|
|
2152
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2153
|
+
output,
|
|
2154
|
+
parsedBody,
|
|
2155
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
2156
|
+
errorCode,
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
};
|
|
2006
2160
|
const deserializeAws_json1_1DescribeRefreshSchemasStatusCommand = async (output, context) => {
|
|
2007
2161
|
if (output.statusCode >= 300) {
|
|
2008
2162
|
return deserializeAws_json1_1DescribeRefreshSchemasStatusCommandError(output, context);
|
|
@@ -2911,6 +3065,43 @@ const deserializeAws_json1_1RunFleetAdvisorLsaAnalysisCommandError = async (outp
|
|
|
2911
3065
|
});
|
|
2912
3066
|
}
|
|
2913
3067
|
};
|
|
3068
|
+
const deserializeAws_json1_1StartRecommendationsCommand = async (output, context) => {
|
|
3069
|
+
if (output.statusCode >= 300) {
|
|
3070
|
+
return deserializeAws_json1_1StartRecommendationsCommandError(output, context);
|
|
3071
|
+
}
|
|
3072
|
+
await collectBody(output.body, context);
|
|
3073
|
+
const response = {
|
|
3074
|
+
$metadata: deserializeMetadata(output),
|
|
3075
|
+
};
|
|
3076
|
+
return Promise.resolve(response);
|
|
3077
|
+
};
|
|
3078
|
+
exports.deserializeAws_json1_1StartRecommendationsCommand = deserializeAws_json1_1StartRecommendationsCommand;
|
|
3079
|
+
const deserializeAws_json1_1StartRecommendationsCommandError = async (output, context) => {
|
|
3080
|
+
const parsedOutput = {
|
|
3081
|
+
...output,
|
|
3082
|
+
body: await parseErrorBody(output.body, context),
|
|
3083
|
+
};
|
|
3084
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3085
|
+
switch (errorCode) {
|
|
3086
|
+
case "AccessDeniedFault":
|
|
3087
|
+
case "com.amazonaws.databasemigrationservice#AccessDeniedFault":
|
|
3088
|
+
throw await deserializeAws_json1_1AccessDeniedFaultResponse(parsedOutput, context);
|
|
3089
|
+
case "InvalidResourceStateFault":
|
|
3090
|
+
case "com.amazonaws.databasemigrationservice#InvalidResourceStateFault":
|
|
3091
|
+
throw await deserializeAws_json1_1InvalidResourceStateFaultResponse(parsedOutput, context);
|
|
3092
|
+
case "ResourceNotFoundFault":
|
|
3093
|
+
case "com.amazonaws.databasemigrationservice#ResourceNotFoundFault":
|
|
3094
|
+
throw await deserializeAws_json1_1ResourceNotFoundFaultResponse(parsedOutput, context);
|
|
3095
|
+
default:
|
|
3096
|
+
const parsedBody = parsedOutput.body;
|
|
3097
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3098
|
+
output,
|
|
3099
|
+
parsedBody,
|
|
3100
|
+
exceptionCtor: DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException,
|
|
3101
|
+
errorCode,
|
|
3102
|
+
});
|
|
3103
|
+
}
|
|
3104
|
+
};
|
|
2914
3105
|
const deserializeAws_json1_1StartReplicationTaskCommand = async (output, context) => {
|
|
2915
3106
|
if (output.statusCode >= 300) {
|
|
2916
3107
|
return deserializeAws_json1_1StartReplicationTaskCommandError(output, context);
|
|
@@ -3420,6 +3611,11 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3420
3611
|
return entry;
|
|
3421
3612
|
});
|
|
3422
3613
|
};
|
|
3614
|
+
const serializeAws_json1_1BatchStartRecommendationsRequest = (input, context) => {
|
|
3615
|
+
return {
|
|
3616
|
+
...(input.Data != null && { Data: serializeAws_json1_1StartRecommendationsRequestEntryList(input.Data, context) }),
|
|
3617
|
+
};
|
|
3618
|
+
};
|
|
3423
3619
|
const serializeAws_json1_1CancelReplicationTaskAssessmentRunMessage = (input, context) => {
|
|
3424
3620
|
return {
|
|
3425
3621
|
...(input.ReplicationTaskAssessmentRunArn != null && {
|
|
@@ -3756,6 +3952,20 @@ const serializeAws_json1_1DescribePendingMaintenanceActionsMessage = (input, con
|
|
|
3756
3952
|
...(input.ReplicationInstanceArn != null && { ReplicationInstanceArn: input.ReplicationInstanceArn }),
|
|
3757
3953
|
};
|
|
3758
3954
|
};
|
|
3955
|
+
const serializeAws_json1_1DescribeRecommendationLimitationsRequest = (input, context) => {
|
|
3956
|
+
return {
|
|
3957
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3958
|
+
...(input.MaxRecords != null && { MaxRecords: input.MaxRecords }),
|
|
3959
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3960
|
+
};
|
|
3961
|
+
};
|
|
3962
|
+
const serializeAws_json1_1DescribeRecommendationsRequest = (input, context) => {
|
|
3963
|
+
return {
|
|
3964
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterList(input.Filters, context) }),
|
|
3965
|
+
...(input.MaxRecords != null && { MaxRecords: input.MaxRecords }),
|
|
3966
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3967
|
+
};
|
|
3968
|
+
};
|
|
3759
3969
|
const serializeAws_json1_1DescribeRefreshSchemasStatusMessage = (input, context) => {
|
|
3760
3970
|
return {
|
|
3761
3971
|
...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
|
|
@@ -4315,6 +4525,12 @@ const serializeAws_json1_1RebootReplicationInstanceMessage = (input, context) =>
|
|
|
4315
4525
|
...(input.ReplicationInstanceArn != null && { ReplicationInstanceArn: input.ReplicationInstanceArn }),
|
|
4316
4526
|
};
|
|
4317
4527
|
};
|
|
4528
|
+
const serializeAws_json1_1RecommendationSettings = (input, context) => {
|
|
4529
|
+
return {
|
|
4530
|
+
...(input.InstanceSizingType != null && { InstanceSizingType: input.InstanceSizingType }),
|
|
4531
|
+
...(input.WorkloadType != null && { WorkloadType: input.WorkloadType }),
|
|
4532
|
+
};
|
|
4533
|
+
};
|
|
4318
4534
|
const serializeAws_json1_1RedisSettings = (input, context) => {
|
|
4319
4535
|
return {
|
|
4320
4536
|
...(input.AuthPassword != null && { AuthPassword: input.AuthPassword }),
|
|
@@ -4444,6 +4660,25 @@ const serializeAws_json1_1SourceIdsList = (input, context) => {
|
|
|
4444
4660
|
return entry;
|
|
4445
4661
|
});
|
|
4446
4662
|
};
|
|
4663
|
+
const serializeAws_json1_1StartRecommendationsRequest = (input, context) => {
|
|
4664
|
+
return {
|
|
4665
|
+
...(input.DatabaseId != null && { DatabaseId: input.DatabaseId }),
|
|
4666
|
+
...(input.Settings != null && { Settings: serializeAws_json1_1RecommendationSettings(input.Settings, context) }),
|
|
4667
|
+
};
|
|
4668
|
+
};
|
|
4669
|
+
const serializeAws_json1_1StartRecommendationsRequestEntry = (input, context) => {
|
|
4670
|
+
return {
|
|
4671
|
+
...(input.DatabaseId != null && { DatabaseId: input.DatabaseId }),
|
|
4672
|
+
...(input.Settings != null && { Settings: serializeAws_json1_1RecommendationSettings(input.Settings, context) }),
|
|
4673
|
+
};
|
|
4674
|
+
};
|
|
4675
|
+
const serializeAws_json1_1StartRecommendationsRequestEntryList = (input, context) => {
|
|
4676
|
+
return input
|
|
4677
|
+
.filter((e) => e != null)
|
|
4678
|
+
.map((entry) => {
|
|
4679
|
+
return serializeAws_json1_1StartRecommendationsRequestEntry(entry, context);
|
|
4680
|
+
});
|
|
4681
|
+
};
|
|
4447
4682
|
const serializeAws_json1_1StartReplicationTaskAssessmentMessage = (input, context) => {
|
|
4448
4683
|
return {
|
|
4449
4684
|
...(input.ReplicationTaskArn != null && { ReplicationTaskArn: input.ReplicationTaskArn }),
|
|
@@ -4597,6 +4832,31 @@ const deserializeAws_json1_1AvailabilityZonesList = (output, context) => {
|
|
|
4597
4832
|
});
|
|
4598
4833
|
return retVal;
|
|
4599
4834
|
};
|
|
4835
|
+
const deserializeAws_json1_1BatchStartRecommendationsErrorEntry = (output, context) => {
|
|
4836
|
+
return {
|
|
4837
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
4838
|
+
DatabaseId: (0, smithy_client_1.expectString)(output.DatabaseId),
|
|
4839
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4840
|
+
};
|
|
4841
|
+
};
|
|
4842
|
+
const deserializeAws_json1_1BatchStartRecommendationsErrorEntryList = (output, context) => {
|
|
4843
|
+
const retVal = (output || [])
|
|
4844
|
+
.filter((e) => e != null)
|
|
4845
|
+
.map((entry) => {
|
|
4846
|
+
if (entry === null) {
|
|
4847
|
+
return null;
|
|
4848
|
+
}
|
|
4849
|
+
return deserializeAws_json1_1BatchStartRecommendationsErrorEntry(entry, context);
|
|
4850
|
+
});
|
|
4851
|
+
return retVal;
|
|
4852
|
+
};
|
|
4853
|
+
const deserializeAws_json1_1BatchStartRecommendationsResponse = (output, context) => {
|
|
4854
|
+
return {
|
|
4855
|
+
ErrorEntries: output.ErrorEntries != null
|
|
4856
|
+
? deserializeAws_json1_1BatchStartRecommendationsErrorEntryList(output.ErrorEntries, context)
|
|
4857
|
+
: undefined,
|
|
4858
|
+
};
|
|
4859
|
+
};
|
|
4600
4860
|
const deserializeAws_json1_1CancelReplicationTaskAssessmentRunResponse = (output, context) => {
|
|
4601
4861
|
return {
|
|
4602
4862
|
ReplicationTaskAssessmentRun: output.ReplicationTaskAssessmentRun != null
|
|
@@ -4973,6 +5233,20 @@ const deserializeAws_json1_1DescribePendingMaintenanceActionsResponse = (output,
|
|
|
4973
5233
|
: undefined,
|
|
4974
5234
|
};
|
|
4975
5235
|
};
|
|
5236
|
+
const deserializeAws_json1_1DescribeRecommendationLimitationsResponse = (output, context) => {
|
|
5237
|
+
return {
|
|
5238
|
+
Limitations: output.Limitations != null ? deserializeAws_json1_1LimitationList(output.Limitations, context) : undefined,
|
|
5239
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5240
|
+
};
|
|
5241
|
+
};
|
|
5242
|
+
const deserializeAws_json1_1DescribeRecommendationsResponse = (output, context) => {
|
|
5243
|
+
return {
|
|
5244
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5245
|
+
Recommendations: output.Recommendations != null
|
|
5246
|
+
? deserializeAws_json1_1RecommendationList(output.Recommendations, context)
|
|
5247
|
+
: undefined,
|
|
5248
|
+
};
|
|
5249
|
+
};
|
|
4976
5250
|
const deserializeAws_json1_1DescribeRefreshSchemasStatusResponse = (output, context) => {
|
|
4977
5251
|
return {
|
|
4978
5252
|
RefreshSchemasStatus: output.RefreshSchemasStatus != null
|
|
@@ -5482,6 +5756,27 @@ const deserializeAws_json1_1KMSThrottlingFault = (output, context) => {
|
|
|
5482
5756
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
5483
5757
|
};
|
|
5484
5758
|
};
|
|
5759
|
+
const deserializeAws_json1_1Limitation = (output, context) => {
|
|
5760
|
+
return {
|
|
5761
|
+
DatabaseId: (0, smithy_client_1.expectString)(output.DatabaseId),
|
|
5762
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5763
|
+
EngineName: (0, smithy_client_1.expectString)(output.EngineName),
|
|
5764
|
+
Impact: (0, smithy_client_1.expectString)(output.Impact),
|
|
5765
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5766
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
5767
|
+
};
|
|
5768
|
+
};
|
|
5769
|
+
const deserializeAws_json1_1LimitationList = (output, context) => {
|
|
5770
|
+
const retVal = (output || [])
|
|
5771
|
+
.filter((e) => e != null)
|
|
5772
|
+
.map((entry) => {
|
|
5773
|
+
if (entry === null) {
|
|
5774
|
+
return null;
|
|
5775
|
+
}
|
|
5776
|
+
return deserializeAws_json1_1Limitation(entry, context);
|
|
5777
|
+
});
|
|
5778
|
+
return retVal;
|
|
5779
|
+
};
|
|
5485
5780
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
5486
5781
|
return {
|
|
5487
5782
|
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
@@ -5727,6 +6022,38 @@ const deserializeAws_json1_1PostgreSQLSettings = (output, context) => {
|
|
|
5727
6022
|
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
5728
6023
|
};
|
|
5729
6024
|
};
|
|
6025
|
+
const deserializeAws_json1_1RdsConfiguration = (output, context) => {
|
|
6026
|
+
return {
|
|
6027
|
+
DeploymentOption: (0, smithy_client_1.expectString)(output.DeploymentOption),
|
|
6028
|
+
EngineEdition: (0, smithy_client_1.expectString)(output.EngineEdition),
|
|
6029
|
+
InstanceMemory: (0, smithy_client_1.limitedParseDouble)(output.InstanceMemory),
|
|
6030
|
+
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
6031
|
+
InstanceVcpu: (0, smithy_client_1.limitedParseDouble)(output.InstanceVcpu),
|
|
6032
|
+
StorageIops: (0, smithy_client_1.expectInt32)(output.StorageIops),
|
|
6033
|
+
StorageSize: (0, smithy_client_1.expectInt32)(output.StorageSize),
|
|
6034
|
+
StorageType: (0, smithy_client_1.expectString)(output.StorageType),
|
|
6035
|
+
};
|
|
6036
|
+
};
|
|
6037
|
+
const deserializeAws_json1_1RdsRecommendation = (output, context) => {
|
|
6038
|
+
return {
|
|
6039
|
+
RequirementsToTarget: output.RequirementsToTarget != null
|
|
6040
|
+
? deserializeAws_json1_1RdsRequirements(output.RequirementsToTarget, context)
|
|
6041
|
+
: undefined,
|
|
6042
|
+
TargetConfiguration: output.TargetConfiguration != null
|
|
6043
|
+
? deserializeAws_json1_1RdsConfiguration(output.TargetConfiguration, context)
|
|
6044
|
+
: undefined,
|
|
6045
|
+
};
|
|
6046
|
+
};
|
|
6047
|
+
const deserializeAws_json1_1RdsRequirements = (output, context) => {
|
|
6048
|
+
return {
|
|
6049
|
+
DeploymentOption: (0, smithy_client_1.expectString)(output.DeploymentOption),
|
|
6050
|
+
EngineEdition: (0, smithy_client_1.expectString)(output.EngineEdition),
|
|
6051
|
+
InstanceMemory: (0, smithy_client_1.limitedParseDouble)(output.InstanceMemory),
|
|
6052
|
+
InstanceVcpu: (0, smithy_client_1.limitedParseDouble)(output.InstanceVcpu),
|
|
6053
|
+
StorageIops: (0, smithy_client_1.expectInt32)(output.StorageIops),
|
|
6054
|
+
StorageSize: (0, smithy_client_1.expectInt32)(output.StorageSize),
|
|
6055
|
+
};
|
|
6056
|
+
};
|
|
5730
6057
|
const deserializeAws_json1_1RebootReplicationInstanceResponse = (output, context) => {
|
|
5731
6058
|
return {
|
|
5732
6059
|
ReplicationInstance: output.ReplicationInstance != null
|
|
@@ -5734,6 +6061,39 @@ const deserializeAws_json1_1RebootReplicationInstanceResponse = (output, context
|
|
|
5734
6061
|
: undefined,
|
|
5735
6062
|
};
|
|
5736
6063
|
};
|
|
6064
|
+
const deserializeAws_json1_1Recommendation = (output, context) => {
|
|
6065
|
+
return {
|
|
6066
|
+
CreatedDate: (0, smithy_client_1.expectString)(output.CreatedDate),
|
|
6067
|
+
Data: output.Data != null ? deserializeAws_json1_1RecommendationData(output.Data, context) : undefined,
|
|
6068
|
+
DatabaseId: (0, smithy_client_1.expectString)(output.DatabaseId),
|
|
6069
|
+
EngineName: (0, smithy_client_1.expectString)(output.EngineName),
|
|
6070
|
+
Preferred: (0, smithy_client_1.expectBoolean)(output.Preferred),
|
|
6071
|
+
Settings: output.Settings != null ? deserializeAws_json1_1RecommendationSettings(output.Settings, context) : undefined,
|
|
6072
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6073
|
+
};
|
|
6074
|
+
};
|
|
6075
|
+
const deserializeAws_json1_1RecommendationData = (output, context) => {
|
|
6076
|
+
return {
|
|
6077
|
+
RdsEngine: output.RdsEngine != null ? deserializeAws_json1_1RdsRecommendation(output.RdsEngine, context) : undefined,
|
|
6078
|
+
};
|
|
6079
|
+
};
|
|
6080
|
+
const deserializeAws_json1_1RecommendationList = (output, context) => {
|
|
6081
|
+
const retVal = (output || [])
|
|
6082
|
+
.filter((e) => e != null)
|
|
6083
|
+
.map((entry) => {
|
|
6084
|
+
if (entry === null) {
|
|
6085
|
+
return null;
|
|
6086
|
+
}
|
|
6087
|
+
return deserializeAws_json1_1Recommendation(entry, context);
|
|
6088
|
+
});
|
|
6089
|
+
return retVal;
|
|
6090
|
+
};
|
|
6091
|
+
const deserializeAws_json1_1RecommendationSettings = (output, context) => {
|
|
6092
|
+
return {
|
|
6093
|
+
InstanceSizingType: (0, smithy_client_1.expectString)(output.InstanceSizingType),
|
|
6094
|
+
WorkloadType: (0, smithy_client_1.expectString)(output.WorkloadType),
|
|
6095
|
+
};
|
|
6096
|
+
};
|
|
5737
6097
|
const deserializeAws_json1_1RedisSettings = (output, context) => {
|
|
5738
6098
|
return {
|
|
5739
6099
|
AuthPassword: (0, smithy_client_1.expectString)(output.AuthPassword),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddTagsToResourceCommand, } from "./commands/AddTagsToResourceCommand";
|
|
2
2
|
import { ApplyPendingMaintenanceActionCommand, } from "./commands/ApplyPendingMaintenanceActionCommand";
|
|
3
|
+
import { BatchStartRecommendationsCommand, } from "./commands/BatchStartRecommendationsCommand";
|
|
3
4
|
import { CancelReplicationTaskAssessmentRunCommand, } from "./commands/CancelReplicationTaskAssessmentRunCommand";
|
|
4
5
|
import { CreateEndpointCommand, } from "./commands/CreateEndpointCommand";
|
|
5
6
|
import { CreateEventSubscriptionCommand, } from "./commands/CreateEventSubscriptionCommand";
|
|
@@ -34,6 +35,8 @@ import { DescribeFleetAdvisorSchemaObjectSummaryCommand, } from "./commands/Desc
|
|
|
34
35
|
import { DescribeFleetAdvisorSchemasCommand, } from "./commands/DescribeFleetAdvisorSchemasCommand";
|
|
35
36
|
import { DescribeOrderableReplicationInstancesCommand, } from "./commands/DescribeOrderableReplicationInstancesCommand";
|
|
36
37
|
import { DescribePendingMaintenanceActionsCommand, } from "./commands/DescribePendingMaintenanceActionsCommand";
|
|
38
|
+
import { DescribeRecommendationLimitationsCommand, } from "./commands/DescribeRecommendationLimitationsCommand";
|
|
39
|
+
import { DescribeRecommendationsCommand, } from "./commands/DescribeRecommendationsCommand";
|
|
37
40
|
import { DescribeRefreshSchemasStatusCommand, } from "./commands/DescribeRefreshSchemasStatusCommand";
|
|
38
41
|
import { DescribeReplicationInstancesCommand, } from "./commands/DescribeReplicationInstancesCommand";
|
|
39
42
|
import { DescribeReplicationInstanceTaskLogsCommand, } from "./commands/DescribeReplicationInstanceTaskLogsCommand";
|
|
@@ -57,6 +60,7 @@ import { RefreshSchemasCommand, } from "./commands/RefreshSchemasCommand";
|
|
|
57
60
|
import { ReloadTablesCommand, } from "./commands/ReloadTablesCommand";
|
|
58
61
|
import { RemoveTagsFromResourceCommand, } from "./commands/RemoveTagsFromResourceCommand";
|
|
59
62
|
import { RunFleetAdvisorLsaAnalysisCommand, } from "./commands/RunFleetAdvisorLsaAnalysisCommand";
|
|
63
|
+
import { StartRecommendationsCommand, } from "./commands/StartRecommendationsCommand";
|
|
60
64
|
import { StartReplicationTaskAssessmentCommand, } from "./commands/StartReplicationTaskAssessmentCommand";
|
|
61
65
|
import { StartReplicationTaskAssessmentRunCommand, } from "./commands/StartReplicationTaskAssessmentRunCommand";
|
|
62
66
|
import { StartReplicationTaskCommand, } from "./commands/StartReplicationTaskCommand";
|
|
@@ -93,6 +97,20 @@ export class DatabaseMigrationService extends DatabaseMigrationServiceClient {
|
|
|
93
97
|
return this.send(command, optionsOrCb);
|
|
94
98
|
}
|
|
95
99
|
}
|
|
100
|
+
batchStartRecommendations(args, optionsOrCb, cb) {
|
|
101
|
+
const command = new BatchStartRecommendationsCommand(args);
|
|
102
|
+
if (typeof optionsOrCb === "function") {
|
|
103
|
+
this.send(command, optionsOrCb);
|
|
104
|
+
}
|
|
105
|
+
else if (typeof cb === "function") {
|
|
106
|
+
if (typeof optionsOrCb !== "object")
|
|
107
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
return this.send(command, optionsOrCb);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
96
114
|
cancelReplicationTaskAssessmentRun(args, optionsOrCb, cb) {
|
|
97
115
|
const command = new CancelReplicationTaskAssessmentRunCommand(args);
|
|
98
116
|
if (typeof optionsOrCb === "function") {
|
|
@@ -569,6 +587,34 @@ export class DatabaseMigrationService extends DatabaseMigrationServiceClient {
|
|
|
569
587
|
return this.send(command, optionsOrCb);
|
|
570
588
|
}
|
|
571
589
|
}
|
|
590
|
+
describeRecommendationLimitations(args, optionsOrCb, cb) {
|
|
591
|
+
const command = new DescribeRecommendationLimitationsCommand(args);
|
|
592
|
+
if (typeof optionsOrCb === "function") {
|
|
593
|
+
this.send(command, optionsOrCb);
|
|
594
|
+
}
|
|
595
|
+
else if (typeof cb === "function") {
|
|
596
|
+
if (typeof optionsOrCb !== "object")
|
|
597
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
598
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
return this.send(command, optionsOrCb);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
describeRecommendations(args, optionsOrCb, cb) {
|
|
605
|
+
const command = new DescribeRecommendationsCommand(args);
|
|
606
|
+
if (typeof optionsOrCb === "function") {
|
|
607
|
+
this.send(command, optionsOrCb);
|
|
608
|
+
}
|
|
609
|
+
else if (typeof cb === "function") {
|
|
610
|
+
if (typeof optionsOrCb !== "object")
|
|
611
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
612
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
613
|
+
}
|
|
614
|
+
else {
|
|
615
|
+
return this.send(command, optionsOrCb);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
572
618
|
describeRefreshSchemasStatus(args, optionsOrCb, cb) {
|
|
573
619
|
const command = new DescribeRefreshSchemasStatusCommand(args);
|
|
574
620
|
if (typeof optionsOrCb === "function") {
|
|
@@ -891,6 +937,20 @@ export class DatabaseMigrationService extends DatabaseMigrationServiceClient {
|
|
|
891
937
|
return this.send(command, optionsOrCb);
|
|
892
938
|
}
|
|
893
939
|
}
|
|
940
|
+
startRecommendations(args, optionsOrCb, cb) {
|
|
941
|
+
const command = new StartRecommendationsCommand(args);
|
|
942
|
+
if (typeof optionsOrCb === "function") {
|
|
943
|
+
this.send(command, optionsOrCb);
|
|
944
|
+
}
|
|
945
|
+
else if (typeof cb === "function") {
|
|
946
|
+
if (typeof optionsOrCb !== "object")
|
|
947
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
948
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
949
|
+
}
|
|
950
|
+
else {
|
|
951
|
+
return this.send(command, optionsOrCb);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
894
954
|
startReplicationTask(args, optionsOrCb, cb) {
|
|
895
955
|
const command = new StartReplicationTaskCommand(args);
|
|
896
956
|
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 { BatchStartRecommendationsRequestFilterSensitiveLog, BatchStartRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1BatchStartRecommendationsCommand, serializeAws_json1_1BatchStartRecommendationsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class BatchStartRecommendationsCommand 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, BatchStartRecommendationsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "DatabaseMigrationServiceClient";
|
|
25
|
+
const commandName = "BatchStartRecommendationsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: BatchStartRecommendationsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: BatchStartRecommendationsResponseFilterSensitiveLog,
|
|
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_1BatchStartRecommendationsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1BatchStartRecommendationsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|