@aws-sdk/client-personalize 3.52.0 → 3.53.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.
@@ -3,3 +3,4 @@ export * from "./PersonalizeClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { PersonalizeServiceException } from "./models/PersonalizeServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Personalize service.
4
+ */
5
+ export declare class PersonalizeServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { PersonalizeServiceException as __BaseException } from "./PersonalizeServiceException";
2
3
  /**
3
4
  * <p>Describes an algorithm image.</p>
4
5
  */
@@ -313,42 +314,57 @@ export declare namespace CreateBatchInferenceJobResponse {
313
314
  /**
314
315
  * <p>Provide a valid value for the field or parameter.</p>
315
316
  */
316
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
317
- name: "InvalidInputException";
318
- $fault: "client";
319
- message?: string;
317
+ export declare class InvalidInputException extends __BaseException {
318
+ readonly name: "InvalidInputException";
319
+ readonly $fault: "client";
320
+ /**
321
+ * @internal
322
+ */
323
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
320
324
  }
321
325
  /**
322
326
  * <p>The limit on the number of requests per second has been exceeded.</p>
323
327
  */
324
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
325
- name: "LimitExceededException";
326
- $fault: "client";
327
- message?: string;
328
+ export declare class LimitExceededException extends __BaseException {
329
+ readonly name: "LimitExceededException";
330
+ readonly $fault: "client";
331
+ /**
332
+ * @internal
333
+ */
334
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
328
335
  }
329
336
  /**
330
337
  * <p>The specified resource already exists.</p>
331
338
  */
332
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
333
- name: "ResourceAlreadyExistsException";
334
- $fault: "client";
335
- message?: string;
339
+ export declare class ResourceAlreadyExistsException extends __BaseException {
340
+ readonly name: "ResourceAlreadyExistsException";
341
+ readonly $fault: "client";
342
+ /**
343
+ * @internal
344
+ */
345
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
336
346
  }
337
347
  /**
338
348
  * <p>The specified resource is in use.</p>
339
349
  */
340
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
341
- name: "ResourceInUseException";
342
- $fault: "client";
343
- message?: string;
350
+ export declare class ResourceInUseException extends __BaseException {
351
+ readonly name: "ResourceInUseException";
352
+ readonly $fault: "client";
353
+ /**
354
+ * @internal
355
+ */
356
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
344
357
  }
345
358
  /**
346
359
  * <p>Could not find the specified resource.</p>
347
360
  */
348
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
349
- name: "ResourceNotFoundException";
350
- $fault: "client";
351
- message?: string;
361
+ export declare class ResourceNotFoundException extends __BaseException {
362
+ readonly name: "ResourceNotFoundException";
363
+ readonly $fault: "client";
364
+ /**
365
+ * @internal
366
+ */
367
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
352
368
  }
353
369
  /**
354
370
  * <p>The input configuration of a batch segment job.</p>
@@ -2912,10 +2928,13 @@ export declare namespace GetSolutionMetricsResponse {
2912
2928
  /**
2913
2929
  * <p>The token is not valid.</p>
2914
2930
  */
2915
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
2916
- name: "InvalidNextTokenException";
2917
- $fault: "client";
2918
- message?: string;
2931
+ export declare class InvalidNextTokenException extends __BaseException {
2932
+ readonly name: "InvalidNextTokenException";
2933
+ readonly $fault: "client";
2934
+ /**
2935
+ * @internal
2936
+ */
2937
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
2919
2938
  }
2920
2939
  export interface ListBatchInferenceJobsRequest {
2921
2940
  /**
@@ -3,3 +3,4 @@ export * from "./PersonalizeClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { PersonalizeServiceException } from "./models/PersonalizeServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class PersonalizeServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { PersonalizeServiceException as __BaseException } from "./PersonalizeServiceException";
2
3
 
3
4
  export interface AlgorithmImage {
4
5
 
@@ -168,34 +169,39 @@ export declare namespace CreateBatchInferenceJobResponse {
168
169
  const filterSensitiveLog: (obj: CreateBatchInferenceJobResponse) => any;
169
170
  }
170
171
 
171
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
172
- name: "InvalidInputException";
173
- $fault: "client";
174
- message?: string;
172
+ export declare class InvalidInputException extends __BaseException {
173
+ readonly name: "InvalidInputException";
174
+ readonly $fault: "client";
175
+
176
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
175
177
  }
176
178
 
177
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
178
- name: "LimitExceededException";
179
- $fault: "client";
180
- message?: string;
179
+ export declare class LimitExceededException extends __BaseException {
180
+ readonly name: "LimitExceededException";
181
+ readonly $fault: "client";
182
+
183
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
181
184
  }
182
185
 
183
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
184
- name: "ResourceAlreadyExistsException";
185
- $fault: "client";
186
- message?: string;
186
+ export declare class ResourceAlreadyExistsException extends __BaseException {
187
+ readonly name: "ResourceAlreadyExistsException";
188
+ readonly $fault: "client";
189
+
190
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
187
191
  }
188
192
 
189
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
190
- name: "ResourceInUseException";
191
- $fault: "client";
192
- message?: string;
193
+ export declare class ResourceInUseException extends __BaseException {
194
+ readonly name: "ResourceInUseException";
195
+ readonly $fault: "client";
196
+
197
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
193
198
  }
194
199
 
195
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
196
- name: "ResourceNotFoundException";
197
- $fault: "client";
198
- message?: string;
200
+ export declare class ResourceNotFoundException extends __BaseException {
201
+ readonly name: "ResourceNotFoundException";
202
+ readonly $fault: "client";
203
+
204
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
199
205
  }
200
206
 
201
207
  export interface BatchSegmentJobInput {
@@ -1493,10 +1499,11 @@ export declare namespace GetSolutionMetricsResponse {
1493
1499
  const filterSensitiveLog: (obj: GetSolutionMetricsResponse) => any;
1494
1500
  }
1495
1501
 
1496
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
1497
- name: "InvalidNextTokenException";
1498
- $fault: "client";
1499
- message?: string;
1502
+ export declare class InvalidNextTokenException extends __BaseException {
1503
+ readonly name: "InvalidNextTokenException";
1504
+ readonly $fault: "client";
1505
+
1506
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
1500
1507
  }
1501
1508
  export interface ListBatchInferenceJobsRequest {
1502
1509
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-personalize",
3
3
  "description": "AWS SDK for JavaScript Personalize Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"