@aws-sdk/client-textract 3.1172.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,160 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetProjectRequest, GetProjectResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetProjectCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetProjectCommandInput extends GetProjectRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetProjectCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetProjectCommandOutput extends GetProjectResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetProjectCommand_base: {
|
|
22
|
+
new (input: GetProjectCommandInput): import("@smithy/core/client").CommandImpl<GetProjectCommandInput, GetProjectCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetProjectCommandInput): import("@smithy/core/client").CommandImpl<GetProjectCommandInput, GetProjectCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets the details of a project, including its configuration, status, and timestamps.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { TextractClient, GetProjectCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
32
|
+
* // const { TextractClient, GetProjectCommand } = 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 = { // GetProjectRequest
|
|
37
|
+
* ProjectArn: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetProjectCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetProjectResponse
|
|
42
|
+
* // ProjectArn: "STRING_VALUE", // required
|
|
43
|
+
* // ProjectName: "STRING_VALUE", // required
|
|
44
|
+
* // ProjectDescription: "STRING_VALUE",
|
|
45
|
+
* // Status: "COMPLETED" || "FAILED", // required
|
|
46
|
+
* // ExtractionConfiguration: { // ExtractionConfiguration
|
|
47
|
+
* // BoundingBox: { // BoundingBoxConfiguration
|
|
48
|
+
* // State: "ENABLED" || "DISABLED", // required
|
|
49
|
+
* // },
|
|
50
|
+
* // Granularity: { // ExtractionGranularity
|
|
51
|
+
* // Types: [ // ExtractionGranularityTypes
|
|
52
|
+
* // "DOCUMENT" || "PAGE" || "ELEMENT" || "WORD" || "LINE",
|
|
53
|
+
* // ],
|
|
54
|
+
* // },
|
|
55
|
+
* // OutputFormat: { // OutputFormat
|
|
56
|
+
* // AdditionalFileFormat: { // OutputAdditionalFileFormat
|
|
57
|
+
* // State: "ENABLED" || "DISABLED", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // TextFormat: { // OutputTextFormat
|
|
60
|
+
* // Types: [ // OutputTextFormatTypes
|
|
61
|
+
* // "PLAIN_TEXT" || "MARKDOWN" || "HTML" || "CSV",
|
|
62
|
+
* // ],
|
|
63
|
+
* // },
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // GenerativeConfiguration: { // GenerativeConfiguration
|
|
67
|
+
* // Summarization: { // SummarizationConfiguration
|
|
68
|
+
* // State: "ENABLED" || "DISABLED", // required
|
|
69
|
+
* // },
|
|
70
|
+
* // FigureCaption: { // FigureCaptionConfiguration
|
|
71
|
+
* // State: "ENABLED" || "DISABLED", // required
|
|
72
|
+
* // },
|
|
73
|
+
* // },
|
|
74
|
+
* // CustomConfiguration: { // CustomConfiguration
|
|
75
|
+
* // Blueprints: [ // BlueprintItems // required
|
|
76
|
+
* // { // BlueprintItem
|
|
77
|
+
* // BlueprintArn: "STRING_VALUE", // required
|
|
78
|
+
* // BlueprintVersion: "STRING_VALUE",
|
|
79
|
+
* // },
|
|
80
|
+
* // ],
|
|
81
|
+
* // FallbackBlueprints: [ // FallbackBlueprintItems
|
|
82
|
+
* // {
|
|
83
|
+
* // BlueprintArn: "STRING_VALUE", // required
|
|
84
|
+
* // BlueprintVersion: "STRING_VALUE",
|
|
85
|
+
* // },
|
|
86
|
+
* // ],
|
|
87
|
+
* // },
|
|
88
|
+
* // SplitterConfiguration: { // SplitterConfiguration
|
|
89
|
+
* // State: "ENABLED" || "DISABLED", // required
|
|
90
|
+
* // },
|
|
91
|
+
* // SensitiveDataConfiguration: { // SensitiveDataConfiguration
|
|
92
|
+
* // DetectionMode: "DETECTION" || "DETECTION_AND_REDACTION" || "DISABLED", // required
|
|
93
|
+
* // PiiEntitiesConfiguration: { // PIIEntitiesConfiguration
|
|
94
|
+
* // PiiEntityTypes: [ // PIIEntityTypes // required
|
|
95
|
+
* // "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",
|
|
96
|
+
* // ],
|
|
97
|
+
* // RedactionMaskMode: "PII" || "ENTITY_TYPE", // required
|
|
98
|
+
* // },
|
|
99
|
+
* // },
|
|
100
|
+
* // EncryptionConfiguration: { // EncryptionConfiguration
|
|
101
|
+
* // KmsKeyId: "STRING_VALUE", // required
|
|
102
|
+
* // KmsEncryptionContext: { // KmsEncryptionContext
|
|
103
|
+
* // "<keys>": "STRING_VALUE",
|
|
104
|
+
* // },
|
|
105
|
+
* // },
|
|
106
|
+
* // CreationTime: new Date("TIMESTAMP"), // required
|
|
107
|
+
* // LastModifiedTime: new Date("TIMESTAMP"), // required
|
|
108
|
+
* // };
|
|
109
|
+
*
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* @param GetProjectCommandInput - {@link GetProjectCommandInput}
|
|
113
|
+
* @returns {@link GetProjectCommandOutput}
|
|
114
|
+
* @see {@link GetProjectCommandInput} for command's `input` shape.
|
|
115
|
+
* @see {@link GetProjectCommandOutput} for command's `response` shape.
|
|
116
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
119
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
120
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link InternalServerError} (server fault)
|
|
123
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
126
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
127
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
128
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
129
|
+
* request parameter.
|
|
130
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
133
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
134
|
+
* contact Amazon Textract.</p>
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
137
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link ValidationException} (client fault)
|
|
140
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link TextractServiceException}
|
|
143
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
144
|
+
*
|
|
145
|
+
*
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export declare class GetProjectCommand extends GetProjectCommand_base {
|
|
149
|
+
/** @internal type navigation helper, not in runtime. */
|
|
150
|
+
protected static __types: {
|
|
151
|
+
api: {
|
|
152
|
+
input: GetProjectRequest;
|
|
153
|
+
output: GetProjectResponse;
|
|
154
|
+
};
|
|
155
|
+
sdk: {
|
|
156
|
+
input: GetProjectCommandInput;
|
|
157
|
+
output: GetProjectCommandOutput;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListBlueprintsRequest, ListBlueprintsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListBlueprintsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListBlueprintsCommandInput extends ListBlueprintsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListBlueprintsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListBlueprintsCommandOutput extends ListBlueprintsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListBlueprintsCommand_base: {
|
|
22
|
+
new (input: ListBlueprintsCommandInput): import("@smithy/core/client").CommandImpl<ListBlueprintsCommandInput, ListBlueprintsCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListBlueprintsCommandInput]): import("@smithy/core/client").CommandImpl<ListBlueprintsCommandInput, ListBlueprintsCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the blueprints that are available to the caller, with optional filtering by
|
|
28
|
+
* project and resource owner. The results are paginated. If the response includes a
|
|
29
|
+
* <code>NextToken</code> value, pass it in a subsequent call to retrieve the next page of
|
|
30
|
+
* results.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { TextractClient, ListBlueprintsCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
35
|
+
* // const { TextractClient, ListBlueprintsCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
36
|
+
* // import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
37
|
+
* const config = {}; // type is TextractClientConfig
|
|
38
|
+
* const client = new TextractClient(config);
|
|
39
|
+
* const input = { // ListBlueprintsRequest
|
|
40
|
+
* MaxResults: Number("int"),
|
|
41
|
+
* NextToken: "STRING_VALUE",
|
|
42
|
+
* BlueprintArn: "STRING_VALUE",
|
|
43
|
+
* ProjectFilter: { // ProjectFilter
|
|
44
|
+
* ProjectArn: "STRING_VALUE", // required
|
|
45
|
+
* },
|
|
46
|
+
* ResourceOwner: "ACCOUNT" || "SERVICE",
|
|
47
|
+
* };
|
|
48
|
+
* const command = new ListBlueprintsCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // ListBlueprintsResponse
|
|
51
|
+
* // Blueprints: [ // BlueprintSummaryList // required
|
|
52
|
+
* // { // BlueprintSummary
|
|
53
|
+
* // BlueprintArn: "STRING_VALUE", // required
|
|
54
|
+
* // BlueprintName: "STRING_VALUE",
|
|
55
|
+
* // BlueprintVersion: "STRING_VALUE",
|
|
56
|
+
* // ResourceOwner: "ACCOUNT" || "SERVICE",
|
|
57
|
+
* // CreationTime: new Date("TIMESTAMP"), // required
|
|
58
|
+
* // LastModifiedTime: new Date("TIMESTAMP"),
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // NextToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListBlueprintsCommandInput - {@link ListBlueprintsCommandInput}
|
|
67
|
+
* @returns {@link ListBlueprintsCommandOutput}
|
|
68
|
+
* @see {@link ListBlueprintsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListBlueprintsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
74
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link InternalServerError} (server fault)
|
|
77
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
80
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
81
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
82
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
83
|
+
* request parameter.
|
|
84
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
87
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
88
|
+
* contact Amazon Textract.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
91
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link TextractServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class ListBlueprintsCommand extends ListBlueprintsCommand_base {
|
|
103
|
+
/** @internal type navigation helper, not in runtime. */
|
|
104
|
+
protected static __types: {
|
|
105
|
+
api: {
|
|
106
|
+
input: ListBlueprintsRequest;
|
|
107
|
+
output: ListBlueprintsResponse;
|
|
108
|
+
};
|
|
109
|
+
sdk: {
|
|
110
|
+
input: ListBlueprintsCommandInput;
|
|
111
|
+
output: ListBlueprintsCommandOutput;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListProjectsRequest, ListProjectsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListProjectsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListProjectsCommandInput extends ListProjectsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListProjectsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListProjectsCommandOutput extends ListProjectsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListProjectsCommand_base: {
|
|
22
|
+
new (input: ListProjectsCommandInput): import("@smithy/core/client").CommandImpl<ListProjectsCommandInput, ListProjectsCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListProjectsCommandInput]): import("@smithy/core/client").CommandImpl<ListProjectsCommandInput, ListProjectsCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the projects that are available to the caller, with optional filtering by
|
|
28
|
+
* blueprint. The results are paginated. If the response includes a <code>NextToken</code>
|
|
29
|
+
* value, pass it in a subsequent call to retrieve the next page of results.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { TextractClient, ListProjectsCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
34
|
+
* // const { TextractClient, ListProjectsCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
35
|
+
* // import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
36
|
+
* const config = {}; // type is TextractClientConfig
|
|
37
|
+
* const client = new TextractClient(config);
|
|
38
|
+
* const input = { // ListProjectsRequest
|
|
39
|
+
* MaxResults: Number("int"),
|
|
40
|
+
* NextToken: "STRING_VALUE",
|
|
41
|
+
* BlueprintFilter: { // BlueprintFilter
|
|
42
|
+
* BlueprintArn: "STRING_VALUE", // required
|
|
43
|
+
* BlueprintVersion: "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* const command = new ListProjectsCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // ListProjectsResponse
|
|
49
|
+
* // Projects: [ // ProjectSummaryList // required
|
|
50
|
+
* // { // ProjectSummary
|
|
51
|
+
* // ProjectArn: "STRING_VALUE", // required
|
|
52
|
+
* // ProjectName: "STRING_VALUE",
|
|
53
|
+
* // CreationTime: new Date("TIMESTAMP"), // required
|
|
54
|
+
* // LastModifiedTime: new Date("TIMESTAMP"),
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // NextToken: "STRING_VALUE",
|
|
58
|
+
* // };
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param ListProjectsCommandInput - {@link ListProjectsCommandInput}
|
|
63
|
+
* @returns {@link ListProjectsCommandOutput}
|
|
64
|
+
* @see {@link ListProjectsCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link ListProjectsCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
69
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
70
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerError} (server fault)
|
|
73
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
76
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
77
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
78
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
79
|
+
* request parameter.
|
|
80
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
83
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
84
|
+
* contact Amazon Textract.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
87
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ValidationException} (client fault)
|
|
90
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link TextractServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
94
|
+
*
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export declare class ListProjectsCommand extends ListProjectsCommand_base {
|
|
99
|
+
/** @internal type navigation helper, not in runtime. */
|
|
100
|
+
protected static __types: {
|
|
101
|
+
api: {
|
|
102
|
+
input: ListProjectsRequest;
|
|
103
|
+
output: ListProjectsResponse;
|
|
104
|
+
};
|
|
105
|
+
sdk: {
|
|
106
|
+
input: ListProjectsCommandInput;
|
|
107
|
+
output: ListProjectsCommandOutput;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { StartDocumentInsightsRequest, StartDocumentInsightsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link StartDocumentInsightsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface StartDocumentInsightsCommandInput extends StartDocumentInsightsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link StartDocumentInsightsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface StartDocumentInsightsCommandOutput extends StartDocumentInsightsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const StartDocumentInsightsCommand_base: {
|
|
22
|
+
new (input: StartDocumentInsightsCommandInput): import("@smithy/core/client").CommandImpl<StartDocumentInsightsCommandInput, StartDocumentInsightsCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: StartDocumentInsightsCommandInput): import("@smithy/core/client").CommandImpl<StartDocumentInsightsCommandInput, StartDocumentInsightsCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Starts an asynchronous job that analyzes a document using the configuration defined by a
|
|
28
|
+
* project or a set of blueprints. Use <a>GetDocumentInsights</a> to
|
|
29
|
+
* retrieve the results of the job.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { TextractClient, StartDocumentInsightsCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
34
|
+
* // const { TextractClient, StartDocumentInsightsCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
35
|
+
* // import type { TextractClientConfig } from "@aws-sdk/client-textract";
|
|
36
|
+
* const config = {}; // type is TextractClientConfig
|
|
37
|
+
* const client = new TextractClient(config);
|
|
38
|
+
* const input = { // StartDocumentInsightsRequest
|
|
39
|
+
* InputConfiguration: { // InputConfiguration
|
|
40
|
+
* S3Uri: "STRING_VALUE", // required
|
|
41
|
+
* },
|
|
42
|
+
* OutputConfiguration: { // OutputConfiguration
|
|
43
|
+
* S3Uri: "STRING_VALUE", // required
|
|
44
|
+
* },
|
|
45
|
+
* ProjectArn: "STRING_VALUE",
|
|
46
|
+
* Blueprints: [ // BlueprintItems
|
|
47
|
+
* { // BlueprintItem
|
|
48
|
+
* BlueprintArn: "STRING_VALUE", // required
|
|
49
|
+
* BlueprintVersion: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* EncryptionConfiguration: { // EncryptionConfiguration
|
|
53
|
+
* KmsKeyId: "STRING_VALUE", // required
|
|
54
|
+
* KmsEncryptionContext: { // KmsEncryptionContext
|
|
55
|
+
* "<keys>": "STRING_VALUE",
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* NotificationConfiguration: { // NotificationConfiguration
|
|
59
|
+
* EventBridgeConfiguration: { // EventBridgeConfiguration
|
|
60
|
+
* State: "ENABLED" || "DISABLED", // required
|
|
61
|
+
* },
|
|
62
|
+
* },
|
|
63
|
+
* Tags: { // TagMap
|
|
64
|
+
* "<keys>": "STRING_VALUE",
|
|
65
|
+
* },
|
|
66
|
+
* };
|
|
67
|
+
* const command = new StartDocumentInsightsCommand(input);
|
|
68
|
+
* const response = await client.send(command);
|
|
69
|
+
* // { // StartDocumentInsightsResponse
|
|
70
|
+
* // JobArn: "STRING_VALUE", // required
|
|
71
|
+
* // };
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param StartDocumentInsightsCommandInput - {@link StartDocumentInsightsCommandInput}
|
|
76
|
+
* @returns {@link StartDocumentInsightsCommandOutput}
|
|
77
|
+
* @see {@link StartDocumentInsightsCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link StartDocumentInsightsCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
82
|
+
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
83
|
+
* of an authorized user or IAM role to perform the operation.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link InternalServerError} (server fault)
|
|
86
|
+
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
89
|
+
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
90
|
+
* an <code>InvalidParameterException</code> exception occurs
|
|
91
|
+
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
92
|
+
* request parameter.
|
|
93
|
+
* Validate your parameter before calling the API operation again.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
96
|
+
* <p>An Amazon Textract service limit was exceeded. For example, if you start too many
|
|
97
|
+
* asynchronous jobs concurrently, calls to start operations
|
|
98
|
+
* (<code>StartDocumentTextDetection</code>, for example) raise a LimitExceededException
|
|
99
|
+
* exception (HTTP status code: 400) until the number of concurrently running jobs is below
|
|
100
|
+
* the Amazon Textract service limit. </p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ProvisionedThroughputExceededException} (client fault)
|
|
103
|
+
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
104
|
+
* contact Amazon Textract.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
107
|
+
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ValidationException} (client fault)
|
|
110
|
+
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link TextractServiceException}
|
|
113
|
+
* <p>Base exception class for all service exceptions from Textract service.</p>
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export declare class StartDocumentInsightsCommand extends StartDocumentInsightsCommand_base {
|
|
119
|
+
/** @internal type navigation helper, not in runtime. */
|
|
120
|
+
protected static __types: {
|
|
121
|
+
api: {
|
|
122
|
+
input: StartDocumentInsightsRequest;
|
|
123
|
+
output: StartDocumentInsightsResponse;
|
|
124
|
+
};
|
|
125
|
+
sdk: {
|
|
126
|
+
input: StartDocumentInsightsCommandInput;
|
|
127
|
+
output: StartDocumentInsightsCommandOutput;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdateBlueprintRequest, UpdateBlueprintResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdateBlueprintCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateBlueprintCommandInput extends UpdateBlueprintRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdateBlueprintCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateBlueprintCommandOutput extends UpdateBlueprintResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdateBlueprintCommand_base: {
|
|
22
|
+
new (input: UpdateBlueprintCommandInput): import("@smithy/core/client").CommandImpl<UpdateBlueprintCommandInput, UpdateBlueprintCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateBlueprintCommandInput): import("@smithy/core/client").CommandImpl<UpdateBlueprintCommandInput, UpdateBlueprintCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates an existing blueprint, replacing its schema and, optionally, its encryption
|
|
28
|
+
* configuration.</p>
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { TextractClient, UpdateBlueprintCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
33
|
+
* // const { TextractClient, UpdateBlueprintCommand } = 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 = { // UpdateBlueprintRequest
|
|
38
|
+
* BlueprintArn: "STRING_VALUE", // required
|
|
39
|
+
* Schema: "STRING_VALUE",
|
|
40
|
+
* EncryptionConfiguration: { // EncryptionConfiguration
|
|
41
|
+
* KmsKeyId: "STRING_VALUE", // required
|
|
42
|
+
* KmsEncryptionContext: { // KmsEncryptionContext
|
|
43
|
+
* "<keys>": "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* };
|
|
47
|
+
* const command = new UpdateBlueprintCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // UpdateBlueprintResponse
|
|
50
|
+
* // BlueprintArn: "STRING_VALUE", // required
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param UpdateBlueprintCommandInput - {@link UpdateBlueprintCommandInput}
|
|
56
|
+
* @returns {@link UpdateBlueprintCommandOutput}
|
|
57
|
+
* @see {@link UpdateBlueprintCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link UpdateBlueprintCommandOutput} 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 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 UpdateBlueprintCommand extends UpdateBlueprintCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: UpdateBlueprintRequest;
|
|
99
|
+
output: UpdateBlueprintResponse;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: UpdateBlueprintCommandInput;
|
|
103
|
+
output: UpdateBlueprintCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|