@aws-sdk/client-dynamodb 3.1037.0 → 3.1038.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1157,7 +1157,7 @@ const checkState$1 = async (client, input) => {
1157
1157
  }
1158
1158
  catch (exception) {
1159
1159
  reason = exception;
1160
- if (exception.name && exception.name == "ResourceNotFoundException") {
1160
+ if (exception.name === "ResourceNotFoundException") {
1161
1161
  return { state: utilWaiter.WaiterState.RETRY, reason };
1162
1162
  }
1163
1163
  }
@@ -1181,7 +1181,7 @@ const checkState = async (client, input) => {
1181
1181
  }
1182
1182
  catch (exception) {
1183
1183
  reason = exception;
1184
- if (exception.name && exception.name == "ResourceNotFoundException") {
1184
+ if (exception.name === "ResourceNotFoundException") {
1185
1185
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
1186
1186
  }
1187
1187
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeExportCommand } from "../commands/DescribeExportCommand";
2
+ import { DescribeExportCommand, } from "../commands/DescribeExportCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeImportCommand } from "../commands/DescribeImportCommand";
2
+ import { DescribeImportCommand, } from "../commands/DescribeImportCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeTableCommand } from "../commands/DescribeTableCommand";
2
+ import { DescribeTableCommand, } from "../commands/DescribeTableCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -17,7 +17,7 @@ const checkState = async (client, input) => {
17
17
  }
18
18
  catch (exception) {
19
19
  reason = exception;
20
- if (exception.name && exception.name == "ResourceNotFoundException") {
20
+ if (exception.name === "ResourceNotFoundException") {
21
21
  return { state: WaiterState.RETRY, reason };
22
22
  }
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeTableCommand } from "../commands/DescribeTableCommand";
2
+ import { DescribeTableCommand, } from "../commands/DescribeTableCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -8,7 +8,7 @@ const checkState = async (client, input) => {
8
8
  }
9
9
  catch (exception) {
10
10
  reason = exception;
11
- if (exception.name && exception.name == "ResourceNotFoundException") {
11
+ if (exception.name === "ResourceNotFoundException") {
12
12
  return { state: WaiterState.SUCCESS, reason };
13
13
  }
14
14
  }
@@ -58,6 +58,7 @@ import { type UpdateTableCommandInput, type UpdateTableCommandOutput } from "./c
58
58
  import { type UpdateTableReplicaAutoScalingCommandInput, type UpdateTableReplicaAutoScalingCommandOutput } from "./commands/UpdateTableReplicaAutoScalingCommand";
59
59
  import { type UpdateTimeToLiveCommandInput, type UpdateTimeToLiveCommandOutput } from "./commands/UpdateTimeToLiveCommand";
60
60
  import { DynamoDBClient } from "./DynamoDBClient";
61
+ import type { ResourceNotFoundException } from "./models/errors";
61
62
  export interface DynamoDB {
62
63
  /**
63
64
  * @see {@link BatchExecuteStatementCommand}
@@ -456,37 +457,37 @@ export interface DynamoDB {
456
457
  * @param args - command input.
457
458
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
458
459
  */
459
- waitUntilContributorInsightsEnabled(args: DescribeContributorInsightsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult>;
460
+ waitUntilContributorInsightsEnabled(args: DescribeContributorInsightsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult<DescribeContributorInsightsCommandOutput>>;
460
461
  /**
461
462
  * @see {@link DescribeExportCommand}
462
463
  * @param args - command input.
463
464
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
464
465
  */
465
- waitUntilExportCompleted(args: DescribeExportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult>;
466
+ waitUntilExportCompleted(args: DescribeExportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult<DescribeExportCommandOutput>>;
466
467
  /**
467
468
  * @see {@link DescribeImportCommand}
468
469
  * @param args - command input.
469
470
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
470
471
  */
471
- waitUntilImportCompleted(args: DescribeImportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult>;
472
+ waitUntilImportCompleted(args: DescribeImportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult<DescribeImportCommandOutput>>;
472
473
  /**
473
474
  * @see {@link DescribeKinesisStreamingDestinationCommand}
474
475
  * @param args - command input.
475
476
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
476
477
  */
477
- waitUntilKinesisStreamingDestinationActive(args: DescribeKinesisStreamingDestinationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult>;
478
+ waitUntilKinesisStreamingDestinationActive(args: DescribeKinesisStreamingDestinationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult<DescribeKinesisStreamingDestinationCommandOutput>>;
478
479
  /**
479
480
  * @see {@link DescribeTableCommand}
480
481
  * @param args - command input.
481
482
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
482
483
  */
483
- waitUntilTableExists(args: DescribeTableCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult>;
484
+ waitUntilTableExists(args: DescribeTableCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult<DescribeTableCommandOutput>>;
484
485
  /**
485
486
  * @see {@link DescribeTableCommand}
486
487
  * @param args - command input.
487
488
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
488
489
  */
489
- waitUntilTableNotExists(args: DescribeTableCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult>;
490
+ waitUntilTableNotExists(args: DescribeTableCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DynamoDB>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
490
491
  }
491
492
  /**
492
493
  * <fullname>Amazon DynamoDB</fullname>
@@ -228,6 +228,7 @@ import {
228
228
  UpdateTimeToLiveCommandOutput,
229
229
  } from "./commands/UpdateTimeToLiveCommand";
230
230
  import { DynamoDBClient } from "./DynamoDBClient";
231
+ import { ResourceNotFoundException } from "./models/errors";
231
232
  export interface DynamoDB {
232
233
  batchExecuteStatement(
233
234
  args: BatchExecuteStatementCommandInput,
@@ -1052,7 +1053,7 @@ export interface DynamoDB {
1052
1053
  WaiterConfiguration<DynamoDB>,
1053
1054
  Exclude<keyof WaiterConfiguration<DynamoDB>, "client">
1054
1055
  >
1055
- ): Promise<WaiterResult>;
1056
+ ): Promise<WaiterResult<DescribeContributorInsightsCommandOutput>>;
1056
1057
  waitUntilExportCompleted(
1057
1058
  args: DescribeExportCommandInput,
1058
1059
  waiterConfig:
@@ -1061,7 +1062,7 @@ export interface DynamoDB {
1061
1062
  WaiterConfiguration<DynamoDB>,
1062
1063
  Exclude<keyof WaiterConfiguration<DynamoDB>, "client">
1063
1064
  >
1064
- ): Promise<WaiterResult>;
1065
+ ): Promise<WaiterResult<DescribeExportCommandOutput>>;
1065
1066
  waitUntilImportCompleted(
1066
1067
  args: DescribeImportCommandInput,
1067
1068
  waiterConfig:
@@ -1070,7 +1071,7 @@ export interface DynamoDB {
1070
1071
  WaiterConfiguration<DynamoDB>,
1071
1072
  Exclude<keyof WaiterConfiguration<DynamoDB>, "client">
1072
1073
  >
1073
- ): Promise<WaiterResult>;
1074
+ ): Promise<WaiterResult<DescribeImportCommandOutput>>;
1074
1075
  waitUntilKinesisStreamingDestinationActive(
1075
1076
  args: DescribeKinesisStreamingDestinationCommandInput,
1076
1077
  waiterConfig:
@@ -1079,7 +1080,7 @@ export interface DynamoDB {
1079
1080
  WaiterConfiguration<DynamoDB>,
1080
1081
  Exclude<keyof WaiterConfiguration<DynamoDB>, "client">
1081
1082
  >
1082
- ): Promise<WaiterResult>;
1083
+ ): Promise<WaiterResult<DescribeKinesisStreamingDestinationCommandOutput>>;
1083
1084
  waitUntilTableExists(
1084
1085
  args: DescribeTableCommandInput,
1085
1086
  waiterConfig:
@@ -1088,7 +1089,7 @@ export interface DynamoDB {
1088
1089
  WaiterConfiguration<DynamoDB>,
1089
1090
  Exclude<keyof WaiterConfiguration<DynamoDB>, "client">
1090
1091
  >
1091
- ): Promise<WaiterResult>;
1092
+ ): Promise<WaiterResult<DescribeTableCommandOutput>>;
1092
1093
  waitUntilTableNotExists(
1093
1094
  args: DescribeTableCommandInput,
1094
1095
  waiterConfig:
@@ -1097,6 +1098,6 @@ export interface DynamoDB {
1097
1098
  WaiterConfiguration<DynamoDB>,
1098
1099
  Exclude<keyof WaiterConfiguration<DynamoDB>, "client">
1099
1100
  >
1100
- ): Promise<WaiterResult>;
1101
+ ): Promise<WaiterResult<ResourceNotFoundException>>;
1101
1102
  }
1102
1103
  export declare class DynamoDB extends DynamoDBClient implements DynamoDB {}
@@ -1,11 +1,19 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeContributorInsightsCommandInput } from "../commands/DescribeContributorInsightsCommand";
2
+ import {
3
+ DescribeContributorInsightsCommandInput,
4
+ DescribeContributorInsightsCommandOutput,
5
+ } from "../commands/DescribeContributorInsightsCommand";
3
6
  import { DynamoDBClient } from "../DynamoDBClient";
7
+ import { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
8
  export declare const waitForContributorInsightsEnabled: (
5
9
  params: WaiterConfiguration<DynamoDBClient>,
6
10
  input: DescribeContributorInsightsCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<
13
+ DescribeContributorInsightsCommandOutput | DynamoDBServiceException
14
+ >
15
+ >;
8
16
  export declare const waitUntilContributorInsightsEnabled: (
9
17
  params: WaiterConfiguration<DynamoDBClient>,
10
18
  input: DescribeContributorInsightsCommandInput
11
- ) => Promise<WaiterResult>;
19
+ ) => Promise<WaiterResult<DescribeContributorInsightsCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeExportCommandInput } from "../commands/DescribeExportCommand";
2
+ import {
3
+ DescribeExportCommandInput,
4
+ DescribeExportCommandOutput,
5
+ } from "../commands/DescribeExportCommand";
3
6
  import { DynamoDBClient } from "../DynamoDBClient";
7
+ import { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
8
  export declare const waitForExportCompleted: (
5
9
  params: WaiterConfiguration<DynamoDBClient>,
6
10
  input: DescribeExportCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeExportCommandOutput | DynamoDBServiceException>
13
+ >;
8
14
  export declare const waitUntilExportCompleted: (
9
15
  params: WaiterConfiguration<DynamoDBClient>,
10
16
  input: DescribeExportCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeExportCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeImportCommandInput } from "../commands/DescribeImportCommand";
2
+ import {
3
+ DescribeImportCommandInput,
4
+ DescribeImportCommandOutput,
5
+ } from "../commands/DescribeImportCommand";
3
6
  import { DynamoDBClient } from "../DynamoDBClient";
7
+ import { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
8
  export declare const waitForImportCompleted: (
5
9
  params: WaiterConfiguration<DynamoDBClient>,
6
10
  input: DescribeImportCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeImportCommandOutput | DynamoDBServiceException>
13
+ >;
8
14
  export declare const waitUntilImportCompleted: (
9
15
  params: WaiterConfiguration<DynamoDBClient>,
10
16
  input: DescribeImportCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeImportCommandOutput>>;
@@ -1,11 +1,19 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeKinesisStreamingDestinationCommandInput } from "../commands/DescribeKinesisStreamingDestinationCommand";
2
+ import {
3
+ DescribeKinesisStreamingDestinationCommandInput,
4
+ DescribeKinesisStreamingDestinationCommandOutput,
5
+ } from "../commands/DescribeKinesisStreamingDestinationCommand";
3
6
  import { DynamoDBClient } from "../DynamoDBClient";
7
+ import { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
8
  export declare const waitForKinesisStreamingDestinationActive: (
5
9
  params: WaiterConfiguration<DynamoDBClient>,
6
10
  input: DescribeKinesisStreamingDestinationCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<
13
+ DescribeKinesisStreamingDestinationCommandOutput | DynamoDBServiceException
14
+ >
15
+ >;
8
16
  export declare const waitUntilKinesisStreamingDestinationActive: (
9
17
  params: WaiterConfiguration<DynamoDBClient>,
10
18
  input: DescribeKinesisStreamingDestinationCommandInput
11
- ) => Promise<WaiterResult>;
19
+ ) => Promise<WaiterResult<DescribeKinesisStreamingDestinationCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeTableCommandInput } from "../commands/DescribeTableCommand";
2
+ import {
3
+ DescribeTableCommandInput,
4
+ DescribeTableCommandOutput,
5
+ } from "../commands/DescribeTableCommand";
3
6
  import { DynamoDBClient } from "../DynamoDBClient";
7
+ import { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
8
  export declare const waitForTableExists: (
5
9
  params: WaiterConfiguration<DynamoDBClient>,
6
10
  input: DescribeTableCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeTableCommandOutput | DynamoDBServiceException>
13
+ >;
8
14
  export declare const waitUntilTableExists: (
9
15
  params: WaiterConfiguration<DynamoDBClient>,
10
16
  input: DescribeTableCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeTableCommandOutput>>;
@@ -1,11 +1,18 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeTableCommandInput } from "../commands/DescribeTableCommand";
2
+ import {
3
+ DescribeTableCommandInput,
4
+ DescribeTableCommandOutput,
5
+ } from "../commands/DescribeTableCommand";
3
6
  import { DynamoDBClient } from "../DynamoDBClient";
7
+ import { DynamoDBServiceException } from "../models/DynamoDBServiceException";
8
+ import { ResourceNotFoundException } from "../models/errors";
4
9
  export declare const waitForTableNotExists: (
5
10
  params: WaiterConfiguration<DynamoDBClient>,
6
11
  input: DescribeTableCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<
13
+ WaiterResult<DescribeTableCommandOutput | DynamoDBServiceException>
14
+ >;
8
15
  export declare const waitUntilTableNotExists: (
9
16
  params: WaiterConfiguration<DynamoDBClient>,
10
17
  input: DescribeTableCommandInput
11
- ) => Promise<WaiterResult>;
18
+ ) => Promise<WaiterResult<ResourceNotFoundException>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeContributorInsightsCommandInput } from "../commands/DescribeContributorInsightsCommand";
2
+ import { type DescribeContributorInsightsCommandInput, type DescribeContributorInsightsCommandOutput } from "../commands/DescribeContributorInsightsCommand";
3
3
  import type { DynamoDBClient } from "../DynamoDBClient";
4
+ import type { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilContributorInsightsEnabled instead. waitForContributorInsightsEnabled does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForContributorInsightsEnabled: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeContributorInsightsCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForContributorInsightsEnabled: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeContributorInsightsCommandInput) => Promise<WaiterResult<DescribeContributorInsightsCommandOutput | DynamoDBServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeContributorInsightsCommand for polling.
13
14
  */
14
- export declare const waitUntilContributorInsightsEnabled: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeContributorInsightsCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilContributorInsightsEnabled: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeContributorInsightsCommandInput) => Promise<WaiterResult<DescribeContributorInsightsCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeExportCommandInput } from "../commands/DescribeExportCommand";
2
+ import { type DescribeExportCommandInput, type DescribeExportCommandOutput } from "../commands/DescribeExportCommand";
3
3
  import type { DynamoDBClient } from "../DynamoDBClient";
4
+ import type { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilExportCompleted instead. waitForExportCompleted does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForExportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeExportCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForExportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeExportCommandInput) => Promise<WaiterResult<DescribeExportCommandOutput | DynamoDBServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeExportCommand for polling.
13
14
  */
14
- export declare const waitUntilExportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeExportCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilExportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeExportCommandInput) => Promise<WaiterResult<DescribeExportCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeImportCommandInput } from "../commands/DescribeImportCommand";
2
+ import { type DescribeImportCommandInput, type DescribeImportCommandOutput } from "../commands/DescribeImportCommand";
3
3
  import type { DynamoDBClient } from "../DynamoDBClient";
4
+ import type { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilImportCompleted instead. waitForImportCompleted does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForImportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeImportCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForImportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeImportCommandInput) => Promise<WaiterResult<DescribeImportCommandOutput | DynamoDBServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeImportCommand for polling.
13
14
  */
14
- export declare const waitUntilImportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeImportCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilImportCompleted: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeImportCommandInput) => Promise<WaiterResult<DescribeImportCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeKinesisStreamingDestinationCommandInput } from "../commands/DescribeKinesisStreamingDestinationCommand";
2
+ import { type DescribeKinesisStreamingDestinationCommandInput, type DescribeKinesisStreamingDestinationCommandOutput } from "../commands/DescribeKinesisStreamingDestinationCommand";
3
3
  import type { DynamoDBClient } from "../DynamoDBClient";
4
+ import type { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilKinesisStreamingDestinationActive instead. waitForKinesisStreamingDestinationActive does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForKinesisStreamingDestinationActive: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeKinesisStreamingDestinationCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForKinesisStreamingDestinationActive: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeKinesisStreamingDestinationCommandInput) => Promise<WaiterResult<DescribeKinesisStreamingDestinationCommandOutput | DynamoDBServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeKinesisStreamingDestinationCommand for polling.
13
14
  */
14
- export declare const waitUntilKinesisStreamingDestinationActive: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeKinesisStreamingDestinationCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilKinesisStreamingDestinationActive: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeKinesisStreamingDestinationCommandInput) => Promise<WaiterResult<DescribeKinesisStreamingDestinationCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeTableCommandInput } from "../commands/DescribeTableCommand";
2
+ import { type DescribeTableCommandInput, type DescribeTableCommandOutput } from "../commands/DescribeTableCommand";
3
3
  import type { DynamoDBClient } from "../DynamoDBClient";
4
+ import type { DynamoDBServiceException } from "../models/DynamoDBServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilTableExists instead. waitForTableExists does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForTableExists: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeTableCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForTableExists: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeTableCommandInput) => Promise<WaiterResult<DescribeTableCommandOutput | DynamoDBServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeTableCommand for polling.
13
14
  */
14
- export declare const waitUntilTableExists: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeTableCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilTableExists: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeTableCommandInput) => Promise<WaiterResult<DescribeTableCommandOutput>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeTableCommandInput } from "../commands/DescribeTableCommand";
2
+ import { type DescribeTableCommandInput, type DescribeTableCommandOutput } from "../commands/DescribeTableCommand";
3
3
  import type { DynamoDBClient } from "../DynamoDBClient";
4
+ import type { DynamoDBServiceException } from "../models/DynamoDBServiceException";
5
+ import type { ResourceNotFoundException } from "../models/errors";
4
6
  /**
5
7
  *
6
8
  * @deprecated Use waitUntilTableNotExists instead. waitForTableNotExists does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForTableNotExists: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeTableCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForTableNotExists: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeTableCommandInput) => Promise<WaiterResult<DescribeTableCommandOutput | DynamoDBServiceException>>;
9
11
  /**
10
12
  *
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to DescribeTableCommand for polling.
13
15
  */
14
- export declare const waitUntilTableNotExists: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeTableCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilTableNotExists: (params: WaiterConfiguration<DynamoDBClient>, input: DescribeTableCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb",
3
3
  "description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
4
- "version": "3.1037.0",
4
+ "version": "3.1038.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-dynamodb",
@@ -27,19 +27,19 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.5",
31
- "@aws-sdk/credential-provider-node": "^3.972.36",
32
- "@aws-sdk/dynamodb-codec": "^3.973.5",
30
+ "@aws-sdk/core": "^3.974.6",
31
+ "@aws-sdk/credential-provider-node": "^3.972.37",
32
+ "@aws-sdk/dynamodb-codec": "^3.973.6",
33
33
  "@aws-sdk/middleware-endpoint-discovery": "^3.972.11",
34
34
  "@aws-sdk/middleware-host-header": "^3.972.10",
35
35
  "@aws-sdk/middleware-logger": "^3.972.10",
36
36
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
37
- "@aws-sdk/middleware-user-agent": "^3.972.35",
37
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
38
38
  "@aws-sdk/region-config-resolver": "^3.972.13",
39
39
  "@aws-sdk/types": "^3.973.8",
40
40
  "@aws-sdk/util-endpoints": "^3.996.8",
41
41
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
42
- "@aws-sdk/util-user-agent-node": "^3.973.21",
42
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
43
43
  "@smithy/config-resolver": "^4.4.17",
44
44
  "@smithy/core": "^3.23.17",
45
45
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -47,7 +47,7 @@
47
47
  "@smithy/invalid-dependency": "^4.2.14",
48
48
  "@smithy/middleware-content-length": "^4.2.14",
49
49
  "@smithy/middleware-endpoint": "^4.4.32",
50
- "@smithy/middleware-retry": "^4.5.5",
50
+ "@smithy/middleware-retry": "^4.5.6",
51
51
  "@smithy/middleware-serde": "^4.2.20",
52
52
  "@smithy/middleware-stack": "^4.2.14",
53
53
  "@smithy/node-config-provider": "^4.3.14",
@@ -63,9 +63,9 @@
63
63
  "@smithy/util-defaults-mode-node": "^4.2.54",
64
64
  "@smithy/util-endpoints": "^3.4.2",
65
65
  "@smithy/util-middleware": "^4.2.14",
66
- "@smithy/util-retry": "^4.3.4",
66
+ "@smithy/util-retry": "^4.3.5",
67
67
  "@smithy/util-utf8": "^4.2.2",
68
- "@smithy/util-waiter": "^4.2.16",
68
+ "@smithy/util-waiter": "^4.3.0",
69
69
  "tslib": "^2.6.2"
70
70
  },
71
71
  "devDependencies": {