@aws-sdk/client-kendra 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 "./KendraClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { KendraServiceException } from "./models/KendraServiceException";
@@ -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 Kendra service.
4
+ */
5
+ export declare class KendraServiceException 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 { KendraServiceException as __BaseException } from "./KendraServiceException";
2
3
  /**
3
4
  * <p>Access Control List files for the documents in a data source. For
4
5
  * the format of the file, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/s3-acl.html">Access control for S3 data
@@ -19,10 +20,14 @@ export declare namespace AccessControlListConfiguration {
19
20
  /**
20
21
  * <p></p>
21
22
  */
22
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
23
- name: "AccessDeniedException";
24
- $fault: "client";
23
+ export declare class AccessDeniedException extends __BaseException {
24
+ readonly name: "AccessDeniedException";
25
+ readonly $fault: "client";
25
26
  Message?: string;
27
+ /**
28
+ * @internal
29
+ */
30
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
26
31
  }
27
32
  /**
28
33
  * <p>Provides information about the column that should be used for
@@ -228,42 +233,62 @@ export declare namespace AssociateEntitiesToExperienceResponse {
228
233
  /**
229
234
  * <p></p>
230
235
  */
231
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
232
- name: "InternalServerException";
233
- $fault: "server";
236
+ export declare class InternalServerException extends __BaseException {
237
+ readonly name: "InternalServerException";
238
+ readonly $fault: "server";
234
239
  Message?: string;
240
+ /**
241
+ * @internal
242
+ */
243
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
235
244
  }
236
245
  /**
237
246
  * <p></p>
238
247
  */
239
- export interface ResourceAlreadyExistException extends __SmithyException, $MetadataBearer {
240
- name: "ResourceAlreadyExistException";
241
- $fault: "client";
248
+ export declare class ResourceAlreadyExistException extends __BaseException {
249
+ readonly name: "ResourceAlreadyExistException";
250
+ readonly $fault: "client";
242
251
  Message?: string;
252
+ /**
253
+ * @internal
254
+ */
255
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistException, __BaseException>);
243
256
  }
244
257
  /**
245
258
  * <p></p>
246
259
  */
247
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
248
- name: "ResourceNotFoundException";
249
- $fault: "client";
260
+ export declare class ResourceNotFoundException extends __BaseException {
261
+ readonly name: "ResourceNotFoundException";
262
+ readonly $fault: "client";
250
263
  Message?: string;
264
+ /**
265
+ * @internal
266
+ */
267
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
251
268
  }
252
269
  /**
253
270
  * <p></p>
254
271
  */
255
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
256
- name: "ThrottlingException";
257
- $fault: "client";
272
+ export declare class ThrottlingException extends __BaseException {
273
+ readonly name: "ThrottlingException";
274
+ readonly $fault: "client";
258
275
  Message?: string;
276
+ /**
277
+ * @internal
278
+ */
279
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
259
280
  }
260
281
  /**
261
282
  * <p></p>
262
283
  */
263
- export interface ValidationException extends __SmithyException, $MetadataBearer {
264
- name: "ValidationException";
265
- $fault: "client";
284
+ export declare class ValidationException extends __BaseException {
285
+ readonly name: "ValidationException";
286
+ readonly $fault: "client";
266
287
  Message?: string;
288
+ /**
289
+ * @internal
290
+ */
291
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
267
292
  }
268
293
  export declare enum Persona {
269
294
  OWNER = "OWNER",
@@ -536,10 +561,14 @@ export declare namespace BatchDeleteDocumentResponse {
536
561
  /**
537
562
  * <p></p>
538
563
  */
539
- export interface ConflictException extends __SmithyException, $MetadataBearer {
540
- name: "ConflictException";
541
- $fault: "client";
564
+ export declare class ConflictException extends __BaseException {
565
+ readonly name: "ConflictException";
566
+ readonly $fault: "client";
542
567
  Message?: string;
568
+ /**
569
+ * @internal
570
+ */
571
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
543
572
  }
544
573
  /**
545
574
  * <p>Identifies a document for which to retrieve status
@@ -1149,10 +1178,14 @@ export declare namespace BatchPutDocumentResponse {
1149
1178
  /**
1150
1179
  * <p></p>
1151
1180
  */
1152
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
1153
- name: "ServiceQuotaExceededException";
1154
- $fault: "client";
1181
+ export declare class ServiceQuotaExceededException extends __BaseException {
1182
+ readonly name: "ServiceQuotaExceededException";
1183
+ readonly $fault: "client";
1155
1184
  Message?: string;
1185
+ /**
1186
+ * @internal
1187
+ */
1188
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
1156
1189
  }
1157
1190
  export interface ClearQuerySuggestionsRequest {
1158
1191
  /**
@@ -5257,10 +5290,14 @@ export declare namespace GetSnapshotsResponse {
5257
5290
  /**
5258
5291
  * <p>The input to the request is not valid.</p>
5259
5292
  */
5260
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
5261
- name: "InvalidRequestException";
5262
- $fault: "client";
5293
+ export declare class InvalidRequestException extends __BaseException {
5294
+ readonly name: "InvalidRequestException";
5295
+ readonly $fault: "client";
5263
5296
  Message?: string;
5297
+ /**
5298
+ * @internal
5299
+ */
5300
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
5264
5301
  }
5265
5302
  export interface ListDataSourcesRequest {
5266
5303
  /**
@@ -6130,10 +6167,14 @@ export declare namespace ListTagsForResourceResponse {
6130
6167
  /**
6131
6168
  * <p></p>
6132
6169
  */
6133
- export interface ResourceUnavailableException extends __SmithyException, $MetadataBearer {
6134
- name: "ResourceUnavailableException";
6135
- $fault: "client";
6170
+ export declare class ResourceUnavailableException extends __BaseException {
6171
+ readonly name: "ResourceUnavailableException";
6172
+ readonly $fault: "client";
6136
6173
  Message?: string;
6174
+ /**
6175
+ * @internal
6176
+ */
6177
+ constructor(opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>);
6137
6178
  }
6138
6179
  export interface ListThesauriRequest {
6139
6180
  /**
@@ -6727,10 +6768,14 @@ export declare namespace QueryResult {
6727
6768
  /**
6728
6769
  * <p></p>
6729
6770
  */
6730
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
6731
- name: "ResourceInUseException";
6732
- $fault: "client";
6771
+ export declare class ResourceInUseException extends __BaseException {
6772
+ readonly name: "ResourceInUseException";
6773
+ readonly $fault: "client";
6733
6774
  Message?: string;
6775
+ /**
6776
+ * @internal
6777
+ */
6778
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
6734
6779
  }
6735
6780
  export interface StartDataSourceSyncJobRequest {
6736
6781
  /**
@@ -3,3 +3,4 @@ export * from "./KendraClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { KendraServiceException } from "./models/KendraServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class KendraServiceException 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 { KendraServiceException as __BaseException } from "./KendraServiceException";
2
3
 
3
4
  export interface AccessControlListConfiguration {
4
5
 
@@ -9,10 +10,12 @@ export declare namespace AccessControlListConfiguration {
9
10
  const filterSensitiveLog: (obj: AccessControlListConfiguration) => any;
10
11
  }
11
12
 
12
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
13
- name: "AccessDeniedException";
14
- $fault: "client";
13
+ export declare class AccessDeniedException extends __BaseException {
14
+ readonly name: "AccessDeniedException";
15
+ readonly $fault: "client";
15
16
  Message?: string;
17
+
18
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
19
  }
17
20
 
18
21
  export interface AclConfiguration {
@@ -125,34 +128,44 @@ export declare namespace AssociateEntitiesToExperienceResponse {
125
128
  const filterSensitiveLog: (obj: AssociateEntitiesToExperienceResponse) => any;
126
129
  }
127
130
 
128
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
129
- name: "InternalServerException";
130
- $fault: "server";
131
+ export declare class InternalServerException extends __BaseException {
132
+ readonly name: "InternalServerException";
133
+ readonly $fault: "server";
131
134
  Message?: string;
135
+
136
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
132
137
  }
133
138
 
134
- export interface ResourceAlreadyExistException extends __SmithyException, $MetadataBearer {
135
- name: "ResourceAlreadyExistException";
136
- $fault: "client";
139
+ export declare class ResourceAlreadyExistException extends __BaseException {
140
+ readonly name: "ResourceAlreadyExistException";
141
+ readonly $fault: "client";
137
142
  Message?: string;
143
+
144
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistException, __BaseException>);
138
145
  }
139
146
 
140
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
141
- name: "ResourceNotFoundException";
142
- $fault: "client";
147
+ export declare class ResourceNotFoundException extends __BaseException {
148
+ readonly name: "ResourceNotFoundException";
149
+ readonly $fault: "client";
143
150
  Message?: string;
151
+
152
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
144
153
  }
145
154
 
146
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
147
- name: "ThrottlingException";
148
- $fault: "client";
155
+ export declare class ThrottlingException extends __BaseException {
156
+ readonly name: "ThrottlingException";
157
+ readonly $fault: "client";
149
158
  Message?: string;
159
+
160
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
150
161
  }
151
162
 
152
- export interface ValidationException extends __SmithyException, $MetadataBearer {
153
- name: "ValidationException";
154
- $fault: "client";
163
+ export declare class ValidationException extends __BaseException {
164
+ readonly name: "ValidationException";
165
+ readonly $fault: "client";
155
166
  Message?: string;
167
+
168
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
156
169
  }
157
170
  export declare enum Persona {
158
171
  OWNER = "OWNER",
@@ -286,10 +299,12 @@ export declare namespace BatchDeleteDocumentResponse {
286
299
  const filterSensitiveLog: (obj: BatchDeleteDocumentResponse) => any;
287
300
  }
288
301
 
289
- export interface ConflictException extends __SmithyException, $MetadataBearer {
290
- name: "ConflictException";
291
- $fault: "client";
302
+ export declare class ConflictException extends __BaseException {
303
+ readonly name: "ConflictException";
304
+ readonly $fault: "client";
292
305
  Message?: string;
306
+
307
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
293
308
  }
294
309
 
295
310
  export interface DocumentInfo {
@@ -547,10 +562,12 @@ export declare namespace BatchPutDocumentResponse {
547
562
  const filterSensitiveLog: (obj: BatchPutDocumentResponse) => any;
548
563
  }
549
564
 
550
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
551
- name: "ServiceQuotaExceededException";
552
- $fault: "client";
565
+ export declare class ServiceQuotaExceededException extends __BaseException {
566
+ readonly name: "ServiceQuotaExceededException";
567
+ readonly $fault: "client";
553
568
  Message?: string;
569
+
570
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
554
571
  }
555
572
  export interface ClearQuerySuggestionsRequest {
556
573
 
@@ -2357,10 +2374,12 @@ export declare namespace GetSnapshotsResponse {
2357
2374
  const filterSensitiveLog: (obj: GetSnapshotsResponse) => any;
2358
2375
  }
2359
2376
 
2360
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
2361
- name: "InvalidRequestException";
2362
- $fault: "client";
2377
+ export declare class InvalidRequestException extends __BaseException {
2378
+ readonly name: "InvalidRequestException";
2379
+ readonly $fault: "client";
2363
2380
  Message?: string;
2381
+
2382
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
2364
2383
  }
2365
2384
  export interface ListDataSourcesRequest {
2366
2385
 
@@ -2789,10 +2808,12 @@ export declare namespace ListTagsForResourceResponse {
2789
2808
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
2790
2809
  }
2791
2810
 
2792
- export interface ResourceUnavailableException extends __SmithyException, $MetadataBearer {
2793
- name: "ResourceUnavailableException";
2794
- $fault: "client";
2811
+ export declare class ResourceUnavailableException extends __BaseException {
2812
+ readonly name: "ResourceUnavailableException";
2813
+ readonly $fault: "client";
2795
2814
  Message?: string;
2815
+
2816
+ constructor(opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>);
2796
2817
  }
2797
2818
  export interface ListThesauriRequest {
2798
2819
 
@@ -3048,10 +3069,12 @@ export declare namespace QueryResult {
3048
3069
  const filterSensitiveLog: (obj: QueryResult) => any;
3049
3070
  }
3050
3071
 
3051
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
3052
- name: "ResourceInUseException";
3053
- $fault: "client";
3072
+ export declare class ResourceInUseException extends __BaseException {
3073
+ readonly name: "ResourceInUseException";
3074
+ readonly $fault: "client";
3054
3075
  Message?: string;
3076
+
3077
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
3055
3078
  }
3056
3079
  export interface StartDataSourceSyncJobRequest {
3057
3080
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kendra",
3
3
  "description": "AWS SDK for JavaScript Kendra 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",