@aws-sdk/client-sagemaker-a2i-runtime 3.927.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class SageMakerA2IRuntimeClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class SageMakerA2IRuntimeClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class SageMakerA2IRuntimeServiceException extends smithyClient.ServiceException {
113
+ let SageMakerA2IRuntimeServiceException$1 = class SageMakerA2IRuntimeServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, SageMakerA2IRuntimeServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class InternalServerException extends SageMakerA2IRuntimeServiceException {
120
+ let InternalServerException$1 = class InternalServerException extends SageMakerA2IRuntimeServiceException$1 {
121
121
  name = "InternalServerException";
122
122
  $fault = "server";
123
123
  Message;
@@ -130,8 +130,8 @@ class InternalServerException extends SageMakerA2IRuntimeServiceException {
130
130
  Object.setPrototypeOf(this, InternalServerException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
134
- class ResourceNotFoundException extends SageMakerA2IRuntimeServiceException {
133
+ };
134
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SageMakerA2IRuntimeServiceException$1 {
135
135
  name = "ResourceNotFoundException";
136
136
  $fault = "client";
137
137
  Message;
@@ -144,8 +144,8 @@ class ResourceNotFoundException extends SageMakerA2IRuntimeServiceException {
144
144
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
145
145
  this.Message = opts.Message;
146
146
  }
147
- }
148
- class ThrottlingException extends SageMakerA2IRuntimeServiceException {
147
+ };
148
+ let ThrottlingException$1 = class ThrottlingException extends SageMakerA2IRuntimeServiceException$1 {
149
149
  name = "ThrottlingException";
150
150
  $fault = "client";
151
151
  Message;
@@ -158,8 +158,8 @@ class ThrottlingException extends SageMakerA2IRuntimeServiceException {
158
158
  Object.setPrototypeOf(this, ThrottlingException.prototype);
159
159
  this.Message = opts.Message;
160
160
  }
161
- }
162
- class ValidationException extends SageMakerA2IRuntimeServiceException {
161
+ };
162
+ let ValidationException$1 = class ValidationException extends SageMakerA2IRuntimeServiceException$1 {
163
163
  name = "ValidationException";
164
164
  $fault = "client";
165
165
  Message;
@@ -172,7 +172,7 @@ class ValidationException extends SageMakerA2IRuntimeServiceException {
172
172
  Object.setPrototypeOf(this, ValidationException.prototype);
173
173
  this.Message = opts.Message;
174
174
  }
175
- }
175
+ };
176
176
  const HumanLoopStatus = {
177
177
  COMPLETED: "Completed",
178
178
  FAILED: "Failed",
@@ -184,7 +184,7 @@ const SortOrder = {
184
184
  ASCENDING: "Ascending",
185
185
  DESCENDING: "Descending",
186
186
  };
187
- class ConflictException extends SageMakerA2IRuntimeServiceException {
187
+ let ConflictException$1 = class ConflictException extends SageMakerA2IRuntimeServiceException$1 {
188
188
  name = "ConflictException";
189
189
  $fault = "client";
190
190
  Message;
@@ -197,8 +197,8 @@ class ConflictException extends SageMakerA2IRuntimeServiceException {
197
197
  Object.setPrototypeOf(this, ConflictException.prototype);
198
198
  this.Message = opts.Message;
199
199
  }
200
- }
201
- class ServiceQuotaExceededException extends SageMakerA2IRuntimeServiceException {
200
+ };
201
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends SageMakerA2IRuntimeServiceException$1 {
202
202
  name = "ServiceQuotaExceededException";
203
203
  $fault = "client";
204
204
  Message;
@@ -211,302 +211,284 @@ class ServiceQuotaExceededException extends SageMakerA2IRuntimeServiceException
211
211
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
212
212
  this.Message = opts.Message;
213
213
  }
214
- }
214
+ };
215
215
  const ContentClassifier = {
216
216
  FREE_OF_ADULT_CONTENT: "FreeOfAdultContent",
217
217
  FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation",
218
218
  };
219
219
 
220
- const se_DeleteHumanLoopCommand = async (input, context) => {
221
- const b = core.requestBuilder(input, context);
222
- const headers = {};
223
- b.bp("/human-loops/{HumanLoopName}");
224
- b.p("HumanLoopName", () => input.HumanLoopName, "{HumanLoopName}", false);
225
- let body;
226
- b.m("DELETE").h(headers).b(body);
227
- return b.build();
228
- };
229
- const se_DescribeHumanLoopCommand = async (input, context) => {
230
- const b = core.requestBuilder(input, context);
231
- const headers = {};
232
- b.bp("/human-loops/{HumanLoopName}");
233
- b.p("HumanLoopName", () => input.HumanLoopName, "{HumanLoopName}", false);
234
- let body;
235
- b.m("GET").h(headers).b(body);
236
- return b.build();
237
- };
238
- const se_ListHumanLoopsCommand = async (input, context) => {
239
- const b = core.requestBuilder(input, context);
240
- const headers = {};
241
- b.bp("/human-loops");
242
- const query = smithyClient.map({
243
- [_CTA]: [() => input.CreationTimeAfter !== void 0, () => smithyClient.serializeDateTime(input[_CTA]).toString()],
244
- [_CTB]: [() => input.CreationTimeBefore !== void 0, () => smithyClient.serializeDateTime(input[_CTB]).toString()],
245
- [_FDA]: [, smithyClient.expectNonNull(input[_FDA], `FlowDefinitionArn`)],
246
- [_SO]: [, input[_SO]],
247
- [_NT]: [, input[_NT]],
248
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
249
- });
250
- let body;
251
- b.m("GET").h(headers).q(query).b(body);
252
- return b.build();
253
- };
254
- const se_StartHumanLoopCommand = async (input, context) => {
255
- const b = core.requestBuilder(input, context);
256
- const headers = {
257
- "content-type": "application/json",
258
- };
259
- b.bp("/human-loops");
260
- let body;
261
- body = JSON.stringify(smithyClient.take(input, {
262
- DataAttributes: (_) => smithyClient._json(_),
263
- FlowDefinitionArn: [],
264
- HumanLoopInput: (_) => smithyClient._json(_),
265
- HumanLoopName: [],
266
- }));
267
- b.m("POST").h(headers).b(body);
268
- return b.build();
269
- };
270
- const se_StopHumanLoopCommand = async (input, context) => {
271
- const b = core.requestBuilder(input, context);
272
- const headers = {
273
- "content-type": "application/json",
274
- };
275
- b.bp("/human-loops/stop");
276
- let body;
277
- body = JSON.stringify(smithyClient.take(input, {
278
- HumanLoopName: [],
279
- }));
280
- b.m("POST").h(headers).b(body);
281
- return b.build();
282
- };
283
- const de_DeleteHumanLoopCommand = async (output, context) => {
284
- if (output.statusCode !== 200 && output.statusCode >= 300) {
285
- return de_CommandError(output, context);
286
- }
287
- const contents = smithyClient.map({
288
- $metadata: deserializeMetadata(output),
289
- });
290
- await smithyClient.collectBody(output.body, context);
291
- return contents;
292
- };
293
- const de_DescribeHumanLoopCommand = async (output, context) => {
294
- if (output.statusCode !== 200 && output.statusCode >= 300) {
295
- return de_CommandError(output, context);
296
- }
297
- const contents = smithyClient.map({
298
- $metadata: deserializeMetadata(output),
299
- });
300
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
301
- const doc = smithyClient.take(data, {
302
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
303
- FailureCode: smithyClient.expectString,
304
- FailureReason: smithyClient.expectString,
305
- FlowDefinitionArn: smithyClient.expectString,
306
- HumanLoopArn: smithyClient.expectString,
307
- HumanLoopName: smithyClient.expectString,
308
- HumanLoopOutput: smithyClient._json,
309
- HumanLoopStatus: smithyClient.expectString,
310
- });
311
- Object.assign(contents, doc);
312
- return contents;
313
- };
314
- const de_ListHumanLoopsCommand = async (output, context) => {
315
- if (output.statusCode !== 200 && output.statusCode >= 300) {
316
- return de_CommandError(output, context);
317
- }
318
- const contents = smithyClient.map({
319
- $metadata: deserializeMetadata(output),
320
- });
321
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
322
- const doc = smithyClient.take(data, {
323
- HumanLoopSummaries: (_) => de_HumanLoopSummaries(_),
324
- NextToken: smithyClient.expectString,
325
- });
326
- Object.assign(contents, doc);
327
- return contents;
328
- };
329
- const de_StartHumanLoopCommand = async (output, context) => {
330
- if (output.statusCode !== 200 && output.statusCode >= 300) {
331
- return de_CommandError(output, context);
332
- }
333
- const contents = smithyClient.map({
334
- $metadata: deserializeMetadata(output),
335
- });
336
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
337
- const doc = smithyClient.take(data, {
338
- HumanLoopArn: smithyClient.expectString,
339
- });
340
- Object.assign(contents, doc);
341
- return contents;
342
- };
343
- const de_StopHumanLoopCommand = async (output, context) => {
344
- if (output.statusCode !== 200 && output.statusCode >= 300) {
345
- return de_CommandError(output, context);
346
- }
347
- const contents = smithyClient.map({
348
- $metadata: deserializeMetadata(output),
349
- });
350
- await smithyClient.collectBody(output.body, context);
351
- return contents;
352
- };
353
- const de_CommandError = async (output, context) => {
354
- const parsedOutput = {
355
- ...output,
356
- body: await core$1.parseJsonErrorBody(output.body, context),
357
- };
358
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
359
- switch (errorCode) {
360
- case "InternalServerException":
361
- case "com.amazonaws.sagemakera2iruntime#InternalServerException":
362
- throw await de_InternalServerExceptionRes(parsedOutput);
363
- case "ResourceNotFoundException":
364
- case "com.amazonaws.sagemakera2iruntime#ResourceNotFoundException":
365
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
366
- case "ThrottlingException":
367
- case "com.amazonaws.sagemakera2iruntime#ThrottlingException":
368
- throw await de_ThrottlingExceptionRes(parsedOutput);
369
- case "ValidationException":
370
- case "com.amazonaws.sagemakera2iruntime#ValidationException":
371
- throw await de_ValidationExceptionRes(parsedOutput);
372
- case "ConflictException":
373
- case "com.amazonaws.sagemakera2iruntime#ConflictException":
374
- throw await de_ConflictExceptionRes(parsedOutput);
375
- case "ServiceQuotaExceededException":
376
- case "com.amazonaws.sagemakera2iruntime#ServiceQuotaExceededException":
377
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
378
- default:
379
- const parsedBody = parsedOutput.body;
380
- return throwDefaultError({
381
- output,
382
- parsedBody,
383
- errorCode,
384
- });
385
- }
386
- };
387
- const throwDefaultError = smithyClient.withBaseException(SageMakerA2IRuntimeServiceException);
388
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
389
- const contents = smithyClient.map({});
390
- const data = parsedOutput.body;
391
- const doc = smithyClient.take(data, {
392
- Message: smithyClient.expectString,
393
- });
394
- Object.assign(contents, doc);
395
- const exception = new ConflictException({
396
- $metadata: deserializeMetadata(parsedOutput),
397
- ...contents,
398
- });
399
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
400
- };
401
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
402
- const contents = smithyClient.map({});
403
- const data = parsedOutput.body;
404
- const doc = smithyClient.take(data, {
405
- Message: smithyClient.expectString,
406
- });
407
- Object.assign(contents, doc);
408
- const exception = new InternalServerException({
409
- $metadata: deserializeMetadata(parsedOutput),
410
- ...contents,
411
- });
412
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
413
- };
414
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
415
- const contents = smithyClient.map({});
416
- const data = parsedOutput.body;
417
- const doc = smithyClient.take(data, {
418
- Message: smithyClient.expectString,
419
- });
420
- Object.assign(contents, doc);
421
- const exception = new ResourceNotFoundException({
422
- $metadata: deserializeMetadata(parsedOutput),
423
- ...contents,
424
- });
425
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
426
- };
427
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
428
- const contents = smithyClient.map({});
429
- const data = parsedOutput.body;
430
- const doc = smithyClient.take(data, {
431
- Message: smithyClient.expectString,
432
- });
433
- Object.assign(contents, doc);
434
- const exception = new ServiceQuotaExceededException({
435
- $metadata: deserializeMetadata(parsedOutput),
436
- ...contents,
437
- });
438
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
439
- };
440
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
441
- const contents = smithyClient.map({});
442
- const data = parsedOutput.body;
443
- const doc = smithyClient.take(data, {
444
- Message: smithyClient.expectString,
445
- });
446
- Object.assign(contents, doc);
447
- const exception = new ThrottlingException({
448
- $metadata: deserializeMetadata(parsedOutput),
449
- ...contents,
450
- });
451
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
452
- };
453
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
454
- const contents = smithyClient.map({});
455
- const data = parsedOutput.body;
456
- const doc = smithyClient.take(data, {
457
- Message: smithyClient.expectString,
458
- });
459
- Object.assign(contents, doc);
460
- const exception = new ValidationException({
461
- $metadata: deserializeMetadata(parsedOutput),
462
- ...contents,
463
- });
464
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
465
- };
466
- const de_HumanLoopSummaries = (output, context) => {
467
- const retVal = (output || [])
468
- .filter((e) => e != null)
469
- .map((entry) => {
470
- return de_HumanLoopSummary(entry);
471
- });
472
- return retVal;
473
- };
474
- const de_HumanLoopSummary = (output, context) => {
475
- return smithyClient.take(output, {
476
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
477
- FailureReason: smithyClient.expectString,
478
- FlowDefinitionArn: smithyClient.expectString,
479
- HumanLoopName: smithyClient.expectString,
480
- HumanLoopStatus: smithyClient.expectString,
481
- });
482
- };
483
- const deserializeMetadata = (output) => ({
484
- httpStatusCode: output.statusCode,
485
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
486
- extendedRequestId: output.headers["x-amz-id-2"],
487
- cfId: output.headers["x-amz-cf-id"],
488
- });
220
+ const _CC = "ContentClassifiers";
221
+ const _CE = "ConflictException";
222
+ const _CT = "CreationTime";
489
223
  const _CTA = "CreationTimeAfter";
490
224
  const _CTB = "CreationTimeBefore";
225
+ const _DA = "DataAttributes";
226
+ const _DHL = "DeleteHumanLoop";
227
+ const _DHLR = "DeleteHumanLoopRequest";
228
+ const _DHLRe = "DeleteHumanLoopResponse";
229
+ const _DHLRes = "DescribeHumanLoopRequest";
230
+ const _DHLResc = "DescribeHumanLoopResponse";
231
+ const _DHLe = "DescribeHumanLoop";
232
+ const _FC = "FailureCode";
491
233
  const _FDA = "FlowDefinitionArn";
234
+ const _FR = "FailureReason";
235
+ const _HLA = "HumanLoopArn";
236
+ const _HLDA = "HumanLoopDataAttributes";
237
+ const _HLI = "HumanLoopInput";
238
+ const _HLN = "HumanLoopName";
239
+ const _HLO = "HumanLoopOutput";
240
+ const _HLS = "HumanLoopStatus";
241
+ const _HLSu = "HumanLoopSummary";
242
+ const _HLSum = "HumanLoopSummaries";
243
+ const _IC = "InputContent";
244
+ const _ISE = "InternalServerException";
245
+ const _LHL = "ListHumanLoops";
246
+ const _LHLR = "ListHumanLoopsRequest";
247
+ const _LHLRi = "ListHumanLoopsResponse";
248
+ const _M = "Message";
492
249
  const _MR = "MaxResults";
493
250
  const _NT = "NextToken";
251
+ const _OSU = "OutputS3Uri";
252
+ const _RNFE = "ResourceNotFoundException";
253
+ const _SHL = "StartHumanLoop";
254
+ const _SHLR = "StartHumanLoopRequest";
255
+ const _SHLRt = "StartHumanLoopResponse";
256
+ const _SHLRto = "StopHumanLoopRequest";
257
+ const _SHLRtop = "StopHumanLoopResponse";
258
+ const _SHLt = "StopHumanLoop";
494
259
  const _SO = "SortOrder";
260
+ const _SQEE = "ServiceQuotaExceededException";
261
+ const _TE = "ThrottlingException";
262
+ const _VE = "ValidationException";
263
+ const _c = "client";
264
+ const _e = "error";
265
+ const _h = "http";
266
+ const _hE = "httpError";
267
+ const _hQ = "httpQuery";
268
+ const _s = "server";
269
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakera2iruntime";
270
+ const n0 = "com.amazonaws.sagemakera2iruntime";
271
+ var ConflictException = [
272
+ -3,
273
+ n0,
274
+ _CE,
275
+ {
276
+ [_e]: _c,
277
+ [_hE]: 409,
278
+ },
279
+ [_M],
280
+ [0],
281
+ ];
282
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
283
+ var DeleteHumanLoopRequest = [3, n0, _DHLR, 0, [_HLN], [[0, 1]]];
284
+ var DeleteHumanLoopResponse = [3, n0, _DHLRe, 0, [], []];
285
+ var DescribeHumanLoopRequest = [3, n0, _DHLRes, 0, [_HLN], [[0, 1]]];
286
+ var DescribeHumanLoopResponse = [
287
+ 3,
288
+ n0,
289
+ _DHLResc,
290
+ 0,
291
+ [_CT, _FR, _FC, _HLS, _HLN, _HLA, _FDA, _HLO],
292
+ [5, 0, 0, 0, 0, 0, 0, () => HumanLoopOutput],
293
+ ];
294
+ var HumanLoopDataAttributes = [3, n0, _HLDA, 0, [_CC], [64 | 0]];
295
+ var HumanLoopInput = [3, n0, _HLI, 0, [_IC], [0]];
296
+ var HumanLoopOutput = [3, n0, _HLO, 0, [_OSU], [0]];
297
+ var HumanLoopSummary = [3, n0, _HLSu, 0, [_HLN, _HLS, _CT, _FR, _FDA], [0, 0, 5, 0, 0]];
298
+ var InternalServerException = [
299
+ -3,
300
+ n0,
301
+ _ISE,
302
+ {
303
+ [_e]: _s,
304
+ [_hE]: 500,
305
+ },
306
+ [_M],
307
+ [0],
308
+ ];
309
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
310
+ var ListHumanLoopsRequest = [
311
+ 3,
312
+ n0,
313
+ _LHLR,
314
+ 0,
315
+ [_CTA, _CTB, _FDA, _SO, _NT, _MR],
316
+ [
317
+ [
318
+ 5,
319
+ {
320
+ [_hQ]: _CTA,
321
+ },
322
+ ],
323
+ [
324
+ 5,
325
+ {
326
+ [_hQ]: _CTB,
327
+ },
328
+ ],
329
+ [
330
+ 0,
331
+ {
332
+ [_hQ]: _FDA,
333
+ },
334
+ ],
335
+ [
336
+ 0,
337
+ {
338
+ [_hQ]: _SO,
339
+ },
340
+ ],
341
+ [
342
+ 0,
343
+ {
344
+ [_hQ]: _NT,
345
+ },
346
+ ],
347
+ [
348
+ 1,
349
+ {
350
+ [_hQ]: _MR,
351
+ },
352
+ ],
353
+ ],
354
+ ];
355
+ var ListHumanLoopsResponse = [
356
+ 3,
357
+ n0,
358
+ _LHLRi,
359
+ 0,
360
+ [_HLSum, _NT],
361
+ [() => HumanLoopSummaries, 0],
362
+ ];
363
+ var ResourceNotFoundException = [
364
+ -3,
365
+ n0,
366
+ _RNFE,
367
+ {
368
+ [_e]: _c,
369
+ [_hE]: 404,
370
+ },
371
+ [_M],
372
+ [0],
373
+ ];
374
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
375
+ var ServiceQuotaExceededException = [
376
+ -3,
377
+ n0,
378
+ _SQEE,
379
+ {
380
+ [_e]: _c,
381
+ [_hE]: 402,
382
+ },
383
+ [_M],
384
+ [0],
385
+ ];
386
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
387
+ var StartHumanLoopRequest = [
388
+ 3,
389
+ n0,
390
+ _SHLR,
391
+ 0,
392
+ [_HLN, _FDA, _HLI, _DA],
393
+ [0, 0, () => HumanLoopInput, () => HumanLoopDataAttributes],
394
+ ];
395
+ var StartHumanLoopResponse = [3, n0, _SHLRt, 0, [_HLA], [0]];
396
+ var StopHumanLoopRequest = [3, n0, _SHLRto, 0, [_HLN], [0]];
397
+ var StopHumanLoopResponse = [3, n0, _SHLRtop, 0, [], []];
398
+ var ThrottlingException = [
399
+ -3,
400
+ n0,
401
+ _TE,
402
+ {
403
+ [_e]: _c,
404
+ [_hE]: 429,
405
+ },
406
+ [_M],
407
+ [0],
408
+ ];
409
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
410
+ var ValidationException = [
411
+ -3,
412
+ n0,
413
+ _VE,
414
+ {
415
+ [_e]: _c,
416
+ [_hE]: 400,
417
+ },
418
+ [_M],
419
+ [0],
420
+ ];
421
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
422
+ var SageMakerA2IRuntimeServiceException = [
423
+ -3,
424
+ _sm,
425
+ "SageMakerA2IRuntimeServiceException",
426
+ 0,
427
+ [],
428
+ [],
429
+ ];
430
+ schema.TypeRegistry.for(_sm).registerError(SageMakerA2IRuntimeServiceException, SageMakerA2IRuntimeServiceException$1);
431
+ var HumanLoopSummaries = [1, n0, _HLSum, 0, () => HumanLoopSummary];
432
+ var DeleteHumanLoop = [
433
+ 9,
434
+ n0,
435
+ _DHL,
436
+ {
437
+ [_h]: ["DELETE", "/human-loops/{HumanLoopName}", 200],
438
+ },
439
+ () => DeleteHumanLoopRequest,
440
+ () => DeleteHumanLoopResponse,
441
+ ];
442
+ var DescribeHumanLoop = [
443
+ 9,
444
+ n0,
445
+ _DHLe,
446
+ {
447
+ [_h]: ["GET", "/human-loops/{HumanLoopName}", 200],
448
+ },
449
+ () => DescribeHumanLoopRequest,
450
+ () => DescribeHumanLoopResponse,
451
+ ];
452
+ var ListHumanLoops = [
453
+ 9,
454
+ n0,
455
+ _LHL,
456
+ {
457
+ [_h]: ["GET", "/human-loops", 200],
458
+ },
459
+ () => ListHumanLoopsRequest,
460
+ () => ListHumanLoopsResponse,
461
+ ];
462
+ var StartHumanLoop = [
463
+ 9,
464
+ n0,
465
+ _SHL,
466
+ {
467
+ [_h]: ["POST", "/human-loops", 200],
468
+ },
469
+ () => StartHumanLoopRequest,
470
+ () => StartHumanLoopResponse,
471
+ ];
472
+ var StopHumanLoop = [
473
+ 9,
474
+ n0,
475
+ _SHLt,
476
+ {
477
+ [_h]: ["POST", "/human-loops/stop", 200],
478
+ },
479
+ () => StopHumanLoopRequest,
480
+ () => StopHumanLoopResponse,
481
+ ];
495
482
 
496
483
  class DeleteHumanLoopCommand extends smithyClient.Command
497
484
  .classBuilder()
498
485
  .ep(commonParams)
499
486
  .m(function (Command, cs, config, o) {
500
- return [
501
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
502
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
503
- ];
487
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
504
488
  })
505
489
  .s("AmazonSageMakerA2IRuntime", "DeleteHumanLoop", {})
506
490
  .n("SageMakerA2IRuntimeClient", "DeleteHumanLoopCommand")
507
- .f(void 0, void 0)
508
- .ser(se_DeleteHumanLoopCommand)
509
- .de(de_DeleteHumanLoopCommand)
491
+ .sc(DeleteHumanLoop)
510
492
  .build() {
511
493
  }
512
494
 
@@ -514,16 +496,11 @@ class DescribeHumanLoopCommand extends smithyClient.Command
514
496
  .classBuilder()
515
497
  .ep(commonParams)
516
498
  .m(function (Command, cs, config, o) {
517
- return [
518
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
519
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
520
- ];
499
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
521
500
  })
522
501
  .s("AmazonSageMakerA2IRuntime", "DescribeHumanLoop", {})
523
502
  .n("SageMakerA2IRuntimeClient", "DescribeHumanLoopCommand")
524
- .f(void 0, void 0)
525
- .ser(se_DescribeHumanLoopCommand)
526
- .de(de_DescribeHumanLoopCommand)
503
+ .sc(DescribeHumanLoop)
527
504
  .build() {
528
505
  }
529
506
 
@@ -531,16 +508,11 @@ class ListHumanLoopsCommand extends smithyClient.Command
531
508
  .classBuilder()
532
509
  .ep(commonParams)
533
510
  .m(function (Command, cs, config, o) {
534
- return [
535
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
536
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
537
- ];
511
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
538
512
  })
539
513
  .s("AmazonSageMakerA2IRuntime", "ListHumanLoops", {})
540
514
  .n("SageMakerA2IRuntimeClient", "ListHumanLoopsCommand")
541
- .f(void 0, void 0)
542
- .ser(se_ListHumanLoopsCommand)
543
- .de(de_ListHumanLoopsCommand)
515
+ .sc(ListHumanLoops)
544
516
  .build() {
545
517
  }
546
518
 
@@ -548,16 +520,11 @@ class StartHumanLoopCommand extends smithyClient.Command
548
520
  .classBuilder()
549
521
  .ep(commonParams)
550
522
  .m(function (Command, cs, config, o) {
551
- return [
552
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
553
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
554
- ];
523
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
555
524
  })
556
525
  .s("AmazonSageMakerA2IRuntime", "StartHumanLoop", {})
557
526
  .n("SageMakerA2IRuntimeClient", "StartHumanLoopCommand")
558
- .f(void 0, void 0)
559
- .ser(se_StartHumanLoopCommand)
560
- .de(de_StartHumanLoopCommand)
527
+ .sc(StartHumanLoop)
561
528
  .build() {
562
529
  }
563
530
 
@@ -565,16 +532,11 @@ class StopHumanLoopCommand extends smithyClient.Command
565
532
  .classBuilder()
566
533
  .ep(commonParams)
567
534
  .m(function (Command, cs, config, o) {
568
- return [
569
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
570
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
571
- ];
535
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
572
536
  })
573
537
  .s("AmazonSageMakerA2IRuntime", "StopHumanLoop", {})
574
538
  .n("SageMakerA2IRuntimeClient", "StopHumanLoopCommand")
575
- .f(void 0, void 0)
576
- .ser(se_StopHumanLoopCommand)
577
- .de(de_StopHumanLoopCommand)
539
+ .sc(StopHumanLoop)
578
540
  .build() {
579
541
  }
580
542
 
@@ -599,21 +561,21 @@ Object.defineProperty(exports, "__Client", {
599
561
  enumerable: true,
600
562
  get: function () { return smithyClient.Client; }
601
563
  });
602
- exports.ConflictException = ConflictException;
564
+ exports.ConflictException = ConflictException$1;
603
565
  exports.ContentClassifier = ContentClassifier;
604
566
  exports.DeleteHumanLoopCommand = DeleteHumanLoopCommand;
605
567
  exports.DescribeHumanLoopCommand = DescribeHumanLoopCommand;
606
568
  exports.HumanLoopStatus = HumanLoopStatus;
607
- exports.InternalServerException = InternalServerException;
569
+ exports.InternalServerException = InternalServerException$1;
608
570
  exports.ListHumanLoopsCommand = ListHumanLoopsCommand;
609
- exports.ResourceNotFoundException = ResourceNotFoundException;
571
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
610
572
  exports.SageMakerA2IRuntime = SageMakerA2IRuntime;
611
573
  exports.SageMakerA2IRuntimeClient = SageMakerA2IRuntimeClient;
612
- exports.SageMakerA2IRuntimeServiceException = SageMakerA2IRuntimeServiceException;
613
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
574
+ exports.SageMakerA2IRuntimeServiceException = SageMakerA2IRuntimeServiceException$1;
575
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
614
576
  exports.SortOrder = SortOrder;
615
577
  exports.StartHumanLoopCommand = StartHumanLoopCommand;
616
578
  exports.StopHumanLoopCommand = StopHumanLoopCommand;
617
- exports.ThrottlingException = ThrottlingException;
618
- exports.ValidationException = ValidationException;
579
+ exports.ThrottlingException = ThrottlingException$1;
580
+ exports.ValidationException = ValidationException$1;
619
581
  exports.paginateListHumanLoops = paginateListHumanLoops;