@aws-sdk/client-kendra-ranking 3.899.0 → 3.906.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +795 -925
  2. package/package.json +38 -38
package/dist-cjs/index.js CHANGED
@@ -1,964 +1,834 @@
1
- "use strict";
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 index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- ConflictException: () => ConflictException,
26
- CreateRescoreExecutionPlanCommand: () => CreateRescoreExecutionPlanCommand,
27
- DeleteRescoreExecutionPlanCommand: () => DeleteRescoreExecutionPlanCommand,
28
- DescribeRescoreExecutionPlanCommand: () => DescribeRescoreExecutionPlanCommand,
29
- InternalServerException: () => InternalServerException,
30
- KendraRanking: () => KendraRanking,
31
- KendraRankingClient: () => KendraRankingClient,
32
- KendraRankingServiceException: () => KendraRankingServiceException,
33
- ListRescoreExecutionPlansCommand: () => ListRescoreExecutionPlansCommand,
34
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
35
- RescoreCommand: () => RescoreCommand,
36
- RescoreExecutionPlanStatus: () => RescoreExecutionPlanStatus,
37
- ResourceNotFoundException: () => ResourceNotFoundException,
38
- ResourceUnavailableException: () => ResourceUnavailableException,
39
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
40
- TagResourceCommand: () => TagResourceCommand,
41
- ThrottlingException: () => ThrottlingException,
42
- UntagResourceCommand: () => UntagResourceCommand,
43
- UpdateRescoreExecutionPlanCommand: () => UpdateRescoreExecutionPlanCommand,
44
- ValidationException: () => ValidationException,
45
- __Client: () => import_smithy_client.Client,
46
- paginateListRescoreExecutionPlans: () => paginateListRescoreExecutionPlans
47
- });
48
- module.exports = __toCommonJS(index_exports);
49
-
50
- // src/KendraRankingClient.ts
51
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
52
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
53
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
54
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
55
- var import_config_resolver = require("@smithy/config-resolver");
56
- var import_core = require("@smithy/core");
57
- var import_middleware_content_length = require("@smithy/middleware-content-length");
58
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
59
- var import_middleware_retry = require("@smithy/middleware-retry");
60
-
61
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
62
-
63
- // src/endpoint/EndpointParameters.ts
64
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
65
- return Object.assign(options, {
66
- useFipsEndpoint: options.useFipsEndpoint ?? false,
67
- defaultSigningName: "kendra-ranking"
68
- });
69
- }, "resolveClientEndpointParameters");
70
- var commonParams = {
71
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
72
- Endpoint: { type: "builtInParams", name: "endpoint" },
73
- Region: { type: "builtInParams", name: "region" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "kendra-ranking",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
74
31
  };
75
32
 
76
- // src/KendraRankingClient.ts
77
- var import_runtimeConfig = require("././runtimeConfig");
33
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
34
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
35
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
36
+ let _credentials = runtimeConfig.credentials;
37
+ return {
38
+ setHttpAuthScheme(httpAuthScheme) {
39
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
40
+ if (index === -1) {
41
+ _httpAuthSchemes.push(httpAuthScheme);
42
+ }
43
+ else {
44
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
45
+ }
46
+ },
47
+ httpAuthSchemes() {
48
+ return _httpAuthSchemes;
49
+ },
50
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
51
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
52
+ },
53
+ httpAuthSchemeProvider() {
54
+ return _httpAuthSchemeProvider;
55
+ },
56
+ setCredentials(credentials) {
57
+ _credentials = credentials;
58
+ },
59
+ credentials() {
60
+ return _credentials;
61
+ },
62
+ };
63
+ };
64
+ const resolveHttpAuthRuntimeConfig = (config) => {
65
+ return {
66
+ httpAuthSchemes: config.httpAuthSchemes(),
67
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
68
+ credentials: config.credentials(),
69
+ };
70
+ };
78
71
 
79
- // src/runtimeExtensions.ts
80
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
81
- var import_protocol_http = require("@smithy/protocol-http");
82
- var import_smithy_client = require("@smithy/smithy-client");
72
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
73
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
74
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
75
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
76
+ };
83
77
 
84
- // src/auth/httpAuthExtensionConfiguration.ts
85
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
86
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
87
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
88
- let _credentials = runtimeConfig.credentials;
89
- return {
90
- setHttpAuthScheme(httpAuthScheme) {
91
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
92
- if (index === -1) {
93
- _httpAuthSchemes.push(httpAuthScheme);
94
- } else {
95
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
96
- }
97
- },
98
- httpAuthSchemes() {
99
- return _httpAuthSchemes;
100
- },
101
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
102
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
103
- },
104
- httpAuthSchemeProvider() {
105
- return _httpAuthSchemeProvider;
106
- },
107
- setCredentials(credentials) {
108
- _credentials = credentials;
109
- },
110
- credentials() {
111
- return _credentials;
78
+ class KendraRankingClient extends smithyClient.Client {
79
+ config;
80
+ constructor(...[configuration]) {
81
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
82
+ super(_config_0);
83
+ this.initConfig = _config_0;
84
+ const _config_1 = resolveClientEndpointParameters(_config_0);
85
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
86
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
87
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
88
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
89
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
90
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
91
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
92
+ this.config = _config_8;
93
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
94
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
95
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
96
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
97
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
98
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
99
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
100
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultKendraRankingHttpAuthSchemeParametersProvider,
101
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
102
+ "aws.auth#sigv4": config.credentials,
103
+ }),
104
+ }));
105
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
106
+ }
107
+ destroy() {
108
+ super.destroy();
112
109
  }
113
- };
114
- }, "getHttpAuthExtensionConfiguration");
115
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
116
- return {
117
- httpAuthSchemes: config.httpAuthSchemes(),
118
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
119
- credentials: config.credentials()
120
- };
121
- }, "resolveHttpAuthRuntimeConfig");
110
+ }
122
111
 
123
- // src/runtimeExtensions.ts
124
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
125
- const extensionConfiguration = Object.assign(
126
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
127
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
128
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
129
- getHttpAuthExtensionConfiguration(runtimeConfig)
130
- );
131
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
132
- return Object.assign(
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
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
138
- );
139
- }, "resolveRuntimeExtensions");
112
+ class KendraRankingServiceException extends smithyClient.ServiceException {
113
+ constructor(options) {
114
+ super(options);
115
+ Object.setPrototypeOf(this, KendraRankingServiceException.prototype);
116
+ }
117
+ }
140
118
 
141
- // src/KendraRankingClient.ts
142
- var KendraRankingClient = class extends import_smithy_client.Client {
143
- static {
144
- __name(this, "KendraRankingClient");
145
- }
146
- /**
147
- * The resolved configuration of KendraRankingClient class. This is resolved and normalized from the {@link KendraRankingClientConfig | constructor configuration interface}.
148
- */
149
- config;
150
- constructor(...[configuration]) {
151
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
152
- super(_config_0);
153
- this.initConfig = _config_0;
154
- const _config_1 = resolveClientEndpointParameters(_config_0);
155
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
156
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
157
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
158
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
159
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
160
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
161
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
162
- this.config = _config_8;
163
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
164
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
165
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
166
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
167
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
168
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
169
- this.middlewareStack.use(
170
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
171
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultKendraRankingHttpAuthSchemeParametersProvider,
172
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
173
- "aws.auth#sigv4": config.credentials
174
- }), "identityProviderConfigProvider")
175
- })
176
- );
177
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
178
- }
179
- /**
180
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
181
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
182
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
183
- */
184
- destroy() {
185
- super.destroy();
186
- }
119
+ class AccessDeniedException extends KendraRankingServiceException {
120
+ name = "AccessDeniedException";
121
+ $fault = "client";
122
+ Message;
123
+ constructor(opts) {
124
+ super({
125
+ name: "AccessDeniedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
+ this.Message = opts.Message;
131
+ }
132
+ }
133
+ class ConflictException extends KendraRankingServiceException {
134
+ name = "ConflictException";
135
+ $fault = "client";
136
+ Message;
137
+ constructor(opts) {
138
+ super({
139
+ name: "ConflictException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, ConflictException.prototype);
144
+ this.Message = opts.Message;
145
+ }
146
+ }
147
+ class InternalServerException extends KendraRankingServiceException {
148
+ name = "InternalServerException";
149
+ $fault = "server";
150
+ Message;
151
+ constructor(opts) {
152
+ super({
153
+ name: "InternalServerException",
154
+ $fault: "server",
155
+ ...opts,
156
+ });
157
+ Object.setPrototypeOf(this, InternalServerException.prototype);
158
+ this.Message = opts.Message;
159
+ }
160
+ }
161
+ class ServiceQuotaExceededException extends KendraRankingServiceException {
162
+ name = "ServiceQuotaExceededException";
163
+ $fault = "client";
164
+ Message;
165
+ constructor(opts) {
166
+ super({
167
+ name: "ServiceQuotaExceededException",
168
+ $fault: "client",
169
+ ...opts,
170
+ });
171
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
172
+ this.Message = opts.Message;
173
+ }
174
+ }
175
+ class ThrottlingException extends KendraRankingServiceException {
176
+ name = "ThrottlingException";
177
+ $fault = "client";
178
+ Message;
179
+ constructor(opts) {
180
+ super({
181
+ name: "ThrottlingException",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
186
+ this.Message = opts.Message;
187
+ }
188
+ }
189
+ class ValidationException extends KendraRankingServiceException {
190
+ name = "ValidationException";
191
+ $fault = "client";
192
+ Message;
193
+ constructor(opts) {
194
+ super({
195
+ name: "ValidationException",
196
+ $fault: "client",
197
+ ...opts,
198
+ });
199
+ Object.setPrototypeOf(this, ValidationException.prototype);
200
+ this.Message = opts.Message;
201
+ }
202
+ }
203
+ class ResourceNotFoundException extends KendraRankingServiceException {
204
+ name = "ResourceNotFoundException";
205
+ $fault = "client";
206
+ Message;
207
+ constructor(opts) {
208
+ super({
209
+ name: "ResourceNotFoundException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
214
+ this.Message = opts.Message;
215
+ }
216
+ }
217
+ const RescoreExecutionPlanStatus = {
218
+ ACTIVE: "ACTIVE",
219
+ CREATING: "CREATING",
220
+ DELETING: "DELETING",
221
+ FAILED: "FAILED",
222
+ UPDATING: "UPDATING",
187
223
  };
224
+ class ResourceUnavailableException extends KendraRankingServiceException {
225
+ name = "ResourceUnavailableException";
226
+ $fault = "client";
227
+ Message;
228
+ constructor(opts) {
229
+ super({
230
+ name: "ResourceUnavailableException",
231
+ $fault: "client",
232
+ ...opts,
233
+ });
234
+ Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
235
+ this.Message = opts.Message;
236
+ }
237
+ }
188
238
 
189
- // src/KendraRanking.ts
190
-
191
-
192
- // src/commands/CreateRescoreExecutionPlanCommand.ts
193
-
194
- var import_middleware_serde = require("@smithy/middleware-serde");
195
-
196
-
197
- // src/protocols/Aws_json1_0.ts
198
- var import_core2 = require("@aws-sdk/core");
199
-
200
-
201
- var import_uuid = require("@smithy/uuid");
202
-
203
- // src/models/KendraRankingServiceException.ts
204
-
205
- var KendraRankingServiceException = class _KendraRankingServiceException extends import_smithy_client.ServiceException {
206
- static {
207
- __name(this, "KendraRankingServiceException");
208
- }
209
- /**
210
- * @internal
211
- */
212
- constructor(options) {
213
- super(options);
214
- Object.setPrototypeOf(this, _KendraRankingServiceException.prototype);
215
- }
239
+ const se_CreateRescoreExecutionPlanCommand = async (input, context) => {
240
+ const headers = sharedHeaders("CreateRescoreExecutionPlan");
241
+ let body;
242
+ body = JSON.stringify(se_CreateRescoreExecutionPlanRequest(input));
243
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
244
  };
217
-
218
- // src/models/models_0.ts
219
- var AccessDeniedException = class _AccessDeniedException extends KendraRankingServiceException {
220
- static {
221
- __name(this, "AccessDeniedException");
222
- }
223
- name = "AccessDeniedException";
224
- $fault = "client";
225
- Message;
226
- /**
227
- * @internal
228
- */
229
- constructor(opts) {
230
- super({
231
- name: "AccessDeniedException",
232
- $fault: "client",
233
- ...opts
245
+ const se_DeleteRescoreExecutionPlanCommand = async (input, context) => {
246
+ const headers = sharedHeaders("DeleteRescoreExecutionPlan");
247
+ let body;
248
+ body = JSON.stringify(smithyClient._json(input));
249
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
+ };
251
+ const se_DescribeRescoreExecutionPlanCommand = async (input, context) => {
252
+ const headers = sharedHeaders("DescribeRescoreExecutionPlan");
253
+ let body;
254
+ body = JSON.stringify(smithyClient._json(input));
255
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
+ };
257
+ const se_ListRescoreExecutionPlansCommand = async (input, context) => {
258
+ const headers = sharedHeaders("ListRescoreExecutionPlans");
259
+ let body;
260
+ body = JSON.stringify(smithyClient._json(input));
261
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
+ };
263
+ const se_ListTagsForResourceCommand = async (input, context) => {
264
+ const headers = sharedHeaders("ListTagsForResource");
265
+ let body;
266
+ body = JSON.stringify(smithyClient._json(input));
267
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
+ };
269
+ const se_RescoreCommand = async (input, context) => {
270
+ const headers = sharedHeaders("Rescore");
271
+ let body;
272
+ body = JSON.stringify(se_RescoreRequest(input));
273
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
+ };
275
+ const se_TagResourceCommand = async (input, context) => {
276
+ const headers = sharedHeaders("TagResource");
277
+ let body;
278
+ body = JSON.stringify(smithyClient._json(input));
279
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
+ };
281
+ const se_UntagResourceCommand = async (input, context) => {
282
+ const headers = sharedHeaders("UntagResource");
283
+ let body;
284
+ body = JSON.stringify(smithyClient._json(input));
285
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
+ };
287
+ const se_UpdateRescoreExecutionPlanCommand = async (input, context) => {
288
+ const headers = sharedHeaders("UpdateRescoreExecutionPlan");
289
+ let body;
290
+ body = JSON.stringify(smithyClient._json(input));
291
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
+ };
293
+ const de_CreateRescoreExecutionPlanCommand = async (output, context) => {
294
+ if (output.statusCode >= 300) {
295
+ return de_CommandError(output, context);
296
+ }
297
+ const data = await core$1.parseJsonBody(output.body, context);
298
+ let contents = {};
299
+ contents = smithyClient._json(data);
300
+ const response = {
301
+ $metadata: deserializeMetadata(output),
302
+ ...contents,
303
+ };
304
+ return response;
305
+ };
306
+ const de_DeleteRescoreExecutionPlanCommand = async (output, context) => {
307
+ if (output.statusCode >= 300) {
308
+ return de_CommandError(output, context);
309
+ }
310
+ await smithyClient.collectBody(output.body, context);
311
+ const response = {
312
+ $metadata: deserializeMetadata(output),
313
+ };
314
+ return response;
315
+ };
316
+ const de_DescribeRescoreExecutionPlanCommand = async (output, context) => {
317
+ if (output.statusCode >= 300) {
318
+ return de_CommandError(output, context);
319
+ }
320
+ const data = await core$1.parseJsonBody(output.body, context);
321
+ let contents = {};
322
+ contents = de_DescribeRescoreExecutionPlanResponse(data);
323
+ const response = {
324
+ $metadata: deserializeMetadata(output),
325
+ ...contents,
326
+ };
327
+ return response;
328
+ };
329
+ const de_ListRescoreExecutionPlansCommand = async (output, context) => {
330
+ if (output.statusCode >= 300) {
331
+ return de_CommandError(output, context);
332
+ }
333
+ const data = await core$1.parseJsonBody(output.body, context);
334
+ let contents = {};
335
+ contents = de_ListRescoreExecutionPlansResponse(data);
336
+ const response = {
337
+ $metadata: deserializeMetadata(output),
338
+ ...contents,
339
+ };
340
+ return response;
341
+ };
342
+ const de_ListTagsForResourceCommand = async (output, context) => {
343
+ if (output.statusCode >= 300) {
344
+ return de_CommandError(output, context);
345
+ }
346
+ const data = await core$1.parseJsonBody(output.body, context);
347
+ let contents = {};
348
+ contents = smithyClient._json(data);
349
+ const response = {
350
+ $metadata: deserializeMetadata(output),
351
+ ...contents,
352
+ };
353
+ return response;
354
+ };
355
+ const de_RescoreCommand = async (output, context) => {
356
+ if (output.statusCode >= 300) {
357
+ return de_CommandError(output, context);
358
+ }
359
+ const data = await core$1.parseJsonBody(output.body, context);
360
+ let contents = {};
361
+ contents = de_RescoreResult(data);
362
+ const response = {
363
+ $metadata: deserializeMetadata(output),
364
+ ...contents,
365
+ };
366
+ return response;
367
+ };
368
+ const de_TagResourceCommand = async (output, context) => {
369
+ if (output.statusCode >= 300) {
370
+ return de_CommandError(output, context);
371
+ }
372
+ const data = await core$1.parseJsonBody(output.body, context);
373
+ let contents = {};
374
+ contents = smithyClient._json(data);
375
+ const response = {
376
+ $metadata: deserializeMetadata(output),
377
+ ...contents,
378
+ };
379
+ return response;
380
+ };
381
+ const de_UntagResourceCommand = async (output, context) => {
382
+ if (output.statusCode >= 300) {
383
+ return de_CommandError(output, context);
384
+ }
385
+ const data = await core$1.parseJsonBody(output.body, context);
386
+ let contents = {};
387
+ contents = smithyClient._json(data);
388
+ const response = {
389
+ $metadata: deserializeMetadata(output),
390
+ ...contents,
391
+ };
392
+ return response;
393
+ };
394
+ const de_UpdateRescoreExecutionPlanCommand = async (output, context) => {
395
+ if (output.statusCode >= 300) {
396
+ return de_CommandError(output, context);
397
+ }
398
+ await smithyClient.collectBody(output.body, context);
399
+ const response = {
400
+ $metadata: deserializeMetadata(output),
401
+ };
402
+ return response;
403
+ };
404
+ const de_CommandError = async (output, context) => {
405
+ const parsedOutput = {
406
+ ...output,
407
+ body: await core$1.parseJsonErrorBody(output.body, context),
408
+ };
409
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
410
+ switch (errorCode) {
411
+ case "AccessDeniedException":
412
+ case "com.amazonaws.kendraranking#AccessDeniedException":
413
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
414
+ case "ConflictException":
415
+ case "com.amazonaws.kendraranking#ConflictException":
416
+ throw await de_ConflictExceptionRes(parsedOutput);
417
+ case "InternalServerException":
418
+ case "com.amazonaws.kendraranking#InternalServerException":
419
+ throw await de_InternalServerExceptionRes(parsedOutput);
420
+ case "ServiceQuotaExceededException":
421
+ case "com.amazonaws.kendraranking#ServiceQuotaExceededException":
422
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
423
+ case "ThrottlingException":
424
+ case "com.amazonaws.kendraranking#ThrottlingException":
425
+ throw await de_ThrottlingExceptionRes(parsedOutput);
426
+ case "ValidationException":
427
+ case "com.amazonaws.kendraranking#ValidationException":
428
+ throw await de_ValidationExceptionRes(parsedOutput);
429
+ case "ResourceNotFoundException":
430
+ case "com.amazonaws.kendraranking#ResourceNotFoundException":
431
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
432
+ case "ResourceUnavailableException":
433
+ case "com.amazonaws.kendraranking#ResourceUnavailableException":
434
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput);
435
+ default:
436
+ const parsedBody = parsedOutput.body;
437
+ return throwDefaultError({
438
+ output,
439
+ parsedBody,
440
+ errorCode,
441
+ });
442
+ }
443
+ };
444
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
445
+ const body = parsedOutput.body;
446
+ const deserialized = smithyClient._json(body);
447
+ const exception = new AccessDeniedException({
448
+ $metadata: deserializeMetadata(parsedOutput),
449
+ ...deserialized,
450
+ });
451
+ return smithyClient.decorateServiceException(exception, body);
452
+ };
453
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
454
+ const body = parsedOutput.body;
455
+ const deserialized = smithyClient._json(body);
456
+ const exception = new ConflictException({
457
+ $metadata: deserializeMetadata(parsedOutput),
458
+ ...deserialized,
234
459
  });
235
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
236
- this.Message = opts.Message;
237
- }
238
- };
239
- var ConflictException = class _ConflictException extends KendraRankingServiceException {
240
- static {
241
- __name(this, "ConflictException");
242
- }
243
- name = "ConflictException";
244
- $fault = "client";
245
- Message;
246
- /**
247
- * @internal
248
- */
249
- constructor(opts) {
250
- super({
251
- name: "ConflictException",
252
- $fault: "client",
253
- ...opts
460
+ return smithyClient.decorateServiceException(exception, body);
461
+ };
462
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
463
+ const body = parsedOutput.body;
464
+ const deserialized = smithyClient._json(body);
465
+ const exception = new InternalServerException({
466
+ $metadata: deserializeMetadata(parsedOutput),
467
+ ...deserialized,
254
468
  });
255
- Object.setPrototypeOf(this, _ConflictException.prototype);
256
- this.Message = opts.Message;
257
- }
258
- };
259
- var InternalServerException = class _InternalServerException extends KendraRankingServiceException {
260
- static {
261
- __name(this, "InternalServerException");
262
- }
263
- name = "InternalServerException";
264
- $fault = "server";
265
- Message;
266
- /**
267
- * @internal
268
- */
269
- constructor(opts) {
270
- super({
271
- name: "InternalServerException",
272
- $fault: "server",
273
- ...opts
469
+ return smithyClient.decorateServiceException(exception, body);
470
+ };
471
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
472
+ const body = parsedOutput.body;
473
+ const deserialized = smithyClient._json(body);
474
+ const exception = new ResourceNotFoundException({
475
+ $metadata: deserializeMetadata(parsedOutput),
476
+ ...deserialized,
274
477
  });
275
- Object.setPrototypeOf(this, _InternalServerException.prototype);
276
- this.Message = opts.Message;
277
- }
278
- };
279
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends KendraRankingServiceException {
280
- static {
281
- __name(this, "ServiceQuotaExceededException");
282
- }
283
- name = "ServiceQuotaExceededException";
284
- $fault = "client";
285
- Message;
286
- /**
287
- * @internal
288
- */
289
- constructor(opts) {
290
- super({
291
- name: "ServiceQuotaExceededException",
292
- $fault: "client",
293
- ...opts
478
+ return smithyClient.decorateServiceException(exception, body);
479
+ };
480
+ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
481
+ const body = parsedOutput.body;
482
+ const deserialized = smithyClient._json(body);
483
+ const exception = new ResourceUnavailableException({
484
+ $metadata: deserializeMetadata(parsedOutput),
485
+ ...deserialized,
294
486
  });
295
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
296
- this.Message = opts.Message;
297
- }
298
- };
299
- var ThrottlingException = class _ThrottlingException extends KendraRankingServiceException {
300
- static {
301
- __name(this, "ThrottlingException");
302
- }
303
- name = "ThrottlingException";
304
- $fault = "client";
305
- Message;
306
- /**
307
- * @internal
308
- */
309
- constructor(opts) {
310
- super({
311
- name: "ThrottlingException",
312
- $fault: "client",
313
- ...opts
487
+ return smithyClient.decorateServiceException(exception, body);
488
+ };
489
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
490
+ const body = parsedOutput.body;
491
+ const deserialized = smithyClient._json(body);
492
+ const exception = new ServiceQuotaExceededException({
493
+ $metadata: deserializeMetadata(parsedOutput),
494
+ ...deserialized,
314
495
  });
315
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
316
- this.Message = opts.Message;
317
- }
318
- };
319
- var ValidationException = class _ValidationException extends KendraRankingServiceException {
320
- static {
321
- __name(this, "ValidationException");
322
- }
323
- name = "ValidationException";
324
- $fault = "client";
325
- Message;
326
- /**
327
- * @internal
328
- */
329
- constructor(opts) {
330
- super({
331
- name: "ValidationException",
332
- $fault: "client",
333
- ...opts
496
+ return smithyClient.decorateServiceException(exception, body);
497
+ };
498
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
499
+ const body = parsedOutput.body;
500
+ const deserialized = smithyClient._json(body);
501
+ const exception = new ThrottlingException({
502
+ $metadata: deserializeMetadata(parsedOutput),
503
+ ...deserialized,
334
504
  });
335
- Object.setPrototypeOf(this, _ValidationException.prototype);
336
- this.Message = opts.Message;
337
- }
338
- };
339
- var ResourceNotFoundException = class _ResourceNotFoundException extends KendraRankingServiceException {
340
- static {
341
- __name(this, "ResourceNotFoundException");
342
- }
343
- name = "ResourceNotFoundException";
344
- $fault = "client";
345
- Message;
346
- /**
347
- * @internal
348
- */
349
- constructor(opts) {
350
- super({
351
- name: "ResourceNotFoundException",
352
- $fault: "client",
353
- ...opts
505
+ return smithyClient.decorateServiceException(exception, body);
506
+ };
507
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
508
+ const body = parsedOutput.body;
509
+ const deserialized = smithyClient._json(body);
510
+ const exception = new ValidationException({
511
+ $metadata: deserializeMetadata(parsedOutput),
512
+ ...deserialized,
354
513
  });
355
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
356
- this.Message = opts.Message;
357
- }
358
- };
359
- var RescoreExecutionPlanStatus = {
360
- ACTIVE: "ACTIVE",
361
- CREATING: "CREATING",
362
- DELETING: "DELETING",
363
- FAILED: "FAILED",
364
- UPDATING: "UPDATING"
365
- };
366
- var ResourceUnavailableException = class _ResourceUnavailableException extends KendraRankingServiceException {
367
- static {
368
- __name(this, "ResourceUnavailableException");
369
- }
370
- name = "ResourceUnavailableException";
371
- $fault = "client";
372
- Message;
373
- /**
374
- * @internal
375
- */
376
- constructor(opts) {
377
- super({
378
- name: "ResourceUnavailableException",
379
- $fault: "client",
380
- ...opts
514
+ return smithyClient.decorateServiceException(exception, body);
515
+ };
516
+ const se_CreateRescoreExecutionPlanRequest = (input, context) => {
517
+ return smithyClient.take(input, {
518
+ CapacityUnits: smithyClient._json,
519
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
520
+ Description: [],
521
+ Name: [],
522
+ Tags: smithyClient._json,
381
523
  });
382
- Object.setPrototypeOf(this, _ResourceUnavailableException.prototype);
383
- this.Message = opts.Message;
384
- }
385
524
  };
386
-
387
- // src/protocols/Aws_json1_0.ts
388
- var se_CreateRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
389
- const headers = sharedHeaders("CreateRescoreExecutionPlan");
390
- let body;
391
- body = JSON.stringify(se_CreateRescoreExecutionPlanRequest(input, context));
392
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
393
- }, "se_CreateRescoreExecutionPlanCommand");
394
- var se_DeleteRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
395
- const headers = sharedHeaders("DeleteRescoreExecutionPlan");
396
- let body;
397
- body = JSON.stringify((0, import_smithy_client._json)(input));
398
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
399
- }, "se_DeleteRescoreExecutionPlanCommand");
400
- var se_DescribeRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
401
- const headers = sharedHeaders("DescribeRescoreExecutionPlan");
402
- let body;
403
- body = JSON.stringify((0, import_smithy_client._json)(input));
404
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
405
- }, "se_DescribeRescoreExecutionPlanCommand");
406
- var se_ListRescoreExecutionPlansCommand = /* @__PURE__ */ __name(async (input, context) => {
407
- const headers = sharedHeaders("ListRescoreExecutionPlans");
408
- let body;
409
- body = JSON.stringify((0, import_smithy_client._json)(input));
410
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
411
- }, "se_ListRescoreExecutionPlansCommand");
412
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
413
- const headers = sharedHeaders("ListTagsForResource");
414
- let body;
415
- body = JSON.stringify((0, import_smithy_client._json)(input));
416
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
417
- }, "se_ListTagsForResourceCommand");
418
- var se_RescoreCommand = /* @__PURE__ */ __name(async (input, context) => {
419
- const headers = sharedHeaders("Rescore");
420
- let body;
421
- body = JSON.stringify(se_RescoreRequest(input, context));
422
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
423
- }, "se_RescoreCommand");
424
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
425
- const headers = sharedHeaders("TagResource");
426
- let body;
427
- body = JSON.stringify((0, import_smithy_client._json)(input));
428
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
429
- }, "se_TagResourceCommand");
430
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
431
- const headers = sharedHeaders("UntagResource");
432
- let body;
433
- body = JSON.stringify((0, import_smithy_client._json)(input));
434
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
435
- }, "se_UntagResourceCommand");
436
- var se_UpdateRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
437
- const headers = sharedHeaders("UpdateRescoreExecutionPlan");
438
- let body;
439
- body = JSON.stringify((0, import_smithy_client._json)(input));
440
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
441
- }, "se_UpdateRescoreExecutionPlanCommand");
442
- var de_CreateRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
443
- if (output.statusCode >= 300) {
444
- return de_CommandError(output, context);
445
- }
446
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
447
- let contents = {};
448
- contents = (0, import_smithy_client._json)(data);
449
- const response = {
450
- $metadata: deserializeMetadata(output),
451
- ...contents
452
- };
453
- return response;
454
- }, "de_CreateRescoreExecutionPlanCommand");
455
- var de_DeleteRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
456
- if (output.statusCode >= 300) {
457
- return de_CommandError(output, context);
458
- }
459
- await (0, import_smithy_client.collectBody)(output.body, context);
460
- const response = {
461
- $metadata: deserializeMetadata(output)
462
- };
463
- return response;
464
- }, "de_DeleteRescoreExecutionPlanCommand");
465
- var de_DescribeRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
466
- if (output.statusCode >= 300) {
467
- return de_CommandError(output, context);
468
- }
469
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
470
- let contents = {};
471
- contents = de_DescribeRescoreExecutionPlanResponse(data, context);
472
- const response = {
473
- $metadata: deserializeMetadata(output),
474
- ...contents
475
- };
476
- return response;
477
- }, "de_DescribeRescoreExecutionPlanCommand");
478
- var de_ListRescoreExecutionPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
479
- if (output.statusCode >= 300) {
480
- return de_CommandError(output, context);
481
- }
482
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
483
- let contents = {};
484
- contents = de_ListRescoreExecutionPlansResponse(data, context);
485
- const response = {
486
- $metadata: deserializeMetadata(output),
487
- ...contents
488
- };
489
- return response;
490
- }, "de_ListRescoreExecutionPlansCommand");
491
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
492
- if (output.statusCode >= 300) {
493
- return de_CommandError(output, context);
494
- }
495
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
496
- let contents = {};
497
- contents = (0, import_smithy_client._json)(data);
498
- const response = {
499
- $metadata: deserializeMetadata(output),
500
- ...contents
501
- };
502
- return response;
503
- }, "de_ListTagsForResourceCommand");
504
- var de_RescoreCommand = /* @__PURE__ */ __name(async (output, context) => {
505
- if (output.statusCode >= 300) {
506
- return de_CommandError(output, context);
507
- }
508
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
509
- let contents = {};
510
- contents = de_RescoreResult(data, context);
511
- const response = {
512
- $metadata: deserializeMetadata(output),
513
- ...contents
514
- };
515
- return response;
516
- }, "de_RescoreCommand");
517
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
518
- if (output.statusCode >= 300) {
519
- return de_CommandError(output, context);
520
- }
521
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
522
- let contents = {};
523
- contents = (0, import_smithy_client._json)(data);
524
- const response = {
525
- $metadata: deserializeMetadata(output),
526
- ...contents
527
- };
528
- return response;
529
- }, "de_TagResourceCommand");
530
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
531
- if (output.statusCode >= 300) {
532
- return de_CommandError(output, context);
533
- }
534
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
535
- let contents = {};
536
- contents = (0, import_smithy_client._json)(data);
537
- const response = {
538
- $metadata: deserializeMetadata(output),
539
- ...contents
540
- };
541
- return response;
542
- }, "de_UntagResourceCommand");
543
- var de_UpdateRescoreExecutionPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
544
- if (output.statusCode >= 300) {
545
- return de_CommandError(output, context);
546
- }
547
- await (0, import_smithy_client.collectBody)(output.body, context);
548
- const response = {
549
- $metadata: deserializeMetadata(output)
550
- };
551
- return response;
552
- }, "de_UpdateRescoreExecutionPlanCommand");
553
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
554
- const parsedOutput = {
555
- ...output,
556
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
557
- };
558
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
559
- switch (errorCode) {
560
- case "AccessDeniedException":
561
- case "com.amazonaws.kendraranking#AccessDeniedException":
562
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
563
- case "ConflictException":
564
- case "com.amazonaws.kendraranking#ConflictException":
565
- throw await de_ConflictExceptionRes(parsedOutput, context);
566
- case "InternalServerException":
567
- case "com.amazonaws.kendraranking#InternalServerException":
568
- throw await de_InternalServerExceptionRes(parsedOutput, context);
569
- case "ServiceQuotaExceededException":
570
- case "com.amazonaws.kendraranking#ServiceQuotaExceededException":
571
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
572
- case "ThrottlingException":
573
- case "com.amazonaws.kendraranking#ThrottlingException":
574
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
575
- case "ValidationException":
576
- case "com.amazonaws.kendraranking#ValidationException":
577
- throw await de_ValidationExceptionRes(parsedOutput, context);
578
- case "ResourceNotFoundException":
579
- case "com.amazonaws.kendraranking#ResourceNotFoundException":
580
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
581
- case "ResourceUnavailableException":
582
- case "com.amazonaws.kendraranking#ResourceUnavailableException":
583
- throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
584
- default:
585
- const parsedBody = parsedOutput.body;
586
- return throwDefaultError({
587
- output,
588
- parsedBody,
589
- errorCode
590
- });
591
- }
592
- }, "de_CommandError");
593
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
594
- const body = parsedOutput.body;
595
- const deserialized = (0, import_smithy_client._json)(body);
596
- const exception = new AccessDeniedException({
597
- $metadata: deserializeMetadata(parsedOutput),
598
- ...deserialized
599
- });
600
- return (0, import_smithy_client.decorateServiceException)(exception, body);
601
- }, "de_AccessDeniedExceptionRes");
602
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
603
- const body = parsedOutput.body;
604
- const deserialized = (0, import_smithy_client._json)(body);
605
- const exception = new ConflictException({
606
- $metadata: deserializeMetadata(parsedOutput),
607
- ...deserialized
608
- });
609
- return (0, import_smithy_client.decorateServiceException)(exception, body);
610
- }, "de_ConflictExceptionRes");
611
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
612
- const body = parsedOutput.body;
613
- const deserialized = (0, import_smithy_client._json)(body);
614
- const exception = new InternalServerException({
615
- $metadata: deserializeMetadata(parsedOutput),
616
- ...deserialized
617
- });
618
- return (0, import_smithy_client.decorateServiceException)(exception, body);
619
- }, "de_InternalServerExceptionRes");
620
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
621
- const body = parsedOutput.body;
622
- const deserialized = (0, import_smithy_client._json)(body);
623
- const exception = new ResourceNotFoundException({
624
- $metadata: deserializeMetadata(parsedOutput),
625
- ...deserialized
626
- });
627
- return (0, import_smithy_client.decorateServiceException)(exception, body);
628
- }, "de_ResourceNotFoundExceptionRes");
629
- var de_ResourceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
630
- const body = parsedOutput.body;
631
- const deserialized = (0, import_smithy_client._json)(body);
632
- const exception = new ResourceUnavailableException({
633
- $metadata: deserializeMetadata(parsedOutput),
634
- ...deserialized
635
- });
636
- return (0, import_smithy_client.decorateServiceException)(exception, body);
637
- }, "de_ResourceUnavailableExceptionRes");
638
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
639
- const body = parsedOutput.body;
640
- const deserialized = (0, import_smithy_client._json)(body);
641
- const exception = new ServiceQuotaExceededException({
642
- $metadata: deserializeMetadata(parsedOutput),
643
- ...deserialized
644
- });
645
- return (0, import_smithy_client.decorateServiceException)(exception, body);
646
- }, "de_ServiceQuotaExceededExceptionRes");
647
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
648
- const body = parsedOutput.body;
649
- const deserialized = (0, import_smithy_client._json)(body);
650
- const exception = new ThrottlingException({
651
- $metadata: deserializeMetadata(parsedOutput),
652
- ...deserialized
653
- });
654
- return (0, import_smithy_client.decorateServiceException)(exception, body);
655
- }, "de_ThrottlingExceptionRes");
656
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
657
- const body = parsedOutput.body;
658
- const deserialized = (0, import_smithy_client._json)(body);
659
- const exception = new ValidationException({
660
- $metadata: deserializeMetadata(parsedOutput),
661
- ...deserialized
662
- });
663
- return (0, import_smithy_client.decorateServiceException)(exception, body);
664
- }, "de_ValidationExceptionRes");
665
- var se_CreateRescoreExecutionPlanRequest = /* @__PURE__ */ __name((input, context) => {
666
- return (0, import_smithy_client.take)(input, {
667
- CapacityUnits: import_smithy_client._json,
668
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
669
- Description: [],
670
- Name: [],
671
- Tags: import_smithy_client._json
672
- });
673
- }, "se_CreateRescoreExecutionPlanRequest");
674
- var se_Document = /* @__PURE__ */ __name((input, context) => {
675
- return (0, import_smithy_client.take)(input, {
676
- Body: [],
677
- GroupId: [],
678
- Id: [],
679
- OriginalScore: import_smithy_client.serializeFloat,
680
- Title: [],
681
- TokenizedBody: import_smithy_client._json,
682
- TokenizedTitle: import_smithy_client._json
683
- });
684
- }, "se_Document");
685
- var se_DocumentList = /* @__PURE__ */ __name((input, context) => {
686
- return input.filter((e) => e != null).map((entry) => {
687
- return se_Document(entry, context);
688
- });
689
- }, "se_DocumentList");
690
- var se_RescoreRequest = /* @__PURE__ */ __name((input, context) => {
691
- return (0, import_smithy_client.take)(input, {
692
- Documents: /* @__PURE__ */ __name((_) => se_DocumentList(_, context), "Documents"),
693
- RescoreExecutionPlanId: [],
694
- SearchQuery: []
695
- });
696
- }, "se_RescoreRequest");
697
- var de_DescribeRescoreExecutionPlanResponse = /* @__PURE__ */ __name((output, context) => {
698
- return (0, import_smithy_client.take)(output, {
699
- Arn: import_smithy_client.expectString,
700
- CapacityUnits: import_smithy_client._json,
701
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
702
- Description: import_smithy_client.expectString,
703
- ErrorMessage: import_smithy_client.expectString,
704
- Id: import_smithy_client.expectString,
705
- Name: import_smithy_client.expectString,
706
- Status: import_smithy_client.expectString,
707
- UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
708
- });
709
- }, "de_DescribeRescoreExecutionPlanResponse");
710
- var de_ListRescoreExecutionPlansResponse = /* @__PURE__ */ __name((output, context) => {
711
- return (0, import_smithy_client.take)(output, {
712
- NextToken: import_smithy_client.expectString,
713
- SummaryItems: /* @__PURE__ */ __name((_) => de_RescoreExecutionPlanSummaryList(_, context), "SummaryItems")
714
- });
715
- }, "de_ListRescoreExecutionPlansResponse");
716
- var de_RescoreExecutionPlanSummary = /* @__PURE__ */ __name((output, context) => {
717
- return (0, import_smithy_client.take)(output, {
718
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
719
- Id: import_smithy_client.expectString,
720
- Name: import_smithy_client.expectString,
721
- Status: import_smithy_client.expectString,
722
- UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
723
- });
724
- }, "de_RescoreExecutionPlanSummary");
725
- var de_RescoreExecutionPlanSummaryList = /* @__PURE__ */ __name((output, context) => {
726
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
727
- return de_RescoreExecutionPlanSummary(entry, context);
728
- });
729
- return retVal;
730
- }, "de_RescoreExecutionPlanSummaryList");
731
- var de_RescoreResult = /* @__PURE__ */ __name((output, context) => {
732
- return (0, import_smithy_client.take)(output, {
733
- RescoreId: import_smithy_client.expectString,
734
- ResultItems: /* @__PURE__ */ __name((_) => de_RescoreResultItemList(_, context), "ResultItems")
735
- });
736
- }, "de_RescoreResult");
737
- var de_RescoreResultItem = /* @__PURE__ */ __name((output, context) => {
738
- return (0, import_smithy_client.take)(output, {
739
- DocumentId: import_smithy_client.expectString,
740
- Score: import_smithy_client.limitedParseFloat32
741
- });
742
- }, "de_RescoreResultItem");
743
- var de_RescoreResultItemList = /* @__PURE__ */ __name((output, context) => {
744
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
745
- return de_RescoreResultItem(entry, context);
746
- });
747
- return retVal;
748
- }, "de_RescoreResultItemList");
749
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
750
- httpStatusCode: output.statusCode,
751
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
752
- extendedRequestId: output.headers["x-amz-id-2"],
753
- cfId: output.headers["x-amz-cf-id"]
754
- }), "deserializeMetadata");
755
- var throwDefaultError = (0, import_smithy_client.withBaseException)(KendraRankingServiceException);
756
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
757
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
758
- const contents = {
759
- protocol,
760
- hostname,
761
- port,
762
- method: "POST",
763
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
764
- headers
765
- };
766
- if (resolvedHostname !== void 0) {
767
- contents.hostname = resolvedHostname;
768
- }
769
- if (body !== void 0) {
770
- contents.body = body;
771
- }
772
- return new import_protocol_http.HttpRequest(contents);
773
- }, "buildHttpRpcRequest");
774
- function sharedHeaders(operation) {
775
- return {
776
- "content-type": "application/x-amz-json-1.0",
777
- "x-amz-target": `AWSKendraRerankingFrontendService.${operation}`
778
- };
779
- }
780
- __name(sharedHeaders, "sharedHeaders");
781
-
782
- // src/commands/CreateRescoreExecutionPlanCommand.ts
783
- var CreateRescoreExecutionPlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
784
- return [
785
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
786
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
787
- ];
788
- }).s("AWSKendraRerankingFrontendService", "CreateRescoreExecutionPlan", {}).n("KendraRankingClient", "CreateRescoreExecutionPlanCommand").f(void 0, void 0).ser(se_CreateRescoreExecutionPlanCommand).de(de_CreateRescoreExecutionPlanCommand).build() {
789
- static {
790
- __name(this, "CreateRescoreExecutionPlanCommand");
791
- }
525
+ const se_Document = (input, context) => {
526
+ return smithyClient.take(input, {
527
+ Body: [],
528
+ GroupId: [],
529
+ Id: [],
530
+ OriginalScore: smithyClient.serializeFloat,
531
+ Title: [],
532
+ TokenizedBody: smithyClient._json,
533
+ TokenizedTitle: smithyClient._json,
534
+ });
792
535
  };
793
-
794
- // src/commands/DeleteRescoreExecutionPlanCommand.ts
795
-
796
-
797
-
798
- var DeleteRescoreExecutionPlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
799
- return [
800
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
801
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
802
- ];
803
- }).s("AWSKendraRerankingFrontendService", "DeleteRescoreExecutionPlan", {}).n("KendraRankingClient", "DeleteRescoreExecutionPlanCommand").f(void 0, void 0).ser(se_DeleteRescoreExecutionPlanCommand).de(de_DeleteRescoreExecutionPlanCommand).build() {
804
- static {
805
- __name(this, "DeleteRescoreExecutionPlanCommand");
806
- }
536
+ const se_DocumentList = (input, context) => {
537
+ return input
538
+ .filter((e) => e != null)
539
+ .map((entry) => {
540
+ return se_Document(entry);
541
+ });
807
542
  };
808
-
809
- // src/commands/DescribeRescoreExecutionPlanCommand.ts
810
-
811
-
812
-
813
- var DescribeRescoreExecutionPlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
814
- return [
815
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
816
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
817
- ];
818
- }).s("AWSKendraRerankingFrontendService", "DescribeRescoreExecutionPlan", {}).n("KendraRankingClient", "DescribeRescoreExecutionPlanCommand").f(void 0, void 0).ser(se_DescribeRescoreExecutionPlanCommand).de(de_DescribeRescoreExecutionPlanCommand).build() {
819
- static {
820
- __name(this, "DescribeRescoreExecutionPlanCommand");
821
- }
543
+ const se_RescoreRequest = (input, context) => {
544
+ return smithyClient.take(input, {
545
+ Documents: (_) => se_DocumentList(_),
546
+ RescoreExecutionPlanId: [],
547
+ SearchQuery: [],
548
+ });
822
549
  };
823
-
824
- // src/commands/ListRescoreExecutionPlansCommand.ts
825
-
826
-
827
-
828
- var ListRescoreExecutionPlansCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
829
- return [
830
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
831
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
832
- ];
833
- }).s("AWSKendraRerankingFrontendService", "ListRescoreExecutionPlans", {}).n("KendraRankingClient", "ListRescoreExecutionPlansCommand").f(void 0, void 0).ser(se_ListRescoreExecutionPlansCommand).de(de_ListRescoreExecutionPlansCommand).build() {
834
- static {
835
- __name(this, "ListRescoreExecutionPlansCommand");
836
- }
550
+ const de_DescribeRescoreExecutionPlanResponse = (output, context) => {
551
+ return smithyClient.take(output, {
552
+ Arn: smithyClient.expectString,
553
+ CapacityUnits: smithyClient._json,
554
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
555
+ Description: smithyClient.expectString,
556
+ ErrorMessage: smithyClient.expectString,
557
+ Id: smithyClient.expectString,
558
+ Name: smithyClient.expectString,
559
+ Status: smithyClient.expectString,
560
+ UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
561
+ });
837
562
  };
838
-
839
- // src/commands/ListTagsForResourceCommand.ts
840
-
841
-
842
-
843
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
844
- return [
845
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
846
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
847
- ];
848
- }).s("AWSKendraRerankingFrontendService", "ListTagsForResource", {}).n("KendraRankingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
849
- static {
850
- __name(this, "ListTagsForResourceCommand");
851
- }
563
+ const de_ListRescoreExecutionPlansResponse = (output, context) => {
564
+ return smithyClient.take(output, {
565
+ NextToken: smithyClient.expectString,
566
+ SummaryItems: (_) => de_RescoreExecutionPlanSummaryList(_),
567
+ });
852
568
  };
853
-
854
- // src/commands/RescoreCommand.ts
855
-
856
-
857
-
858
- var RescoreCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
859
- return [
860
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
861
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
862
- ];
863
- }).s("AWSKendraRerankingFrontendService", "Rescore", {}).n("KendraRankingClient", "RescoreCommand").f(void 0, void 0).ser(se_RescoreCommand).de(de_RescoreCommand).build() {
864
- static {
865
- __name(this, "RescoreCommand");
866
- }
569
+ const de_RescoreExecutionPlanSummary = (output, context) => {
570
+ return smithyClient.take(output, {
571
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
572
+ Id: smithyClient.expectString,
573
+ Name: smithyClient.expectString,
574
+ Status: smithyClient.expectString,
575
+ UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
576
+ });
867
577
  };
868
-
869
- // src/commands/TagResourceCommand.ts
870
-
871
-
872
-
873
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
874
- return [
875
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
876
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
877
- ];
878
- }).s("AWSKendraRerankingFrontendService", "TagResource", {}).n("KendraRankingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
879
- static {
880
- __name(this, "TagResourceCommand");
881
- }
578
+ const de_RescoreExecutionPlanSummaryList = (output, context) => {
579
+ const retVal = (output || [])
580
+ .filter((e) => e != null)
581
+ .map((entry) => {
582
+ return de_RescoreExecutionPlanSummary(entry);
583
+ });
584
+ return retVal;
585
+ };
586
+ const de_RescoreResult = (output, context) => {
587
+ return smithyClient.take(output, {
588
+ RescoreId: smithyClient.expectString,
589
+ ResultItems: (_) => de_RescoreResultItemList(_),
590
+ });
591
+ };
592
+ const de_RescoreResultItem = (output, context) => {
593
+ return smithyClient.take(output, {
594
+ DocumentId: smithyClient.expectString,
595
+ Score: smithyClient.limitedParseFloat32,
596
+ });
597
+ };
598
+ const de_RescoreResultItemList = (output, context) => {
599
+ const retVal = (output || [])
600
+ .filter((e) => e != null)
601
+ .map((entry) => {
602
+ return de_RescoreResultItem(entry);
603
+ });
604
+ return retVal;
605
+ };
606
+ const deserializeMetadata = (output) => ({
607
+ httpStatusCode: output.statusCode,
608
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
609
+ extendedRequestId: output.headers["x-amz-id-2"],
610
+ cfId: output.headers["x-amz-cf-id"],
611
+ });
612
+ const throwDefaultError = smithyClient.withBaseException(KendraRankingServiceException);
613
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
614
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
615
+ const contents = {
616
+ protocol,
617
+ hostname,
618
+ port,
619
+ method: "POST",
620
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
621
+ headers,
622
+ };
623
+ if (body !== undefined) {
624
+ contents.body = body;
625
+ }
626
+ return new protocolHttp.HttpRequest(contents);
882
627
  };
628
+ function sharedHeaders(operation) {
629
+ return {
630
+ "content-type": "application/x-amz-json-1.0",
631
+ "x-amz-target": `AWSKendraRerankingFrontendService.${operation}`,
632
+ };
633
+ }
883
634
 
884
- // src/commands/UntagResourceCommand.ts
635
+ class CreateRescoreExecutionPlanCommand extends smithyClient.Command
636
+ .classBuilder()
637
+ .ep(commonParams)
638
+ .m(function (Command, cs, config, o) {
639
+ return [
640
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
641
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
642
+ ];
643
+ })
644
+ .s("AWSKendraRerankingFrontendService", "CreateRescoreExecutionPlan", {})
645
+ .n("KendraRankingClient", "CreateRescoreExecutionPlanCommand")
646
+ .f(void 0, void 0)
647
+ .ser(se_CreateRescoreExecutionPlanCommand)
648
+ .de(de_CreateRescoreExecutionPlanCommand)
649
+ .build() {
650
+ }
885
651
 
652
+ class DeleteRescoreExecutionPlanCommand extends smithyClient.Command
653
+ .classBuilder()
654
+ .ep(commonParams)
655
+ .m(function (Command, cs, config, o) {
656
+ return [
657
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
658
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
659
+ ];
660
+ })
661
+ .s("AWSKendraRerankingFrontendService", "DeleteRescoreExecutionPlan", {})
662
+ .n("KendraRankingClient", "DeleteRescoreExecutionPlanCommand")
663
+ .f(void 0, void 0)
664
+ .ser(se_DeleteRescoreExecutionPlanCommand)
665
+ .de(de_DeleteRescoreExecutionPlanCommand)
666
+ .build() {
667
+ }
886
668
 
669
+ class DescribeRescoreExecutionPlanCommand extends smithyClient.Command
670
+ .classBuilder()
671
+ .ep(commonParams)
672
+ .m(function (Command, cs, config, o) {
673
+ return [
674
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
675
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
676
+ ];
677
+ })
678
+ .s("AWSKendraRerankingFrontendService", "DescribeRescoreExecutionPlan", {})
679
+ .n("KendraRankingClient", "DescribeRescoreExecutionPlanCommand")
680
+ .f(void 0, void 0)
681
+ .ser(se_DescribeRescoreExecutionPlanCommand)
682
+ .de(de_DescribeRescoreExecutionPlanCommand)
683
+ .build() {
684
+ }
887
685
 
888
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
889
- return [
890
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
891
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
892
- ];
893
- }).s("AWSKendraRerankingFrontendService", "UntagResource", {}).n("KendraRankingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
894
- static {
895
- __name(this, "UntagResourceCommand");
896
- }
897
- };
686
+ class ListRescoreExecutionPlansCommand extends smithyClient.Command
687
+ .classBuilder()
688
+ .ep(commonParams)
689
+ .m(function (Command, cs, config, o) {
690
+ return [
691
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
692
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
693
+ ];
694
+ })
695
+ .s("AWSKendraRerankingFrontendService", "ListRescoreExecutionPlans", {})
696
+ .n("KendraRankingClient", "ListRescoreExecutionPlansCommand")
697
+ .f(void 0, void 0)
698
+ .ser(se_ListRescoreExecutionPlansCommand)
699
+ .de(de_ListRescoreExecutionPlansCommand)
700
+ .build() {
701
+ }
898
702
 
899
- // src/commands/UpdateRescoreExecutionPlanCommand.ts
703
+ class ListTagsForResourceCommand extends smithyClient.Command
704
+ .classBuilder()
705
+ .ep(commonParams)
706
+ .m(function (Command, cs, config, o) {
707
+ return [
708
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
709
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
710
+ ];
711
+ })
712
+ .s("AWSKendraRerankingFrontendService", "ListTagsForResource", {})
713
+ .n("KendraRankingClient", "ListTagsForResourceCommand")
714
+ .f(void 0, void 0)
715
+ .ser(se_ListTagsForResourceCommand)
716
+ .de(de_ListTagsForResourceCommand)
717
+ .build() {
718
+ }
900
719
 
720
+ class RescoreCommand extends smithyClient.Command
721
+ .classBuilder()
722
+ .ep(commonParams)
723
+ .m(function (Command, cs, config, o) {
724
+ return [
725
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
726
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
727
+ ];
728
+ })
729
+ .s("AWSKendraRerankingFrontendService", "Rescore", {})
730
+ .n("KendraRankingClient", "RescoreCommand")
731
+ .f(void 0, void 0)
732
+ .ser(se_RescoreCommand)
733
+ .de(de_RescoreCommand)
734
+ .build() {
735
+ }
901
736
 
737
+ class TagResourceCommand extends smithyClient.Command
738
+ .classBuilder()
739
+ .ep(commonParams)
740
+ .m(function (Command, cs, config, o) {
741
+ return [
742
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
743
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
744
+ ];
745
+ })
746
+ .s("AWSKendraRerankingFrontendService", "TagResource", {})
747
+ .n("KendraRankingClient", "TagResourceCommand")
748
+ .f(void 0, void 0)
749
+ .ser(se_TagResourceCommand)
750
+ .de(de_TagResourceCommand)
751
+ .build() {
752
+ }
902
753
 
903
- var UpdateRescoreExecutionPlanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
904
- return [
905
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
906
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
907
- ];
908
- }).s("AWSKendraRerankingFrontendService", "UpdateRescoreExecutionPlan", {}).n("KendraRankingClient", "UpdateRescoreExecutionPlanCommand").f(void 0, void 0).ser(se_UpdateRescoreExecutionPlanCommand).de(de_UpdateRescoreExecutionPlanCommand).build() {
909
- static {
910
- __name(this, "UpdateRescoreExecutionPlanCommand");
911
- }
912
- };
754
+ class UntagResourceCommand extends smithyClient.Command
755
+ .classBuilder()
756
+ .ep(commonParams)
757
+ .m(function (Command, cs, config, o) {
758
+ return [
759
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
760
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
761
+ ];
762
+ })
763
+ .s("AWSKendraRerankingFrontendService", "UntagResource", {})
764
+ .n("KendraRankingClient", "UntagResourceCommand")
765
+ .f(void 0, void 0)
766
+ .ser(se_UntagResourceCommand)
767
+ .de(de_UntagResourceCommand)
768
+ .build() {
769
+ }
913
770
 
914
- // src/KendraRanking.ts
915
- var commands = {
916
- CreateRescoreExecutionPlanCommand,
917
- DeleteRescoreExecutionPlanCommand,
918
- DescribeRescoreExecutionPlanCommand,
919
- ListRescoreExecutionPlansCommand,
920
- ListTagsForResourceCommand,
921
- RescoreCommand,
922
- TagResourceCommand,
923
- UntagResourceCommand,
924
- UpdateRescoreExecutionPlanCommand
925
- };
926
- var KendraRanking = class extends KendraRankingClient {
927
- static {
928
- __name(this, "KendraRanking");
929
- }
930
- };
931
- (0, import_smithy_client.createAggregatedClient)(commands, KendraRanking);
771
+ class UpdateRescoreExecutionPlanCommand extends smithyClient.Command
772
+ .classBuilder()
773
+ .ep(commonParams)
774
+ .m(function (Command, cs, config, o) {
775
+ return [
776
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
777
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
778
+ ];
779
+ })
780
+ .s("AWSKendraRerankingFrontendService", "UpdateRescoreExecutionPlan", {})
781
+ .n("KendraRankingClient", "UpdateRescoreExecutionPlanCommand")
782
+ .f(void 0, void 0)
783
+ .ser(se_UpdateRescoreExecutionPlanCommand)
784
+ .de(de_UpdateRescoreExecutionPlanCommand)
785
+ .build() {
786
+ }
932
787
 
933
- // src/pagination/ListRescoreExecutionPlansPaginator.ts
788
+ const commands = {
789
+ CreateRescoreExecutionPlanCommand,
790
+ DeleteRescoreExecutionPlanCommand,
791
+ DescribeRescoreExecutionPlanCommand,
792
+ ListRescoreExecutionPlansCommand,
793
+ ListTagsForResourceCommand,
794
+ RescoreCommand,
795
+ TagResourceCommand,
796
+ UntagResourceCommand,
797
+ UpdateRescoreExecutionPlanCommand,
798
+ };
799
+ class KendraRanking extends KendraRankingClient {
800
+ }
801
+ smithyClient.createAggregatedClient(commands, KendraRanking);
934
802
 
935
- var paginateListRescoreExecutionPlans = (0, import_core.createPaginator)(KendraRankingClient, ListRescoreExecutionPlansCommand, "NextToken", "NextToken", "MaxResults");
936
- // Annotate the CommonJS export names for ESM import in node:
803
+ const paginateListRescoreExecutionPlans = core.createPaginator(KendraRankingClient, ListRescoreExecutionPlansCommand, "NextToken", "NextToken", "MaxResults");
937
804
 
938
- 0 && (module.exports = {
939
- KendraRankingServiceException,
940
- __Client,
941
- KendraRankingClient,
942
- KendraRanking,
943
- $Command,
944
- CreateRescoreExecutionPlanCommand,
945
- DeleteRescoreExecutionPlanCommand,
946
- DescribeRescoreExecutionPlanCommand,
947
- ListRescoreExecutionPlansCommand,
948
- ListTagsForResourceCommand,
949
- RescoreCommand,
950
- TagResourceCommand,
951
- UntagResourceCommand,
952
- UpdateRescoreExecutionPlanCommand,
953
- paginateListRescoreExecutionPlans,
954
- AccessDeniedException,
955
- ConflictException,
956
- InternalServerException,
957
- ServiceQuotaExceededException,
958
- ThrottlingException,
959
- ValidationException,
960
- ResourceNotFoundException,
961
- RescoreExecutionPlanStatus,
962
- ResourceUnavailableException
805
+ Object.defineProperty(exports, "$Command", {
806
+ enumerable: true,
807
+ get: function () { return smithyClient.Command; }
963
808
  });
964
-
809
+ Object.defineProperty(exports, "__Client", {
810
+ enumerable: true,
811
+ get: function () { return smithyClient.Client; }
812
+ });
813
+ exports.AccessDeniedException = AccessDeniedException;
814
+ exports.ConflictException = ConflictException;
815
+ exports.CreateRescoreExecutionPlanCommand = CreateRescoreExecutionPlanCommand;
816
+ exports.DeleteRescoreExecutionPlanCommand = DeleteRescoreExecutionPlanCommand;
817
+ exports.DescribeRescoreExecutionPlanCommand = DescribeRescoreExecutionPlanCommand;
818
+ exports.InternalServerException = InternalServerException;
819
+ exports.KendraRanking = KendraRanking;
820
+ exports.KendraRankingClient = KendraRankingClient;
821
+ exports.KendraRankingServiceException = KendraRankingServiceException;
822
+ exports.ListRescoreExecutionPlansCommand = ListRescoreExecutionPlansCommand;
823
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
824
+ exports.RescoreCommand = RescoreCommand;
825
+ exports.RescoreExecutionPlanStatus = RescoreExecutionPlanStatus;
826
+ exports.ResourceNotFoundException = ResourceNotFoundException;
827
+ exports.ResourceUnavailableException = ResourceUnavailableException;
828
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
829
+ exports.TagResourceCommand = TagResourceCommand;
830
+ exports.ThrottlingException = ThrottlingException;
831
+ exports.UntagResourceCommand = UntagResourceCommand;
832
+ exports.UpdateRescoreExecutionPlanCommand = UpdateRescoreExecutionPlanCommand;
833
+ exports.ValidationException = ValidationException;
834
+ exports.paginateListRescoreExecutionPlans = paginateListRescoreExecutionPlans;