@aws-sdk/client-textract 3.478.0 → 3.481.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 (105) hide show
  1. package/dist-cjs/commands/AnalyzeDocumentCommand.js +18 -41
  2. package/dist-cjs/commands/AnalyzeExpenseCommand.js +18 -41
  3. package/dist-cjs/commands/AnalyzeIDCommand.js +18 -41
  4. package/dist-cjs/commands/CreateAdapterCommand.js +18 -41
  5. package/dist-cjs/commands/CreateAdapterVersionCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteAdapterCommand.js +18 -41
  7. package/dist-cjs/commands/DeleteAdapterVersionCommand.js +18 -41
  8. package/dist-cjs/commands/DetectDocumentTextCommand.js +18 -41
  9. package/dist-cjs/commands/GetAdapterCommand.js +18 -41
  10. package/dist-cjs/commands/GetAdapterVersionCommand.js +18 -41
  11. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +18 -41
  12. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +18 -41
  13. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +18 -41
  14. package/dist-cjs/commands/GetLendingAnalysisCommand.js +18 -41
  15. package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +18 -41
  16. package/dist-cjs/commands/ListAdapterVersionsCommand.js +18 -41
  17. package/dist-cjs/commands/ListAdaptersCommand.js +18 -41
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  19. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +18 -41
  20. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +18 -41
  21. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +18 -41
  22. package/dist-cjs/commands/StartLendingAnalysisCommand.js +18 -41
  23. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  24. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  25. package/dist-cjs/commands/UpdateAdapterCommand.js +18 -41
  26. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  27. package/dist-es/commands/AnalyzeDocumentCommand.js +18 -41
  28. package/dist-es/commands/AnalyzeExpenseCommand.js +18 -41
  29. package/dist-es/commands/AnalyzeIDCommand.js +18 -41
  30. package/dist-es/commands/CreateAdapterCommand.js +18 -41
  31. package/dist-es/commands/CreateAdapterVersionCommand.js +18 -41
  32. package/dist-es/commands/DeleteAdapterCommand.js +18 -41
  33. package/dist-es/commands/DeleteAdapterVersionCommand.js +18 -41
  34. package/dist-es/commands/DetectDocumentTextCommand.js +18 -41
  35. package/dist-es/commands/GetAdapterCommand.js +18 -41
  36. package/dist-es/commands/GetAdapterVersionCommand.js +18 -41
  37. package/dist-es/commands/GetDocumentAnalysisCommand.js +18 -41
  38. package/dist-es/commands/GetDocumentTextDetectionCommand.js +18 -41
  39. package/dist-es/commands/GetExpenseAnalysisCommand.js +18 -41
  40. package/dist-es/commands/GetLendingAnalysisCommand.js +18 -41
  41. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +18 -41
  42. package/dist-es/commands/ListAdapterVersionsCommand.js +18 -41
  43. package/dist-es/commands/ListAdaptersCommand.js +18 -41
  44. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  45. package/dist-es/commands/StartDocumentAnalysisCommand.js +18 -41
  46. package/dist-es/commands/StartDocumentTextDetectionCommand.js +18 -41
  47. package/dist-es/commands/StartExpenseAnalysisCommand.js +18 -41
  48. package/dist-es/commands/StartLendingAnalysisCommand.js +18 -41
  49. package/dist-es/commands/TagResourceCommand.js +18 -41
  50. package/dist-es/commands/UntagResourceCommand.js +18 -41
  51. package/dist-es/commands/UpdateAdapterCommand.js +18 -41
  52. package/dist-es/endpoint/EndpointParameters.js +6 -0
  53. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +6 -21
  54. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +6 -21
  55. package/dist-types/commands/AnalyzeIDCommand.d.ts +6 -21
  56. package/dist-types/commands/CreateAdapterCommand.d.ts +6 -21
  57. package/dist-types/commands/CreateAdapterVersionCommand.d.ts +6 -21
  58. package/dist-types/commands/DeleteAdapterCommand.d.ts +6 -21
  59. package/dist-types/commands/DeleteAdapterVersionCommand.d.ts +6 -21
  60. package/dist-types/commands/DetectDocumentTextCommand.d.ts +6 -21
  61. package/dist-types/commands/GetAdapterCommand.d.ts +6 -21
  62. package/dist-types/commands/GetAdapterVersionCommand.d.ts +6 -21
  63. package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +6 -21
  64. package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +6 -21
  65. package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +6 -21
  66. package/dist-types/commands/GetLendingAnalysisCommand.d.ts +6 -21
  67. package/dist-types/commands/GetLendingAnalysisSummaryCommand.d.ts +6 -21
  68. package/dist-types/commands/ListAdapterVersionsCommand.d.ts +6 -21
  69. package/dist-types/commands/ListAdaptersCommand.d.ts +6 -21
  70. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  71. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +6 -21
  72. package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +6 -21
  73. package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +6 -21
  74. package/dist-types/commands/StartLendingAnalysisCommand.d.ts +6 -21
  75. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  76. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  77. package/dist-types/commands/UpdateAdapterCommand.d.ts +6 -21
  78. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  79. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +14 -23
  81. package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +14 -23
  82. package/dist-types/ts3.4/commands/CreateAdapterCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/CreateAdapterVersionCommand.d.ts +12 -24
  84. package/dist-types/ts3.4/commands/DeleteAdapterCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/DeleteAdapterVersionCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/GetAdapterCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/GetAdapterVersionCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/GetLendingAnalysisCommand.d.ts +14 -23
  93. package/dist-types/ts3.4/commands/GetLendingAnalysisSummaryCommand.d.ts +12 -24
  94. package/dist-types/ts3.4/commands/ListAdapterVersionsCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/ListAdaptersCommand.d.ts +14 -23
  96. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +12 -24
  98. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +12 -24
  99. package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +12 -24
  100. package/dist-types/ts3.4/commands/StartLendingAnalysisCommand.d.ts +12 -24
  101. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/commands/UpdateAdapterCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  105. package/package.json +9 -9
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetDocumentTextDetectionCommand, se_GetDocumentTextDetectionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetDocumentTextDetectionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetDocumentTextDetectionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "GetDocumentTextDetectionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "GetDocumentTextDetection",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetDocumentTextDetectionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetDocumentTextDetectionCommand(output, context);
46
- }
7
+ export class GetDocumentTextDetectionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "GetDocumentTextDetection", {})
19
+ .n("TextractClient", "GetDocumentTextDetectionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetDocumentTextDetectionCommand)
22
+ .de(de_GetDocumentTextDetectionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetExpenseAnalysisCommand, se_GetExpenseAnalysisCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetExpenseAnalysisCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetExpenseAnalysisCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "GetExpenseAnalysisCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "GetExpenseAnalysis",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetExpenseAnalysisCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetExpenseAnalysisCommand(output, context);
46
- }
7
+ export class GetExpenseAnalysisCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "GetExpenseAnalysis", {})
19
+ .n("TextractClient", "GetExpenseAnalysisCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetExpenseAnalysisCommand)
22
+ .de(de_GetExpenseAnalysisCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetLendingAnalysisCommand, se_GetLendingAnalysisCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetLendingAnalysisCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetLendingAnalysisCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "GetLendingAnalysisCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "GetLendingAnalysis",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetLendingAnalysisCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetLendingAnalysisCommand(output, context);
46
- }
7
+ export class GetLendingAnalysisCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "GetLendingAnalysis", {})
19
+ .n("TextractClient", "GetLendingAnalysisCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetLendingAnalysisCommand)
22
+ .de(de_GetLendingAnalysisCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetLendingAnalysisSummaryCommand, se_GetLendingAnalysisSummaryCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetLendingAnalysisSummaryCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetLendingAnalysisSummaryCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "GetLendingAnalysisSummaryCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "GetLendingAnalysisSummary",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetLendingAnalysisSummaryCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetLendingAnalysisSummaryCommand(output, context);
46
- }
7
+ export class GetLendingAnalysisSummaryCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "GetLendingAnalysisSummary", {})
19
+ .n("TextractClient", "GetLendingAnalysisSummaryCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetLendingAnalysisSummaryCommand)
22
+ .de(de_GetLendingAnalysisSummaryCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListAdapterVersionsCommand, se_ListAdapterVersionsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListAdapterVersionsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListAdapterVersionsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "ListAdapterVersionsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "ListAdapterVersions",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListAdapterVersionsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListAdapterVersionsCommand(output, context);
46
- }
7
+ export class ListAdapterVersionsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "ListAdapterVersions", {})
19
+ .n("TextractClient", "ListAdapterVersionsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAdapterVersionsCommand)
22
+ .de(de_ListAdapterVersionsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListAdaptersCommand, se_ListAdaptersCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListAdaptersCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListAdaptersCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "ListAdaptersCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "ListAdapters",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListAdaptersCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListAdaptersCommand(output, context);
46
- }
7
+ export class ListAdaptersCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "ListAdapters", {})
19
+ .n("TextractClient", "ListAdaptersCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAdaptersCommand)
22
+ .de(de_ListAdaptersCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "ListTagsForResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "ListTagsForResource", {})
19
+ .n("TextractClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StartDocumentAnalysisCommand, se_StartDocumentAnalysisCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class StartDocumentAnalysisCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StartDocumentAnalysisCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "StartDocumentAnalysisCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "StartDocumentAnalysis",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StartDocumentAnalysisCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartDocumentAnalysisCommand(output, context);
46
- }
7
+ export class StartDocumentAnalysisCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "StartDocumentAnalysis", {})
19
+ .n("TextractClient", "StartDocumentAnalysisCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartDocumentAnalysisCommand)
22
+ .de(de_StartDocumentAnalysisCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StartDocumentTextDetectionCommand, se_StartDocumentTextDetectionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class StartDocumentTextDetectionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StartDocumentTextDetectionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "StartDocumentTextDetectionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "StartDocumentTextDetection",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StartDocumentTextDetectionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartDocumentTextDetectionCommand(output, context);
46
- }
7
+ export class StartDocumentTextDetectionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "StartDocumentTextDetection", {})
19
+ .n("TextractClient", "StartDocumentTextDetectionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartDocumentTextDetectionCommand)
22
+ .de(de_StartDocumentTextDetectionCommand)
23
+ .build() {
47
24
  }