From 413a413b03876fb6d37a70460392879f08c1b48e Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 19 Apr 2023 18:15:51 +0000 Subject: [PATCH] feat(client-comprehend): This release supports native document models for custom classification, in addition to plain-text models. You train native document models using documents (PDF, Word, images) in their native format. --- .../CreateDocumentClassifierCommand.ts | 20 +- .../StartDocumentClassificationJobCommand.ts | 4 + ...tartDominantLanguageDetectionJobCommand.ts | 4 + .../StartEntitiesDetectionJobCommand.ts | 4 + .../StartEventsDetectionJobCommand.ts | 4 + .../StartKeyPhrasesDetectionJobCommand.ts | 4 + .../StartPiiEntitiesDetectionJobCommand.ts | 4 + .../StartSentimentDetectionJobCommand.ts | 4 + ...artTargetedSentimentDetectionJobCommand.ts | 4 + .../StartTopicsDetectionJobCommand.ts | 4 + .../StopPiiEntitiesDetectionJobCommand.ts | 2 +- .../StopSentimentDetectionJobCommand.ts | 2 +- .../client-comprehend/src/models/models_0.ts | 195 ++++++++---- .../client-comprehend/src/models/models_1.ts | 52 ++++ .../src/protocols/Aws_json1_1.ts | 41 ++- .../sdk-codegen/aws-models/comprehend.json | 293 +++++++++++++----- 16 files changed, 495 insertions(+), 146 deletions(-) diff --git a/clients/client-comprehend/src/commands/CreateDocumentClassifierCommand.ts b/clients/client-comprehend/src/commands/CreateDocumentClassifierCommand.ts index c9884e5714aa..ccb788f86d28 100644 --- a/clients/client-comprehend/src/commands/CreateDocumentClassifierCommand.ts +++ b/clients/client-comprehend/src/commands/CreateDocumentClassifierCommand.ts @@ -33,10 +33,10 @@ export interface CreateDocumentClassifierCommandOutput extends CreateDocumentCla /** * @public *

Creates a new document classifier that you can use to categorize documents. To create a - * classifier, you provide a set of training documents that labeled with the categories that you - * want to use. After the classifier is trained you can use it to categorize a set of labeled - * documents into the categories. For more information, see - * Document Classification in the Comprehend Developer Guide. + * classifier, you provide a set of training documents that are labeled with the categories that you + * want to use. For more information, see + * Training classifier models + * in the Comprehend Developer Guide. *

* @example * Use a bare-bones client and the command you need to make an API call. @@ -71,6 +71,18 @@ export interface CreateDocumentClassifierCommandOutput extends CreateDocumentCla * DocumentType: "PLAIN_TEXT_DOCUMENT" || "SEMI_STRUCTURED_DOCUMENT", * }, * ], + * DocumentType: "PLAIN_TEXT_DOCUMENT" || "SEMI_STRUCTURED_DOCUMENT", + * Documents: { // DocumentClassifierDocuments + * S3Uri: "STRING_VALUE", // required + * TestS3Uri: "STRING_VALUE", + * }, + * DocumentReaderConfig: { // DocumentReaderConfig + * DocumentReadAction: "TEXTRACT_DETECT_DOCUMENT_TEXT" || "TEXTRACT_ANALYZE_DOCUMENT", // required + * DocumentReadMode: "SERVICE_DEFAULT" || "FORCE_DOCUMENT_READ_ACTION", + * FeatureTypes: [ // ListOfDocumentReadFeatureTypes + * "TABLES" || "FORMS", + * ], + * }, * }, * OutputDataConfig: { // DocumentClassifierOutputDataConfig * S3Uri: "STRING_VALUE", diff --git a/clients/client-comprehend/src/commands/StartDocumentClassificationJobCommand.ts b/clients/client-comprehend/src/commands/StartDocumentClassificationJobCommand.ts index e7c7c1460832..629f7943d826 100644 --- a/clients/client-comprehend/src/commands/StartDocumentClassificationJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartDocumentClassificationJobCommand.ts @@ -103,6 +103,10 @@ export interface StartDocumentClassificationJobCommandOutput *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource ARN was not found. Check the ARN and try your request again.

* diff --git a/clients/client-comprehend/src/commands/StartDominantLanguageDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StartDominantLanguageDetectionJobCommand.ts index 900bd5b233a7..72fe30c69a09 100644 --- a/clients/client-comprehend/src/commands/StartDominantLanguageDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartDominantLanguageDetectionJobCommand.ts @@ -104,6 +104,10 @@ export interface StartDominantLanguageDetectionJobCommandOutput *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link TooManyRequestsException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* diff --git a/clients/client-comprehend/src/commands/StartEntitiesDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StartEntitiesDetectionJobCommand.ts index 49ab3e0f7b57..a024ded44ef5 100644 --- a/clients/client-comprehend/src/commands/StartEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartEntitiesDetectionJobCommand.ts @@ -101,6 +101,10 @@ export interface StartEntitiesDetectionJobCommandOutput extends StartEntitiesDet *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource ARN was not found. Check the ARN and try your request again.

* diff --git a/clients/client-comprehend/src/commands/StartEventsDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StartEventsDetectionJobCommand.ts index 0dbf35f93215..6254a29ca764 100644 --- a/clients/client-comprehend/src/commands/StartEventsDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartEventsDetectionJobCommand.ts @@ -89,6 +89,10 @@ export interface StartEventsDetectionJobCommandOutput extends StartEventsDetecti *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link TooManyRequestsException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* diff --git a/clients/client-comprehend/src/commands/StartKeyPhrasesDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StartKeyPhrasesDetectionJobCommand.ts index 1a5c5f1368f1..bde81eb92a62 100644 --- a/clients/client-comprehend/src/commands/StartKeyPhrasesDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartKeyPhrasesDetectionJobCommand.ts @@ -99,6 +99,10 @@ export interface StartKeyPhrasesDetectionJobCommandOutput *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link TooManyRequestsException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* diff --git a/clients/client-comprehend/src/commands/StartPiiEntitiesDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StartPiiEntitiesDetectionJobCommand.ts index a1a09c5d58af..613f11764299 100644 --- a/clients/client-comprehend/src/commands/StartPiiEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartPiiEntitiesDetectionJobCommand.ts @@ -99,6 +99,10 @@ export interface StartPiiEntitiesDetectionJobCommandOutput *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link TooManyRequestsException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* diff --git a/clients/client-comprehend/src/commands/StartSentimentDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StartSentimentDetectionJobCommand.ts index fdb35f634cba..d1908dc2e8eb 100644 --- a/clients/client-comprehend/src/commands/StartSentimentDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartSentimentDetectionJobCommand.ts @@ -97,6 +97,10 @@ export interface StartSentimentDetectionJobCommandOutput extends StartSentimentD *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link TooManyRequestsException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* diff --git a/clients/client-comprehend/src/commands/StartTargetedSentimentDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StartTargetedSentimentDetectionJobCommand.ts index a0989c9bda4f..634e97e1e3f1 100644 --- a/clients/client-comprehend/src/commands/StartTargetedSentimentDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartTargetedSentimentDetectionJobCommand.ts @@ -105,6 +105,10 @@ export interface StartTargetedSentimentDetectionJobCommandOutput *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link TooManyRequestsException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* diff --git a/clients/client-comprehend/src/commands/StartTopicsDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StartTopicsDetectionJobCommand.ts index 73d4cf7d12dd..04016f34d5ed 100644 --- a/clients/client-comprehend/src/commands/StartTopicsDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StartTopicsDetectionJobCommand.ts @@ -96,6 +96,10 @@ export interface StartTopicsDetectionJobCommandOutput extends StartTopicsDetecti *

The KMS customer managed key (CMK) entered cannot be validated. Verify the key and * re-enter it.

* + * @throws {@link ResourceInUseException} (client fault) + *

The specified resource name is already in use. Use a different name and try your request + * again.

+ * * @throws {@link TooManyRequestsException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* diff --git a/clients/client-comprehend/src/commands/StopPiiEntitiesDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StopPiiEntitiesDetectionJobCommand.ts index d8620a75cf10..7faee2d4ee26 100644 --- a/clients/client-comprehend/src/commands/StopPiiEntitiesDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StopPiiEntitiesDetectionJobCommand.ts @@ -14,7 +14,7 @@ import { } from "@aws-sdk/types"; import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient"; -import { StopPiiEntitiesDetectionJobRequest, StopPiiEntitiesDetectionJobResponse } from "../models/models_0"; +import { StopPiiEntitiesDetectionJobRequest, StopPiiEntitiesDetectionJobResponse } from "../models/models_1"; import { de_StopPiiEntitiesDetectionJobCommand, se_StopPiiEntitiesDetectionJobCommand } from "../protocols/Aws_json1_1"; /** diff --git a/clients/client-comprehend/src/commands/StopSentimentDetectionJobCommand.ts b/clients/client-comprehend/src/commands/StopSentimentDetectionJobCommand.ts index 006950576b93..e8aaadc13df8 100644 --- a/clients/client-comprehend/src/commands/StopSentimentDetectionJobCommand.ts +++ b/clients/client-comprehend/src/commands/StopSentimentDetectionJobCommand.ts @@ -14,7 +14,7 @@ import { } from "@aws-sdk/types"; import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient"; -import { StopSentimentDetectionJobRequest, StopSentimentDetectionJobResponse } from "../models/models_0"; +import { StopSentimentDetectionJobRequest, StopSentimentDetectionJobResponse } from "../models/models_1"; import { de_StopSentimentDetectionJobCommand, se_StopSentimentDetectionJobCommand } from "../protocols/Aws_json1_1"; /** diff --git a/clients/client-comprehend/src/models/models_0.ts b/clients/client-comprehend/src/models/models_0.ts index e06412333a7d..b9fe2ad66202 100644 --- a/clients/client-comprehend/src/models/models_0.ts +++ b/clients/client-comprehend/src/models/models_0.ts @@ -1409,8 +1409,8 @@ export type DocumentReadFeatureTypes = (typeof DocumentReadFeatureTypes)[keyof t * DocumentReaderConfig does not apply to plain text files or Word files.

*

* For image files and PDF documents, you can override these default actions using the fields listed below. - * For more information, see - * Setting text extraction options. + * For more information, see + * Setting text extraction options in the Comprehend Developer Guide. *

*/ export interface DocumentReaderConfig { @@ -1672,6 +1672,49 @@ export interface DocumentLabel { Page?: number; } +/** + * @public + * @enum + */ +export const PageBasedWarningCode = { + INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL: "INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL", + INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL: "INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL", +} as const; + +/** + * @public + */ +export type PageBasedWarningCode = (typeof PageBasedWarningCode)[keyof typeof PageBasedWarningCode]; + +/** + * @public + *

The system identified one of the following warnings while processing the input document:

+ * + */ +export interface WarningsListItem { + /** + *

Page number in the input document.

+ */ + Page?: number; + + /** + *

The type of warning.

+ */ + WarnCode?: PageBasedWarningCode | string; + + /** + *

Text message associated with the warning.

+ */ + WarnMessage?: string; +} + /** * @public */ @@ -1709,6 +1752,15 @@ export interface ClassifyDocumentResponse { * The field is empty if the system encountered no errors.

*/ Errors?: ErrorsListItem[]; + + /** + *

Warnings detected while processing the input document. + * The response includes a warning if there is a mismatch between the input document type + * and the model type associated with the endpoint that you specified. The response can also include + * warnings for individual pages that have a mismatch.

+ *

The field is empty if the system generated no warnings.

+ */ + Warnings?: WarningsListItem[]; } /** @@ -2253,6 +2305,38 @@ export const DocumentClassifierDataFormat = { export type DocumentClassifierDataFormat = (typeof DocumentClassifierDataFormat)[keyof typeof DocumentClassifierDataFormat]; +/** + * @public + *

The location of the training documents. This parameter is required in a request to create a native classifier model.

+ */ +export interface DocumentClassifierDocuments { + /** + *

The S3 URI location of the training documents specified in the S3Uri CSV file.

+ */ + S3Uri: string | undefined; + + /** + *

The S3 URI location of the test documents included in the TestS3Uri CSV file. + * This field is not required if you do not specify a test CSV file.

+ */ + TestS3Uri?: string; +} + +/** + * @public + * @enum + */ +export const DocumentClassifierDocumentTypeFormat = { + PLAIN_TEXT_DOCUMENT: "PLAIN_TEXT_DOCUMENT", + SEMI_STRUCTURED_DOCUMENT: "SEMI_STRUCTURED_DOCUMENT", +} as const; + +/** + * @public + */ +export type DocumentClassifierDocumentTypeFormat = + (typeof DocumentClassifierDocumentTypeFormat)[keyof typeof DocumentClassifierDocumentTypeFormat]; + /** * @public *

The input properties for training a document classifier.

@@ -2321,6 +2405,46 @@ export interface DocumentClassifierInputDataConfig { * AUGMENTED_MANIFEST.

*/ AugmentedManifests?: AugmentedManifestsListItem[]; + + /** + *

The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and + * provide semi-structured documents to create a native model.

+ */ + DocumentType?: DocumentClassifierDocumentTypeFormat | string; + + /** + *

The S3 location of the training documents. + * This parameter is required in a request to create a native classifier model.

+ */ + Documents?: DocumentClassifierDocuments; + + /** + *

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

+ *

By default, Amazon Comprehend performs the following actions to extract text from files, based on the input file type:

+ * + *

+ * DocumentReaderConfig does not apply to plain text files or Word files.

+ *

+ * For image files and PDF documents, you can override these default actions using the fields listed below. + * For more information, see + * Setting text extraction options in the Comprehend Developer Guide. + *

+ */ + DocumentReaderConfig?: DocumentReaderConfig; } /** @@ -2339,12 +2463,14 @@ export type DocumentClassifierMode = (typeof DocumentClassifierMode)[keyof typeo /** * @public - *

Provides output results configuration parameters for custom classifier jobs.

+ *

Provide the location for output data from a custom classifier job. This field is mandatory + * if you are training a native classifier model.

*/ export interface DocumentClassifierOutputDataConfig { /** *

When you use the OutputDataConfig object while creating a custom - * classifier, you specify the Amazon S3 location where you want to write the confusion matrix. + * classifier, you specify the Amazon S3 location where you want to write the confusion matrix + * and other output files. * The URI must be in the same Region as the API endpoint that you are calling. The location is * used as the prefix for the actual location of this output file.

*

When the custom classifier job is finished, the service creates the output file in a @@ -2448,8 +2574,8 @@ export interface CreateDocumentClassifierRequest { InputDataConfig: DocumentClassifierInputDataConfig | undefined; /** - *

Enables the addition of output results configuration parameters for custom classifier - * jobs.

+ *

Specifies the location for the output files from a custom classifier job. + * This parameter is required for a request that creates a native classifier model.

*/ OutputDataConfig?: DocumentClassifierOutputDataConfig; @@ -3569,7 +3695,10 @@ export interface DocumentClassifierProperties { /** *

The status of the document classifier. If the status is TRAINED the - * classifier is ready to use. If the status is FAILED you can see additional + * classifier is ready to use. If the status is TRAINED_WITH_WARNINGS the + * classifier training succeeded, but you should review the warnings returned in the + * CreateDocumentClassifier response.

+ *

If the status is FAILED you can see additional * information about why the classifier wasn't trained in the Message field.

*/ Status?: ModelStatus | string; @@ -8138,58 +8267,6 @@ export interface StopKeyPhrasesDetectionJobResponse { JobStatus?: JobStatus | string; } -/** - * @public - */ -export interface StopPiiEntitiesDetectionJobRequest { - /** - *

The identifier of the PII entities detection job to stop.

- */ - JobId: string | undefined; -} - -/** - * @public - */ -export interface StopPiiEntitiesDetectionJobResponse { - /** - *

The identifier of the PII entities detection job to stop.

- */ - JobId?: string; - - /** - *

The status of the PII entities detection job.

- */ - JobStatus?: JobStatus | string; -} - -/** - * @public - */ -export interface StopSentimentDetectionJobRequest { - /** - *

The identifier of the sentiment detection job to stop.

- */ - JobId: string | undefined; -} - -/** - * @public - */ -export interface StopSentimentDetectionJobResponse { - /** - *

The identifier of the sentiment detection job to stop.

- */ - JobId?: string; - - /** - *

Either STOP_REQUESTED if the job is currently running, or - * STOPPED if the job was previously stopped with the - * StopSentimentDetectionJob operation.

- */ - JobStatus?: JobStatus | string; -} - /** * @internal */ diff --git a/clients/client-comprehend/src/models/models_1.ts b/clients/client-comprehend/src/models/models_1.ts index 51da853663d9..4cb7c4b2e3ce 100644 --- a/clients/client-comprehend/src/models/models_1.ts +++ b/clients/client-comprehend/src/models/models_1.ts @@ -4,6 +4,58 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl import { ComprehendServiceException as __BaseException } from "./ComprehendServiceException"; import { FlywheelProperties, JobStatus, Tag, VpcConfig } from "./models_0"; +/** + * @public + */ +export interface StopPiiEntitiesDetectionJobRequest { + /** + *

The identifier of the PII entities detection job to stop.

+ */ + JobId: string | undefined; +} + +/** + * @public + */ +export interface StopPiiEntitiesDetectionJobResponse { + /** + *

The identifier of the PII entities detection job to stop.

+ */ + JobId?: string; + + /** + *

The status of the PII entities detection job.

+ */ + JobStatus?: JobStatus | string; +} + +/** + * @public + */ +export interface StopSentimentDetectionJobRequest { + /** + *

The identifier of the sentiment detection job to stop.

+ */ + JobId: string | undefined; +} + +/** + * @public + */ +export interface StopSentimentDetectionJobResponse { + /** + *

The identifier of the sentiment detection job to stop.

+ */ + JobId?: string; + + /** + *

Either STOP_REQUESTED if the job is currently running, or + * STOPPED if the job was previously stopped with the + * StopSentimentDetectionJob operation.

+ */ + JobStatus?: JobStatus | string; +} + /** * @public */ diff --git a/clients/client-comprehend/src/protocols/Aws_json1_1.ts b/clients/client-comprehend/src/protocols/Aws_json1_1.ts index a3f4cd49a782..a10865dbcdfb 100644 --- a/clients/client-comprehend/src/protocols/Aws_json1_1.ts +++ b/clients/client-comprehend/src/protocols/Aws_json1_1.ts @@ -386,6 +386,7 @@ import { DocumentClassificationConfig, DocumentClassificationJobFilter, DocumentClassificationJobProperties, + DocumentClassifierDocuments, DocumentClassifierFilter, DocumentClassifierInputDataConfig, DocumentClassifierOutputDataConfig, @@ -501,8 +502,6 @@ import { StopEntitiesDetectionJobRequest, StopEventsDetectionJobRequest, StopKeyPhrasesDetectionJobRequest, - StopPiiEntitiesDetectionJobRequest, - StopSentimentDetectionJobRequest, SyntaxToken, Tag, TargetedSentimentDetectionJobFilter, @@ -520,6 +519,8 @@ import { } from "../models/models_0"; import { ConcurrentModificationException, + StopPiiEntitiesDetectionJobRequest, + StopSentimentDetectionJobRequest, StopTargetedSentimentDetectionJobRequest, StopTrainingDocumentClassifierRequest, StopTrainingEntityRecognizerRequest, @@ -5120,6 +5121,9 @@ const de_StartDocumentClassificationJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.comprehend#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -5184,6 +5188,9 @@ const de_StartDominantLanguageDetectionJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "TooManyRequestsException": case "com.amazonaws.comprehend#TooManyRequestsException": throw await de_TooManyRequestsExceptionRes(parsedOutput, context); @@ -5242,6 +5249,9 @@ const de_StartEntitiesDetectionJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.comprehend#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -5306,6 +5316,9 @@ const de_StartEventsDetectionJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "TooManyRequestsException": case "com.amazonaws.comprehend#TooManyRequestsException": throw await de_TooManyRequestsExceptionRes(parsedOutput, context); @@ -5422,6 +5435,9 @@ const de_StartKeyPhrasesDetectionJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "TooManyRequestsException": case "com.amazonaws.comprehend#TooManyRequestsException": throw await de_TooManyRequestsExceptionRes(parsedOutput, context); @@ -5480,6 +5496,9 @@ const de_StartPiiEntitiesDetectionJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "TooManyRequestsException": case "com.amazonaws.comprehend#TooManyRequestsException": throw await de_TooManyRequestsExceptionRes(parsedOutput, context); @@ -5538,6 +5557,9 @@ const de_StartSentimentDetectionJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "TooManyRequestsException": case "com.amazonaws.comprehend#TooManyRequestsException": throw await de_TooManyRequestsExceptionRes(parsedOutput, context); @@ -5596,6 +5618,9 @@ const de_StartTargetedSentimentDetectionJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "TooManyRequestsException": case "com.amazonaws.comprehend#TooManyRequestsException": throw await de_TooManyRequestsExceptionRes(parsedOutput, context); @@ -5654,6 +5679,9 @@ const de_StartTopicsDetectionJobCommandError = async ( case "KmsKeyValidationException": case "com.amazonaws.comprehend#KmsKeyValidationException": throw await de_KmsKeyValidationExceptionRes(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.comprehend#ResourceInUseException": + throw await de_ResourceInUseExceptionRes(parsedOutput, context); case "TooManyRequestsException": case "com.amazonaws.comprehend#TooManyRequestsException": throw await de_TooManyRequestsExceptionRes(parsedOutput, context); @@ -6870,6 +6898,8 @@ const se_DocumentClassificationJobFilter = (input: DocumentClassificationJobFilt // se_DocumentClassifierAugmentedManifestsList omitted. +// se_DocumentClassifierDocuments omitted. + /** * serializeAws_json1_1DocumentClassifierFilter */ @@ -7690,6 +7720,7 @@ const de_ClassifyDocumentResponse = (output: any, context: __SerdeContext): Clas DocumentType: _json, Errors: _json, Labels: (_: any) => de_ListOfLabels(_, context), + Warnings: _json, }) as any; }; @@ -8062,6 +8093,8 @@ const de_DocumentClassificationJobPropertiesList = ( // de_DocumentClassifierAugmentedManifestsList omitted. +// de_DocumentClassifierDocuments omitted. + // de_DocumentClassifierInputDataConfig omitted. // de_DocumentClassifierOutputDataConfig omitted. @@ -9022,6 +9055,8 @@ const de_ListOfTargetedSentimentEntities = (output: any, context: __SerdeContext return retVal; }; +// de_ListOfWarnings omitted. + /** * deserializeAws_json1_1ListPiiEntitiesDetectionJobsResponse */ @@ -9421,6 +9456,8 @@ const de_UpdateFlywheelResponse = (output: any, context: __SerdeContext): Update // de_VpcConfig omitted. +// de_WarningsListItem omitted. + const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ httpStatusCode: output.statusCode, requestId: diff --git a/codegen/sdk-codegen/aws-models/comprehend.json b/codegen/sdk-codegen/aws-models/comprehend.json index ffa5feef5565..441d41b908d9 100644 --- a/codegen/sdk-codegen/aws-models/comprehend.json +++ b/codegen/sdk-codegen/aws-models/comprehend.json @@ -1047,6 +1047,12 @@ "traits": { "smithy.api#documentation": "

Page-level errors that the system detected while processing the input document.\n The field is empty if the system encountered no errors.

" } + }, + "Warnings": { + "target": "com.amazonaws.comprehend#ListOfWarnings", + "traits": { + "smithy.api#documentation": "

Warnings detected while processing the input document.\n The response includes a warning if there is a mismatch between the input document type \n and the model type associated with the endpoint that you specified. The response can also include\n warnings for individual pages that have a mismatch.

\n

The field is empty if the system generated no warnings.

" + } } }, "traits": { @@ -1765,9 +1771,9 @@ } }, "params": { + "Region": "ap-northeast-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-northeast-1" + "UseDualStack": false } }, { @@ -1778,9 +1784,9 @@ } }, "params": { + "Region": "ap-northeast-2", "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-northeast-2" + "UseDualStack": false } }, { @@ -1791,9 +1797,9 @@ } }, "params": { + "Region": "ap-south-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-south-1" + "UseDualStack": false } }, { @@ -1804,9 +1810,9 @@ } }, "params": { + "Region": "ap-southeast-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-southeast-1" + "UseDualStack": false } }, { @@ -1817,9 +1823,9 @@ } }, "params": { + "Region": "ap-southeast-2", "UseFIPS": false, - "UseDualStack": false, - "Region": "ap-southeast-2" + "UseDualStack": false } }, { @@ -1830,9 +1836,9 @@ } }, "params": { + "Region": "ca-central-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "ca-central-1" + "UseDualStack": false } }, { @@ -1843,9 +1849,9 @@ } }, "params": { + "Region": "eu-central-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-central-1" + "UseDualStack": false } }, { @@ -1856,9 +1862,9 @@ } }, "params": { + "Region": "eu-west-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-west-1" + "UseDualStack": false } }, { @@ -1869,9 +1875,9 @@ } }, "params": { + "Region": "eu-west-2", "UseFIPS": false, - "UseDualStack": false, - "Region": "eu-west-2" + "UseDualStack": false } }, { @@ -1882,9 +1888,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-east-1" + "UseDualStack": false } }, { @@ -1895,9 +1901,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-east-1" + "UseDualStack": false } }, { @@ -1908,9 +1914,9 @@ } }, "params": { + "Region": "us-east-2", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-east-2" + "UseDualStack": false } }, { @@ -1921,9 +1927,9 @@ } }, "params": { + "Region": "us-east-2", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-east-2" + "UseDualStack": false } }, { @@ -1934,9 +1940,9 @@ } }, "params": { + "Region": "us-west-2", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-west-2" + "UseDualStack": false } }, { @@ -1947,9 +1953,9 @@ } }, "params": { + "Region": "us-west-2", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-west-2" + "UseDualStack": false } }, { @@ -1960,9 +1966,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": true } }, { @@ -1973,9 +1979,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": true } }, { @@ -1986,9 +1992,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "cn-north-1" + "UseDualStack": true } }, { @@ -1999,9 +2005,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "cn-north-1" + "UseDualStack": false } }, { @@ -2012,9 +2018,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "cn-north-1" + "UseDualStack": true } }, { @@ -2025,9 +2031,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "cn-north-1" + "UseDualStack": false } }, { @@ -2038,9 +2044,9 @@ } }, "params": { + "Region": "us-gov-west-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-gov-west-1" + "UseDualStack": false } }, { @@ -2051,9 +2057,9 @@ } }, "params": { + "Region": "us-gov-west-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-gov-west-1" + "UseDualStack": false } }, { @@ -2064,9 +2070,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-gov-east-1" + "UseDualStack": true } }, { @@ -2077,9 +2083,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-gov-east-1" + "UseDualStack": false } }, { @@ -2090,9 +2096,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-gov-east-1" + "UseDualStack": true } }, { @@ -2103,9 +2109,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-gov-east-1" + "UseDualStack": false } }, { @@ -2116,9 +2122,9 @@ } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-iso-east-1" + "UseDualStack": false } }, { @@ -2127,9 +2133,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { + "Region": "us-iso-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-iso-east-1" + "UseDualStack": true } }, { @@ -2140,9 +2146,9 @@ } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-iso-east-1" + "UseDualStack": false } }, { @@ -2151,9 +2157,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { + "Region": "us-iso-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-iso-east-1" + "UseDualStack": true } }, { @@ -2162,9 +2168,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { + "Region": "us-isob-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-isob-east-1" + "UseDualStack": true } }, { @@ -2175,9 +2181,9 @@ } }, "params": { + "Region": "us-isob-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-isob-east-1" + "UseDualStack": false } }, { @@ -2186,9 +2192,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { + "Region": "us-isob-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-isob-east-1" + "UseDualStack": true } }, { @@ -2199,9 +2205,9 @@ } }, "params": { + "Region": "us-isob-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-isob-east-1" + "UseDualStack": false } }, { @@ -2212,9 +2218,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -2237,9 +2243,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { + "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -2249,9 +2255,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -2479,7 +2485,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a new document classifier that you can use to categorize documents. To create a\n classifier, you provide a set of training documents that labeled with the categories that you\n want to use. After the classifier is trained you can use it to categorize a set of labeled\n documents into the categories. For more information, see\n Document Classification in the Comprehend Developer Guide.\n

" + "smithy.api#documentation": "

Creates a new document classifier that you can use to categorize documents. To create a\n classifier, you provide a set of training documents that are labeled with the categories that you\n want to use. For more information, see\n Training classifier models \n in the Comprehend Developer Guide.\n

" } }, "com.amazonaws.comprehend#CreateDocumentClassifierRequest": { @@ -2521,7 +2527,7 @@ "OutputDataConfig": { "target": "com.amazonaws.comprehend#DocumentClassifierOutputDataConfig", "traits": { - "smithy.api#documentation": "

Enables the addition of output results configuration parameters for custom classifier\n jobs.

" + "smithy.api#documentation": "

Specifies the location for the output files from a custom classifier job.\n This parameter is required for a request that creates a native classifier model.

" } }, "ClientRequestToken": { @@ -5211,6 +5217,44 @@ } } }, + "com.amazonaws.comprehend#DocumentClassifierDocumentTypeFormat": { + "type": "enum", + "members": { + "PLAIN_TEXT_DOCUMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PLAIN_TEXT_DOCUMENT" + } + }, + "SEMI_STRUCTURED_DOCUMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SEMI_STRUCTURED_DOCUMENT" + } + } + } + }, + "com.amazonaws.comprehend#DocumentClassifierDocuments": { + "type": "structure", + "members": { + "S3Uri": { + "target": "com.amazonaws.comprehend#S3Uri", + "traits": { + "smithy.api#documentation": "

The S3 URI location of the training documents specified in the S3Uri CSV file.

", + "smithy.api#required": {} + } + }, + "TestS3Uri": { + "target": "com.amazonaws.comprehend#S3Uri", + "traits": { + "smithy.api#documentation": "

The S3 URI location of the test documents included in the TestS3Uri CSV file.\n This field is not required if you do not specify a test CSV file.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The location of the training documents. This parameter is required in a request to create a native classifier model.

" + } + }, "com.amazonaws.comprehend#DocumentClassifierEndpointArn": { "type": "string", "traits": { @@ -5285,6 +5329,21 @@ "traits": { "smithy.api#documentation": "

A list of augmented manifest files that provide training data for your custom model. An\n augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground\n Truth.

\n

This parameter is required if you set DataFormat to\n AUGMENTED_MANIFEST.

" } + }, + "DocumentType": { + "target": "com.amazonaws.comprehend#DocumentClassifierDocumentTypeFormat", + "traits": { + "smithy.api#documentation": "

The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and\n provide semi-structured documents to create a native model.

" + } + }, + "Documents": { + "target": "com.amazonaws.comprehend#DocumentClassifierDocuments", + "traits": { + "smithy.api#documentation": "

The S3 location of the training documents. \n This parameter is required in a request to create a native classifier model.

" + } + }, + "DocumentReaderConfig": { + "target": "com.amazonaws.comprehend#DocumentReaderConfig" } }, "traits": { @@ -5314,7 +5373,7 @@ "S3Uri": { "target": "com.amazonaws.comprehend#S3Uri", "traits": { - "smithy.api#documentation": "

When you use the OutputDataConfig object while creating a custom\n classifier, you specify the Amazon S3 location where you want to write the confusion matrix.\n The URI must be in the same Region as the API endpoint that you are calling. The location is\n used as the prefix for the actual location of this output file.

\n

When the custom classifier job is finished, the service creates the output file in a\n directory specific to the job. The S3Uri field contains the location of the\n output file, called output.tar.gz. It is a compressed archive that contains the\n confusion matrix.

" + "smithy.api#documentation": "

When you use the OutputDataConfig object while creating a custom\n classifier, you specify the Amazon S3 location where you want to write the confusion matrix\n and other output files.\n The URI must be in the same Region as the API endpoint that you are calling. The location is\n used as the prefix for the actual location of this output file.

\n

When the custom classifier job is finished, the service creates the output file in a\n directory specific to the job. The S3Uri field contains the location of the\n output file, called output.tar.gz. It is a compressed archive that contains the\n confusion matrix.

" } }, "KmsKeyId": { @@ -5331,7 +5390,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides output results configuration parameters for custom classifier jobs.

" + "smithy.api#documentation": "

Provide the location for output data from a custom classifier job. This field is mandatory \n if you are training a native classifier model.

" } }, "com.amazonaws.comprehend#DocumentClassifierProperties": { @@ -5352,7 +5411,7 @@ "Status": { "target": "com.amazonaws.comprehend#ModelStatus", "traits": { - "smithy.api#documentation": "

The status of the document classifier. If the status is TRAINED the\n classifier is ready to use. If the status is FAILED you can see additional\n information about why the classifier wasn't trained in the Message field.

" + "smithy.api#documentation": "

The status of the document classifier. If the status is TRAINED the\n classifier is ready to use. If the status is TRAINED_WITH_WARNINGS the\n classifier training succeeded, but you should review the warnings returned in the \n CreateDocumentClassifier response.

\n

If the status is FAILED you can see additional\n information about why the classifier wasn't trained in the Message field.

" } }, "Message": { @@ -5630,7 +5689,7 @@ } }, "traits": { - "smithy.api#documentation": "

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

\n

By default, Amazon Comprehend performs the following actions to extract text from files, based on the input file type:

\n \n

\n DocumentReaderConfig does not apply to plain text files or Word files.

\n

\n For image files and PDF documents, you can override these default actions using the fields listed below.\n For more information, see \n Setting text extraction options.\n

" + "smithy.api#documentation": "

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

\n

By default, Amazon Comprehend performs the following actions to extract text from files, based on the input file type:

\n \n

\n DocumentReaderConfig does not apply to plain text files or Word files.

\n

\n For image files and PDF documents, you can override these default actions using the fields listed below.\n For more information, see \n Setting text extraction options in the Comprehend Developer Guide.\n

" } }, "com.amazonaws.comprehend#DocumentType": { @@ -9163,6 +9222,12 @@ "target": "com.amazonaws.comprehend#TargetedSentimentEntity" } }, + "com.amazonaws.comprehend#ListOfWarnings": { + "type": "list", + "member": { + "target": "com.amazonaws.comprehend#WarningsListItem" + } + }, "com.amazonaws.comprehend#ListPiiEntitiesDetectionJobs": { "type": "operation", "input": { @@ -9704,6 +9769,23 @@ } } }, + "com.amazonaws.comprehend#PageBasedWarningCode": { + "type": "enum", + "members": { + "INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL" + } + }, + "INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL" + } + } + } + }, "com.amazonaws.comprehend#PartOfSpeechTag": { "type": "structure", "members": { @@ -10755,6 +10837,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#ResourceNotFoundException" }, @@ -10894,6 +10979,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#TooManyRequestsException" }, @@ -11009,6 +11097,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#ResourceNotFoundException" }, @@ -11155,6 +11246,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#TooManyRequestsException" }, @@ -11342,6 +11436,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#TooManyRequestsException" }, @@ -11464,6 +11561,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#TooManyRequestsException" }, @@ -11587,6 +11687,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#TooManyRequestsException" }, @@ -11709,6 +11812,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#TooManyRequestsException" }, @@ -11827,6 +11933,9 @@ { "target": "com.amazonaws.comprehend#KmsKeyValidationException" }, + { + "target": "com.amazonaws.comprehend#ResourceInUseException" + }, { "target": "com.amazonaws.comprehend#TooManyRequestsException" }, @@ -13454,6 +13563,32 @@ "traits": { "smithy.api#documentation": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing\n the resources you are using for the job. For more information, see Amazon\n VPC.

" } + }, + "com.amazonaws.comprehend#WarningsListItem": { + "type": "structure", + "members": { + "Page": { + "target": "com.amazonaws.comprehend#Integer", + "traits": { + "smithy.api#documentation": "

Page number in the input document.

" + } + }, + "WarnCode": { + "target": "com.amazonaws.comprehend#PageBasedWarningCode", + "traits": { + "smithy.api#documentation": "

The type of warning.

" + } + }, + "WarnMessage": { + "target": "com.amazonaws.comprehend#String", + "traits": { + "smithy.api#documentation": "

Text message associated with the warning.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The system identified one of the following warnings while processing the input document:

\n " + } } } }