// // Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // A copy of the License is located at // // http://aws.amazon.com/apache2.0 // // or in the "license" file accompanying this file. This file is distributed // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either // express or implied. See the License for the specific language governing // permissions and limitations under the License. // #import #import #import "AWSComprehendModel.h" #import "AWSComprehendResources.h" NS_ASSUME_NONNULL_BEGIN //! SDK version for AWSComprehend FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; /**

Amazon Comprehend is an Amazon Web Services service for gaining insight into the content of documents. Use these actions to determine the topics contained in your documents, the topics they discuss, the predominant sentiment expressed in them, the predominant language used, and more.

*/ @interface AWSComprehend : AWSService /** The service configuration used to instantiate this service client. @warning Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors. */ @property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration; /** Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with `defaultServiceConfiguration` from `[AWSServiceManager defaultServiceManager]`. The reference to this object is maintained by the SDK, and you do not need to retain it manually. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider) AWSServiceManager.default().defaultServiceConfiguration = configuration return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:credentialsProvider]; [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration; return YES; } Then call the following to get the default service client: *Swift* let Comprehend = AWSComprehend.default() *Objective-C* AWSComprehend *Comprehend = [AWSComprehend defaultComprehend]; @return The default service client. */ + (instancetype)defaultComprehend; /** Creates a service client with the given service configuration and registers it for the key. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSComprehend.register(with: configuration!, forKey: "USWest2Comprehend") return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSComprehend registerComprehendWithConfiguration:configuration forKey:@"USWest2Comprehend"]; return YES; } Then call the following to get the service client: *Swift* let Comprehend = AWSComprehend(forKey: "USWest2Comprehend") *Objective-C* AWSComprehend *Comprehend = [AWSComprehend ComprehendForKey:@"USWest2Comprehend"]; @warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors. @param configuration A service configuration object. @param key A string to identify the service client. */ + (void)registerComprehendWithConfiguration:(AWSServiceConfiguration *)configuration forKey:(NSString *)key; /** Retrieves the service client associated with the key. You need to call `+ registerComprehendWithConfiguration:forKey:` before invoking this method. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSComprehend.register(with: configuration!, forKey: "USWest2Comprehend") return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSComprehend registerComprehendWithConfiguration:configuration forKey:@"USWest2Comprehend"]; return YES; } Then call the following to get the service client: *Swift* let Comprehend = AWSComprehend(forKey: "USWest2Comprehend") *Objective-C* AWSComprehend *Comprehend = [AWSComprehend ComprehendForKey:@"USWest2Comprehend"]; @param key A string to identify the service client. @return An instance of the service client. */ + (instancetype)ComprehendForKey:(NSString *)key; /** Removes the service client associated with the key and release it. @warning Before calling this method, make sure no method is running on this client. @param key A string to identify the service client. */ + (void)removeComprehendForKey:(NSString *)key; /**

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.

@param request A container for the necessary parameters to execute the BatchDetectDominantLanguage service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendBatchDetectDominantLanguageResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectDominantLanguageRequest @see AWSComprehendBatchDetectDominantLanguageResponse */ - (AWSTask *)batchDetectDominantLanguage:(AWSComprehendBatchDetectDominantLanguageRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the BatchDetectDominantLanguage service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectDominantLanguageRequest @see AWSComprehendBatchDetectDominantLanguageResponse */ - (void)batchDetectDominantLanguage:(AWSComprehendBatchDetectDominantLanguageRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendBatchDetectDominantLanguageResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the BatchDetectEntities service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendBatchDetectEntitiesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectEntitiesRequest @see AWSComprehendBatchDetectEntitiesResponse */ - (AWSTask *)batchDetectEntities:(AWSComprehendBatchDetectEntitiesRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the BatchDetectEntities service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectEntitiesRequest @see AWSComprehendBatchDetectEntitiesResponse */ - (void)batchDetectEntities:(AWSComprehendBatchDetectEntitiesRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendBatchDetectEntitiesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Detects the key noun phrases found in a batch of documents.

@param request A container for the necessary parameters to execute the BatchDetectKeyPhrases service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendBatchDetectKeyPhrasesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectKeyPhrasesRequest @see AWSComprehendBatchDetectKeyPhrasesResponse */ - (AWSTask *)batchDetectKeyPhrases:(AWSComprehendBatchDetectKeyPhrasesRequest *)request; /**

Detects the key noun phrases found in a batch of documents.

@param request A container for the necessary parameters to execute the BatchDetectKeyPhrases service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectKeyPhrasesRequest @see AWSComprehendBatchDetectKeyPhrasesResponse */ - (void)batchDetectKeyPhrases:(AWSComprehendBatchDetectKeyPhrasesRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendBatchDetectKeyPhrasesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one.

@param request A container for the necessary parameters to execute the BatchDetectSentiment service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendBatchDetectSentimentResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectSentimentRequest @see AWSComprehendBatchDetectSentimentResponse */ - (AWSTask *)batchDetectSentiment:(AWSComprehendBatchDetectSentimentRequest *)request; /**

Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one.

@param request A container for the necessary parameters to execute the BatchDetectSentiment service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectSentimentRequest @see AWSComprehendBatchDetectSentimentResponse */ - (void)batchDetectSentiment:(AWSComprehendBatchDetectSentimentRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendBatchDetectSentimentResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the BatchDetectSyntax service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendBatchDetectSyntaxResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectSyntaxRequest @see AWSComprehendBatchDetectSyntaxResponse */ - (AWSTask *)batchDetectSyntax:(AWSComprehendBatchDetectSyntaxRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the BatchDetectSyntax service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectSyntaxRequest @see AWSComprehendBatchDetectSyntaxResponse */ - (void)batchDetectSyntax:(AWSComprehendBatchDetectSyntaxRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendBatchDetectSyntaxResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the BatchDetectTargetedSentiment service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendBatchDetectTargetedSentimentResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectTargetedSentimentRequest @see AWSComprehendBatchDetectTargetedSentimentResponse */ - (AWSTask *)batchDetectTargetedSentiment:(AWSComprehendBatchDetectTargetedSentimentRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the BatchDetectTargetedSentiment service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorBatchSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendBatchDetectTargetedSentimentRequest @see AWSComprehendBatchDetectTargetedSentimentResponse */ - (void)batchDetectTargetedSentiment:(AWSComprehendBatchDetectTargetedSentimentRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendBatchDetectTargetedSentimentResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.

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 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.

@param request A container for the necessary parameters to execute the ClassifyDocument service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendClassifyDocumentResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendClassifyDocumentRequest @see AWSComprehendClassifyDocumentResponse */ - (AWSTask *)classifyDocument:(AWSComprehendClassifyDocumentRequest *)request; /**

Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.

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 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.

@param request A container for the necessary parameters to execute the ClassifyDocument service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendClassifyDocumentRequest @see AWSComprehendClassifyDocumentResponse */ - (void)classifyDocument:(AWSComprehendClassifyDocumentRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendClassifyDocumentResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the ContainsPiiEntities service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendContainsPiiEntitiesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendContainsPiiEntitiesRequest @see AWSComprehendContainsPiiEntitiesResponse */ - (AWSTask *)containsPiiEntities:(AWSComprehendContainsPiiEntitiesRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the ContainsPiiEntities service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendContainsPiiEntitiesRequest @see AWSComprehendContainsPiiEntitiesResponse */ - (void)containsPiiEntities:(AWSComprehendContainsPiiEntitiesRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendContainsPiiEntitiesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the CreateDataset service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendCreateDatasetResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateDatasetRequest @see AWSComprehendCreateDatasetResponse */ - (AWSTask *)createDataset:(AWSComprehendCreateDatasetRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the CreateDataset service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateDatasetRequest @see AWSComprehendCreateDatasetResponse */ - (void)createDataset:(AWSComprehendCreateDatasetRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendCreateDatasetResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the CreateDocumentClassifier service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendCreateDocumentClassifierResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateDocumentClassifierRequest @see AWSComprehendCreateDocumentClassifierResponse */ - (AWSTask *)createDocumentClassifier:(AWSComprehendCreateDocumentClassifierRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the CreateDocumentClassifier service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateDocumentClassifierRequest @see AWSComprehendCreateDocumentClassifierResponse */ - (void)createDocumentClassifier:(AWSComprehendCreateDocumentClassifierRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendCreateDocumentClassifierResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a model-specific endpoint for synchronous inference for a previously trained custom model For information about endpoints, see Managing endpoints.

@param request A container for the necessary parameters to execute the CreateEndpoint service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendCreateEndpointResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateEndpointRequest @see AWSComprehendCreateEndpointResponse */ - (AWSTask *)createEndpoint:(AWSComprehendCreateEndpointRequest *)request; /**

Creates a model-specific endpoint for synchronous inference for a previously trained custom model For information about endpoints, see Managing endpoints.

@param request A container for the necessary parameters to execute the CreateEndpoint service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateEndpointRequest @see AWSComprehendCreateEndpointResponse */ - (void)createEndpoint:(AWSComprehendCreateEndpointRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendCreateEndpointResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates an entity recognizer using submitted files. After your CreateEntityRecognizer request is submitted, you can check job status using the DescribeEntityRecognizer API.

@param request A container for the necessary parameters to execute the CreateEntityRecognizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendCreateEntityRecognizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateEntityRecognizerRequest @see AWSComprehendCreateEntityRecognizerResponse */ - (AWSTask *)createEntityRecognizer:(AWSComprehendCreateEntityRecognizerRequest *)request; /**

Creates an entity recognizer using submitted files. After your CreateEntityRecognizer request is submitted, you can check job status using the DescribeEntityRecognizer API.

@param request A container for the necessary parameters to execute the CreateEntityRecognizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateEntityRecognizerRequest @see AWSComprehendCreateEntityRecognizerResponse */ - (void)createEntityRecognizer:(AWSComprehendCreateEntityRecognizerRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendCreateEntityRecognizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the CreateFlywheel service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendCreateFlywheelResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateFlywheelRequest @see AWSComprehendCreateFlywheelResponse */ - (AWSTask *)createFlywheel:(AWSComprehendCreateFlywheelRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the CreateFlywheel service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorInternalServer`. @see AWSComprehendCreateFlywheelRequest @see AWSComprehendCreateFlywheelResponse */ - (void)createFlywheel:(AWSComprehendCreateFlywheelRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendCreateFlywheelResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the DeleteDocumentClassifier service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDeleteDocumentClassifierResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteDocumentClassifierRequest @see AWSComprehendDeleteDocumentClassifierResponse */ - (AWSTask *)deleteDocumentClassifier:(AWSComprehendDeleteDocumentClassifierRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the DeleteDocumentClassifier service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteDocumentClassifierRequest @see AWSComprehendDeleteDocumentClassifierResponse */ - (void)deleteDocumentClassifier:(AWSComprehendDeleteDocumentClassifierRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDeleteDocumentClassifierResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the DeleteEndpoint service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDeleteEndpointResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteEndpointRequest @see AWSComprehendDeleteEndpointResponse */ - (AWSTask *)deleteEndpoint:(AWSComprehendDeleteEndpointRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the DeleteEndpoint service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteEndpointRequest @see AWSComprehendDeleteEndpointResponse */ - (void)deleteEndpoint:(AWSComprehendDeleteEndpointRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDeleteEndpointResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the DeleteEntityRecognizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDeleteEntityRecognizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteEntityRecognizerRequest @see AWSComprehendDeleteEntityRecognizerResponse */ - (AWSTask *)deleteEntityRecognizer:(AWSComprehendDeleteEntityRecognizerRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the DeleteEntityRecognizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteEntityRecognizerRequest @see AWSComprehendDeleteEntityRecognizerResponse */ - (void)deleteEntityRecognizer:(AWSComprehendDeleteEntityRecognizerRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDeleteEntityRecognizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the DeleteFlywheel service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDeleteFlywheelResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteFlywheelRequest @see AWSComprehendDeleteFlywheelResponse */ - (AWSTask *)deleteFlywheel:(AWSComprehendDeleteFlywheelRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the DeleteFlywheel service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteFlywheelRequest @see AWSComprehendDeleteFlywheelResponse */ - (void)deleteFlywheel:(AWSComprehendDeleteFlywheelRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDeleteFlywheelResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a resource-based policy that is attached to a custom model.

@param request A container for the necessary parameters to execute the DeleteResourcePolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDeleteResourcePolicyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteResourcePolicyRequest @see AWSComprehendDeleteResourcePolicyResponse */ - (AWSTask *)deleteResourcePolicy:(AWSComprehendDeleteResourcePolicyRequest *)request; /**

Deletes a resource-based policy that is attached to a custom model.

@param request A container for the necessary parameters to execute the DeleteResourcePolicy service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDeleteResourcePolicyRequest @see AWSComprehendDeleteResourcePolicyResponse */ - (void)deleteResourcePolicy:(AWSComprehendDeleteResourcePolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDeleteResourcePolicyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns information about the dataset that you specify. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DescribeDataset service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeDatasetResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeDatasetRequest @see AWSComprehendDescribeDatasetResponse */ - (AWSTask *)describeDataset:(AWSComprehendDescribeDatasetRequest *)request; /**

Returns information about the dataset that you specify. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DescribeDataset service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeDatasetRequest @see AWSComprehendDescribeDatasetResponse */ - (void)describeDataset:(AWSComprehendDescribeDatasetRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeDatasetResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.

@param request A container for the necessary parameters to execute the DescribeDocumentClassificationJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeDocumentClassificationJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeDocumentClassificationJobRequest @see AWSComprehendDescribeDocumentClassificationJobResponse */ - (AWSTask *)describeDocumentClassificationJob:(AWSComprehendDescribeDocumentClassificationJobRequest *)request; /**

Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.

@param request A container for the necessary parameters to execute the DescribeDocumentClassificationJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeDocumentClassificationJobRequest @see AWSComprehendDescribeDocumentClassificationJobResponse */ - (void)describeDocumentClassificationJob:(AWSComprehendDescribeDocumentClassificationJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeDocumentClassificationJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with a document classifier.

@param request A container for the necessary parameters to execute the DescribeDocumentClassifier service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeDocumentClassifierResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeDocumentClassifierRequest @see AWSComprehendDescribeDocumentClassifierResponse */ - (AWSTask *)describeDocumentClassifier:(AWSComprehendDescribeDocumentClassifierRequest *)request; /**

Gets the properties associated with a document classifier.

@param request A container for the necessary parameters to execute the DescribeDocumentClassifier service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeDocumentClassifierRequest @see AWSComprehendDescribeDocumentClassifierResponse */ - (void)describeDocumentClassifier:(AWSComprehendDescribeDocumentClassifierRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeDocumentClassifierResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeDominantLanguageDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeDominantLanguageDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeDominantLanguageDetectionJobRequest @see AWSComprehendDescribeDominantLanguageDetectionJobResponse */ - (AWSTask *)describeDominantLanguageDetectionJob:(AWSComprehendDescribeDominantLanguageDetectionJobRequest *)request; /**

Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeDominantLanguageDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeDominantLanguageDetectionJobRequest @see AWSComprehendDescribeDominantLanguageDetectionJobResponse */ - (void)describeDominantLanguageDetectionJob:(AWSComprehendDescribeDominantLanguageDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeDominantLanguageDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the DescribeEndpoint service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeEndpointResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeEndpointRequest @see AWSComprehendDescribeEndpointResponse */ - (AWSTask *)describeEndpoint:(AWSComprehendDescribeEndpointRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the DescribeEndpoint service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeEndpointRequest @see AWSComprehendDescribeEndpointResponse */ - (void)describeEndpoint:(AWSComprehendDescribeEndpointRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeEndpointResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeEntitiesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeEntitiesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeEntitiesDetectionJobRequest @see AWSComprehendDescribeEntitiesDetectionJobResponse */ - (AWSTask *)describeEntitiesDetectionJob:(AWSComprehendDescribeEntitiesDetectionJobRequest *)request; /**

Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeEntitiesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeEntitiesDetectionJobRequest @see AWSComprehendDescribeEntitiesDetectionJobResponse */ - (void)describeEntitiesDetectionJob:(AWSComprehendDescribeEntitiesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeEntitiesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.

@param request A container for the necessary parameters to execute the DescribeEntityRecognizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeEntityRecognizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeEntityRecognizerRequest @see AWSComprehendDescribeEntityRecognizerResponse */ - (AWSTask *)describeEntityRecognizer:(AWSComprehendDescribeEntityRecognizerRequest *)request; /**

Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.

@param request A container for the necessary parameters to execute the DescribeEntityRecognizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeEntityRecognizerRequest @see AWSComprehendDescribeEntityRecognizerResponse */ - (void)describeEntityRecognizer:(AWSComprehendDescribeEntityRecognizerRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeEntityRecognizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the status and details of an events detection job.

@param request A container for the necessary parameters to execute the DescribeEventsDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeEventsDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeEventsDetectionJobRequest @see AWSComprehendDescribeEventsDetectionJobResponse */ - (AWSTask *)describeEventsDetectionJob:(AWSComprehendDescribeEventsDetectionJobRequest *)request; /**

Gets the status and details of an events detection job.

@param request A container for the necessary parameters to execute the DescribeEventsDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeEventsDetectionJobRequest @see AWSComprehendDescribeEventsDetectionJobResponse */ - (void)describeEventsDetectionJob:(AWSComprehendDescribeEventsDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeEventsDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Provides configuration information about the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DescribeFlywheel service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeFlywheelResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeFlywheelRequest @see AWSComprehendDescribeFlywheelResponse */ - (AWSTask *)describeFlywheel:(AWSComprehendDescribeFlywheelRequest *)request; /**

Provides configuration information about the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DescribeFlywheel service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeFlywheelRequest @see AWSComprehendDescribeFlywheelResponse */ - (void)describeFlywheel:(AWSComprehendDescribeFlywheelRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeFlywheelResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieve the configuration properties of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DescribeFlywheelIteration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeFlywheelIterationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeFlywheelIterationRequest @see AWSComprehendDescribeFlywheelIterationResponse */ - (AWSTask *)describeFlywheelIteration:(AWSComprehendDescribeFlywheelIterationRequest *)request; /**

Retrieve the configuration properties of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DescribeFlywheelIteration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeFlywheelIterationRequest @see AWSComprehendDescribeFlywheelIterationResponse */ - (void)describeFlywheelIteration:(AWSComprehendDescribeFlywheelIterationRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeFlywheelIterationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeKeyPhrasesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeKeyPhrasesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeKeyPhrasesDetectionJobRequest @see AWSComprehendDescribeKeyPhrasesDetectionJobResponse */ - (AWSTask *)describeKeyPhrasesDetectionJob:(AWSComprehendDescribeKeyPhrasesDetectionJobRequest *)request; /**

Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeKeyPhrasesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeKeyPhrasesDetectionJobRequest @see AWSComprehendDescribeKeyPhrasesDetectionJobResponse */ - (void)describeKeyPhrasesDetectionJob:(AWSComprehendDescribeKeyPhrasesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeKeyPhrasesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with a PII entities detection job. For example, you can use this operation to get the job status.

@param request A container for the necessary parameters to execute the DescribePiiEntitiesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribePiiEntitiesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribePiiEntitiesDetectionJobRequest @see AWSComprehendDescribePiiEntitiesDetectionJobResponse */ - (AWSTask *)describePiiEntitiesDetectionJob:(AWSComprehendDescribePiiEntitiesDetectionJobRequest *)request; /**

Gets the properties associated with a PII entities detection job. For example, you can use this operation to get the job status.

@param request A container for the necessary parameters to execute the DescribePiiEntitiesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribePiiEntitiesDetectionJobRequest @see AWSComprehendDescribePiiEntitiesDetectionJobResponse */ - (void)describePiiEntitiesDetectionJob:(AWSComprehendDescribePiiEntitiesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribePiiEntitiesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the details of a resource-based policy that is attached to a custom model, including the JSON body of the policy.

@param request A container for the necessary parameters to execute the DescribeResourcePolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeResourcePolicyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeResourcePolicyRequest @see AWSComprehendDescribeResourcePolicyResponse */ - (AWSTask *)describeResourcePolicy:(AWSComprehendDescribeResourcePolicyRequest *)request; /**

Gets the details of a resource-based policy that is attached to a custom model, including the JSON body of the policy.

@param request A container for the necessary parameters to execute the DescribeResourcePolicy service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeResourcePolicyRequest @see AWSComprehendDescribeResourcePolicyResponse */ - (void)describeResourcePolicy:(AWSComprehendDescribeResourcePolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeResourcePolicyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeSentimentDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeSentimentDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeSentimentDetectionJobRequest @see AWSComprehendDescribeSentimentDetectionJobResponse */ - (AWSTask *)describeSentimentDetectionJob:(AWSComprehendDescribeSentimentDetectionJobRequest *)request; /**

Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeSentimentDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeSentimentDetectionJobRequest @see AWSComprehendDescribeSentimentDetectionJobResponse */ - (void)describeSentimentDetectionJob:(AWSComprehendDescribeSentimentDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeSentimentDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with a targeted sentiment detection job. Use this operation to get the status of the job.

@param request A container for the necessary parameters to execute the DescribeTargetedSentimentDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeTargetedSentimentDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeTargetedSentimentDetectionJobRequest @see AWSComprehendDescribeTargetedSentimentDetectionJobResponse */ - (AWSTask *)describeTargetedSentimentDetectionJob:(AWSComprehendDescribeTargetedSentimentDetectionJobRequest *)request; /**

Gets the properties associated with a targeted sentiment detection job. Use this operation to get the status of the job.

@param request A container for the necessary parameters to execute the DescribeTargetedSentimentDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeTargetedSentimentDetectionJobRequest @see AWSComprehendDescribeTargetedSentimentDetectionJobResponse */ - (void)describeTargetedSentimentDetectionJob:(AWSComprehendDescribeTargetedSentimentDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeTargetedSentimentDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeTopicsDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDescribeTopicsDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeTopicsDetectionJobRequest @see AWSComprehendDescribeTopicsDetectionJobResponse */ - (AWSTask *)describeTopicsDetectionJob:(AWSComprehendDescribeTopicsDetectionJobRequest *)request; /**

Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.

@param request A container for the necessary parameters to execute the DescribeTopicsDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDescribeTopicsDetectionJobRequest @see AWSComprehendDescribeTopicsDetectionJobResponse */ - (void)describeTopicsDetectionJob:(AWSComprehendDescribeTopicsDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDescribeTopicsDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.

@param request A container for the necessary parameters to execute the DetectDominantLanguage service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDetectDominantLanguageResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectDominantLanguageRequest @see AWSComprehendDetectDominantLanguageResponse */ - (AWSTask *)detectDominantLanguage:(AWSComprehendDetectDominantLanguageRequest *)request; /**

Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.

@param request A container for the necessary parameters to execute the DetectDominantLanguage service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectDominantLanguageRequest @see AWSComprehendDetectDominantLanguageResponse */ - (void)detectDominantLanguage:(AWSComprehendDetectDominantLanguageRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectDominantLanguageResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the DetectEntities service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDetectEntitiesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectEntitiesRequest @see AWSComprehendDetectEntitiesResponse */ - (AWSTask *)detectEntities:(AWSComprehendDetectEntitiesRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the DetectEntities service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectEntitiesRequest @see AWSComprehendDetectEntitiesResponse */ - (void)detectEntities:(AWSComprehendDetectEntitiesRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectEntitiesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Detects the key noun phrases found in the text.

@param request A container for the necessary parameters to execute the DetectKeyPhrases service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDetectKeyPhrasesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectKeyPhrasesRequest @see AWSComprehendDetectKeyPhrasesResponse */ - (AWSTask *)detectKeyPhrases:(AWSComprehendDetectKeyPhrasesRequest *)request; /**

Detects the key noun phrases found in the text.

@param request A container for the necessary parameters to execute the DetectKeyPhrases service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectKeyPhrasesRequest @see AWSComprehendDetectKeyPhrasesResponse */ - (void)detectKeyPhrases:(AWSComprehendDetectKeyPhrasesRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectKeyPhrasesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.

@param request A container for the necessary parameters to execute the DetectPiiEntities service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDetectPiiEntitiesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectPiiEntitiesRequest @see AWSComprehendDetectPiiEntitiesResponse */ - (AWSTask *)detectPiiEntities:(AWSComprehendDetectPiiEntitiesRequest *)request; /**

Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.

@param request A container for the necessary parameters to execute the DetectPiiEntities service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectPiiEntitiesRequest @see AWSComprehendDetectPiiEntitiesResponse */ - (void)detectPiiEntities:(AWSComprehendDetectPiiEntitiesRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectPiiEntitiesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).

@param request A container for the necessary parameters to execute the DetectSentiment service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDetectSentimentResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectSentimentRequest @see AWSComprehendDetectSentimentResponse */ - (AWSTask *)detectSentiment:(AWSComprehendDetectSentimentRequest *)request; /**

Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).

@param request A container for the necessary parameters to execute the DetectSentiment service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectSentimentRequest @see AWSComprehendDetectSentimentResponse */ - (void)detectSentiment:(AWSComprehendDetectSentimentRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectSentimentResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Inspects text for syntax and the part of speech of words in the document. For more information, see Syntax in the Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DetectSyntax service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDetectSyntaxResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectSyntaxRequest @see AWSComprehendDetectSyntaxResponse */ - (AWSTask *)detectSyntax:(AWSComprehendDetectSyntaxRequest *)request; /**

Inspects text for syntax and the part of speech of words in the document. For more information, see Syntax in the Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DetectSyntax service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectSyntaxRequest @see AWSComprehendDetectSyntaxResponse */ - (void)detectSyntax:(AWSComprehendDetectSyntaxRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectSyntaxResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the DetectTargetedSentiment service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDetectTargetedSentimentResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectTargetedSentimentRequest @see AWSComprehendDetectTargetedSentimentResponse */ - (AWSTask *)detectTargetedSentiment:(AWSComprehendDetectTargetedSentimentRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the DetectTargetedSentiment service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. @see AWSComprehendDetectTargetedSentimentRequest @see AWSComprehendDetectTargetedSentimentResponse */ - (void)detectTargetedSentiment:(AWSComprehendDetectTargetedSentimentRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectTargetedSentimentResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the ImportModel service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendImportModelResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorInternalServer`. @see AWSComprehendImportModelRequest @see AWSComprehendImportModelResponse */ - (AWSTask *)importModel:(AWSComprehendImportModelRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the ImportModel service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorInternalServer`. @see AWSComprehendImportModelRequest @see AWSComprehendImportModelResponse */ - (void)importModel:(AWSComprehendImportModelRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendImportModelResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

List the datasets that you have configured in this Region. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the ListDatasets service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListDatasetsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDatasetsRequest @see AWSComprehendListDatasetsResponse */ - (AWSTask *)listDatasets:(AWSComprehendListDatasetsRequest *)request; /**

List the datasets that you have configured in this Region. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the ListDatasets service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDatasetsRequest @see AWSComprehendListDatasetsResponse */ - (void)listDatasets:(AWSComprehendListDatasetsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListDatasetsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the documentation classification jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListDocumentClassificationJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListDocumentClassificationJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDocumentClassificationJobsRequest @see AWSComprehendListDocumentClassificationJobsResponse */ - (AWSTask *)listDocumentClassificationJobs:(AWSComprehendListDocumentClassificationJobsRequest *)request; /**

Gets a list of the documentation classification jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListDocumentClassificationJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDocumentClassificationJobsRequest @see AWSComprehendListDocumentClassificationJobsResponse */ - (void)listDocumentClassificationJobs:(AWSComprehendListDocumentClassificationJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListDocumentClassificationJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of summaries of the document classifiers that you have created

@param request A container for the necessary parameters to execute the ListDocumentClassifierSummaries service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListDocumentClassifierSummariesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDocumentClassifierSummariesRequest @see AWSComprehendListDocumentClassifierSummariesResponse */ - (AWSTask *)listDocumentClassifierSummaries:(AWSComprehendListDocumentClassifierSummariesRequest *)request; /**

Gets a list of summaries of the document classifiers that you have created

@param request A container for the necessary parameters to execute the ListDocumentClassifierSummaries service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDocumentClassifierSummariesRequest @see AWSComprehendListDocumentClassifierSummariesResponse */ - (void)listDocumentClassifierSummaries:(AWSComprehendListDocumentClassifierSummariesRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListDocumentClassifierSummariesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the document classifiers that you have created.

@param request A container for the necessary parameters to execute the ListDocumentClassifiers service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListDocumentClassifiersResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDocumentClassifiersRequest @see AWSComprehendListDocumentClassifiersResponse */ - (AWSTask *)listDocumentClassifiers:(AWSComprehendListDocumentClassifiersRequest *)request; /**

Gets a list of the document classifiers that you have created.

@param request A container for the necessary parameters to execute the ListDocumentClassifiers service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDocumentClassifiersRequest @see AWSComprehendListDocumentClassifiersResponse */ - (void)listDocumentClassifiers:(AWSComprehendListDocumentClassifiersRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListDocumentClassifiersResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the dominant language detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListDominantLanguageDetectionJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListDominantLanguageDetectionJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDominantLanguageDetectionJobsRequest @see AWSComprehendListDominantLanguageDetectionJobsResponse */ - (AWSTask *)listDominantLanguageDetectionJobs:(AWSComprehendListDominantLanguageDetectionJobsRequest *)request; /**

Gets a list of the dominant language detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListDominantLanguageDetectionJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListDominantLanguageDetectionJobsRequest @see AWSComprehendListDominantLanguageDetectionJobsResponse */ - (void)listDominantLanguageDetectionJobs:(AWSComprehendListDominantLanguageDetectionJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListDominantLanguageDetectionJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of all existing endpoints that you've created. For information about endpoints, see Managing endpoints.

@param request A container for the necessary parameters to execute the ListEndpoints service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListEndpointsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEndpointsRequest @see AWSComprehendListEndpointsResponse */ - (AWSTask *)listEndpoints:(AWSComprehendListEndpointsRequest *)request; /**

Gets a list of all existing endpoints that you've created. For information about endpoints, see Managing endpoints.

@param request A container for the necessary parameters to execute the ListEndpoints service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEndpointsRequest @see AWSComprehendListEndpointsResponse */ - (void)listEndpoints:(AWSComprehendListEndpointsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListEndpointsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the entity detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListEntitiesDetectionJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListEntitiesDetectionJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEntitiesDetectionJobsRequest @see AWSComprehendListEntitiesDetectionJobsResponse */ - (AWSTask *)listEntitiesDetectionJobs:(AWSComprehendListEntitiesDetectionJobsRequest *)request; /**

Gets a list of the entity detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListEntitiesDetectionJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEntitiesDetectionJobsRequest @see AWSComprehendListEntitiesDetectionJobsResponse */ - (void)listEntitiesDetectionJobs:(AWSComprehendListEntitiesDetectionJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListEntitiesDetectionJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of summaries for the entity recognizers that you have created.

@param request A container for the necessary parameters to execute the ListEntityRecognizerSummaries service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListEntityRecognizerSummariesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEntityRecognizerSummariesRequest @see AWSComprehendListEntityRecognizerSummariesResponse */ - (AWSTask *)listEntityRecognizerSummaries:(AWSComprehendListEntityRecognizerSummariesRequest *)request; /**

Gets a list of summaries for the entity recognizers that you have created.

@param request A container for the necessary parameters to execute the ListEntityRecognizerSummaries service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEntityRecognizerSummariesRequest @see AWSComprehendListEntityRecognizerSummariesResponse */ - (void)listEntityRecognizerSummaries:(AWSComprehendListEntityRecognizerSummariesRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListEntityRecognizerSummariesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the ListEntityRecognizers service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListEntityRecognizersResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEntityRecognizersRequest @see AWSComprehendListEntityRecognizersResponse */ - (AWSTask *)listEntityRecognizers:(AWSComprehendListEntityRecognizersRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the ListEntityRecognizers service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEntityRecognizersRequest @see AWSComprehendListEntityRecognizersResponse */ - (void)listEntityRecognizers:(AWSComprehendListEntityRecognizersRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListEntityRecognizersResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the events detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListEventsDetectionJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListEventsDetectionJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEventsDetectionJobsRequest @see AWSComprehendListEventsDetectionJobsResponse */ - (AWSTask *)listEventsDetectionJobs:(AWSComprehendListEventsDetectionJobsRequest *)request; /**

Gets a list of the events detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListEventsDetectionJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListEventsDetectionJobsRequest @see AWSComprehendListEventsDetectionJobsResponse */ - (void)listEventsDetectionJobs:(AWSComprehendListEventsDetectionJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListEventsDetectionJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Information about the history of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the ListFlywheelIterationHistory service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListFlywheelIterationHistoryResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListFlywheelIterationHistoryRequest @see AWSComprehendListFlywheelIterationHistoryResponse */ - (AWSTask *)listFlywheelIterationHistory:(AWSComprehendListFlywheelIterationHistoryRequest *)request; /**

Information about the history of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the ListFlywheelIterationHistory service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListFlywheelIterationHistoryRequest @see AWSComprehendListFlywheelIterationHistoryResponse */ - (void)listFlywheelIterationHistory:(AWSComprehendListFlywheelIterationHistoryRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListFlywheelIterationHistoryResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the flywheels that you have created.

@param request A container for the necessary parameters to execute the ListFlywheels service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListFlywheelsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListFlywheelsRequest @see AWSComprehendListFlywheelsResponse */ - (AWSTask *)listFlywheels:(AWSComprehendListFlywheelsRequest *)request; /**

Gets a list of the flywheels that you have created.

@param request A container for the necessary parameters to execute the ListFlywheels service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListFlywheelsRequest @see AWSComprehendListFlywheelsResponse */ - (void)listFlywheels:(AWSComprehendListFlywheelsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListFlywheelsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Get a list of key phrase detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListKeyPhrasesDetectionJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListKeyPhrasesDetectionJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListKeyPhrasesDetectionJobsRequest @see AWSComprehendListKeyPhrasesDetectionJobsResponse */ - (AWSTask *)listKeyPhrasesDetectionJobs:(AWSComprehendListKeyPhrasesDetectionJobsRequest *)request; /**

Get a list of key phrase detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListKeyPhrasesDetectionJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListKeyPhrasesDetectionJobsRequest @see AWSComprehendListKeyPhrasesDetectionJobsResponse */ - (void)listKeyPhrasesDetectionJobs:(AWSComprehendListKeyPhrasesDetectionJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListKeyPhrasesDetectionJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the PII entity detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListPiiEntitiesDetectionJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListPiiEntitiesDetectionJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListPiiEntitiesDetectionJobsRequest @see AWSComprehendListPiiEntitiesDetectionJobsResponse */ - (AWSTask *)listPiiEntitiesDetectionJobs:(AWSComprehendListPiiEntitiesDetectionJobsRequest *)request; /**

Gets a list of the PII entity detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListPiiEntitiesDetectionJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListPiiEntitiesDetectionJobsRequest @see AWSComprehendListPiiEntitiesDetectionJobsResponse */ - (void)listPiiEntitiesDetectionJobs:(AWSComprehendListPiiEntitiesDetectionJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListPiiEntitiesDetectionJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of sentiment detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListSentimentDetectionJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListSentimentDetectionJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListSentimentDetectionJobsRequest @see AWSComprehendListSentimentDetectionJobsResponse */ - (AWSTask *)listSentimentDetectionJobs:(AWSComprehendListSentimentDetectionJobsRequest *)request; /**

Gets a list of sentiment detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListSentimentDetectionJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListSentimentDetectionJobsRequest @see AWSComprehendListSentimentDetectionJobsResponse */ - (void)listSentimentDetectionJobs:(AWSComprehendListSentimentDetectionJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListSentimentDetectionJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists all tags associated with a given Amazon Comprehend resource.

@param request A container for the necessary parameters to execute the ListTagsForResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListTagsForResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListTagsForResourceRequest @see AWSComprehendListTagsForResourceResponse */ - (AWSTask *)listTagsForResource:(AWSComprehendListTagsForResourceRequest *)request; /**

Lists all tags associated with a given Amazon Comprehend resource.

@param request A container for the necessary parameters to execute the ListTagsForResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListTagsForResourceRequest @see AWSComprehendListTagsForResourceResponse */ - (void)listTagsForResource:(AWSComprehendListTagsForResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListTagsForResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of targeted sentiment detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListTargetedSentimentDetectionJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListTargetedSentimentDetectionJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListTargetedSentimentDetectionJobsRequest @see AWSComprehendListTargetedSentimentDetectionJobsResponse */ - (AWSTask *)listTargetedSentimentDetectionJobs:(AWSComprehendListTargetedSentimentDetectionJobsRequest *)request; /**

Gets a list of targeted sentiment detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListTargetedSentimentDetectionJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListTargetedSentimentDetectionJobsRequest @see AWSComprehendListTargetedSentimentDetectionJobsResponse */ - (void)listTargetedSentimentDetectionJobs:(AWSComprehendListTargetedSentimentDetectionJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListTargetedSentimentDetectionJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Gets a list of the topic detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListTopicsDetectionJobs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendListTopicsDetectionJobsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListTopicsDetectionJobsRequest @see AWSComprehendListTopicsDetectionJobsResponse */ - (AWSTask *)listTopicsDetectionJobs:(AWSComprehendListTopicsDetectionJobsRequest *)request; /**

Gets a list of the topic detection jobs that you have submitted.

@param request A container for the necessary parameters to execute the ListTopicsDetectionJobs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorInvalidFilter`, `AWSComprehendErrorInternalServer`. @see AWSComprehendListTopicsDetectionJobsRequest @see AWSComprehendListTopicsDetectionJobsResponse */ - (void)listTopicsDetectionJobs:(AWSComprehendListTopicsDetectionJobsRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendListTopicsDetectionJobsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the PutResourcePolicy service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendPutResourcePolicyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendPutResourcePolicyRequest @see AWSComprehendPutResourcePolicyResponse */ - (AWSTask *)putResourcePolicy:(AWSComprehendPutResourcePolicyRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the PutResourcePolicy service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendPutResourcePolicyRequest @see AWSComprehendPutResourcePolicyResponse */ - (void)putResourcePolicy:(AWSComprehendPutResourcePolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendPutResourcePolicyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an asynchronous document classification job. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

@param request A container for the necessary parameters to execute the StartDocumentClassificationJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartDocumentClassificationJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartDocumentClassificationJobRequest @see AWSComprehendStartDocumentClassificationJobResponse */ - (AWSTask *)startDocumentClassificationJob:(AWSComprehendStartDocumentClassificationJobRequest *)request; /**

Starts an asynchronous document classification job. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

@param request A container for the necessary parameters to execute the StartDocumentClassificationJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartDocumentClassificationJobRequest @see AWSComprehendStartDocumentClassificationJobResponse */ - (void)startDocumentClassificationJob:(AWSComprehendStartDocumentClassificationJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartDocumentClassificationJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartDominantLanguageDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartDominantLanguageDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartDominantLanguageDetectionJobRequest @see AWSComprehendStartDominantLanguageDetectionJobResponse */ - (AWSTask *)startDominantLanguageDetectionJob:(AWSComprehendStartDominantLanguageDetectionJobRequest *)request; /**

Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartDominantLanguageDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartDominantLanguageDetectionJobRequest @see AWSComprehendStartDominantLanguageDetectionJobResponse */ - (void)startDominantLanguageDetectionJob:(AWSComprehendStartDominantLanguageDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartDominantLanguageDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StartEntitiesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartEntitiesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartEntitiesDetectionJobRequest @see AWSComprehendStartEntitiesDetectionJobResponse */ - (AWSTask *)startEntitiesDetectionJob:(AWSComprehendStartEntitiesDetectionJobRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StartEntitiesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartEntitiesDetectionJobRequest @see AWSComprehendStartEntitiesDetectionJobResponse */ - (void)startEntitiesDetectionJob:(AWSComprehendStartEntitiesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartEntitiesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an asynchronous event detection job for a collection of documents.

@param request A container for the necessary parameters to execute the StartEventsDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartEventsDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartEventsDetectionJobRequest @see AWSComprehendStartEventsDetectionJobResponse */ - (AWSTask *)startEventsDetectionJob:(AWSComprehendStartEventsDetectionJobRequest *)request; /**

Starts an asynchronous event detection job for a collection of documents.

@param request A container for the necessary parameters to execute the StartEventsDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartEventsDetectionJobRequest @see AWSComprehendStartEventsDetectionJobResponse */ - (void)startEventsDetectionJob:(AWSComprehendStartEventsDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartEventsDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StartFlywheelIteration service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartFlywheelIterationResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartFlywheelIterationRequest @see AWSComprehendStartFlywheelIterationResponse */ - (AWSTask *)startFlywheelIteration:(AWSComprehendStartFlywheelIterationRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StartFlywheelIteration service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartFlywheelIterationRequest @see AWSComprehendStartFlywheelIterationResponse */ - (void)startFlywheelIteration:(AWSComprehendStartFlywheelIterationRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartFlywheelIterationResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartKeyPhrasesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartKeyPhrasesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartKeyPhrasesDetectionJobRequest @see AWSComprehendStartKeyPhrasesDetectionJobResponse */ - (AWSTask *)startKeyPhrasesDetectionJob:(AWSComprehendStartKeyPhrasesDetectionJobRequest *)request; /**

Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartKeyPhrasesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartKeyPhrasesDetectionJobRequest @see AWSComprehendStartKeyPhrasesDetectionJobResponse */ - (void)startKeyPhrasesDetectionJob:(AWSComprehendStartKeyPhrasesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartKeyPhrasesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an asynchronous PII entity detection job for a collection of documents.

@param request A container for the necessary parameters to execute the StartPiiEntitiesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartPiiEntitiesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartPiiEntitiesDetectionJobRequest @see AWSComprehendStartPiiEntitiesDetectionJobResponse */ - (AWSTask *)startPiiEntitiesDetectionJob:(AWSComprehendStartPiiEntitiesDetectionJobRequest *)request; /**

Starts an asynchronous PII entity detection job for a collection of documents.

@param request A container for the necessary parameters to execute the StartPiiEntitiesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartPiiEntitiesDetectionJobRequest @see AWSComprehendStartPiiEntitiesDetectionJobResponse */ - (void)startPiiEntitiesDetectionJob:(AWSComprehendStartPiiEntitiesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartPiiEntitiesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an asynchronous sentiment detection job for a collection of documents. Use the operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartSentimentDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartSentimentDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartSentimentDetectionJobRequest @see AWSComprehendStartSentimentDetectionJobResponse */ - (AWSTask *)startSentimentDetectionJob:(AWSComprehendStartSentimentDetectionJobRequest *)request; /**

Starts an asynchronous sentiment detection job for a collection of documents. Use the operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartSentimentDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartSentimentDetectionJobRequest @see AWSComprehendStartSentimentDetectionJobResponse */ - (void)startSentimentDetectionJob:(AWSComprehendStartSentimentDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartSentimentDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an asynchronous targeted sentiment detection job for a collection of documents. Use the DescribeTargetedSentimentDetectionJob operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartTargetedSentimentDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartTargetedSentimentDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartTargetedSentimentDetectionJobRequest @see AWSComprehendStartTargetedSentimentDetectionJobResponse */ - (AWSTask *)startTargetedSentimentDetectionJob:(AWSComprehendStartTargetedSentimentDetectionJobRequest *)request; /**

Starts an asynchronous targeted sentiment detection job for a collection of documents. Use the DescribeTargetedSentimentDetectionJob operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartTargetedSentimentDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartTargetedSentimentDetectionJobRequest @see AWSComprehendStartTargetedSentimentDetectionJobResponse */ - (void)startTargetedSentimentDetectionJob:(AWSComprehendStartTargetedSentimentDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartTargetedSentimentDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartTopicsDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStartTopicsDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartTopicsDetectionJobRequest @see AWSComprehendStartTopicsDetectionJobResponse */ - (AWSTask *)startTopicsDetectionJob:(AWSComprehendStartTopicsDetectionJobRequest *)request; /**

Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job.

@param request A container for the necessary parameters to execute the StartTopicsDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStartTopicsDetectionJobRequest @see AWSComprehendStartTopicsDetectionJobResponse */ - (void)startTopicsDetectionJob:(AWSComprehendStartTopicsDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStartTopicsDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StopDominantLanguageDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopDominantLanguageDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopDominantLanguageDetectionJobRequest @see AWSComprehendStopDominantLanguageDetectionJobResponse */ - (AWSTask *)stopDominantLanguageDetectionJob:(AWSComprehendStopDominantLanguageDetectionJobRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StopDominantLanguageDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopDominantLanguageDetectionJobRequest @see AWSComprehendStopDominantLanguageDetectionJobResponse */ - (void)stopDominantLanguageDetectionJob:(AWSComprehendStopDominantLanguageDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopDominantLanguageDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StopEntitiesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopEntitiesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopEntitiesDetectionJobRequest @see AWSComprehendStopEntitiesDetectionJobResponse */ - (AWSTask *)stopEntitiesDetectionJob:(AWSComprehendStopEntitiesDetectionJobRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StopEntitiesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopEntitiesDetectionJobRequest @see AWSComprehendStopEntitiesDetectionJobResponse */ - (void)stopEntitiesDetectionJob:(AWSComprehendStopEntitiesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopEntitiesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Stops an events detection job in progress.

@param request A container for the necessary parameters to execute the StopEventsDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopEventsDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopEventsDetectionJobRequest @see AWSComprehendStopEventsDetectionJobResponse */ - (AWSTask *)stopEventsDetectionJob:(AWSComprehendStopEventsDetectionJobRequest *)request; /**

Stops an events detection job in progress.

@param request A container for the necessary parameters to execute the StopEventsDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopEventsDetectionJobRequest @see AWSComprehendStopEventsDetectionJobResponse */ - (void)stopEventsDetectionJob:(AWSComprehendStopEventsDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopEventsDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StopKeyPhrasesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopKeyPhrasesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopKeyPhrasesDetectionJobRequest @see AWSComprehendStopKeyPhrasesDetectionJobResponse */ - (AWSTask *)stopKeyPhrasesDetectionJob:(AWSComprehendStopKeyPhrasesDetectionJobRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StopKeyPhrasesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopKeyPhrasesDetectionJobRequest @see AWSComprehendStopKeyPhrasesDetectionJobResponse */ - (void)stopKeyPhrasesDetectionJob:(AWSComprehendStopKeyPhrasesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopKeyPhrasesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Stops a PII entities detection job in progress.

@param request A container for the necessary parameters to execute the StopPiiEntitiesDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopPiiEntitiesDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopPiiEntitiesDetectionJobRequest @see AWSComprehendStopPiiEntitiesDetectionJobResponse */ - (AWSTask *)stopPiiEntitiesDetectionJob:(AWSComprehendStopPiiEntitiesDetectionJobRequest *)request; /**

Stops a PII entities detection job in progress.

@param request A container for the necessary parameters to execute the StopPiiEntitiesDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopPiiEntitiesDetectionJobRequest @see AWSComprehendStopPiiEntitiesDetectionJobResponse */ - (void)stopPiiEntitiesDetectionJob:(AWSComprehendStopPiiEntitiesDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopPiiEntitiesDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StopSentimentDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopSentimentDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopSentimentDetectionJobRequest @see AWSComprehendStopSentimentDetectionJobResponse */ - (AWSTask *)stopSentimentDetectionJob:(AWSComprehendStopSentimentDetectionJobRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StopSentimentDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopSentimentDetectionJobRequest @see AWSComprehendStopSentimentDetectionJobResponse */ - (void)stopSentimentDetectionJob:(AWSComprehendStopSentimentDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopSentimentDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StopTargetedSentimentDetectionJob service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopTargetedSentimentDetectionJobResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopTargetedSentimentDetectionJobRequest @see AWSComprehendStopTargetedSentimentDetectionJobResponse */ - (AWSTask *)stopTargetedSentimentDetectionJob:(AWSComprehendStopTargetedSentimentDetectionJobRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StopTargetedSentimentDetectionJob service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorJobNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopTargetedSentimentDetectionJobRequest @see AWSComprehendStopTargetedSentimentDetectionJobResponse */ - (void)stopTargetedSentimentDetectionJob:(AWSComprehendStopTargetedSentimentDetectionJobRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopTargetedSentimentDetectionJobResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StopTrainingDocumentClassifier service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopTrainingDocumentClassifierResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopTrainingDocumentClassifierRequest @see AWSComprehendStopTrainingDocumentClassifierResponse */ - (AWSTask *)stopTrainingDocumentClassifier:(AWSComprehendStopTrainingDocumentClassifierRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StopTrainingDocumentClassifier service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopTrainingDocumentClassifierRequest @see AWSComprehendStopTrainingDocumentClassifierResponse */ - (void)stopTrainingDocumentClassifier:(AWSComprehendStopTrainingDocumentClassifierRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopTrainingDocumentClassifierResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the StopTrainingEntityRecognizer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendStopTrainingEntityRecognizerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopTrainingEntityRecognizerRequest @see AWSComprehendStopTrainingEntityRecognizerResponse */ - (AWSTask *)stopTrainingEntityRecognizer:(AWSComprehendStopTrainingEntityRecognizerRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the StopTrainingEntityRecognizer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendStopTrainingEntityRecognizerRequest @see AWSComprehendStopTrainingEntityRecognizerResponse */ - (void)stopTrainingEntityRecognizer:(AWSComprehendStopTrainingEntityRecognizerRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendStopTrainingEntityRecognizerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

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.

@param request A container for the necessary parameters to execute the TagResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendTagResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorConcurrentModification`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorInternalServer`. @see AWSComprehendTagResourceRequest @see AWSComprehendTagResourceResponse */ - (AWSTask *)tagResource:(AWSComprehendTagResourceRequest *)request; /**

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.

@param request A container for the necessary parameters to execute the TagResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorConcurrentModification`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorTooManyTags`, `AWSComprehendErrorInternalServer`. @see AWSComprehendTagResourceRequest @see AWSComprehendTagResourceResponse */ - (void)tagResource:(AWSComprehendTagResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendTagResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Removes a specific tag associated with an Amazon Comprehend resource.

@param request A container for the necessary parameters to execute the UntagResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendUntagResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorTooManyTagKeys`, `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorConcurrentModification`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendUntagResourceRequest @see AWSComprehendUntagResourceResponse */ - (AWSTask *)untagResource:(AWSComprehendUntagResourceRequest *)request; /**

Removes a specific tag associated with an Amazon Comprehend resource.

@param request A container for the necessary parameters to execute the UntagResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorTooManyTagKeys`, `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorConcurrentModification`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendUntagResourceRequest @see AWSComprehendUntagResourceResponse */ - (void)untagResource:(AWSComprehendUntagResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendUntagResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates information about the specified endpoint. For information about endpoints, see Managing endpoints.

@param request A container for the necessary parameters to execute the UpdateEndpoint service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendUpdateEndpointResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorInternalServer`. @see AWSComprehendUpdateEndpointRequest @see AWSComprehendUpdateEndpointResponse */ - (AWSTask *)updateEndpoint:(AWSComprehendUpdateEndpointRequest *)request; /**

Updates information about the specified endpoint. For information about endpoints, see Managing endpoints.

@param request A container for the necessary parameters to execute the UpdateEndpoint service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorResourceInUse`, `AWSComprehendErrorResourceLimitExceeded`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorResourceUnavailable`, `AWSComprehendErrorInternalServer`. @see AWSComprehendUpdateEndpointRequest @see AWSComprehendUpdateEndpointResponse */ - (void)updateEndpoint:(AWSComprehendUpdateEndpointRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendUpdateEndpointResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Update the configuration information for an existing flywheel.

@param request A container for the necessary parameters to execute the UpdateFlywheel service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendUpdateFlywheelResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendUpdateFlywheelRequest @see AWSComprehendUpdateFlywheelResponse */ - (AWSTask *)updateFlywheel:(AWSComprehendUpdateFlywheelRequest *)request; /**

Update the configuration information for an existing flywheel.

@param request A container for the necessary parameters to execute the UpdateFlywheel service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTooManyRequests`, `AWSComprehendErrorKmsKeyValidation`, `AWSComprehendErrorResourceNotFound`, `AWSComprehendErrorInternalServer`. @see AWSComprehendUpdateFlywheelRequest @see AWSComprehendUpdateFlywheelResponse */ - (void)updateFlywheel:(AWSComprehendUpdateFlywheelRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendUpdateFlywheelResponse * _Nullable response, NSError * _Nullable error))completionHandler; @end NS_ASSUME_NONNULL_END