@aws-sdk/client-textract 3.427.0 → 3.429.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/README.md +103 -7
- package/dist-cjs/Textract.js +24 -0
- package/dist-cjs/commands/CreateAdapterCommand.js +51 -0
- package/dist-cjs/commands/CreateAdapterVersionCommand.js +51 -0
- package/dist-cjs/commands/DeleteAdapterCommand.js +51 -0
- package/dist-cjs/commands/DeleteAdapterVersionCommand.js +51 -0
- package/dist-cjs/commands/GetAdapterCommand.js +51 -0
- package/dist-cjs/commands/GetAdapterVersionCommand.js +51 -0
- package/dist-cjs/commands/ListAdapterVersionsCommand.js +51 -0
- package/dist-cjs/commands/ListAdaptersCommand.js +51 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
- package/dist-cjs/commands/TagResourceCommand.js +51 -0
- package/dist-cjs/commands/UntagResourceCommand.js +51 -0
- package/dist-cjs/commands/UpdateAdapterCommand.js +51 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +92 -21
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAdapterVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListAdaptersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_json1_1.js +951 -40
- package/dist-es/Textract.js +24 -0
- package/dist-es/commands/CreateAdapterCommand.js +47 -0
- package/dist-es/commands/CreateAdapterVersionCommand.js +47 -0
- package/dist-es/commands/DeleteAdapterCommand.js +47 -0
- package/dist-es/commands/DeleteAdapterVersionCommand.js +47 -0
- package/dist-es/commands/GetAdapterCommand.js +47 -0
- package/dist-es/commands/GetAdapterVersionCommand.js +47 -0
- package/dist-es/commands/ListAdapterVersionsCommand.js +47 -0
- package/dist-es/commands/ListAdaptersCommand.js +47 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
- package/dist-es/commands/TagResourceCommand.js +47 -0
- package/dist-es/commands/UntagResourceCommand.js +47 -0
- package/dist-es/commands/UpdateAdapterCommand.js +47 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +84 -17
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAdapterVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListAdaptersPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +927 -40
- package/dist-types/Textract.d.ts +84 -0
- package/dist-types/TextractClient.d.ts +14 -2
- package/dist-types/commands/AnalyzeDocumentCommand.d.ts +11 -0
- package/dist-types/commands/CreateAdapterCommand.d.ts +128 -0
- package/dist-types/commands/CreateAdapterVersionCommand.d.ts +148 -0
- package/dist-types/commands/DeleteAdapterCommand.d.ts +101 -0
- package/dist-types/commands/DeleteAdapterVersionCommand.d.ts +103 -0
- package/dist-types/commands/GetAdapterCommand.d.ts +111 -0
- package/dist-types/commands/GetAdapterVersionCommand.d.ts +140 -0
- package/dist-types/commands/ListAdapterVersionsCommand.d.ts +116 -0
- package/dist-types/commands/ListAdaptersCommand.d.ts +110 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +102 -0
- package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +11 -0
- package/dist-types/commands/TagResourceCommand.d.ts +104 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +101 -0
- package/dist-types/commands/UpdateAdapterCommand.d.ts +114 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1002 -187
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAdapterVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAdaptersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +108 -0
- package/dist-types/ts3.4/Textract.d.ts +204 -0
- package/dist-types/ts3.4/TextractClient.d.ts +74 -2
- package/dist-types/ts3.4/commands/CreateAdapterCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateAdapterVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteAdapterCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAdapterVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAdapterCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetAdapterVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAdapterVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAdaptersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateAdapterCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +252 -55
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAdapterVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAdaptersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +144 -0
- package/package.json +34 -32
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListTagsForResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTagsForResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Lists all tags for an Amazon Textract resource.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { TextractClient, ListTagsForResourceCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
31
|
+
* // const { TextractClient, ListTagsForResourceCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
32
|
+
* const client = new TextractClient(config);
|
|
33
|
+
* const input = { // ListTagsForResourceRequest
|
|
34
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // ListTagsForResourceResponse
|
|
39
|
+
* // Tags: { // TagMap
|
|
40
|
+
* // "<keys>": "STRING_VALUE",
|
|
41
|
+
* // },
|
|
42
|
+
* // };
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
|
|
47
|
+
* @returns {@link ListTagsForResourceCommandOutput}
|
|
48
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
53
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
54
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link InternalServerError} (server fault)
|
|
57
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
60
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
61
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
62
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
63
|
+
* request parameter.
|
|
64
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
67
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
68
|
+
* contact Amazon Textract.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
71
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (server fault)
|
|
74
|
+
* <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link TextractServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, TextractClientResolvedConfig> {
|
|
84
|
+
readonly input: ListTagsForResourceCommandInput;
|
|
85
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
constructor(input: ListTagsForResourceCommandInput);
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
private serialize;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
private deserialize;
|
|
102
|
+
}
|
|
@@ -79,6 +79,17 @@ export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysi
|
|
|
79
79
|
* },
|
|
80
80
|
* ],
|
|
81
81
|
* },
|
|
82
|
+
* AdaptersConfig: { // AdaptersConfig
|
|
83
|
+
* Adapters: [ // Adapters // required
|
|
84
|
+
* { // Adapter
|
|
85
|
+
* AdapterId: "STRING_VALUE", // required
|
|
86
|
+
* Pages: [ // AdapterPages
|
|
87
|
+
* "STRING_VALUE",
|
|
88
|
+
* ],
|
|
89
|
+
* Version: "STRING_VALUE", // required
|
|
90
|
+
* },
|
|
91
|
+
* ],
|
|
92
|
+
* },
|
|
82
93
|
* };
|
|
83
94
|
* const command = new StartDocumentAnalysisCommand(input);
|
|
84
95
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link TagResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface TagResourceCommandInput extends TagResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link TagResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Adds one or more tags to the specified resource.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { TextractClient, TagResourceCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
31
|
+
* // const { TextractClient, TagResourceCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
32
|
+
* const client = new TextractClient(config);
|
|
33
|
+
* const input = { // TagResourceRequest
|
|
34
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
35
|
+
* Tags: { // TagMap // required
|
|
36
|
+
* "<keys>": "STRING_VALUE",
|
|
37
|
+
* },
|
|
38
|
+
* };
|
|
39
|
+
* const command = new TagResourceCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param TagResourceCommandInput - {@link TagResourceCommandInput}
|
|
46
|
+
* @returns {@link TagResourceCommandOutput}
|
|
47
|
+
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
53
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InternalServerError} (server fault)
|
|
56
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
59
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
60
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
61
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
62
|
+
* request parameter.
|
|
63
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
66
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
67
|
+
* contact Amazon Textract.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
70
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
73
|
+
* <p>Returned when a request cannot be completed as it would exceed a maximum service quota.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ThrottlingException} (server fault)
|
|
76
|
+
* <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ValidationException} (client fault)
|
|
79
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link TextractServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, TextractClientResolvedConfig> {
|
|
86
|
+
readonly input: TagResourceCommandInput;
|
|
87
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
constructor(input: TagResourceCommandInput);
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
private serialize;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
private deserialize;
|
|
104
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UntagResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UntagResourceCommandInput extends UntagResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UntagResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Removes any tags with the specified keys from the specified resource.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { TextractClient, UntagResourceCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
31
|
+
* // const { TextractClient, UntagResourceCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
32
|
+
* const client = new TextractClient(config);
|
|
33
|
+
* const input = { // UntagResourceRequest
|
|
34
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
35
|
+
* TagKeys: [ // TagKeyList // required
|
|
36
|
+
* "STRING_VALUE",
|
|
37
|
+
* ],
|
|
38
|
+
* };
|
|
39
|
+
* const command = new UntagResourceCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
|
|
46
|
+
* @returns {@link UntagResourceCommandOutput}
|
|
47
|
+
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
53
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InternalServerError} (server fault)
|
|
56
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
59
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
60
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
61
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
62
|
+
* request parameter.
|
|
63
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
66
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
67
|
+
* contact Amazon Textract.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
70
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (server fault)
|
|
73
|
+
* <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link TextractServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, TextractClientResolvedConfig> {
|
|
83
|
+
readonly input: UntagResourceCommandInput;
|
|
84
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
constructor(input: UntagResourceCommandInput);
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
private serialize;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
private deserialize;
|
|
101
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { UpdateAdapterRequest, UpdateAdapterResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateAdapterCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAdapterCommandInput extends UpdateAdapterRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAdapterCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAdapterCommandOutput extends UpdateAdapterResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Update the configuration for an adapter. FeatureTypes configurations cannot be updated.
|
|
27
|
+
* At least one new parameter must be specified as an argument.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { TextractClient, UpdateAdapterCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
32
|
+
* // const { TextractClient, UpdateAdapterCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
33
|
+
* const client = new TextractClient(config);
|
|
34
|
+
* const input = { // UpdateAdapterRequest
|
|
35
|
+
* AdapterId: "STRING_VALUE", // required
|
|
36
|
+
* Description: "STRING_VALUE",
|
|
37
|
+
* AdapterName: "STRING_VALUE",
|
|
38
|
+
* AutoUpdate: "ENABLED" || "DISABLED",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new UpdateAdapterCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // UpdateAdapterResponse
|
|
43
|
+
* // AdapterId: "STRING_VALUE",
|
|
44
|
+
* // AdapterName: "STRING_VALUE",
|
|
45
|
+
* // CreationTime: new Date("TIMESTAMP"),
|
|
46
|
+
* // Description: "STRING_VALUE",
|
|
47
|
+
* // FeatureTypes: [ // FeatureTypes
|
|
48
|
+
* // "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES" || "LAYOUT",
|
|
49
|
+
* // ],
|
|
50
|
+
* // AutoUpdate: "ENABLED" || "DISABLED",
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param UpdateAdapterCommandInput - {@link UpdateAdapterCommandInput}
|
|
56
|
+
* @returns {@link UpdateAdapterCommandOutput}
|
|
57
|
+
* @see {@link UpdateAdapterCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link UpdateAdapterCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
63
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ConflictException} (client fault)
|
|
66
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerError} (server fault)
|
|
69
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
72
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
73
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
74
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
75
|
+
* request parameter.
|
|
76
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
79
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
80
|
+
* contact Amazon Textract.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
83
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ThrottlingException} (server fault)
|
|
86
|
+
* <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link TextractServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
export declare class UpdateAdapterCommand extends $Command<UpdateAdapterCommandInput, UpdateAdapterCommandOutput, TextractClientResolvedConfig> {
|
|
96
|
+
readonly input: UpdateAdapterCommandInput;
|
|
97
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
constructor(input: UpdateAdapterCommandInput);
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateAdapterCommandInput, UpdateAdapterCommandOutput>;
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
private serialize;
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
private deserialize;
|
|
114
|
+
}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
export * from "./AnalyzeDocumentCommand";
|
|
2
2
|
export * from "./AnalyzeExpenseCommand";
|
|
3
3
|
export * from "./AnalyzeIDCommand";
|
|
4
|
+
export * from "./CreateAdapterCommand";
|
|
5
|
+
export * from "./CreateAdapterVersionCommand";
|
|
6
|
+
export * from "./DeleteAdapterCommand";
|
|
7
|
+
export * from "./DeleteAdapterVersionCommand";
|
|
4
8
|
export * from "./DetectDocumentTextCommand";
|
|
9
|
+
export * from "./GetAdapterCommand";
|
|
10
|
+
export * from "./GetAdapterVersionCommand";
|
|
5
11
|
export * from "./GetDocumentAnalysisCommand";
|
|
6
12
|
export * from "./GetDocumentTextDetectionCommand";
|
|
7
13
|
export * from "./GetExpenseAnalysisCommand";
|
|
8
14
|
export * from "./GetLendingAnalysisCommand";
|
|
9
15
|
export * from "./GetLendingAnalysisSummaryCommand";
|
|
16
|
+
export * from "./ListAdapterVersionsCommand";
|
|
17
|
+
export * from "./ListAdaptersCommand";
|
|
18
|
+
export * from "./ListTagsForResourceCommand";
|
|
10
19
|
export * from "./StartDocumentAnalysisCommand";
|
|
11
20
|
export * from "./StartDocumentTextDetectionCommand";
|
|
12
21
|
export * from "./StartExpenseAnalysisCommand";
|
|
13
22
|
export * from "./StartLendingAnalysisCommand";
|
|
23
|
+
export * from "./TagResourceCommand";
|
|
24
|
+
export * from "./UntagResourceCommand";
|
|
25
|
+
export * from "./UpdateAdapterCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export * from "./TextractClient";
|
|
|
9
9
|
export * from "./Textract";
|
|
10
10
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
11
11
|
export * from "./commands";
|
|
12
|
+
export * from "./pagination";
|
|
12
13
|
export * from "./models";
|
|
13
14
|
export { TextractServiceException } from "./models/TextractServiceException";
|