@aws-sdk/client-opensearch 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 "./OpenSearchClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { OpenSearchServiceException } from "./models/OpenSearchServiceException";
@@ -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 OpenSearch service.
4
+ */
5
+ export declare class OpenSearchServiceException 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 { OpenSearchServiceException as __BaseException } from "./OpenSearchServiceException";
2
3
  /**
3
4
  * <p>Container for the parameters to the
4
5
  * <code>
@@ -154,46 +155,46 @@ export declare namespace AcceptInboundConnectionResponse {
154
155
  /**
155
156
  * <p>An error occured because the client wanted to access a not supported operation. Gives http status code of 409.</p>
156
157
  */
157
- export interface DisabledOperationException extends __SmithyException, $MetadataBearer {
158
- name: "DisabledOperationException";
159
- $fault: "client";
158
+ export declare class DisabledOperationException extends __BaseException {
159
+ readonly name: "DisabledOperationException";
160
+ readonly $fault: "client";
160
161
  /**
161
- * <p>A description of the error.</p>
162
+ * @internal
162
163
  */
163
- message?: string;
164
+ constructor(opts: __ExceptionOptionType<DisabledOperationException, __BaseException>);
164
165
  }
165
166
  /**
166
167
  * <p>An exception for trying to create more than allowed resources or sub-resources. Gives http status code of 409.</p>
167
168
  */
168
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
169
- name: "LimitExceededException";
170
- $fault: "client";
169
+ export declare class LimitExceededException extends __BaseException {
170
+ readonly name: "LimitExceededException";
171
+ readonly $fault: "client";
171
172
  /**
172
- * <p>A description of the error.</p>
173
+ * @internal
173
174
  */
174
- message?: string;
175
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
175
176
  }
176
177
  /**
177
178
  * <p>An exception for accessing or deleting a resource that does not exist. Gives http status code of 400.</p>
178
179
  */
179
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
180
- name: "ResourceNotFoundException";
181
- $fault: "client";
180
+ export declare class ResourceNotFoundException extends __BaseException {
181
+ readonly name: "ResourceNotFoundException";
182
+ readonly $fault: "client";
182
183
  /**
183
- * <p>A description of the error.</p>
184
+ * @internal
184
185
  */
185
- message?: string;
186
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
186
187
  }
187
188
  /**
188
189
  * <p>An error occurred because user does not have permissions to access the resource. Returns HTTP status code 403.</p>
189
190
  */
190
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
191
- name: "AccessDeniedException";
192
- $fault: "client";
191
+ export declare class AccessDeniedException extends __BaseException {
192
+ readonly name: "AccessDeniedException";
193
+ readonly $fault: "client";
193
194
  /**
194
- * <p>A description of the error.</p>
195
+ * @internal
195
196
  */
196
- message?: string;
197
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
197
198
  }
198
199
  export declare enum OptionState {
199
200
  Active = "Active",
@@ -368,35 +369,35 @@ export declare namespace AddTagsRequest {
368
369
  /**
369
370
  * <p>An error occurred while processing the request.</p>
370
371
  */
371
- export interface BaseException extends __SmithyException, $MetadataBearer {
372
- name: "BaseException";
373
- $fault: "client";
372
+ export declare class BaseException extends __BaseException {
373
+ readonly name: "BaseException";
374
+ readonly $fault: "client";
374
375
  /**
375
- * <p>A description of the error.</p>
376
+ * @internal
376
377
  */
377
- message?: string;
378
+ constructor(opts: __ExceptionOptionType<BaseException, __BaseException>);
378
379
  }
379
380
  /**
380
381
  * <p>The request processing has failed because of an unknown error, exception or failure (the failure is internal to the service) . Gives http status code of 500.</p>
381
382
  */
382
- export interface InternalException extends __SmithyException, $MetadataBearer {
383
- name: "InternalException";
384
- $fault: "server";
383
+ export declare class InternalException extends __BaseException {
384
+ readonly name: "InternalException";
385
+ readonly $fault: "server";
385
386
  /**
386
- * <p>A description of the error.</p>
387
+ * @internal
387
388
  */
388
- message?: string;
389
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
389
390
  }
390
391
  /**
391
392
  * <p>An exception for missing / invalid input fields. Gives http status code of 400.</p>
392
393
  */
393
- export interface ValidationException extends __SmithyException, $MetadataBearer {
394
- name: "ValidationException";
395
- $fault: "client";
394
+ export declare class ValidationException extends __BaseException {
395
+ readonly name: "ValidationException";
396
+ readonly $fault: "client";
396
397
  /**
397
- * <p>A description of the error.</p>
398
+ * @internal
398
399
  */
399
- message?: string;
400
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
400
401
  }
401
402
  /**
402
403
  * <p>Status of the advanced options for the specified domain. Currently, the following advanced options
@@ -752,13 +753,13 @@ export declare namespace AssociatePackageResponse {
752
753
  /**
753
754
  * <p>An error occurred because the client attempts to remove a resource that is currently in use. Returns HTTP status code 409.</p>
754
755
  */
755
- export interface ConflictException extends __SmithyException, $MetadataBearer {
756
- name: "ConflictException";
757
- $fault: "client";
756
+ export declare class ConflictException extends __BaseException {
757
+ readonly name: "ConflictException";
758
+ readonly $fault: "client";
758
759
  /**
759
- * <p>A description of the error.</p>
760
+ * @internal
760
761
  */
761
- message?: string;
762
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
762
763
  }
763
764
  /**
764
765
  * <p>Container for the parameters to the
@@ -1698,24 +1699,24 @@ export declare namespace CreateDomainResponse {
1698
1699
  /**
1699
1700
  * <p>An exception for trying to create or access sub-resource that is either invalid or not supported. Gives http status code of 409.</p>
1700
1701
  */
1701
- export interface InvalidTypeException extends __SmithyException, $MetadataBearer {
1702
- name: "InvalidTypeException";
1703
- $fault: "client";
1702
+ export declare class InvalidTypeException extends __BaseException {
1703
+ readonly name: "InvalidTypeException";
1704
+ readonly $fault: "client";
1704
1705
  /**
1705
- * <p>A description of the error.</p>
1706
+ * @internal
1706
1707
  */
1707
- message?: string;
1708
+ constructor(opts: __ExceptionOptionType<InvalidTypeException, __BaseException>);
1708
1709
  }
1709
1710
  /**
1710
1711
  * <p>An exception for creating a resource that already exists. Gives http status code of 400.</p>
1711
1712
  */
1712
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
1713
- name: "ResourceAlreadyExistsException";
1714
- $fault: "client";
1713
+ export declare class ResourceAlreadyExistsException extends __BaseException {
1714
+ readonly name: "ResourceAlreadyExistsException";
1715
+ readonly $fault: "client";
1715
1716
  /**
1716
- * <p>A description of the error.</p>
1717
+ * @internal
1717
1718
  */
1718
- message?: string;
1719
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
1719
1720
  }
1720
1721
  /**
1721
1722
  * <p>Container for the parameters to the
@@ -3027,13 +3028,13 @@ export declare namespace DescribeInboundConnectionsResponse {
3027
3028
  /**
3028
3029
  * <p>The request processing has failed because of invalid pagination token provided by customer. Returns an HTTP status code of 400. </p>
3029
3030
  */
3030
- export interface InvalidPaginationTokenException extends __SmithyException, $MetadataBearer {
3031
- name: "InvalidPaginationTokenException";
3032
- $fault: "client";
3031
+ export declare class InvalidPaginationTokenException extends __BaseException {
3032
+ readonly name: "InvalidPaginationTokenException";
3033
+ readonly $fault: "client";
3033
3034
  /**
3034
- * <p>A description of the error.</p>
3035
+ * @internal
3035
3036
  */
3036
- message?: string;
3037
+ constructor(opts: __ExceptionOptionType<InvalidPaginationTokenException, __BaseException>);
3037
3038
  }
3038
3039
  /**
3039
3040
  * <p>
@@ -3,3 +3,4 @@ export * from "./OpenSearchClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { OpenSearchServiceException } from "./models/OpenSearchServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class OpenSearchServiceException 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 { OpenSearchServiceException as __BaseException } from "./OpenSearchServiceException";
2
3
 
3
4
  export interface AcceptInboundConnectionRequest {
4
5
 
@@ -71,32 +72,32 @@ export declare namespace AcceptInboundConnectionResponse {
71
72
  const filterSensitiveLog: (obj: AcceptInboundConnectionResponse) => any;
72
73
  }
73
74
 
74
- export interface DisabledOperationException extends __SmithyException, $MetadataBearer {
75
- name: "DisabledOperationException";
76
- $fault: "client";
75
+ export declare class DisabledOperationException extends __BaseException {
76
+ readonly name: "DisabledOperationException";
77
+ readonly $fault: "client";
77
78
 
78
- message?: string;
79
+ constructor(opts: __ExceptionOptionType<DisabledOperationException, __BaseException>);
79
80
  }
80
81
 
81
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
82
- name: "LimitExceededException";
83
- $fault: "client";
82
+ export declare class LimitExceededException extends __BaseException {
83
+ readonly name: "LimitExceededException";
84
+ readonly $fault: "client";
84
85
 
85
- message?: string;
86
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
86
87
  }
87
88
 
88
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
89
- name: "ResourceNotFoundException";
90
- $fault: "client";
89
+ export declare class ResourceNotFoundException extends __BaseException {
90
+ readonly name: "ResourceNotFoundException";
91
+ readonly $fault: "client";
91
92
 
92
- message?: string;
93
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
93
94
  }
94
95
 
95
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
96
- name: "AccessDeniedException";
97
- $fault: "client";
96
+ export declare class AccessDeniedException extends __BaseException {
97
+ readonly name: "AccessDeniedException";
98
+ readonly $fault: "client";
98
99
 
99
- message?: string;
100
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
100
101
  }
101
102
  export declare enum OptionState {
102
103
  Active = "Active",
@@ -165,25 +166,25 @@ export declare namespace AddTagsRequest {
165
166
  const filterSensitiveLog: (obj: AddTagsRequest) => any;
166
167
  }
167
168
 
168
- export interface BaseException extends __SmithyException, $MetadataBearer {
169
- name: "BaseException";
170
- $fault: "client";
169
+ export declare class BaseException extends __BaseException {
170
+ readonly name: "BaseException";
171
+ readonly $fault: "client";
171
172
 
172
- message?: string;
173
+ constructor(opts: __ExceptionOptionType<BaseException, __BaseException>);
173
174
  }
174
175
 
175
- export interface InternalException extends __SmithyException, $MetadataBearer {
176
- name: "InternalException";
177
- $fault: "server";
176
+ export declare class InternalException extends __BaseException {
177
+ readonly name: "InternalException";
178
+ readonly $fault: "server";
178
179
 
179
- message?: string;
180
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
180
181
  }
181
182
 
182
- export interface ValidationException extends __SmithyException, $MetadataBearer {
183
- name: "ValidationException";
184
- $fault: "client";
183
+ export declare class ValidationException extends __BaseException {
184
+ readonly name: "ValidationException";
185
+ readonly $fault: "client";
185
186
 
186
- message?: string;
187
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
187
188
  }
188
189
 
189
190
  export interface AdvancedOptionsStatus {
@@ -368,11 +369,11 @@ export declare namespace AssociatePackageResponse {
368
369
  const filterSensitiveLog: (obj: AssociatePackageResponse) => any;
369
370
  }
370
371
 
371
- export interface ConflictException extends __SmithyException, $MetadataBearer {
372
- name: "ConflictException";
373
- $fault: "client";
372
+ export declare class ConflictException extends __BaseException {
373
+ readonly name: "ConflictException";
374
+ readonly $fault: "client";
374
375
 
375
- message?: string;
376
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
376
377
  }
377
378
 
378
379
  export interface CancelServiceSoftwareUpdateRequest {
@@ -888,18 +889,18 @@ export declare namespace CreateDomainResponse {
888
889
  const filterSensitiveLog: (obj: CreateDomainResponse) => any;
889
890
  }
890
891
 
891
- export interface InvalidTypeException extends __SmithyException, $MetadataBearer {
892
- name: "InvalidTypeException";
893
- $fault: "client";
892
+ export declare class InvalidTypeException extends __BaseException {
893
+ readonly name: "InvalidTypeException";
894
+ readonly $fault: "client";
894
895
 
895
- message?: string;
896
+ constructor(opts: __ExceptionOptionType<InvalidTypeException, __BaseException>);
896
897
  }
897
898
 
898
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
899
- name: "ResourceAlreadyExistsException";
900
- $fault: "client";
899
+ export declare class ResourceAlreadyExistsException extends __BaseException {
900
+ readonly name: "ResourceAlreadyExistsException";
901
+ readonly $fault: "client";
901
902
 
902
- message?: string;
903
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
903
904
  }
904
905
 
905
906
  export interface CreateOutboundConnectionRequest {
@@ -1530,11 +1531,11 @@ export declare namespace DescribeInboundConnectionsResponse {
1530
1531
  const filterSensitiveLog: (obj: DescribeInboundConnectionsResponse) => any;
1531
1532
  }
1532
1533
 
1533
- export interface InvalidPaginationTokenException extends __SmithyException, $MetadataBearer {
1534
- name: "InvalidPaginationTokenException";
1535
- $fault: "client";
1534
+ export declare class InvalidPaginationTokenException extends __BaseException {
1535
+ readonly name: "InvalidPaginationTokenException";
1536
+ readonly $fault: "client";
1536
1537
 
1537
- message?: string;
1538
+ constructor(opts: __ExceptionOptionType<InvalidPaginationTokenException, __BaseException>);
1538
1539
  }
1539
1540
 
1540
1541
  export interface DescribeInstanceTypeLimitsRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-opensearch",
3
3
  "description": "AWS SDK for JavaScript Opensearch 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"