@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonComprehendAsync extends AbstractAmazonComprehend implements AmazonComprehendAsync
AmazonComprehendAsync
. Convenient method forms pass through to the corresponding
overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
batchDetectDominantLanguage, batchDetectEntities, batchDetectKeyPhrases, batchDetectSentiment, batchDetectSyntax, batchDetectTargetedSentiment, classifyDocument, containsPiiEntities, createDataset, createDocumentClassifier, createEndpoint, createEntityRecognizer, createFlywheel, deleteDocumentClassifier, deleteEndpoint, deleteEntityRecognizer, deleteFlywheel, deleteResourcePolicy, describeDataset, describeDocumentClassificationJob, describeDocumentClassifier, describeDominantLanguageDetectionJob, describeEndpoint, describeEntitiesDetectionJob, describeEntityRecognizer, describeEventsDetectionJob, describeFlywheel, describeFlywheelIteration, describeKeyPhrasesDetectionJob, describePiiEntitiesDetectionJob, describeResourcePolicy, describeSentimentDetectionJob, describeTargetedSentimentDetectionJob, describeTopicsDetectionJob, detectDominantLanguage, detectEntities, detectKeyPhrases, detectPiiEntities, detectSentiment, detectSyntax, detectTargetedSentiment, detectToxicContent, getCachedResponseMetadata, importModel, listDatasets, listDocumentClassificationJobs, listDocumentClassifiers, listDocumentClassifierSummaries, listDominantLanguageDetectionJobs, listEndpoints, listEntitiesDetectionJobs, listEntityRecognizers, listEntityRecognizerSummaries, listEventsDetectionJobs, listFlywheelIterationHistory, listFlywheels, listKeyPhrasesDetectionJobs, listPiiEntitiesDetectionJobs, listSentimentDetectionJobs, listTagsForResource, listTargetedSentimentDetectionJobs, listTopicsDetectionJobs, putResourcePolicy, shutdown, startDocumentClassificationJob, startDominantLanguageDetectionJob, startEntitiesDetectionJob, startEventsDetectionJob, startFlywheelIteration, startKeyPhrasesDetectionJob, startPiiEntitiesDetectionJob, startSentimentDetectionJob, startTargetedSentimentDetectionJob, startTopicsDetectionJob, stopDominantLanguageDetectionJob, stopEntitiesDetectionJob, stopEventsDetectionJob, stopKeyPhrasesDetectionJob, stopPiiEntitiesDetectionJob, stopSentimentDetectionJob, stopTargetedSentimentDetectionJob, stopTrainingDocumentClassifier, stopTrainingEntityRecognizer, tagResource, untagResource, updateEndpoint, updateFlywheel
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchDetectDominantLanguage, batchDetectEntities, batchDetectKeyPhrases, batchDetectSentiment, batchDetectSyntax, batchDetectTargetedSentiment, classifyDocument, containsPiiEntities, createDataset, createDocumentClassifier, createEndpoint, createEntityRecognizer, createFlywheel, deleteDocumentClassifier, deleteEndpoint, deleteEntityRecognizer, deleteFlywheel, deleteResourcePolicy, describeDataset, describeDocumentClassificationJob, describeDocumentClassifier, describeDominantLanguageDetectionJob, describeEndpoint, describeEntitiesDetectionJob, describeEntityRecognizer, describeEventsDetectionJob, describeFlywheel, describeFlywheelIteration, describeKeyPhrasesDetectionJob, describePiiEntitiesDetectionJob, describeResourcePolicy, describeSentimentDetectionJob, describeTargetedSentimentDetectionJob, describeTopicsDetectionJob, detectDominantLanguage, detectEntities, detectKeyPhrases, detectPiiEntities, detectSentiment, detectSyntax, detectTargetedSentiment, detectToxicContent, getCachedResponseMetadata, importModel, listDatasets, listDocumentClassificationJobs, listDocumentClassifiers, listDocumentClassifierSummaries, listDominantLanguageDetectionJobs, listEndpoints, listEntitiesDetectionJobs, listEntityRecognizers, listEntityRecognizerSummaries, listEventsDetectionJobs, listFlywheelIterationHistory, listFlywheels, listKeyPhrasesDetectionJobs, listPiiEntitiesDetectionJobs, listSentimentDetectionJobs, listTagsForResource, listTargetedSentimentDetectionJobs, listTopicsDetectionJobs, putResourcePolicy, shutdown, startDocumentClassificationJob, startDominantLanguageDetectionJob, startEntitiesDetectionJob, startEventsDetectionJob, startFlywheelIteration, startKeyPhrasesDetectionJob, startPiiEntitiesDetectionJob, startSentimentDetectionJob, startTargetedSentimentDetectionJob, startTopicsDetectionJob, stopDominantLanguageDetectionJob, stopEntitiesDetectionJob, stopEventsDetectionJob, stopKeyPhrasesDetectionJob, stopPiiEntitiesDetectionJob, stopSentimentDetectionJob, stopTargetedSentimentDetectionJob, stopTrainingDocumentClassifier, stopTrainingEntityRecognizer, tagResource, untagResource, updateEndpoint, updateFlywheel
public Future<BatchDetectDominantLanguageResult> batchDetectDominantLanguageAsync(BatchDetectDominantLanguageRequest request)
AmazonComprehendAsync
Determines the dominant language of the input text for a batch of documents. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
batchDetectDominantLanguageAsync
in interface AmazonComprehendAsync
public Future<BatchDetectDominantLanguageResult> batchDetectDominantLanguageAsync(BatchDetectDominantLanguageRequest request, AsyncHandler<BatchDetectDominantLanguageRequest,BatchDetectDominantLanguageResult> asyncHandler)
AmazonComprehendAsync
Determines the dominant language of the input text for a batch of documents. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
batchDetectDominantLanguageAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchDetectEntitiesResult> batchDetectEntitiesAsync(BatchDetectEntitiesRequest request)
AmazonComprehendAsync
Inspects the text of a batch of documents for named entities and returns information about them. For more information about named entities, see Entities in the Comprehend Developer Guide.
batchDetectEntitiesAsync
in interface AmazonComprehendAsync
public Future<BatchDetectEntitiesResult> batchDetectEntitiesAsync(BatchDetectEntitiesRequest request, AsyncHandler<BatchDetectEntitiesRequest,BatchDetectEntitiesResult> asyncHandler)
AmazonComprehendAsync
Inspects the text of a batch of documents for named entities and returns information about them. For more information about named entities, see Entities in the Comprehend Developer Guide.
batchDetectEntitiesAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchDetectKeyPhrasesResult> batchDetectKeyPhrasesAsync(BatchDetectKeyPhrasesRequest request)
AmazonComprehendAsync
Detects the key noun phrases found in a batch of documents.
batchDetectKeyPhrasesAsync
in interface AmazonComprehendAsync
public Future<BatchDetectKeyPhrasesResult> batchDetectKeyPhrasesAsync(BatchDetectKeyPhrasesRequest request, AsyncHandler<BatchDetectKeyPhrasesRequest,BatchDetectKeyPhrasesResult> asyncHandler)
AmazonComprehendAsync
Detects the key noun phrases found in a batch of documents.
batchDetectKeyPhrasesAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchDetectSentimentResult> batchDetectSentimentAsync(BatchDetectSentimentRequest request)
AmazonComprehendAsync
Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE
,
NEUTRAL
, MIXED
, or NEGATIVE
, in each one.
batchDetectSentimentAsync
in interface AmazonComprehendAsync
public Future<BatchDetectSentimentResult> batchDetectSentimentAsync(BatchDetectSentimentRequest request, AsyncHandler<BatchDetectSentimentRequest,BatchDetectSentimentResult> asyncHandler)
AmazonComprehendAsync
Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE
,
NEUTRAL
, MIXED
, or NEGATIVE
, in each one.
batchDetectSentimentAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchDetectSyntaxResult> batchDetectSyntaxAsync(BatchDetectSyntaxRequest request)
AmazonComprehendAsync
Inspects the text of a batch of documents for the syntax and part of speech of the words in the document and returns information about them. For more information, see Syntax in the Comprehend Developer Guide.
batchDetectSyntaxAsync
in interface AmazonComprehendAsync
public Future<BatchDetectSyntaxResult> batchDetectSyntaxAsync(BatchDetectSyntaxRequest request, AsyncHandler<BatchDetectSyntaxRequest,BatchDetectSyntaxResult> asyncHandler)
AmazonComprehendAsync
Inspects the text of a batch of documents for the syntax and part of speech of the words in the document and returns information about them. For more information, see Syntax in the Comprehend Developer Guide.
batchDetectSyntaxAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchDetectTargetedSentimentResult> batchDetectTargetedSentimentAsync(BatchDetectTargetedSentimentRequest request)
AmazonComprehendAsync
Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
batchDetectTargetedSentimentAsync
in interface AmazonComprehendAsync
public Future<BatchDetectTargetedSentimentResult> batchDetectTargetedSentimentAsync(BatchDetectTargetedSentimentRequest request, AsyncHandler<BatchDetectTargetedSentimentRequest,BatchDetectTargetedSentimentResult> asyncHandler)
AmazonComprehendAsync
Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
batchDetectTargetedSentimentAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ClassifyDocumentResult> classifyDocumentAsync(ClassifyDocumentRequest request)
AmazonComprehendAsync
Creates a classification request to analyze a single document in real-time. ClassifyDocument
supports the following model types:
Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Amazon Textract API output. For more information, see Custom classification in the Amazon Comprehend Developer Guide.
Prompt safety classifier - Amazon Comprehend provides a pre-trained model for classifying input prompts for
generative AI applications. For input, you provide English plain text input. For prompt safety classification,
the response includes only the Classes
field. For more information about prompt safety classifiers,
see Prompt
safety classification in the Amazon Comprehend Developer Guide.
If the system detects errors while processing a page in the input document, the API response includes an
Errors
field that describes the errors.
If the system detects a document-level error in your input document, the API returns an
InvalidRequestException
error response. For details about this exception, see Errors in semi-structured
documents in the Comprehend Developer Guide.
classifyDocumentAsync
in interface AmazonComprehendAsync
public Future<ClassifyDocumentResult> classifyDocumentAsync(ClassifyDocumentRequest request, AsyncHandler<ClassifyDocumentRequest,ClassifyDocumentResult> asyncHandler)
AmazonComprehendAsync
Creates a classification request to analyze a single document in real-time. ClassifyDocument
supports the following model types:
Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Amazon Textract API output. For more information, see Custom classification in the Amazon Comprehend Developer Guide.
Prompt safety classifier - Amazon Comprehend provides a pre-trained model for classifying input prompts for
generative AI applications. For input, you provide English plain text input. For prompt safety classification,
the response includes only the Classes
field. For more information about prompt safety classifiers,
see Prompt
safety classification in the Amazon Comprehend Developer Guide.
If the system detects errors while processing a page in the input document, the API response includes an
Errors
field that describes the errors.
If the system detects a document-level error in your input document, the API returns an
InvalidRequestException
error response. For details about this exception, see Errors in semi-structured
documents in the Comprehend Developer Guide.
classifyDocumentAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ContainsPiiEntitiesResult> containsPiiEntitiesAsync(ContainsPiiEntitiesRequest request)
AmazonComprehendAsync
Analyzes input text for the presence of personally identifiable information (PII) and returns the labels of identified PII entity types such as name, address, bank account number, or phone number.
containsPiiEntitiesAsync
in interface AmazonComprehendAsync
public Future<ContainsPiiEntitiesResult> containsPiiEntitiesAsync(ContainsPiiEntitiesRequest request, AsyncHandler<ContainsPiiEntitiesRequest,ContainsPiiEntitiesResult> asyncHandler)
AmazonComprehendAsync
Analyzes input text for the presence of personally identifiable information (PII) and returns the labels of identified PII entity types such as name, address, bank account number, or phone number.
containsPiiEntitiesAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateDatasetResult> createDatasetAsync(CreateDatasetRequest request)
AmazonComprehendAsync
Creates a dataset to upload training or test data for a model associated with a flywheel. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
createDatasetAsync
in interface AmazonComprehendAsync
public Future<CreateDatasetResult> createDatasetAsync(CreateDatasetRequest request, AsyncHandler<CreateDatasetRequest,CreateDatasetResult> asyncHandler)
AmazonComprehendAsync
Creates a dataset to upload training or test data for a model associated with a flywheel. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
createDatasetAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateDocumentClassifierResult> createDocumentClassifierAsync(CreateDocumentClassifierRequest request)
AmazonComprehendAsync
Creates a new document classifier that you can use to categorize documents. To create a 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.
createDocumentClassifierAsync
in interface AmazonComprehendAsync
public Future<CreateDocumentClassifierResult> createDocumentClassifierAsync(CreateDocumentClassifierRequest request, AsyncHandler<CreateDocumentClassifierRequest,CreateDocumentClassifierResult> asyncHandler)
AmazonComprehendAsync
Creates a new document classifier that you can use to categorize documents. To create a 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.
createDocumentClassifierAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateEndpointResult> createEndpointAsync(CreateEndpointRequest request)
AmazonComprehendAsync
Creates a model-specific endpoint for synchronous inference for a previously trained custom model For information about endpoints, see Managing endpoints.
createEndpointAsync
in interface AmazonComprehendAsync
public Future<CreateEndpointResult> createEndpointAsync(CreateEndpointRequest request, AsyncHandler<CreateEndpointRequest,CreateEndpointResult> asyncHandler)
AmazonComprehendAsync
Creates a model-specific endpoint for synchronous inference for a previously trained custom model For information about endpoints, see Managing endpoints.
createEndpointAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateEntityRecognizerResult> createEntityRecognizerAsync(CreateEntityRecognizerRequest request)
AmazonComprehendAsync
Creates an entity recognizer using submitted files. After your CreateEntityRecognizer
request is
submitted, you can check job status using the DescribeEntityRecognizer
API.
createEntityRecognizerAsync
in interface AmazonComprehendAsync
public Future<CreateEntityRecognizerResult> createEntityRecognizerAsync(CreateEntityRecognizerRequest request, AsyncHandler<CreateEntityRecognizerRequest,CreateEntityRecognizerResult> asyncHandler)
AmazonComprehendAsync
Creates an entity recognizer using submitted files. After your CreateEntityRecognizer
request is
submitted, you can check job status using the DescribeEntityRecognizer
API.
createEntityRecognizerAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateFlywheelResult> createFlywheelAsync(CreateFlywheelRequest request)
AmazonComprehendAsync
A flywheel is an Amazon Web Services resource that orchestrates the ongoing training of a model for custom classification or custom entity recognition. You can create a flywheel to start with an existing trained model, or Comprehend can create and train a new model.
When you create the flywheel, Comprehend creates a data lake in your account. The data lake holds the training data and test data for all versions of the model.
To use a flywheel with an existing trained model, you specify the active model version. Comprehend copies the model's training data and test data into the flywheel's data lake.
To use the flywheel with a new model, you need to provide a dataset for training data (and optional test data) when you create the flywheel.
For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
createFlywheelAsync
in interface AmazonComprehendAsync
public Future<CreateFlywheelResult> createFlywheelAsync(CreateFlywheelRequest request, AsyncHandler<CreateFlywheelRequest,CreateFlywheelResult> asyncHandler)
AmazonComprehendAsync
A flywheel is an Amazon Web Services resource that orchestrates the ongoing training of a model for custom classification or custom entity recognition. You can create a flywheel to start with an existing trained model, or Comprehend can create and train a new model.
When you create the flywheel, Comprehend creates a data lake in your account. The data lake holds the training data and test data for all versions of the model.
To use a flywheel with an existing trained model, you specify the active model version. Comprehend copies the model's training data and test data into the flywheel's data lake.
To use the flywheel with a new model, you need to provide a dataset for training data (and optional test data) when you create the flywheel.
For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
createFlywheelAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteDocumentClassifierResult> deleteDocumentClassifierAsync(DeleteDocumentClassifierRequest request)
AmazonComprehendAsync
Deletes a previously created document classifier
Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference
job is using the model, a ResourceInUseException
will be returned.
This is an asynchronous action that puts the classifier into a DELETING state, and it is then removed by a background job. Once removed, the classifier disappears from your account and is no longer available for use.
deleteDocumentClassifierAsync
in interface AmazonComprehendAsync
public Future<DeleteDocumentClassifierResult> deleteDocumentClassifierAsync(DeleteDocumentClassifierRequest request, AsyncHandler<DeleteDocumentClassifierRequest,DeleteDocumentClassifierResult> asyncHandler)
AmazonComprehendAsync
Deletes a previously created document classifier
Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference
job is using the model, a ResourceInUseException
will be returned.
This is an asynchronous action that puts the classifier into a DELETING state, and it is then removed by a background job. Once removed, the classifier disappears from your account and is no longer available for use.
deleteDocumentClassifierAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteEndpointResult> deleteEndpointAsync(DeleteEndpointRequest request)
AmazonComprehendAsync
Deletes a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted. For information about endpoints, see Managing endpoints.
deleteEndpointAsync
in interface AmazonComprehendAsync
public Future<DeleteEndpointResult> deleteEndpointAsync(DeleteEndpointRequest request, AsyncHandler<DeleteEndpointRequest,DeleteEndpointResult> asyncHandler)
AmazonComprehendAsync
Deletes a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted. For information about endpoints, see Managing endpoints.
deleteEndpointAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteEntityRecognizerResult> deleteEntityRecognizerAsync(DeleteEntityRecognizerRequest request)
AmazonComprehendAsync
Deletes an entity recognizer.
Only those recognizers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference
job is using the model, a ResourceInUseException
will be returned.
This is an asynchronous action that puts the recognizer into a DELETING state, and it is then removed by a background job. Once removed, the recognizer disappears from your account and is no longer available for use.
deleteEntityRecognizerAsync
in interface AmazonComprehendAsync
public Future<DeleteEntityRecognizerResult> deleteEntityRecognizerAsync(DeleteEntityRecognizerRequest request, AsyncHandler<DeleteEntityRecognizerRequest,DeleteEntityRecognizerResult> asyncHandler)
AmazonComprehendAsync
Deletes an entity recognizer.
Only those recognizers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference
job is using the model, a ResourceInUseException
will be returned.
This is an asynchronous action that puts the recognizer into a DELETING state, and it is then removed by a background job. Once removed, the recognizer disappears from your account and is no longer available for use.
deleteEntityRecognizerAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteFlywheelResult> deleteFlywheelAsync(DeleteFlywheelRequest request)
AmazonComprehendAsync
Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does not delete the data lake or the model associated with the flywheel.
For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
deleteFlywheelAsync
in interface AmazonComprehendAsync
public Future<DeleteFlywheelResult> deleteFlywheelAsync(DeleteFlywheelRequest request, AsyncHandler<DeleteFlywheelRequest,DeleteFlywheelResult> asyncHandler)
AmazonComprehendAsync
Deletes a flywheel. When you delete the flywheel, Amazon Comprehend does not delete the data lake or the model associated with the flywheel.
For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
deleteFlywheelAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteResourcePolicyResult> deleteResourcePolicyAsync(DeleteResourcePolicyRequest request)
AmazonComprehendAsync
Deletes a resource-based policy that is attached to a custom model.
deleteResourcePolicyAsync
in interface AmazonComprehendAsync
public Future<DeleteResourcePolicyResult> deleteResourcePolicyAsync(DeleteResourcePolicyRequest request, AsyncHandler<DeleteResourcePolicyRequest,DeleteResourcePolicyResult> asyncHandler)
AmazonComprehendAsync
Deletes a resource-based policy that is attached to a custom model.
deleteResourcePolicyAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeDatasetResult> describeDatasetAsync(DescribeDatasetRequest request)
AmazonComprehendAsync
Returns information about the dataset that you specify. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
describeDatasetAsync
in interface AmazonComprehendAsync
public Future<DescribeDatasetResult> describeDatasetAsync(DescribeDatasetRequest request, AsyncHandler<DescribeDatasetRequest,DescribeDatasetResult> asyncHandler)
AmazonComprehendAsync
Returns information about the dataset that you specify. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
describeDatasetAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeDocumentClassificationJobResult> describeDocumentClassificationJobAsync(DescribeDocumentClassificationJobRequest request)
AmazonComprehendAsync
Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.
describeDocumentClassificationJobAsync
in interface AmazonComprehendAsync
public Future<DescribeDocumentClassificationJobResult> describeDocumentClassificationJobAsync(DescribeDocumentClassificationJobRequest request, AsyncHandler<DescribeDocumentClassificationJobRequest,DescribeDocumentClassificationJobResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.
describeDocumentClassificationJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeDocumentClassifierResult> describeDocumentClassifierAsync(DescribeDocumentClassifierRequest request)
AmazonComprehendAsync
Gets the properties associated with a document classifier.
describeDocumentClassifierAsync
in interface AmazonComprehendAsync
public Future<DescribeDocumentClassifierResult> describeDocumentClassifierAsync(DescribeDocumentClassifierRequest request, AsyncHandler<DescribeDocumentClassifierRequest,DescribeDocumentClassifierResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a document classifier.
describeDocumentClassifierAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeDominantLanguageDetectionJobResult> describeDominantLanguageDetectionJobAsync(DescribeDominantLanguageDetectionJobRequest request)
AmazonComprehendAsync
Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.
describeDominantLanguageDetectionJobAsync
in interface AmazonComprehendAsync
public Future<DescribeDominantLanguageDetectionJobResult> describeDominantLanguageDetectionJobAsync(DescribeDominantLanguageDetectionJobRequest request, AsyncHandler<DescribeDominantLanguageDetectionJobRequest,DescribeDominantLanguageDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.
describeDominantLanguageDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeEndpointResult> describeEndpointAsync(DescribeEndpointRequest request)
AmazonComprehendAsync
Gets the properties associated with a specific endpoint. Use this operation to get the status of an endpoint. For information about endpoints, see Managing endpoints.
describeEndpointAsync
in interface AmazonComprehendAsync
public Future<DescribeEndpointResult> describeEndpointAsync(DescribeEndpointRequest request, AsyncHandler<DescribeEndpointRequest,DescribeEndpointResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a specific endpoint. Use this operation to get the status of an endpoint. For information about endpoints, see Managing endpoints.
describeEndpointAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeEntitiesDetectionJobResult> describeEntitiesDetectionJobAsync(DescribeEntitiesDetectionJobRequest request)
AmazonComprehendAsync
Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.
describeEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<DescribeEntitiesDetectionJobResult> describeEntitiesDetectionJobAsync(DescribeEntitiesDetectionJobRequest request, AsyncHandler<DescribeEntitiesDetectionJobRequest,DescribeEntitiesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.
describeEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeEntityRecognizerResult> describeEntityRecognizerAsync(DescribeEntityRecognizerRequest request)
AmazonComprehendAsync
Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
describeEntityRecognizerAsync
in interface AmazonComprehendAsync
public Future<DescribeEntityRecognizerResult> describeEntityRecognizerAsync(DescribeEntityRecognizerRequest request, AsyncHandler<DescribeEntityRecognizerRequest,DescribeEntityRecognizerResult> asyncHandler)
AmazonComprehendAsync
Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
describeEntityRecognizerAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeEventsDetectionJobResult> describeEventsDetectionJobAsync(DescribeEventsDetectionJobRequest request)
AmazonComprehendAsync
Gets the status and details of an events detection job.
describeEventsDetectionJobAsync
in interface AmazonComprehendAsync
public Future<DescribeEventsDetectionJobResult> describeEventsDetectionJobAsync(DescribeEventsDetectionJobRequest request, AsyncHandler<DescribeEventsDetectionJobRequest,DescribeEventsDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Gets the status and details of an events detection job.
describeEventsDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeFlywheelResult> describeFlywheelAsync(DescribeFlywheelRequest request)
AmazonComprehendAsync
Provides configuration information about the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
describeFlywheelAsync
in interface AmazonComprehendAsync
public Future<DescribeFlywheelResult> describeFlywheelAsync(DescribeFlywheelRequest request, AsyncHandler<DescribeFlywheelRequest,DescribeFlywheelResult> asyncHandler)
AmazonComprehendAsync
Provides configuration information about the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
describeFlywheelAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeFlywheelIterationResult> describeFlywheelIterationAsync(DescribeFlywheelIterationRequest request)
AmazonComprehendAsync
Retrieve the configuration properties of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
describeFlywheelIterationAsync
in interface AmazonComprehendAsync
public Future<DescribeFlywheelIterationResult> describeFlywheelIterationAsync(DescribeFlywheelIterationRequest request, AsyncHandler<DescribeFlywheelIterationRequest,DescribeFlywheelIterationResult> asyncHandler)
AmazonComprehendAsync
Retrieve the configuration properties of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
describeFlywheelIterationAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeKeyPhrasesDetectionJobResult> describeKeyPhrasesDetectionJobAsync(DescribeKeyPhrasesDetectionJobRequest request)
AmazonComprehendAsync
Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.
describeKeyPhrasesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<DescribeKeyPhrasesDetectionJobResult> describeKeyPhrasesDetectionJobAsync(DescribeKeyPhrasesDetectionJobRequest request, AsyncHandler<DescribeKeyPhrasesDetectionJobRequest,DescribeKeyPhrasesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.
describeKeyPhrasesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribePiiEntitiesDetectionJobResult> describePiiEntitiesDetectionJobAsync(DescribePiiEntitiesDetectionJobRequest request)
AmazonComprehendAsync
Gets the properties associated with a PII entities detection job. For example, you can use this operation to get the job status.
describePiiEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<DescribePiiEntitiesDetectionJobResult> describePiiEntitiesDetectionJobAsync(DescribePiiEntitiesDetectionJobRequest request, AsyncHandler<DescribePiiEntitiesDetectionJobRequest,DescribePiiEntitiesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a PII entities detection job. For example, you can use this operation to get the job status.
describePiiEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeResourcePolicyResult> describeResourcePolicyAsync(DescribeResourcePolicyRequest request)
AmazonComprehendAsync
Gets the details of a resource-based policy that is attached to a custom model, including the JSON body of the policy.
describeResourcePolicyAsync
in interface AmazonComprehendAsync
public Future<DescribeResourcePolicyResult> describeResourcePolicyAsync(DescribeResourcePolicyRequest request, AsyncHandler<DescribeResourcePolicyRequest,DescribeResourcePolicyResult> asyncHandler)
AmazonComprehendAsync
Gets the details of a resource-based policy that is attached to a custom model, including the JSON body of the policy.
describeResourcePolicyAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeSentimentDetectionJobResult> describeSentimentDetectionJobAsync(DescribeSentimentDetectionJobRequest request)
AmazonComprehendAsync
Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.
describeSentimentDetectionJobAsync
in interface AmazonComprehendAsync
public Future<DescribeSentimentDetectionJobResult> describeSentimentDetectionJobAsync(DescribeSentimentDetectionJobRequest request, AsyncHandler<DescribeSentimentDetectionJobRequest,DescribeSentimentDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.
describeSentimentDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeTargetedSentimentDetectionJobResult> describeTargetedSentimentDetectionJobAsync(DescribeTargetedSentimentDetectionJobRequest request)
AmazonComprehendAsync
Gets the properties associated with a targeted sentiment detection job. Use this operation to get the status of the job.
describeTargetedSentimentDetectionJobAsync
in interface AmazonComprehendAsync
public Future<DescribeTargetedSentimentDetectionJobResult> describeTargetedSentimentDetectionJobAsync(DescribeTargetedSentimentDetectionJobRequest request, AsyncHandler<DescribeTargetedSentimentDetectionJobRequest,DescribeTargetedSentimentDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a targeted sentiment detection job. Use this operation to get the status of the job.
describeTargetedSentimentDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeTopicsDetectionJobResult> describeTopicsDetectionJobAsync(DescribeTopicsDetectionJobRequest request)
AmazonComprehendAsync
Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.
describeTopicsDetectionJobAsync
in interface AmazonComprehendAsync
public Future<DescribeTopicsDetectionJobResult> describeTopicsDetectionJobAsync(DescribeTopicsDetectionJobRequest request, AsyncHandler<DescribeTopicsDetectionJobRequest,DescribeTopicsDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.
describeTopicsDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectDominantLanguageResult> detectDominantLanguageAsync(DetectDominantLanguageRequest request)
AmazonComprehendAsync
Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
detectDominantLanguageAsync
in interface AmazonComprehendAsync
public Future<DetectDominantLanguageResult> detectDominantLanguageAsync(DetectDominantLanguageRequest request, AsyncHandler<DetectDominantLanguageRequest,DetectDominantLanguageResult> asyncHandler)
AmazonComprehendAsync
Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
detectDominantLanguageAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectEntitiesResult> detectEntitiesAsync(DetectEntitiesRequest request)
AmazonComprehendAsync
Detects named entities in input text when you use the pre-trained model. Detects custom entities if you have a custom entity recognition model.
When detecting named entities using the pre-trained model, use plain text as the input. For more information about named entities, see Entities in the Comprehend Developer Guide.
When you use a custom entity recognition model, you can input plain text or you can upload a single-page input document (text, PDF, Word, or image).
If the system detects errors while processing a page in the input document, the API response includes an entry in
Errors
for each error.
If the system detects a document-level error in your input document, the API returns an
InvalidRequestException
error response. For details about this exception, see Errors in semi-structured
documents in the Comprehend Developer Guide.
detectEntitiesAsync
in interface AmazonComprehendAsync
public Future<DetectEntitiesResult> detectEntitiesAsync(DetectEntitiesRequest request, AsyncHandler<DetectEntitiesRequest,DetectEntitiesResult> asyncHandler)
AmazonComprehendAsync
Detects named entities in input text when you use the pre-trained model. Detects custom entities if you have a custom entity recognition model.
When detecting named entities using the pre-trained model, use plain text as the input. For more information about named entities, see Entities in the Comprehend Developer Guide.
When you use a custom entity recognition model, you can input plain text or you can upload a single-page input document (text, PDF, Word, or image).
If the system detects errors while processing a page in the input document, the API response includes an entry in
Errors
for each error.
If the system detects a document-level error in your input document, the API returns an
InvalidRequestException
error response. For details about this exception, see Errors in semi-structured
documents in the Comprehend Developer Guide.
detectEntitiesAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectKeyPhrasesResult> detectKeyPhrasesAsync(DetectKeyPhrasesRequest request)
AmazonComprehendAsync
Detects the key noun phrases found in the text.
detectKeyPhrasesAsync
in interface AmazonComprehendAsync
public Future<DetectKeyPhrasesResult> detectKeyPhrasesAsync(DetectKeyPhrasesRequest request, AsyncHandler<DetectKeyPhrasesRequest,DetectKeyPhrasesResult> asyncHandler)
AmazonComprehendAsync
Detects the key noun phrases found in the text.
detectKeyPhrasesAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectPiiEntitiesResult> detectPiiEntitiesAsync(DetectPiiEntitiesRequest request)
AmazonComprehendAsync
Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.
detectPiiEntitiesAsync
in interface AmazonComprehendAsync
public Future<DetectPiiEntitiesResult> detectPiiEntitiesAsync(DetectPiiEntitiesRequest request, AsyncHandler<DetectPiiEntitiesRequest,DetectPiiEntitiesResult> asyncHandler)
AmazonComprehendAsync
Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.
detectPiiEntitiesAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectSentimentResult> detectSentimentAsync(DetectSentimentRequest request)
AmazonComprehendAsync
Inspects text and returns an inference of the prevailing sentiment (POSITIVE
, NEUTRAL
,
MIXED
, or NEGATIVE
).
detectSentimentAsync
in interface AmazonComprehendAsync
public Future<DetectSentimentResult> detectSentimentAsync(DetectSentimentRequest request, AsyncHandler<DetectSentimentRequest,DetectSentimentResult> asyncHandler)
AmazonComprehendAsync
Inspects text and returns an inference of the prevailing sentiment (POSITIVE
, NEUTRAL
,
MIXED
, or NEGATIVE
).
detectSentimentAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectSyntaxResult> detectSyntaxAsync(DetectSyntaxRequest request)
AmazonComprehendAsync
Inspects text for syntax and the part of speech of words in the document. For more information, see Syntax in the Comprehend Developer Guide.
detectSyntaxAsync
in interface AmazonComprehendAsync
public Future<DetectSyntaxResult> detectSyntaxAsync(DetectSyntaxRequest request, AsyncHandler<DetectSyntaxRequest,DetectSyntaxResult> asyncHandler)
AmazonComprehendAsync
Inspects text for syntax and the part of speech of words in the document. For more information, see Syntax in the Comprehend Developer Guide.
detectSyntaxAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectTargetedSentimentResult> detectTargetedSentimentAsync(DetectTargetedSentimentRequest request)
AmazonComprehendAsync
Inspects the input text and returns a sentiment analysis for each entity identified in the text.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
detectTargetedSentimentAsync
in interface AmazonComprehendAsync
public Future<DetectTargetedSentimentResult> detectTargetedSentimentAsync(DetectTargetedSentimentRequest request, AsyncHandler<DetectTargetedSentimentRequest,DetectTargetedSentimentResult> asyncHandler)
AmazonComprehendAsync
Inspects the input text and returns a sentiment analysis for each entity identified in the text.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
detectTargetedSentimentAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DetectToxicContentResult> detectToxicContentAsync(DetectToxicContentRequest request)
AmazonComprehendAsync
Performs toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.
detectToxicContentAsync
in interface AmazonComprehendAsync
public Future<DetectToxicContentResult> detectToxicContentAsync(DetectToxicContentRequest request, AsyncHandler<DetectToxicContentRequest,DetectToxicContentResult> asyncHandler)
AmazonComprehendAsync
Performs toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.
detectToxicContentAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ImportModelResult> importModelAsync(ImportModelRequest request)
AmazonComprehendAsync
Creates a new custom model that replicates a source custom model that you import. The source model can be in your Amazon Web Services account or another one.
If the source model is in another Amazon Web Services account, then it must have a resource-based policy that authorizes you to import it.
The source model must be in the same Amazon Web Services Region that you're using when you import. You can't import a model that's in a different Region.
importModelAsync
in interface AmazonComprehendAsync
public Future<ImportModelResult> importModelAsync(ImportModelRequest request, AsyncHandler<ImportModelRequest,ImportModelResult> asyncHandler)
AmazonComprehendAsync
Creates a new custom model that replicates a source custom model that you import. The source model can be in your Amazon Web Services account or another one.
If the source model is in another Amazon Web Services account, then it must have a resource-based policy that authorizes you to import it.
The source model must be in the same Amazon Web Services Region that you're using when you import. You can't import a model that's in a different Region.
importModelAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDatasetsResult> listDatasetsAsync(ListDatasetsRequest request)
AmazonComprehendAsync
List the datasets that you have configured in this Region. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
listDatasetsAsync
in interface AmazonComprehendAsync
public Future<ListDatasetsResult> listDatasetsAsync(ListDatasetsRequest request, AsyncHandler<ListDatasetsRequest,ListDatasetsResult> asyncHandler)
AmazonComprehendAsync
List the datasets that you have configured in this Region. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
listDatasetsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDocumentClassificationJobsResult> listDocumentClassificationJobsAsync(ListDocumentClassificationJobsRequest request)
AmazonComprehendAsync
Gets a list of the documentation classification jobs that you have submitted.
listDocumentClassificationJobsAsync
in interface AmazonComprehendAsync
public Future<ListDocumentClassificationJobsResult> listDocumentClassificationJobsAsync(ListDocumentClassificationJobsRequest request, AsyncHandler<ListDocumentClassificationJobsRequest,ListDocumentClassificationJobsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the documentation classification jobs that you have submitted.
listDocumentClassificationJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDocumentClassifierSummariesResult> listDocumentClassifierSummariesAsync(ListDocumentClassifierSummariesRequest request)
AmazonComprehendAsync
Gets a list of summaries of the document classifiers that you have created
listDocumentClassifierSummariesAsync
in interface AmazonComprehendAsync
public Future<ListDocumentClassifierSummariesResult> listDocumentClassifierSummariesAsync(ListDocumentClassifierSummariesRequest request, AsyncHandler<ListDocumentClassifierSummariesRequest,ListDocumentClassifierSummariesResult> asyncHandler)
AmazonComprehendAsync
Gets a list of summaries of the document classifiers that you have created
listDocumentClassifierSummariesAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDocumentClassifiersResult> listDocumentClassifiersAsync(ListDocumentClassifiersRequest request)
AmazonComprehendAsync
Gets a list of the document classifiers that you have created.
listDocumentClassifiersAsync
in interface AmazonComprehendAsync
public Future<ListDocumentClassifiersResult> listDocumentClassifiersAsync(ListDocumentClassifiersRequest request, AsyncHandler<ListDocumentClassifiersRequest,ListDocumentClassifiersResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the document classifiers that you have created.
listDocumentClassifiersAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDominantLanguageDetectionJobsResult> listDominantLanguageDetectionJobsAsync(ListDominantLanguageDetectionJobsRequest request)
AmazonComprehendAsync
Gets a list of the dominant language detection jobs that you have submitted.
listDominantLanguageDetectionJobsAsync
in interface AmazonComprehendAsync
public Future<ListDominantLanguageDetectionJobsResult> listDominantLanguageDetectionJobsAsync(ListDominantLanguageDetectionJobsRequest request, AsyncHandler<ListDominantLanguageDetectionJobsRequest,ListDominantLanguageDetectionJobsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the dominant language detection jobs that you have submitted.
listDominantLanguageDetectionJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEndpointsResult> listEndpointsAsync(ListEndpointsRequest request)
AmazonComprehendAsync
Gets a list of all existing endpoints that you've created. For information about endpoints, see Managing endpoints.
listEndpointsAsync
in interface AmazonComprehendAsync
public Future<ListEndpointsResult> listEndpointsAsync(ListEndpointsRequest request, AsyncHandler<ListEndpointsRequest,ListEndpointsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of all existing endpoints that you've created. For information about endpoints, see Managing endpoints.
listEndpointsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEntitiesDetectionJobsResult> listEntitiesDetectionJobsAsync(ListEntitiesDetectionJobsRequest request)
AmazonComprehendAsync
Gets a list of the entity detection jobs that you have submitted.
listEntitiesDetectionJobsAsync
in interface AmazonComprehendAsync
public Future<ListEntitiesDetectionJobsResult> listEntitiesDetectionJobsAsync(ListEntitiesDetectionJobsRequest request, AsyncHandler<ListEntitiesDetectionJobsRequest,ListEntitiesDetectionJobsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the entity detection jobs that you have submitted.
listEntitiesDetectionJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEntityRecognizerSummariesResult> listEntityRecognizerSummariesAsync(ListEntityRecognizerSummariesRequest request)
AmazonComprehendAsync
Gets a list of summaries for the entity recognizers that you have created.
listEntityRecognizerSummariesAsync
in interface AmazonComprehendAsync
public Future<ListEntityRecognizerSummariesResult> listEntityRecognizerSummariesAsync(ListEntityRecognizerSummariesRequest request, AsyncHandler<ListEntityRecognizerSummariesRequest,ListEntityRecognizerSummariesResult> asyncHandler)
AmazonComprehendAsync
Gets a list of summaries for the entity recognizers that you have created.
listEntityRecognizerSummariesAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEntityRecognizersResult> listEntityRecognizersAsync(ListEntityRecognizersRequest request)
AmazonComprehendAsync
Gets a list of the properties of all entity recognizers that you created, including recognizers currently in training. Allows you to filter the list of recognizers based on criteria such as status and submission time. This call returns up to 500 entity recognizers in the list, with a default number of 100 recognizers in the list.
The results of this list are not in any particular order. Please get the list and sort locally if needed.
listEntityRecognizersAsync
in interface AmazonComprehendAsync
public Future<ListEntityRecognizersResult> listEntityRecognizersAsync(ListEntityRecognizersRequest request, AsyncHandler<ListEntityRecognizersRequest,ListEntityRecognizersResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the properties of all entity recognizers that you created, including recognizers currently in training. Allows you to filter the list of recognizers based on criteria such as status and submission time. This call returns up to 500 entity recognizers in the list, with a default number of 100 recognizers in the list.
The results of this list are not in any particular order. Please get the list and sort locally if needed.
listEntityRecognizersAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEventsDetectionJobsResult> listEventsDetectionJobsAsync(ListEventsDetectionJobsRequest request)
AmazonComprehendAsync
Gets a list of the events detection jobs that you have submitted.
listEventsDetectionJobsAsync
in interface AmazonComprehendAsync
public Future<ListEventsDetectionJobsResult> listEventsDetectionJobsAsync(ListEventsDetectionJobsRequest request, AsyncHandler<ListEventsDetectionJobsRequest,ListEventsDetectionJobsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the events detection jobs that you have submitted.
listEventsDetectionJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListFlywheelIterationHistoryResult> listFlywheelIterationHistoryAsync(ListFlywheelIterationHistoryRequest request)
AmazonComprehendAsync
Information about the history of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
listFlywheelIterationHistoryAsync
in interface AmazonComprehendAsync
public Future<ListFlywheelIterationHistoryResult> listFlywheelIterationHistoryAsync(ListFlywheelIterationHistoryRequest request, AsyncHandler<ListFlywheelIterationHistoryRequest,ListFlywheelIterationHistoryResult> asyncHandler)
AmazonComprehendAsync
Information about the history of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
listFlywheelIterationHistoryAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListFlywheelsResult> listFlywheelsAsync(ListFlywheelsRequest request)
AmazonComprehendAsync
Gets a list of the flywheels that you have created.
listFlywheelsAsync
in interface AmazonComprehendAsync
public Future<ListFlywheelsResult> listFlywheelsAsync(ListFlywheelsRequest request, AsyncHandler<ListFlywheelsRequest,ListFlywheelsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the flywheels that you have created.
listFlywheelsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListKeyPhrasesDetectionJobsResult> listKeyPhrasesDetectionJobsAsync(ListKeyPhrasesDetectionJobsRequest request)
AmazonComprehendAsync
Get a list of key phrase detection jobs that you have submitted.
listKeyPhrasesDetectionJobsAsync
in interface AmazonComprehendAsync
public Future<ListKeyPhrasesDetectionJobsResult> listKeyPhrasesDetectionJobsAsync(ListKeyPhrasesDetectionJobsRequest request, AsyncHandler<ListKeyPhrasesDetectionJobsRequest,ListKeyPhrasesDetectionJobsResult> asyncHandler)
AmazonComprehendAsync
Get a list of key phrase detection jobs that you have submitted.
listKeyPhrasesDetectionJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPiiEntitiesDetectionJobsResult> listPiiEntitiesDetectionJobsAsync(ListPiiEntitiesDetectionJobsRequest request)
AmazonComprehendAsync
Gets a list of the PII entity detection jobs that you have submitted.
listPiiEntitiesDetectionJobsAsync
in interface AmazonComprehendAsync
public Future<ListPiiEntitiesDetectionJobsResult> listPiiEntitiesDetectionJobsAsync(ListPiiEntitiesDetectionJobsRequest request, AsyncHandler<ListPiiEntitiesDetectionJobsRequest,ListPiiEntitiesDetectionJobsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the PII entity detection jobs that you have submitted.
listPiiEntitiesDetectionJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListSentimentDetectionJobsResult> listSentimentDetectionJobsAsync(ListSentimentDetectionJobsRequest request)
AmazonComprehendAsync
Gets a list of sentiment detection jobs that you have submitted.
listSentimentDetectionJobsAsync
in interface AmazonComprehendAsync
public Future<ListSentimentDetectionJobsResult> listSentimentDetectionJobsAsync(ListSentimentDetectionJobsRequest request, AsyncHandler<ListSentimentDetectionJobsRequest,ListSentimentDetectionJobsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of sentiment detection jobs that you have submitted.
listSentimentDetectionJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonComprehendAsync
Lists all tags associated with a given Amazon Comprehend resource.
listTagsForResourceAsync
in interface AmazonComprehendAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonComprehendAsync
Lists all tags associated with a given Amazon Comprehend resource.
listTagsForResourceAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTargetedSentimentDetectionJobsResult> listTargetedSentimentDetectionJobsAsync(ListTargetedSentimentDetectionJobsRequest request)
AmazonComprehendAsync
Gets a list of targeted sentiment detection jobs that you have submitted.
listTargetedSentimentDetectionJobsAsync
in interface AmazonComprehendAsync
public Future<ListTargetedSentimentDetectionJobsResult> listTargetedSentimentDetectionJobsAsync(ListTargetedSentimentDetectionJobsRequest request, AsyncHandler<ListTargetedSentimentDetectionJobsRequest,ListTargetedSentimentDetectionJobsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of targeted sentiment detection jobs that you have submitted.
listTargetedSentimentDetectionJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTopicsDetectionJobsResult> listTopicsDetectionJobsAsync(ListTopicsDetectionJobsRequest request)
AmazonComprehendAsync
Gets a list of the topic detection jobs that you have submitted.
listTopicsDetectionJobsAsync
in interface AmazonComprehendAsync
public Future<ListTopicsDetectionJobsResult> listTopicsDetectionJobsAsync(ListTopicsDetectionJobsRequest request, AsyncHandler<ListTopicsDetectionJobsRequest,ListTopicsDetectionJobsResult> asyncHandler)
AmazonComprehendAsync
Gets a list of the topic detection jobs that you have submitted.
listTopicsDetectionJobsAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutResourcePolicyResult> putResourcePolicyAsync(PutResourcePolicyRequest request)
AmazonComprehendAsync
Attaches a resource-based policy to a custom model. You can use this policy to authorize an entity in another Amazon Web Services account to import the custom model, which replicates it in Amazon Comprehend in their account.
putResourcePolicyAsync
in interface AmazonComprehendAsync
public Future<PutResourcePolicyResult> putResourcePolicyAsync(PutResourcePolicyRequest request, AsyncHandler<PutResourcePolicyRequest,PutResourcePolicyResult> asyncHandler)
AmazonComprehendAsync
Attaches a resource-based policy to a custom model. You can use this policy to authorize an entity in another Amazon Web Services account to import the custom model, which replicates it in Amazon Comprehend in their account.
putResourcePolicyAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartDocumentClassificationJobResult> startDocumentClassificationJobAsync(StartDocumentClassificationJobRequest request)
AmazonComprehendAsync
Starts an asynchronous document classification job using a custom classification model. Use the
DescribeDocumentClassificationJob
operation to track the progress of the job.
startDocumentClassificationJobAsync
in interface AmazonComprehendAsync
public Future<StartDocumentClassificationJobResult> startDocumentClassificationJobAsync(StartDocumentClassificationJobRequest request, AsyncHandler<StartDocumentClassificationJobRequest,StartDocumentClassificationJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous document classification job using a custom classification model. Use the
DescribeDocumentClassificationJob
operation to track the progress of the job.
startDocumentClassificationJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartDominantLanguageDetectionJobResult> startDominantLanguageDetectionJobAsync(StartDominantLanguageDetectionJobRequest request)
AmazonComprehendAsync
Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.
startDominantLanguageDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StartDominantLanguageDetectionJobResult> startDominantLanguageDetectionJobAsync(StartDominantLanguageDetectionJobRequest request, AsyncHandler<StartDominantLanguageDetectionJobRequest,StartDominantLanguageDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.
startDominantLanguageDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartEntitiesDetectionJobResult> startEntitiesDetectionJobAsync(StartEntitiesDetectionJobRequest request)
AmazonComprehendAsync
Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.
This API can be used for either standard entity detection or custom entity recognition. In order to be used for
custom entity recognition, the optional EntityRecognizerArn
must be used in order to provide access
to the recognizer being used to detect the custom entity.
startEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StartEntitiesDetectionJobResult> startEntitiesDetectionJobAsync(StartEntitiesDetectionJobRequest request, AsyncHandler<StartEntitiesDetectionJobRequest,StartEntitiesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.
This API can be used for either standard entity detection or custom entity recognition. In order to be used for
custom entity recognition, the optional EntityRecognizerArn
must be used in order to provide access
to the recognizer being used to detect the custom entity.
startEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartEventsDetectionJobResult> startEventsDetectionJobAsync(StartEventsDetectionJobRequest request)
AmazonComprehendAsync
Starts an asynchronous event detection job for a collection of documents.
startEventsDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StartEventsDetectionJobResult> startEventsDetectionJobAsync(StartEventsDetectionJobRequest request, AsyncHandler<StartEventsDetectionJobRequest,StartEventsDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous event detection job for a collection of documents.
startEventsDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartFlywheelIterationResult> startFlywheelIterationAsync(StartFlywheelIterationRequest request)
AmazonComprehendAsync
Start the flywheel iteration.This operation uses any new datasets to train a new model version. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
startFlywheelIterationAsync
in interface AmazonComprehendAsync
public Future<StartFlywheelIterationResult> startFlywheelIterationAsync(StartFlywheelIterationRequest request, AsyncHandler<StartFlywheelIterationRequest,StartFlywheelIterationResult> asyncHandler)
AmazonComprehendAsync
Start the flywheel iteration.This operation uses any new datasets to train a new model version. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.
startFlywheelIterationAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartKeyPhrasesDetectionJobResult> startKeyPhrasesDetectionJobAsync(StartKeyPhrasesDetectionJobRequest request)
AmazonComprehendAsync
Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.
startKeyPhrasesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StartKeyPhrasesDetectionJobResult> startKeyPhrasesDetectionJobAsync(StartKeyPhrasesDetectionJobRequest request, AsyncHandler<StartKeyPhrasesDetectionJobRequest,StartKeyPhrasesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.
startKeyPhrasesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartPiiEntitiesDetectionJobResult> startPiiEntitiesDetectionJobAsync(StartPiiEntitiesDetectionJobRequest request)
AmazonComprehendAsync
Starts an asynchronous PII entity detection job for a collection of documents.
startPiiEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StartPiiEntitiesDetectionJobResult> startPiiEntitiesDetectionJobAsync(StartPiiEntitiesDetectionJobRequest request, AsyncHandler<StartPiiEntitiesDetectionJobRequest,StartPiiEntitiesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous PII entity detection job for a collection of documents.
startPiiEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartSentimentDetectionJobResult> startSentimentDetectionJobAsync(StartSentimentDetectionJobRequest request)
AmazonComprehendAsync
Starts an asynchronous sentiment detection job for a collection of documents. Use the operation to track the status of a job.
startSentimentDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StartSentimentDetectionJobResult> startSentimentDetectionJobAsync(StartSentimentDetectionJobRequest request, AsyncHandler<StartSentimentDetectionJobRequest,StartSentimentDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous sentiment detection job for a collection of documents. Use the operation to track the status of a job.
startSentimentDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartTargetedSentimentDetectionJobResult> startTargetedSentimentDetectionJobAsync(StartTargetedSentimentDetectionJobRequest request)
AmazonComprehendAsync
Starts an asynchronous targeted sentiment detection job for a collection of documents. Use the
DescribeTargetedSentimentDetectionJob
operation to track the status of a job.
startTargetedSentimentDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StartTargetedSentimentDetectionJobResult> startTargetedSentimentDetectionJobAsync(StartTargetedSentimentDetectionJobRequest request, AsyncHandler<StartTargetedSentimentDetectionJobRequest,StartTargetedSentimentDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous targeted sentiment detection job for a collection of documents. Use the
DescribeTargetedSentimentDetectionJob
operation to track the status of a job.
startTargetedSentimentDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartTopicsDetectionJobResult> startTopicsDetectionJobAsync(StartTopicsDetectionJobRequest request)
AmazonComprehendAsync
Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob
operation to track the
status of a job.
startTopicsDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StartTopicsDetectionJobResult> startTopicsDetectionJobAsync(StartTopicsDetectionJobRequest request, AsyncHandler<StartTopicsDetectionJobRequest,StartTopicsDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob
operation to track the
status of a job.
startTopicsDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopDominantLanguageDetectionJobResult> stopDominantLanguageDetectionJobAsync(StopDominantLanguageDetectionJobRequest request)
AmazonComprehendAsync
Stops a dominant language detection job in progress.
If the job state is IN_PROGRESS
the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopDominantLanguageDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StopDominantLanguageDetectionJobResult> stopDominantLanguageDetectionJobAsync(StopDominantLanguageDetectionJobRequest request, AsyncHandler<StopDominantLanguageDetectionJobRequest,StopDominantLanguageDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Stops a dominant language detection job in progress.
If the job state is IN_PROGRESS
the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopDominantLanguageDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopEntitiesDetectionJobResult> stopEntitiesDetectionJobAsync(StopEntitiesDetectionJobRequest request)
AmazonComprehendAsync
Stops an entities detection job in progress.
If the job state is IN_PROGRESS
the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StopEntitiesDetectionJobResult> stopEntitiesDetectionJobAsync(StopEntitiesDetectionJobRequest request, AsyncHandler<StopEntitiesDetectionJobRequest,StopEntitiesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Stops an entities detection job in progress.
If the job state is IN_PROGRESS
the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopEventsDetectionJobResult> stopEventsDetectionJobAsync(StopEventsDetectionJobRequest request)
AmazonComprehendAsync
Stops an events detection job in progress.
stopEventsDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StopEventsDetectionJobResult> stopEventsDetectionJobAsync(StopEventsDetectionJobRequest request, AsyncHandler<StopEventsDetectionJobRequest,StopEventsDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Stops an events detection job in progress.
stopEventsDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopKeyPhrasesDetectionJobResult> stopKeyPhrasesDetectionJobAsync(StopKeyPhrasesDetectionJobRequest request)
AmazonComprehendAsync
Stops a key phrases detection job in progress.
If the job state is IN_PROGRESS
the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopKeyPhrasesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StopKeyPhrasesDetectionJobResult> stopKeyPhrasesDetectionJobAsync(StopKeyPhrasesDetectionJobRequest request, AsyncHandler<StopKeyPhrasesDetectionJobRequest,StopKeyPhrasesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Stops a key phrases detection job in progress.
If the job state is IN_PROGRESS
the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopKeyPhrasesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopPiiEntitiesDetectionJobResult> stopPiiEntitiesDetectionJobAsync(StopPiiEntitiesDetectionJobRequest request)
AmazonComprehendAsync
Stops a PII entities detection job in progress.
stopPiiEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StopPiiEntitiesDetectionJobResult> stopPiiEntitiesDetectionJobAsync(StopPiiEntitiesDetectionJobRequest request, AsyncHandler<StopPiiEntitiesDetectionJobRequest,StopPiiEntitiesDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Stops a PII entities detection job in progress.
stopPiiEntitiesDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopSentimentDetectionJobResult> stopSentimentDetectionJobAsync(StopSentimentDetectionJobRequest request)
AmazonComprehendAsync
Stops a sentiment detection job in progress.
If the job state is IN_PROGRESS
, the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is be stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopSentimentDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StopSentimentDetectionJobResult> stopSentimentDetectionJobAsync(StopSentimentDetectionJobRequest request, AsyncHandler<StopSentimentDetectionJobRequest,StopSentimentDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Stops a sentiment detection job in progress.
If the job state is IN_PROGRESS
, the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is be stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopSentimentDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopTargetedSentimentDetectionJobResult> stopTargetedSentimentDetectionJobAsync(StopTargetedSentimentDetectionJobRequest request)
AmazonComprehendAsync
Stops a targeted sentiment detection job in progress.
If the job state is IN_PROGRESS
, the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is be stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopTargetedSentimentDetectionJobAsync
in interface AmazonComprehendAsync
public Future<StopTargetedSentimentDetectionJobResult> stopTargetedSentimentDetectionJobAsync(StopTargetedSentimentDetectionJobRequest request, AsyncHandler<StopTargetedSentimentDetectionJobRequest,StopTargetedSentimentDetectionJobResult> asyncHandler)
AmazonComprehendAsync
Stops a targeted sentiment detection job in progress.
If the job state is IN_PROGRESS
, the job is marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state; otherwise the job is be stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
stopTargetedSentimentDetectionJobAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopTrainingDocumentClassifierResult> stopTrainingDocumentClassifierAsync(StopTrainingDocumentClassifierRequest request)
AmazonComprehendAsync
Stops a document classifier training job while in progress.
If the training job state is TRAINING
, the job is marked for termination and put into the
STOP_REQUESTED
state. If the training job completes before it can be stopped, it is put into the
TRAINED
; otherwise the training job is stopped and put into the STOPPED
state and the
service sends back an HTTP 200 response with an empty HTTP body.
stopTrainingDocumentClassifierAsync
in interface AmazonComprehendAsync
public Future<StopTrainingDocumentClassifierResult> stopTrainingDocumentClassifierAsync(StopTrainingDocumentClassifierRequest request, AsyncHandler<StopTrainingDocumentClassifierRequest,StopTrainingDocumentClassifierResult> asyncHandler)
AmazonComprehendAsync
Stops a document classifier training job while in progress.
If the training job state is TRAINING
, the job is marked for termination and put into the
STOP_REQUESTED
state. If the training job completes before it can be stopped, it is put into the
TRAINED
; otherwise the training job is stopped and put into the STOPPED
state and the
service sends back an HTTP 200 response with an empty HTTP body.
stopTrainingDocumentClassifierAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopTrainingEntityRecognizerResult> stopTrainingEntityRecognizerAsync(StopTrainingEntityRecognizerRequest request)
AmazonComprehendAsync
Stops an entity recognizer training job while in progress.
If the training job state is TRAINING
, the job is marked for termination and put into the
STOP_REQUESTED
state. If the training job completes before it can be stopped, it is put into the
TRAINED
; otherwise the training job is stopped and putted into the STOPPED
state and
the service sends back an HTTP 200 response with an empty HTTP body.
stopTrainingEntityRecognizerAsync
in interface AmazonComprehendAsync
public Future<StopTrainingEntityRecognizerResult> stopTrainingEntityRecognizerAsync(StopTrainingEntityRecognizerRequest request, AsyncHandler<StopTrainingEntityRecognizerRequest,StopTrainingEntityRecognizerResult> asyncHandler)
AmazonComprehendAsync
Stops an entity recognizer training job while in progress.
If the training job state is TRAINING
, the job is marked for termination and put into the
STOP_REQUESTED
state. If the training job completes before it can be stopped, it is put into the
TRAINED
; otherwise the training job is stopped and putted into the STOPPED
state and
the service sends back an HTTP 200 response with an empty HTTP body.
stopTrainingEntityRecognizerAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonComprehendAsync
Associates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
tagResourceAsync
in interface AmazonComprehendAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonComprehendAsync
Associates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
tagResourceAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonComprehendAsync
Removes a specific tag associated with an Amazon Comprehend resource.
untagResourceAsync
in interface AmazonComprehendAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonComprehendAsync
Removes a specific tag associated with an Amazon Comprehend resource.
untagResourceAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateEndpointResult> updateEndpointAsync(UpdateEndpointRequest request)
AmazonComprehendAsync
Updates information about the specified endpoint. For information about endpoints, see Managing endpoints.
updateEndpointAsync
in interface AmazonComprehendAsync
public Future<UpdateEndpointResult> updateEndpointAsync(UpdateEndpointRequest request, AsyncHandler<UpdateEndpointRequest,UpdateEndpointResult> asyncHandler)
AmazonComprehendAsync
Updates information about the specified endpoint. For information about endpoints, see Managing endpoints.
updateEndpointAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateFlywheelResult> updateFlywheelAsync(UpdateFlywheelRequest request)
AmazonComprehendAsync
Update the configuration information for an existing flywheel.
updateFlywheelAsync
in interface AmazonComprehendAsync
public Future<UpdateFlywheelResult> updateFlywheelAsync(UpdateFlywheelRequest request, AsyncHandler<UpdateFlywheelRequest,UpdateFlywheelResult> asyncHandler)
AmazonComprehendAsync
Update the configuration information for an existing flywheel.
updateFlywheelAsync
in interface AmazonComprehendAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.