@aws-sdk/client-database-migration-service 3.379.1 → 3.382.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.
Files changed (32) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/DatabaseMigrationService.js +2 -0
  3. package/dist-cjs/commands/DescribeEngineVersionsCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +6 -6
  6. package/dist-cjs/pagination/DescribeEngineVersionsPaginator.js +29 -0
  7. package/dist-cjs/pagination/index.js +2 -1
  8. package/dist-cjs/protocols/Aws_json1_1.js +64 -4
  9. package/dist-es/DatabaseMigrationService.js +2 -0
  10. package/dist-es/commands/DescribeEngineVersionsCommand.js +42 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_0.js +4 -4
  13. package/dist-es/pagination/DescribeEngineVersionsPaginator.js +25 -0
  14. package/dist-es/pagination/index.js +2 -1
  15. package/dist-es/protocols/Aws_json1_1.js +58 -0
  16. package/dist-types/DatabaseMigrationService.d.ts +7 -0
  17. package/dist-types/DatabaseMigrationServiceClient.d.ts +3 -2
  18. package/dist-types/commands/DescribeEngineVersionsCommand.d.ts +88 -0
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/models_0.d.ts +1221 -15
  21. package/dist-types/pagination/DescribeEngineVersionsPaginator.d.ts +7 -0
  22. package/dist-types/pagination/index.d.ts +2 -1
  23. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  24. package/dist-types/ts3.4/DatabaseMigrationService.d.ts +17 -0
  25. package/dist-types/ts3.4/DatabaseMigrationServiceClient.d.ts +6 -0
  26. package/dist-types/ts3.4/commands/DescribeEngineVersionsCommand.d.ts +42 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +24 -6
  29. package/dist-types/ts3.4/pagination/DescribeEngineVersionsPaginator.d.ts +11 -0
  30. package/dist-types/ts3.4/pagination/index.d.ts +2 -1
  31. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  32. package/package.json +5 -5
package/README.md CHANGED
@@ -447,6 +447,14 @@ DescribeEndpointTypes
447
447
 
448
448
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-database-migration-service/classes/describeendpointtypescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-database-migration-service/interfaces/describeendpointtypescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-database-migration-service/interfaces/describeendpointtypescommandoutput.html)
449
449
 
450
+ </details>
451
+ <details>
452
+ <summary>
453
+ DescribeEngineVersions
454
+ </summary>
455
+
456
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-database-migration-service/classes/describeengineversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-database-migration-service/interfaces/describeengineversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-database-migration-service/interfaces/describeengineversionscommandoutput.html)
457
+
450
458
  </details>
451
459
  <details>
452
460
  <summary>
@@ -31,6 +31,7 @@ const DescribeConnectionsCommand_1 = require("./commands/DescribeConnectionsComm
31
31
  const DescribeEndpointsCommand_1 = require("./commands/DescribeEndpointsCommand");
32
32
  const DescribeEndpointSettingsCommand_1 = require("./commands/DescribeEndpointSettingsCommand");
33
33
  const DescribeEndpointTypesCommand_1 = require("./commands/DescribeEndpointTypesCommand");
34
+ const DescribeEngineVersionsCommand_1 = require("./commands/DescribeEngineVersionsCommand");
34
35
  const DescribeEventCategoriesCommand_1 = require("./commands/DescribeEventCategoriesCommand");
35
36
  const DescribeEventsCommand_1 = require("./commands/DescribeEventsCommand");
36
37
  const DescribeEventSubscriptionsCommand_1 = require("./commands/DescribeEventSubscriptionsCommand");
@@ -111,6 +112,7 @@ const commands = {
111
112
  DescribeEndpointsCommand: DescribeEndpointsCommand_1.DescribeEndpointsCommand,
112
113
  DescribeEndpointSettingsCommand: DescribeEndpointSettingsCommand_1.DescribeEndpointSettingsCommand,
113
114
  DescribeEndpointTypesCommand: DescribeEndpointTypesCommand_1.DescribeEndpointTypesCommand,
115
+ DescribeEngineVersionsCommand: DescribeEngineVersionsCommand_1.DescribeEngineVersionsCommand,
114
116
  DescribeEventCategoriesCommand: DescribeEventCategoriesCommand_1.DescribeEventCategoriesCommand,
115
117
  DescribeEventsCommand: DescribeEventsCommand_1.DescribeEventsCommand,
116
118
  DescribeEventSubscriptionsCommand: DescribeEventSubscriptionsCommand_1.DescribeEventSubscriptionsCommand,
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeEngineVersionsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class DescribeEngineVersionsCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeEngineVersionsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "DatabaseMigrationServiceClient";
28
+ const commandName = "DescribeEngineVersionsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_DescribeEngineVersionsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_DescribeEngineVersionsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.DescribeEngineVersionsCommand = DescribeEngineVersionsCommand;
@@ -30,6 +30,7 @@ tslib_1.__exportStar(require("./DescribeConnectionsCommand"), exports);
30
30
  tslib_1.__exportStar(require("./DescribeEndpointSettingsCommand"), exports);
31
31
  tslib_1.__exportStar(require("./DescribeEndpointTypesCommand"), exports);
32
32
  tslib_1.__exportStar(require("./DescribeEndpointsCommand"), exports);
33
+ tslib_1.__exportStar(require("./DescribeEngineVersionsCommand"), exports);
33
34
  tslib_1.__exportStar(require("./DescribeEventCategoriesCommand"), exports);
34
35
  tslib_1.__exportStar(require("./DescribeEventSubscriptionsCommand"), exports);
35
36
  tslib_1.__exportStar(require("./DescribeEventsCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SourceType = exports.EndpointSettingTypeValue = exports.InvalidOperationFault = exports.CollectorNotFoundFault = exports.StorageQuotaExceededFault = exports.InsufficientResourceCapacityFault = exports.ReplicationSubnetGroupDoesNotCoverEnoughAZs = exports.InvalidSubnet = exports.MigrationTypeValue = exports.S3ResourceNotFoundFault = exports.SNSNoAuthorizationFault = exports.SNSInvalidTopicFault = exports.KMSThrottlingFault = exports.KMSNotFoundFault = exports.KMSInvalidStateFault = exports.KMSDisabledFault = exports.KMSAccessDeniedFault = exports.S3AccessDeniedFault = exports.ResourceQuotaExceededFault = exports.ResourceAlreadyExistsFault = exports.KMSKeyNotAccessibleFault = exports.DmsSslModeValue = exports.ParquetVersionValue = exports.EncodingTypeValue = exports.DatePartitionSequenceValue = exports.DatePartitionDelimiterValue = exports.DataFormatValue = exports.CompressionTypeValue = exports.CannedAclForObjectsValue = exports.EncryptionModeValue = exports.SslSecurityProtocolValue = exports.RedisAuthTypeValue = exports.PluginNameValue = exports.LongVarcharMappingType = exports.DatabaseMode = exports.CharLengthSemantics = exports.AuthTypeValue = exports.AuthMechanismValue = exports.TlogAccessMode = exports.SafeguardPolicy = exports.KafkaSslEndpointIdentificationAlgorithm = exports.KafkaSecurityProtocol = exports.KafkaSaslMechanism = exports.MessageFormatValue = exports.TargetDbType = exports.ReplicationEndpointTypeValue = exports.NestingLevelValue = exports.InvalidResourceStateFault = exports.ResourceNotFoundFault = exports.AccessDeniedFault = void 0;
4
- exports.ModifyEndpointResponseFilterSensitiveLog = exports.ModifyEndpointMessageFilterSensitiveLog = exports.ImportCertificateMessageFilterSensitiveLog = exports.DescribeEndpointsResponseFilterSensitiveLog = exports.DeleteEndpointResponseFilterSensitiveLog = exports.CreateEndpointResponseFilterSensitiveLog = exports.EndpointFilterSensitiveLog = exports.CreateEndpointMessageFilterSensitiveLog = exports.SybaseSettingsFilterSensitiveLog = exports.RedshiftSettingsFilterSensitiveLog = exports.RedisSettingsFilterSensitiveLog = exports.PostgreSQLSettingsFilterSensitiveLog = exports.OracleSettingsFilterSensitiveLog = exports.MySQLSettingsFilterSensitiveLog = exports.MongoDbSettingsFilterSensitiveLog = exports.MicrosoftSQLServerSettingsFilterSensitiveLog = exports.KafkaSettingsFilterSensitiveLog = exports.IBMDb2SettingsFilterSensitiveLog = exports.GcpMySQLSettingsFilterSensitiveLog = exports.DocDbSettingsFilterSensitiveLog = exports.KMSFault = exports.StartReplicationTaskTypeValue = exports.ReloadOptionValue = exports.SubnetAlreadyInUse = exports.UpgradeDependencyFailureFault = exports.InvalidCertificateFault = exports.RefreshSchemasStatusTypeValue = exports.ReleaseStatusValues = exports.VersionStatus = exports.CollectorStatus = void 0;
3
+ exports.ReleaseStatusValues = exports.EndpointSettingTypeValue = exports.InvalidOperationFault = exports.CollectorNotFoundFault = exports.StorageQuotaExceededFault = exports.InsufficientResourceCapacityFault = exports.ReplicationSubnetGroupDoesNotCoverEnoughAZs = exports.InvalidSubnet = exports.MigrationTypeValue = exports.S3ResourceNotFoundFault = exports.SNSNoAuthorizationFault = exports.SNSInvalidTopicFault = exports.KMSThrottlingFault = exports.KMSNotFoundFault = exports.KMSInvalidStateFault = exports.KMSDisabledFault = exports.KMSAccessDeniedFault = exports.S3AccessDeniedFault = exports.ResourceQuotaExceededFault = exports.ResourceAlreadyExistsFault = exports.KMSKeyNotAccessibleFault = exports.DmsSslModeValue = exports.ParquetVersionValue = exports.EncodingTypeValue = exports.DatePartitionSequenceValue = exports.DatePartitionDelimiterValue = exports.DataFormatValue = exports.CompressionTypeValue = exports.CannedAclForObjectsValue = exports.EncryptionModeValue = exports.SslSecurityProtocolValue = exports.RedisAuthTypeValue = exports.PluginNameValue = exports.LongVarcharMappingType = exports.DatabaseMode = exports.CharLengthSemantics = exports.AuthTypeValue = exports.AuthMechanismValue = exports.TlogAccessMode = exports.SafeguardPolicy = exports.KafkaSslEndpointIdentificationAlgorithm = exports.KafkaSecurityProtocol = exports.KafkaSaslMechanism = exports.MessageFormatValue = exports.TargetDbType = exports.ReplicationEndpointTypeValue = exports.NestingLevelValue = exports.InvalidResourceStateFault = exports.ResourceNotFoundFault = exports.AccessDeniedFault = void 0;
4
+ exports.ModifyEndpointResponseFilterSensitiveLog = exports.ModifyEndpointMessageFilterSensitiveLog = exports.ImportCertificateMessageFilterSensitiveLog = exports.DescribeEndpointsResponseFilterSensitiveLog = exports.DeleteEndpointResponseFilterSensitiveLog = exports.CreateEndpointResponseFilterSensitiveLog = exports.EndpointFilterSensitiveLog = exports.CreateEndpointMessageFilterSensitiveLog = exports.SybaseSettingsFilterSensitiveLog = exports.RedshiftSettingsFilterSensitiveLog = exports.RedisSettingsFilterSensitiveLog = exports.PostgreSQLSettingsFilterSensitiveLog = exports.OracleSettingsFilterSensitiveLog = exports.MySQLSettingsFilterSensitiveLog = exports.MongoDbSettingsFilterSensitiveLog = exports.MicrosoftSQLServerSettingsFilterSensitiveLog = exports.KafkaSettingsFilterSensitiveLog = exports.IBMDb2SettingsFilterSensitiveLog = exports.GcpMySQLSettingsFilterSensitiveLog = exports.DocDbSettingsFilterSensitiveLog = exports.KMSFault = exports.StartReplicationTaskTypeValue = exports.ReloadOptionValue = exports.SubnetAlreadyInUse = exports.UpgradeDependencyFailureFault = exports.InvalidCertificateFault = exports.RefreshSchemasStatusTypeValue = exports.VersionStatus = exports.CollectorStatus = exports.SourceType = void 0;
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const DatabaseMigrationServiceServiceException_1 = require("./DatabaseMigrationServiceServiceException");
7
7
  class AccessDeniedFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
@@ -417,6 +417,10 @@ exports.EndpointSettingTypeValue = {
417
417
  INTEGER: "integer",
418
418
  STRING: "string",
419
419
  };
420
+ exports.ReleaseStatusValues = {
421
+ BETA: "beta",
422
+ PROD: "prod",
423
+ };
420
424
  exports.SourceType = {
421
425
  replication_instance: "replication-instance",
422
426
  };
@@ -429,10 +433,6 @@ exports.VersionStatus = {
429
433
  UNSUPPORTED: "UNSUPPORTED",
430
434
  UP_TO_DATE: "UP_TO_DATE",
431
435
  };
432
- exports.ReleaseStatusValues = {
433
- BETA: "beta",
434
- PROD: "prod",
435
- };
436
436
  exports.RefreshSchemasStatusTypeValue = {
437
437
  FAILED: "failed",
438
438
  REFRESHING: "refreshing",
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeEngineVersions = void 0;
4
+ const DescribeEngineVersionsCommand_1 = require("../commands/DescribeEngineVersionsCommand");
5
+ const DatabaseMigrationServiceClient_1 = require("../DatabaseMigrationServiceClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new DescribeEngineVersionsCommand_1.DescribeEngineVersionsCommand(input), ...args);
8
+ };
9
+ async function* paginateDescribeEngineVersions(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.Marker = token;
15
+ input["MaxRecords"] = config.pageSize;
16
+ if (config.client instanceof DatabaseMigrationServiceClient_1.DatabaseMigrationServiceClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected DatabaseMigrationService | DatabaseMigrationServiceClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.Marker;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateDescribeEngineVersions = paginateDescribeEngineVersions;
@@ -7,11 +7,12 @@ tslib_1.__exportStar(require("./DescribeConnectionsPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./DescribeEndpointSettingsPaginator"), exports);
8
8
  tslib_1.__exportStar(require("./DescribeEndpointTypesPaginator"), exports);
9
9
  tslib_1.__exportStar(require("./DescribeEndpointsPaginator"), exports);
10
+ tslib_1.__exportStar(require("./DescribeEngineVersionsPaginator"), exports);
10
11
  tslib_1.__exportStar(require("./DescribeEventSubscriptionsPaginator"), exports);
11
12
  tslib_1.__exportStar(require("./DescribeEventsPaginator"), exports);
12
13
  tslib_1.__exportStar(require("./DescribeFleetAdvisorCollectorsPaginator"), exports);
13
- tslib_1.__exportStar(require("./DescribeFleetAdvisorDatabasesPaginator"), exports);
14
14
  tslib_1.__exportStar(require("./Interfaces"), exports);
15
+ tslib_1.__exportStar(require("./DescribeFleetAdvisorDatabasesPaginator"), exports);
15
16
  tslib_1.__exportStar(require("./DescribeFleetAdvisorLsaAnalysisPaginator"), exports);
16
17
  tslib_1.__exportStar(require("./DescribeFleetAdvisorSchemaObjectSummaryPaginator"), exports);
17
18
  tslib_1.__exportStar(require("./DescribeFleetAdvisorSchemasPaginator"), exports);
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_DescribeReplicationTaskAssessmentRunsCommand = exports.se_DescribeReplicationTaskAssessmentResultsCommand = exports.se_DescribeReplicationTableStatisticsCommand = exports.se_DescribeReplicationSubnetGroupsCommand = exports.se_DescribeReplicationsCommand = exports.se_DescribeReplicationInstanceTaskLogsCommand = exports.se_DescribeReplicationInstancesCommand = exports.se_DescribeReplicationConfigsCommand = exports.se_DescribeRefreshSchemasStatusCommand = exports.se_DescribeRecommendationsCommand = exports.se_DescribeRecommendationLimitationsCommand = exports.se_DescribePendingMaintenanceActionsCommand = exports.se_DescribeOrderableReplicationInstancesCommand = exports.se_DescribeFleetAdvisorSchemasCommand = exports.se_DescribeFleetAdvisorSchemaObjectSummaryCommand = exports.se_DescribeFleetAdvisorLsaAnalysisCommand = exports.se_DescribeFleetAdvisorDatabasesCommand = exports.se_DescribeFleetAdvisorCollectorsCommand = exports.se_DescribeEventSubscriptionsCommand = exports.se_DescribeEventsCommand = exports.se_DescribeEventCategoriesCommand = exports.se_DescribeEndpointTypesCommand = exports.se_DescribeEndpointSettingsCommand = exports.se_DescribeEndpointsCommand = exports.se_DescribeConnectionsCommand = exports.se_DescribeCertificatesCommand = exports.se_DescribeApplicableIndividualAssessmentsCommand = exports.se_DescribeAccountAttributesCommand = exports.se_DeleteReplicationTaskAssessmentRunCommand = exports.se_DeleteReplicationTaskCommand = exports.se_DeleteReplicationSubnetGroupCommand = exports.se_DeleteReplicationInstanceCommand = exports.se_DeleteReplicationConfigCommand = exports.se_DeleteFleetAdvisorDatabasesCommand = exports.se_DeleteFleetAdvisorCollectorCommand = exports.se_DeleteEventSubscriptionCommand = exports.se_DeleteEndpointCommand = exports.se_DeleteConnectionCommand = exports.se_DeleteCertificateCommand = exports.se_CreateReplicationTaskCommand = exports.se_CreateReplicationSubnetGroupCommand = exports.se_CreateReplicationInstanceCommand = exports.se_CreateReplicationConfigCommand = exports.se_CreateFleetAdvisorCollectorCommand = exports.se_CreateEventSubscriptionCommand = exports.se_CreateEndpointCommand = exports.se_CancelReplicationTaskAssessmentRunCommand = exports.se_BatchStartRecommendationsCommand = exports.se_ApplyPendingMaintenanceActionCommand = exports.se_AddTagsToResourceCommand = void 0;
4
- exports.de_DeleteReplicationTaskAssessmentRunCommand = exports.de_DeleteReplicationTaskCommand = exports.de_DeleteReplicationSubnetGroupCommand = exports.de_DeleteReplicationInstanceCommand = exports.de_DeleteReplicationConfigCommand = exports.de_DeleteFleetAdvisorDatabasesCommand = exports.de_DeleteFleetAdvisorCollectorCommand = exports.de_DeleteEventSubscriptionCommand = exports.de_DeleteEndpointCommand = exports.de_DeleteConnectionCommand = exports.de_DeleteCertificateCommand = exports.de_CreateReplicationTaskCommand = exports.de_CreateReplicationSubnetGroupCommand = exports.de_CreateReplicationInstanceCommand = exports.de_CreateReplicationConfigCommand = exports.de_CreateFleetAdvisorCollectorCommand = exports.de_CreateEventSubscriptionCommand = exports.de_CreateEndpointCommand = exports.de_CancelReplicationTaskAssessmentRunCommand = exports.de_BatchStartRecommendationsCommand = exports.de_ApplyPendingMaintenanceActionCommand = exports.de_AddTagsToResourceCommand = exports.se_UpdateSubscriptionsToEventBridgeCommand = exports.se_TestConnectionCommand = exports.se_StopReplicationTaskCommand = exports.se_StopReplicationCommand = exports.se_StartReplicationTaskAssessmentRunCommand = exports.se_StartReplicationTaskAssessmentCommand = exports.se_StartReplicationTaskCommand = exports.se_StartReplicationCommand = exports.se_StartRecommendationsCommand = exports.se_RunFleetAdvisorLsaAnalysisCommand = exports.se_RemoveTagsFromResourceCommand = exports.se_ReloadTablesCommand = exports.se_ReloadReplicationTablesCommand = exports.se_RefreshSchemasCommand = exports.se_RebootReplicationInstanceCommand = exports.se_MoveReplicationTaskCommand = exports.se_ModifyReplicationTaskCommand = exports.se_ModifyReplicationSubnetGroupCommand = exports.se_ModifyReplicationInstanceCommand = exports.se_ModifyReplicationConfigCommand = exports.se_ModifyEventSubscriptionCommand = exports.se_ModifyEndpointCommand = exports.se_ListTagsForResourceCommand = exports.se_ImportCertificateCommand = exports.se_DescribeTableStatisticsCommand = exports.se_DescribeSchemasCommand = exports.se_DescribeReplicationTasksCommand = exports.se_DescribeReplicationTaskIndividualAssessmentsCommand = void 0;
5
- exports.de_StartReplicationTaskCommand = exports.de_StartReplicationCommand = exports.de_StartRecommendationsCommand = exports.de_RunFleetAdvisorLsaAnalysisCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_ReloadTablesCommand = exports.de_ReloadReplicationTablesCommand = exports.de_RefreshSchemasCommand = exports.de_RebootReplicationInstanceCommand = exports.de_MoveReplicationTaskCommand = exports.de_ModifyReplicationTaskCommand = exports.de_ModifyReplicationSubnetGroupCommand = exports.de_ModifyReplicationInstanceCommand = exports.de_ModifyReplicationConfigCommand = exports.de_ModifyEventSubscriptionCommand = exports.de_ModifyEndpointCommand = exports.de_ListTagsForResourceCommand = exports.de_ImportCertificateCommand = exports.de_DescribeTableStatisticsCommand = exports.de_DescribeSchemasCommand = exports.de_DescribeReplicationTasksCommand = exports.de_DescribeReplicationTaskIndividualAssessmentsCommand = exports.de_DescribeReplicationTaskAssessmentRunsCommand = exports.de_DescribeReplicationTaskAssessmentResultsCommand = exports.de_DescribeReplicationTableStatisticsCommand = exports.de_DescribeReplicationSubnetGroupsCommand = exports.de_DescribeReplicationsCommand = exports.de_DescribeReplicationInstanceTaskLogsCommand = exports.de_DescribeReplicationInstancesCommand = exports.de_DescribeReplicationConfigsCommand = exports.de_DescribeRefreshSchemasStatusCommand = exports.de_DescribeRecommendationsCommand = exports.de_DescribeRecommendationLimitationsCommand = exports.de_DescribePendingMaintenanceActionsCommand = exports.de_DescribeOrderableReplicationInstancesCommand = exports.de_DescribeFleetAdvisorSchemasCommand = exports.de_DescribeFleetAdvisorSchemaObjectSummaryCommand = exports.de_DescribeFleetAdvisorLsaAnalysisCommand = exports.de_DescribeFleetAdvisorDatabasesCommand = exports.de_DescribeFleetAdvisorCollectorsCommand = exports.de_DescribeEventSubscriptionsCommand = exports.de_DescribeEventsCommand = exports.de_DescribeEventCategoriesCommand = exports.de_DescribeEndpointTypesCommand = exports.de_DescribeEndpointSettingsCommand = exports.de_DescribeEndpointsCommand = exports.de_DescribeConnectionsCommand = exports.de_DescribeCertificatesCommand = exports.de_DescribeApplicableIndividualAssessmentsCommand = exports.de_DescribeAccountAttributesCommand = void 0;
6
- exports.de_UpdateSubscriptionsToEventBridgeCommand = exports.de_TestConnectionCommand = exports.de_StopReplicationTaskCommand = exports.de_StopReplicationCommand = exports.de_StartReplicationTaskAssessmentRunCommand = exports.de_StartReplicationTaskAssessmentCommand = void 0;
3
+ exports.se_DescribeReplicationTaskAssessmentResultsCommand = exports.se_DescribeReplicationTableStatisticsCommand = exports.se_DescribeReplicationSubnetGroupsCommand = exports.se_DescribeReplicationsCommand = exports.se_DescribeReplicationInstanceTaskLogsCommand = exports.se_DescribeReplicationInstancesCommand = exports.se_DescribeReplicationConfigsCommand = exports.se_DescribeRefreshSchemasStatusCommand = exports.se_DescribeRecommendationsCommand = exports.se_DescribeRecommendationLimitationsCommand = exports.se_DescribePendingMaintenanceActionsCommand = exports.se_DescribeOrderableReplicationInstancesCommand = exports.se_DescribeFleetAdvisorSchemasCommand = exports.se_DescribeFleetAdvisorSchemaObjectSummaryCommand = exports.se_DescribeFleetAdvisorLsaAnalysisCommand = exports.se_DescribeFleetAdvisorDatabasesCommand = exports.se_DescribeFleetAdvisorCollectorsCommand = exports.se_DescribeEventSubscriptionsCommand = exports.se_DescribeEventsCommand = exports.se_DescribeEventCategoriesCommand = exports.se_DescribeEngineVersionsCommand = exports.se_DescribeEndpointTypesCommand = exports.se_DescribeEndpointSettingsCommand = exports.se_DescribeEndpointsCommand = exports.se_DescribeConnectionsCommand = exports.se_DescribeCertificatesCommand = exports.se_DescribeApplicableIndividualAssessmentsCommand = exports.se_DescribeAccountAttributesCommand = exports.se_DeleteReplicationTaskAssessmentRunCommand = exports.se_DeleteReplicationTaskCommand = exports.se_DeleteReplicationSubnetGroupCommand = exports.se_DeleteReplicationInstanceCommand = exports.se_DeleteReplicationConfigCommand = exports.se_DeleteFleetAdvisorDatabasesCommand = exports.se_DeleteFleetAdvisorCollectorCommand = exports.se_DeleteEventSubscriptionCommand = exports.se_DeleteEndpointCommand = exports.se_DeleteConnectionCommand = exports.se_DeleteCertificateCommand = exports.se_CreateReplicationTaskCommand = exports.se_CreateReplicationSubnetGroupCommand = exports.se_CreateReplicationInstanceCommand = exports.se_CreateReplicationConfigCommand = exports.se_CreateFleetAdvisorCollectorCommand = exports.se_CreateEventSubscriptionCommand = exports.se_CreateEndpointCommand = exports.se_CancelReplicationTaskAssessmentRunCommand = exports.se_BatchStartRecommendationsCommand = exports.se_ApplyPendingMaintenanceActionCommand = exports.se_AddTagsToResourceCommand = void 0;
4
+ exports.de_DeleteReplicationTaskCommand = exports.de_DeleteReplicationSubnetGroupCommand = exports.de_DeleteReplicationInstanceCommand = exports.de_DeleteReplicationConfigCommand = exports.de_DeleteFleetAdvisorDatabasesCommand = exports.de_DeleteFleetAdvisorCollectorCommand = exports.de_DeleteEventSubscriptionCommand = exports.de_DeleteEndpointCommand = exports.de_DeleteConnectionCommand = exports.de_DeleteCertificateCommand = exports.de_CreateReplicationTaskCommand = exports.de_CreateReplicationSubnetGroupCommand = exports.de_CreateReplicationInstanceCommand = exports.de_CreateReplicationConfigCommand = exports.de_CreateFleetAdvisorCollectorCommand = exports.de_CreateEventSubscriptionCommand = exports.de_CreateEndpointCommand = exports.de_CancelReplicationTaskAssessmentRunCommand = exports.de_BatchStartRecommendationsCommand = exports.de_ApplyPendingMaintenanceActionCommand = exports.de_AddTagsToResourceCommand = exports.se_UpdateSubscriptionsToEventBridgeCommand = exports.se_TestConnectionCommand = exports.se_StopReplicationTaskCommand = exports.se_StopReplicationCommand = exports.se_StartReplicationTaskAssessmentRunCommand = exports.se_StartReplicationTaskAssessmentCommand = exports.se_StartReplicationTaskCommand = exports.se_StartReplicationCommand = exports.se_StartRecommendationsCommand = exports.se_RunFleetAdvisorLsaAnalysisCommand = exports.se_RemoveTagsFromResourceCommand = exports.se_ReloadTablesCommand = exports.se_ReloadReplicationTablesCommand = exports.se_RefreshSchemasCommand = exports.se_RebootReplicationInstanceCommand = exports.se_MoveReplicationTaskCommand = exports.se_ModifyReplicationTaskCommand = exports.se_ModifyReplicationSubnetGroupCommand = exports.se_ModifyReplicationInstanceCommand = exports.se_ModifyReplicationConfigCommand = exports.se_ModifyEventSubscriptionCommand = exports.se_ModifyEndpointCommand = exports.se_ListTagsForResourceCommand = exports.se_ImportCertificateCommand = exports.se_DescribeTableStatisticsCommand = exports.se_DescribeSchemasCommand = exports.se_DescribeReplicationTasksCommand = exports.se_DescribeReplicationTaskIndividualAssessmentsCommand = exports.se_DescribeReplicationTaskAssessmentRunsCommand = void 0;
5
+ exports.de_StartRecommendationsCommand = exports.de_RunFleetAdvisorLsaAnalysisCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_ReloadTablesCommand = exports.de_ReloadReplicationTablesCommand = exports.de_RefreshSchemasCommand = exports.de_RebootReplicationInstanceCommand = exports.de_MoveReplicationTaskCommand = exports.de_ModifyReplicationTaskCommand = exports.de_ModifyReplicationSubnetGroupCommand = exports.de_ModifyReplicationInstanceCommand = exports.de_ModifyReplicationConfigCommand = exports.de_ModifyEventSubscriptionCommand = exports.de_ModifyEndpointCommand = exports.de_ListTagsForResourceCommand = exports.de_ImportCertificateCommand = exports.de_DescribeTableStatisticsCommand = exports.de_DescribeSchemasCommand = exports.de_DescribeReplicationTasksCommand = exports.de_DescribeReplicationTaskIndividualAssessmentsCommand = exports.de_DescribeReplicationTaskAssessmentRunsCommand = exports.de_DescribeReplicationTaskAssessmentResultsCommand = exports.de_DescribeReplicationTableStatisticsCommand = exports.de_DescribeReplicationSubnetGroupsCommand = exports.de_DescribeReplicationsCommand = exports.de_DescribeReplicationInstanceTaskLogsCommand = exports.de_DescribeReplicationInstancesCommand = exports.de_DescribeReplicationConfigsCommand = exports.de_DescribeRefreshSchemasStatusCommand = exports.de_DescribeRecommendationsCommand = exports.de_DescribeRecommendationLimitationsCommand = exports.de_DescribePendingMaintenanceActionsCommand = exports.de_DescribeOrderableReplicationInstancesCommand = exports.de_DescribeFleetAdvisorSchemasCommand = exports.de_DescribeFleetAdvisorSchemaObjectSummaryCommand = exports.de_DescribeFleetAdvisorLsaAnalysisCommand = exports.de_DescribeFleetAdvisorDatabasesCommand = exports.de_DescribeFleetAdvisorCollectorsCommand = exports.de_DescribeEventSubscriptionsCommand = exports.de_DescribeEventsCommand = exports.de_DescribeEventCategoriesCommand = exports.de_DescribeEngineVersionsCommand = exports.de_DescribeEndpointTypesCommand = exports.de_DescribeEndpointSettingsCommand = exports.de_DescribeEndpointsCommand = exports.de_DescribeConnectionsCommand = exports.de_DescribeCertificatesCommand = exports.de_DescribeApplicableIndividualAssessmentsCommand = exports.de_DescribeAccountAttributesCommand = exports.de_DeleteReplicationTaskAssessmentRunCommand = void 0;
6
+ exports.de_UpdateSubscriptionsToEventBridgeCommand = exports.de_TestConnectionCommand = exports.de_StopReplicationTaskCommand = exports.de_StopReplicationCommand = exports.de_StartReplicationTaskAssessmentRunCommand = exports.de_StartReplicationTaskAssessmentCommand = exports.de_StartReplicationTaskCommand = exports.de_StartReplicationCommand = void 0;
7
7
  const protocol_http_1 = require("@smithy/protocol-http");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  const DatabaseMigrationServiceServiceException_1 = require("../models/DatabaseMigrationServiceServiceException");
@@ -211,6 +211,13 @@ const se_DescribeEndpointTypesCommand = async (input, context) => {
211
211
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
212
212
  };
213
213
  exports.se_DescribeEndpointTypesCommand = se_DescribeEndpointTypesCommand;
214
+ const se_DescribeEngineVersionsCommand = async (input, context) => {
215
+ const headers = sharedHeaders("DescribeEngineVersions");
216
+ let body;
217
+ body = JSON.stringify((0, smithy_client_1._json)(input));
218
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
219
+ };
220
+ exports.se_DescribeEngineVersionsCommand = se_DescribeEngineVersionsCommand;
214
221
  const se_DescribeEventCategoriesCommand = async (input, context) => {
215
222
  const headers = sharedHeaders("DescribeEventCategories");
216
223
  let body;
@@ -1684,6 +1691,33 @@ const de_DescribeEndpointTypesCommandError = async (output, context) => {
1684
1691
  errorCode,
1685
1692
  });
1686
1693
  };
1694
+ const de_DescribeEngineVersionsCommand = async (output, context) => {
1695
+ if (output.statusCode >= 300) {
1696
+ return de_DescribeEngineVersionsCommandError(output, context);
1697
+ }
1698
+ const data = await parseBody(output.body, context);
1699
+ let contents = {};
1700
+ contents = de_DescribeEngineVersionsResponse(data, context);
1701
+ const response = {
1702
+ $metadata: deserializeMetadata(output),
1703
+ ...contents,
1704
+ };
1705
+ return response;
1706
+ };
1707
+ exports.de_DescribeEngineVersionsCommand = de_DescribeEngineVersionsCommand;
1708
+ const de_DescribeEngineVersionsCommandError = async (output, context) => {
1709
+ const parsedOutput = {
1710
+ ...output,
1711
+ body: await parseErrorBody(output.body, context),
1712
+ };
1713
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1714
+ const parsedBody = parsedOutput.body;
1715
+ return throwDefaultError({
1716
+ output,
1717
+ parsedBody,
1718
+ errorCode,
1719
+ });
1720
+ };
1687
1721
  const de_DescribeEventCategoriesCommand = async (output, context) => {
1688
1722
  if (output.statusCode >= 300) {
1689
1723
  return de_DescribeEventCategoriesCommandError(output, context);
@@ -3883,6 +3917,12 @@ const de_DescribeCertificatesResponse = (output, context) => {
3883
3917
  Marker: smithy_client_1.expectString,
3884
3918
  });
3885
3919
  };
3920
+ const de_DescribeEngineVersionsResponse = (output, context) => {
3921
+ return (0, smithy_client_1.take)(output, {
3922
+ EngineVersions: (_) => de_EngineVersionList(_, context),
3923
+ Marker: smithy_client_1.expectString,
3924
+ });
3925
+ };
3886
3926
  const de_DescribeEventsResponse = (output, context) => {
3887
3927
  return (0, smithy_client_1.take)(output, {
3888
3928
  Events: (_) => de_EventList(_, context),
@@ -3969,6 +4009,26 @@ const de_DescribeTableStatisticsResponse = (output, context) => {
3969
4009
  TableStatistics: (_) => de_TableStatisticsList(_, context),
3970
4010
  });
3971
4011
  };
4012
+ const de_EngineVersion = (output, context) => {
4013
+ return (0, smithy_client_1.take)(output, {
4014
+ AutoUpgradeDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4015
+ AvailableUpgrades: smithy_client_1._json,
4016
+ DeprecationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4017
+ ForceUpgradeDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4018
+ LaunchDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4019
+ Lifecycle: smithy_client_1.expectString,
4020
+ ReleaseStatus: smithy_client_1.expectString,
4021
+ Version: smithy_client_1.expectString,
4022
+ });
4023
+ };
4024
+ const de_EngineVersionList = (output, context) => {
4025
+ const retVal = (output || [])
4026
+ .filter((e) => e != null)
4027
+ .map((entry) => {
4028
+ return de_EngineVersion(entry, context);
4029
+ });
4030
+ return retVal;
4031
+ };
3972
4032
  const de_Event = (output, context) => {
3973
4033
  return (0, smithy_client_1.take)(output, {
3974
4034
  Date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
@@ -28,6 +28,7 @@ import { DescribeConnectionsCommand, } from "./commands/DescribeConnectionsComma
28
28
  import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
29
29
  import { DescribeEndpointSettingsCommand, } from "./commands/DescribeEndpointSettingsCommand";
30
30
  import { DescribeEndpointTypesCommand, } from "./commands/DescribeEndpointTypesCommand";
31
+ import { DescribeEngineVersionsCommand, } from "./commands/DescribeEngineVersionsCommand";
31
32
  import { DescribeEventCategoriesCommand, } from "./commands/DescribeEventCategoriesCommand";
32
33
  import { DescribeEventsCommand, } from "./commands/DescribeEventsCommand";
33
34
  import { DescribeEventSubscriptionsCommand, } from "./commands/DescribeEventSubscriptionsCommand";
@@ -108,6 +109,7 @@ const commands = {
108
109
  DescribeEndpointsCommand,
109
110
  DescribeEndpointSettingsCommand,
110
111
  DescribeEndpointTypesCommand,
112
+ DescribeEngineVersionsCommand,
111
113
  DescribeEventCategoriesCommand,
112
114
  DescribeEventsCommand,
113
115
  DescribeEventSubscriptionsCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_DescribeEngineVersionsCommand, se_DescribeEngineVersionsCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
6
+ export class DescribeEngineVersionsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEngineVersionsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "DatabaseMigrationServiceClient";
25
+ const commandName = "DescribeEngineVersionsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DescribeEngineVersionsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DescribeEngineVersionsCommand(output, context);
41
+ }
42
+ }
@@ -27,6 +27,7 @@ export * from "./DescribeConnectionsCommand";
27
27
  export * from "./DescribeEndpointSettingsCommand";
28
28
  export * from "./DescribeEndpointTypesCommand";
29
29
  export * from "./DescribeEndpointsCommand";
30
+ export * from "./DescribeEngineVersionsCommand";
30
31
  export * from "./DescribeEventCategoriesCommand";
31
32
  export * from "./DescribeEventSubscriptionsCommand";
32
33
  export * from "./DescribeEventsCommand";
@@ -392,6 +392,10 @@ export const EndpointSettingTypeValue = {
392
392
  INTEGER: "integer",
393
393
  STRING: "string",
394
394
  };
395
+ export const ReleaseStatusValues = {
396
+ BETA: "beta",
397
+ PROD: "prod",
398
+ };
395
399
  export const SourceType = {
396
400
  replication_instance: "replication-instance",
397
401
  };
@@ -404,10 +408,6 @@ export const VersionStatus = {
404
408
  UNSUPPORTED: "UNSUPPORTED",
405
409
  UP_TO_DATE: "UP_TO_DATE",
406
410
  };
407
- export const ReleaseStatusValues = {
408
- BETA: "beta",
409
- PROD: "prod",
410
- };
411
411
  export const RefreshSchemasStatusTypeValue = {
412
412
  FAILED: "failed",
413
413
  REFRESHING: "refreshing",
@@ -0,0 +1,25 @@
1
+ import { DescribeEngineVersionsCommand, } from "../commands/DescribeEngineVersionsCommand";
2
+ import { DatabaseMigrationServiceClient } from "../DatabaseMigrationServiceClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new DescribeEngineVersionsCommand(input), ...args);
5
+ };
6
+ export async function* paginateDescribeEngineVersions(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.Marker = token;
12
+ input["MaxRecords"] = config.pageSize;
13
+ if (config.client instanceof DatabaseMigrationServiceClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected DatabaseMigrationService | DatabaseMigrationServiceClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.Marker;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -4,11 +4,12 @@ export * from "./DescribeConnectionsPaginator";
4
4
  export * from "./DescribeEndpointSettingsPaginator";
5
5
  export * from "./DescribeEndpointTypesPaginator";
6
6
  export * from "./DescribeEndpointsPaginator";
7
+ export * from "./DescribeEngineVersionsPaginator";
7
8
  export * from "./DescribeEventSubscriptionsPaginator";
8
9
  export * from "./DescribeEventsPaginator";
9
10
  export * from "./DescribeFleetAdvisorCollectorsPaginator";
10
- export * from "./DescribeFleetAdvisorDatabasesPaginator";
11
11
  export * from "./Interfaces";
12
+ export * from "./DescribeFleetAdvisorDatabasesPaginator";
12
13
  export * from "./DescribeFleetAdvisorLsaAnalysisPaginator";
13
14
  export * from "./DescribeFleetAdvisorSchemaObjectSummaryPaginator";
14
15
  export * from "./DescribeFleetAdvisorSchemasPaginator";
@@ -176,6 +176,12 @@ export const se_DescribeEndpointTypesCommand = async (input, context) => {
176
176
  body = JSON.stringify(_json(input));
177
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
178
  };
179
+ export const se_DescribeEngineVersionsCommand = async (input, context) => {
180
+ const headers = sharedHeaders("DescribeEngineVersions");
181
+ let body;
182
+ body = JSON.stringify(_json(input));
183
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
+ };
179
185
  export const se_DescribeEventCategoriesCommand = async (input, context) => {
180
186
  const headers = sharedHeaders("DescribeEventCategories");
181
187
  let body;
@@ -1571,6 +1577,32 @@ const de_DescribeEndpointTypesCommandError = async (output, context) => {
1571
1577
  errorCode,
1572
1578
  });
1573
1579
  };
1580
+ export const de_DescribeEngineVersionsCommand = async (output, context) => {
1581
+ if (output.statusCode >= 300) {
1582
+ return de_DescribeEngineVersionsCommandError(output, context);
1583
+ }
1584
+ const data = await parseBody(output.body, context);
1585
+ let contents = {};
1586
+ contents = de_DescribeEngineVersionsResponse(data, context);
1587
+ const response = {
1588
+ $metadata: deserializeMetadata(output),
1589
+ ...contents,
1590
+ };
1591
+ return response;
1592
+ };
1593
+ const de_DescribeEngineVersionsCommandError = async (output, context) => {
1594
+ const parsedOutput = {
1595
+ ...output,
1596
+ body: await parseErrorBody(output.body, context),
1597
+ };
1598
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1599
+ const parsedBody = parsedOutput.body;
1600
+ return throwDefaultError({
1601
+ output,
1602
+ parsedBody,
1603
+ errorCode,
1604
+ });
1605
+ };
1574
1606
  export const de_DescribeEventCategoriesCommand = async (output, context) => {
1575
1607
  if (output.statusCode >= 300) {
1576
1608
  return de_DescribeEventCategoriesCommandError(output, context);
@@ -3721,6 +3753,12 @@ const de_DescribeCertificatesResponse = (output, context) => {
3721
3753
  Marker: __expectString,
3722
3754
  });
3723
3755
  };
3756
+ const de_DescribeEngineVersionsResponse = (output, context) => {
3757
+ return take(output, {
3758
+ EngineVersions: (_) => de_EngineVersionList(_, context),
3759
+ Marker: __expectString,
3760
+ });
3761
+ };
3724
3762
  const de_DescribeEventsResponse = (output, context) => {
3725
3763
  return take(output, {
3726
3764
  Events: (_) => de_EventList(_, context),
@@ -3807,6 +3845,26 @@ const de_DescribeTableStatisticsResponse = (output, context) => {
3807
3845
  TableStatistics: (_) => de_TableStatisticsList(_, context),
3808
3846
  });
3809
3847
  };
3848
+ const de_EngineVersion = (output, context) => {
3849
+ return take(output, {
3850
+ AutoUpgradeDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3851
+ AvailableUpgrades: _json,
3852
+ DeprecationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3853
+ ForceUpgradeDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3854
+ LaunchDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3855
+ Lifecycle: __expectString,
3856
+ ReleaseStatus: __expectString,
3857
+ Version: __expectString,
3858
+ });
3859
+ };
3860
+ const de_EngineVersionList = (output, context) => {
3861
+ const retVal = (output || [])
3862
+ .filter((e) => e != null)
3863
+ .map((entry) => {
3864
+ return de_EngineVersion(entry, context);
3865
+ });
3866
+ return retVal;
3867
+ };
3810
3868
  const de_Event = (output, context) => {
3811
3869
  return take(output, {
3812
3870
  Date: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -28,6 +28,7 @@ import { DescribeConnectionsCommandInput, DescribeConnectionsCommandOutput } fro
28
28
  import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
29
29
  import { DescribeEndpointSettingsCommandInput, DescribeEndpointSettingsCommandOutput } from "./commands/DescribeEndpointSettingsCommand";
30
30
  import { DescribeEndpointTypesCommandInput, DescribeEndpointTypesCommandOutput } from "./commands/DescribeEndpointTypesCommand";
31
+ import { DescribeEngineVersionsCommandInput, DescribeEngineVersionsCommandOutput } from "./commands/DescribeEngineVersionsCommand";
31
32
  import { DescribeEventCategoriesCommandInput, DescribeEventCategoriesCommandOutput } from "./commands/DescribeEventCategoriesCommand";
32
33
  import { DescribeEventsCommandInput, DescribeEventsCommandOutput } from "./commands/DescribeEventsCommand";
33
34
  import { DescribeEventSubscriptionsCommandInput, DescribeEventSubscriptionsCommandOutput } from "./commands/DescribeEventSubscriptionsCommand";
@@ -253,6 +254,12 @@ export interface DatabaseMigrationService {
253
254
  describeEndpointTypes(args: DescribeEndpointTypesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEndpointTypesCommandOutput>;
254
255
  describeEndpointTypes(args: DescribeEndpointTypesCommandInput, cb: (err: any, data?: DescribeEndpointTypesCommandOutput) => void): void;
255
256
  describeEndpointTypes(args: DescribeEndpointTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEndpointTypesCommandOutput) => void): void;
257
+ /**
258
+ * @see {@link DescribeEngineVersionsCommand}
259
+ */
260
+ describeEngineVersions(args: DescribeEngineVersionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEngineVersionsCommandOutput>;
261
+ describeEngineVersions(args: DescribeEngineVersionsCommandInput, cb: (err: any, data?: DescribeEngineVersionsCommandOutput) => void): void;
262
+ describeEngineVersions(args: DescribeEngineVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEngineVersionsCommandOutput) => void): void;
256
263
  /**
257
264
  * @see {@link DescribeEventCategoriesCommand}
258
265
  */
@@ -37,6 +37,7 @@ import { DescribeConnectionsCommandInput, DescribeConnectionsCommandOutput } fro
37
37
  import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
38
38
  import { DescribeEndpointSettingsCommandInput, DescribeEndpointSettingsCommandOutput } from "./commands/DescribeEndpointSettingsCommand";
39
39
  import { DescribeEndpointTypesCommandInput, DescribeEndpointTypesCommandOutput } from "./commands/DescribeEndpointTypesCommand";
40
+ import { DescribeEngineVersionsCommandInput, DescribeEngineVersionsCommandOutput } from "./commands/DescribeEngineVersionsCommand";
40
41
  import { DescribeEventCategoriesCommandInput, DescribeEventCategoriesCommandOutput } from "./commands/DescribeEventCategoriesCommand";
41
42
  import { DescribeEventsCommandInput, DescribeEventsCommandOutput } from "./commands/DescribeEventsCommand";
42
43
  import { DescribeEventSubscriptionsCommandInput, DescribeEventSubscriptionsCommandOutput } from "./commands/DescribeEventSubscriptionsCommand";
@@ -91,11 +92,11 @@ export { __Client };
91
92
  /**
92
93
  * @public
93
94
  */
94
- export type ServiceInputTypes = AddTagsToResourceCommandInput | ApplyPendingMaintenanceActionCommandInput | BatchStartRecommendationsCommandInput | CancelReplicationTaskAssessmentRunCommandInput | CreateEndpointCommandInput | CreateEventSubscriptionCommandInput | CreateFleetAdvisorCollectorCommandInput | CreateReplicationConfigCommandInput | CreateReplicationInstanceCommandInput | CreateReplicationSubnetGroupCommandInput | CreateReplicationTaskCommandInput | DeleteCertificateCommandInput | DeleteConnectionCommandInput | DeleteEndpointCommandInput | DeleteEventSubscriptionCommandInput | DeleteFleetAdvisorCollectorCommandInput | DeleteFleetAdvisorDatabasesCommandInput | DeleteReplicationConfigCommandInput | DeleteReplicationInstanceCommandInput | DeleteReplicationSubnetGroupCommandInput | DeleteReplicationTaskAssessmentRunCommandInput | DeleteReplicationTaskCommandInput | DescribeAccountAttributesCommandInput | DescribeApplicableIndividualAssessmentsCommandInput | DescribeCertificatesCommandInput | DescribeConnectionsCommandInput | DescribeEndpointSettingsCommandInput | DescribeEndpointTypesCommandInput | DescribeEndpointsCommandInput | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput | DescribeFleetAdvisorCollectorsCommandInput | DescribeFleetAdvisorDatabasesCommandInput | DescribeFleetAdvisorLsaAnalysisCommandInput | DescribeFleetAdvisorSchemaObjectSummaryCommandInput | DescribeFleetAdvisorSchemasCommandInput | DescribeOrderableReplicationInstancesCommandInput | DescribePendingMaintenanceActionsCommandInput | DescribeRecommendationLimitationsCommandInput | DescribeRecommendationsCommandInput | DescribeRefreshSchemasStatusCommandInput | DescribeReplicationConfigsCommandInput | DescribeReplicationInstanceTaskLogsCommandInput | DescribeReplicationInstancesCommandInput | DescribeReplicationSubnetGroupsCommandInput | DescribeReplicationTableStatisticsCommandInput | DescribeReplicationTaskAssessmentResultsCommandInput | DescribeReplicationTaskAssessmentRunsCommandInput | DescribeReplicationTaskIndividualAssessmentsCommandInput | DescribeReplicationTasksCommandInput | DescribeReplicationsCommandInput | DescribeSchemasCommandInput | DescribeTableStatisticsCommandInput | ImportCertificateCommandInput | ListTagsForResourceCommandInput | ModifyEndpointCommandInput | ModifyEventSubscriptionCommandInput | ModifyReplicationConfigCommandInput | ModifyReplicationInstanceCommandInput | ModifyReplicationSubnetGroupCommandInput | ModifyReplicationTaskCommandInput | MoveReplicationTaskCommandInput | RebootReplicationInstanceCommandInput | RefreshSchemasCommandInput | ReloadReplicationTablesCommandInput | ReloadTablesCommandInput | RemoveTagsFromResourceCommandInput | RunFleetAdvisorLsaAnalysisCommandInput | StartRecommendationsCommandInput | StartReplicationCommandInput | StartReplicationTaskAssessmentCommandInput | StartReplicationTaskAssessmentRunCommandInput | StartReplicationTaskCommandInput | StopReplicationCommandInput | StopReplicationTaskCommandInput | TestConnectionCommandInput | UpdateSubscriptionsToEventBridgeCommandInput;
95
+ export type ServiceInputTypes = AddTagsToResourceCommandInput | ApplyPendingMaintenanceActionCommandInput | BatchStartRecommendationsCommandInput | CancelReplicationTaskAssessmentRunCommandInput | CreateEndpointCommandInput | CreateEventSubscriptionCommandInput | CreateFleetAdvisorCollectorCommandInput | CreateReplicationConfigCommandInput | CreateReplicationInstanceCommandInput | CreateReplicationSubnetGroupCommandInput | CreateReplicationTaskCommandInput | DeleteCertificateCommandInput | DeleteConnectionCommandInput | DeleteEndpointCommandInput | DeleteEventSubscriptionCommandInput | DeleteFleetAdvisorCollectorCommandInput | DeleteFleetAdvisorDatabasesCommandInput | DeleteReplicationConfigCommandInput | DeleteReplicationInstanceCommandInput | DeleteReplicationSubnetGroupCommandInput | DeleteReplicationTaskAssessmentRunCommandInput | DeleteReplicationTaskCommandInput | DescribeAccountAttributesCommandInput | DescribeApplicableIndividualAssessmentsCommandInput | DescribeCertificatesCommandInput | DescribeConnectionsCommandInput | DescribeEndpointSettingsCommandInput | DescribeEndpointTypesCommandInput | DescribeEndpointsCommandInput | DescribeEngineVersionsCommandInput | DescribeEventCategoriesCommandInput | DescribeEventSubscriptionsCommandInput | DescribeEventsCommandInput | DescribeFleetAdvisorCollectorsCommandInput | DescribeFleetAdvisorDatabasesCommandInput | DescribeFleetAdvisorLsaAnalysisCommandInput | DescribeFleetAdvisorSchemaObjectSummaryCommandInput | DescribeFleetAdvisorSchemasCommandInput | DescribeOrderableReplicationInstancesCommandInput | DescribePendingMaintenanceActionsCommandInput | DescribeRecommendationLimitationsCommandInput | DescribeRecommendationsCommandInput | DescribeRefreshSchemasStatusCommandInput | DescribeReplicationConfigsCommandInput | DescribeReplicationInstanceTaskLogsCommandInput | DescribeReplicationInstancesCommandInput | DescribeReplicationSubnetGroupsCommandInput | DescribeReplicationTableStatisticsCommandInput | DescribeReplicationTaskAssessmentResultsCommandInput | DescribeReplicationTaskAssessmentRunsCommandInput | DescribeReplicationTaskIndividualAssessmentsCommandInput | DescribeReplicationTasksCommandInput | DescribeReplicationsCommandInput | DescribeSchemasCommandInput | DescribeTableStatisticsCommandInput | ImportCertificateCommandInput | ListTagsForResourceCommandInput | ModifyEndpointCommandInput | ModifyEventSubscriptionCommandInput | ModifyReplicationConfigCommandInput | ModifyReplicationInstanceCommandInput | ModifyReplicationSubnetGroupCommandInput | ModifyReplicationTaskCommandInput | MoveReplicationTaskCommandInput | RebootReplicationInstanceCommandInput | RefreshSchemasCommandInput | ReloadReplicationTablesCommandInput | ReloadTablesCommandInput | RemoveTagsFromResourceCommandInput | RunFleetAdvisorLsaAnalysisCommandInput | StartRecommendationsCommandInput | StartReplicationCommandInput | StartReplicationTaskAssessmentCommandInput | StartReplicationTaskAssessmentRunCommandInput | StartReplicationTaskCommandInput | StopReplicationCommandInput | StopReplicationTaskCommandInput | TestConnectionCommandInput | UpdateSubscriptionsToEventBridgeCommandInput;
95
96
  /**
96
97
  * @public
97
98
  */
98
- export type ServiceOutputTypes = AddTagsToResourceCommandOutput | ApplyPendingMaintenanceActionCommandOutput | BatchStartRecommendationsCommandOutput | CancelReplicationTaskAssessmentRunCommandOutput | CreateEndpointCommandOutput | CreateEventSubscriptionCommandOutput | CreateFleetAdvisorCollectorCommandOutput | CreateReplicationConfigCommandOutput | CreateReplicationInstanceCommandOutput | CreateReplicationSubnetGroupCommandOutput | CreateReplicationTaskCommandOutput | DeleteCertificateCommandOutput | DeleteConnectionCommandOutput | DeleteEndpointCommandOutput | DeleteEventSubscriptionCommandOutput | DeleteFleetAdvisorCollectorCommandOutput | DeleteFleetAdvisorDatabasesCommandOutput | DeleteReplicationConfigCommandOutput | DeleteReplicationInstanceCommandOutput | DeleteReplicationSubnetGroupCommandOutput | DeleteReplicationTaskAssessmentRunCommandOutput | DeleteReplicationTaskCommandOutput | DescribeAccountAttributesCommandOutput | DescribeApplicableIndividualAssessmentsCommandOutput | DescribeCertificatesCommandOutput | DescribeConnectionsCommandOutput | DescribeEndpointSettingsCommandOutput | DescribeEndpointTypesCommandOutput | DescribeEndpointsCommandOutput | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput | DescribeFleetAdvisorCollectorsCommandOutput | DescribeFleetAdvisorDatabasesCommandOutput | DescribeFleetAdvisorLsaAnalysisCommandOutput | DescribeFleetAdvisorSchemaObjectSummaryCommandOutput | DescribeFleetAdvisorSchemasCommandOutput | DescribeOrderableReplicationInstancesCommandOutput | DescribePendingMaintenanceActionsCommandOutput | DescribeRecommendationLimitationsCommandOutput | DescribeRecommendationsCommandOutput | DescribeRefreshSchemasStatusCommandOutput | DescribeReplicationConfigsCommandOutput | DescribeReplicationInstanceTaskLogsCommandOutput | DescribeReplicationInstancesCommandOutput | DescribeReplicationSubnetGroupsCommandOutput | DescribeReplicationTableStatisticsCommandOutput | DescribeReplicationTaskAssessmentResultsCommandOutput | DescribeReplicationTaskAssessmentRunsCommandOutput | DescribeReplicationTaskIndividualAssessmentsCommandOutput | DescribeReplicationTasksCommandOutput | DescribeReplicationsCommandOutput | DescribeSchemasCommandOutput | DescribeTableStatisticsCommandOutput | ImportCertificateCommandOutput | ListTagsForResourceCommandOutput | ModifyEndpointCommandOutput | ModifyEventSubscriptionCommandOutput | ModifyReplicationConfigCommandOutput | ModifyReplicationInstanceCommandOutput | ModifyReplicationSubnetGroupCommandOutput | ModifyReplicationTaskCommandOutput | MoveReplicationTaskCommandOutput | RebootReplicationInstanceCommandOutput | RefreshSchemasCommandOutput | ReloadReplicationTablesCommandOutput | ReloadTablesCommandOutput | RemoveTagsFromResourceCommandOutput | RunFleetAdvisorLsaAnalysisCommandOutput | StartRecommendationsCommandOutput | StartReplicationCommandOutput | StartReplicationTaskAssessmentCommandOutput | StartReplicationTaskAssessmentRunCommandOutput | StartReplicationTaskCommandOutput | StopReplicationCommandOutput | StopReplicationTaskCommandOutput | TestConnectionCommandOutput | UpdateSubscriptionsToEventBridgeCommandOutput;
99
+ export type ServiceOutputTypes = AddTagsToResourceCommandOutput | ApplyPendingMaintenanceActionCommandOutput | BatchStartRecommendationsCommandOutput | CancelReplicationTaskAssessmentRunCommandOutput | CreateEndpointCommandOutput | CreateEventSubscriptionCommandOutput | CreateFleetAdvisorCollectorCommandOutput | CreateReplicationConfigCommandOutput | CreateReplicationInstanceCommandOutput | CreateReplicationSubnetGroupCommandOutput | CreateReplicationTaskCommandOutput | DeleteCertificateCommandOutput | DeleteConnectionCommandOutput | DeleteEndpointCommandOutput | DeleteEventSubscriptionCommandOutput | DeleteFleetAdvisorCollectorCommandOutput | DeleteFleetAdvisorDatabasesCommandOutput | DeleteReplicationConfigCommandOutput | DeleteReplicationInstanceCommandOutput | DeleteReplicationSubnetGroupCommandOutput | DeleteReplicationTaskAssessmentRunCommandOutput | DeleteReplicationTaskCommandOutput | DescribeAccountAttributesCommandOutput | DescribeApplicableIndividualAssessmentsCommandOutput | DescribeCertificatesCommandOutput | DescribeConnectionsCommandOutput | DescribeEndpointSettingsCommandOutput | DescribeEndpointTypesCommandOutput | DescribeEndpointsCommandOutput | DescribeEngineVersionsCommandOutput | DescribeEventCategoriesCommandOutput | DescribeEventSubscriptionsCommandOutput | DescribeEventsCommandOutput | DescribeFleetAdvisorCollectorsCommandOutput | DescribeFleetAdvisorDatabasesCommandOutput | DescribeFleetAdvisorLsaAnalysisCommandOutput | DescribeFleetAdvisorSchemaObjectSummaryCommandOutput | DescribeFleetAdvisorSchemasCommandOutput | DescribeOrderableReplicationInstancesCommandOutput | DescribePendingMaintenanceActionsCommandOutput | DescribeRecommendationLimitationsCommandOutput | DescribeRecommendationsCommandOutput | DescribeRefreshSchemasStatusCommandOutput | DescribeReplicationConfigsCommandOutput | DescribeReplicationInstanceTaskLogsCommandOutput | DescribeReplicationInstancesCommandOutput | DescribeReplicationSubnetGroupsCommandOutput | DescribeReplicationTableStatisticsCommandOutput | DescribeReplicationTaskAssessmentResultsCommandOutput | DescribeReplicationTaskAssessmentRunsCommandOutput | DescribeReplicationTaskIndividualAssessmentsCommandOutput | DescribeReplicationTasksCommandOutput | DescribeReplicationsCommandOutput | DescribeSchemasCommandOutput | DescribeTableStatisticsCommandOutput | ImportCertificateCommandOutput | ListTagsForResourceCommandOutput | ModifyEndpointCommandOutput | ModifyEventSubscriptionCommandOutput | ModifyReplicationConfigCommandOutput | ModifyReplicationInstanceCommandOutput | ModifyReplicationSubnetGroupCommandOutput | ModifyReplicationTaskCommandOutput | MoveReplicationTaskCommandOutput | RebootReplicationInstanceCommandOutput | RefreshSchemasCommandOutput | ReloadReplicationTablesCommandOutput | ReloadTablesCommandOutput | RemoveTagsFromResourceCommandOutput | RunFleetAdvisorLsaAnalysisCommandOutput | StartRecommendationsCommandOutput | StartReplicationCommandOutput | StartReplicationTaskAssessmentCommandOutput | StartReplicationTaskAssessmentRunCommandOutput | StartReplicationTaskCommandOutput | StopReplicationCommandOutput | StopReplicationTaskCommandOutput | TestConnectionCommandOutput | UpdateSubscriptionsToEventBridgeCommandOutput;
99
100
  /**
100
101
  * @public
101
102
  */