@aws-sdk/client-opensearchserverless 3.489.0 → 3.495.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/OpenSearchServerless.js +1 -85
- package/dist-cjs/OpenSearchServerlessClient.js +1 -43
- package/dist-cjs/commands/BatchGetCollectionCommand.js +1 -28
- package/dist-cjs/commands/BatchGetEffectiveLifecyclePolicyCommand.js +1 -28
- package/dist-cjs/commands/BatchGetLifecyclePolicyCommand.js +1 -28
- package/dist-cjs/commands/BatchGetVpcEndpointCommand.js +1 -28
- package/dist-cjs/commands/CreateAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/CreateCollectionCommand.js +1 -28
- package/dist-cjs/commands/CreateLifecyclePolicyCommand.js +1 -28
- package/dist-cjs/commands/CreateSecurityConfigCommand.js +1 -28
- package/dist-cjs/commands/CreateSecurityPolicyCommand.js +1 -28
- package/dist-cjs/commands/CreateVpcEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteCollectionCommand.js +1 -28
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteSecurityConfigCommand.js +1 -28
- package/dist-cjs/commands/DeleteSecurityPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteVpcEndpointCommand.js +1 -28
- package/dist-cjs/commands/GetAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetAccountSettingsCommand.js +1 -28
- package/dist-cjs/commands/GetPoliciesStatsCommand.js +1 -28
- package/dist-cjs/commands/GetSecurityConfigCommand.js +1 -28
- package/dist-cjs/commands/GetSecurityPolicyCommand.js +1 -28
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListCollectionsCommand.js +1 -28
- package/dist-cjs/commands/ListLifecyclePoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListSecurityConfigsCommand.js +1 -28
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListVpcEndpointsCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/UpdateAccountSettingsCommand.js +1 -28
- package/dist-cjs/commands/UpdateCollectionCommand.js +1 -28
- package/dist-cjs/commands/UpdateLifecyclePolicyCommand.js +1 -28
- package/dist-cjs/commands/UpdateSecurityConfigCommand.js +1 -28
- package/dist-cjs/commands/UpdateSecurityPolicyCommand.js +1 -28
- package/dist-cjs/commands/UpdateVpcEndpointCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -40
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3183 -11
- package/dist-cjs/models/OpenSearchServerlessServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -123
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListCollectionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListSecurityConfigsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListVpcEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_json1_0.js +1 -2101
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,3184 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessPolicyType: () => AccessPolicyType,
|
|
25
|
+
BatchGetCollectionCommand: () => BatchGetCollectionCommand,
|
|
26
|
+
BatchGetEffectiveLifecyclePolicyCommand: () => BatchGetEffectiveLifecyclePolicyCommand,
|
|
27
|
+
BatchGetLifecyclePolicyCommand: () => BatchGetLifecyclePolicyCommand,
|
|
28
|
+
BatchGetVpcEndpointCommand: () => BatchGetVpcEndpointCommand,
|
|
29
|
+
CollectionStatus: () => CollectionStatus,
|
|
30
|
+
CollectionType: () => CollectionType,
|
|
31
|
+
ConflictException: () => ConflictException,
|
|
32
|
+
CreateAccessPolicyCommand: () => CreateAccessPolicyCommand,
|
|
33
|
+
CreateCollectionCommand: () => CreateCollectionCommand,
|
|
34
|
+
CreateLifecyclePolicyCommand: () => CreateLifecyclePolicyCommand,
|
|
35
|
+
CreateSecurityConfigCommand: () => CreateSecurityConfigCommand,
|
|
36
|
+
CreateSecurityPolicyCommand: () => CreateSecurityPolicyCommand,
|
|
37
|
+
CreateVpcEndpointCommand: () => CreateVpcEndpointCommand,
|
|
38
|
+
DeleteAccessPolicyCommand: () => DeleteAccessPolicyCommand,
|
|
39
|
+
DeleteCollectionCommand: () => DeleteCollectionCommand,
|
|
40
|
+
DeleteLifecyclePolicyCommand: () => DeleteLifecyclePolicyCommand,
|
|
41
|
+
DeleteSecurityConfigCommand: () => DeleteSecurityConfigCommand,
|
|
42
|
+
DeleteSecurityPolicyCommand: () => DeleteSecurityPolicyCommand,
|
|
43
|
+
DeleteVpcEndpointCommand: () => DeleteVpcEndpointCommand,
|
|
44
|
+
GetAccessPolicyCommand: () => GetAccessPolicyCommand,
|
|
45
|
+
GetAccountSettingsCommand: () => GetAccountSettingsCommand,
|
|
46
|
+
GetPoliciesStatsCommand: () => GetPoliciesStatsCommand,
|
|
47
|
+
GetSecurityConfigCommand: () => GetSecurityConfigCommand,
|
|
48
|
+
GetSecurityPolicyCommand: () => GetSecurityPolicyCommand,
|
|
49
|
+
InternalServerException: () => InternalServerException,
|
|
50
|
+
LifecyclePolicyType: () => LifecyclePolicyType,
|
|
51
|
+
ListAccessPoliciesCommand: () => ListAccessPoliciesCommand,
|
|
52
|
+
ListCollectionsCommand: () => ListCollectionsCommand,
|
|
53
|
+
ListLifecyclePoliciesCommand: () => ListLifecyclePoliciesCommand,
|
|
54
|
+
ListSecurityConfigsCommand: () => ListSecurityConfigsCommand,
|
|
55
|
+
ListSecurityPoliciesCommand: () => ListSecurityPoliciesCommand,
|
|
56
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
57
|
+
ListVpcEndpointsCommand: () => ListVpcEndpointsCommand,
|
|
58
|
+
OcuLimitExceededException: () => OcuLimitExceededException,
|
|
59
|
+
OpenSearchServerless: () => OpenSearchServerless,
|
|
60
|
+
OpenSearchServerlessClient: () => OpenSearchServerlessClient,
|
|
61
|
+
OpenSearchServerlessServiceException: () => OpenSearchServerlessServiceException,
|
|
62
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
63
|
+
ResourceType: () => ResourceType,
|
|
64
|
+
SecurityConfigType: () => SecurityConfigType,
|
|
65
|
+
SecurityPolicyType: () => SecurityPolicyType,
|
|
66
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
67
|
+
StandbyReplicas: () => StandbyReplicas,
|
|
68
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
69
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
70
|
+
UpdateAccessPolicyCommand: () => UpdateAccessPolicyCommand,
|
|
71
|
+
UpdateAccountSettingsCommand: () => UpdateAccountSettingsCommand,
|
|
72
|
+
UpdateCollectionCommand: () => UpdateCollectionCommand,
|
|
73
|
+
UpdateLifecyclePolicyCommand: () => UpdateLifecyclePolicyCommand,
|
|
74
|
+
UpdateSecurityConfigCommand: () => UpdateSecurityConfigCommand,
|
|
75
|
+
UpdateSecurityPolicyCommand: () => UpdateSecurityPolicyCommand,
|
|
76
|
+
UpdateVpcEndpointCommand: () => UpdateVpcEndpointCommand,
|
|
77
|
+
ValidationException: () => ValidationException,
|
|
78
|
+
VpcEndpointStatus: () => VpcEndpointStatus,
|
|
79
|
+
__Client: () => import_smithy_client.Client,
|
|
80
|
+
paginateListAccessPolicies: () => paginateListAccessPolicies,
|
|
81
|
+
paginateListCollections: () => paginateListCollections,
|
|
82
|
+
paginateListLifecyclePolicies: () => paginateListLifecyclePolicies,
|
|
83
|
+
paginateListSecurityConfigs: () => paginateListSecurityConfigs,
|
|
84
|
+
paginateListSecurityPolicies: () => paginateListSecurityPolicies,
|
|
85
|
+
paginateListVpcEndpoints: () => paginateListVpcEndpoints
|
|
86
|
+
});
|
|
87
|
+
module.exports = __toCommonJS(src_exports);
|
|
88
|
+
|
|
89
|
+
// src/OpenSearchServerlessClient.ts
|
|
90
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
91
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
92
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
93
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
94
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
95
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
96
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
97
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
98
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
// src/endpoint/EndpointParameters.ts
|
|
102
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
103
|
+
return {
|
|
104
|
+
...options,
|
|
105
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
106
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
107
|
+
defaultSigningName: "aoss"
|
|
108
|
+
};
|
|
109
|
+
}, "resolveClientEndpointParameters");
|
|
110
|
+
var commonParams = {
|
|
111
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
112
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
113
|
+
Region: { type: "builtInParams", name: "region" },
|
|
114
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// src/OpenSearchServerlessClient.ts
|
|
118
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
119
|
+
|
|
120
|
+
// src/runtimeExtensions.ts
|
|
121
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
122
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
123
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
124
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
125
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
126
|
+
const extensionConfiguration = {
|
|
127
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
128
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
129
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
130
|
+
};
|
|
131
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
132
|
+
return {
|
|
133
|
+
...runtimeConfig,
|
|
134
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
135
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
136
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
137
|
+
};
|
|
138
|
+
}, "resolveRuntimeExtensions");
|
|
139
|
+
|
|
140
|
+
// src/OpenSearchServerlessClient.ts
|
|
141
|
+
var _OpenSearchServerlessClient = class _OpenSearchServerlessClient extends import_smithy_client.Client {
|
|
142
|
+
constructor(...[configuration]) {
|
|
143
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
144
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
145
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
146
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
147
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
148
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
149
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
150
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
151
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
152
|
+
super(_config_8);
|
|
153
|
+
this.config = _config_8;
|
|
154
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
155
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
156
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
157
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
158
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
159
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
160
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
164
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
165
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
166
|
+
*/
|
|
167
|
+
destroy() {
|
|
168
|
+
super.destroy();
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
__name(_OpenSearchServerlessClient, "OpenSearchServerlessClient");
|
|
172
|
+
var OpenSearchServerlessClient = _OpenSearchServerlessClient;
|
|
173
|
+
|
|
174
|
+
// src/OpenSearchServerless.ts
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
// src/commands/BatchGetCollectionCommand.ts
|
|
178
|
+
|
|
179
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
180
|
+
|
|
181
|
+
var import_types = require("@smithy/types");
|
|
182
|
+
|
|
183
|
+
// src/protocols/Aws_json1_0.ts
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
var import_uuid = require("uuid");
|
|
187
|
+
|
|
188
|
+
// src/models/OpenSearchServerlessServiceException.ts
|
|
189
|
+
|
|
190
|
+
var _OpenSearchServerlessServiceException = class _OpenSearchServerlessServiceException extends import_smithy_client.ServiceException {
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
constructor(options) {
|
|
195
|
+
super(options);
|
|
196
|
+
Object.setPrototypeOf(this, _OpenSearchServerlessServiceException.prototype);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
__name(_OpenSearchServerlessServiceException, "OpenSearchServerlessServiceException");
|
|
200
|
+
var OpenSearchServerlessServiceException = _OpenSearchServerlessServiceException;
|
|
201
|
+
|
|
202
|
+
// src/models/models_0.ts
|
|
203
|
+
var AccessPolicyType = {
|
|
204
|
+
/**
|
|
205
|
+
* data policy type
|
|
206
|
+
*/
|
|
207
|
+
data: "data"
|
|
208
|
+
};
|
|
209
|
+
var _ConflictException = class _ConflictException extends OpenSearchServerlessServiceException {
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "ConflictException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts
|
|
218
|
+
});
|
|
219
|
+
this.name = "ConflictException";
|
|
220
|
+
this.$fault = "client";
|
|
221
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
__name(_ConflictException, "ConflictException");
|
|
225
|
+
var ConflictException = _ConflictException;
|
|
226
|
+
var _InternalServerException = class _InternalServerException extends OpenSearchServerlessServiceException {
|
|
227
|
+
/**
|
|
228
|
+
* @internal
|
|
229
|
+
*/
|
|
230
|
+
constructor(opts) {
|
|
231
|
+
super({
|
|
232
|
+
name: "InternalServerException",
|
|
233
|
+
$fault: "server",
|
|
234
|
+
...opts
|
|
235
|
+
});
|
|
236
|
+
this.name = "InternalServerException";
|
|
237
|
+
this.$fault = "server";
|
|
238
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
__name(_InternalServerException, "InternalServerException");
|
|
242
|
+
var InternalServerException = _InternalServerException;
|
|
243
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends OpenSearchServerlessServiceException {
|
|
244
|
+
/**
|
|
245
|
+
* @internal
|
|
246
|
+
*/
|
|
247
|
+
constructor(opts) {
|
|
248
|
+
super({
|
|
249
|
+
name: "ServiceQuotaExceededException",
|
|
250
|
+
$fault: "client",
|
|
251
|
+
...opts
|
|
252
|
+
});
|
|
253
|
+
this.name = "ServiceQuotaExceededException";
|
|
254
|
+
this.$fault = "client";
|
|
255
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
256
|
+
this.resourceId = opts.resourceId;
|
|
257
|
+
this.resourceType = opts.resourceType;
|
|
258
|
+
this.serviceCode = opts.serviceCode;
|
|
259
|
+
this.quotaCode = opts.quotaCode;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
263
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
264
|
+
var _ValidationException = class _ValidationException extends OpenSearchServerlessServiceException {
|
|
265
|
+
/**
|
|
266
|
+
* @internal
|
|
267
|
+
*/
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "ValidationException",
|
|
271
|
+
$fault: "client",
|
|
272
|
+
...opts
|
|
273
|
+
});
|
|
274
|
+
this.name = "ValidationException";
|
|
275
|
+
this.$fault = "client";
|
|
276
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
__name(_ValidationException, "ValidationException");
|
|
280
|
+
var ValidationException = _ValidationException;
|
|
281
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends OpenSearchServerlessServiceException {
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
constructor(opts) {
|
|
286
|
+
super({
|
|
287
|
+
name: "ResourceNotFoundException",
|
|
288
|
+
$fault: "client",
|
|
289
|
+
...opts
|
|
290
|
+
});
|
|
291
|
+
this.name = "ResourceNotFoundException";
|
|
292
|
+
this.$fault = "client";
|
|
293
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
297
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
298
|
+
var StandbyReplicas = {
|
|
299
|
+
/**
|
|
300
|
+
* Standby replicas disabled
|
|
301
|
+
*/
|
|
302
|
+
DISABLED: "DISABLED",
|
|
303
|
+
/**
|
|
304
|
+
* Standby replicas enabled
|
|
305
|
+
*/
|
|
306
|
+
ENABLED: "ENABLED"
|
|
307
|
+
};
|
|
308
|
+
var CollectionStatus = {
|
|
309
|
+
/**
|
|
310
|
+
* Collection resource is ready to use
|
|
311
|
+
*/
|
|
312
|
+
ACTIVE: "ACTIVE",
|
|
313
|
+
/**
|
|
314
|
+
* Creating collection resource
|
|
315
|
+
*/
|
|
316
|
+
CREATING: "CREATING",
|
|
317
|
+
/**
|
|
318
|
+
* Deleting collection resource
|
|
319
|
+
*/
|
|
320
|
+
DELETING: "DELETING",
|
|
321
|
+
/**
|
|
322
|
+
* Collection resource create or delete failed
|
|
323
|
+
*/
|
|
324
|
+
FAILED: "FAILED"
|
|
325
|
+
};
|
|
326
|
+
var CollectionType = {
|
|
327
|
+
/**
|
|
328
|
+
* Search collection type
|
|
329
|
+
*/
|
|
330
|
+
SEARCH: "SEARCH",
|
|
331
|
+
/**
|
|
332
|
+
* Timeseries collection type
|
|
333
|
+
*/
|
|
334
|
+
TIMESERIES: "TIMESERIES",
|
|
335
|
+
/**
|
|
336
|
+
* Vectorsearch collection type
|
|
337
|
+
*/
|
|
338
|
+
VECTORSEARCH: "VECTORSEARCH"
|
|
339
|
+
};
|
|
340
|
+
var LifecyclePolicyType = {
|
|
341
|
+
/**
|
|
342
|
+
* retention policy type
|
|
343
|
+
*/
|
|
344
|
+
retention: "retention"
|
|
345
|
+
};
|
|
346
|
+
var ResourceType = {
|
|
347
|
+
/**
|
|
348
|
+
* index resource type
|
|
349
|
+
*/
|
|
350
|
+
index: "index"
|
|
351
|
+
};
|
|
352
|
+
var VpcEndpointStatus = {
|
|
353
|
+
/**
|
|
354
|
+
* VPCEndpoint resource is ready to use
|
|
355
|
+
*/
|
|
356
|
+
ACTIVE: "ACTIVE",
|
|
357
|
+
/**
|
|
358
|
+
* Deleting VPCEndpoint resource
|
|
359
|
+
*/
|
|
360
|
+
DELETING: "DELETING",
|
|
361
|
+
/**
|
|
362
|
+
* VPCEndpoint resource create or delete failed
|
|
363
|
+
*/
|
|
364
|
+
FAILED: "FAILED",
|
|
365
|
+
/**
|
|
366
|
+
* Pending VPCEndpoint resource
|
|
367
|
+
*/
|
|
368
|
+
PENDING: "PENDING"
|
|
369
|
+
};
|
|
370
|
+
var _OcuLimitExceededException = class _OcuLimitExceededException extends OpenSearchServerlessServiceException {
|
|
371
|
+
/**
|
|
372
|
+
* @internal
|
|
373
|
+
*/
|
|
374
|
+
constructor(opts) {
|
|
375
|
+
super({
|
|
376
|
+
name: "OcuLimitExceededException",
|
|
377
|
+
$fault: "client",
|
|
378
|
+
...opts
|
|
379
|
+
});
|
|
380
|
+
this.name = "OcuLimitExceededException";
|
|
381
|
+
this.$fault = "client";
|
|
382
|
+
Object.setPrototypeOf(this, _OcuLimitExceededException.prototype);
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
__name(_OcuLimitExceededException, "OcuLimitExceededException");
|
|
386
|
+
var OcuLimitExceededException = _OcuLimitExceededException;
|
|
387
|
+
var SecurityConfigType = {
|
|
388
|
+
/**
|
|
389
|
+
* saml provider
|
|
390
|
+
*/
|
|
391
|
+
saml: "saml"
|
|
392
|
+
};
|
|
393
|
+
var SecurityPolicyType = {
|
|
394
|
+
/**
|
|
395
|
+
* encryption policy type
|
|
396
|
+
*/
|
|
397
|
+
encryption: "encryption",
|
|
398
|
+
/**
|
|
399
|
+
* network policy type
|
|
400
|
+
*/
|
|
401
|
+
network: "network"
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
// src/protocols/Aws_json1_0.ts
|
|
405
|
+
var se_BatchGetCollectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
406
|
+
const headers = sharedHeaders("BatchGetCollection");
|
|
407
|
+
let body;
|
|
408
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
409
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
410
|
+
}, "se_BatchGetCollectionCommand");
|
|
411
|
+
var se_BatchGetEffectiveLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
412
|
+
const headers = sharedHeaders("BatchGetEffectiveLifecyclePolicy");
|
|
413
|
+
let body;
|
|
414
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
415
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
416
|
+
}, "se_BatchGetEffectiveLifecyclePolicyCommand");
|
|
417
|
+
var se_BatchGetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
418
|
+
const headers = sharedHeaders("BatchGetLifecyclePolicy");
|
|
419
|
+
let body;
|
|
420
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
421
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
422
|
+
}, "se_BatchGetLifecyclePolicyCommand");
|
|
423
|
+
var se_BatchGetVpcEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
424
|
+
const headers = sharedHeaders("BatchGetVpcEndpoint");
|
|
425
|
+
let body;
|
|
426
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
427
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
428
|
+
}, "se_BatchGetVpcEndpointCommand");
|
|
429
|
+
var se_CreateAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
430
|
+
const headers = sharedHeaders("CreateAccessPolicy");
|
|
431
|
+
let body;
|
|
432
|
+
body = JSON.stringify(se_CreateAccessPolicyRequest(input, context));
|
|
433
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
434
|
+
}, "se_CreateAccessPolicyCommand");
|
|
435
|
+
var se_CreateCollectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
436
|
+
const headers = sharedHeaders("CreateCollection");
|
|
437
|
+
let body;
|
|
438
|
+
body = JSON.stringify(se_CreateCollectionRequest(input, context));
|
|
439
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
440
|
+
}, "se_CreateCollectionCommand");
|
|
441
|
+
var se_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
442
|
+
const headers = sharedHeaders("CreateLifecyclePolicy");
|
|
443
|
+
let body;
|
|
444
|
+
body = JSON.stringify(se_CreateLifecyclePolicyRequest(input, context));
|
|
445
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
446
|
+
}, "se_CreateLifecyclePolicyCommand");
|
|
447
|
+
var se_CreateSecurityConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
448
|
+
const headers = sharedHeaders("CreateSecurityConfig");
|
|
449
|
+
let body;
|
|
450
|
+
body = JSON.stringify(se_CreateSecurityConfigRequest(input, context));
|
|
451
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
452
|
+
}, "se_CreateSecurityConfigCommand");
|
|
453
|
+
var se_CreateSecurityPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
454
|
+
const headers = sharedHeaders("CreateSecurityPolicy");
|
|
455
|
+
let body;
|
|
456
|
+
body = JSON.stringify(se_CreateSecurityPolicyRequest(input, context));
|
|
457
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
458
|
+
}, "se_CreateSecurityPolicyCommand");
|
|
459
|
+
var se_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
460
|
+
const headers = sharedHeaders("CreateVpcEndpoint");
|
|
461
|
+
let body;
|
|
462
|
+
body = JSON.stringify(se_CreateVpcEndpointRequest(input, context));
|
|
463
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
464
|
+
}, "se_CreateVpcEndpointCommand");
|
|
465
|
+
var se_DeleteAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
466
|
+
const headers = sharedHeaders("DeleteAccessPolicy");
|
|
467
|
+
let body;
|
|
468
|
+
body = JSON.stringify(se_DeleteAccessPolicyRequest(input, context));
|
|
469
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
470
|
+
}, "se_DeleteAccessPolicyCommand");
|
|
471
|
+
var se_DeleteCollectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
472
|
+
const headers = sharedHeaders("DeleteCollection");
|
|
473
|
+
let body;
|
|
474
|
+
body = JSON.stringify(se_DeleteCollectionRequest(input, context));
|
|
475
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
476
|
+
}, "se_DeleteCollectionCommand");
|
|
477
|
+
var se_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
478
|
+
const headers = sharedHeaders("DeleteLifecyclePolicy");
|
|
479
|
+
let body;
|
|
480
|
+
body = JSON.stringify(se_DeleteLifecyclePolicyRequest(input, context));
|
|
481
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
482
|
+
}, "se_DeleteLifecyclePolicyCommand");
|
|
483
|
+
var se_DeleteSecurityConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
484
|
+
const headers = sharedHeaders("DeleteSecurityConfig");
|
|
485
|
+
let body;
|
|
486
|
+
body = JSON.stringify(se_DeleteSecurityConfigRequest(input, context));
|
|
487
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
488
|
+
}, "se_DeleteSecurityConfigCommand");
|
|
489
|
+
var se_DeleteSecurityPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
490
|
+
const headers = sharedHeaders("DeleteSecurityPolicy");
|
|
491
|
+
let body;
|
|
492
|
+
body = JSON.stringify(se_DeleteSecurityPolicyRequest(input, context));
|
|
493
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
494
|
+
}, "se_DeleteSecurityPolicyCommand");
|
|
495
|
+
var se_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
496
|
+
const headers = sharedHeaders("DeleteVpcEndpoint");
|
|
497
|
+
let body;
|
|
498
|
+
body = JSON.stringify(se_DeleteVpcEndpointRequest(input, context));
|
|
499
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
500
|
+
}, "se_DeleteVpcEndpointCommand");
|
|
501
|
+
var se_GetAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
502
|
+
const headers = sharedHeaders("GetAccessPolicy");
|
|
503
|
+
let body;
|
|
504
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
505
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
506
|
+
}, "se_GetAccessPolicyCommand");
|
|
507
|
+
var se_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
508
|
+
const headers = sharedHeaders("GetAccountSettings");
|
|
509
|
+
let body;
|
|
510
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
511
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
512
|
+
}, "se_GetAccountSettingsCommand");
|
|
513
|
+
var se_GetPoliciesStatsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
514
|
+
const headers = sharedHeaders("GetPoliciesStats");
|
|
515
|
+
let body;
|
|
516
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
517
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
518
|
+
}, "se_GetPoliciesStatsCommand");
|
|
519
|
+
var se_GetSecurityConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
520
|
+
const headers = sharedHeaders("GetSecurityConfig");
|
|
521
|
+
let body;
|
|
522
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
523
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
524
|
+
}, "se_GetSecurityConfigCommand");
|
|
525
|
+
var se_GetSecurityPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
526
|
+
const headers = sharedHeaders("GetSecurityPolicy");
|
|
527
|
+
let body;
|
|
528
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
529
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
530
|
+
}, "se_GetSecurityPolicyCommand");
|
|
531
|
+
var se_ListAccessPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
532
|
+
const headers = sharedHeaders("ListAccessPolicies");
|
|
533
|
+
let body;
|
|
534
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
535
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
536
|
+
}, "se_ListAccessPoliciesCommand");
|
|
537
|
+
var se_ListCollectionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
538
|
+
const headers = sharedHeaders("ListCollections");
|
|
539
|
+
let body;
|
|
540
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
541
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
542
|
+
}, "se_ListCollectionsCommand");
|
|
543
|
+
var se_ListLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
544
|
+
const headers = sharedHeaders("ListLifecyclePolicies");
|
|
545
|
+
let body;
|
|
546
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
547
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
548
|
+
}, "se_ListLifecyclePoliciesCommand");
|
|
549
|
+
var se_ListSecurityConfigsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
550
|
+
const headers = sharedHeaders("ListSecurityConfigs");
|
|
551
|
+
let body;
|
|
552
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
553
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
554
|
+
}, "se_ListSecurityConfigsCommand");
|
|
555
|
+
var se_ListSecurityPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
556
|
+
const headers = sharedHeaders("ListSecurityPolicies");
|
|
557
|
+
let body;
|
|
558
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
559
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
560
|
+
}, "se_ListSecurityPoliciesCommand");
|
|
561
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
562
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
563
|
+
let body;
|
|
564
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
565
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
566
|
+
}, "se_ListTagsForResourceCommand");
|
|
567
|
+
var se_ListVpcEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
568
|
+
const headers = sharedHeaders("ListVpcEndpoints");
|
|
569
|
+
let body;
|
|
570
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
571
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
572
|
+
}, "se_ListVpcEndpointsCommand");
|
|
573
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
574
|
+
const headers = sharedHeaders("TagResource");
|
|
575
|
+
let body;
|
|
576
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
577
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
578
|
+
}, "se_TagResourceCommand");
|
|
579
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
580
|
+
const headers = sharedHeaders("UntagResource");
|
|
581
|
+
let body;
|
|
582
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
583
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
584
|
+
}, "se_UntagResourceCommand");
|
|
585
|
+
var se_UpdateAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
586
|
+
const headers = sharedHeaders("UpdateAccessPolicy");
|
|
587
|
+
let body;
|
|
588
|
+
body = JSON.stringify(se_UpdateAccessPolicyRequest(input, context));
|
|
589
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
590
|
+
}, "se_UpdateAccessPolicyCommand");
|
|
591
|
+
var se_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
592
|
+
const headers = sharedHeaders("UpdateAccountSettings");
|
|
593
|
+
let body;
|
|
594
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
595
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
596
|
+
}, "se_UpdateAccountSettingsCommand");
|
|
597
|
+
var se_UpdateCollectionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
598
|
+
const headers = sharedHeaders("UpdateCollection");
|
|
599
|
+
let body;
|
|
600
|
+
body = JSON.stringify(se_UpdateCollectionRequest(input, context));
|
|
601
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
602
|
+
}, "se_UpdateCollectionCommand");
|
|
603
|
+
var se_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
604
|
+
const headers = sharedHeaders("UpdateLifecyclePolicy");
|
|
605
|
+
let body;
|
|
606
|
+
body = JSON.stringify(se_UpdateLifecyclePolicyRequest(input, context));
|
|
607
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
608
|
+
}, "se_UpdateLifecyclePolicyCommand");
|
|
609
|
+
var se_UpdateSecurityConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
610
|
+
const headers = sharedHeaders("UpdateSecurityConfig");
|
|
611
|
+
let body;
|
|
612
|
+
body = JSON.stringify(se_UpdateSecurityConfigRequest(input, context));
|
|
613
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
614
|
+
}, "se_UpdateSecurityConfigCommand");
|
|
615
|
+
var se_UpdateSecurityPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
616
|
+
const headers = sharedHeaders("UpdateSecurityPolicy");
|
|
617
|
+
let body;
|
|
618
|
+
body = JSON.stringify(se_UpdateSecurityPolicyRequest(input, context));
|
|
619
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
620
|
+
}, "se_UpdateSecurityPolicyCommand");
|
|
621
|
+
var se_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
622
|
+
const headers = sharedHeaders("UpdateVpcEndpoint");
|
|
623
|
+
let body;
|
|
624
|
+
body = JSON.stringify(se_UpdateVpcEndpointRequest(input, context));
|
|
625
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
626
|
+
}, "se_UpdateVpcEndpointCommand");
|
|
627
|
+
var de_BatchGetCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
628
|
+
if (output.statusCode >= 300) {
|
|
629
|
+
return de_BatchGetCollectionCommandError(output, context);
|
|
630
|
+
}
|
|
631
|
+
const data = await parseBody(output.body, context);
|
|
632
|
+
let contents = {};
|
|
633
|
+
contents = (0, import_smithy_client._json)(data);
|
|
634
|
+
const response = {
|
|
635
|
+
$metadata: deserializeMetadata(output),
|
|
636
|
+
...contents
|
|
637
|
+
};
|
|
638
|
+
return response;
|
|
639
|
+
}, "de_BatchGetCollectionCommand");
|
|
640
|
+
var de_BatchGetCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
641
|
+
const parsedOutput = {
|
|
642
|
+
...output,
|
|
643
|
+
body: await parseErrorBody(output.body, context)
|
|
644
|
+
};
|
|
645
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
646
|
+
switch (errorCode) {
|
|
647
|
+
case "InternalServerException":
|
|
648
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
649
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
650
|
+
case "ValidationException":
|
|
651
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
652
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
653
|
+
default:
|
|
654
|
+
const parsedBody = parsedOutput.body;
|
|
655
|
+
return throwDefaultError({
|
|
656
|
+
output,
|
|
657
|
+
parsedBody,
|
|
658
|
+
errorCode
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
}, "de_BatchGetCollectionCommandError");
|
|
662
|
+
var de_BatchGetEffectiveLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
663
|
+
if (output.statusCode >= 300) {
|
|
664
|
+
return de_BatchGetEffectiveLifecyclePolicyCommandError(output, context);
|
|
665
|
+
}
|
|
666
|
+
const data = await parseBody(output.body, context);
|
|
667
|
+
let contents = {};
|
|
668
|
+
contents = (0, import_smithy_client._json)(data);
|
|
669
|
+
const response = {
|
|
670
|
+
$metadata: deserializeMetadata(output),
|
|
671
|
+
...contents
|
|
672
|
+
};
|
|
673
|
+
return response;
|
|
674
|
+
}, "de_BatchGetEffectiveLifecyclePolicyCommand");
|
|
675
|
+
var de_BatchGetEffectiveLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
676
|
+
const parsedOutput = {
|
|
677
|
+
...output,
|
|
678
|
+
body: await parseErrorBody(output.body, context)
|
|
679
|
+
};
|
|
680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
681
|
+
switch (errorCode) {
|
|
682
|
+
case "InternalServerException":
|
|
683
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
684
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
685
|
+
case "ValidationException":
|
|
686
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
687
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
688
|
+
default:
|
|
689
|
+
const parsedBody = parsedOutput.body;
|
|
690
|
+
return throwDefaultError({
|
|
691
|
+
output,
|
|
692
|
+
parsedBody,
|
|
693
|
+
errorCode
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
}, "de_BatchGetEffectiveLifecyclePolicyCommandError");
|
|
697
|
+
var de_BatchGetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
698
|
+
if (output.statusCode >= 300) {
|
|
699
|
+
return de_BatchGetLifecyclePolicyCommandError(output, context);
|
|
700
|
+
}
|
|
701
|
+
const data = await parseBody(output.body, context);
|
|
702
|
+
let contents = {};
|
|
703
|
+
contents = de_BatchGetLifecyclePolicyResponse(data, context);
|
|
704
|
+
const response = {
|
|
705
|
+
$metadata: deserializeMetadata(output),
|
|
706
|
+
...contents
|
|
707
|
+
};
|
|
708
|
+
return response;
|
|
709
|
+
}, "de_BatchGetLifecyclePolicyCommand");
|
|
710
|
+
var de_BatchGetLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
711
|
+
const parsedOutput = {
|
|
712
|
+
...output,
|
|
713
|
+
body: await parseErrorBody(output.body, context)
|
|
714
|
+
};
|
|
715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
|
+
switch (errorCode) {
|
|
717
|
+
case "InternalServerException":
|
|
718
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
719
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
720
|
+
case "ValidationException":
|
|
721
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
722
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
723
|
+
default:
|
|
724
|
+
const parsedBody = parsedOutput.body;
|
|
725
|
+
return throwDefaultError({
|
|
726
|
+
output,
|
|
727
|
+
parsedBody,
|
|
728
|
+
errorCode
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
}, "de_BatchGetLifecyclePolicyCommandError");
|
|
732
|
+
var de_BatchGetVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
733
|
+
if (output.statusCode >= 300) {
|
|
734
|
+
return de_BatchGetVpcEndpointCommandError(output, context);
|
|
735
|
+
}
|
|
736
|
+
const data = await parseBody(output.body, context);
|
|
737
|
+
let contents = {};
|
|
738
|
+
contents = (0, import_smithy_client._json)(data);
|
|
739
|
+
const response = {
|
|
740
|
+
$metadata: deserializeMetadata(output),
|
|
741
|
+
...contents
|
|
742
|
+
};
|
|
743
|
+
return response;
|
|
744
|
+
}, "de_BatchGetVpcEndpointCommand");
|
|
745
|
+
var de_BatchGetVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
746
|
+
const parsedOutput = {
|
|
747
|
+
...output,
|
|
748
|
+
body: await parseErrorBody(output.body, context)
|
|
749
|
+
};
|
|
750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
|
+
switch (errorCode) {
|
|
752
|
+
case "InternalServerException":
|
|
753
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
754
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
755
|
+
case "ValidationException":
|
|
756
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
757
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
758
|
+
default:
|
|
759
|
+
const parsedBody = parsedOutput.body;
|
|
760
|
+
return throwDefaultError({
|
|
761
|
+
output,
|
|
762
|
+
parsedBody,
|
|
763
|
+
errorCode
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
}, "de_BatchGetVpcEndpointCommandError");
|
|
767
|
+
var de_CreateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
768
|
+
if (output.statusCode >= 300) {
|
|
769
|
+
return de_CreateAccessPolicyCommandError(output, context);
|
|
770
|
+
}
|
|
771
|
+
const data = await parseBody(output.body, context);
|
|
772
|
+
let contents = {};
|
|
773
|
+
contents = de_CreateAccessPolicyResponse(data, context);
|
|
774
|
+
const response = {
|
|
775
|
+
$metadata: deserializeMetadata(output),
|
|
776
|
+
...contents
|
|
777
|
+
};
|
|
778
|
+
return response;
|
|
779
|
+
}, "de_CreateAccessPolicyCommand");
|
|
780
|
+
var de_CreateAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
781
|
+
const parsedOutput = {
|
|
782
|
+
...output,
|
|
783
|
+
body: await parseErrorBody(output.body, context)
|
|
784
|
+
};
|
|
785
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
|
+
switch (errorCode) {
|
|
787
|
+
case "ConflictException":
|
|
788
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
789
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
790
|
+
case "InternalServerException":
|
|
791
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
792
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
793
|
+
case "ServiceQuotaExceededException":
|
|
794
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
795
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
796
|
+
case "ValidationException":
|
|
797
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
798
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
799
|
+
default:
|
|
800
|
+
const parsedBody = parsedOutput.body;
|
|
801
|
+
return throwDefaultError({
|
|
802
|
+
output,
|
|
803
|
+
parsedBody,
|
|
804
|
+
errorCode
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
}, "de_CreateAccessPolicyCommandError");
|
|
808
|
+
var de_CreateCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
809
|
+
if (output.statusCode >= 300) {
|
|
810
|
+
return de_CreateCollectionCommandError(output, context);
|
|
811
|
+
}
|
|
812
|
+
const data = await parseBody(output.body, context);
|
|
813
|
+
let contents = {};
|
|
814
|
+
contents = (0, import_smithy_client._json)(data);
|
|
815
|
+
const response = {
|
|
816
|
+
$metadata: deserializeMetadata(output),
|
|
817
|
+
...contents
|
|
818
|
+
};
|
|
819
|
+
return response;
|
|
820
|
+
}, "de_CreateCollectionCommand");
|
|
821
|
+
var de_CreateCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
822
|
+
const parsedOutput = {
|
|
823
|
+
...output,
|
|
824
|
+
body: await parseErrorBody(output.body, context)
|
|
825
|
+
};
|
|
826
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
+
switch (errorCode) {
|
|
828
|
+
case "ConflictException":
|
|
829
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
830
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
831
|
+
case "InternalServerException":
|
|
832
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
833
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
834
|
+
case "OcuLimitExceededException":
|
|
835
|
+
case "com.amazonaws.opensearchserverless#OcuLimitExceededException":
|
|
836
|
+
throw await de_OcuLimitExceededExceptionRes(parsedOutput, context);
|
|
837
|
+
case "ServiceQuotaExceededException":
|
|
838
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
839
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
840
|
+
case "ValidationException":
|
|
841
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
842
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
843
|
+
default:
|
|
844
|
+
const parsedBody = parsedOutput.body;
|
|
845
|
+
return throwDefaultError({
|
|
846
|
+
output,
|
|
847
|
+
parsedBody,
|
|
848
|
+
errorCode
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
}, "de_CreateCollectionCommandError");
|
|
852
|
+
var de_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
|
+
if (output.statusCode >= 300) {
|
|
854
|
+
return de_CreateLifecyclePolicyCommandError(output, context);
|
|
855
|
+
}
|
|
856
|
+
const data = await parseBody(output.body, context);
|
|
857
|
+
let contents = {};
|
|
858
|
+
contents = de_CreateLifecyclePolicyResponse(data, context);
|
|
859
|
+
const response = {
|
|
860
|
+
$metadata: deserializeMetadata(output),
|
|
861
|
+
...contents
|
|
862
|
+
};
|
|
863
|
+
return response;
|
|
864
|
+
}, "de_CreateLifecyclePolicyCommand");
|
|
865
|
+
var de_CreateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
866
|
+
const parsedOutput = {
|
|
867
|
+
...output,
|
|
868
|
+
body: await parseErrorBody(output.body, context)
|
|
869
|
+
};
|
|
870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
|
+
switch (errorCode) {
|
|
872
|
+
case "ConflictException":
|
|
873
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
874
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
875
|
+
case "InternalServerException":
|
|
876
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
877
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
878
|
+
case "ServiceQuotaExceededException":
|
|
879
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
880
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
881
|
+
case "ValidationException":
|
|
882
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
883
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
884
|
+
default:
|
|
885
|
+
const parsedBody = parsedOutput.body;
|
|
886
|
+
return throwDefaultError({
|
|
887
|
+
output,
|
|
888
|
+
parsedBody,
|
|
889
|
+
errorCode
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
}, "de_CreateLifecyclePolicyCommandError");
|
|
893
|
+
var de_CreateSecurityConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
894
|
+
if (output.statusCode >= 300) {
|
|
895
|
+
return de_CreateSecurityConfigCommandError(output, context);
|
|
896
|
+
}
|
|
897
|
+
const data = await parseBody(output.body, context);
|
|
898
|
+
let contents = {};
|
|
899
|
+
contents = (0, import_smithy_client._json)(data);
|
|
900
|
+
const response = {
|
|
901
|
+
$metadata: deserializeMetadata(output),
|
|
902
|
+
...contents
|
|
903
|
+
};
|
|
904
|
+
return response;
|
|
905
|
+
}, "de_CreateSecurityConfigCommand");
|
|
906
|
+
var de_CreateSecurityConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
|
+
const parsedOutput = {
|
|
908
|
+
...output,
|
|
909
|
+
body: await parseErrorBody(output.body, context)
|
|
910
|
+
};
|
|
911
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
|
+
switch (errorCode) {
|
|
913
|
+
case "ConflictException":
|
|
914
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
915
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
916
|
+
case "InternalServerException":
|
|
917
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
918
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
919
|
+
case "ServiceQuotaExceededException":
|
|
920
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
921
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
922
|
+
case "ValidationException":
|
|
923
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
924
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
925
|
+
default:
|
|
926
|
+
const parsedBody = parsedOutput.body;
|
|
927
|
+
return throwDefaultError({
|
|
928
|
+
output,
|
|
929
|
+
parsedBody,
|
|
930
|
+
errorCode
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
}, "de_CreateSecurityConfigCommandError");
|
|
934
|
+
var de_CreateSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
935
|
+
if (output.statusCode >= 300) {
|
|
936
|
+
return de_CreateSecurityPolicyCommandError(output, context);
|
|
937
|
+
}
|
|
938
|
+
const data = await parseBody(output.body, context);
|
|
939
|
+
let contents = {};
|
|
940
|
+
contents = de_CreateSecurityPolicyResponse(data, context);
|
|
941
|
+
const response = {
|
|
942
|
+
$metadata: deserializeMetadata(output),
|
|
943
|
+
...contents
|
|
944
|
+
};
|
|
945
|
+
return response;
|
|
946
|
+
}, "de_CreateSecurityPolicyCommand");
|
|
947
|
+
var de_CreateSecurityPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
|
+
const parsedOutput = {
|
|
949
|
+
...output,
|
|
950
|
+
body: await parseErrorBody(output.body, context)
|
|
951
|
+
};
|
|
952
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
+
switch (errorCode) {
|
|
954
|
+
case "ConflictException":
|
|
955
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
956
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
957
|
+
case "InternalServerException":
|
|
958
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
959
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
|
+
case "ServiceQuotaExceededException":
|
|
961
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
962
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
963
|
+
case "ValidationException":
|
|
964
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
965
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
966
|
+
default:
|
|
967
|
+
const parsedBody = parsedOutput.body;
|
|
968
|
+
return throwDefaultError({
|
|
969
|
+
output,
|
|
970
|
+
parsedBody,
|
|
971
|
+
errorCode
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
}, "de_CreateSecurityPolicyCommandError");
|
|
975
|
+
var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
|
+
if (output.statusCode >= 300) {
|
|
977
|
+
return de_CreateVpcEndpointCommandError(output, context);
|
|
978
|
+
}
|
|
979
|
+
const data = await parseBody(output.body, context);
|
|
980
|
+
let contents = {};
|
|
981
|
+
contents = (0, import_smithy_client._json)(data);
|
|
982
|
+
const response = {
|
|
983
|
+
$metadata: deserializeMetadata(output),
|
|
984
|
+
...contents
|
|
985
|
+
};
|
|
986
|
+
return response;
|
|
987
|
+
}, "de_CreateVpcEndpointCommand");
|
|
988
|
+
var de_CreateVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
989
|
+
const parsedOutput = {
|
|
990
|
+
...output,
|
|
991
|
+
body: await parseErrorBody(output.body, context)
|
|
992
|
+
};
|
|
993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
994
|
+
switch (errorCode) {
|
|
995
|
+
case "ConflictException":
|
|
996
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
997
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
998
|
+
case "InternalServerException":
|
|
999
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1000
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1001
|
+
case "ServiceQuotaExceededException":
|
|
1002
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1003
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1004
|
+
case "ValidationException":
|
|
1005
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1006
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
|
+
default:
|
|
1008
|
+
const parsedBody = parsedOutput.body;
|
|
1009
|
+
return throwDefaultError({
|
|
1010
|
+
output,
|
|
1011
|
+
parsedBody,
|
|
1012
|
+
errorCode
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
}, "de_CreateVpcEndpointCommandError");
|
|
1016
|
+
var de_DeleteAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1017
|
+
if (output.statusCode >= 300) {
|
|
1018
|
+
return de_DeleteAccessPolicyCommandError(output, context);
|
|
1019
|
+
}
|
|
1020
|
+
const data = await parseBody(output.body, context);
|
|
1021
|
+
let contents = {};
|
|
1022
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1023
|
+
const response = {
|
|
1024
|
+
$metadata: deserializeMetadata(output),
|
|
1025
|
+
...contents
|
|
1026
|
+
};
|
|
1027
|
+
return response;
|
|
1028
|
+
}, "de_DeleteAccessPolicyCommand");
|
|
1029
|
+
var de_DeleteAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1030
|
+
const parsedOutput = {
|
|
1031
|
+
...output,
|
|
1032
|
+
body: await parseErrorBody(output.body, context)
|
|
1033
|
+
};
|
|
1034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
+
switch (errorCode) {
|
|
1036
|
+
case "ConflictException":
|
|
1037
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1038
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1039
|
+
case "InternalServerException":
|
|
1040
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1041
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1042
|
+
case "ResourceNotFoundException":
|
|
1043
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1044
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1045
|
+
case "ValidationException":
|
|
1046
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1047
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1048
|
+
default:
|
|
1049
|
+
const parsedBody = parsedOutput.body;
|
|
1050
|
+
return throwDefaultError({
|
|
1051
|
+
output,
|
|
1052
|
+
parsedBody,
|
|
1053
|
+
errorCode
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
}, "de_DeleteAccessPolicyCommandError");
|
|
1057
|
+
var de_DeleteCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1058
|
+
if (output.statusCode >= 300) {
|
|
1059
|
+
return de_DeleteCollectionCommandError(output, context);
|
|
1060
|
+
}
|
|
1061
|
+
const data = await parseBody(output.body, context);
|
|
1062
|
+
let contents = {};
|
|
1063
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1064
|
+
const response = {
|
|
1065
|
+
$metadata: deserializeMetadata(output),
|
|
1066
|
+
...contents
|
|
1067
|
+
};
|
|
1068
|
+
return response;
|
|
1069
|
+
}, "de_DeleteCollectionCommand");
|
|
1070
|
+
var de_DeleteCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1071
|
+
const parsedOutput = {
|
|
1072
|
+
...output,
|
|
1073
|
+
body: await parseErrorBody(output.body, context)
|
|
1074
|
+
};
|
|
1075
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
|
+
switch (errorCode) {
|
|
1077
|
+
case "ConflictException":
|
|
1078
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1079
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1080
|
+
case "InternalServerException":
|
|
1081
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1082
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1083
|
+
case "ResourceNotFoundException":
|
|
1084
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1085
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1086
|
+
case "ValidationException":
|
|
1087
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1088
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1089
|
+
default:
|
|
1090
|
+
const parsedBody = parsedOutput.body;
|
|
1091
|
+
return throwDefaultError({
|
|
1092
|
+
output,
|
|
1093
|
+
parsedBody,
|
|
1094
|
+
errorCode
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
}, "de_DeleteCollectionCommandError");
|
|
1098
|
+
var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
|
+
if (output.statusCode >= 300) {
|
|
1100
|
+
return de_DeleteLifecyclePolicyCommandError(output, context);
|
|
1101
|
+
}
|
|
1102
|
+
const data = await parseBody(output.body, context);
|
|
1103
|
+
let contents = {};
|
|
1104
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1105
|
+
const response = {
|
|
1106
|
+
$metadata: deserializeMetadata(output),
|
|
1107
|
+
...contents
|
|
1108
|
+
};
|
|
1109
|
+
return response;
|
|
1110
|
+
}, "de_DeleteLifecyclePolicyCommand");
|
|
1111
|
+
var de_DeleteLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1112
|
+
const parsedOutput = {
|
|
1113
|
+
...output,
|
|
1114
|
+
body: await parseErrorBody(output.body, context)
|
|
1115
|
+
};
|
|
1116
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
+
switch (errorCode) {
|
|
1118
|
+
case "ConflictException":
|
|
1119
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1120
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1121
|
+
case "InternalServerException":
|
|
1122
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1123
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "ResourceNotFoundException":
|
|
1125
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1126
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "ValidationException":
|
|
1128
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1129
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1130
|
+
default:
|
|
1131
|
+
const parsedBody = parsedOutput.body;
|
|
1132
|
+
return throwDefaultError({
|
|
1133
|
+
output,
|
|
1134
|
+
parsedBody,
|
|
1135
|
+
errorCode
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
}, "de_DeleteLifecyclePolicyCommandError");
|
|
1139
|
+
var de_DeleteSecurityConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1140
|
+
if (output.statusCode >= 300) {
|
|
1141
|
+
return de_DeleteSecurityConfigCommandError(output, context);
|
|
1142
|
+
}
|
|
1143
|
+
const data = await parseBody(output.body, context);
|
|
1144
|
+
let contents = {};
|
|
1145
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1146
|
+
const response = {
|
|
1147
|
+
$metadata: deserializeMetadata(output),
|
|
1148
|
+
...contents
|
|
1149
|
+
};
|
|
1150
|
+
return response;
|
|
1151
|
+
}, "de_DeleteSecurityConfigCommand");
|
|
1152
|
+
var de_DeleteSecurityConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1153
|
+
const parsedOutput = {
|
|
1154
|
+
...output,
|
|
1155
|
+
body: await parseErrorBody(output.body, context)
|
|
1156
|
+
};
|
|
1157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1158
|
+
switch (errorCode) {
|
|
1159
|
+
case "ConflictException":
|
|
1160
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1161
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1162
|
+
case "InternalServerException":
|
|
1163
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1164
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1165
|
+
case "ResourceNotFoundException":
|
|
1166
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1167
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1168
|
+
case "ValidationException":
|
|
1169
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1170
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1171
|
+
default:
|
|
1172
|
+
const parsedBody = parsedOutput.body;
|
|
1173
|
+
return throwDefaultError({
|
|
1174
|
+
output,
|
|
1175
|
+
parsedBody,
|
|
1176
|
+
errorCode
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
}, "de_DeleteSecurityConfigCommandError");
|
|
1180
|
+
var de_DeleteSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1181
|
+
if (output.statusCode >= 300) {
|
|
1182
|
+
return de_DeleteSecurityPolicyCommandError(output, context);
|
|
1183
|
+
}
|
|
1184
|
+
const data = await parseBody(output.body, context);
|
|
1185
|
+
let contents = {};
|
|
1186
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1187
|
+
const response = {
|
|
1188
|
+
$metadata: deserializeMetadata(output),
|
|
1189
|
+
...contents
|
|
1190
|
+
};
|
|
1191
|
+
return response;
|
|
1192
|
+
}, "de_DeleteSecurityPolicyCommand");
|
|
1193
|
+
var de_DeleteSecurityPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1194
|
+
const parsedOutput = {
|
|
1195
|
+
...output,
|
|
1196
|
+
body: await parseErrorBody(output.body, context)
|
|
1197
|
+
};
|
|
1198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
+
switch (errorCode) {
|
|
1200
|
+
case "ConflictException":
|
|
1201
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1202
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1203
|
+
case "InternalServerException":
|
|
1204
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1205
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
+
case "ResourceNotFoundException":
|
|
1207
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1208
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1209
|
+
case "ValidationException":
|
|
1210
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1211
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1212
|
+
default:
|
|
1213
|
+
const parsedBody = parsedOutput.body;
|
|
1214
|
+
return throwDefaultError({
|
|
1215
|
+
output,
|
|
1216
|
+
parsedBody,
|
|
1217
|
+
errorCode
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
}, "de_DeleteSecurityPolicyCommandError");
|
|
1221
|
+
var de_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1222
|
+
if (output.statusCode >= 300) {
|
|
1223
|
+
return de_DeleteVpcEndpointCommandError(output, context);
|
|
1224
|
+
}
|
|
1225
|
+
const data = await parseBody(output.body, context);
|
|
1226
|
+
let contents = {};
|
|
1227
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1228
|
+
const response = {
|
|
1229
|
+
$metadata: deserializeMetadata(output),
|
|
1230
|
+
...contents
|
|
1231
|
+
};
|
|
1232
|
+
return response;
|
|
1233
|
+
}, "de_DeleteVpcEndpointCommand");
|
|
1234
|
+
var de_DeleteVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1235
|
+
const parsedOutput = {
|
|
1236
|
+
...output,
|
|
1237
|
+
body: await parseErrorBody(output.body, context)
|
|
1238
|
+
};
|
|
1239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
+
switch (errorCode) {
|
|
1241
|
+
case "ConflictException":
|
|
1242
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1243
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1244
|
+
case "InternalServerException":
|
|
1245
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1246
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1247
|
+
case "ResourceNotFoundException":
|
|
1248
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1249
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
+
case "ValidationException":
|
|
1251
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1252
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1253
|
+
default:
|
|
1254
|
+
const parsedBody = parsedOutput.body;
|
|
1255
|
+
return throwDefaultError({
|
|
1256
|
+
output,
|
|
1257
|
+
parsedBody,
|
|
1258
|
+
errorCode
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
}, "de_DeleteVpcEndpointCommandError");
|
|
1262
|
+
var de_GetAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1263
|
+
if (output.statusCode >= 300) {
|
|
1264
|
+
return de_GetAccessPolicyCommandError(output, context);
|
|
1265
|
+
}
|
|
1266
|
+
const data = await parseBody(output.body, context);
|
|
1267
|
+
let contents = {};
|
|
1268
|
+
contents = de_GetAccessPolicyResponse(data, context);
|
|
1269
|
+
const response = {
|
|
1270
|
+
$metadata: deserializeMetadata(output),
|
|
1271
|
+
...contents
|
|
1272
|
+
};
|
|
1273
|
+
return response;
|
|
1274
|
+
}, "de_GetAccessPolicyCommand");
|
|
1275
|
+
var de_GetAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1276
|
+
const parsedOutput = {
|
|
1277
|
+
...output,
|
|
1278
|
+
body: await parseErrorBody(output.body, context)
|
|
1279
|
+
};
|
|
1280
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
+
switch (errorCode) {
|
|
1282
|
+
case "InternalServerException":
|
|
1283
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1284
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1285
|
+
case "ResourceNotFoundException":
|
|
1286
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1287
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1288
|
+
case "ValidationException":
|
|
1289
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1290
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1291
|
+
default:
|
|
1292
|
+
const parsedBody = parsedOutput.body;
|
|
1293
|
+
return throwDefaultError({
|
|
1294
|
+
output,
|
|
1295
|
+
parsedBody,
|
|
1296
|
+
errorCode
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
}, "de_GetAccessPolicyCommandError");
|
|
1300
|
+
var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1301
|
+
if (output.statusCode >= 300) {
|
|
1302
|
+
return de_GetAccountSettingsCommandError(output, context);
|
|
1303
|
+
}
|
|
1304
|
+
const data = await parseBody(output.body, context);
|
|
1305
|
+
let contents = {};
|
|
1306
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1307
|
+
const response = {
|
|
1308
|
+
$metadata: deserializeMetadata(output),
|
|
1309
|
+
...contents
|
|
1310
|
+
};
|
|
1311
|
+
return response;
|
|
1312
|
+
}, "de_GetAccountSettingsCommand");
|
|
1313
|
+
var de_GetAccountSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1314
|
+
const parsedOutput = {
|
|
1315
|
+
...output,
|
|
1316
|
+
body: await parseErrorBody(output.body, context)
|
|
1317
|
+
};
|
|
1318
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1319
|
+
switch (errorCode) {
|
|
1320
|
+
case "InternalServerException":
|
|
1321
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1322
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1323
|
+
case "ValidationException":
|
|
1324
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1325
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1326
|
+
default:
|
|
1327
|
+
const parsedBody = parsedOutput.body;
|
|
1328
|
+
return throwDefaultError({
|
|
1329
|
+
output,
|
|
1330
|
+
parsedBody,
|
|
1331
|
+
errorCode
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
}, "de_GetAccountSettingsCommandError");
|
|
1335
|
+
var de_GetPoliciesStatsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1336
|
+
if (output.statusCode >= 300) {
|
|
1337
|
+
return de_GetPoliciesStatsCommandError(output, context);
|
|
1338
|
+
}
|
|
1339
|
+
const data = await parseBody(output.body, context);
|
|
1340
|
+
let contents = {};
|
|
1341
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1342
|
+
const response = {
|
|
1343
|
+
$metadata: deserializeMetadata(output),
|
|
1344
|
+
...contents
|
|
1345
|
+
};
|
|
1346
|
+
return response;
|
|
1347
|
+
}, "de_GetPoliciesStatsCommand");
|
|
1348
|
+
var de_GetPoliciesStatsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1349
|
+
const parsedOutput = {
|
|
1350
|
+
...output,
|
|
1351
|
+
body: await parseErrorBody(output.body, context)
|
|
1352
|
+
};
|
|
1353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
|
+
switch (errorCode) {
|
|
1355
|
+
case "InternalServerException":
|
|
1356
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1357
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1358
|
+
default:
|
|
1359
|
+
const parsedBody = parsedOutput.body;
|
|
1360
|
+
return throwDefaultError({
|
|
1361
|
+
output,
|
|
1362
|
+
parsedBody,
|
|
1363
|
+
errorCode
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1366
|
+
}, "de_GetPoliciesStatsCommandError");
|
|
1367
|
+
var de_GetSecurityConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1368
|
+
if (output.statusCode >= 300) {
|
|
1369
|
+
return de_GetSecurityConfigCommandError(output, context);
|
|
1370
|
+
}
|
|
1371
|
+
const data = await parseBody(output.body, context);
|
|
1372
|
+
let contents = {};
|
|
1373
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1374
|
+
const response = {
|
|
1375
|
+
$metadata: deserializeMetadata(output),
|
|
1376
|
+
...contents
|
|
1377
|
+
};
|
|
1378
|
+
return response;
|
|
1379
|
+
}, "de_GetSecurityConfigCommand");
|
|
1380
|
+
var de_GetSecurityConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
|
+
const parsedOutput = {
|
|
1382
|
+
...output,
|
|
1383
|
+
body: await parseErrorBody(output.body, context)
|
|
1384
|
+
};
|
|
1385
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
+
switch (errorCode) {
|
|
1387
|
+
case "InternalServerException":
|
|
1388
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1389
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1390
|
+
case "ResourceNotFoundException":
|
|
1391
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1392
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1393
|
+
case "ValidationException":
|
|
1394
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1395
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1396
|
+
default:
|
|
1397
|
+
const parsedBody = parsedOutput.body;
|
|
1398
|
+
return throwDefaultError({
|
|
1399
|
+
output,
|
|
1400
|
+
parsedBody,
|
|
1401
|
+
errorCode
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
}, "de_GetSecurityConfigCommandError");
|
|
1405
|
+
var de_GetSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1406
|
+
if (output.statusCode >= 300) {
|
|
1407
|
+
return de_GetSecurityPolicyCommandError(output, context);
|
|
1408
|
+
}
|
|
1409
|
+
const data = await parseBody(output.body, context);
|
|
1410
|
+
let contents = {};
|
|
1411
|
+
contents = de_GetSecurityPolicyResponse(data, context);
|
|
1412
|
+
const response = {
|
|
1413
|
+
$metadata: deserializeMetadata(output),
|
|
1414
|
+
...contents
|
|
1415
|
+
};
|
|
1416
|
+
return response;
|
|
1417
|
+
}, "de_GetSecurityPolicyCommand");
|
|
1418
|
+
var de_GetSecurityPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1419
|
+
const parsedOutput = {
|
|
1420
|
+
...output,
|
|
1421
|
+
body: await parseErrorBody(output.body, context)
|
|
1422
|
+
};
|
|
1423
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
+
switch (errorCode) {
|
|
1425
|
+
case "InternalServerException":
|
|
1426
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1427
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1428
|
+
case "ResourceNotFoundException":
|
|
1429
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1430
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1431
|
+
case "ValidationException":
|
|
1432
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1433
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1434
|
+
default:
|
|
1435
|
+
const parsedBody = parsedOutput.body;
|
|
1436
|
+
return throwDefaultError({
|
|
1437
|
+
output,
|
|
1438
|
+
parsedBody,
|
|
1439
|
+
errorCode
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
}, "de_GetSecurityPolicyCommandError");
|
|
1443
|
+
var de_ListAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1444
|
+
if (output.statusCode >= 300) {
|
|
1445
|
+
return de_ListAccessPoliciesCommandError(output, context);
|
|
1446
|
+
}
|
|
1447
|
+
const data = await parseBody(output.body, context);
|
|
1448
|
+
let contents = {};
|
|
1449
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1450
|
+
const response = {
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
...contents
|
|
1453
|
+
};
|
|
1454
|
+
return response;
|
|
1455
|
+
}, "de_ListAccessPoliciesCommand");
|
|
1456
|
+
var de_ListAccessPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1457
|
+
const parsedOutput = {
|
|
1458
|
+
...output,
|
|
1459
|
+
body: await parseErrorBody(output.body, context)
|
|
1460
|
+
};
|
|
1461
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
|
+
switch (errorCode) {
|
|
1463
|
+
case "InternalServerException":
|
|
1464
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1465
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1466
|
+
case "ValidationException":
|
|
1467
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1468
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1469
|
+
default:
|
|
1470
|
+
const parsedBody = parsedOutput.body;
|
|
1471
|
+
return throwDefaultError({
|
|
1472
|
+
output,
|
|
1473
|
+
parsedBody,
|
|
1474
|
+
errorCode
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
}, "de_ListAccessPoliciesCommandError");
|
|
1478
|
+
var de_ListCollectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1479
|
+
if (output.statusCode >= 300) {
|
|
1480
|
+
return de_ListCollectionsCommandError(output, context);
|
|
1481
|
+
}
|
|
1482
|
+
const data = await parseBody(output.body, context);
|
|
1483
|
+
let contents = {};
|
|
1484
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1485
|
+
const response = {
|
|
1486
|
+
$metadata: deserializeMetadata(output),
|
|
1487
|
+
...contents
|
|
1488
|
+
};
|
|
1489
|
+
return response;
|
|
1490
|
+
}, "de_ListCollectionsCommand");
|
|
1491
|
+
var de_ListCollectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1492
|
+
const parsedOutput = {
|
|
1493
|
+
...output,
|
|
1494
|
+
body: await parseErrorBody(output.body, context)
|
|
1495
|
+
};
|
|
1496
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
|
+
switch (errorCode) {
|
|
1498
|
+
case "InternalServerException":
|
|
1499
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1500
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1501
|
+
case "ValidationException":
|
|
1502
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1503
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1504
|
+
default:
|
|
1505
|
+
const parsedBody = parsedOutput.body;
|
|
1506
|
+
return throwDefaultError({
|
|
1507
|
+
output,
|
|
1508
|
+
parsedBody,
|
|
1509
|
+
errorCode
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
}, "de_ListCollectionsCommandError");
|
|
1513
|
+
var de_ListLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
|
+
if (output.statusCode >= 300) {
|
|
1515
|
+
return de_ListLifecyclePoliciesCommandError(output, context);
|
|
1516
|
+
}
|
|
1517
|
+
const data = await parseBody(output.body, context);
|
|
1518
|
+
let contents = {};
|
|
1519
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1520
|
+
const response = {
|
|
1521
|
+
$metadata: deserializeMetadata(output),
|
|
1522
|
+
...contents
|
|
1523
|
+
};
|
|
1524
|
+
return response;
|
|
1525
|
+
}, "de_ListLifecyclePoliciesCommand");
|
|
1526
|
+
var de_ListLifecyclePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1527
|
+
const parsedOutput = {
|
|
1528
|
+
...output,
|
|
1529
|
+
body: await parseErrorBody(output.body, context)
|
|
1530
|
+
};
|
|
1531
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
|
+
switch (errorCode) {
|
|
1533
|
+
case "InternalServerException":
|
|
1534
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1535
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1536
|
+
case "ValidationException":
|
|
1537
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1538
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1539
|
+
default:
|
|
1540
|
+
const parsedBody = parsedOutput.body;
|
|
1541
|
+
return throwDefaultError({
|
|
1542
|
+
output,
|
|
1543
|
+
parsedBody,
|
|
1544
|
+
errorCode
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
}, "de_ListLifecyclePoliciesCommandError");
|
|
1548
|
+
var de_ListSecurityConfigsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1549
|
+
if (output.statusCode >= 300) {
|
|
1550
|
+
return de_ListSecurityConfigsCommandError(output, context);
|
|
1551
|
+
}
|
|
1552
|
+
const data = await parseBody(output.body, context);
|
|
1553
|
+
let contents = {};
|
|
1554
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1555
|
+
const response = {
|
|
1556
|
+
$metadata: deserializeMetadata(output),
|
|
1557
|
+
...contents
|
|
1558
|
+
};
|
|
1559
|
+
return response;
|
|
1560
|
+
}, "de_ListSecurityConfigsCommand");
|
|
1561
|
+
var de_ListSecurityConfigsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
|
+
const parsedOutput = {
|
|
1563
|
+
...output,
|
|
1564
|
+
body: await parseErrorBody(output.body, context)
|
|
1565
|
+
};
|
|
1566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
|
+
switch (errorCode) {
|
|
1568
|
+
case "InternalServerException":
|
|
1569
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1570
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1571
|
+
case "ValidationException":
|
|
1572
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1573
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1574
|
+
default:
|
|
1575
|
+
const parsedBody = parsedOutput.body;
|
|
1576
|
+
return throwDefaultError({
|
|
1577
|
+
output,
|
|
1578
|
+
parsedBody,
|
|
1579
|
+
errorCode
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
}, "de_ListSecurityConfigsCommandError");
|
|
1583
|
+
var de_ListSecurityPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1584
|
+
if (output.statusCode >= 300) {
|
|
1585
|
+
return de_ListSecurityPoliciesCommandError(output, context);
|
|
1586
|
+
}
|
|
1587
|
+
const data = await parseBody(output.body, context);
|
|
1588
|
+
let contents = {};
|
|
1589
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1590
|
+
const response = {
|
|
1591
|
+
$metadata: deserializeMetadata(output),
|
|
1592
|
+
...contents
|
|
1593
|
+
};
|
|
1594
|
+
return response;
|
|
1595
|
+
}, "de_ListSecurityPoliciesCommand");
|
|
1596
|
+
var de_ListSecurityPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1597
|
+
const parsedOutput = {
|
|
1598
|
+
...output,
|
|
1599
|
+
body: await parseErrorBody(output.body, context)
|
|
1600
|
+
};
|
|
1601
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
|
+
switch (errorCode) {
|
|
1603
|
+
case "InternalServerException":
|
|
1604
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1605
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1606
|
+
case "ValidationException":
|
|
1607
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1608
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1609
|
+
default:
|
|
1610
|
+
const parsedBody = parsedOutput.body;
|
|
1611
|
+
return throwDefaultError({
|
|
1612
|
+
output,
|
|
1613
|
+
parsedBody,
|
|
1614
|
+
errorCode
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
}, "de_ListSecurityPoliciesCommandError");
|
|
1618
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1619
|
+
if (output.statusCode >= 300) {
|
|
1620
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1621
|
+
}
|
|
1622
|
+
const data = await parseBody(output.body, context);
|
|
1623
|
+
let contents = {};
|
|
1624
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1625
|
+
const response = {
|
|
1626
|
+
$metadata: deserializeMetadata(output),
|
|
1627
|
+
...contents
|
|
1628
|
+
};
|
|
1629
|
+
return response;
|
|
1630
|
+
}, "de_ListTagsForResourceCommand");
|
|
1631
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1632
|
+
const parsedOutput = {
|
|
1633
|
+
...output,
|
|
1634
|
+
body: await parseErrorBody(output.body, context)
|
|
1635
|
+
};
|
|
1636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1637
|
+
switch (errorCode) {
|
|
1638
|
+
case "InternalServerException":
|
|
1639
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1640
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1641
|
+
case "ResourceNotFoundException":
|
|
1642
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1643
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1644
|
+
case "ValidationException":
|
|
1645
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1646
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1647
|
+
default:
|
|
1648
|
+
const parsedBody = parsedOutput.body;
|
|
1649
|
+
return throwDefaultError({
|
|
1650
|
+
output,
|
|
1651
|
+
parsedBody,
|
|
1652
|
+
errorCode
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1656
|
+
var de_ListVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1657
|
+
if (output.statusCode >= 300) {
|
|
1658
|
+
return de_ListVpcEndpointsCommandError(output, context);
|
|
1659
|
+
}
|
|
1660
|
+
const data = await parseBody(output.body, context);
|
|
1661
|
+
let contents = {};
|
|
1662
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1663
|
+
const response = {
|
|
1664
|
+
$metadata: deserializeMetadata(output),
|
|
1665
|
+
...contents
|
|
1666
|
+
};
|
|
1667
|
+
return response;
|
|
1668
|
+
}, "de_ListVpcEndpointsCommand");
|
|
1669
|
+
var de_ListVpcEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1670
|
+
const parsedOutput = {
|
|
1671
|
+
...output,
|
|
1672
|
+
body: await parseErrorBody(output.body, context)
|
|
1673
|
+
};
|
|
1674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
+
switch (errorCode) {
|
|
1676
|
+
case "InternalServerException":
|
|
1677
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1678
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1679
|
+
case "ValidationException":
|
|
1680
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1681
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1682
|
+
default:
|
|
1683
|
+
const parsedBody = parsedOutput.body;
|
|
1684
|
+
return throwDefaultError({
|
|
1685
|
+
output,
|
|
1686
|
+
parsedBody,
|
|
1687
|
+
errorCode
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
}, "de_ListVpcEndpointsCommandError");
|
|
1691
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1692
|
+
if (output.statusCode >= 300) {
|
|
1693
|
+
return de_TagResourceCommandError(output, context);
|
|
1694
|
+
}
|
|
1695
|
+
const data = await parseBody(output.body, context);
|
|
1696
|
+
let contents = {};
|
|
1697
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1698
|
+
const response = {
|
|
1699
|
+
$metadata: deserializeMetadata(output),
|
|
1700
|
+
...contents
|
|
1701
|
+
};
|
|
1702
|
+
return response;
|
|
1703
|
+
}, "de_TagResourceCommand");
|
|
1704
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1705
|
+
const parsedOutput = {
|
|
1706
|
+
...output,
|
|
1707
|
+
body: await parseErrorBody(output.body, context)
|
|
1708
|
+
};
|
|
1709
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
+
switch (errorCode) {
|
|
1711
|
+
case "ConflictException":
|
|
1712
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1713
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1714
|
+
case "InternalServerException":
|
|
1715
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1716
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1717
|
+
case "ResourceNotFoundException":
|
|
1718
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1719
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1720
|
+
case "ServiceQuotaExceededException":
|
|
1721
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1722
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1723
|
+
case "ValidationException":
|
|
1724
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1725
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1726
|
+
default:
|
|
1727
|
+
const parsedBody = parsedOutput.body;
|
|
1728
|
+
return throwDefaultError({
|
|
1729
|
+
output,
|
|
1730
|
+
parsedBody,
|
|
1731
|
+
errorCode
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
}, "de_TagResourceCommandError");
|
|
1735
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1736
|
+
if (output.statusCode >= 300) {
|
|
1737
|
+
return de_UntagResourceCommandError(output, context);
|
|
1738
|
+
}
|
|
1739
|
+
const data = await parseBody(output.body, context);
|
|
1740
|
+
let contents = {};
|
|
1741
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1742
|
+
const response = {
|
|
1743
|
+
$metadata: deserializeMetadata(output),
|
|
1744
|
+
...contents
|
|
1745
|
+
};
|
|
1746
|
+
return response;
|
|
1747
|
+
}, "de_UntagResourceCommand");
|
|
1748
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1749
|
+
const parsedOutput = {
|
|
1750
|
+
...output,
|
|
1751
|
+
body: await parseErrorBody(output.body, context)
|
|
1752
|
+
};
|
|
1753
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
|
+
switch (errorCode) {
|
|
1755
|
+
case "ConflictException":
|
|
1756
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1757
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1758
|
+
case "InternalServerException":
|
|
1759
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1760
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1761
|
+
case "ResourceNotFoundException":
|
|
1762
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1763
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1764
|
+
case "ValidationException":
|
|
1765
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1766
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1767
|
+
default:
|
|
1768
|
+
const parsedBody = parsedOutput.body;
|
|
1769
|
+
return throwDefaultError({
|
|
1770
|
+
output,
|
|
1771
|
+
parsedBody,
|
|
1772
|
+
errorCode
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
}, "de_UntagResourceCommandError");
|
|
1776
|
+
var de_UpdateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1777
|
+
if (output.statusCode >= 300) {
|
|
1778
|
+
return de_UpdateAccessPolicyCommandError(output, context);
|
|
1779
|
+
}
|
|
1780
|
+
const data = await parseBody(output.body, context);
|
|
1781
|
+
let contents = {};
|
|
1782
|
+
contents = de_UpdateAccessPolicyResponse(data, context);
|
|
1783
|
+
const response = {
|
|
1784
|
+
$metadata: deserializeMetadata(output),
|
|
1785
|
+
...contents
|
|
1786
|
+
};
|
|
1787
|
+
return response;
|
|
1788
|
+
}, "de_UpdateAccessPolicyCommand");
|
|
1789
|
+
var de_UpdateAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1790
|
+
const parsedOutput = {
|
|
1791
|
+
...output,
|
|
1792
|
+
body: await parseErrorBody(output.body, context)
|
|
1793
|
+
};
|
|
1794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
+
switch (errorCode) {
|
|
1796
|
+
case "ConflictException":
|
|
1797
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1798
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1799
|
+
case "InternalServerException":
|
|
1800
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1801
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1802
|
+
case "ResourceNotFoundException":
|
|
1803
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1804
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1805
|
+
case "ValidationException":
|
|
1806
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1807
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1808
|
+
default:
|
|
1809
|
+
const parsedBody = parsedOutput.body;
|
|
1810
|
+
return throwDefaultError({
|
|
1811
|
+
output,
|
|
1812
|
+
parsedBody,
|
|
1813
|
+
errorCode
|
|
1814
|
+
});
|
|
1815
|
+
}
|
|
1816
|
+
}, "de_UpdateAccessPolicyCommandError");
|
|
1817
|
+
var de_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1818
|
+
if (output.statusCode >= 300) {
|
|
1819
|
+
return de_UpdateAccountSettingsCommandError(output, context);
|
|
1820
|
+
}
|
|
1821
|
+
const data = await parseBody(output.body, context);
|
|
1822
|
+
let contents = {};
|
|
1823
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1824
|
+
const response = {
|
|
1825
|
+
$metadata: deserializeMetadata(output),
|
|
1826
|
+
...contents
|
|
1827
|
+
};
|
|
1828
|
+
return response;
|
|
1829
|
+
}, "de_UpdateAccountSettingsCommand");
|
|
1830
|
+
var de_UpdateAccountSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1831
|
+
const parsedOutput = {
|
|
1832
|
+
...output,
|
|
1833
|
+
body: await parseErrorBody(output.body, context)
|
|
1834
|
+
};
|
|
1835
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1836
|
+
switch (errorCode) {
|
|
1837
|
+
case "InternalServerException":
|
|
1838
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1839
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1840
|
+
case "ValidationException":
|
|
1841
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1842
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1843
|
+
default:
|
|
1844
|
+
const parsedBody = parsedOutput.body;
|
|
1845
|
+
return throwDefaultError({
|
|
1846
|
+
output,
|
|
1847
|
+
parsedBody,
|
|
1848
|
+
errorCode
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
}, "de_UpdateAccountSettingsCommandError");
|
|
1852
|
+
var de_UpdateCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
|
+
if (output.statusCode >= 300) {
|
|
1854
|
+
return de_UpdateCollectionCommandError(output, context);
|
|
1855
|
+
}
|
|
1856
|
+
const data = await parseBody(output.body, context);
|
|
1857
|
+
let contents = {};
|
|
1858
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1859
|
+
const response = {
|
|
1860
|
+
$metadata: deserializeMetadata(output),
|
|
1861
|
+
...contents
|
|
1862
|
+
};
|
|
1863
|
+
return response;
|
|
1864
|
+
}, "de_UpdateCollectionCommand");
|
|
1865
|
+
var de_UpdateCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
+
const parsedOutput = {
|
|
1867
|
+
...output,
|
|
1868
|
+
body: await parseErrorBody(output.body, context)
|
|
1869
|
+
};
|
|
1870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
+
switch (errorCode) {
|
|
1872
|
+
case "ConflictException":
|
|
1873
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1874
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1875
|
+
case "InternalServerException":
|
|
1876
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1877
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1878
|
+
case "ValidationException":
|
|
1879
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1880
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1881
|
+
default:
|
|
1882
|
+
const parsedBody = parsedOutput.body;
|
|
1883
|
+
return throwDefaultError({
|
|
1884
|
+
output,
|
|
1885
|
+
parsedBody,
|
|
1886
|
+
errorCode
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
}, "de_UpdateCollectionCommandError");
|
|
1890
|
+
var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
|
+
if (output.statusCode >= 300) {
|
|
1892
|
+
return de_UpdateLifecyclePolicyCommandError(output, context);
|
|
1893
|
+
}
|
|
1894
|
+
const data = await parseBody(output.body, context);
|
|
1895
|
+
let contents = {};
|
|
1896
|
+
contents = de_UpdateLifecyclePolicyResponse(data, context);
|
|
1897
|
+
const response = {
|
|
1898
|
+
$metadata: deserializeMetadata(output),
|
|
1899
|
+
...contents
|
|
1900
|
+
};
|
|
1901
|
+
return response;
|
|
1902
|
+
}, "de_UpdateLifecyclePolicyCommand");
|
|
1903
|
+
var de_UpdateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1904
|
+
const parsedOutput = {
|
|
1905
|
+
...output,
|
|
1906
|
+
body: await parseErrorBody(output.body, context)
|
|
1907
|
+
};
|
|
1908
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1909
|
+
switch (errorCode) {
|
|
1910
|
+
case "ConflictException":
|
|
1911
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1912
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1913
|
+
case "InternalServerException":
|
|
1914
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1915
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1916
|
+
case "ResourceNotFoundException":
|
|
1917
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1918
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1919
|
+
case "ServiceQuotaExceededException":
|
|
1920
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1921
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1922
|
+
case "ValidationException":
|
|
1923
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1924
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1925
|
+
default:
|
|
1926
|
+
const parsedBody = parsedOutput.body;
|
|
1927
|
+
return throwDefaultError({
|
|
1928
|
+
output,
|
|
1929
|
+
parsedBody,
|
|
1930
|
+
errorCode
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
}, "de_UpdateLifecyclePolicyCommandError");
|
|
1934
|
+
var de_UpdateSecurityConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1935
|
+
if (output.statusCode >= 300) {
|
|
1936
|
+
return de_UpdateSecurityConfigCommandError(output, context);
|
|
1937
|
+
}
|
|
1938
|
+
const data = await parseBody(output.body, context);
|
|
1939
|
+
let contents = {};
|
|
1940
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1941
|
+
const response = {
|
|
1942
|
+
$metadata: deserializeMetadata(output),
|
|
1943
|
+
...contents
|
|
1944
|
+
};
|
|
1945
|
+
return response;
|
|
1946
|
+
}, "de_UpdateSecurityConfigCommand");
|
|
1947
|
+
var de_UpdateSecurityConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1948
|
+
const parsedOutput = {
|
|
1949
|
+
...output,
|
|
1950
|
+
body: await parseErrorBody(output.body, context)
|
|
1951
|
+
};
|
|
1952
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
+
switch (errorCode) {
|
|
1954
|
+
case "ConflictException":
|
|
1955
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1956
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1957
|
+
case "InternalServerException":
|
|
1958
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1959
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1960
|
+
case "ResourceNotFoundException":
|
|
1961
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1962
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1963
|
+
case "ValidationException":
|
|
1964
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1965
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1966
|
+
default:
|
|
1967
|
+
const parsedBody = parsedOutput.body;
|
|
1968
|
+
return throwDefaultError({
|
|
1969
|
+
output,
|
|
1970
|
+
parsedBody,
|
|
1971
|
+
errorCode
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
}, "de_UpdateSecurityConfigCommandError");
|
|
1975
|
+
var de_UpdateSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1976
|
+
if (output.statusCode >= 300) {
|
|
1977
|
+
return de_UpdateSecurityPolicyCommandError(output, context);
|
|
1978
|
+
}
|
|
1979
|
+
const data = await parseBody(output.body, context);
|
|
1980
|
+
let contents = {};
|
|
1981
|
+
contents = de_UpdateSecurityPolicyResponse(data, context);
|
|
1982
|
+
const response = {
|
|
1983
|
+
$metadata: deserializeMetadata(output),
|
|
1984
|
+
...contents
|
|
1985
|
+
};
|
|
1986
|
+
return response;
|
|
1987
|
+
}, "de_UpdateSecurityPolicyCommand");
|
|
1988
|
+
var de_UpdateSecurityPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1989
|
+
const parsedOutput = {
|
|
1990
|
+
...output,
|
|
1991
|
+
body: await parseErrorBody(output.body, context)
|
|
1992
|
+
};
|
|
1993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
+
switch (errorCode) {
|
|
1995
|
+
case "ConflictException":
|
|
1996
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1997
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1998
|
+
case "InternalServerException":
|
|
1999
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
2000
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2001
|
+
case "ResourceNotFoundException":
|
|
2002
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
2003
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2004
|
+
case "ServiceQuotaExceededException":
|
|
2005
|
+
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
2006
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2007
|
+
case "ValidationException":
|
|
2008
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
2009
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2010
|
+
default:
|
|
2011
|
+
const parsedBody = parsedOutput.body;
|
|
2012
|
+
return throwDefaultError({
|
|
2013
|
+
output,
|
|
2014
|
+
parsedBody,
|
|
2015
|
+
errorCode
|
|
2016
|
+
});
|
|
2017
|
+
}
|
|
2018
|
+
}, "de_UpdateSecurityPolicyCommandError");
|
|
2019
|
+
var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2020
|
+
if (output.statusCode >= 300) {
|
|
2021
|
+
return de_UpdateVpcEndpointCommandError(output, context);
|
|
2022
|
+
}
|
|
2023
|
+
const data = await parseBody(output.body, context);
|
|
2024
|
+
let contents = {};
|
|
2025
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2026
|
+
const response = {
|
|
2027
|
+
$metadata: deserializeMetadata(output),
|
|
2028
|
+
...contents
|
|
2029
|
+
};
|
|
2030
|
+
return response;
|
|
2031
|
+
}, "de_UpdateVpcEndpointCommand");
|
|
2032
|
+
var de_UpdateVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2033
|
+
const parsedOutput = {
|
|
2034
|
+
...output,
|
|
2035
|
+
body: await parseErrorBody(output.body, context)
|
|
2036
|
+
};
|
|
2037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
+
switch (errorCode) {
|
|
2039
|
+
case "ConflictException":
|
|
2040
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
2041
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2042
|
+
case "InternalServerException":
|
|
2043
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
2044
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2045
|
+
case "ValidationException":
|
|
2046
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
2047
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2048
|
+
default:
|
|
2049
|
+
const parsedBody = parsedOutput.body;
|
|
2050
|
+
return throwDefaultError({
|
|
2051
|
+
output,
|
|
2052
|
+
parsedBody,
|
|
2053
|
+
errorCode
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
}, "de_UpdateVpcEndpointCommandError");
|
|
2057
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2058
|
+
const body = parsedOutput.body;
|
|
2059
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
2060
|
+
const exception = new ConflictException({
|
|
2061
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2062
|
+
...deserialized
|
|
2063
|
+
});
|
|
2064
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2065
|
+
}, "de_ConflictExceptionRes");
|
|
2066
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2067
|
+
const body = parsedOutput.body;
|
|
2068
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
2069
|
+
const exception = new InternalServerException({
|
|
2070
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2071
|
+
...deserialized
|
|
2072
|
+
});
|
|
2073
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2074
|
+
}, "de_InternalServerExceptionRes");
|
|
2075
|
+
var de_OcuLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2076
|
+
const body = parsedOutput.body;
|
|
2077
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
2078
|
+
const exception = new OcuLimitExceededException({
|
|
2079
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2080
|
+
...deserialized
|
|
2081
|
+
});
|
|
2082
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2083
|
+
}, "de_OcuLimitExceededExceptionRes");
|
|
2084
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2085
|
+
const body = parsedOutput.body;
|
|
2086
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
2087
|
+
const exception = new ResourceNotFoundException({
|
|
2088
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2089
|
+
...deserialized
|
|
2090
|
+
});
|
|
2091
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2092
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
2093
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2094
|
+
const body = parsedOutput.body;
|
|
2095
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
2096
|
+
const exception = new ServiceQuotaExceededException({
|
|
2097
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2098
|
+
...deserialized
|
|
2099
|
+
});
|
|
2100
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2101
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
2102
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2103
|
+
const body = parsedOutput.body;
|
|
2104
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
2105
|
+
const exception = new ValidationException({
|
|
2106
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2107
|
+
...deserialized
|
|
2108
|
+
});
|
|
2109
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2110
|
+
}, "de_ValidationExceptionRes");
|
|
2111
|
+
var se_CreateAccessPolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2112
|
+
return (0, import_smithy_client.take)(input, {
|
|
2113
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2114
|
+
description: [],
|
|
2115
|
+
name: [],
|
|
2116
|
+
policy: [],
|
|
2117
|
+
type: []
|
|
2118
|
+
});
|
|
2119
|
+
}, "se_CreateAccessPolicyRequest");
|
|
2120
|
+
var se_CreateCollectionRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2121
|
+
return (0, import_smithy_client.take)(input, {
|
|
2122
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2123
|
+
description: [],
|
|
2124
|
+
name: [],
|
|
2125
|
+
standbyReplicas: [],
|
|
2126
|
+
tags: import_smithy_client._json,
|
|
2127
|
+
type: []
|
|
2128
|
+
});
|
|
2129
|
+
}, "se_CreateCollectionRequest");
|
|
2130
|
+
var se_CreateLifecyclePolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2131
|
+
return (0, import_smithy_client.take)(input, {
|
|
2132
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2133
|
+
description: [],
|
|
2134
|
+
name: [],
|
|
2135
|
+
policy: [],
|
|
2136
|
+
type: []
|
|
2137
|
+
});
|
|
2138
|
+
}, "se_CreateLifecyclePolicyRequest");
|
|
2139
|
+
var se_CreateSecurityConfigRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2140
|
+
return (0, import_smithy_client.take)(input, {
|
|
2141
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2142
|
+
description: [],
|
|
2143
|
+
name: [],
|
|
2144
|
+
samlOptions: import_smithy_client._json,
|
|
2145
|
+
type: []
|
|
2146
|
+
});
|
|
2147
|
+
}, "se_CreateSecurityConfigRequest");
|
|
2148
|
+
var se_CreateSecurityPolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2149
|
+
return (0, import_smithy_client.take)(input, {
|
|
2150
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2151
|
+
description: [],
|
|
2152
|
+
name: [],
|
|
2153
|
+
policy: [],
|
|
2154
|
+
type: []
|
|
2155
|
+
});
|
|
2156
|
+
}, "se_CreateSecurityPolicyRequest");
|
|
2157
|
+
var se_CreateVpcEndpointRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2158
|
+
return (0, import_smithy_client.take)(input, {
|
|
2159
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2160
|
+
name: [],
|
|
2161
|
+
securityGroupIds: import_smithy_client._json,
|
|
2162
|
+
subnetIds: import_smithy_client._json,
|
|
2163
|
+
vpcId: []
|
|
2164
|
+
});
|
|
2165
|
+
}, "se_CreateVpcEndpointRequest");
|
|
2166
|
+
var se_DeleteAccessPolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2167
|
+
return (0, import_smithy_client.take)(input, {
|
|
2168
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2169
|
+
name: [],
|
|
2170
|
+
type: []
|
|
2171
|
+
});
|
|
2172
|
+
}, "se_DeleteAccessPolicyRequest");
|
|
2173
|
+
var se_DeleteCollectionRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2174
|
+
return (0, import_smithy_client.take)(input, {
|
|
2175
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2176
|
+
id: []
|
|
2177
|
+
});
|
|
2178
|
+
}, "se_DeleteCollectionRequest");
|
|
2179
|
+
var se_DeleteLifecyclePolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2180
|
+
return (0, import_smithy_client.take)(input, {
|
|
2181
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2182
|
+
name: [],
|
|
2183
|
+
type: []
|
|
2184
|
+
});
|
|
2185
|
+
}, "se_DeleteLifecyclePolicyRequest");
|
|
2186
|
+
var se_DeleteSecurityConfigRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2187
|
+
return (0, import_smithy_client.take)(input, {
|
|
2188
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2189
|
+
id: []
|
|
2190
|
+
});
|
|
2191
|
+
}, "se_DeleteSecurityConfigRequest");
|
|
2192
|
+
var se_DeleteSecurityPolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2193
|
+
return (0, import_smithy_client.take)(input, {
|
|
2194
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2195
|
+
name: [],
|
|
2196
|
+
type: []
|
|
2197
|
+
});
|
|
2198
|
+
}, "se_DeleteSecurityPolicyRequest");
|
|
2199
|
+
var se_DeleteVpcEndpointRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2200
|
+
return (0, import_smithy_client.take)(input, {
|
|
2201
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2202
|
+
id: []
|
|
2203
|
+
});
|
|
2204
|
+
}, "se_DeleteVpcEndpointRequest");
|
|
2205
|
+
var se_UpdateAccessPolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2206
|
+
return (0, import_smithy_client.take)(input, {
|
|
2207
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2208
|
+
description: [],
|
|
2209
|
+
name: [],
|
|
2210
|
+
policy: [],
|
|
2211
|
+
policyVersion: [],
|
|
2212
|
+
type: []
|
|
2213
|
+
});
|
|
2214
|
+
}, "se_UpdateAccessPolicyRequest");
|
|
2215
|
+
var se_UpdateCollectionRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2216
|
+
return (0, import_smithy_client.take)(input, {
|
|
2217
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2218
|
+
description: [],
|
|
2219
|
+
id: []
|
|
2220
|
+
});
|
|
2221
|
+
}, "se_UpdateCollectionRequest");
|
|
2222
|
+
var se_UpdateLifecyclePolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2223
|
+
return (0, import_smithy_client.take)(input, {
|
|
2224
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2225
|
+
description: [],
|
|
2226
|
+
name: [],
|
|
2227
|
+
policy: [],
|
|
2228
|
+
policyVersion: [],
|
|
2229
|
+
type: []
|
|
2230
|
+
});
|
|
2231
|
+
}, "se_UpdateLifecyclePolicyRequest");
|
|
2232
|
+
var se_UpdateSecurityConfigRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2233
|
+
return (0, import_smithy_client.take)(input, {
|
|
2234
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2235
|
+
configVersion: [],
|
|
2236
|
+
description: [],
|
|
2237
|
+
id: [],
|
|
2238
|
+
samlOptions: import_smithy_client._json
|
|
2239
|
+
});
|
|
2240
|
+
}, "se_UpdateSecurityConfigRequest");
|
|
2241
|
+
var se_UpdateSecurityPolicyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2242
|
+
return (0, import_smithy_client.take)(input, {
|
|
2243
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2244
|
+
description: [],
|
|
2245
|
+
name: [],
|
|
2246
|
+
policy: [],
|
|
2247
|
+
policyVersion: [],
|
|
2248
|
+
type: []
|
|
2249
|
+
});
|
|
2250
|
+
}, "se_UpdateSecurityPolicyRequest");
|
|
2251
|
+
var se_UpdateVpcEndpointRequest = /* @__PURE__ */ __name((input, context) => {
|
|
2252
|
+
return (0, import_smithy_client.take)(input, {
|
|
2253
|
+
addSecurityGroupIds: import_smithy_client._json,
|
|
2254
|
+
addSubnetIds: import_smithy_client._json,
|
|
2255
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2256
|
+
id: [],
|
|
2257
|
+
removeSecurityGroupIds: import_smithy_client._json,
|
|
2258
|
+
removeSubnetIds: import_smithy_client._json
|
|
2259
|
+
});
|
|
2260
|
+
}, "se_UpdateVpcEndpointRequest");
|
|
2261
|
+
var de_AccessPolicyDetail = /* @__PURE__ */ __name((output, context) => {
|
|
2262
|
+
return (0, import_smithy_client.take)(output, {
|
|
2263
|
+
createdDate: import_smithy_client.expectLong,
|
|
2264
|
+
description: import_smithy_client.expectString,
|
|
2265
|
+
lastModifiedDate: import_smithy_client.expectLong,
|
|
2266
|
+
name: import_smithy_client.expectString,
|
|
2267
|
+
policy: (_) => de_Document(_, context),
|
|
2268
|
+
policyVersion: import_smithy_client.expectString,
|
|
2269
|
+
type: import_smithy_client.expectString
|
|
2270
|
+
});
|
|
2271
|
+
}, "de_AccessPolicyDetail");
|
|
2272
|
+
var de_BatchGetLifecyclePolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2273
|
+
return (0, import_smithy_client.take)(output, {
|
|
2274
|
+
lifecyclePolicyDetails: (_) => de_LifecyclePolicyDetails(_, context),
|
|
2275
|
+
lifecyclePolicyErrorDetails: import_smithy_client._json
|
|
2276
|
+
});
|
|
2277
|
+
}, "de_BatchGetLifecyclePolicyResponse");
|
|
2278
|
+
var de_CreateAccessPolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2279
|
+
return (0, import_smithy_client.take)(output, {
|
|
2280
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context)
|
|
2281
|
+
});
|
|
2282
|
+
}, "de_CreateAccessPolicyResponse");
|
|
2283
|
+
var de_CreateLifecyclePolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2284
|
+
return (0, import_smithy_client.take)(output, {
|
|
2285
|
+
lifecyclePolicyDetail: (_) => de_LifecyclePolicyDetail(_, context)
|
|
2286
|
+
});
|
|
2287
|
+
}, "de_CreateLifecyclePolicyResponse");
|
|
2288
|
+
var de_CreateSecurityPolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2289
|
+
return (0, import_smithy_client.take)(output, {
|
|
2290
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context)
|
|
2291
|
+
});
|
|
2292
|
+
}, "de_CreateSecurityPolicyResponse");
|
|
2293
|
+
var de_GetAccessPolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2294
|
+
return (0, import_smithy_client.take)(output, {
|
|
2295
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context)
|
|
2296
|
+
});
|
|
2297
|
+
}, "de_GetAccessPolicyResponse");
|
|
2298
|
+
var de_GetSecurityPolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2299
|
+
return (0, import_smithy_client.take)(output, {
|
|
2300
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context)
|
|
2301
|
+
});
|
|
2302
|
+
}, "de_GetSecurityPolicyResponse");
|
|
2303
|
+
var de_LifecyclePolicyDetail = /* @__PURE__ */ __name((output, context) => {
|
|
2304
|
+
return (0, import_smithy_client.take)(output, {
|
|
2305
|
+
createdDate: import_smithy_client.expectLong,
|
|
2306
|
+
description: import_smithy_client.expectString,
|
|
2307
|
+
lastModifiedDate: import_smithy_client.expectLong,
|
|
2308
|
+
name: import_smithy_client.expectString,
|
|
2309
|
+
policy: (_) => de_Document(_, context),
|
|
2310
|
+
policyVersion: import_smithy_client.expectString,
|
|
2311
|
+
type: import_smithy_client.expectString
|
|
2312
|
+
});
|
|
2313
|
+
}, "de_LifecyclePolicyDetail");
|
|
2314
|
+
var de_LifecyclePolicyDetails = /* @__PURE__ */ __name((output, context) => {
|
|
2315
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2316
|
+
return de_LifecyclePolicyDetail(entry, context);
|
|
2317
|
+
});
|
|
2318
|
+
return retVal;
|
|
2319
|
+
}, "de_LifecyclePolicyDetails");
|
|
2320
|
+
var de_SecurityPolicyDetail = /* @__PURE__ */ __name((output, context) => {
|
|
2321
|
+
return (0, import_smithy_client.take)(output, {
|
|
2322
|
+
createdDate: import_smithy_client.expectLong,
|
|
2323
|
+
description: import_smithy_client.expectString,
|
|
2324
|
+
lastModifiedDate: import_smithy_client.expectLong,
|
|
2325
|
+
name: import_smithy_client.expectString,
|
|
2326
|
+
policy: (_) => de_Document(_, context),
|
|
2327
|
+
policyVersion: import_smithy_client.expectString,
|
|
2328
|
+
type: import_smithy_client.expectString
|
|
2329
|
+
});
|
|
2330
|
+
}, "de_SecurityPolicyDetail");
|
|
2331
|
+
var de_UpdateAccessPolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2332
|
+
return (0, import_smithy_client.take)(output, {
|
|
2333
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context)
|
|
2334
|
+
});
|
|
2335
|
+
}, "de_UpdateAccessPolicyResponse");
|
|
2336
|
+
var de_UpdateLifecyclePolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2337
|
+
return (0, import_smithy_client.take)(output, {
|
|
2338
|
+
lifecyclePolicyDetail: (_) => de_LifecyclePolicyDetail(_, context)
|
|
2339
|
+
});
|
|
2340
|
+
}, "de_UpdateLifecyclePolicyResponse");
|
|
2341
|
+
var de_UpdateSecurityPolicyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2342
|
+
return (0, import_smithy_client.take)(output, {
|
|
2343
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context)
|
|
2344
|
+
});
|
|
2345
|
+
}, "de_UpdateSecurityPolicyResponse");
|
|
2346
|
+
var de_Document = /* @__PURE__ */ __name((output, context) => {
|
|
2347
|
+
return output;
|
|
2348
|
+
}, "de_Document");
|
|
2349
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
2350
|
+
httpStatusCode: output.statusCode,
|
|
2351
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2352
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2353
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
2354
|
+
}), "deserializeMetadata");
|
|
2355
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2356
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(OpenSearchServerlessServiceException);
|
|
2357
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2358
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2359
|
+
const contents = {
|
|
2360
|
+
protocol,
|
|
2361
|
+
hostname,
|
|
2362
|
+
port,
|
|
2363
|
+
method: "POST",
|
|
2364
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2365
|
+
headers
|
|
2366
|
+
};
|
|
2367
|
+
if (resolvedHostname !== void 0) {
|
|
2368
|
+
contents.hostname = resolvedHostname;
|
|
2369
|
+
}
|
|
2370
|
+
if (body !== void 0) {
|
|
2371
|
+
contents.body = body;
|
|
2372
|
+
}
|
|
2373
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
2374
|
+
}, "buildHttpRpcRequest");
|
|
2375
|
+
function sharedHeaders(operation) {
|
|
2376
|
+
return {
|
|
2377
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2378
|
+
"x-amz-target": `OpenSearchServerless.${operation}`
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
2382
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2383
|
+
if (encoded.length) {
|
|
2384
|
+
return JSON.parse(encoded);
|
|
2385
|
+
}
|
|
2386
|
+
return {};
|
|
2387
|
+
}), "parseBody");
|
|
2388
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2389
|
+
const value = await parseBody(errorBody, context);
|
|
2390
|
+
value.message = value.message ?? value.Message;
|
|
2391
|
+
return value;
|
|
2392
|
+
}, "parseErrorBody");
|
|
2393
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2394
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2395
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2396
|
+
let cleanValue = rawValue;
|
|
2397
|
+
if (typeof cleanValue === "number") {
|
|
2398
|
+
cleanValue = cleanValue.toString();
|
|
2399
|
+
}
|
|
2400
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2401
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2402
|
+
}
|
|
2403
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2404
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2405
|
+
}
|
|
2406
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2407
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2408
|
+
}
|
|
2409
|
+
return cleanValue;
|
|
2410
|
+
}, "sanitizeErrorCode");
|
|
2411
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2412
|
+
if (headerKey !== void 0) {
|
|
2413
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2414
|
+
}
|
|
2415
|
+
if (data.code !== void 0) {
|
|
2416
|
+
return sanitizeErrorCode(data.code);
|
|
2417
|
+
}
|
|
2418
|
+
if (data["__type"] !== void 0) {
|
|
2419
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2420
|
+
}
|
|
2421
|
+
}, "loadRestJsonErrorCode");
|
|
2422
|
+
|
|
2423
|
+
// src/commands/BatchGetCollectionCommand.ts
|
|
2424
|
+
var _BatchGetCollectionCommand = class _BatchGetCollectionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2425
|
+
...commonParams
|
|
2426
|
+
}).m(function(Command, cs, config, o) {
|
|
2427
|
+
return [
|
|
2428
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2429
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2430
|
+
];
|
|
2431
|
+
}).s("OpenSearchServerless", "BatchGetCollection", {}).n("OpenSearchServerlessClient", "BatchGetCollectionCommand").f(void 0, void 0).ser(se_BatchGetCollectionCommand).de(de_BatchGetCollectionCommand).build() {
|
|
2432
|
+
};
|
|
2433
|
+
__name(_BatchGetCollectionCommand, "BatchGetCollectionCommand");
|
|
2434
|
+
var BatchGetCollectionCommand = _BatchGetCollectionCommand;
|
|
2435
|
+
|
|
2436
|
+
// src/commands/BatchGetEffectiveLifecyclePolicyCommand.ts
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
|
|
2441
|
+
var _BatchGetEffectiveLifecyclePolicyCommand = class _BatchGetEffectiveLifecyclePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2442
|
+
...commonParams
|
|
2443
|
+
}).m(function(Command, cs, config, o) {
|
|
2444
|
+
return [
|
|
2445
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2446
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2447
|
+
];
|
|
2448
|
+
}).s("OpenSearchServerless", "BatchGetEffectiveLifecyclePolicy", {}).n("OpenSearchServerlessClient", "BatchGetEffectiveLifecyclePolicyCommand").f(void 0, void 0).ser(se_BatchGetEffectiveLifecyclePolicyCommand).de(de_BatchGetEffectiveLifecyclePolicyCommand).build() {
|
|
2449
|
+
};
|
|
2450
|
+
__name(_BatchGetEffectiveLifecyclePolicyCommand, "BatchGetEffectiveLifecyclePolicyCommand");
|
|
2451
|
+
var BatchGetEffectiveLifecyclePolicyCommand = _BatchGetEffectiveLifecyclePolicyCommand;
|
|
2452
|
+
|
|
2453
|
+
// src/commands/BatchGetLifecyclePolicyCommand.ts
|
|
2454
|
+
|
|
2455
|
+
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
var _BatchGetLifecyclePolicyCommand = class _BatchGetLifecyclePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2459
|
+
...commonParams
|
|
2460
|
+
}).m(function(Command, cs, config, o) {
|
|
2461
|
+
return [
|
|
2462
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2463
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2464
|
+
];
|
|
2465
|
+
}).s("OpenSearchServerless", "BatchGetLifecyclePolicy", {}).n("OpenSearchServerlessClient", "BatchGetLifecyclePolicyCommand").f(void 0, void 0).ser(se_BatchGetLifecyclePolicyCommand).de(de_BatchGetLifecyclePolicyCommand).build() {
|
|
2466
|
+
};
|
|
2467
|
+
__name(_BatchGetLifecyclePolicyCommand, "BatchGetLifecyclePolicyCommand");
|
|
2468
|
+
var BatchGetLifecyclePolicyCommand = _BatchGetLifecyclePolicyCommand;
|
|
2469
|
+
|
|
2470
|
+
// src/commands/BatchGetVpcEndpointCommand.ts
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
|
|
2474
|
+
|
|
2475
|
+
var _BatchGetVpcEndpointCommand = class _BatchGetVpcEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2476
|
+
...commonParams
|
|
2477
|
+
}).m(function(Command, cs, config, o) {
|
|
2478
|
+
return [
|
|
2479
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2480
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2481
|
+
];
|
|
2482
|
+
}).s("OpenSearchServerless", "BatchGetVpcEndpoint", {}).n("OpenSearchServerlessClient", "BatchGetVpcEndpointCommand").f(void 0, void 0).ser(se_BatchGetVpcEndpointCommand).de(de_BatchGetVpcEndpointCommand).build() {
|
|
2483
|
+
};
|
|
2484
|
+
__name(_BatchGetVpcEndpointCommand, "BatchGetVpcEndpointCommand");
|
|
2485
|
+
var BatchGetVpcEndpointCommand = _BatchGetVpcEndpointCommand;
|
|
2486
|
+
|
|
2487
|
+
// src/commands/CreateAccessPolicyCommand.ts
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
|
|
2491
|
+
|
|
2492
|
+
var _CreateAccessPolicyCommand = class _CreateAccessPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2493
|
+
...commonParams
|
|
2494
|
+
}).m(function(Command, cs, config, o) {
|
|
2495
|
+
return [
|
|
2496
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2497
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2498
|
+
];
|
|
2499
|
+
}).s("OpenSearchServerless", "CreateAccessPolicy", {}).n("OpenSearchServerlessClient", "CreateAccessPolicyCommand").f(void 0, void 0).ser(se_CreateAccessPolicyCommand).de(de_CreateAccessPolicyCommand).build() {
|
|
2500
|
+
};
|
|
2501
|
+
__name(_CreateAccessPolicyCommand, "CreateAccessPolicyCommand");
|
|
2502
|
+
var CreateAccessPolicyCommand = _CreateAccessPolicyCommand;
|
|
2503
|
+
|
|
2504
|
+
// src/commands/CreateCollectionCommand.ts
|
|
2505
|
+
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
var _CreateCollectionCommand = class _CreateCollectionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2510
|
+
...commonParams
|
|
2511
|
+
}).m(function(Command, cs, config, o) {
|
|
2512
|
+
return [
|
|
2513
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2514
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2515
|
+
];
|
|
2516
|
+
}).s("OpenSearchServerless", "CreateCollection", {}).n("OpenSearchServerlessClient", "CreateCollectionCommand").f(void 0, void 0).ser(se_CreateCollectionCommand).de(de_CreateCollectionCommand).build() {
|
|
2517
|
+
};
|
|
2518
|
+
__name(_CreateCollectionCommand, "CreateCollectionCommand");
|
|
2519
|
+
var CreateCollectionCommand = _CreateCollectionCommand;
|
|
2520
|
+
|
|
2521
|
+
// src/commands/CreateLifecyclePolicyCommand.ts
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
var _CreateLifecyclePolicyCommand = class _CreateLifecyclePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2527
|
+
...commonParams
|
|
2528
|
+
}).m(function(Command, cs, config, o) {
|
|
2529
|
+
return [
|
|
2530
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2531
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2532
|
+
];
|
|
2533
|
+
}).s("OpenSearchServerless", "CreateLifecyclePolicy", {}).n("OpenSearchServerlessClient", "CreateLifecyclePolicyCommand").f(void 0, void 0).ser(se_CreateLifecyclePolicyCommand).de(de_CreateLifecyclePolicyCommand).build() {
|
|
2534
|
+
};
|
|
2535
|
+
__name(_CreateLifecyclePolicyCommand, "CreateLifecyclePolicyCommand");
|
|
2536
|
+
var CreateLifecyclePolicyCommand = _CreateLifecyclePolicyCommand;
|
|
2537
|
+
|
|
2538
|
+
// src/commands/CreateSecurityConfigCommand.ts
|
|
2539
|
+
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
var _CreateSecurityConfigCommand = class _CreateSecurityConfigCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2544
|
+
...commonParams
|
|
2545
|
+
}).m(function(Command, cs, config, o) {
|
|
2546
|
+
return [
|
|
2547
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2548
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2549
|
+
];
|
|
2550
|
+
}).s("OpenSearchServerless", "CreateSecurityConfig", {}).n("OpenSearchServerlessClient", "CreateSecurityConfigCommand").f(void 0, void 0).ser(se_CreateSecurityConfigCommand).de(de_CreateSecurityConfigCommand).build() {
|
|
2551
|
+
};
|
|
2552
|
+
__name(_CreateSecurityConfigCommand, "CreateSecurityConfigCommand");
|
|
2553
|
+
var CreateSecurityConfigCommand = _CreateSecurityConfigCommand;
|
|
2554
|
+
|
|
2555
|
+
// src/commands/CreateSecurityPolicyCommand.ts
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
var _CreateSecurityPolicyCommand = class _CreateSecurityPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2561
|
+
...commonParams
|
|
2562
|
+
}).m(function(Command, cs, config, o) {
|
|
2563
|
+
return [
|
|
2564
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2565
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2566
|
+
];
|
|
2567
|
+
}).s("OpenSearchServerless", "CreateSecurityPolicy", {}).n("OpenSearchServerlessClient", "CreateSecurityPolicyCommand").f(void 0, void 0).ser(se_CreateSecurityPolicyCommand).de(de_CreateSecurityPolicyCommand).build() {
|
|
2568
|
+
};
|
|
2569
|
+
__name(_CreateSecurityPolicyCommand, "CreateSecurityPolicyCommand");
|
|
2570
|
+
var CreateSecurityPolicyCommand = _CreateSecurityPolicyCommand;
|
|
2571
|
+
|
|
2572
|
+
// src/commands/CreateVpcEndpointCommand.ts
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
|
|
2576
|
+
|
|
2577
|
+
var _CreateVpcEndpointCommand = class _CreateVpcEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2578
|
+
...commonParams
|
|
2579
|
+
}).m(function(Command, cs, config, o) {
|
|
2580
|
+
return [
|
|
2581
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2582
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2583
|
+
];
|
|
2584
|
+
}).s("OpenSearchServerless", "CreateVpcEndpoint", {}).n("OpenSearchServerlessClient", "CreateVpcEndpointCommand").f(void 0, void 0).ser(se_CreateVpcEndpointCommand).de(de_CreateVpcEndpointCommand).build() {
|
|
2585
|
+
};
|
|
2586
|
+
__name(_CreateVpcEndpointCommand, "CreateVpcEndpointCommand");
|
|
2587
|
+
var CreateVpcEndpointCommand = _CreateVpcEndpointCommand;
|
|
2588
|
+
|
|
2589
|
+
// src/commands/DeleteAccessPolicyCommand.ts
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
var _DeleteAccessPolicyCommand = class _DeleteAccessPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2595
|
+
...commonParams
|
|
2596
|
+
}).m(function(Command, cs, config, o) {
|
|
2597
|
+
return [
|
|
2598
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2599
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2600
|
+
];
|
|
2601
|
+
}).s("OpenSearchServerless", "DeleteAccessPolicy", {}).n("OpenSearchServerlessClient", "DeleteAccessPolicyCommand").f(void 0, void 0).ser(se_DeleteAccessPolicyCommand).de(de_DeleteAccessPolicyCommand).build() {
|
|
2602
|
+
};
|
|
2603
|
+
__name(_DeleteAccessPolicyCommand, "DeleteAccessPolicyCommand");
|
|
2604
|
+
var DeleteAccessPolicyCommand = _DeleteAccessPolicyCommand;
|
|
2605
|
+
|
|
2606
|
+
// src/commands/DeleteCollectionCommand.ts
|
|
2607
|
+
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
|
|
2611
|
+
var _DeleteCollectionCommand = class _DeleteCollectionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2612
|
+
...commonParams
|
|
2613
|
+
}).m(function(Command, cs, config, o) {
|
|
2614
|
+
return [
|
|
2615
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2616
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2617
|
+
];
|
|
2618
|
+
}).s("OpenSearchServerless", "DeleteCollection", {}).n("OpenSearchServerlessClient", "DeleteCollectionCommand").f(void 0, void 0).ser(se_DeleteCollectionCommand).de(de_DeleteCollectionCommand).build() {
|
|
2619
|
+
};
|
|
2620
|
+
__name(_DeleteCollectionCommand, "DeleteCollectionCommand");
|
|
2621
|
+
var DeleteCollectionCommand = _DeleteCollectionCommand;
|
|
2622
|
+
|
|
2623
|
+
// src/commands/DeleteLifecyclePolicyCommand.ts
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
|
|
2627
|
+
|
|
2628
|
+
var _DeleteLifecyclePolicyCommand = class _DeleteLifecyclePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2629
|
+
...commonParams
|
|
2630
|
+
}).m(function(Command, cs, config, o) {
|
|
2631
|
+
return [
|
|
2632
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2633
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2634
|
+
];
|
|
2635
|
+
}).s("OpenSearchServerless", "DeleteLifecyclePolicy", {}).n("OpenSearchServerlessClient", "DeleteLifecyclePolicyCommand").f(void 0, void 0).ser(se_DeleteLifecyclePolicyCommand).de(de_DeleteLifecyclePolicyCommand).build() {
|
|
2636
|
+
};
|
|
2637
|
+
__name(_DeleteLifecyclePolicyCommand, "DeleteLifecyclePolicyCommand");
|
|
2638
|
+
var DeleteLifecyclePolicyCommand = _DeleteLifecyclePolicyCommand;
|
|
2639
|
+
|
|
2640
|
+
// src/commands/DeleteSecurityConfigCommand.ts
|
|
2641
|
+
|
|
2642
|
+
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
var _DeleteSecurityConfigCommand = class _DeleteSecurityConfigCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2646
|
+
...commonParams
|
|
2647
|
+
}).m(function(Command, cs, config, o) {
|
|
2648
|
+
return [
|
|
2649
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2650
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2651
|
+
];
|
|
2652
|
+
}).s("OpenSearchServerless", "DeleteSecurityConfig", {}).n("OpenSearchServerlessClient", "DeleteSecurityConfigCommand").f(void 0, void 0).ser(se_DeleteSecurityConfigCommand).de(de_DeleteSecurityConfigCommand).build() {
|
|
2653
|
+
};
|
|
2654
|
+
__name(_DeleteSecurityConfigCommand, "DeleteSecurityConfigCommand");
|
|
2655
|
+
var DeleteSecurityConfigCommand = _DeleteSecurityConfigCommand;
|
|
2656
|
+
|
|
2657
|
+
// src/commands/DeleteSecurityPolicyCommand.ts
|
|
2658
|
+
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
|
|
2662
|
+
var _DeleteSecurityPolicyCommand = class _DeleteSecurityPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2663
|
+
...commonParams
|
|
2664
|
+
}).m(function(Command, cs, config, o) {
|
|
2665
|
+
return [
|
|
2666
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2667
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2668
|
+
];
|
|
2669
|
+
}).s("OpenSearchServerless", "DeleteSecurityPolicy", {}).n("OpenSearchServerlessClient", "DeleteSecurityPolicyCommand").f(void 0, void 0).ser(se_DeleteSecurityPolicyCommand).de(de_DeleteSecurityPolicyCommand).build() {
|
|
2670
|
+
};
|
|
2671
|
+
__name(_DeleteSecurityPolicyCommand, "DeleteSecurityPolicyCommand");
|
|
2672
|
+
var DeleteSecurityPolicyCommand = _DeleteSecurityPolicyCommand;
|
|
2673
|
+
|
|
2674
|
+
// src/commands/DeleteVpcEndpointCommand.ts
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
var _DeleteVpcEndpointCommand = class _DeleteVpcEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2680
|
+
...commonParams
|
|
2681
|
+
}).m(function(Command, cs, config, o) {
|
|
2682
|
+
return [
|
|
2683
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2684
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2685
|
+
];
|
|
2686
|
+
}).s("OpenSearchServerless", "DeleteVpcEndpoint", {}).n("OpenSearchServerlessClient", "DeleteVpcEndpointCommand").f(void 0, void 0).ser(se_DeleteVpcEndpointCommand).de(de_DeleteVpcEndpointCommand).build() {
|
|
2687
|
+
};
|
|
2688
|
+
__name(_DeleteVpcEndpointCommand, "DeleteVpcEndpointCommand");
|
|
2689
|
+
var DeleteVpcEndpointCommand = _DeleteVpcEndpointCommand;
|
|
2690
|
+
|
|
2691
|
+
// src/commands/GetAccessPolicyCommand.ts
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
|
|
2695
|
+
|
|
2696
|
+
var _GetAccessPolicyCommand = class _GetAccessPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2697
|
+
...commonParams
|
|
2698
|
+
}).m(function(Command, cs, config, o) {
|
|
2699
|
+
return [
|
|
2700
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2701
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2702
|
+
];
|
|
2703
|
+
}).s("OpenSearchServerless", "GetAccessPolicy", {}).n("OpenSearchServerlessClient", "GetAccessPolicyCommand").f(void 0, void 0).ser(se_GetAccessPolicyCommand).de(de_GetAccessPolicyCommand).build() {
|
|
2704
|
+
};
|
|
2705
|
+
__name(_GetAccessPolicyCommand, "GetAccessPolicyCommand");
|
|
2706
|
+
var GetAccessPolicyCommand = _GetAccessPolicyCommand;
|
|
2707
|
+
|
|
2708
|
+
// src/commands/GetAccountSettingsCommand.ts
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
|
|
2713
|
+
var _GetAccountSettingsCommand = class _GetAccountSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2714
|
+
...commonParams
|
|
2715
|
+
}).m(function(Command, cs, config, o) {
|
|
2716
|
+
return [
|
|
2717
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2718
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2719
|
+
];
|
|
2720
|
+
}).s("OpenSearchServerless", "GetAccountSettings", {}).n("OpenSearchServerlessClient", "GetAccountSettingsCommand").f(void 0, void 0).ser(se_GetAccountSettingsCommand).de(de_GetAccountSettingsCommand).build() {
|
|
2721
|
+
};
|
|
2722
|
+
__name(_GetAccountSettingsCommand, "GetAccountSettingsCommand");
|
|
2723
|
+
var GetAccountSettingsCommand = _GetAccountSettingsCommand;
|
|
2724
|
+
|
|
2725
|
+
// src/commands/GetPoliciesStatsCommand.ts
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
var _GetPoliciesStatsCommand = class _GetPoliciesStatsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2731
|
+
...commonParams
|
|
2732
|
+
}).m(function(Command, cs, config, o) {
|
|
2733
|
+
return [
|
|
2734
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2735
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2736
|
+
];
|
|
2737
|
+
}).s("OpenSearchServerless", "GetPoliciesStats", {}).n("OpenSearchServerlessClient", "GetPoliciesStatsCommand").f(void 0, void 0).ser(se_GetPoliciesStatsCommand).de(de_GetPoliciesStatsCommand).build() {
|
|
2738
|
+
};
|
|
2739
|
+
__name(_GetPoliciesStatsCommand, "GetPoliciesStatsCommand");
|
|
2740
|
+
var GetPoliciesStatsCommand = _GetPoliciesStatsCommand;
|
|
2741
|
+
|
|
2742
|
+
// src/commands/GetSecurityConfigCommand.ts
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
|
|
2746
|
+
|
|
2747
|
+
var _GetSecurityConfigCommand = class _GetSecurityConfigCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2748
|
+
...commonParams
|
|
2749
|
+
}).m(function(Command, cs, config, o) {
|
|
2750
|
+
return [
|
|
2751
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2752
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2753
|
+
];
|
|
2754
|
+
}).s("OpenSearchServerless", "GetSecurityConfig", {}).n("OpenSearchServerlessClient", "GetSecurityConfigCommand").f(void 0, void 0).ser(se_GetSecurityConfigCommand).de(de_GetSecurityConfigCommand).build() {
|
|
2755
|
+
};
|
|
2756
|
+
__name(_GetSecurityConfigCommand, "GetSecurityConfigCommand");
|
|
2757
|
+
var GetSecurityConfigCommand = _GetSecurityConfigCommand;
|
|
2758
|
+
|
|
2759
|
+
// src/commands/GetSecurityPolicyCommand.ts
|
|
2760
|
+
|
|
2761
|
+
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
var _GetSecurityPolicyCommand = class _GetSecurityPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2765
|
+
...commonParams
|
|
2766
|
+
}).m(function(Command, cs, config, o) {
|
|
2767
|
+
return [
|
|
2768
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2769
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2770
|
+
];
|
|
2771
|
+
}).s("OpenSearchServerless", "GetSecurityPolicy", {}).n("OpenSearchServerlessClient", "GetSecurityPolicyCommand").f(void 0, void 0).ser(se_GetSecurityPolicyCommand).de(de_GetSecurityPolicyCommand).build() {
|
|
2772
|
+
};
|
|
2773
|
+
__name(_GetSecurityPolicyCommand, "GetSecurityPolicyCommand");
|
|
2774
|
+
var GetSecurityPolicyCommand = _GetSecurityPolicyCommand;
|
|
2775
|
+
|
|
2776
|
+
// src/commands/ListAccessPoliciesCommand.ts
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
var _ListAccessPoliciesCommand = class _ListAccessPoliciesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2782
|
+
...commonParams
|
|
2783
|
+
}).m(function(Command, cs, config, o) {
|
|
2784
|
+
return [
|
|
2785
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2786
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2787
|
+
];
|
|
2788
|
+
}).s("OpenSearchServerless", "ListAccessPolicies", {}).n("OpenSearchServerlessClient", "ListAccessPoliciesCommand").f(void 0, void 0).ser(se_ListAccessPoliciesCommand).de(de_ListAccessPoliciesCommand).build() {
|
|
2789
|
+
};
|
|
2790
|
+
__name(_ListAccessPoliciesCommand, "ListAccessPoliciesCommand");
|
|
2791
|
+
var ListAccessPoliciesCommand = _ListAccessPoliciesCommand;
|
|
2792
|
+
|
|
2793
|
+
// src/commands/ListCollectionsCommand.ts
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
|
|
2798
|
+
var _ListCollectionsCommand = class _ListCollectionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2799
|
+
...commonParams
|
|
2800
|
+
}).m(function(Command, cs, config, o) {
|
|
2801
|
+
return [
|
|
2802
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2803
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2804
|
+
];
|
|
2805
|
+
}).s("OpenSearchServerless", "ListCollections", {}).n("OpenSearchServerlessClient", "ListCollectionsCommand").f(void 0, void 0).ser(se_ListCollectionsCommand).de(de_ListCollectionsCommand).build() {
|
|
2806
|
+
};
|
|
2807
|
+
__name(_ListCollectionsCommand, "ListCollectionsCommand");
|
|
2808
|
+
var ListCollectionsCommand = _ListCollectionsCommand;
|
|
2809
|
+
|
|
2810
|
+
// src/commands/ListLifecyclePoliciesCommand.ts
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
|
|
2815
|
+
var _ListLifecyclePoliciesCommand = class _ListLifecyclePoliciesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2816
|
+
...commonParams
|
|
2817
|
+
}).m(function(Command, cs, config, o) {
|
|
2818
|
+
return [
|
|
2819
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2820
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2821
|
+
];
|
|
2822
|
+
}).s("OpenSearchServerless", "ListLifecyclePolicies", {}).n("OpenSearchServerlessClient", "ListLifecyclePoliciesCommand").f(void 0, void 0).ser(se_ListLifecyclePoliciesCommand).de(de_ListLifecyclePoliciesCommand).build() {
|
|
2823
|
+
};
|
|
2824
|
+
__name(_ListLifecyclePoliciesCommand, "ListLifecyclePoliciesCommand");
|
|
2825
|
+
var ListLifecyclePoliciesCommand = _ListLifecyclePoliciesCommand;
|
|
2826
|
+
|
|
2827
|
+
// src/commands/ListSecurityConfigsCommand.ts
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
|
|
2832
|
+
var _ListSecurityConfigsCommand = class _ListSecurityConfigsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2833
|
+
...commonParams
|
|
2834
|
+
}).m(function(Command, cs, config, o) {
|
|
2835
|
+
return [
|
|
2836
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2837
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2838
|
+
];
|
|
2839
|
+
}).s("OpenSearchServerless", "ListSecurityConfigs", {}).n("OpenSearchServerlessClient", "ListSecurityConfigsCommand").f(void 0, void 0).ser(se_ListSecurityConfigsCommand).de(de_ListSecurityConfigsCommand).build() {
|
|
2840
|
+
};
|
|
2841
|
+
__name(_ListSecurityConfigsCommand, "ListSecurityConfigsCommand");
|
|
2842
|
+
var ListSecurityConfigsCommand = _ListSecurityConfigsCommand;
|
|
2843
|
+
|
|
2844
|
+
// src/commands/ListSecurityPoliciesCommand.ts
|
|
2845
|
+
|
|
2846
|
+
|
|
2847
|
+
|
|
2848
|
+
|
|
2849
|
+
var _ListSecurityPoliciesCommand = class _ListSecurityPoliciesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2850
|
+
...commonParams
|
|
2851
|
+
}).m(function(Command, cs, config, o) {
|
|
2852
|
+
return [
|
|
2853
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2854
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2855
|
+
];
|
|
2856
|
+
}).s("OpenSearchServerless", "ListSecurityPolicies", {}).n("OpenSearchServerlessClient", "ListSecurityPoliciesCommand").f(void 0, void 0).ser(se_ListSecurityPoliciesCommand).de(de_ListSecurityPoliciesCommand).build() {
|
|
2857
|
+
};
|
|
2858
|
+
__name(_ListSecurityPoliciesCommand, "ListSecurityPoliciesCommand");
|
|
2859
|
+
var ListSecurityPoliciesCommand = _ListSecurityPoliciesCommand;
|
|
2860
|
+
|
|
2861
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2862
|
+
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
|
|
2866
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2867
|
+
...commonParams
|
|
2868
|
+
}).m(function(Command, cs, config, o) {
|
|
2869
|
+
return [
|
|
2870
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2871
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2872
|
+
];
|
|
2873
|
+
}).s("OpenSearchServerless", "ListTagsForResource", {}).n("OpenSearchServerlessClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2874
|
+
};
|
|
2875
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2876
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2877
|
+
|
|
2878
|
+
// src/commands/ListVpcEndpointsCommand.ts
|
|
2879
|
+
|
|
2880
|
+
|
|
2881
|
+
|
|
2882
|
+
|
|
2883
|
+
var _ListVpcEndpointsCommand = class _ListVpcEndpointsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2884
|
+
...commonParams
|
|
2885
|
+
}).m(function(Command, cs, config, o) {
|
|
2886
|
+
return [
|
|
2887
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2888
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2889
|
+
];
|
|
2890
|
+
}).s("OpenSearchServerless", "ListVpcEndpoints", {}).n("OpenSearchServerlessClient", "ListVpcEndpointsCommand").f(void 0, void 0).ser(se_ListVpcEndpointsCommand).de(de_ListVpcEndpointsCommand).build() {
|
|
2891
|
+
};
|
|
2892
|
+
__name(_ListVpcEndpointsCommand, "ListVpcEndpointsCommand");
|
|
2893
|
+
var ListVpcEndpointsCommand = _ListVpcEndpointsCommand;
|
|
2894
|
+
|
|
2895
|
+
// src/commands/TagResourceCommand.ts
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2901
|
+
...commonParams
|
|
2902
|
+
}).m(function(Command, cs, config, o) {
|
|
2903
|
+
return [
|
|
2904
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2905
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2906
|
+
];
|
|
2907
|
+
}).s("OpenSearchServerless", "TagResource", {}).n("OpenSearchServerlessClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2908
|
+
};
|
|
2909
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2910
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2911
|
+
|
|
2912
|
+
// src/commands/UntagResourceCommand.ts
|
|
2913
|
+
|
|
2914
|
+
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2918
|
+
...commonParams
|
|
2919
|
+
}).m(function(Command, cs, config, o) {
|
|
2920
|
+
return [
|
|
2921
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2922
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2923
|
+
];
|
|
2924
|
+
}).s("OpenSearchServerless", "UntagResource", {}).n("OpenSearchServerlessClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2925
|
+
};
|
|
2926
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2927
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2928
|
+
|
|
2929
|
+
// src/commands/UpdateAccessPolicyCommand.ts
|
|
2930
|
+
|
|
2931
|
+
|
|
2932
|
+
|
|
2933
|
+
|
|
2934
|
+
var _UpdateAccessPolicyCommand = class _UpdateAccessPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2935
|
+
...commonParams
|
|
2936
|
+
}).m(function(Command, cs, config, o) {
|
|
2937
|
+
return [
|
|
2938
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2939
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2940
|
+
];
|
|
2941
|
+
}).s("OpenSearchServerless", "UpdateAccessPolicy", {}).n("OpenSearchServerlessClient", "UpdateAccessPolicyCommand").f(void 0, void 0).ser(se_UpdateAccessPolicyCommand).de(de_UpdateAccessPolicyCommand).build() {
|
|
2942
|
+
};
|
|
2943
|
+
__name(_UpdateAccessPolicyCommand, "UpdateAccessPolicyCommand");
|
|
2944
|
+
var UpdateAccessPolicyCommand = _UpdateAccessPolicyCommand;
|
|
2945
|
+
|
|
2946
|
+
// src/commands/UpdateAccountSettingsCommand.ts
|
|
2947
|
+
|
|
2948
|
+
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
var _UpdateAccountSettingsCommand = class _UpdateAccountSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2952
|
+
...commonParams
|
|
2953
|
+
}).m(function(Command, cs, config, o) {
|
|
2954
|
+
return [
|
|
2955
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2956
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2957
|
+
];
|
|
2958
|
+
}).s("OpenSearchServerless", "UpdateAccountSettings", {}).n("OpenSearchServerlessClient", "UpdateAccountSettingsCommand").f(void 0, void 0).ser(se_UpdateAccountSettingsCommand).de(de_UpdateAccountSettingsCommand).build() {
|
|
2959
|
+
};
|
|
2960
|
+
__name(_UpdateAccountSettingsCommand, "UpdateAccountSettingsCommand");
|
|
2961
|
+
var UpdateAccountSettingsCommand = _UpdateAccountSettingsCommand;
|
|
2962
|
+
|
|
2963
|
+
// src/commands/UpdateCollectionCommand.ts
|
|
2964
|
+
|
|
2965
|
+
|
|
2966
|
+
|
|
2967
|
+
|
|
2968
|
+
var _UpdateCollectionCommand = class _UpdateCollectionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2969
|
+
...commonParams
|
|
2970
|
+
}).m(function(Command, cs, config, o) {
|
|
2971
|
+
return [
|
|
2972
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2973
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2974
|
+
];
|
|
2975
|
+
}).s("OpenSearchServerless", "UpdateCollection", {}).n("OpenSearchServerlessClient", "UpdateCollectionCommand").f(void 0, void 0).ser(se_UpdateCollectionCommand).de(de_UpdateCollectionCommand).build() {
|
|
2976
|
+
};
|
|
2977
|
+
__name(_UpdateCollectionCommand, "UpdateCollectionCommand");
|
|
2978
|
+
var UpdateCollectionCommand = _UpdateCollectionCommand;
|
|
2979
|
+
|
|
2980
|
+
// src/commands/UpdateLifecyclePolicyCommand.ts
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
var _UpdateLifecyclePolicyCommand = class _UpdateLifecyclePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2986
|
+
...commonParams
|
|
2987
|
+
}).m(function(Command, cs, config, o) {
|
|
2988
|
+
return [
|
|
2989
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2990
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2991
|
+
];
|
|
2992
|
+
}).s("OpenSearchServerless", "UpdateLifecyclePolicy", {}).n("OpenSearchServerlessClient", "UpdateLifecyclePolicyCommand").f(void 0, void 0).ser(se_UpdateLifecyclePolicyCommand).de(de_UpdateLifecyclePolicyCommand).build() {
|
|
2993
|
+
};
|
|
2994
|
+
__name(_UpdateLifecyclePolicyCommand, "UpdateLifecyclePolicyCommand");
|
|
2995
|
+
var UpdateLifecyclePolicyCommand = _UpdateLifecyclePolicyCommand;
|
|
2996
|
+
|
|
2997
|
+
// src/commands/UpdateSecurityConfigCommand.ts
|
|
2998
|
+
|
|
2999
|
+
|
|
3000
|
+
|
|
3001
|
+
|
|
3002
|
+
var _UpdateSecurityConfigCommand = class _UpdateSecurityConfigCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3003
|
+
...commonParams
|
|
3004
|
+
}).m(function(Command, cs, config, o) {
|
|
3005
|
+
return [
|
|
3006
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3007
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3008
|
+
];
|
|
3009
|
+
}).s("OpenSearchServerless", "UpdateSecurityConfig", {}).n("OpenSearchServerlessClient", "UpdateSecurityConfigCommand").f(void 0, void 0).ser(se_UpdateSecurityConfigCommand).de(de_UpdateSecurityConfigCommand).build() {
|
|
3010
|
+
};
|
|
3011
|
+
__name(_UpdateSecurityConfigCommand, "UpdateSecurityConfigCommand");
|
|
3012
|
+
var UpdateSecurityConfigCommand = _UpdateSecurityConfigCommand;
|
|
3013
|
+
|
|
3014
|
+
// src/commands/UpdateSecurityPolicyCommand.ts
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
var _UpdateSecurityPolicyCommand = class _UpdateSecurityPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3020
|
+
...commonParams
|
|
3021
|
+
}).m(function(Command, cs, config, o) {
|
|
3022
|
+
return [
|
|
3023
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3024
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3025
|
+
];
|
|
3026
|
+
}).s("OpenSearchServerless", "UpdateSecurityPolicy", {}).n("OpenSearchServerlessClient", "UpdateSecurityPolicyCommand").f(void 0, void 0).ser(se_UpdateSecurityPolicyCommand).de(de_UpdateSecurityPolicyCommand).build() {
|
|
3027
|
+
};
|
|
3028
|
+
__name(_UpdateSecurityPolicyCommand, "UpdateSecurityPolicyCommand");
|
|
3029
|
+
var UpdateSecurityPolicyCommand = _UpdateSecurityPolicyCommand;
|
|
3030
|
+
|
|
3031
|
+
// src/commands/UpdateVpcEndpointCommand.ts
|
|
3032
|
+
|
|
3033
|
+
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
var _UpdateVpcEndpointCommand = class _UpdateVpcEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3037
|
+
...commonParams
|
|
3038
|
+
}).m(function(Command, cs, config, o) {
|
|
3039
|
+
return [
|
|
3040
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3041
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3042
|
+
];
|
|
3043
|
+
}).s("OpenSearchServerless", "UpdateVpcEndpoint", {}).n("OpenSearchServerlessClient", "UpdateVpcEndpointCommand").f(void 0, void 0).ser(se_UpdateVpcEndpointCommand).de(de_UpdateVpcEndpointCommand).build() {
|
|
3044
|
+
};
|
|
3045
|
+
__name(_UpdateVpcEndpointCommand, "UpdateVpcEndpointCommand");
|
|
3046
|
+
var UpdateVpcEndpointCommand = _UpdateVpcEndpointCommand;
|
|
3047
|
+
|
|
3048
|
+
// src/OpenSearchServerless.ts
|
|
3049
|
+
var commands = {
|
|
3050
|
+
BatchGetCollectionCommand,
|
|
3051
|
+
BatchGetEffectiveLifecyclePolicyCommand,
|
|
3052
|
+
BatchGetLifecyclePolicyCommand,
|
|
3053
|
+
BatchGetVpcEndpointCommand,
|
|
3054
|
+
CreateAccessPolicyCommand,
|
|
3055
|
+
CreateCollectionCommand,
|
|
3056
|
+
CreateLifecyclePolicyCommand,
|
|
3057
|
+
CreateSecurityConfigCommand,
|
|
3058
|
+
CreateSecurityPolicyCommand,
|
|
3059
|
+
CreateVpcEndpointCommand,
|
|
3060
|
+
DeleteAccessPolicyCommand,
|
|
3061
|
+
DeleteCollectionCommand,
|
|
3062
|
+
DeleteLifecyclePolicyCommand,
|
|
3063
|
+
DeleteSecurityConfigCommand,
|
|
3064
|
+
DeleteSecurityPolicyCommand,
|
|
3065
|
+
DeleteVpcEndpointCommand,
|
|
3066
|
+
GetAccessPolicyCommand,
|
|
3067
|
+
GetAccountSettingsCommand,
|
|
3068
|
+
GetPoliciesStatsCommand,
|
|
3069
|
+
GetSecurityConfigCommand,
|
|
3070
|
+
GetSecurityPolicyCommand,
|
|
3071
|
+
ListAccessPoliciesCommand,
|
|
3072
|
+
ListCollectionsCommand,
|
|
3073
|
+
ListLifecyclePoliciesCommand,
|
|
3074
|
+
ListSecurityConfigsCommand,
|
|
3075
|
+
ListSecurityPoliciesCommand,
|
|
3076
|
+
ListTagsForResourceCommand,
|
|
3077
|
+
ListVpcEndpointsCommand,
|
|
3078
|
+
TagResourceCommand,
|
|
3079
|
+
UntagResourceCommand,
|
|
3080
|
+
UpdateAccessPolicyCommand,
|
|
3081
|
+
UpdateAccountSettingsCommand,
|
|
3082
|
+
UpdateCollectionCommand,
|
|
3083
|
+
UpdateLifecyclePolicyCommand,
|
|
3084
|
+
UpdateSecurityConfigCommand,
|
|
3085
|
+
UpdateSecurityPolicyCommand,
|
|
3086
|
+
UpdateVpcEndpointCommand
|
|
3087
|
+
};
|
|
3088
|
+
var _OpenSearchServerless = class _OpenSearchServerless extends OpenSearchServerlessClient {
|
|
3089
|
+
};
|
|
3090
|
+
__name(_OpenSearchServerless, "OpenSearchServerless");
|
|
3091
|
+
var OpenSearchServerless = _OpenSearchServerless;
|
|
3092
|
+
(0, import_smithy_client.createAggregatedClient)(commands, OpenSearchServerless);
|
|
3093
|
+
|
|
3094
|
+
// src/pagination/ListAccessPoliciesPaginator.ts
|
|
3095
|
+
var import_core = require("@smithy/core");
|
|
3096
|
+
var paginateListAccessPolicies = (0, import_core.createPaginator)(OpenSearchServerlessClient, ListAccessPoliciesCommand, "nextToken", "nextToken", "");
|
|
3097
|
+
|
|
3098
|
+
// src/pagination/ListCollectionsPaginator.ts
|
|
3099
|
+
|
|
3100
|
+
var paginateListCollections = (0, import_core.createPaginator)(OpenSearchServerlessClient, ListCollectionsCommand, "nextToken", "nextToken", "");
|
|
3101
|
+
|
|
3102
|
+
// src/pagination/ListLifecyclePoliciesPaginator.ts
|
|
3103
|
+
|
|
3104
|
+
var paginateListLifecyclePolicies = (0, import_core.createPaginator)(OpenSearchServerlessClient, ListLifecyclePoliciesCommand, "nextToken", "nextToken", "");
|
|
3105
|
+
|
|
3106
|
+
// src/pagination/ListSecurityConfigsPaginator.ts
|
|
3107
|
+
|
|
3108
|
+
var paginateListSecurityConfigs = (0, import_core.createPaginator)(OpenSearchServerlessClient, ListSecurityConfigsCommand, "nextToken", "nextToken", "");
|
|
3109
|
+
|
|
3110
|
+
// src/pagination/ListSecurityPoliciesPaginator.ts
|
|
3111
|
+
|
|
3112
|
+
var paginateListSecurityPolicies = (0, import_core.createPaginator)(OpenSearchServerlessClient, ListSecurityPoliciesCommand, "nextToken", "nextToken", "");
|
|
3113
|
+
|
|
3114
|
+
// src/pagination/ListVpcEndpointsPaginator.ts
|
|
3115
|
+
|
|
3116
|
+
var paginateListVpcEndpoints = (0, import_core.createPaginator)(OpenSearchServerlessClient, ListVpcEndpointsCommand, "nextToken", "nextToken", "");
|
|
3117
|
+
|
|
3118
|
+
// src/index.ts
|
|
3119
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
3120
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3121
|
+
0 && (module.exports = {
|
|
3122
|
+
AccessPolicyType,
|
|
3123
|
+
BatchGetCollectionCommand,
|
|
3124
|
+
BatchGetEffectiveLifecyclePolicyCommand,
|
|
3125
|
+
BatchGetLifecyclePolicyCommand,
|
|
3126
|
+
BatchGetVpcEndpointCommand,
|
|
3127
|
+
CollectionStatus,
|
|
3128
|
+
CollectionType,
|
|
3129
|
+
ConflictException,
|
|
3130
|
+
CreateAccessPolicyCommand,
|
|
3131
|
+
CreateCollectionCommand,
|
|
3132
|
+
CreateLifecyclePolicyCommand,
|
|
3133
|
+
CreateSecurityConfigCommand,
|
|
3134
|
+
CreateSecurityPolicyCommand,
|
|
3135
|
+
CreateVpcEndpointCommand,
|
|
3136
|
+
DeleteAccessPolicyCommand,
|
|
3137
|
+
DeleteCollectionCommand,
|
|
3138
|
+
DeleteLifecyclePolicyCommand,
|
|
3139
|
+
DeleteSecurityConfigCommand,
|
|
3140
|
+
DeleteSecurityPolicyCommand,
|
|
3141
|
+
DeleteVpcEndpointCommand,
|
|
3142
|
+
GetAccessPolicyCommand,
|
|
3143
|
+
GetAccountSettingsCommand,
|
|
3144
|
+
GetPoliciesStatsCommand,
|
|
3145
|
+
GetSecurityConfigCommand,
|
|
3146
|
+
GetSecurityPolicyCommand,
|
|
3147
|
+
InternalServerException,
|
|
3148
|
+
LifecyclePolicyType,
|
|
3149
|
+
ListAccessPoliciesCommand,
|
|
3150
|
+
ListCollectionsCommand,
|
|
3151
|
+
ListLifecyclePoliciesCommand,
|
|
3152
|
+
ListSecurityConfigsCommand,
|
|
3153
|
+
ListSecurityPoliciesCommand,
|
|
3154
|
+
ListTagsForResourceCommand,
|
|
3155
|
+
ListVpcEndpointsCommand,
|
|
3156
|
+
OcuLimitExceededException,
|
|
3157
|
+
OpenSearchServerless,
|
|
3158
|
+
OpenSearchServerlessClient,
|
|
3159
|
+
OpenSearchServerlessServiceException,
|
|
3160
|
+
ResourceNotFoundException,
|
|
3161
|
+
ResourceType,
|
|
3162
|
+
SecurityConfigType,
|
|
3163
|
+
SecurityPolicyType,
|
|
3164
|
+
ServiceQuotaExceededException,
|
|
3165
|
+
StandbyReplicas,
|
|
3166
|
+
TagResourceCommand,
|
|
3167
|
+
UntagResourceCommand,
|
|
3168
|
+
UpdateAccessPolicyCommand,
|
|
3169
|
+
UpdateAccountSettingsCommand,
|
|
3170
|
+
UpdateCollectionCommand,
|
|
3171
|
+
UpdateLifecyclePolicyCommand,
|
|
3172
|
+
UpdateSecurityConfigCommand,
|
|
3173
|
+
UpdateSecurityPolicyCommand,
|
|
3174
|
+
UpdateVpcEndpointCommand,
|
|
3175
|
+
ValidationException,
|
|
3176
|
+
VpcEndpointStatus,
|
|
3177
|
+
__Client,
|
|
3178
|
+
paginateListAccessPolicies,
|
|
3179
|
+
paginateListCollections,
|
|
3180
|
+
paginateListLifecyclePolicies,
|
|
3181
|
+
paginateListSecurityConfigs,
|
|
3182
|
+
paginateListSecurityPolicies,
|
|
3183
|
+
paginateListVpcEndpoints
|
|
3184
|
+
});
|