@aws-sdk/client-cloudsearch 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.
@@ -2,3 +2,4 @@ export * from "./CloudSearch";
2
2
  export * from "./CloudSearchClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { CloudSearchServiceException } from "./models/CloudSearchServiceException";
@@ -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 CloudSearch service.
4
+ */
5
+ export declare class CloudSearchServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,10 +1,11 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CloudSearchServiceException as __BaseException } from "./CloudSearchServiceException";
2
3
  /**
3
4
  * <p>An error occurred while processing the request.</p>
4
5
  */
5
- export interface BaseException extends __SmithyException, $MetadataBearer {
6
- name: "BaseException";
7
- $fault: "client";
6
+ export declare class BaseException extends __BaseException {
7
+ readonly name: "BaseException";
8
+ readonly $fault: "client";
8
9
  /**
9
10
  * <p>A machine-parsable string error or warning code.</p>
10
11
  */
@@ -13,6 +14,10 @@ export interface BaseException extends __SmithyException, $MetadataBearer {
13
14
  * <p>A human-readable string error or warning message.</p>
14
15
  */
15
16
  Message?: string;
17
+ /**
18
+ * @internal
19
+ */
20
+ constructor(opts: __ExceptionOptionType<BaseException, __BaseException>);
16
21
  }
17
22
  /**
18
23
  * <p>Container for the parameters to the <code><a>BuildSuggester</a></code> operation. Specifies the name of the domain you want to update.</p>
@@ -48,9 +53,9 @@ export declare namespace BuildSuggestersResponse {
48
53
  * <p>An internal error occurred while processing the request. If this problem persists,
49
54
  * report an issue from the <a href="http://status.aws.amazon.com/" target="_blank">Service Health Dashboard</a>.</p>
50
55
  */
51
- export interface InternalException extends __SmithyException, $MetadataBearer {
52
- name: "InternalException";
53
- $fault: "server";
56
+ export declare class InternalException extends __BaseException {
57
+ readonly name: "InternalException";
58
+ readonly $fault: "server";
54
59
  /**
55
60
  * <p>A machine-parsable string error or warning code.</p>
56
61
  */
@@ -59,13 +64,17 @@ export interface InternalException extends __SmithyException, $MetadataBearer {
59
64
  * <p>A human-readable string error or warning message.</p>
60
65
  */
61
66
  Message?: string;
67
+ /**
68
+ * @internal
69
+ */
70
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
62
71
  }
63
72
  /**
64
73
  * <p>The request was rejected because it attempted to reference a resource that does not exist.</p>
65
74
  */
66
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
67
- name: "ResourceNotFoundException";
68
- $fault: "client";
75
+ export declare class ResourceNotFoundException extends __BaseException {
76
+ readonly name: "ResourceNotFoundException";
77
+ readonly $fault: "client";
69
78
  /**
70
79
  * <p>A machine-parsable string error or warning code.</p>
71
80
  */
@@ -74,13 +83,17 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
74
83
  * <p>A human-readable string error or warning message.</p>
75
84
  */
76
85
  Message?: string;
86
+ /**
87
+ * @internal
88
+ */
89
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
77
90
  }
78
91
  /**
79
92
  * <p>The request was rejected because it has invalid parameters.</p>
80
93
  */
81
- export interface ValidationException extends __SmithyException, $MetadataBearer {
82
- name: "ValidationException";
83
- $fault: "client";
94
+ export declare class ValidationException extends __BaseException {
95
+ readonly name: "ValidationException";
96
+ readonly $fault: "client";
84
97
  /**
85
98
  * <p>A machine-parsable string error or warning code.</p>
86
99
  */
@@ -89,6 +102,10 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
89
102
  * <p>A human-readable string error or warning message.</p>
90
103
  */
91
104
  Message?: string;
105
+ /**
106
+ * @internal
107
+ */
108
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
92
109
  }
93
110
  /**
94
111
  * <p>Container for the parameters to the <code><a>CreateDomain</a></code> operation. Specifies a name for the new search domain.</p>
@@ -208,9 +225,9 @@ export declare namespace CreateDomainResponse {
208
225
  /**
209
226
  * <p>The request was rejected because a resource limit has already been met.</p>
210
227
  */
211
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
212
- name: "LimitExceededException";
213
- $fault: "client";
228
+ export declare class LimitExceededException extends __BaseException {
229
+ readonly name: "LimitExceededException";
230
+ readonly $fault: "client";
214
231
  /**
215
232
  * <p>A machine-parsable string error or warning code.</p>
216
233
  */
@@ -219,13 +236,17 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
219
236
  * <p>A human-readable string error or warning message.</p>
220
237
  */
221
238
  Message?: string;
239
+ /**
240
+ * @internal
241
+ */
242
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
222
243
  }
223
244
  /**
224
245
  * <p>The request was rejected because it attempted to create a resource that already exists.</p>
225
246
  */
226
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
227
- name: "ResourceAlreadyExistsException";
228
- $fault: "client";
247
+ export declare class ResourceAlreadyExistsException extends __BaseException {
248
+ readonly name: "ResourceAlreadyExistsException";
249
+ readonly $fault: "client";
229
250
  /**
230
251
  * <p>A machine-parsable string error or warning code.</p>
231
252
  */
@@ -234,6 +255,10 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
234
255
  * <p>A human-readable string error or warning message.</p>
235
256
  */
236
257
  Message?: string;
258
+ /**
259
+ * @internal
260
+ */
261
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
237
262
  }
238
263
  export declare type AlgorithmicStemming = "full" | "light" | "minimal" | "none";
239
264
  /**
@@ -385,9 +410,9 @@ export declare namespace DefineAnalysisSchemeResponse {
385
410
  /**
386
411
  * <p>The request was rejected because it specified an invalid type definition.</p>
387
412
  */
388
- export interface InvalidTypeException extends __SmithyException, $MetadataBearer {
389
- name: "InvalidTypeException";
390
- $fault: "client";
413
+ export declare class InvalidTypeException extends __BaseException {
414
+ readonly name: "InvalidTypeException";
415
+ readonly $fault: "client";
391
416
  /**
392
417
  * <p>A machine-parsable string error or warning code.</p>
393
418
  */
@@ -396,6 +421,10 @@ export interface InvalidTypeException extends __SmithyException, $MetadataBearer
396
421
  * <p>A human-readable string error or warning message.</p>
397
422
  */
398
423
  Message?: string;
424
+ /**
425
+ * @internal
426
+ */
427
+ constructor(opts: __ExceptionOptionType<InvalidTypeException, __BaseException>);
399
428
  }
400
429
  /**
401
430
  * <p>A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results. </p>
@@ -1380,9 +1409,9 @@ export declare namespace DescribeAvailabilityOptionsResponse {
1380
1409
  /**
1381
1410
  * <p>The request was rejected because it attempted an operation which is not enabled.</p>
1382
1411
  */
1383
- export interface DisabledOperationException extends __SmithyException, $MetadataBearer {
1384
- name: "DisabledOperationException";
1385
- $fault: "client";
1412
+ export declare class DisabledOperationException extends __BaseException {
1413
+ readonly name: "DisabledOperationException";
1414
+ readonly $fault: "client";
1386
1415
  /**
1387
1416
  * <p>A machine-parsable string error or warning code.</p>
1388
1417
  */
@@ -1391,6 +1420,10 @@ export interface DisabledOperationException extends __SmithyException, $Metadata
1391
1420
  * <p>A human-readable string error or warning message.</p>
1392
1421
  */
1393
1422
  Message?: string;
1423
+ /**
1424
+ * @internal
1425
+ */
1426
+ constructor(opts: __ExceptionOptionType<DisabledOperationException, __BaseException>);
1394
1427
  }
1395
1428
  /**
1396
1429
  * <p>Container for the parameters to the <code><a>DescribeDomainEndpointOptions</a></code> operation. Specify the name of the domain you want to describe. To show the active configuration and exclude any pending changes, set the Deployed option to <code>true</code>.</p>
@@ -2,3 +2,4 @@ export * from "./CloudSearch";
2
2
  export * from "./CloudSearchClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { CloudSearchServiceException } from "./models/CloudSearchServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class CloudSearchServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,12 +1,15 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CloudSearchServiceException as __BaseException } from "./CloudSearchServiceException";
2
3
 
3
- export interface BaseException extends __SmithyException, $MetadataBearer {
4
- name: "BaseException";
5
- $fault: "client";
4
+ export declare class BaseException extends __BaseException {
5
+ readonly name: "BaseException";
6
+ readonly $fault: "client";
6
7
 
7
8
  Code?: string;
8
9
 
9
10
  Message?: string;
11
+
12
+ constructor(opts: __ExceptionOptionType<BaseException, __BaseException>);
10
13
  }
11
14
 
12
15
  export interface BuildSuggestersRequest {
@@ -27,31 +30,37 @@ export declare namespace BuildSuggestersResponse {
27
30
  const filterSensitiveLog: (obj: BuildSuggestersResponse) => any;
28
31
  }
29
32
 
30
- export interface InternalException extends __SmithyException, $MetadataBearer {
31
- name: "InternalException";
32
- $fault: "server";
33
+ export declare class InternalException extends __BaseException {
34
+ readonly name: "InternalException";
35
+ readonly $fault: "server";
33
36
 
34
37
  Code?: string;
35
38
 
36
39
  Message?: string;
40
+
41
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
37
42
  }
38
43
 
39
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
40
- name: "ResourceNotFoundException";
41
- $fault: "client";
44
+ export declare class ResourceNotFoundException extends __BaseException {
45
+ readonly name: "ResourceNotFoundException";
46
+ readonly $fault: "client";
42
47
 
43
48
  Code?: string;
44
49
 
45
50
  Message?: string;
51
+
52
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
46
53
  }
47
54
 
48
- export interface ValidationException extends __SmithyException, $MetadataBearer {
49
- name: "ValidationException";
50
- $fault: "client";
55
+ export declare class ValidationException extends __BaseException {
56
+ readonly name: "ValidationException";
57
+ readonly $fault: "client";
51
58
 
52
59
  Code?: string;
53
60
 
54
61
  Message?: string;
62
+
63
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
55
64
  }
56
65
 
57
66
  export interface CreateDomainRequest {
@@ -121,22 +130,26 @@ export declare namespace CreateDomainResponse {
121
130
  const filterSensitiveLog: (obj: CreateDomainResponse) => any;
122
131
  }
123
132
 
124
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
125
- name: "LimitExceededException";
126
- $fault: "client";
133
+ export declare class LimitExceededException extends __BaseException {
134
+ readonly name: "LimitExceededException";
135
+ readonly $fault: "client";
127
136
 
128
137
  Code?: string;
129
138
 
130
139
  Message?: string;
140
+
141
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
131
142
  }
132
143
 
133
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
134
- name: "ResourceAlreadyExistsException";
135
- $fault: "client";
144
+ export declare class ResourceAlreadyExistsException extends __BaseException {
145
+ readonly name: "ResourceAlreadyExistsException";
146
+ readonly $fault: "client";
136
147
 
137
148
  Code?: string;
138
149
 
139
150
  Message?: string;
151
+
152
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
140
153
  }
141
154
  export declare type AlgorithmicStemming = "full" | "light" | "minimal" | "none";
142
155
 
@@ -220,13 +233,15 @@ export declare namespace DefineAnalysisSchemeResponse {
220
233
  const filterSensitiveLog: (obj: DefineAnalysisSchemeResponse) => any;
221
234
  }
222
235
 
223
- export interface InvalidTypeException extends __SmithyException, $MetadataBearer {
224
- name: "InvalidTypeException";
225
- $fault: "client";
236
+ export declare class InvalidTypeException extends __BaseException {
237
+ readonly name: "InvalidTypeException";
238
+ readonly $fault: "client";
226
239
 
227
240
  Code?: string;
228
241
 
229
242
  Message?: string;
243
+
244
+ constructor(opts: __ExceptionOptionType<InvalidTypeException, __BaseException>);
230
245
  }
231
246
 
232
247
  export interface Expression {
@@ -742,13 +757,15 @@ export declare namespace DescribeAvailabilityOptionsResponse {
742
757
  const filterSensitiveLog: (obj: DescribeAvailabilityOptionsResponse) => any;
743
758
  }
744
759
 
745
- export interface DisabledOperationException extends __SmithyException, $MetadataBearer {
746
- name: "DisabledOperationException";
747
- $fault: "client";
760
+ export declare class DisabledOperationException extends __BaseException {
761
+ readonly name: "DisabledOperationException";
762
+ readonly $fault: "client";
748
763
 
749
764
  Code?: string;
750
765
 
751
766
  Message?: string;
767
+
768
+ constructor(opts: __ExceptionOptionType<DisabledOperationException, __BaseException>);
752
769
  }
753
770
 
754
771
  export interface DescribeDomainEndpointOptionsRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch 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
  "entities": "2.2.0",