@aws-sdk/client-textract 3.131.0 → 3.142.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 (29) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/commands/AnalyzeDocumentCommand.js +2 -2
  4. package/dist-cjs/commands/AnalyzeExpenseCommand.js +2 -2
  5. package/dist-cjs/commands/AnalyzeIDCommand.js +2 -2
  6. package/dist-cjs/commands/DetectDocumentTextCommand.js +2 -2
  7. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +2 -2
  8. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +2 -2
  9. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +2 -2
  10. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +2 -2
  11. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +2 -2
  12. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +2 -2
  13. package/dist-cjs/models/models_0.js +190 -284
  14. package/dist-cjs/protocols/Aws_json1_1.js +50 -95
  15. package/dist-es/commands/AnalyzeDocumentCommand.js +3 -3
  16. package/dist-es/commands/AnalyzeExpenseCommand.js +3 -3
  17. package/dist-es/commands/AnalyzeIDCommand.js +3 -3
  18. package/dist-es/commands/DetectDocumentTextCommand.js +3 -3
  19. package/dist-es/commands/GetDocumentAnalysisCommand.js +3 -3
  20. package/dist-es/commands/GetDocumentTextDetectionCommand.js +3 -3
  21. package/dist-es/commands/GetExpenseAnalysisCommand.js +3 -3
  22. package/dist-es/commands/StartDocumentAnalysisCommand.js +3 -3
  23. package/dist-es/commands/StartDocumentTextDetectionCommand.js +3 -3
  24. package/dist-es/commands/StartExpenseAnalysisCommand.js +3 -3
  25. package/dist-es/models/models_0.js +47 -188
  26. package/dist-es/protocols/Aws_json1_1.js +81 -96
  27. package/dist-types/models/models_0.d.ts +188 -282
  28. package/dist-types/ts3.4/models/models_0.d.ts +94 -188
  29. package/package.json +6 -6
@@ -124,7 +124,6 @@ const deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context
124
124
  ...output,
125
125
  body: await parseBody(output.body, context),
126
126
  };
127
- let response;
128
127
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
129
128
  switch (errorCode) {
130
129
  case "AccessDeniedException":
@@ -159,14 +158,12 @@ const deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context
159
158
  throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
160
159
  default:
161
160
  const parsedBody = parsedOutput.body;
162
- const $metadata = deserializeMetadata(output);
163
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
164
- response = new TextractServiceException_1.TextractServiceException({
165
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
166
- $fault: "client",
167
- $metadata,
161
+ (0, smithy_client_1.throwDefaultError)({
162
+ output,
163
+ parsedBody,
164
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
165
+ errorCode,
168
166
  });
169
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
170
167
  }
171
168
  };
172
169
  const deserializeAws_json1_1AnalyzeExpenseCommand = async (output, context) => {
@@ -188,7 +185,6 @@ const deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context)
188
185
  ...output,
189
186
  body: await parseBody(output.body, context),
190
187
  };
191
- let response;
192
188
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
193
189
  switch (errorCode) {
194
190
  case "AccessDeniedException":
@@ -220,14 +216,12 @@ const deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context)
220
216
  throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
221
217
  default:
222
218
  const parsedBody = parsedOutput.body;
223
- const $metadata = deserializeMetadata(output);
224
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
225
- response = new TextractServiceException_1.TextractServiceException({
226
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
227
- $fault: "client",
228
- $metadata,
219
+ (0, smithy_client_1.throwDefaultError)({
220
+ output,
221
+ parsedBody,
222
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
223
+ errorCode,
229
224
  });
230
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
231
225
  }
232
226
  };
233
227
  const deserializeAws_json1_1AnalyzeIDCommand = async (output, context) => {
@@ -249,7 +243,6 @@ const deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
249
243
  ...output,
250
244
  body: await parseBody(output.body, context),
251
245
  };
252
- let response;
253
246
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
254
247
  switch (errorCode) {
255
248
  case "AccessDeniedException":
@@ -281,14 +274,12 @@ const deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
281
274
  throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
282
275
  default:
283
276
  const parsedBody = parsedOutput.body;
284
- const $metadata = deserializeMetadata(output);
285
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
286
- response = new TextractServiceException_1.TextractServiceException({
287
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
288
- $fault: "client",
289
- $metadata,
277
+ (0, smithy_client_1.throwDefaultError)({
278
+ output,
279
+ parsedBody,
280
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
281
+ errorCode,
290
282
  });
291
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
292
283
  }
293
284
  };
294
285
  const deserializeAws_json1_1DetectDocumentTextCommand = async (output, context) => {
@@ -310,7 +301,6 @@ const deserializeAws_json1_1DetectDocumentTextCommandError = async (output, cont
310
301
  ...output,
311
302
  body: await parseBody(output.body, context),
312
303
  };
313
- let response;
314
304
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
315
305
  switch (errorCode) {
316
306
  case "AccessDeniedException":
@@ -342,14 +332,12 @@ const deserializeAws_json1_1DetectDocumentTextCommandError = async (output, cont
342
332
  throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
343
333
  default:
344
334
  const parsedBody = parsedOutput.body;
345
- const $metadata = deserializeMetadata(output);
346
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
347
- response = new TextractServiceException_1.TextractServiceException({
348
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
349
- $fault: "client",
350
- $metadata,
335
+ (0, smithy_client_1.throwDefaultError)({
336
+ output,
337
+ parsedBody,
338
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
339
+ errorCode,
351
340
  });
352
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
353
341
  }
354
342
  };
355
343
  const deserializeAws_json1_1GetDocumentAnalysisCommand = async (output, context) => {
@@ -371,7 +359,6 @@ const deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, con
371
359
  ...output,
372
360
  body: await parseBody(output.body, context),
373
361
  };
374
- let response;
375
362
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
376
363
  switch (errorCode) {
377
364
  case "AccessDeniedException":
@@ -400,14 +387,12 @@ const deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, con
400
387
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
401
388
  default:
402
389
  const parsedBody = parsedOutput.body;
403
- const $metadata = deserializeMetadata(output);
404
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
405
- response = new TextractServiceException_1.TextractServiceException({
406
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
407
- $fault: "client",
408
- $metadata,
390
+ (0, smithy_client_1.throwDefaultError)({
391
+ output,
392
+ parsedBody,
393
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
394
+ errorCode,
409
395
  });
410
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
411
396
  }
412
397
  };
413
398
  const deserializeAws_json1_1GetDocumentTextDetectionCommand = async (output, context) => {
@@ -429,7 +414,6 @@ const deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output
429
414
  ...output,
430
415
  body: await parseBody(output.body, context),
431
416
  };
432
- let response;
433
417
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
434
418
  switch (errorCode) {
435
419
  case "AccessDeniedException":
@@ -458,14 +442,12 @@ const deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output
458
442
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
459
443
  default:
460
444
  const parsedBody = parsedOutput.body;
461
- const $metadata = deserializeMetadata(output);
462
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
463
- response = new TextractServiceException_1.TextractServiceException({
464
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
465
- $fault: "client",
466
- $metadata,
445
+ (0, smithy_client_1.throwDefaultError)({
446
+ output,
447
+ parsedBody,
448
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
449
+ errorCode,
467
450
  });
468
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
469
451
  }
470
452
  };
471
453
  const deserializeAws_json1_1GetExpenseAnalysisCommand = async (output, context) => {
@@ -487,7 +469,6 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
487
469
  ...output,
488
470
  body: await parseBody(output.body, context),
489
471
  };
490
- let response;
491
472
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
492
473
  switch (errorCode) {
493
474
  case "AccessDeniedException":
@@ -516,14 +497,12 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
516
497
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
517
498
  default:
518
499
  const parsedBody = parsedOutput.body;
519
- const $metadata = deserializeMetadata(output);
520
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
521
- response = new TextractServiceException_1.TextractServiceException({
522
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
523
- $fault: "client",
524
- $metadata,
500
+ (0, smithy_client_1.throwDefaultError)({
501
+ output,
502
+ parsedBody,
503
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
504
+ errorCode,
525
505
  });
526
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
527
506
  }
528
507
  };
529
508
  const deserializeAws_json1_1StartDocumentAnalysisCommand = async (output, context) => {
@@ -545,7 +524,6 @@ const deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, c
545
524
  ...output,
546
525
  body: await parseBody(output.body, context),
547
526
  };
548
- let response;
549
527
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
550
528
  switch (errorCode) {
551
529
  case "AccessDeniedException":
@@ -586,14 +564,12 @@ const deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, c
586
564
  throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
587
565
  default:
588
566
  const parsedBody = parsedOutput.body;
589
- const $metadata = deserializeMetadata(output);
590
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
591
- response = new TextractServiceException_1.TextractServiceException({
592
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
593
- $fault: "client",
594
- $metadata,
567
+ (0, smithy_client_1.throwDefaultError)({
568
+ output,
569
+ parsedBody,
570
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
571
+ errorCode,
595
572
  });
596
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
597
573
  }
598
574
  };
599
575
  const deserializeAws_json1_1StartDocumentTextDetectionCommand = async (output, context) => {
@@ -615,7 +591,6 @@ const deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (outp
615
591
  ...output,
616
592
  body: await parseBody(output.body, context),
617
593
  };
618
- let response;
619
594
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
620
595
  switch (errorCode) {
621
596
  case "AccessDeniedException":
@@ -656,14 +631,12 @@ const deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (outp
656
631
  throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
657
632
  default:
658
633
  const parsedBody = parsedOutput.body;
659
- const $metadata = deserializeMetadata(output);
660
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
661
- response = new TextractServiceException_1.TextractServiceException({
662
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
663
- $fault: "client",
664
- $metadata,
634
+ (0, smithy_client_1.throwDefaultError)({
635
+ output,
636
+ parsedBody,
637
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
638
+ errorCode,
665
639
  });
666
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
667
640
  }
668
641
  };
669
642
  const deserializeAws_json1_1StartExpenseAnalysisCommand = async (output, context) => {
@@ -685,7 +658,6 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
685
658
  ...output,
686
659
  body: await parseBody(output.body, context),
687
660
  };
688
- let response;
689
661
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
690
662
  switch (errorCode) {
691
663
  case "AccessDeniedException":
@@ -726,14 +698,12 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
726
698
  throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
727
699
  default:
728
700
  const parsedBody = parsedOutput.body;
729
- const $metadata = deserializeMetadata(output);
730
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
731
- response = new TextractServiceException_1.TextractServiceException({
732
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
733
- $fault: "client",
734
- $metadata,
701
+ (0, smithy_client_1.throwDefaultError)({
702
+ output,
703
+ parsedBody,
704
+ exceptionCtor: TextractServiceException_1.TextractServiceException,
705
+ errorCode,
735
706
  });
736
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
737
707
  }
738
708
  };
739
709
  const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
@@ -890,9 +860,6 @@ const serializeAws_json1_1ContentClassifiers = (input, context) => {
890
860
  return input
891
861
  .filter((e) => e != null)
892
862
  .map((entry) => {
893
- if (entry === null) {
894
- return null;
895
- }
896
863
  return entry;
897
864
  });
898
865
  };
@@ -916,9 +883,6 @@ const serializeAws_json1_1DocumentPages = (input, context) => {
916
883
  return input
917
884
  .filter((e) => e != null)
918
885
  .map((entry) => {
919
- if (entry === null) {
920
- return null;
921
- }
922
886
  return serializeAws_json1_1Document(entry, context);
923
887
  });
924
888
  };
@@ -926,9 +890,6 @@ const serializeAws_json1_1FeatureTypes = (input, context) => {
926
890
  return input
927
891
  .filter((e) => e != null)
928
892
  .map((entry) => {
929
- if (entry === null) {
930
- return null;
931
- }
932
893
  return entry;
933
894
  });
934
895
  };
@@ -985,9 +946,6 @@ const serializeAws_json1_1Queries = (input, context) => {
985
946
  return input
986
947
  .filter((e) => e != null)
987
948
  .map((entry) => {
988
- if (entry === null) {
989
- return null;
990
- }
991
949
  return serializeAws_json1_1Query(entry, context);
992
950
  });
993
951
  };
@@ -1007,9 +965,6 @@ const serializeAws_json1_1QueryPages = (input, context) => {
1007
965
  return input
1008
966
  .filter((e) => e != null)
1009
967
  .map((entry) => {
1010
- if (entry === null) {
1011
- return null;
1012
- }
1013
968
  return entry;
1014
969
  });
1015
970
  };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { AnalyzeDocumentRequest, AnalyzeDocumentResponse } from "../models/models_0";
4
+ import { AnalyzeDocumentRequestFilterSensitiveLog, AnalyzeDocumentResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1AnalyzeDocumentCommand, serializeAws_json1_1AnalyzeDocumentCommand, } from "../protocols/Aws_json1_1";
6
6
  var AnalyzeDocumentCommand = (function (_super) {
7
7
  __extends(AnalyzeDocumentCommand, _super);
@@ -20,8 +20,8 @@ var AnalyzeDocumentCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: AnalyzeDocumentRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: AnalyzeDocumentResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: AnalyzeDocumentRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: AnalyzeDocumentResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { AnalyzeExpenseRequest, AnalyzeExpenseResponse } from "../models/models_0";
4
+ import { AnalyzeExpenseRequestFilterSensitiveLog, AnalyzeExpenseResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1AnalyzeExpenseCommand, serializeAws_json1_1AnalyzeExpenseCommand, } from "../protocols/Aws_json1_1";
6
6
  var AnalyzeExpenseCommand = (function (_super) {
7
7
  __extends(AnalyzeExpenseCommand, _super);
@@ -20,8 +20,8 @@ var AnalyzeExpenseCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: AnalyzeExpenseRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: AnalyzeExpenseResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: AnalyzeExpenseRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: AnalyzeExpenseResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { AnalyzeIDRequest, AnalyzeIDResponse } from "../models/models_0";
4
+ import { AnalyzeIDRequestFilterSensitiveLog, AnalyzeIDResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1AnalyzeIDCommand, serializeAws_json1_1AnalyzeIDCommand } from "../protocols/Aws_json1_1";
6
6
  var AnalyzeIDCommand = (function (_super) {
7
7
  __extends(AnalyzeIDCommand, _super);
@@ -20,8 +20,8 @@ var AnalyzeIDCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: AnalyzeIDRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: AnalyzeIDResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: AnalyzeIDRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: AnalyzeIDResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DetectDocumentTextRequest, DetectDocumentTextResponse } from "../models/models_0";
4
+ import { DetectDocumentTextRequestFilterSensitiveLog, DetectDocumentTextResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1DetectDocumentTextCommand, serializeAws_json1_1DetectDocumentTextCommand, } from "../protocols/Aws_json1_1";
6
6
  var DetectDocumentTextCommand = (function (_super) {
7
7
  __extends(DetectDocumentTextCommand, _super);
@@ -20,8 +20,8 @@ var DetectDocumentTextCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: DetectDocumentTextRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: DetectDocumentTextResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: DetectDocumentTextRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DetectDocumentTextResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetDocumentAnalysisRequest, GetDocumentAnalysisResponse } from "../models/models_0";
4
+ import { GetDocumentAnalysisRequestFilterSensitiveLog, GetDocumentAnalysisResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1GetDocumentAnalysisCommand, serializeAws_json1_1GetDocumentAnalysisCommand, } from "../protocols/Aws_json1_1";
6
6
  var GetDocumentAnalysisCommand = (function (_super) {
7
7
  __extends(GetDocumentAnalysisCommand, _super);
@@ -20,8 +20,8 @@ var GetDocumentAnalysisCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: GetDocumentAnalysisRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: GetDocumentAnalysisResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: GetDocumentAnalysisRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetDocumentAnalysisResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetDocumentTextDetectionRequest, GetDocumentTextDetectionResponse } from "../models/models_0";
4
+ import { GetDocumentTextDetectionRequestFilterSensitiveLog, GetDocumentTextDetectionResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1GetDocumentTextDetectionCommand, serializeAws_json1_1GetDocumentTextDetectionCommand, } from "../protocols/Aws_json1_1";
6
6
  var GetDocumentTextDetectionCommand = (function (_super) {
7
7
  __extends(GetDocumentTextDetectionCommand, _super);
@@ -20,8 +20,8 @@ var GetDocumentTextDetectionCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: GetDocumentTextDetectionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: GetDocumentTextDetectionResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: GetDocumentTextDetectionRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetDocumentTextDetectionResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetExpenseAnalysisRequest, GetExpenseAnalysisResponse } from "../models/models_0";
4
+ import { GetExpenseAnalysisRequestFilterSensitiveLog, GetExpenseAnalysisResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1GetExpenseAnalysisCommand, serializeAws_json1_1GetExpenseAnalysisCommand, } from "../protocols/Aws_json1_1";
6
6
  var GetExpenseAnalysisCommand = (function (_super) {
7
7
  __extends(GetExpenseAnalysisCommand, _super);
@@ -20,8 +20,8 @@ var GetExpenseAnalysisCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: GetExpenseAnalysisRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: GetExpenseAnalysisResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: GetExpenseAnalysisRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetExpenseAnalysisResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { StartDocumentAnalysisRequest, StartDocumentAnalysisResponse } from "../models/models_0";
4
+ import { StartDocumentAnalysisRequestFilterSensitiveLog, StartDocumentAnalysisResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1StartDocumentAnalysisCommand, serializeAws_json1_1StartDocumentAnalysisCommand, } from "../protocols/Aws_json1_1";
6
6
  var StartDocumentAnalysisCommand = (function (_super) {
7
7
  __extends(StartDocumentAnalysisCommand, _super);
@@ -20,8 +20,8 @@ var StartDocumentAnalysisCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: StartDocumentAnalysisRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: StartDocumentAnalysisResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: StartDocumentAnalysisRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: StartDocumentAnalysisResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { StartDocumentTextDetectionRequest, StartDocumentTextDetectionResponse } from "../models/models_0";
4
+ import { StartDocumentTextDetectionRequestFilterSensitiveLog, StartDocumentTextDetectionResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1StartDocumentTextDetectionCommand, serializeAws_json1_1StartDocumentTextDetectionCommand, } from "../protocols/Aws_json1_1";
6
6
  var StartDocumentTextDetectionCommand = (function (_super) {
7
7
  __extends(StartDocumentTextDetectionCommand, _super);
@@ -20,8 +20,8 @@ var StartDocumentTextDetectionCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: StartDocumentTextDetectionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: StartDocumentTextDetectionResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: StartDocumentTextDetectionRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: StartDocumentTextDetectionResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { StartExpenseAnalysisRequest, StartExpenseAnalysisResponse } from "../models/models_0";
4
+ import { StartExpenseAnalysisRequestFilterSensitiveLog, StartExpenseAnalysisResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1StartExpenseAnalysisCommand, serializeAws_json1_1StartExpenseAnalysisCommand, } from "../protocols/Aws_json1_1";
6
6
  var StartExpenseAnalysisCommand = (function (_super) {
7
7
  __extends(StartExpenseAnalysisCommand, _super);
@@ -20,8 +20,8 @@ var StartExpenseAnalysisCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: StartExpenseAnalysisRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: StartExpenseAnalysisResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: StartExpenseAnalysisRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: StartExpenseAnalysisResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {