@aws-sdk/client-textract 3.1173.0 → 3.1174.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 +91 -0
- package/dist-cjs/index.js +611 -10
- package/dist-es/Textract.js +30 -0
- package/dist-es/commands/CreateBlueprintCommand.js +4 -0
- package/dist-es/commands/CreateBlueprintVersionCommand.js +4 -0
- package/dist-es/commands/CreateProjectCommand.js +4 -0
- package/dist-es/commands/DeleteBlueprintCommand.js +4 -0
- package/dist-es/commands/DeleteProjectCommand.js +4 -0
- package/dist-es/commands/GetBlueprintCommand.js +4 -0
- package/dist-es/commands/GetDocumentInsightsCommand.js +4 -0
- package/dist-es/commands/GetProjectCommand.js +4 -0
- package/dist-es/commands/ListBlueprintsCommand.js +4 -0
- package/dist-es/commands/ListProjectsCommand.js +4 -0
- package/dist-es/commands/StartDocumentInsightsCommand.js +4 -0
- package/dist-es/commands/UpdateBlueprintCommand.js +4 -0
- package/dist-es/commands/UpdateProjectCommand.js +4 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/models/enums.js +68 -0
- package/dist-es/pagination/ListBlueprintsPaginator.js +4 -0
- package/dist-es/pagination/ListProjectsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +403 -9
- package/dist-types/Textract.d.ts +107 -0
- package/dist-types/TextractClient.d.ts +15 -2
- package/dist-types/commands/CreateBlueprintCommand.d.ts +115 -0
- package/dist-types/commands/CreateBlueprintVersionCommand.d.ts +108 -0
- package/dist-types/commands/CreateProjectCommand.d.ts +171 -0
- package/dist-types/commands/DeleteBlueprintCommand.d.ts +97 -0
- package/dist-types/commands/DeleteProjectCommand.d.ts +93 -0
- package/dist-types/commands/GetBlueprintCommand.d.ts +106 -0
- package/dist-types/commands/GetDocumentInsightsCommand.d.ts +101 -0
- package/dist-types/commands/GetProjectCommand.d.ts +160 -0
- package/dist-types/commands/ListBlueprintsCommand.d.ts +114 -0
- package/dist-types/commands/ListProjectsCommand.d.ts +110 -0
- package/dist-types/commands/StartDocumentInsightsCommand.d.ts +130 -0
- package/dist-types/commands/UpdateBlueprintCommand.d.ts +106 -0
- package/dist-types/commands/UpdateProjectCommand.d.ts +168 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/enums.d.ts +132 -0
- package/dist-types/models/models_0.d.ts +1025 -14
- package/dist-types/pagination/ListBlueprintsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProjectsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +62 -0
- package/dist-types/ts3.4/Textract.d.ts +234 -0
- package/dist-types/ts3.4/TextractClient.d.ts +77 -2
- package/dist-types/ts3.4/commands/CreateBlueprintCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateBlueprintVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteBlueprintCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetBlueprintCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDocumentInsightsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListBlueprintsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartDocumentInsightsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateBlueprintCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/enums.d.ts +78 -0
- package/dist-types/ts3.4/models/models_0.d.ts +232 -0
- package/dist-types/ts3.4/pagination/ListBlueprintsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +62 -0
- package/package.json +1 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateProjectRequest, CreateProjectResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateProjectCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateProjectCommandInput extends CreateProjectRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateProjectCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateProjectCommandOutput extends CreateProjectResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateProjectCommand_base: {
|
|
22
|
+
new (input: CreateProjectCommandInput): import("@smithy/core/client").CommandImpl<CreateProjectCommandInput, CreateProjectCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateProjectCommandInput): import("@smithy/core/client").CommandImpl<CreateProjectCommandInput, CreateProjectCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates a project that groups the configuration used to run document insights jobs.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { TextractClient, CreateProjectCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
32
|
+
* // const { TextractClient, CreateProjectCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
33
|
+
* // import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
34
|
+
* const config = {}; // type is TextractClientConfig
|
|
35
|
+
* const client = new TextractClient(config);
|
|
36
|
+
* const input = { // CreateProjectRequest
|
|
37
|
+
* ClientRequestToken: "STRING_VALUE",
|
|
38
|
+
* ProjectName: "STRING_VALUE", // required
|
|
39
|
+
* ProjectDescription: "STRING_VALUE",
|
|
40
|
+
* ExtractionConfiguration: { // ExtractionConfiguration
|
|
41
|
+
* BoundingBox: { // BoundingBoxConfiguration
|
|
42
|
+
* State: "ENABLED" || "DISABLED", // required
|
|
43
|
+
* },
|
|
44
|
+
* Granularity: { // ExtractionGranularity
|
|
45
|
+
* Types: [ // ExtractionGranularityTypes
|
|
46
|
+
* "DOCUMENT" || "PAGE" || "ELEMENT" || "WORD" || "LINE",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* OutputFormat: { // OutputFormat
|
|
50
|
+
* AdditionalFileFormat: { // OutputAdditionalFileFormat
|
|
51
|
+
* State: "ENABLED" || "DISABLED", // required
|
|
52
|
+
* },
|
|
53
|
+
* TextFormat: { // OutputTextFormat
|
|
54
|
+
* Types: [ // OutputTextFormatTypes
|
|
55
|
+
* "PLAIN_TEXT" || "MARKDOWN" || "HTML" || "CSV",
|
|
56
|
+
* ],
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* GenerativeConfiguration: { // GenerativeConfiguration
|
|
61
|
+
* Summarization: { // SummarizationConfiguration
|
|
62
|
+
* State: "ENABLED" || "DISABLED", // required
|
|
63
|
+
* },
|
|
64
|
+
* FigureCaption: { // FigureCaptionConfiguration
|
|
65
|
+
* State: "ENABLED" || "DISABLED", // required
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* CustomConfiguration: { // CustomConfiguration
|
|
69
|
+
* Blueprints: [ // BlueprintItems // required
|
|
70
|
+
* { // BlueprintItem
|
|
71
|
+
* BlueprintArn: "STRING_VALUE", // required
|
|
72
|
+
* BlueprintVersion: "STRING_VALUE",
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* FallbackBlueprints: [ // FallbackBlueprintItems
|
|
76
|
+
* {
|
|
77
|
+
* BlueprintArn: "STRING_VALUE", // required
|
|
78
|
+
* BlueprintVersion: "STRING_VALUE",
|
|
79
|
+
* },
|
|
80
|
+
* ],
|
|
81
|
+
* },
|
|
82
|
+
* SplitterConfiguration: { // SplitterConfiguration
|
|
83
|
+
* State: "ENABLED" || "DISABLED", // required
|
|
84
|
+
* },
|
|
85
|
+
* SensitiveDataConfiguration: { // SensitiveDataConfiguration
|
|
86
|
+
* DetectionMode: "DETECTION" || "DETECTION_AND_REDACTION" || "DISABLED", // required
|
|
87
|
+
* PiiEntitiesConfiguration: { // PIIEntitiesConfiguration
|
|
88
|
+
* PiiEntityTypes: [ // PIIEntityTypes // required
|
|
89
|
+
* "ALL" || "ADDRESS" || "AGE" || "NAME" || "EMAIL" || "PHONE" || "USERNAME" || "PASSWORD" || "DRIVER_ID" || "LICENSE_PLATE" || "VEHICLE_IDENTIFICATION_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "PIN" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "SWIFT_CODE" || "IP_ADDRESS" || "MAC_ADDRESS" || "URL" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
90
|
+
* ],
|
|
91
|
+
* RedactionMaskMode: "PII" || "ENTITY_TYPE", // required
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* EncryptionConfiguration: { // EncryptionConfiguration
|
|
95
|
+
* KmsKeyId: "STRING_VALUE", // required
|
|
96
|
+
* KmsEncryptionContext: { // KmsEncryptionContext
|
|
97
|
+
* "<keys>": "STRING_VALUE",
|
|
98
|
+
* },
|
|
99
|
+
* },
|
|
100
|
+
* Tags: { // TagMap
|
|
101
|
+
* "<keys>": "STRING_VALUE",
|
|
102
|
+
* },
|
|
103
|
+
* };
|
|
104
|
+
* const command = new CreateProjectCommand(input);
|
|
105
|
+
* const response = await client.send(command);
|
|
106
|
+
* // { // CreateProjectResponse
|
|
107
|
+
* // ProjectArn: "STRING_VALUE", // required
|
|
108
|
+
* // Status: "COMPLETED" || "FAILED",
|
|
109
|
+
* // };
|
|
110
|
+
*
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @param CreateProjectCommandInput - {@link CreateProjectCommandInput}
|
|
114
|
+
* @returns {@link CreateProjectCommandOutput}
|
|
115
|
+
* @see {@link CreateProjectCommandInput} for command's `input` shape.
|
|
116
|
+
* @see {@link CreateProjectCommandOutput} for command's `response` shape.
|
|
117
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
120
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
121
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link ConflictException} (client fault)
|
|
124
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link InternalServerError} (server fault)
|
|
127
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
130
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
131
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
132
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
133
|
+
* request parameter.
|
|
134
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
137
|
+
* <p>An Amazon Textract service limit was exceeded. For example, if you start too many
|
|
138
|
+
* asynchronous jobs concurrently, calls to start operations
|
|
139
|
+
* (<code>StartDocumentTextDetection</code>, for example) raise a LimitExceededException
|
|
140
|
+
* exception (HTTP status code: 400) until the number of concurrently running jobs is below
|
|
141
|
+
* the Amazon Textract service limit. </p>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
144
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
145
|
+
* contact Amazon Textract.</p>
|
|
146
|
+
*
|
|
147
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
148
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link ValidationException} (client fault)
|
|
151
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link TextractServiceException}
|
|
154
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
155
|
+
*
|
|
156
|
+
*
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export declare class CreateProjectCommand extends CreateProjectCommand_base {
|
|
160
|
+
/** @internal type navigation helper, not in runtime. */
|
|
161
|
+
protected static __types: {
|
|
162
|
+
api: {
|
|
163
|
+
input: CreateProjectRequest;
|
|
164
|
+
output: CreateProjectResponse;
|
|
165
|
+
};
|
|
166
|
+
sdk: {
|
|
167
|
+
input: CreateProjectCommandInput;
|
|
168
|
+
output: CreateProjectCommandOutput;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DeleteBlueprintRequest, DeleteBlueprintResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DeleteBlueprintCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DeleteBlueprintCommandInput extends DeleteBlueprintRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DeleteBlueprintCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteBlueprintCommandOutput extends DeleteBlueprintResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DeleteBlueprintCommand_base: {
|
|
22
|
+
new (input: DeleteBlueprintCommandInput): import("@smithy/core/client").CommandImpl<DeleteBlueprintCommandInput, DeleteBlueprintCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DeleteBlueprintCommandInput): import("@smithy/core/client").CommandImpl<DeleteBlueprintCommandInput, DeleteBlueprintCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Deletes a blueprint, or a specific version of a blueprint.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { TextractClient, DeleteBlueprintCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
32
|
+
* // const { TextractClient, DeleteBlueprintCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
33
|
+
* // import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
34
|
+
* const config = {}; // type is TextractClientConfig
|
|
35
|
+
* const client = new TextractClient(config);
|
|
36
|
+
* const input = { // DeleteBlueprintRequest
|
|
37
|
+
* BlueprintArn: "STRING_VALUE", // required
|
|
38
|
+
* BlueprintVersion: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteBlueprintCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param DeleteBlueprintCommandInput - {@link DeleteBlueprintCommandInput}
|
|
47
|
+
* @returns {@link DeleteBlueprintCommandOutput}
|
|
48
|
+
* @see {@link DeleteBlueprintCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link DeleteBlueprintCommandOutput} 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 ConflictException} (client fault)
|
|
57
|
+
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InternalServerError} (server fault)
|
|
60
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
63
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
64
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
65
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
66
|
+
* request parameter.
|
|
67
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
70
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
71
|
+
* contact Amazon Textract.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </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
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class DeleteBlueprintCommand extends DeleteBlueprintCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: DeleteBlueprintRequest;
|
|
90
|
+
output: {};
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: DeleteBlueprintCommandInput;
|
|
94
|
+
output: DeleteBlueprintCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DeleteProjectRequest, DeleteProjectResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DeleteProjectCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DeleteProjectCommandInput extends DeleteProjectRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DeleteProjectCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteProjectCommandOutput extends DeleteProjectResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DeleteProjectCommand_base: {
|
|
22
|
+
new (input: DeleteProjectCommandInput): import("@smithy/core/client").CommandImpl<DeleteProjectCommandInput, DeleteProjectCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DeleteProjectCommandInput): import("@smithy/core/client").CommandImpl<DeleteProjectCommandInput, DeleteProjectCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Deletes a project.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { TextractClient, DeleteProjectCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
32
|
+
* // const { TextractClient, DeleteProjectCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
33
|
+
* // import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
34
|
+
* const config = {}; // type is TextractClientConfig
|
|
35
|
+
* const client = new TextractClient(config);
|
|
36
|
+
* const input = { // DeleteProjectRequest
|
|
37
|
+
* ProjectArn: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DeleteProjectCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param DeleteProjectCommandInput - {@link DeleteProjectCommandInput}
|
|
46
|
+
* @returns {@link DeleteProjectCommandOutput}
|
|
47
|
+
* @see {@link DeleteProjectCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link DeleteProjectCommandOutput} 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 ValidationException} (client fault)
|
|
73
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link TextractServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class DeleteProjectCommand extends DeleteProjectCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: DeleteProjectRequest;
|
|
86
|
+
output: {};
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: DeleteProjectCommandInput;
|
|
90
|
+
output: DeleteProjectCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetBlueprintRequest, GetBlueprintResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetBlueprintCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetBlueprintCommandInput extends GetBlueprintRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetBlueprintCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetBlueprintCommandOutput extends GetBlueprintResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetBlueprintCommand_base: {
|
|
22
|
+
new (input: GetBlueprintCommandInput): import("@smithy/core/client").CommandImpl<GetBlueprintCommandInput, GetBlueprintCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetBlueprintCommandInput): import("@smithy/core/client").CommandImpl<GetBlueprintCommandInput, GetBlueprintCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets the details of a blueprint, including its schema, encryption settings, and
|
|
28
|
+
* timestamps.</p>
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { TextractClient, GetBlueprintCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
33
|
+
* // const { TextractClient, GetBlueprintCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
34
|
+
* // import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
35
|
+
* const config = {}; // type is TextractClientConfig
|
|
36
|
+
* const client = new TextractClient(config);
|
|
37
|
+
* const input = { // GetBlueprintRequest
|
|
38
|
+
* BlueprintArn: "STRING_VALUE", // required
|
|
39
|
+
* BlueprintVersion: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetBlueprintCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetBlueprintResponse
|
|
44
|
+
* // BlueprintArn: "STRING_VALUE", // required
|
|
45
|
+
* // BlueprintName: "STRING_VALUE", // required
|
|
46
|
+
* // BlueprintVersion: "STRING_VALUE",
|
|
47
|
+
* // Schema: "STRING_VALUE", // required
|
|
48
|
+
* // KmsKeyId: "STRING_VALUE",
|
|
49
|
+
* // KmsEncryptionContext: { // KmsEncryptionContext
|
|
50
|
+
* // "<keys>": "STRING_VALUE",
|
|
51
|
+
* // },
|
|
52
|
+
* // CreationTime: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // LastModifiedTime: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param GetBlueprintCommandInput - {@link GetBlueprintCommandInput}
|
|
59
|
+
* @returns {@link GetBlueprintCommandOutput}
|
|
60
|
+
* @see {@link GetBlueprintCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link GetBlueprintCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
65
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
66
|
+
* of an authorized user or IAM role to perform the operation.</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 ValidationException} (client fault)
|
|
86
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link TextractServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class GetBlueprintCommand extends GetBlueprintCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: GetBlueprintRequest;
|
|
99
|
+
output: GetBlueprintResponse;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: GetBlueprintCommandInput;
|
|
103
|
+
output: GetBlueprintCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetDocumentInsightsRequest, GetDocumentInsightsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetDocumentInsightsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetDocumentInsightsCommandInput extends GetDocumentInsightsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetDocumentInsightsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetDocumentInsightsCommandOutput extends GetDocumentInsightsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetDocumentInsightsCommand_base: {
|
|
22
|
+
new (input: GetDocumentInsightsCommandInput): import("@smithy/core/client").CommandImpl<GetDocumentInsightsCommandInput, GetDocumentInsightsCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetDocumentInsightsCommandInput): import("@smithy/core/client").CommandImpl<GetDocumentInsightsCommandInput, GetDocumentInsightsCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets the status and results of a document insights job that was started by
|
|
28
|
+
* <a>StartDocumentInsights</a>.</p>
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { TextractClient, GetDocumentInsightsCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
33
|
+
* // const { TextractClient, GetDocumentInsightsCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
34
|
+
* // import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
35
|
+
* const config = {}; // type is TextractClientConfig
|
|
36
|
+
* const client = new TextractClient(config);
|
|
37
|
+
* const input = { // GetDocumentInsightsRequest
|
|
38
|
+
* JobArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetDocumentInsightsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetDocumentInsightsResponse
|
|
43
|
+
* // Status: "IN_PROGRESS" || "SUCCEEDED" || "FAILED" || "PARTIAL_SUCCESS", // required
|
|
44
|
+
* // OutputConfiguration: { // OutputConfiguration
|
|
45
|
+
* // S3Uri: "STRING_VALUE", // required
|
|
46
|
+
* // },
|
|
47
|
+
* // ErrorType: "STRING_VALUE",
|
|
48
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param GetDocumentInsightsCommandInput - {@link GetDocumentInsightsCommandInput}
|
|
54
|
+
* @returns {@link GetDocumentInsightsCommandOutput}
|
|
55
|
+
* @see {@link GetDocumentInsightsCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link GetDocumentInsightsCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
61
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerError} (server fault)
|
|
64
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InvalidJobIdException} (client fault)
|
|
67
|
+
* <p>An invalid job identifier was passed to an asynchronous analysis operation.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
70
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
71
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
72
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
73
|
+
* request parameter.
|
|
74
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
77
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
78
|
+
* contact Amazon Textract.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link TextractServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class GetDocumentInsightsCommand extends GetDocumentInsightsCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: GetDocumentInsightsRequest;
|
|
94
|
+
output: GetDocumentInsightsResponse;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: GetDocumentInsightsCommandInput;
|
|
98
|
+
output: GetDocumentInsightsCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|