@aws-sdk/client-database-migration-service 3.183.0 → 3.185.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 (110) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/DatabaseMigrationService.js +269 -262
  4. package/dist-es/DatabaseMigrationServiceClient.js +28 -22
  5. package/dist-es/commands/AddTagsToResourceCommand.js +28 -21
  6. package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +28 -21
  7. package/dist-es/commands/CancelReplicationTaskAssessmentRunCommand.js +28 -21
  8. package/dist-es/commands/CreateEndpointCommand.js +28 -21
  9. package/dist-es/commands/CreateEventSubscriptionCommand.js +28 -21
  10. package/dist-es/commands/CreateFleetAdvisorCollectorCommand.js +28 -21
  11. package/dist-es/commands/CreateReplicationInstanceCommand.js +28 -21
  12. package/dist-es/commands/CreateReplicationSubnetGroupCommand.js +28 -21
  13. package/dist-es/commands/CreateReplicationTaskCommand.js +28 -21
  14. package/dist-es/commands/DeleteCertificateCommand.js +28 -21
  15. package/dist-es/commands/DeleteConnectionCommand.js +28 -21
  16. package/dist-es/commands/DeleteEndpointCommand.js +28 -21
  17. package/dist-es/commands/DeleteEventSubscriptionCommand.js +28 -21
  18. package/dist-es/commands/DeleteFleetAdvisorCollectorCommand.js +29 -22
  19. package/dist-es/commands/DeleteFleetAdvisorDatabasesCommand.js +28 -21
  20. package/dist-es/commands/DeleteReplicationInstanceCommand.js +28 -21
  21. package/dist-es/commands/DeleteReplicationSubnetGroupCommand.js +28 -21
  22. package/dist-es/commands/DeleteReplicationTaskAssessmentRunCommand.js +28 -21
  23. package/dist-es/commands/DeleteReplicationTaskCommand.js +28 -21
  24. package/dist-es/commands/DescribeAccountAttributesCommand.js +28 -21
  25. package/dist-es/commands/DescribeApplicableIndividualAssessmentsCommand.js +28 -21
  26. package/dist-es/commands/DescribeCertificatesCommand.js +28 -21
  27. package/dist-es/commands/DescribeConnectionsCommand.js +28 -21
  28. package/dist-es/commands/DescribeEndpointSettingsCommand.js +28 -21
  29. package/dist-es/commands/DescribeEndpointTypesCommand.js +28 -21
  30. package/dist-es/commands/DescribeEndpointsCommand.js +28 -21
  31. package/dist-es/commands/DescribeEventCategoriesCommand.js +28 -21
  32. package/dist-es/commands/DescribeEventSubscriptionsCommand.js +28 -21
  33. package/dist-es/commands/DescribeEventsCommand.js +28 -21
  34. package/dist-es/commands/DescribeFleetAdvisorCollectorsCommand.js +28 -21
  35. package/dist-es/commands/DescribeFleetAdvisorDatabasesCommand.js +28 -21
  36. package/dist-es/commands/DescribeFleetAdvisorLsaAnalysisCommand.js +28 -21
  37. package/dist-es/commands/DescribeFleetAdvisorSchemaObjectSummaryCommand.js +28 -21
  38. package/dist-es/commands/DescribeFleetAdvisorSchemasCommand.js +28 -21
  39. package/dist-es/commands/DescribeOrderableReplicationInstancesCommand.js +28 -21
  40. package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +28 -21
  41. package/dist-es/commands/DescribeRefreshSchemasStatusCommand.js +28 -21
  42. package/dist-es/commands/DescribeReplicationInstanceTaskLogsCommand.js +28 -21
  43. package/dist-es/commands/DescribeReplicationInstancesCommand.js +28 -21
  44. package/dist-es/commands/DescribeReplicationSubnetGroupsCommand.js +28 -21
  45. package/dist-es/commands/DescribeReplicationTaskAssessmentResultsCommand.js +28 -21
  46. package/dist-es/commands/DescribeReplicationTaskAssessmentRunsCommand.js +28 -21
  47. package/dist-es/commands/DescribeReplicationTaskIndividualAssessmentsCommand.js +28 -21
  48. package/dist-es/commands/DescribeReplicationTasksCommand.js +28 -21
  49. package/dist-es/commands/DescribeSchemasCommand.js +28 -21
  50. package/dist-es/commands/DescribeTableStatisticsCommand.js +28 -21
  51. package/dist-es/commands/ImportCertificateCommand.js +28 -21
  52. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  53. package/dist-es/commands/ModifyEndpointCommand.js +28 -21
  54. package/dist-es/commands/ModifyEventSubscriptionCommand.js +28 -21
  55. package/dist-es/commands/ModifyReplicationInstanceCommand.js +28 -21
  56. package/dist-es/commands/ModifyReplicationSubnetGroupCommand.js +28 -21
  57. package/dist-es/commands/ModifyReplicationTaskCommand.js +28 -21
  58. package/dist-es/commands/MoveReplicationTaskCommand.js +28 -21
  59. package/dist-es/commands/RebootReplicationInstanceCommand.js +28 -21
  60. package/dist-es/commands/RefreshSchemasCommand.js +28 -21
  61. package/dist-es/commands/ReloadTablesCommand.js +28 -21
  62. package/dist-es/commands/RemoveTagsFromResourceCommand.js +28 -21
  63. package/dist-es/commands/RunFleetAdvisorLsaAnalysisCommand.js +29 -22
  64. package/dist-es/commands/StartReplicationTaskAssessmentCommand.js +28 -21
  65. package/dist-es/commands/StartReplicationTaskAssessmentRunCommand.js +28 -21
  66. package/dist-es/commands/StartReplicationTaskCommand.js +28 -21
  67. package/dist-es/commands/StopReplicationTaskCommand.js +28 -21
  68. package/dist-es/commands/TestConnectionCommand.js +28 -21
  69. package/dist-es/commands/UpdateSubscriptionsToEventBridgeCommand.js +28 -21
  70. package/dist-es/endpoints.js +8 -8
  71. package/dist-es/models/DatabaseMigrationServiceServiceException.js +10 -5
  72. package/dist-es/models/models_0.js +471 -904
  73. package/dist-es/pagination/DescribeApplicableIndividualAssessmentsPaginator.js +68 -25
  74. package/dist-es/pagination/DescribeCertificatesPaginator.js +68 -25
  75. package/dist-es/pagination/DescribeConnectionsPaginator.js +68 -25
  76. package/dist-es/pagination/DescribeEndpointSettingsPaginator.js +68 -25
  77. package/dist-es/pagination/DescribeEndpointTypesPaginator.js +68 -25
  78. package/dist-es/pagination/DescribeEndpointsPaginator.js +68 -25
  79. package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +68 -25
  80. package/dist-es/pagination/DescribeEventsPaginator.js +68 -25
  81. package/dist-es/pagination/DescribeFleetAdvisorCollectorsPaginator.js +68 -25
  82. package/dist-es/pagination/DescribeFleetAdvisorDatabasesPaginator.js +68 -25
  83. package/dist-es/pagination/DescribeFleetAdvisorLsaAnalysisPaginator.js +68 -25
  84. package/dist-es/pagination/DescribeFleetAdvisorSchemaObjectSummaryPaginator.js +68 -25
  85. package/dist-es/pagination/DescribeFleetAdvisorSchemasPaginator.js +68 -25
  86. package/dist-es/pagination/DescribeOrderableReplicationInstancesPaginator.js +68 -25
  87. package/dist-es/pagination/DescribePendingMaintenanceActionsPaginator.js +68 -25
  88. package/dist-es/pagination/DescribeReplicationInstanceTaskLogsPaginator.js +68 -25
  89. package/dist-es/pagination/DescribeReplicationInstancesPaginator.js +68 -25
  90. package/dist-es/pagination/DescribeReplicationSubnetGroupsPaginator.js +68 -25
  91. package/dist-es/pagination/DescribeReplicationTaskAssessmentResultsPaginator.js +68 -25
  92. package/dist-es/pagination/DescribeReplicationTaskAssessmentRunsPaginator.js +68 -25
  93. package/dist-es/pagination/DescribeReplicationTaskIndividualAssessmentsPaginator.js +68 -25
  94. package/dist-es/pagination/DescribeReplicationTasksPaginator.js +68 -25
  95. package/dist-es/pagination/DescribeSchemasPaginator.js +68 -25
  96. package/dist-es/pagination/DescribeTableStatisticsPaginator.js +68 -25
  97. package/dist-es/protocols/Aws_json1_1.js +5431 -4646
  98. package/dist-es/runtimeConfig.browser.js +12 -26
  99. package/dist-es/runtimeConfig.js +12 -30
  100. package/dist-es/runtimeConfig.native.js +5 -8
  101. package/dist-es/runtimeConfig.shared.js +11 -8
  102. package/dist-es/waiters/waitForEndpointDeleted.js +90 -49
  103. package/dist-es/waiters/waitForReplicationInstanceAvailable.js +163 -92
  104. package/dist-es/waiters/waitForReplicationInstanceDeleted.js +66 -35
  105. package/dist-es/waiters/waitForReplicationTaskDeleted.js +162 -91
  106. package/dist-es/waiters/waitForReplicationTaskReady.js +259 -148
  107. package/dist-es/waiters/waitForReplicationTaskRunning.js +259 -148
  108. package/dist-es/waiters/waitForReplicationTaskStopped.js +235 -134
  109. package/dist-es/waiters/waitForTestConnectionSucceeds.js +91 -50
  110. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import packageInfo from "../package.json";
2
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -11,30 +12,15 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
13
14
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
14
- export const getRuntimeConfig = (config) => {
15
- const defaultsMode = resolveDefaultsModeConfig(config);
16
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
- const clientSharedValues = getSharedRuntimeConfig(config);
18
- return {
19
- ...clientSharedValues,
20
- ...config,
21
- runtime: "browser",
22
- defaultsMode,
23
- base64Decoder: config?.base64Decoder ?? fromBase64,
24
- base64Encoder: config?.base64Encoder ?? toBase64,
25
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
29
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
- region: config?.region ?? invalidProvider("Region is missing"),
31
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
32
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
33
- sha256: config?.sha256 ?? Sha256,
34
- streamCollector: config?.streamCollector ?? streamCollector,
35
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
- };
15
+ export var getRuntimeConfig = function (config) {
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
+ var clientSharedValues = getSharedRuntimeConfig(config);
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
40
26
  };
@@ -1,3 +1,4 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import packageInfo from "../package.json";
2
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -14,35 +15,16 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
14
15
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
15
16
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
- export const getRuntimeConfig = (config) => {
18
+ export var getRuntimeConfig = function (config) {
19
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
20
  emitWarningIfUnsupportedVersion(process.version);
19
- const defaultsMode = resolveDefaultsModeConfig(config);
20
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
- const clientSharedValues = getSharedRuntimeConfig(config);
22
- return {
23
- ...clientSharedValues,
24
- ...config,
25
- runtime: "node",
26
- defaultsMode,
27
- base64Decoder: config?.base64Decoder ?? fromBase64,
28
- base64Encoder: config?.base64Encoder ?? toBase64,
29
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
- credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
- defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
36
- retryMode: config?.retryMode ??
37
- loadNodeConfig({
38
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
- }),
41
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
- streamCollector: config?.streamCollector ?? streamCollector,
43
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
44
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
45
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
46
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
- };
21
+ var defaultsMode = resolveDefaultsModeConfig(config);
22
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
+ var clientSharedValues = getSharedRuntimeConfig(config);
24
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
+ switch (_a.label) {
26
+ case 0: return [4, defaultConfigProvider()];
27
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
+ }
29
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
48
30
  };
@@ -1,11 +1,8 @@
1
+ import { __assign } from "tslib";
1
2
  import { Sha256 } from "@aws-crypto/sha256-js";
2
3
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
- export const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
4
+ export var getRuntimeConfig = function (config) {
5
+ var _a;
6
+ var browserDefaults = getBrowserRuntimeConfig(config);
7
+ return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
11
8
  };
@@ -1,10 +1,13 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
2
  import { defaultRegionInfoProvider } from "./endpoints";
3
- export const getRuntimeConfig = (config) => ({
4
- apiVersion: "2016-01-01",
5
- disableHostPrefix: config?.disableHostPrefix ?? false,
6
- logger: config?.logger ?? {},
7
- regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
- serviceId: config?.serviceId ?? "Database Migration Service",
9
- urlParser: config?.urlParser ?? parseUrl,
10
- });
3
+ export var getRuntimeConfig = function (config) {
4
+ var _a, _b, _c, _d, _e;
5
+ return ({
6
+ apiVersion: "2016-01-01",
7
+ disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
+ logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
+ regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
+ serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Database Migration Service",
11
+ urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
+ });
13
+ };
@@ -1,55 +1,96 @@
1
+ import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
1
2
  import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
2
3
  import { DescribeEndpointsCommand } from "../commands/DescribeEndpointsCommand";
3
- const checkState = async (client, input) => {
4
- let reason;
5
- try {
6
- const result = await client.send(new DescribeEndpointsCommand(input));
7
- reason = result;
8
- try {
9
- const returnComparator = () => {
10
- const flat_1 = [].concat(...result.Endpoints);
11
- const projection_3 = flat_1.map((element_2) => {
12
- return element_2.Status;
13
- });
14
- return projection_3;
15
- };
16
- for (const anyStringEq_4 of returnComparator()) {
17
- if (anyStringEq_4 == "active") {
18
- return { state: WaiterState.FAILURE, reason };
4
+ var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
5
+ var reason, result_1, returnComparator, _a, _b, anyStringEq_4, returnComparator, _c, _d, anyStringEq_4, exception_1;
6
+ var e_1, _e, e_2, _f;
7
+ return __generator(this, function (_g) {
8
+ switch (_g.label) {
9
+ case 0:
10
+ _g.trys.push([0, 2, , 3]);
11
+ return [4, client.send(new DescribeEndpointsCommand(input))];
12
+ case 1:
13
+ result_1 = _g.sent();
14
+ reason = result_1;
15
+ try {
16
+ returnComparator = function () {
17
+ var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Endpoints), false));
18
+ var projection_3 = flat_1.map(function (element_2) {
19
+ return element_2.Status;
20
+ });
21
+ return projection_3;
22
+ };
23
+ try {
24
+ for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
25
+ anyStringEq_4 = _b.value;
26
+ if (anyStringEq_4 == "active") {
27
+ return [2, { state: WaiterState.FAILURE, reason: reason }];
28
+ }
29
+ }
30
+ }
31
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
32
+ finally {
33
+ try {
34
+ if (_b && !_b.done && (_e = _a.return)) _e.call(_a);
35
+ }
36
+ finally { if (e_1) throw e_1.error; }
37
+ }
19
38
  }
20
- }
21
- }
22
- catch (e) { }
23
- try {
24
- const returnComparator = () => {
25
- const flat_1 = [].concat(...result.Endpoints);
26
- const projection_3 = flat_1.map((element_2) => {
27
- return element_2.Status;
28
- });
29
- return projection_3;
30
- };
31
- for (const anyStringEq_4 of returnComparator()) {
32
- if (anyStringEq_4 == "creating") {
33
- return { state: WaiterState.FAILURE, reason };
39
+ catch (e) { }
40
+ try {
41
+ returnComparator = function () {
42
+ var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Endpoints), false));
43
+ var projection_3 = flat_1.map(function (element_2) {
44
+ return element_2.Status;
45
+ });
46
+ return projection_3;
47
+ };
48
+ try {
49
+ for (_c = __values(returnComparator()), _d = _c.next(); !_d.done; _d = _c.next()) {
50
+ anyStringEq_4 = _d.value;
51
+ if (anyStringEq_4 == "creating") {
52
+ return [2, { state: WaiterState.FAILURE, reason: reason }];
53
+ }
54
+ }
55
+ }
56
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
57
+ finally {
58
+ try {
59
+ if (_d && !_d.done && (_f = _c.return)) _f.call(_c);
60
+ }
61
+ finally { if (e_2) throw e_2.error; }
62
+ }
63
+ }
64
+ catch (e) { }
65
+ return [3, 3];
66
+ case 2:
67
+ exception_1 = _g.sent();
68
+ reason = exception_1;
69
+ if (exception_1.name && exception_1.name == "ResourceNotFoundFault") {
70
+ return [2, { state: WaiterState.SUCCESS, reason: reason }];
34
71
  }
35
- }
72
+ return [3, 3];
73
+ case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
36
74
  }
37
- catch (e) { }
38
- }
39
- catch (exception) {
40
- reason = exception;
41
- if (exception.name && exception.name == "ResourceNotFoundFault") {
42
- return { state: WaiterState.SUCCESS, reason };
75
+ });
76
+ }); };
77
+ export var waitForEndpointDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
78
+ var serviceDefaults;
79
+ return __generator(this, function (_a) {
80
+ serviceDefaults = { minDelay: 5, maxDelay: 120 };
81
+ return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
82
+ });
83
+ }); };
84
+ export var waitUntilEndpointDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
85
+ var serviceDefaults, result;
86
+ return __generator(this, function (_a) {
87
+ switch (_a.label) {
88
+ case 0:
89
+ serviceDefaults = { minDelay: 5, maxDelay: 120 };
90
+ return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
91
+ case 1:
92
+ result = _a.sent();
93
+ return [2, checkExceptions(result)];
43
94
  }
44
- }
45
- return { state: WaiterState.RETRY, reason };
46
- };
47
- export const waitForEndpointDeleted = async (params, input) => {
48
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
49
- return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
50
- };
51
- export const waitUntilEndpointDeleted = async (params, input) => {
52
- const serviceDefaults = { minDelay: 5, maxDelay: 120 };
53
- const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
54
- return checkExceptions(result);
55
- };
95
+ });
96
+ }); };
@@ -1,99 +1,170 @@
1
+ import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
1
2
  import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
2
3
  import { DescribeReplicationInstancesCommand, } from "../commands/DescribeReplicationInstancesCommand";
3
- const checkState = async (client, input) => {
4
- let reason;
5
- try {
6
- const result = await client.send(new DescribeReplicationInstancesCommand(input));
7
- reason = result;
8
- try {
9
- const returnComparator = () => {
10
- const flat_1 = [].concat(...result.ReplicationInstances);
11
- const projection_3 = flat_1.map((element_2) => {
12
- return element_2.ReplicationInstanceStatus;
13
- });
14
- return projection_3;
15
- };
16
- let allStringEq_5 = returnComparator().length > 0;
17
- for (const element_4 of returnComparator()) {
18
- allStringEq_5 = allStringEq_5 && element_4 == "available";
19
- }
20
- if (allStringEq_5) {
21
- return { state: WaiterState.SUCCESS, reason };
22
- }
23
- }
24
- catch (e) { }
25
- try {
26
- const returnComparator = () => {
27
- const flat_1 = [].concat(...result.ReplicationInstances);
28
- const projection_3 = flat_1.map((element_2) => {
29
- return element_2.ReplicationInstanceStatus;
30
- });
31
- return projection_3;
32
- };
33
- for (const anyStringEq_4 of returnComparator()) {
34
- if (anyStringEq_4 == "deleting") {
35
- return { state: WaiterState.FAILURE, reason };
4
+ var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
5
+ var reason, result_1, returnComparator, allStringEq_5, _a, _b, element_4, returnComparator, _c, _d, anyStringEq_4, returnComparator, _e, _f, anyStringEq_4, returnComparator, _g, _h, anyStringEq_4, returnComparator, _j, _k, anyStringEq_4, exception_1;
6
+ var e_1, _l, e_2, _m, e_3, _o, e_4, _p, e_5, _q;
7
+ return __generator(this, function (_r) {
8
+ switch (_r.label) {
9
+ case 0:
10
+ _r.trys.push([0, 2, , 3]);
11
+ return [4, client.send(new DescribeReplicationInstancesCommand(input))];
12
+ case 1:
13
+ result_1 = _r.sent();
14
+ reason = result_1;
15
+ try {
16
+ returnComparator = function () {
17
+ var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationInstances), false));
18
+ var projection_3 = flat_1.map(function (element_2) {
19
+ return element_2.ReplicationInstanceStatus;
20
+ });
21
+ return projection_3;
22
+ };
23
+ allStringEq_5 = returnComparator().length > 0;
24
+ try {
25
+ for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
26
+ element_4 = _b.value;
27
+ allStringEq_5 = allStringEq_5 && element_4 == "available";
28
+ }
29
+ }
30
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
31
+ finally {
32
+ try {
33
+ if (_b && !_b.done && (_l = _a.return)) _l.call(_a);
34
+ }
35
+ finally { if (e_1) throw e_1.error; }
36
+ }
37
+ if (allStringEq_5) {
38
+ return [2, { state: WaiterState.SUCCESS, reason: reason }];
39
+ }
36
40
  }
37
- }
38
- }
39
- catch (e) { }
40
- try {
41
- const returnComparator = () => {
42
- const flat_1 = [].concat(...result.ReplicationInstances);
43
- const projection_3 = flat_1.map((element_2) => {
44
- return element_2.ReplicationInstanceStatus;
45
- });
46
- return projection_3;
47
- };
48
- for (const anyStringEq_4 of returnComparator()) {
49
- if (anyStringEq_4 == "incompatible-credentials") {
50
- return { state: WaiterState.FAILURE, reason };
41
+ catch (e) { }
42
+ try {
43
+ returnComparator = function () {
44
+ var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationInstances), false));
45
+ var projection_3 = flat_1.map(function (element_2) {
46
+ return element_2.ReplicationInstanceStatus;
47
+ });
48
+ return projection_3;
49
+ };
50
+ try {
51
+ for (_c = __values(returnComparator()), _d = _c.next(); !_d.done; _d = _c.next()) {
52
+ anyStringEq_4 = _d.value;
53
+ if (anyStringEq_4 == "deleting") {
54
+ return [2, { state: WaiterState.FAILURE, reason: reason }];
55
+ }
56
+ }
57
+ }
58
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
59
+ finally {
60
+ try {
61
+ if (_d && !_d.done && (_m = _c.return)) _m.call(_c);
62
+ }
63
+ finally { if (e_2) throw e_2.error; }
64
+ }
51
65
  }
52
- }
53
- }
54
- catch (e) { }
55
- try {
56
- const returnComparator = () => {
57
- const flat_1 = [].concat(...result.ReplicationInstances);
58
- const projection_3 = flat_1.map((element_2) => {
59
- return element_2.ReplicationInstanceStatus;
60
- });
61
- return projection_3;
62
- };
63
- for (const anyStringEq_4 of returnComparator()) {
64
- if (anyStringEq_4 == "incompatible-network") {
65
- return { state: WaiterState.FAILURE, reason };
66
+ catch (e) { }
67
+ try {
68
+ returnComparator = function () {
69
+ var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationInstances), false));
70
+ var projection_3 = flat_1.map(function (element_2) {
71
+ return element_2.ReplicationInstanceStatus;
72
+ });
73
+ return projection_3;
74
+ };
75
+ try {
76
+ for (_e = __values(returnComparator()), _f = _e.next(); !_f.done; _f = _e.next()) {
77
+ anyStringEq_4 = _f.value;
78
+ if (anyStringEq_4 == "incompatible-credentials") {
79
+ return [2, { state: WaiterState.FAILURE, reason: reason }];
80
+ }
81
+ }
82
+ }
83
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
84
+ finally {
85
+ try {
86
+ if (_f && !_f.done && (_o = _e.return)) _o.call(_e);
87
+ }
88
+ finally { if (e_3) throw e_3.error; }
89
+ }
66
90
  }
67
- }
68
- }
69
- catch (e) { }
70
- try {
71
- const returnComparator = () => {
72
- const flat_1 = [].concat(...result.ReplicationInstances);
73
- const projection_3 = flat_1.map((element_2) => {
74
- return element_2.ReplicationInstanceStatus;
75
- });
76
- return projection_3;
77
- };
78
- for (const anyStringEq_4 of returnComparator()) {
79
- if (anyStringEq_4 == "inaccessible-encryption-credentials") {
80
- return { state: WaiterState.FAILURE, reason };
91
+ catch (e) { }
92
+ try {
93
+ returnComparator = function () {
94
+ var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationInstances), false));
95
+ var projection_3 = flat_1.map(function (element_2) {
96
+ return element_2.ReplicationInstanceStatus;
97
+ });
98
+ return projection_3;
99
+ };
100
+ try {
101
+ for (_g = __values(returnComparator()), _h = _g.next(); !_h.done; _h = _g.next()) {
102
+ anyStringEq_4 = _h.value;
103
+ if (anyStringEq_4 == "incompatible-network") {
104
+ return [2, { state: WaiterState.FAILURE, reason: reason }];
105
+ }
106
+ }
107
+ }
108
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
109
+ finally {
110
+ try {
111
+ if (_h && !_h.done && (_p = _g.return)) _p.call(_g);
112
+ }
113
+ finally { if (e_4) throw e_4.error; }
114
+ }
115
+ }
116
+ catch (e) { }
117
+ try {
118
+ returnComparator = function () {
119
+ var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.ReplicationInstances), false));
120
+ var projection_3 = flat_1.map(function (element_2) {
121
+ return element_2.ReplicationInstanceStatus;
122
+ });
123
+ return projection_3;
124
+ };
125
+ try {
126
+ for (_j = __values(returnComparator()), _k = _j.next(); !_k.done; _k = _j.next()) {
127
+ anyStringEq_4 = _k.value;
128
+ if (anyStringEq_4 == "inaccessible-encryption-credentials") {
129
+ return [2, { state: WaiterState.FAILURE, reason: reason }];
130
+ }
131
+ }
132
+ }
133
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
134
+ finally {
135
+ try {
136
+ if (_k && !_k.done && (_q = _j.return)) _q.call(_j);
137
+ }
138
+ finally { if (e_5) throw e_5.error; }
139
+ }
81
140
  }
82
- }
141
+ catch (e) { }
142
+ return [3, 3];
143
+ case 2:
144
+ exception_1 = _r.sent();
145
+ reason = exception_1;
146
+ return [3, 3];
147
+ case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
148
+ }
149
+ });
150
+ }); };
151
+ export var waitForReplicationInstanceAvailable = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
152
+ var serviceDefaults;
153
+ return __generator(this, function (_a) {
154
+ serviceDefaults = { minDelay: 60, maxDelay: 120 };
155
+ return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
156
+ });
157
+ }); };
158
+ export var waitUntilReplicationInstanceAvailable = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
159
+ var serviceDefaults, result;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ serviceDefaults = { minDelay: 60, maxDelay: 120 };
164
+ return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
165
+ case 1:
166
+ result = _a.sent();
167
+ return [2, checkExceptions(result)];
83
168
  }
84
- catch (e) { }
85
- }
86
- catch (exception) {
87
- reason = exception;
88
- }
89
- return { state: WaiterState.RETRY, reason };
90
- };
91
- export const waitForReplicationInstanceAvailable = async (params, input) => {
92
- const serviceDefaults = { minDelay: 60, maxDelay: 120 };
93
- return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
94
- };
95
- export const waitUntilReplicationInstanceAvailable = async (params, input) => {
96
- const serviceDefaults = { minDelay: 60, maxDelay: 120 };
97
- const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
98
- return checkExceptions(result);
99
- };
169
+ });
170
+ }); };