@aws-sdk/client-opensearch 3.987.0 → 3.989.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 +101 -3391
- package/dist-cjs/models/OpenSearchServiceException.js +12 -0
- package/dist-cjs/models/errors.js +188 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +2760 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +113 -107
- package/dist-types/schemas/schemas_0.d.ts +22 -15
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -15
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenSearchServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class OpenSearchServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, OpenSearchServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.OpenSearchServiceException = OpenSearchServiceException;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SlotNotAvailableException = exports.InvalidPaginationTokenException = exports.ThrottlingException = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.ConflictException = exports.ValidationException = exports.InternalException = exports.DependencyFailureException = exports.BaseException = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = void 0;
|
|
4
|
+
const OpenSearchServiceException_1 = require("./OpenSearchServiceException");
|
|
5
|
+
class DisabledOperationException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
6
|
+
name = "DisabledOperationException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "DisabledOperationException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, DisabledOperationException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.DisabledOperationException = DisabledOperationException;
|
|
18
|
+
class LimitExceededException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
19
|
+
name = "LimitExceededException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "LimitExceededException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.LimitExceededException = LimitExceededException;
|
|
31
|
+
class ResourceNotFoundException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
32
|
+
name = "ResourceNotFoundException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ResourceNotFoundException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
44
|
+
class AccessDeniedException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
45
|
+
name = "AccessDeniedException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "AccessDeniedException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
57
|
+
class BaseException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
58
|
+
name = "BaseException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "BaseException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, BaseException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.BaseException = BaseException;
|
|
70
|
+
class DependencyFailureException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
71
|
+
name = "DependencyFailureException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "DependencyFailureException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, DependencyFailureException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.DependencyFailureException = DependencyFailureException;
|
|
83
|
+
class InternalException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
84
|
+
name = "InternalException";
|
|
85
|
+
$fault = "server";
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "InternalException",
|
|
89
|
+
$fault: "server",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
Object.setPrototypeOf(this, InternalException.prototype);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.InternalException = InternalException;
|
|
96
|
+
class ValidationException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
97
|
+
name = "ValidationException";
|
|
98
|
+
$fault = "client";
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "ValidationException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.ValidationException = ValidationException;
|
|
109
|
+
class ConflictException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
110
|
+
name = "ConflictException";
|
|
111
|
+
$fault = "client";
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "ConflictException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.ConflictException = ConflictException;
|
|
122
|
+
class InvalidTypeException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
123
|
+
name = "InvalidTypeException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "InvalidTypeException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, InvalidTypeException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.InvalidTypeException = InvalidTypeException;
|
|
135
|
+
class ResourceAlreadyExistsException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
136
|
+
name = "ResourceAlreadyExistsException";
|
|
137
|
+
$fault = "client";
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "ResourceAlreadyExistsException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
|
|
148
|
+
class ThrottlingException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
149
|
+
name = "ThrottlingException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "ThrottlingException",
|
|
154
|
+
$fault: "client",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.ThrottlingException = ThrottlingException;
|
|
161
|
+
class InvalidPaginationTokenException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
162
|
+
name = "InvalidPaginationTokenException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "InvalidPaginationTokenException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
|
|
174
|
+
class SlotNotAvailableException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
175
|
+
name = "SlotNotAvailableException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
SlotSuggestions;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "SlotNotAvailableException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, SlotNotAvailableException.prototype);
|
|
185
|
+
this.SlotSuggestions = opts.SlotSuggestions;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.SlotNotAvailableException = SlotNotAvailableException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2021-01-01",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.opensearch",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "http://es.amazonaws.com/doc/2021-01-01/",
|
|
33
35
|
version: "2021-01-01",
|
|
34
36
|
serviceTarget: "AmazonOpenSearchService",
|