@aws-sdk/client-database-migration-service 3.1046.0 → 3.1048.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 (51) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +2 -2
  2. package/dist-cjs/index.js +515 -15
  3. package/dist-cjs/runtimeConfig.browser.js +5 -5
  4. package/dist-cjs/runtimeConfig.js +2 -3
  5. package/dist-es/DatabaseMigrationService.js +18 -0
  6. package/dist-es/DatabaseMigrationServiceClient.js +1 -4
  7. package/dist-es/endpoint/endpointResolver.js +1 -1
  8. package/dist-es/runtimeConfig.browser.js +1 -1
  9. package/dist-es/runtimeConfig.js +1 -2
  10. package/dist-es/runtimeExtensions.js +1 -1
  11. package/dist-es/waiters/index.js +9 -0
  12. package/dist-es/waiters/waitForExtensionPackAssociated.js +54 -0
  13. package/dist-es/waiters/waitForMetadataModelAssessed.js +54 -0
  14. package/dist-es/waiters/waitForMetadataModelConversionCancelled.js +54 -0
  15. package/dist-es/waiters/waitForMetadataModelConverted.js +54 -0
  16. package/dist-es/waiters/waitForMetadataModelCreated.js +54 -0
  17. package/dist-es/waiters/waitForMetadataModelCreationCancelled.js +54 -0
  18. package/dist-es/waiters/waitForMetadataModelExportedAsScript.js +54 -0
  19. package/dist-es/waiters/waitForMetadataModelExportedToTarget.js +54 -0
  20. package/dist-es/waiters/waitForMetadataModelImported.js +54 -0
  21. package/dist-types/DatabaseMigrationService.d.ts +54 -0
  22. package/dist-types/DatabaseMigrationServiceClient.d.ts +1 -2
  23. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  24. package/dist-types/runtimeConfig.d.ts +1 -1
  25. package/dist-types/runtimeConfig.native.d.ts +1 -1
  26. package/dist-types/ts3.4/DatabaseMigrationService.d.ts +81 -0
  27. package/dist-types/ts3.4/DatabaseMigrationServiceClient.d.ts +1 -3
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  29. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  31. package/dist-types/ts3.4/waiters/index.d.ts +9 -0
  32. package/dist-types/ts3.4/waiters/waitForExtensionPackAssociated.d.ts +20 -0
  33. package/dist-types/ts3.4/waiters/waitForMetadataModelAssessed.d.ts +20 -0
  34. package/dist-types/ts3.4/waiters/waitForMetadataModelConversionCancelled.d.ts +20 -0
  35. package/dist-types/ts3.4/waiters/waitForMetadataModelConverted.d.ts +20 -0
  36. package/dist-types/ts3.4/waiters/waitForMetadataModelCreated.d.ts +20 -0
  37. package/dist-types/ts3.4/waiters/waitForMetadataModelCreationCancelled.d.ts +20 -0
  38. package/dist-types/ts3.4/waiters/waitForMetadataModelExportedAsScript.d.ts +20 -0
  39. package/dist-types/ts3.4/waiters/waitForMetadataModelExportedToTarget.d.ts +20 -0
  40. package/dist-types/ts3.4/waiters/waitForMetadataModelImported.d.ts +20 -0
  41. package/dist-types/waiters/index.d.ts +9 -0
  42. package/dist-types/waiters/waitForExtensionPackAssociated.d.ts +15 -0
  43. package/dist-types/waiters/waitForMetadataModelAssessed.d.ts +15 -0
  44. package/dist-types/waiters/waitForMetadataModelConversionCancelled.d.ts +15 -0
  45. package/dist-types/waiters/waitForMetadataModelConverted.d.ts +15 -0
  46. package/dist-types/waiters/waitForMetadataModelCreated.d.ts +15 -0
  47. package/dist-types/waiters/waitForMetadataModelCreationCancelled.d.ts +15 -0
  48. package/dist-types/waiters/waitForMetadataModelExportedAsScript.d.ts +15 -0
  49. package/dist-types/waiters/waitForMetadataModelExportedToTarget.d.ts +15 -0
  50. package/dist-types/waiters/waitForMetadataModelImported.d.ts +15 -0
  51. package/package.json +6 -14
@@ -162,6 +162,15 @@ import { paginateDescribeReplicationTasks } from "./pagination/DescribeReplicati
162
162
  import { paginateDescribeSchemas } from "./pagination/DescribeSchemasPaginator";
163
163
  import { paginateDescribeTableStatistics } from "./pagination/DescribeTableStatisticsPaginator";
164
164
  import { waitUntilEndpointDeleted } from "./waiters/waitForEndpointDeleted";
165
+ import { waitUntilExtensionPackAssociated } from "./waiters/waitForExtensionPackAssociated";
166
+ import { waitUntilMetadataModelAssessed } from "./waiters/waitForMetadataModelAssessed";
167
+ import { waitUntilMetadataModelConversionCancelled } from "./waiters/waitForMetadataModelConversionCancelled";
168
+ import { waitUntilMetadataModelConverted } from "./waiters/waitForMetadataModelConverted";
169
+ import { waitUntilMetadataModelCreated } from "./waiters/waitForMetadataModelCreated";
170
+ import { waitUntilMetadataModelCreationCancelled } from "./waiters/waitForMetadataModelCreationCancelled";
171
+ import { waitUntilMetadataModelExportedAsScript } from "./waiters/waitForMetadataModelExportedAsScript";
172
+ import { waitUntilMetadataModelExportedToTarget } from "./waiters/waitForMetadataModelExportedToTarget";
173
+ import { waitUntilMetadataModelImported } from "./waiters/waitForMetadataModelImported";
165
174
  import { waitUntilReplicationInstanceAvailable } from "./waiters/waitForReplicationInstanceAvailable";
166
175
  import { waitUntilReplicationInstanceDeleted } from "./waiters/waitForReplicationInstanceDeleted";
167
176
  import { waitUntilReplicationTaskDeleted } from "./waiters/waitForReplicationTaskDeleted";
@@ -337,6 +346,15 @@ const paginators = {
337
346
  const waiters = {
338
347
  waitUntilTestConnectionSucceeds,
339
348
  waitUntilEndpointDeleted,
349
+ waitUntilExtensionPackAssociated,
350
+ waitUntilMetadataModelAssessed,
351
+ waitUntilMetadataModelConversionCancelled,
352
+ waitUntilMetadataModelConverted,
353
+ waitUntilMetadataModelCreated,
354
+ waitUntilMetadataModelCreationCancelled,
355
+ waitUntilMetadataModelExportedAsScript,
356
+ waitUntilMetadataModelExportedToTarget,
357
+ waitUntilMetadataModelImported,
340
358
  waitUntilReplicationInstanceAvailable,
341
359
  waitUntilReplicationInstanceDeleted,
342
360
  waitUntilReplicationTaskDeleted,
@@ -1,7 +1,4 @@
1
- import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
- import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
- import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
5
2
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
6
3
  import { Client as __Client, } from "@smithy/core/client";
7
4
  import { resolveRegionConfig } from "@smithy/core/config";
@@ -1,4 +1,4 @@
1
- import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/core/client";
2
2
  import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
3
  import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
@@ -1,6 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
- import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
3
+ import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
4
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
5
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
6
6
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
@@ -1,8 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core/client";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
3
3
  import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
- import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
6
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
7
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
@@ -1,4 +1,4 @@
1
- import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
2
2
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
3
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
@@ -1,5 +1,14 @@
1
1
  export * from "./waitForTestConnectionSucceeds";
2
2
  export * from "./waitForEndpointDeleted";
3
+ export * from "./waitForExtensionPackAssociated";
4
+ export * from "./waitForMetadataModelAssessed";
5
+ export * from "./waitForMetadataModelConversionCancelled";
6
+ export * from "./waitForMetadataModelConverted";
7
+ export * from "./waitForMetadataModelCreated";
8
+ export * from "./waitForMetadataModelCreationCancelled";
9
+ export * from "./waitForMetadataModelExportedAsScript";
10
+ export * from "./waitForMetadataModelExportedToTarget";
11
+ export * from "./waitForMetadataModelImported";
3
12
  export * from "./waitForReplicationInstanceAvailable";
4
13
  export * from "./waitForReplicationInstanceDeleted";
5
14
  export * from "./waitForReplicationTaskDeleted";
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeExtensionPackAssociationsCommand, } from "../commands/DescribeExtensionPackAssociationsCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeExtensionPackAssociationsCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "SUCCESS");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForExtensionPackAssociated = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilExtensionPackAssociated = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeMetadataModelAssessmentsCommand, } from "../commands/DescribeMetadataModelAssessmentsCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeMetadataModelAssessmentsCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "SUCCESS");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForMetadataModelAssessed = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilMetadataModelAssessed = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeMetadataModelConversionsCommand, } from "../commands/DescribeMetadataModelConversionsCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeMetadataModelConversionsCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "CANCELED");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForMetadataModelConversionCancelled = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilMetadataModelConversionCancelled = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeMetadataModelConversionsCommand, } from "../commands/DescribeMetadataModelConversionsCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeMetadataModelConversionsCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "SUCCESS");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForMetadataModelConverted = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilMetadataModelConverted = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeMetadataModelCreationsCommand, } from "../commands/DescribeMetadataModelCreationsCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeMetadataModelCreationsCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "SUCCESS");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForMetadataModelCreated = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilMetadataModelCreated = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 15, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeMetadataModelCreationsCommand, } from "../commands/DescribeMetadataModelCreationsCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeMetadataModelCreationsCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "CANCELED");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForMetadataModelCreationCancelled = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilMetadataModelCreationCancelled = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 10, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeMetadataModelExportsAsScriptCommand, } from "../commands/DescribeMetadataModelExportsAsScriptCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeMetadataModelExportsAsScriptCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "SUCCESS");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForMetadataModelExportedAsScript = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 20, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilMetadataModelExportedAsScript = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 20, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeMetadataModelExportsToTargetCommand, } from "../commands/DescribeMetadataModelExportsToTargetCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeMetadataModelExportsToTargetCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "SUCCESS");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForMetadataModelExportedToTarget = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 20, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilMetadataModelExportedToTarget = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 20, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -0,0 +1,54 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { DescribeMetadataModelImportsCommand, } from "../commands/DescribeMetadataModelImportsCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new DescribeMetadataModelImportsCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ let flat_1 = [].concat(...result.Requests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
+ return element_2.Status;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "SUCCESS");
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ let flat_1 = [].concat(...result.Requests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
+ return element_2.Status;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (let anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
36
+ }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ }
41
+ catch (exception) {
42
+ reason = exception;
43
+ }
44
+ return { state: WaiterState.RETRY, reason };
45
+ };
46
+ export const waitForMetadataModelImported = async (params, input) => {
47
+ const serviceDefaults = { minDelay: 60, maxDelay: 120 };
48
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
49
+ };
50
+ export const waitUntilMetadataModelImported = async (params, input) => {
51
+ const serviceDefaults = { minDelay: 60, maxDelay: 120 };
52
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
53
+ return checkExceptions(result);
54
+ };
@@ -1178,6 +1178,60 @@ export interface DatabaseMigrationService {
1178
1178
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1179
1179
  */
1180
1180
  waitUntilEndpointDeleted(args: DescribeEndpointsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<ResourceNotFoundFault>>;
1181
+ /**
1182
+ * @see {@link DescribeExtensionPackAssociationsCommand}
1183
+ * @param args - command input.
1184
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1185
+ */
1186
+ waitUntilExtensionPackAssociated(args: DescribeExtensionPackAssociationsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeExtensionPackAssociationsCommandOutput>>;
1187
+ /**
1188
+ * @see {@link DescribeMetadataModelAssessmentsCommand}
1189
+ * @param args - command input.
1190
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1191
+ */
1192
+ waitUntilMetadataModelAssessed(args: DescribeMetadataModelAssessmentsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeMetadataModelAssessmentsCommandOutput>>;
1193
+ /**
1194
+ * @see {@link DescribeMetadataModelConversionsCommand}
1195
+ * @param args - command input.
1196
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1197
+ */
1198
+ waitUntilMetadataModelConversionCancelled(args: DescribeMetadataModelConversionsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeMetadataModelConversionsCommandOutput>>;
1199
+ /**
1200
+ * @see {@link DescribeMetadataModelConversionsCommand}
1201
+ * @param args - command input.
1202
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1203
+ */
1204
+ waitUntilMetadataModelConverted(args: DescribeMetadataModelConversionsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeMetadataModelConversionsCommandOutput>>;
1205
+ /**
1206
+ * @see {@link DescribeMetadataModelCreationsCommand}
1207
+ * @param args - command input.
1208
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1209
+ */
1210
+ waitUntilMetadataModelCreated(args: DescribeMetadataModelCreationsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeMetadataModelCreationsCommandOutput>>;
1211
+ /**
1212
+ * @see {@link DescribeMetadataModelCreationsCommand}
1213
+ * @param args - command input.
1214
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1215
+ */
1216
+ waitUntilMetadataModelCreationCancelled(args: DescribeMetadataModelCreationsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeMetadataModelCreationsCommandOutput>>;
1217
+ /**
1218
+ * @see {@link DescribeMetadataModelExportsAsScriptCommand}
1219
+ * @param args - command input.
1220
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1221
+ */
1222
+ waitUntilMetadataModelExportedAsScript(args: DescribeMetadataModelExportsAsScriptCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeMetadataModelExportsAsScriptCommandOutput>>;
1223
+ /**
1224
+ * @see {@link DescribeMetadataModelExportsToTargetCommand}
1225
+ * @param args - command input.
1226
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1227
+ */
1228
+ waitUntilMetadataModelExportedToTarget(args: DescribeMetadataModelExportsToTargetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeMetadataModelExportsToTargetCommandOutput>>;
1229
+ /**
1230
+ * @see {@link DescribeMetadataModelImportsCommand}
1231
+ * @param args - command input.
1232
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1233
+ */
1234
+ waitUntilMetadataModelImported(args: DescribeMetadataModelImportsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DatabaseMigrationService>, "client">): Promise<WaiterResult<DescribeMetadataModelImportsCommandOutput>>;
1181
1235
  /**
1182
1236
  * @see {@link DescribeReplicationInstancesCommand}
1183
1237
  * @param args - command input.
@@ -1,5 +1,4 @@
1
- import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
- import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
3
2
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
4
3
  import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
5
4
  import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";