@aws-sdk/client-elementalinference 3.1036.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
@@ -262,13 +262,13 @@ const checkState = async (client, input) => {
262
262
  }
263
263
  catch (exception) {
264
264
  reason = exception;
265
- if (exception.name && exception.name == "ResourceNotFoundException") {
265
+ if (exception.name === "ResourceNotFoundException") {
266
266
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
267
267
  }
268
- if (exception.name && exception.name == "InternalServerErrorException") {
268
+ if (exception.name === "InternalServerErrorException") {
269
269
  return { state: utilWaiter.WaiterState.RETRY, reason };
270
270
  }
271
- if (exception.name && exception.name == "TooManyRequestException") {
271
+ if (exception.name === "TooManyRequestException") {
272
272
  return { state: utilWaiter.WaiterState.RETRY, reason };
273
273
  }
274
274
  }
@@ -26,13 +26,13 @@ const checkState = async (client, input) => {
26
26
  }
27
27
  catch (exception) {
28
28
  reason = exception;
29
- if (exception.name && exception.name == "ResourceNotFoundException") {
29
+ if (exception.name === "ResourceNotFoundException") {
30
30
  return { state: WaiterState.SUCCESS, reason };
31
31
  }
32
- if (exception.name && exception.name == "InternalServerErrorException") {
32
+ if (exception.name === "InternalServerErrorException") {
33
33
  return { state: WaiterState.RETRY, reason };
34
34
  }
35
- if (exception.name && exception.name == "TooManyRequestException") {
35
+ if (exception.name === "TooManyRequestException") {
36
36
  return { state: WaiterState.RETRY, reason };
37
37
  }
38
38
  }
@@ -11,6 +11,7 @@ import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./c
11
11
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
12
12
  import { type UpdateFeedCommandInput, type UpdateFeedCommandOutput } from "./commands/UpdateFeedCommand";
13
13
  import { ElementalInferenceClient } from "./ElementalInferenceClient";
14
+ import type { ResourceNotFoundException } from "./models/errors";
14
15
  export interface ElementalInference {
15
16
  /**
16
17
  * @see {@link AssociateFeedCommand}
@@ -85,7 +86,7 @@ export interface ElementalInference {
85
86
  * @param args - command input.
86
87
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
87
88
  */
88
- waitUntilFeedDeleted(args: GetFeedCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ElementalInference>, "client">): Promise<WaiterResult>;
89
+ waitUntilFeedDeleted(args: GetFeedCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ElementalInference>, "client">): Promise<WaiterResult<GetFeedCommandOutput | ResourceNotFoundException>>;
89
90
  }
90
91
  /**
91
92
  * <p>This is the AWS Elemental Inference REST API Reference. It provides information on the URL, request contents, and response contents of each AWS Elemental Inference REST operation. </p> <p>We assume that you have the IAM permissions that you need to use AWS Elemental Inference via the REST API. We also assume that you are familiar with the features and operations of AWS Elemental Inference as described in <i>AWS Elemental Inference User Guide</i>. </p>
@@ -46,6 +46,7 @@ import {
46
46
  UpdateFeedCommandOutput,
47
47
  } from "./commands/UpdateFeedCommand";
48
48
  import { ElementalInferenceClient } from "./ElementalInferenceClient";
49
+ import { ResourceNotFoundException } from "./models/errors";
49
50
  export interface ElementalInference {
50
51
  associateFeed(
51
52
  args: AssociateFeedCommandInput,
@@ -193,7 +194,7 @@ export interface ElementalInference {
193
194
  WaiterConfiguration<ElementalInference>,
194
195
  Exclude<keyof WaiterConfiguration<ElementalInference>, "client">
195
196
  >
196
- ): Promise<WaiterResult>;
197
+ ): Promise<WaiterResult<GetFeedCommandOutput | ResourceNotFoundException>>;
197
198
  }
198
199
  export declare class ElementalInference
199
200
  extends ElementalInferenceClient
@@ -1,11 +1,18 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetFeedCommandInput } from "../commands/GetFeedCommand";
2
+ import {
3
+ GetFeedCommandInput,
4
+ GetFeedCommandOutput,
5
+ } from "../commands/GetFeedCommand";
3
6
  import { ElementalInferenceClient } from "../ElementalInferenceClient";
7
+ import { ElementalInferenceServiceException } from "../models/ElementalInferenceServiceException";
8
+ import { ResourceNotFoundException } from "../models/errors";
4
9
  export declare const waitForFeedDeleted: (
5
10
  params: WaiterConfiguration<ElementalInferenceClient>,
6
11
  input: GetFeedCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<
13
+ WaiterResult<GetFeedCommandOutput | ElementalInferenceServiceException>
14
+ >;
8
15
  export declare const waitUntilFeedDeleted: (
9
16
  params: WaiterConfiguration<ElementalInferenceClient>,
10
17
  input: GetFeedCommandInput
11
- ) => Promise<WaiterResult>;
18
+ ) => Promise<WaiterResult<GetFeedCommandOutput | ResourceNotFoundException>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetFeedCommandInput } from "../commands/GetFeedCommand";
2
+ import { type GetFeedCommandInput, type GetFeedCommandOutput } from "../commands/GetFeedCommand";
3
3
  import type { ElementalInferenceClient } from "../ElementalInferenceClient";
4
+ import type { ElementalInferenceServiceException } from "../models/ElementalInferenceServiceException";
5
+ import type { ResourceNotFoundException } from "../models/errors";
4
6
  /**
5
7
  * Wait until a Feed is deleted
6
8
  * @deprecated Use waitUntilFeedDeleted instead. waitForFeedDeleted does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForFeedDeleted: (params: WaiterConfiguration<ElementalInferenceClient>, input: GetFeedCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForFeedDeleted: (params: WaiterConfiguration<ElementalInferenceClient>, input: GetFeedCommandInput) => Promise<WaiterResult<GetFeedCommandOutput | ElementalInferenceServiceException>>;
9
11
  /**
10
12
  * Wait until a Feed is deleted
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to GetFeedCommand for polling.
13
15
  */
14
- export declare const waitUntilFeedDeleted: (params: WaiterConfiguration<ElementalInferenceClient>, input: GetFeedCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilFeedDeleted: (params: WaiterConfiguration<ElementalInferenceClient>, input: GetFeedCommandInput) => Promise<WaiterResult<GetFeedCommandOutput | ResourceNotFoundException>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elementalinference",
3
3
  "description": "AWS SDK for JavaScript Elementalinference Client for Node.js, Browser and React Native",
4
- "version": "3.1036.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-elementalinference",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.5",
25
- "@aws-sdk/credential-provider-node": "^3.972.36",
24
+ "@aws-sdk/core": "^3.974.6",
25
+ "@aws-sdk/credential-provider-node": "^3.972.37",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.35",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.21",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
35
35
  "@smithy/config-resolver": "^4.4.17",
36
36
  "@smithy/core": "^3.23.17",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -39,7 +39,7 @@
39
39
  "@smithy/invalid-dependency": "^4.2.14",
40
40
  "@smithy/middleware-content-length": "^4.2.14",
41
41
  "@smithy/middleware-endpoint": "^4.4.32",
42
- "@smithy/middleware-retry": "^4.5.5",
42
+ "@smithy/middleware-retry": "^4.5.6",
43
43
  "@smithy/middleware-serde": "^4.2.20",
44
44
  "@smithy/middleware-stack": "^4.2.14",
45
45
  "@smithy/node-config-provider": "^4.3.14",
@@ -55,9 +55,9 @@
55
55
  "@smithy/util-defaults-mode-node": "^4.2.54",
56
56
  "@smithy/util-endpoints": "^3.4.2",
57
57
  "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.4",
58
+ "@smithy/util-retry": "^4.3.5",
59
59
  "@smithy/util-utf8": "^4.2.2",
60
- "@smithy/util-waiter": "^4.2.16",
60
+ "@smithy/util-waiter": "^4.3.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {