/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the comprehend-2017-11-27.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Comprehend.Model; using Amazon.Comprehend.Model.Internal.MarshallTransformations; using Amazon.Comprehend.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Comprehend { /// /// Implementation for accessing Comprehend /// /// 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. /// public partial class AmazonComprehendClient : AmazonServiceClient, IAmazonComprehend { private static IServiceMetadata serviceMetadata = new AmazonComprehendMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IComprehendPaginatorFactory _paginators; /// /// Paginators for the service /// public IComprehendPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ComprehendPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonComprehendClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonComprehendClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonComprehendConfig()) { } /// /// Constructs AmazonComprehendClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonComprehendClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonComprehendConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonComprehendClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonComprehendClient Configuration Object public AmazonComprehendClient(AmazonComprehendConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonComprehendClient with AWS Credentials /// /// AWS Credentials public AmazonComprehendClient(AWSCredentials credentials) : this(credentials, new AmazonComprehendConfig()) { } /// /// Constructs AmazonComprehendClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonComprehendClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonComprehendConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonComprehendClient with AWS Credentials and an /// AmazonComprehendClient Configuration object. /// /// AWS Credentials /// The AmazonComprehendClient Configuration Object public AmazonComprehendClient(AWSCredentials credentials, AmazonComprehendConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonComprehendClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonComprehendClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonComprehendConfig()) { } /// /// Constructs AmazonComprehendClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonComprehendClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonComprehendConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonComprehendClient with AWS Access Key ID, AWS Secret Key and an /// AmazonComprehendClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonComprehendClient Configuration Object public AmazonComprehendClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonComprehendConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonComprehendClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonComprehendClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonComprehendConfig()) { } /// /// Constructs AmazonComprehendClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonComprehendClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonComprehendConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonComprehendClient with AWS Access Key ID, AWS Secret Key and an /// AmazonComprehendClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonComprehendClient Configuration Object public AmazonComprehendClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonComprehendConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonComprehendEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region BatchDetectDominantLanguage /// /// 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. /// /// Container for the necessary parameters to execute the BatchDetectDominantLanguage service method. /// /// The response from the BatchDetectDominantLanguage service method, as returned by Comprehend. /// /// The number of documents in the request exceeds the limit of 25. Try your request again /// with fewer documents. /// /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// REST API Reference for BatchDetectDominantLanguage Operation public virtual BatchDetectDominantLanguageResponse BatchDetectDominantLanguage(BatchDetectDominantLanguageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectDominantLanguageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectDominantLanguageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchDetectDominantLanguage operation. /// /// /// Container for the necessary parameters to execute the BatchDetectDominantLanguage operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDetectDominantLanguage /// operation. /// REST API Reference for BatchDetectDominantLanguage Operation public virtual IAsyncResult BeginBatchDetectDominantLanguage(BatchDetectDominantLanguageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectDominantLanguageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectDominantLanguageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchDetectDominantLanguage operation. /// /// /// The IAsyncResult returned by the call to BeginBatchDetectDominantLanguage. /// /// Returns a BatchDetectDominantLanguageResult from Comprehend. /// REST API Reference for BatchDetectDominantLanguage Operation public virtual BatchDetectDominantLanguageResponse EndBatchDetectDominantLanguage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchDetectEntities /// /// 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. /// /// Container for the necessary parameters to execute the BatchDetectEntities service method. /// /// The response from the BatchDetectEntities service method, as returned by Comprehend. /// /// The number of documents in the request exceeds the limit of 25. Try your request again /// with fewer documents. /// /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for BatchDetectEntities Operation public virtual BatchDetectEntitiesResponse BatchDetectEntities(BatchDetectEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchDetectEntities operation. /// /// /// Container for the necessary parameters to execute the BatchDetectEntities operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDetectEntities /// operation. /// REST API Reference for BatchDetectEntities Operation public virtual IAsyncResult BeginBatchDetectEntities(BatchDetectEntitiesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectEntitiesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchDetectEntities operation. /// /// /// The IAsyncResult returned by the call to BeginBatchDetectEntities. /// /// Returns a BatchDetectEntitiesResult from Comprehend. /// REST API Reference for BatchDetectEntities Operation public virtual BatchDetectEntitiesResponse EndBatchDetectEntities(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchDetectKeyPhrases /// /// Detects the key noun phrases found in a batch of documents. /// /// Container for the necessary parameters to execute the BatchDetectKeyPhrases service method. /// /// The response from the BatchDetectKeyPhrases service method, as returned by Comprehend. /// /// The number of documents in the request exceeds the limit of 25. Try your request again /// with fewer documents. /// /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for BatchDetectKeyPhrases Operation public virtual BatchDetectKeyPhrasesResponse BatchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectKeyPhrasesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectKeyPhrasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchDetectKeyPhrases operation. /// /// /// Container for the necessary parameters to execute the BatchDetectKeyPhrases operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDetectKeyPhrases /// operation. /// REST API Reference for BatchDetectKeyPhrases Operation public virtual IAsyncResult BeginBatchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectKeyPhrasesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectKeyPhrasesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchDetectKeyPhrases operation. /// /// /// The IAsyncResult returned by the call to BeginBatchDetectKeyPhrases. /// /// Returns a BatchDetectKeyPhrasesResult from Comprehend. /// REST API Reference for BatchDetectKeyPhrases Operation public virtual BatchDetectKeyPhrasesResponse EndBatchDetectKeyPhrases(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchDetectSentiment /// /// Inspects a batch of documents and returns an inference of the prevailing sentiment, /// POSITIVE, NEUTRAL, MIXED, or NEGATIVE, /// in each one. /// /// Container for the necessary parameters to execute the BatchDetectSentiment service method. /// /// The response from the BatchDetectSentiment service method, as returned by Comprehend. /// /// The number of documents in the request exceeds the limit of 25. Try your request again /// with fewer documents. /// /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for BatchDetectSentiment Operation public virtual BatchDetectSentimentResponse BatchDetectSentiment(BatchDetectSentimentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectSentimentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchDetectSentiment operation. /// /// /// Container for the necessary parameters to execute the BatchDetectSentiment operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDetectSentiment /// operation. /// REST API Reference for BatchDetectSentiment Operation public virtual IAsyncResult BeginBatchDetectSentiment(BatchDetectSentimentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectSentimentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchDetectSentiment operation. /// /// /// The IAsyncResult returned by the call to BeginBatchDetectSentiment. /// /// Returns a BatchDetectSentimentResult from Comprehend. /// REST API Reference for BatchDetectSentiment Operation public virtual BatchDetectSentimentResponse EndBatchDetectSentiment(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchDetectSyntax /// /// 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. /// /// Container for the necessary parameters to execute the BatchDetectSyntax service method. /// /// The response from the BatchDetectSyntax service method, as returned by Comprehend. /// /// The number of documents in the request exceeds the limit of 25. Try your request again /// with fewer documents. /// /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for BatchDetectSyntax Operation public virtual BatchDetectSyntaxResponse BatchDetectSyntax(BatchDetectSyntaxRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectSyntaxRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectSyntaxResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchDetectSyntax operation. /// /// /// Container for the necessary parameters to execute the BatchDetectSyntax operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDetectSyntax /// operation. /// REST API Reference for BatchDetectSyntax Operation public virtual IAsyncResult BeginBatchDetectSyntax(BatchDetectSyntaxRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectSyntaxRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectSyntaxResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchDetectSyntax operation. /// /// /// The IAsyncResult returned by the call to BeginBatchDetectSyntax. /// /// Returns a BatchDetectSyntaxResult from Comprehend. /// REST API Reference for BatchDetectSyntax Operation public virtual BatchDetectSyntaxResponse EndBatchDetectSyntax(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchDetectTargetedSentiment /// /// 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. /// /// /// Container for the necessary parameters to execute the BatchDetectTargetedSentiment service method. /// /// The response from the BatchDetectTargetedSentiment service method, as returned by Comprehend. /// /// The number of documents in the request exceeds the limit of 25. Try your request again /// with fewer documents. /// /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for BatchDetectTargetedSentiment Operation public virtual BatchDetectTargetedSentimentResponse BatchDetectTargetedSentiment(BatchDetectTargetedSentimentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectTargetedSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectTargetedSentimentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchDetectTargetedSentiment operation. /// /// /// Container for the necessary parameters to execute the BatchDetectTargetedSentiment operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDetectTargetedSentiment /// operation. /// REST API Reference for BatchDetectTargetedSentiment Operation public virtual IAsyncResult BeginBatchDetectTargetedSentiment(BatchDetectTargetedSentimentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectTargetedSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectTargetedSentimentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchDetectTargetedSentiment operation. /// /// /// The IAsyncResult returned by the call to BeginBatchDetectTargetedSentiment. /// /// Returns a BatchDetectTargetedSentimentResult from Comprehend. /// REST API Reference for BatchDetectTargetedSentiment Operation public virtual BatchDetectTargetedSentimentResponse EndBatchDetectTargetedSentiment(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ClassifyDocument /// /// 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. /// /// /// Container for the necessary parameters to execute the ClassifyDocument service method. /// /// The response from the ClassifyDocument service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// REST API Reference for ClassifyDocument Operation public virtual ClassifyDocumentResponse ClassifyDocument(ClassifyDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ClassifyDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = ClassifyDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ClassifyDocument operation. /// /// /// Container for the necessary parameters to execute the ClassifyDocument operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndClassifyDocument /// operation. /// REST API Reference for ClassifyDocument Operation public virtual IAsyncResult BeginClassifyDocument(ClassifyDocumentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ClassifyDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = ClassifyDocumentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ClassifyDocument operation. /// /// /// The IAsyncResult returned by the call to BeginClassifyDocument. /// /// Returns a ClassifyDocumentResult from Comprehend. /// REST API Reference for ClassifyDocument Operation public virtual ClassifyDocumentResponse EndClassifyDocument(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ContainsPiiEntities /// /// 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. /// /// Container for the necessary parameters to execute the ContainsPiiEntities service method. /// /// The response from the ContainsPiiEntities service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for ContainsPiiEntities Operation public virtual ContainsPiiEntitiesResponse ContainsPiiEntities(ContainsPiiEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ContainsPiiEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ContainsPiiEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ContainsPiiEntities operation. /// /// /// Container for the necessary parameters to execute the ContainsPiiEntities operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndContainsPiiEntities /// operation. /// REST API Reference for ContainsPiiEntities Operation public virtual IAsyncResult BeginContainsPiiEntities(ContainsPiiEntitiesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ContainsPiiEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ContainsPiiEntitiesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ContainsPiiEntities operation. /// /// /// The IAsyncResult returned by the call to BeginContainsPiiEntities. /// /// Returns a ContainsPiiEntitiesResult from Comprehend. /// REST API Reference for ContainsPiiEntities Operation public virtual ContainsPiiEntitiesResponse EndContainsPiiEntities(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateDataset /// /// 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. /// /// Container for the necessary parameters to execute the CreateDataset service method. /// /// The response from the CreateDataset service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The maximum number of resources per account has been exceeded. Review the resources, /// and then try your request again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for CreateDataset Operation public virtual CreateDatasetResponse CreateDataset(CreateDatasetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDatasetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateDataset operation. /// /// /// Container for the necessary parameters to execute the CreateDataset operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateDataset /// operation. /// REST API Reference for CreateDataset Operation public virtual IAsyncResult BeginCreateDataset(CreateDatasetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDatasetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateDataset operation. /// /// /// The IAsyncResult returned by the call to BeginCreateDataset. /// /// Returns a CreateDatasetResult from Comprehend. /// REST API Reference for CreateDataset Operation public virtual CreateDatasetResponse EndCreateDataset(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateDocumentClassifier /// /// 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. /// /// Container for the necessary parameters to execute the CreateDocumentClassifier service method. /// /// The response from the CreateDocumentClassifier service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The maximum number of resources per account has been exceeded. Review the resources, /// and then try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for CreateDocumentClassifier Operation public virtual CreateDocumentClassifierResponse CreateDocumentClassifier(CreateDocumentClassifierRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDocumentClassifierResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateDocumentClassifier operation. /// /// /// Container for the necessary parameters to execute the CreateDocumentClassifier operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateDocumentClassifier /// operation. /// REST API Reference for CreateDocumentClassifier Operation public virtual IAsyncResult BeginCreateDocumentClassifier(CreateDocumentClassifierRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDocumentClassifierResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateDocumentClassifier operation. /// /// /// The IAsyncResult returned by the call to BeginCreateDocumentClassifier. /// /// Returns a CreateDocumentClassifierResult from Comprehend. /// REST API Reference for CreateDocumentClassifier Operation public virtual CreateDocumentClassifierResponse EndCreateDocumentClassifier(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateEndpoint /// /// Creates a model-specific endpoint for synchronous inference for a previously trained /// custom model For information about endpoints, see Managing /// endpoints. /// /// Container for the necessary parameters to execute the CreateEndpoint service method. /// /// The response from the CreateEndpoint service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The maximum number of resources per account has been exceeded. Review the resources, /// and then try your request again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for CreateEndpoint Operation public virtual CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateEndpoint operation. /// /// /// Container for the necessary parameters to execute the CreateEndpoint operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateEndpoint /// operation. /// REST API Reference for CreateEndpoint Operation public virtual IAsyncResult BeginCreateEndpoint(CreateEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginCreateEndpoint. /// /// Returns a CreateEndpointResult from Comprehend. /// REST API Reference for CreateEndpoint Operation public virtual CreateEndpointResponse EndCreateEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateEntityRecognizer /// /// Creates an entity recognizer using submitted files. After your CreateEntityRecognizer /// request is submitted, you can check job status using the DescribeEntityRecognizer /// API. /// /// Container for the necessary parameters to execute the CreateEntityRecognizer service method. /// /// The response from the CreateEntityRecognizer service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The maximum number of resources per account has been exceeded. Review the resources, /// and then try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for CreateEntityRecognizer Operation public virtual CreateEntityRecognizerResponse CreateEntityRecognizer(CreateEntityRecognizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEntityRecognizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateEntityRecognizer operation. /// /// /// Container for the necessary parameters to execute the CreateEntityRecognizer operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateEntityRecognizer /// operation. /// REST API Reference for CreateEntityRecognizer Operation public virtual IAsyncResult BeginCreateEntityRecognizer(CreateEntityRecognizerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEntityRecognizerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateEntityRecognizer operation. /// /// /// The IAsyncResult returned by the call to BeginCreateEntityRecognizer. /// /// Returns a CreateEntityRecognizerResult from Comprehend. /// REST API Reference for CreateEntityRecognizer Operation public virtual CreateEntityRecognizerResponse EndCreateEntityRecognizer(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateFlywheel /// /// 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. /// /// /// Container for the necessary parameters to execute the CreateFlywheel service method. /// /// The response from the CreateFlywheel service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The maximum number of resources per account has been exceeded. Review the resources, /// and then try your request again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for CreateFlywheel Operation public virtual CreateFlywheelResponse CreateFlywheel(CreateFlywheelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlywheelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateFlywheel operation. /// /// /// Container for the necessary parameters to execute the CreateFlywheel operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFlywheel /// operation. /// REST API Reference for CreateFlywheel Operation public virtual IAsyncResult BeginCreateFlywheel(CreateFlywheelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlywheelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateFlywheel operation. /// /// /// The IAsyncResult returned by the call to BeginCreateFlywheel. /// /// Returns a CreateFlywheelResult from Comprehend. /// REST API Reference for CreateFlywheel Operation public virtual CreateFlywheelResponse EndCreateFlywheel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteDocumentClassifier /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteDocumentClassifier service method. /// /// The response from the DeleteDocumentClassifier service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DeleteDocumentClassifier Operation public virtual DeleteDocumentClassifierResponse DeleteDocumentClassifier(DeleteDocumentClassifierRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentClassifierResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteDocumentClassifier operation. /// /// /// Container for the necessary parameters to execute the DeleteDocumentClassifier operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDocumentClassifier /// operation. /// REST API Reference for DeleteDocumentClassifier Operation public virtual IAsyncResult BeginDeleteDocumentClassifier(DeleteDocumentClassifierRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentClassifierResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteDocumentClassifier operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteDocumentClassifier. /// /// Returns a DeleteDocumentClassifierResult from Comprehend. /// REST API Reference for DeleteDocumentClassifier Operation public virtual DeleteDocumentClassifierResponse EndDeleteDocumentClassifier(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteEndpoint /// /// 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. /// /// Container for the necessary parameters to execute the DeleteEndpoint service method. /// /// The response from the DeleteEndpoint service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DeleteEndpoint Operation public virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteEndpoint operation. /// /// /// Container for the necessary parameters to execute the DeleteEndpoint operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEndpoint /// operation. /// REST API Reference for DeleteEndpoint Operation public virtual IAsyncResult BeginDeleteEndpoint(DeleteEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteEndpoint. /// /// Returns a DeleteEndpointResult from Comprehend. /// REST API Reference for DeleteEndpoint Operation public virtual DeleteEndpointResponse EndDeleteEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteEntityRecognizer /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteEntityRecognizer service method. /// /// The response from the DeleteEntityRecognizer service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DeleteEntityRecognizer Operation public virtual DeleteEntityRecognizerResponse DeleteEntityRecognizer(DeleteEntityRecognizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEntityRecognizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteEntityRecognizer operation. /// /// /// Container for the necessary parameters to execute the DeleteEntityRecognizer operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEntityRecognizer /// operation. /// REST API Reference for DeleteEntityRecognizer Operation public virtual IAsyncResult BeginDeleteEntityRecognizer(DeleteEntityRecognizerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEntityRecognizerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteEntityRecognizer operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteEntityRecognizer. /// /// Returns a DeleteEntityRecognizerResult from Comprehend. /// REST API Reference for DeleteEntityRecognizer Operation public virtual DeleteEntityRecognizerResponse EndDeleteEntityRecognizer(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteFlywheel /// /// 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. /// /// /// Container for the necessary parameters to execute the DeleteFlywheel service method. /// /// The response from the DeleteFlywheel service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DeleteFlywheel Operation public virtual DeleteFlywheelResponse DeleteFlywheel(DeleteFlywheelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlywheelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteFlywheel operation. /// /// /// Container for the necessary parameters to execute the DeleteFlywheel operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFlywheel /// operation. /// REST API Reference for DeleteFlywheel Operation public virtual IAsyncResult BeginDeleteFlywheel(DeleteFlywheelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlywheelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteFlywheel operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteFlywheel. /// /// Returns a DeleteFlywheelResult from Comprehend. /// REST API Reference for DeleteFlywheel Operation public virtual DeleteFlywheelResponse EndDeleteFlywheel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteResourcePolicy /// /// Deletes a resource-based policy that is attached to a custom model. /// /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. /// /// The response from the DeleteResourcePolicy service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// REST API Reference for DeleteResourcePolicy Operation public virtual DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteResourcePolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteResourcePolicy operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteResourcePolicy /// operation. /// REST API Reference for DeleteResourcePolicy Operation public virtual IAsyncResult BeginDeleteResourcePolicy(DeleteResourcePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteResourcePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteResourcePolicy. /// /// Returns a DeleteResourcePolicyResult from Comprehend. /// REST API Reference for DeleteResourcePolicy Operation public virtual DeleteResourcePolicyResponse EndDeleteResourcePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeDataset /// /// Returns information about the dataset that you specify. For more information about /// datasets, see /// Flywheel overview in the Amazon Comprehend Developer Guide. /// /// Container for the necessary parameters to execute the DescribeDataset service method. /// /// The response from the DescribeDataset service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeDataset Operation public virtual DescribeDatasetResponse DescribeDataset(DescribeDatasetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDatasetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeDataset operation. /// /// /// Container for the necessary parameters to execute the DescribeDataset operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDataset /// operation. /// REST API Reference for DescribeDataset Operation public virtual IAsyncResult BeginDescribeDataset(DescribeDatasetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDatasetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeDataset operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeDataset. /// /// Returns a DescribeDatasetResult from Comprehend. /// REST API Reference for DescribeDataset Operation public virtual DescribeDatasetResponse EndDescribeDataset(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeDocumentClassificationJob /// /// Gets the properties associated with a document classification job. Use this operation /// to get the status of a classification job. /// /// Container for the necessary parameters to execute the DescribeDocumentClassificationJob service method. /// /// The response from the DescribeDocumentClassificationJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeDocumentClassificationJob Operation public virtual DescribeDocumentClassificationJobResponse DescribeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentClassificationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentClassificationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeDocumentClassificationJob operation. /// /// /// Container for the necessary parameters to execute the DescribeDocumentClassificationJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDocumentClassificationJob /// operation. /// REST API Reference for DescribeDocumentClassificationJob Operation public virtual IAsyncResult BeginDescribeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentClassificationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentClassificationJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeDocumentClassificationJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeDocumentClassificationJob. /// /// Returns a DescribeDocumentClassificationJobResult from Comprehend. /// REST API Reference for DescribeDocumentClassificationJob Operation public virtual DescribeDocumentClassificationJobResponse EndDescribeDocumentClassificationJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeDocumentClassifier /// /// Gets the properties associated with a document classifier. /// /// Container for the necessary parameters to execute the DescribeDocumentClassifier service method. /// /// The response from the DescribeDocumentClassifier service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeDocumentClassifier Operation public virtual DescribeDocumentClassifierResponse DescribeDocumentClassifier(DescribeDocumentClassifierRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentClassifierResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeDocumentClassifier operation. /// /// /// Container for the necessary parameters to execute the DescribeDocumentClassifier operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDocumentClassifier /// operation. /// REST API Reference for DescribeDocumentClassifier Operation public virtual IAsyncResult BeginDescribeDocumentClassifier(DescribeDocumentClassifierRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentClassifierResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeDocumentClassifier operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeDocumentClassifier. /// /// Returns a DescribeDocumentClassifierResult from Comprehend. /// REST API Reference for DescribeDocumentClassifier Operation public virtual DescribeDocumentClassifierResponse EndDescribeDocumentClassifier(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeDominantLanguageDetectionJob /// /// Gets the properties associated with a dominant language detection job. Use this operation /// to get the status of a detection job. /// /// Container for the necessary parameters to execute the DescribeDominantLanguageDetectionJob service method. /// /// The response from the DescribeDominantLanguageDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeDominantLanguageDetectionJob Operation public virtual DescribeDominantLanguageDetectionJobResponse DescribeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDominantLanguageDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeDominantLanguageDetectionJob operation. /// /// /// Container for the necessary parameters to execute the DescribeDominantLanguageDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDominantLanguageDetectionJob /// operation. /// REST API Reference for DescribeDominantLanguageDetectionJob Operation public virtual IAsyncResult BeginDescribeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDominantLanguageDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeDominantLanguageDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeDominantLanguageDetectionJob. /// /// Returns a DescribeDominantLanguageDetectionJobResult from Comprehend. /// REST API Reference for DescribeDominantLanguageDetectionJob Operation public virtual DescribeDominantLanguageDetectionJobResponse EndDescribeDominantLanguageDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeEndpoint /// /// 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. /// /// Container for the necessary parameters to execute the DescribeEndpoint service method. /// /// The response from the DescribeEndpoint service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeEndpoint Operation public virtual DescribeEndpointResponse DescribeEndpoint(DescribeEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeEndpoint operation. /// /// /// Container for the necessary parameters to execute the DescribeEndpoint operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeEndpoint /// operation. /// REST API Reference for DescribeEndpoint Operation public virtual IAsyncResult BeginDescribeEndpoint(DescribeEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeEndpoint. /// /// Returns a DescribeEndpointResult from Comprehend. /// REST API Reference for DescribeEndpoint Operation public virtual DescribeEndpointResponse EndDescribeEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeEntitiesDetectionJob /// /// Gets the properties associated with an entities detection job. Use this operation /// to get the status of a detection job. /// /// Container for the necessary parameters to execute the DescribeEntitiesDetectionJob service method. /// /// The response from the DescribeEntitiesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeEntitiesDetectionJob Operation public virtual DescribeEntitiesDetectionJobResponse DescribeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeEntitiesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the DescribeEntitiesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeEntitiesDetectionJob /// operation. /// REST API Reference for DescribeEntitiesDetectionJob Operation public virtual IAsyncResult BeginDescribeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntitiesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeEntitiesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeEntitiesDetectionJob. /// /// Returns a DescribeEntitiesDetectionJobResult from Comprehend. /// REST API Reference for DescribeEntitiesDetectionJob Operation public virtual DescribeEntitiesDetectionJobResponse EndDescribeEntitiesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeEntityRecognizer /// /// Provides details about an entity recognizer including status, S3 buckets containing /// training data, recognizer metadata, metrics, and so on. /// /// Container for the necessary parameters to execute the DescribeEntityRecognizer service method. /// /// The response from the DescribeEntityRecognizer service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeEntityRecognizer Operation public virtual DescribeEntityRecognizerResponse DescribeEntityRecognizer(DescribeEntityRecognizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntityRecognizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeEntityRecognizer operation. /// /// /// Container for the necessary parameters to execute the DescribeEntityRecognizer operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeEntityRecognizer /// operation. /// REST API Reference for DescribeEntityRecognizer Operation public virtual IAsyncResult BeginDescribeEntityRecognizer(DescribeEntityRecognizerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntityRecognizerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeEntityRecognizer operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeEntityRecognizer. /// /// Returns a DescribeEntityRecognizerResult from Comprehend. /// REST API Reference for DescribeEntityRecognizer Operation public virtual DescribeEntityRecognizerResponse EndDescribeEntityRecognizer(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeEventsDetectionJob /// /// Gets the status and details of an events detection job. /// /// Container for the necessary parameters to execute the DescribeEventsDetectionJob service method. /// /// The response from the DescribeEventsDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeEventsDetectionJob Operation public virtual DescribeEventsDetectionJobResponse DescribeEventsDetectionJob(DescribeEventsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEventsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeEventsDetectionJob operation. /// /// /// Container for the necessary parameters to execute the DescribeEventsDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeEventsDetectionJob /// operation. /// REST API Reference for DescribeEventsDetectionJob Operation public virtual IAsyncResult BeginDescribeEventsDetectionJob(DescribeEventsDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEventsDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeEventsDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeEventsDetectionJob. /// /// Returns a DescribeEventsDetectionJobResult from Comprehend. /// REST API Reference for DescribeEventsDetectionJob Operation public virtual DescribeEventsDetectionJobResponse EndDescribeEventsDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeFlywheel /// /// Provides configuration information about the flywheel. For more information about /// flywheels, see /// Flywheel overview in the Amazon Comprehend Developer Guide. /// /// Container for the necessary parameters to execute the DescribeFlywheel service method. /// /// The response from the DescribeFlywheel service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeFlywheel Operation public virtual DescribeFlywheelResponse DescribeFlywheel(DescribeFlywheelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlywheelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeFlywheel operation. /// /// /// Container for the necessary parameters to execute the DescribeFlywheel operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeFlywheel /// operation. /// REST API Reference for DescribeFlywheel Operation public virtual IAsyncResult BeginDescribeFlywheel(DescribeFlywheelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlywheelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeFlywheel operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeFlywheel. /// /// Returns a DescribeFlywheelResult from Comprehend. /// REST API Reference for DescribeFlywheel Operation public virtual DescribeFlywheelResponse EndDescribeFlywheel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeFlywheelIteration /// /// Retrieve the configuration properties of a flywheel iteration. For more information /// about flywheels, see /// Flywheel overview in the Amazon Comprehend Developer Guide. /// /// Container for the necessary parameters to execute the DescribeFlywheelIteration service method. /// /// The response from the DescribeFlywheelIteration service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeFlywheelIteration Operation public virtual DescribeFlywheelIterationResponse DescribeFlywheelIteration(DescribeFlywheelIterationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlywheelIterationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlywheelIterationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeFlywheelIteration operation. /// /// /// Container for the necessary parameters to execute the DescribeFlywheelIteration operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeFlywheelIteration /// operation. /// REST API Reference for DescribeFlywheelIteration Operation public virtual IAsyncResult BeginDescribeFlywheelIteration(DescribeFlywheelIterationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlywheelIterationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlywheelIterationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeFlywheelIteration operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeFlywheelIteration. /// /// Returns a DescribeFlywheelIterationResult from Comprehend. /// REST API Reference for DescribeFlywheelIteration Operation public virtual DescribeFlywheelIterationResponse EndDescribeFlywheelIteration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeKeyPhrasesDetectionJob /// /// Gets the properties associated with a key phrases detection job. Use this operation /// to get the status of a detection job. /// /// Container for the necessary parameters to execute the DescribeKeyPhrasesDetectionJob service method. /// /// The response from the DescribeKeyPhrasesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeKeyPhrasesDetectionJob Operation public virtual DescribeKeyPhrasesDetectionJobResponse DescribeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeKeyPhrasesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the DescribeKeyPhrasesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeKeyPhrasesDetectionJob /// operation. /// REST API Reference for DescribeKeyPhrasesDetectionJob Operation public virtual IAsyncResult BeginDescribeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeKeyPhrasesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeKeyPhrasesDetectionJob. /// /// Returns a DescribeKeyPhrasesDetectionJobResult from Comprehend. /// REST API Reference for DescribeKeyPhrasesDetectionJob Operation public virtual DescribeKeyPhrasesDetectionJobResponse EndDescribeKeyPhrasesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribePiiEntitiesDetectionJob /// /// Gets the properties associated with a PII entities detection job. For example, you /// can use this operation to get the job status. /// /// Container for the necessary parameters to execute the DescribePiiEntitiesDetectionJob service method. /// /// The response from the DescribePiiEntitiesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribePiiEntitiesDetectionJob Operation public virtual DescribePiiEntitiesDetectionJobResponse DescribePiiEntitiesDetectionJob(DescribePiiEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePiiEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribePiiEntitiesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the DescribePiiEntitiesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribePiiEntitiesDetectionJob /// operation. /// REST API Reference for DescribePiiEntitiesDetectionJob Operation public virtual IAsyncResult BeginDescribePiiEntitiesDetectionJob(DescribePiiEntitiesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePiiEntitiesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribePiiEntitiesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribePiiEntitiesDetectionJob. /// /// Returns a DescribePiiEntitiesDetectionJobResult from Comprehend. /// REST API Reference for DescribePiiEntitiesDetectionJob Operation public virtual DescribePiiEntitiesDetectionJobResponse EndDescribePiiEntitiesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeResourcePolicy /// /// Gets the details of a resource-based policy that is attached to a custom model, including /// the JSON body of the policy. /// /// Container for the necessary parameters to execute the DescribeResourcePolicy service method. /// /// The response from the DescribeResourcePolicy service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// REST API Reference for DescribeResourcePolicy Operation public virtual DescribeResourcePolicyResponse DescribeResourcePolicy(DescribeResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeResourcePolicy operation. /// /// /// Container for the necessary parameters to execute the DescribeResourcePolicy operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeResourcePolicy /// operation. /// REST API Reference for DescribeResourcePolicy Operation public virtual IAsyncResult BeginDescribeResourcePolicy(DescribeResourcePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourcePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeResourcePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeResourcePolicy. /// /// Returns a DescribeResourcePolicyResult from Comprehend. /// REST API Reference for DescribeResourcePolicy Operation public virtual DescribeResourcePolicyResponse EndDescribeResourcePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeSentimentDetectionJob /// /// Gets the properties associated with a sentiment detection job. Use this operation /// to get the status of a detection job. /// /// Container for the necessary parameters to execute the DescribeSentimentDetectionJob service method. /// /// The response from the DescribeSentimentDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeSentimentDetectionJob Operation public virtual DescribeSentimentDetectionJobResponse DescribeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeSentimentDetectionJob operation. /// /// /// Container for the necessary parameters to execute the DescribeSentimentDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeSentimentDetectionJob /// operation. /// REST API Reference for DescribeSentimentDetectionJob Operation public virtual IAsyncResult BeginDescribeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSentimentDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeSentimentDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeSentimentDetectionJob. /// /// Returns a DescribeSentimentDetectionJobResult from Comprehend. /// REST API Reference for DescribeSentimentDetectionJob Operation public virtual DescribeSentimentDetectionJobResponse EndDescribeSentimentDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeTargetedSentimentDetectionJob /// /// Gets the properties associated with a targeted sentiment detection job. Use this operation /// to get the status of the job. /// /// Container for the necessary parameters to execute the DescribeTargetedSentimentDetectionJob service method. /// /// The response from the DescribeTargetedSentimentDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeTargetedSentimentDetectionJob Operation public virtual DescribeTargetedSentimentDetectionJobResponse DescribeTargetedSentimentDetectionJob(DescribeTargetedSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeTargetedSentimentDetectionJob operation. /// /// /// Container for the necessary parameters to execute the DescribeTargetedSentimentDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTargetedSentimentDetectionJob /// operation. /// REST API Reference for DescribeTargetedSentimentDetectionJob Operation public virtual IAsyncResult BeginDescribeTargetedSentimentDetectionJob(DescribeTargetedSentimentDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeTargetedSentimentDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeTargetedSentimentDetectionJob. /// /// Returns a DescribeTargetedSentimentDetectionJobResult from Comprehend. /// REST API Reference for DescribeTargetedSentimentDetectionJob Operation public virtual DescribeTargetedSentimentDetectionJobResponse EndDescribeTargetedSentimentDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeTopicsDetectionJob /// /// Gets the properties associated with a topic detection job. Use this operation to get /// the status of a detection job. /// /// Container for the necessary parameters to execute the DescribeTopicsDetectionJob service method. /// /// The response from the DescribeTopicsDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for DescribeTopicsDetectionJob Operation public virtual DescribeTopicsDetectionJobResponse DescribeTopicsDetectionJob(DescribeTopicsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTopicsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTopicsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeTopicsDetectionJob operation. /// /// /// Container for the necessary parameters to execute the DescribeTopicsDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTopicsDetectionJob /// operation. /// REST API Reference for DescribeTopicsDetectionJob Operation public virtual IAsyncResult BeginDescribeTopicsDetectionJob(DescribeTopicsDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTopicsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTopicsDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeTopicsDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeTopicsDetectionJob. /// /// Returns a DescribeTopicsDetectionJobResult from Comprehend. /// REST API Reference for DescribeTopicsDetectionJob Operation public virtual DescribeTopicsDetectionJobResponse EndDescribeTopicsDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DetectDominantLanguage /// /// Determines the dominant language of the input text. For a list of languages that Amazon /// Comprehend can detect, see Amazon /// Comprehend Supported Languages. /// /// Container for the necessary parameters to execute the DetectDominantLanguage service method. /// /// The response from the DetectDominantLanguage service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// REST API Reference for DetectDominantLanguage Operation public virtual DetectDominantLanguageResponse DetectDominantLanguage(DetectDominantLanguageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectDominantLanguageRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectDominantLanguageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DetectDominantLanguage operation. /// /// /// Container for the necessary parameters to execute the DetectDominantLanguage operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetectDominantLanguage /// operation. /// REST API Reference for DetectDominantLanguage Operation public virtual IAsyncResult BeginDetectDominantLanguage(DetectDominantLanguageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectDominantLanguageRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectDominantLanguageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DetectDominantLanguage operation. /// /// /// The IAsyncResult returned by the call to BeginDetectDominantLanguage. /// /// Returns a DetectDominantLanguageResult from Comprehend. /// REST API Reference for DetectDominantLanguage Operation public virtual DetectDominantLanguageResponse EndDetectDominantLanguage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DetectEntities /// /// 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. /// /// /// Container for the necessary parameters to execute the DetectEntities service method. /// /// The response from the DetectEntities service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for DetectEntities Operation public virtual DetectEntitiesResponse DetectEntities(DetectEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DetectEntities operation. /// /// /// Container for the necessary parameters to execute the DetectEntities operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetectEntities /// operation. /// REST API Reference for DetectEntities Operation public virtual IAsyncResult BeginDetectEntities(DetectEntitiesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectEntitiesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DetectEntities operation. /// /// /// The IAsyncResult returned by the call to BeginDetectEntities. /// /// Returns a DetectEntitiesResult from Comprehend. /// REST API Reference for DetectEntities Operation public virtual DetectEntitiesResponse EndDetectEntities(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DetectKeyPhrases /// /// Detects the key noun phrases found in the text. /// /// Container for the necessary parameters to execute the DetectKeyPhrases service method. /// /// The response from the DetectKeyPhrases service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for DetectKeyPhrases Operation public virtual DetectKeyPhrasesResponse DetectKeyPhrases(DetectKeyPhrasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectKeyPhrasesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectKeyPhrasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DetectKeyPhrases operation. /// /// /// Container for the necessary parameters to execute the DetectKeyPhrases operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetectKeyPhrases /// operation. /// REST API Reference for DetectKeyPhrases Operation public virtual IAsyncResult BeginDetectKeyPhrases(DetectKeyPhrasesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectKeyPhrasesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectKeyPhrasesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DetectKeyPhrases operation. /// /// /// The IAsyncResult returned by the call to BeginDetectKeyPhrases. /// /// Returns a DetectKeyPhrasesResult from Comprehend. /// REST API Reference for DetectKeyPhrases Operation public virtual DetectKeyPhrasesResponse EndDetectKeyPhrases(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DetectPiiEntities /// /// Inspects the input text for entities that contain personally identifiable information /// (PII) and returns information about them. /// /// Container for the necessary parameters to execute the DetectPiiEntities service method. /// /// The response from the DetectPiiEntities service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for DetectPiiEntities Operation public virtual DetectPiiEntitiesResponse DetectPiiEntities(DetectPiiEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectPiiEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectPiiEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DetectPiiEntities operation. /// /// /// Container for the necessary parameters to execute the DetectPiiEntities operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetectPiiEntities /// operation. /// REST API Reference for DetectPiiEntities Operation public virtual IAsyncResult BeginDetectPiiEntities(DetectPiiEntitiesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectPiiEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectPiiEntitiesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DetectPiiEntities operation. /// /// /// The IAsyncResult returned by the call to BeginDetectPiiEntities. /// /// Returns a DetectPiiEntitiesResult from Comprehend. /// REST API Reference for DetectPiiEntities Operation public virtual DetectPiiEntitiesResponse EndDetectPiiEntities(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DetectSentiment /// /// Inspects text and returns an inference of the prevailing sentiment (POSITIVE, /// NEUTRAL, MIXED, or NEGATIVE). /// /// Container for the necessary parameters to execute the DetectSentiment service method. /// /// The response from the DetectSentiment service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for DetectSentiment Operation public virtual DetectSentimentResponse DetectSentiment(DetectSentimentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectSentimentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DetectSentiment operation. /// /// /// Container for the necessary parameters to execute the DetectSentiment operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetectSentiment /// operation. /// REST API Reference for DetectSentiment Operation public virtual IAsyncResult BeginDetectSentiment(DetectSentimentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectSentimentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DetectSentiment operation. /// /// /// The IAsyncResult returned by the call to BeginDetectSentiment. /// /// Returns a DetectSentimentResult from Comprehend. /// REST API Reference for DetectSentiment Operation public virtual DetectSentimentResponse EndDetectSentiment(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DetectSyntax /// /// Inspects text for syntax and the part of speech of words in the document. For more /// information, see Syntax /// in the Comprehend Developer Guide. /// /// Container for the necessary parameters to execute the DetectSyntax service method. /// /// The response from the DetectSyntax service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for DetectSyntax Operation public virtual DetectSyntaxResponse DetectSyntax(DetectSyntaxRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectSyntaxRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectSyntaxResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DetectSyntax operation. /// /// /// Container for the necessary parameters to execute the DetectSyntax operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetectSyntax /// operation. /// REST API Reference for DetectSyntax Operation public virtual IAsyncResult BeginDetectSyntax(DetectSyntaxRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectSyntaxRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectSyntaxResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DetectSyntax operation. /// /// /// The IAsyncResult returned by the call to BeginDetectSyntax. /// /// Returns a DetectSyntaxResult from Comprehend. /// REST API Reference for DetectSyntax Operation public virtual DetectSyntaxResponse EndDetectSyntax(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DetectTargetedSentiment /// /// 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. /// /// /// Container for the necessary parameters to execute the DetectTargetedSentiment service method. /// /// The response from the DetectTargetedSentiment service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The size of the input text exceeds the limit. Use a smaller document. /// /// /// Amazon Comprehend can't process the language of the input text. For custom entity /// recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are /// accepted. For a list of supported languages, Supported /// languages in the Comprehend Developer Guide. /// /// REST API Reference for DetectTargetedSentiment Operation public virtual DetectTargetedSentimentResponse DetectTargetedSentiment(DetectTargetedSentimentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectTargetedSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectTargetedSentimentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DetectTargetedSentiment operation. /// /// /// Container for the necessary parameters to execute the DetectTargetedSentiment operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetectTargetedSentiment /// operation. /// REST API Reference for DetectTargetedSentiment Operation public virtual IAsyncResult BeginDetectTargetedSentiment(DetectTargetedSentimentRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectTargetedSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectTargetedSentimentResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DetectTargetedSentiment operation. /// /// /// The IAsyncResult returned by the call to BeginDetectTargetedSentiment. /// /// Returns a DetectTargetedSentimentResult from Comprehend. /// REST API Reference for DetectTargetedSentiment Operation public virtual DetectTargetedSentimentResponse EndDetectTargetedSentiment(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ImportModel /// /// 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. /// /// /// Container for the necessary parameters to execute the ImportModel service method. /// /// The response from the ImportModel service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The maximum number of resources per account has been exceeded. Review the resources, /// and then try your request again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for ImportModel Operation public virtual ImportModelResponse ImportModel(ImportModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportModelRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ImportModel operation. /// /// /// Container for the necessary parameters to execute the ImportModel operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportModel /// operation. /// REST API Reference for ImportModel Operation public virtual IAsyncResult BeginImportModel(ImportModelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ImportModelRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportModelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ImportModel operation. /// /// /// The IAsyncResult returned by the call to BeginImportModel. /// /// Returns a ImportModelResult from Comprehend. /// REST API Reference for ImportModel Operation public virtual ImportModelResponse EndImportModel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListDatasets /// /// List the datasets that you have configured in this Region. For more information about /// datasets, see /// Flywheel overview in the Amazon Comprehend Developer Guide. /// /// Container for the necessary parameters to execute the ListDatasets service method. /// /// The response from the ListDatasets service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListDatasets Operation public virtual ListDatasetsResponse ListDatasets(ListDatasetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatasetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatasetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListDatasets operation. /// /// /// Container for the necessary parameters to execute the ListDatasets operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDatasets /// operation. /// REST API Reference for ListDatasets Operation public virtual IAsyncResult BeginListDatasets(ListDatasetsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatasetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatasetsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListDatasets operation. /// /// /// The IAsyncResult returned by the call to BeginListDatasets. /// /// Returns a ListDatasetsResult from Comprehend. /// REST API Reference for ListDatasets Operation public virtual ListDatasetsResponse EndListDatasets(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListDocumentClassificationJobs /// /// Gets a list of the documentation classification jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListDocumentClassificationJobs service method. /// /// The response from the ListDocumentClassificationJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListDocumentClassificationJobs Operation public virtual ListDocumentClassificationJobsResponse ListDocumentClassificationJobs(ListDocumentClassificationJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassificationJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassificationJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListDocumentClassificationJobs operation. /// /// /// Container for the necessary parameters to execute the ListDocumentClassificationJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDocumentClassificationJobs /// operation. /// REST API Reference for ListDocumentClassificationJobs Operation public virtual IAsyncResult BeginListDocumentClassificationJobs(ListDocumentClassificationJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassificationJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassificationJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListDocumentClassificationJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListDocumentClassificationJobs. /// /// Returns a ListDocumentClassificationJobsResult from Comprehend. /// REST API Reference for ListDocumentClassificationJobs Operation public virtual ListDocumentClassificationJobsResponse EndListDocumentClassificationJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListDocumentClassifiers /// /// Gets a list of the document classifiers that you have created. /// /// Container for the necessary parameters to execute the ListDocumentClassifiers service method. /// /// The response from the ListDocumentClassifiers service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListDocumentClassifiers Operation public virtual ListDocumentClassifiersResponse ListDocumentClassifiers(ListDocumentClassifiersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassifiersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassifiersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListDocumentClassifiers operation. /// /// /// Container for the necessary parameters to execute the ListDocumentClassifiers operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDocumentClassifiers /// operation. /// REST API Reference for ListDocumentClassifiers Operation public virtual IAsyncResult BeginListDocumentClassifiers(ListDocumentClassifiersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassifiersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassifiersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListDocumentClassifiers operation. /// /// /// The IAsyncResult returned by the call to BeginListDocumentClassifiers. /// /// Returns a ListDocumentClassifiersResult from Comprehend. /// REST API Reference for ListDocumentClassifiers Operation public virtual ListDocumentClassifiersResponse EndListDocumentClassifiers(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListDocumentClassifierSummaries /// /// Gets a list of summaries of the document classifiers that you have created /// /// Container for the necessary parameters to execute the ListDocumentClassifierSummaries service method. /// /// The response from the ListDocumentClassifierSummaries service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListDocumentClassifierSummaries Operation public virtual ListDocumentClassifierSummariesResponse ListDocumentClassifierSummaries(ListDocumentClassifierSummariesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassifierSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassifierSummariesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListDocumentClassifierSummaries operation. /// /// /// Container for the necessary parameters to execute the ListDocumentClassifierSummaries operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDocumentClassifierSummaries /// operation. /// REST API Reference for ListDocumentClassifierSummaries Operation public virtual IAsyncResult BeginListDocumentClassifierSummaries(ListDocumentClassifierSummariesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassifierSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassifierSummariesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListDocumentClassifierSummaries operation. /// /// /// The IAsyncResult returned by the call to BeginListDocumentClassifierSummaries. /// /// Returns a ListDocumentClassifierSummariesResult from Comprehend. /// REST API Reference for ListDocumentClassifierSummaries Operation public virtual ListDocumentClassifierSummariesResponse EndListDocumentClassifierSummaries(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListDominantLanguageDetectionJobs /// /// Gets a list of the dominant language detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListDominantLanguageDetectionJobs service method. /// /// The response from the ListDominantLanguageDetectionJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListDominantLanguageDetectionJobs Operation public virtual ListDominantLanguageDetectionJobsResponse ListDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDominantLanguageDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDominantLanguageDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListDominantLanguageDetectionJobs operation. /// /// /// Container for the necessary parameters to execute the ListDominantLanguageDetectionJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDominantLanguageDetectionJobs /// operation. /// REST API Reference for ListDominantLanguageDetectionJobs Operation public virtual IAsyncResult BeginListDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDominantLanguageDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDominantLanguageDetectionJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListDominantLanguageDetectionJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListDominantLanguageDetectionJobs. /// /// Returns a ListDominantLanguageDetectionJobsResult from Comprehend. /// REST API Reference for ListDominantLanguageDetectionJobs Operation public virtual ListDominantLanguageDetectionJobsResponse EndListDominantLanguageDetectionJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListEndpoints /// /// Gets a list of all existing endpoints that you've created. For information about endpoints, /// see Managing /// endpoints. /// /// Container for the necessary parameters to execute the ListEndpoints service method. /// /// The response from the ListEndpoints service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListEndpoints Operation public virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListEndpoints operation. /// /// /// Container for the necessary parameters to execute the ListEndpoints operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEndpoints /// operation. /// REST API Reference for ListEndpoints Operation public virtual IAsyncResult BeginListEndpoints(ListEndpointsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListEndpoints operation. /// /// /// The IAsyncResult returned by the call to BeginListEndpoints. /// /// Returns a ListEndpointsResult from Comprehend. /// REST API Reference for ListEndpoints Operation public virtual ListEndpointsResponse EndListEndpoints(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListEntitiesDetectionJobs /// /// Gets a list of the entity detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListEntitiesDetectionJobs service method. /// /// The response from the ListEntitiesDetectionJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListEntitiesDetectionJobs Operation public virtual ListEntitiesDetectionJobsResponse ListEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntitiesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntitiesDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListEntitiesDetectionJobs operation. /// /// /// Container for the necessary parameters to execute the ListEntitiesDetectionJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEntitiesDetectionJobs /// operation. /// REST API Reference for ListEntitiesDetectionJobs Operation public virtual IAsyncResult BeginListEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntitiesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntitiesDetectionJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListEntitiesDetectionJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListEntitiesDetectionJobs. /// /// Returns a ListEntitiesDetectionJobsResult from Comprehend. /// REST API Reference for ListEntitiesDetectionJobs Operation public virtual ListEntitiesDetectionJobsResponse EndListEntitiesDetectionJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListEntityRecognizers /// /// 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. /// /// /// Container for the necessary parameters to execute the ListEntityRecognizers service method. /// /// The response from the ListEntityRecognizers service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListEntityRecognizers Operation public virtual ListEntityRecognizersResponse ListEntityRecognizers(ListEntityRecognizersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntityRecognizersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntityRecognizersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListEntityRecognizers operation. /// /// /// Container for the necessary parameters to execute the ListEntityRecognizers operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEntityRecognizers /// operation. /// REST API Reference for ListEntityRecognizers Operation public virtual IAsyncResult BeginListEntityRecognizers(ListEntityRecognizersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntityRecognizersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntityRecognizersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListEntityRecognizers operation. /// /// /// The IAsyncResult returned by the call to BeginListEntityRecognizers. /// /// Returns a ListEntityRecognizersResult from Comprehend. /// REST API Reference for ListEntityRecognizers Operation public virtual ListEntityRecognizersResponse EndListEntityRecognizers(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListEntityRecognizerSummaries /// /// Gets a list of summaries for the entity recognizers that you have created. /// /// Container for the necessary parameters to execute the ListEntityRecognizerSummaries service method. /// /// The response from the ListEntityRecognizerSummaries service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListEntityRecognizerSummaries Operation public virtual ListEntityRecognizerSummariesResponse ListEntityRecognizerSummaries(ListEntityRecognizerSummariesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntityRecognizerSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntityRecognizerSummariesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListEntityRecognizerSummaries operation. /// /// /// Container for the necessary parameters to execute the ListEntityRecognizerSummaries operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEntityRecognizerSummaries /// operation. /// REST API Reference for ListEntityRecognizerSummaries Operation public virtual IAsyncResult BeginListEntityRecognizerSummaries(ListEntityRecognizerSummariesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntityRecognizerSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntityRecognizerSummariesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListEntityRecognizerSummaries operation. /// /// /// The IAsyncResult returned by the call to BeginListEntityRecognizerSummaries. /// /// Returns a ListEntityRecognizerSummariesResult from Comprehend. /// REST API Reference for ListEntityRecognizerSummaries Operation public virtual ListEntityRecognizerSummariesResponse EndListEntityRecognizerSummaries(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListEventsDetectionJobs /// /// Gets a list of the events detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListEventsDetectionJobs service method. /// /// The response from the ListEventsDetectionJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListEventsDetectionJobs Operation public virtual ListEventsDetectionJobsResponse ListEventsDetectionJobs(ListEventsDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventsDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventsDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListEventsDetectionJobs operation. /// /// /// Container for the necessary parameters to execute the ListEventsDetectionJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEventsDetectionJobs /// operation. /// REST API Reference for ListEventsDetectionJobs Operation public virtual IAsyncResult BeginListEventsDetectionJobs(ListEventsDetectionJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventsDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventsDetectionJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListEventsDetectionJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListEventsDetectionJobs. /// /// Returns a ListEventsDetectionJobsResult from Comprehend. /// REST API Reference for ListEventsDetectionJobs Operation public virtual ListEventsDetectionJobsResponse EndListEventsDetectionJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListFlywheelIterationHistory /// /// Information about the history of a flywheel iteration. For more information about /// flywheels, see /// Flywheel overview in the Amazon Comprehend Developer Guide. /// /// Container for the necessary parameters to execute the ListFlywheelIterationHistory service method. /// /// The response from the ListFlywheelIterationHistory service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListFlywheelIterationHistory Operation public virtual ListFlywheelIterationHistoryResponse ListFlywheelIterationHistory(ListFlywheelIterationHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlywheelIterationHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlywheelIterationHistoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListFlywheelIterationHistory operation. /// /// /// Container for the necessary parameters to execute the ListFlywheelIterationHistory operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFlywheelIterationHistory /// operation. /// REST API Reference for ListFlywheelIterationHistory Operation public virtual IAsyncResult BeginListFlywheelIterationHistory(ListFlywheelIterationHistoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlywheelIterationHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlywheelIterationHistoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListFlywheelIterationHistory operation. /// /// /// The IAsyncResult returned by the call to BeginListFlywheelIterationHistory. /// /// Returns a ListFlywheelIterationHistoryResult from Comprehend. /// REST API Reference for ListFlywheelIterationHistory Operation public virtual ListFlywheelIterationHistoryResponse EndListFlywheelIterationHistory(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListFlywheels /// /// Gets a list of the flywheels that you have created. /// /// Container for the necessary parameters to execute the ListFlywheels service method. /// /// The response from the ListFlywheels service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListFlywheels Operation public virtual ListFlywheelsResponse ListFlywheels(ListFlywheelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlywheelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlywheelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListFlywheels operation. /// /// /// Container for the necessary parameters to execute the ListFlywheels operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFlywheels /// operation. /// REST API Reference for ListFlywheels Operation public virtual IAsyncResult BeginListFlywheels(ListFlywheelsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlywheelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlywheelsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListFlywheels operation. /// /// /// The IAsyncResult returned by the call to BeginListFlywheels. /// /// Returns a ListFlywheelsResult from Comprehend. /// REST API Reference for ListFlywheels Operation public virtual ListFlywheelsResponse EndListFlywheels(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListKeyPhrasesDetectionJobs /// /// Get a list of key phrase detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListKeyPhrasesDetectionJobs service method. /// /// The response from the ListKeyPhrasesDetectionJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListKeyPhrasesDetectionJobs Operation public virtual ListKeyPhrasesDetectionJobsResponse ListKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListKeyPhrasesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListKeyPhrasesDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListKeyPhrasesDetectionJobs operation. /// /// /// Container for the necessary parameters to execute the ListKeyPhrasesDetectionJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListKeyPhrasesDetectionJobs /// operation. /// REST API Reference for ListKeyPhrasesDetectionJobs Operation public virtual IAsyncResult BeginListKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListKeyPhrasesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListKeyPhrasesDetectionJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListKeyPhrasesDetectionJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListKeyPhrasesDetectionJobs. /// /// Returns a ListKeyPhrasesDetectionJobsResult from Comprehend. /// REST API Reference for ListKeyPhrasesDetectionJobs Operation public virtual ListKeyPhrasesDetectionJobsResponse EndListKeyPhrasesDetectionJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListPiiEntitiesDetectionJobs /// /// Gets a list of the PII entity detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListPiiEntitiesDetectionJobs service method. /// /// The response from the ListPiiEntitiesDetectionJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListPiiEntitiesDetectionJobs Operation public virtual ListPiiEntitiesDetectionJobsResponse ListPiiEntitiesDetectionJobs(ListPiiEntitiesDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPiiEntitiesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPiiEntitiesDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListPiiEntitiesDetectionJobs operation. /// /// /// Container for the necessary parameters to execute the ListPiiEntitiesDetectionJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPiiEntitiesDetectionJobs /// operation. /// REST API Reference for ListPiiEntitiesDetectionJobs Operation public virtual IAsyncResult BeginListPiiEntitiesDetectionJobs(ListPiiEntitiesDetectionJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPiiEntitiesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPiiEntitiesDetectionJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListPiiEntitiesDetectionJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListPiiEntitiesDetectionJobs. /// /// Returns a ListPiiEntitiesDetectionJobsResult from Comprehend. /// REST API Reference for ListPiiEntitiesDetectionJobs Operation public virtual ListPiiEntitiesDetectionJobsResponse EndListPiiEntitiesDetectionJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListSentimentDetectionJobs /// /// Gets a list of sentiment detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListSentimentDetectionJobs service method. /// /// The response from the ListSentimentDetectionJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListSentimentDetectionJobs Operation public virtual ListSentimentDetectionJobsResponse ListSentimentDetectionJobs(ListSentimentDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSentimentDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSentimentDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListSentimentDetectionJobs operation. /// /// /// Container for the necessary parameters to execute the ListSentimentDetectionJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSentimentDetectionJobs /// operation. /// REST API Reference for ListSentimentDetectionJobs Operation public virtual IAsyncResult BeginListSentimentDetectionJobs(ListSentimentDetectionJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSentimentDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSentimentDetectionJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListSentimentDetectionJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListSentimentDetectionJobs. /// /// Returns a ListSentimentDetectionJobsResult from Comprehend. /// REST API Reference for ListSentimentDetectionJobs Operation public virtual ListSentimentDetectionJobsResponse EndListSentimentDetectionJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// Lists all tags associated with a given Amazon Comprehend resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from Comprehend. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTargetedSentimentDetectionJobs /// /// Gets a list of targeted sentiment detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListTargetedSentimentDetectionJobs service method. /// /// The response from the ListTargetedSentimentDetectionJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListTargetedSentimentDetectionJobs Operation public virtual ListTargetedSentimentDetectionJobsResponse ListTargetedSentimentDetectionJobs(ListTargetedSentimentDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetedSentimentDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetedSentimentDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTargetedSentimentDetectionJobs operation. /// /// /// Container for the necessary parameters to execute the ListTargetedSentimentDetectionJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTargetedSentimentDetectionJobs /// operation. /// REST API Reference for ListTargetedSentimentDetectionJobs Operation public virtual IAsyncResult BeginListTargetedSentimentDetectionJobs(ListTargetedSentimentDetectionJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetedSentimentDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetedSentimentDetectionJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTargetedSentimentDetectionJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListTargetedSentimentDetectionJobs. /// /// Returns a ListTargetedSentimentDetectionJobsResult from Comprehend. /// REST API Reference for ListTargetedSentimentDetectionJobs Operation public virtual ListTargetedSentimentDetectionJobsResponse EndListTargetedSentimentDetectionJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTopicsDetectionJobs /// /// Gets a list of the topic detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListTopicsDetectionJobs service method. /// /// The response from the ListTopicsDetectionJobs service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The filter specified for the operation is invalid. Specify a different filter. /// /// /// The request is invalid. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for ListTopicsDetectionJobs Operation public virtual ListTopicsDetectionJobsResponse ListTopicsDetectionJobs(ListTopicsDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTopicsDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTopicsDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTopicsDetectionJobs operation. /// /// /// Container for the necessary parameters to execute the ListTopicsDetectionJobs operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTopicsDetectionJobs /// operation. /// REST API Reference for ListTopicsDetectionJobs Operation public virtual IAsyncResult BeginListTopicsDetectionJobs(ListTopicsDetectionJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTopicsDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTopicsDetectionJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTopicsDetectionJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListTopicsDetectionJobs. /// /// Returns a ListTopicsDetectionJobsResult from Comprehend. /// REST API Reference for ListTopicsDetectionJobs Operation public virtual ListTopicsDetectionJobsResponse EndListTopicsDetectionJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutResourcePolicy /// /// 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. /// /// Container for the necessary parameters to execute the PutResourcePolicy service method. /// /// The response from the PutResourcePolicy service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// REST API Reference for PutResourcePolicy Operation public virtual PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutResourcePolicy operation. /// /// /// Container for the necessary parameters to execute the PutResourcePolicy operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutResourcePolicy /// operation. /// REST API Reference for PutResourcePolicy Operation public virtual IAsyncResult BeginPutResourcePolicy(PutResourcePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutResourcePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginPutResourcePolicy. /// /// Returns a PutResourcePolicyResult from Comprehend. /// REST API Reference for PutResourcePolicy Operation public virtual PutResourcePolicyResponse EndPutResourcePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartDocumentClassificationJob /// /// Starts an asynchronous document classification job. Use the DescribeDocumentClassificationJob /// operation to track the progress of the job. /// /// Container for the necessary parameters to execute the StartDocumentClassificationJob service method. /// /// The response from the StartDocumentClassificationJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartDocumentClassificationJob Operation public virtual StartDocumentClassificationJobResponse StartDocumentClassificationJob(StartDocumentClassificationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartDocumentClassificationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDocumentClassificationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartDocumentClassificationJob operation. /// /// /// Container for the necessary parameters to execute the StartDocumentClassificationJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartDocumentClassificationJob /// operation. /// REST API Reference for StartDocumentClassificationJob Operation public virtual IAsyncResult BeginStartDocumentClassificationJob(StartDocumentClassificationJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartDocumentClassificationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDocumentClassificationJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartDocumentClassificationJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartDocumentClassificationJob. /// /// Returns a StartDocumentClassificationJobResult from Comprehend. /// REST API Reference for StartDocumentClassificationJob Operation public virtual StartDocumentClassificationJobResponse EndStartDocumentClassificationJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartDominantLanguageDetectionJob /// /// Starts an asynchronous dominant language detection job for a collection of documents. /// Use the operation to track the status of a job. /// /// Container for the necessary parameters to execute the StartDominantLanguageDetectionJob service method. /// /// The response from the StartDominantLanguageDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartDominantLanguageDetectionJob Operation public virtual StartDominantLanguageDetectionJobResponse StartDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDominantLanguageDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartDominantLanguageDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StartDominantLanguageDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartDominantLanguageDetectionJob /// operation. /// REST API Reference for StartDominantLanguageDetectionJob Operation public virtual IAsyncResult BeginStartDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDominantLanguageDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartDominantLanguageDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartDominantLanguageDetectionJob. /// /// Returns a StartDominantLanguageDetectionJobResult from Comprehend. /// REST API Reference for StartDominantLanguageDetectionJob Operation public virtual StartDominantLanguageDetectionJobResponse EndStartDominantLanguageDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartEntitiesDetectionJob /// /// 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. /// /// /// Container for the necessary parameters to execute the StartEntitiesDetectionJob service method. /// /// The response from the StartEntitiesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartEntitiesDetectionJob Operation public virtual StartEntitiesDetectionJobResponse StartEntitiesDetectionJob(StartEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartEntitiesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StartEntitiesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartEntitiesDetectionJob /// operation. /// REST API Reference for StartEntitiesDetectionJob Operation public virtual IAsyncResult BeginStartEntitiesDetectionJob(StartEntitiesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartEntitiesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartEntitiesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartEntitiesDetectionJob. /// /// Returns a StartEntitiesDetectionJobResult from Comprehend. /// REST API Reference for StartEntitiesDetectionJob Operation public virtual StartEntitiesDetectionJobResponse EndStartEntitiesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartEventsDetectionJob /// /// Starts an asynchronous event detection job for a collection of documents. /// /// Container for the necessary parameters to execute the StartEventsDetectionJob service method. /// /// The response from the StartEventsDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartEventsDetectionJob Operation public virtual StartEventsDetectionJobResponse StartEventsDetectionJob(StartEventsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartEventsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartEventsDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StartEventsDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartEventsDetectionJob /// operation. /// REST API Reference for StartEventsDetectionJob Operation public virtual IAsyncResult BeginStartEventsDetectionJob(StartEventsDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartEventsDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartEventsDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartEventsDetectionJob. /// /// Returns a StartEventsDetectionJobResult from Comprehend. /// REST API Reference for StartEventsDetectionJob Operation public virtual StartEventsDetectionJobResponse EndStartEventsDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartFlywheelIteration /// /// 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. /// /// Container for the necessary parameters to execute the StartFlywheelIteration service method. /// /// The response from the StartFlywheelIteration service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for StartFlywheelIteration Operation public virtual StartFlywheelIterationResponse StartFlywheelIteration(StartFlywheelIterationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlywheelIterationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlywheelIterationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartFlywheelIteration operation. /// /// /// Container for the necessary parameters to execute the StartFlywheelIteration operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartFlywheelIteration /// operation. /// REST API Reference for StartFlywheelIteration Operation public virtual IAsyncResult BeginStartFlywheelIteration(StartFlywheelIterationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlywheelIterationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlywheelIterationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartFlywheelIteration operation. /// /// /// The IAsyncResult returned by the call to BeginStartFlywheelIteration. /// /// Returns a StartFlywheelIterationResult from Comprehend. /// REST API Reference for StartFlywheelIteration Operation public virtual StartFlywheelIterationResponse EndStartFlywheelIteration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartKeyPhrasesDetectionJob /// /// Starts an asynchronous key phrase detection job for a collection of documents. Use /// the operation to track the status of a job. /// /// Container for the necessary parameters to execute the StartKeyPhrasesDetectionJob service method. /// /// The response from the StartKeyPhrasesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartKeyPhrasesDetectionJob Operation public virtual StartKeyPhrasesDetectionJobResponse StartKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartKeyPhrasesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StartKeyPhrasesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartKeyPhrasesDetectionJob /// operation. /// REST API Reference for StartKeyPhrasesDetectionJob Operation public virtual IAsyncResult BeginStartKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartKeyPhrasesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartKeyPhrasesDetectionJob. /// /// Returns a StartKeyPhrasesDetectionJobResult from Comprehend. /// REST API Reference for StartKeyPhrasesDetectionJob Operation public virtual StartKeyPhrasesDetectionJobResponse EndStartKeyPhrasesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartPiiEntitiesDetectionJob /// /// Starts an asynchronous PII entity detection job for a collection of documents. /// /// Container for the necessary parameters to execute the StartPiiEntitiesDetectionJob service method. /// /// The response from the StartPiiEntitiesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartPiiEntitiesDetectionJob Operation public virtual StartPiiEntitiesDetectionJobResponse StartPiiEntitiesDetectionJob(StartPiiEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartPiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartPiiEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartPiiEntitiesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StartPiiEntitiesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartPiiEntitiesDetectionJob /// operation. /// REST API Reference for StartPiiEntitiesDetectionJob Operation public virtual IAsyncResult BeginStartPiiEntitiesDetectionJob(StartPiiEntitiesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartPiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartPiiEntitiesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartPiiEntitiesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartPiiEntitiesDetectionJob. /// /// Returns a StartPiiEntitiesDetectionJobResult from Comprehend. /// REST API Reference for StartPiiEntitiesDetectionJob Operation public virtual StartPiiEntitiesDetectionJobResponse EndStartPiiEntitiesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartSentimentDetectionJob /// /// Starts an asynchronous sentiment detection job for a collection of documents. Use /// the operation to track the status of a job. /// /// Container for the necessary parameters to execute the StartSentimentDetectionJob service method. /// /// The response from the StartSentimentDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartSentimentDetectionJob Operation public virtual StartSentimentDetectionJobResponse StartSentimentDetectionJob(StartSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartSentimentDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StartSentimentDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartSentimentDetectionJob /// operation. /// REST API Reference for StartSentimentDetectionJob Operation public virtual IAsyncResult BeginStartSentimentDetectionJob(StartSentimentDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSentimentDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartSentimentDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartSentimentDetectionJob. /// /// Returns a StartSentimentDetectionJobResult from Comprehend. /// REST API Reference for StartSentimentDetectionJob Operation public virtual StartSentimentDetectionJobResponse EndStartSentimentDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartTargetedSentimentDetectionJob /// /// Starts an asynchronous targeted sentiment detection job for a collection of documents. /// Use the DescribeTargetedSentimentDetectionJob operation to track the /// status of a job. /// /// Container for the necessary parameters to execute the StartTargetedSentimentDetectionJob service method. /// /// The response from the StartTargetedSentimentDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartTargetedSentimentDetectionJob Operation public virtual StartTargetedSentimentDetectionJobResponse StartTargetedSentimentDetectionJob(StartTargetedSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartTargetedSentimentDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StartTargetedSentimentDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartTargetedSentimentDetectionJob /// operation. /// REST API Reference for StartTargetedSentimentDetectionJob Operation public virtual IAsyncResult BeginStartTargetedSentimentDetectionJob(StartTargetedSentimentDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartTargetedSentimentDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartTargetedSentimentDetectionJob. /// /// Returns a StartTargetedSentimentDetectionJobResult from Comprehend. /// REST API Reference for StartTargetedSentimentDetectionJob Operation public virtual StartTargetedSentimentDetectionJobResponse EndStartTargetedSentimentDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartTopicsDetectionJob /// /// Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob /// operation to track the status of a job. /// /// Container for the necessary parameters to execute the StartTopicsDetectionJob service method. /// /// The response from the StartTopicsDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for StartTopicsDetectionJob Operation public virtual StartTopicsDetectionJobResponse StartTopicsDetectionJob(StartTopicsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartTopicsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTopicsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartTopicsDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StartTopicsDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartTopicsDetectionJob /// operation. /// REST API Reference for StartTopicsDetectionJob Operation public virtual IAsyncResult BeginStartTopicsDetectionJob(StartTopicsDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartTopicsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTopicsDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartTopicsDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStartTopicsDetectionJob. /// /// Returns a StartTopicsDetectionJobResult from Comprehend. /// REST API Reference for StartTopicsDetectionJob Operation public virtual StartTopicsDetectionJobResponse EndStartTopicsDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopDominantLanguageDetectionJob /// /// 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. /// /// /// Container for the necessary parameters to execute the StopDominantLanguageDetectionJob service method. /// /// The response from the StopDominantLanguageDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// REST API Reference for StopDominantLanguageDetectionJob Operation public virtual StopDominantLanguageDetectionJobResponse StopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopDominantLanguageDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopDominantLanguageDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StopDominantLanguageDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopDominantLanguageDetectionJob /// operation. /// REST API Reference for StopDominantLanguageDetectionJob Operation public virtual IAsyncResult BeginStopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopDominantLanguageDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopDominantLanguageDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStopDominantLanguageDetectionJob. /// /// Returns a StopDominantLanguageDetectionJobResult from Comprehend. /// REST API Reference for StopDominantLanguageDetectionJob Operation public virtual StopDominantLanguageDetectionJobResponse EndStopDominantLanguageDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopEntitiesDetectionJob /// /// 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. /// /// /// Container for the necessary parameters to execute the StopEntitiesDetectionJob service method. /// /// The response from the StopEntitiesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// REST API Reference for StopEntitiesDetectionJob Operation public virtual StopEntitiesDetectionJobResponse StopEntitiesDetectionJob(StopEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopEntitiesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StopEntitiesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopEntitiesDetectionJob /// operation. /// REST API Reference for StopEntitiesDetectionJob Operation public virtual IAsyncResult BeginStopEntitiesDetectionJob(StopEntitiesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopEntitiesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopEntitiesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStopEntitiesDetectionJob. /// /// Returns a StopEntitiesDetectionJobResult from Comprehend. /// REST API Reference for StopEntitiesDetectionJob Operation public virtual StopEntitiesDetectionJobResponse EndStopEntitiesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopEventsDetectionJob /// /// Stops an events detection job in progress. /// /// Container for the necessary parameters to execute the StopEventsDetectionJob service method. /// /// The response from the StopEventsDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// REST API Reference for StopEventsDetectionJob Operation public virtual StopEventsDetectionJobResponse StopEventsDetectionJob(StopEventsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopEventsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopEventsDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StopEventsDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopEventsDetectionJob /// operation. /// REST API Reference for StopEventsDetectionJob Operation public virtual IAsyncResult BeginStopEventsDetectionJob(StopEventsDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopEventsDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopEventsDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStopEventsDetectionJob. /// /// Returns a StopEventsDetectionJobResult from Comprehend. /// REST API Reference for StopEventsDetectionJob Operation public virtual StopEventsDetectionJobResponse EndStopEventsDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopKeyPhrasesDetectionJob /// /// 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. /// /// /// Container for the necessary parameters to execute the StopKeyPhrasesDetectionJob service method. /// /// The response from the StopKeyPhrasesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// REST API Reference for StopKeyPhrasesDetectionJob Operation public virtual StopKeyPhrasesDetectionJobResponse StopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopKeyPhrasesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StopKeyPhrasesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopKeyPhrasesDetectionJob /// operation. /// REST API Reference for StopKeyPhrasesDetectionJob Operation public virtual IAsyncResult BeginStopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopKeyPhrasesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStopKeyPhrasesDetectionJob. /// /// Returns a StopKeyPhrasesDetectionJobResult from Comprehend. /// REST API Reference for StopKeyPhrasesDetectionJob Operation public virtual StopKeyPhrasesDetectionJobResponse EndStopKeyPhrasesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopPiiEntitiesDetectionJob /// /// Stops a PII entities detection job in progress. /// /// Container for the necessary parameters to execute the StopPiiEntitiesDetectionJob service method. /// /// The response from the StopPiiEntitiesDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// REST API Reference for StopPiiEntitiesDetectionJob Operation public virtual StopPiiEntitiesDetectionJobResponse StopPiiEntitiesDetectionJob(StopPiiEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopPiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopPiiEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopPiiEntitiesDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StopPiiEntitiesDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopPiiEntitiesDetectionJob /// operation. /// REST API Reference for StopPiiEntitiesDetectionJob Operation public virtual IAsyncResult BeginStopPiiEntitiesDetectionJob(StopPiiEntitiesDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopPiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopPiiEntitiesDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopPiiEntitiesDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStopPiiEntitiesDetectionJob. /// /// Returns a StopPiiEntitiesDetectionJobResult from Comprehend. /// REST API Reference for StopPiiEntitiesDetectionJob Operation public virtual StopPiiEntitiesDetectionJobResponse EndStopPiiEntitiesDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopSentimentDetectionJob /// /// 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. /// /// /// Container for the necessary parameters to execute the StopSentimentDetectionJob service method. /// /// The response from the StopSentimentDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// REST API Reference for StopSentimentDetectionJob Operation public virtual StopSentimentDetectionJobResponse StopSentimentDetectionJob(StopSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopSentimentDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StopSentimentDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopSentimentDetectionJob /// operation. /// REST API Reference for StopSentimentDetectionJob Operation public virtual IAsyncResult BeginStopSentimentDetectionJob(StopSentimentDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopSentimentDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopSentimentDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStopSentimentDetectionJob. /// /// Returns a StopSentimentDetectionJobResult from Comprehend. /// REST API Reference for StopSentimentDetectionJob Operation public virtual StopSentimentDetectionJobResponse EndStopSentimentDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopTargetedSentimentDetectionJob /// /// 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. /// /// /// Container for the necessary parameters to execute the StopTargetedSentimentDetectionJob service method. /// /// The response from the StopTargetedSentimentDetectionJob service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified job was not found. Check the job ID and try again. /// /// REST API Reference for StopTargetedSentimentDetectionJob Operation public virtual StopTargetedSentimentDetectionJobResponse StopTargetedSentimentDetectionJob(StopTargetedSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopTargetedSentimentDetectionJob operation. /// /// /// Container for the necessary parameters to execute the StopTargetedSentimentDetectionJob operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopTargetedSentimentDetectionJob /// operation. /// REST API Reference for StopTargetedSentimentDetectionJob Operation public virtual IAsyncResult BeginStopTargetedSentimentDetectionJob(StopTargetedSentimentDetectionJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopTargetedSentimentDetectionJob operation. /// /// /// The IAsyncResult returned by the call to BeginStopTargetedSentimentDetectionJob. /// /// Returns a StopTargetedSentimentDetectionJobResult from Comprehend. /// REST API Reference for StopTargetedSentimentDetectionJob Operation public virtual StopTargetedSentimentDetectionJobResponse EndStopTargetedSentimentDetectionJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopTrainingDocumentClassifier /// /// 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. /// /// /// Container for the necessary parameters to execute the StopTrainingDocumentClassifier service method. /// /// The response from the StopTrainingDocumentClassifier service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for StopTrainingDocumentClassifier Operation public virtual StopTrainingDocumentClassifierResponse StopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopTrainingDocumentClassifier operation. /// /// /// Container for the necessary parameters to execute the StopTrainingDocumentClassifier operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopTrainingDocumentClassifier /// operation. /// REST API Reference for StopTrainingDocumentClassifier Operation public virtual IAsyncResult BeginStopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopTrainingDocumentClassifier operation. /// /// /// The IAsyncResult returned by the call to BeginStopTrainingDocumentClassifier. /// /// Returns a StopTrainingDocumentClassifierResult from Comprehend. /// REST API Reference for StopTrainingDocumentClassifier Operation public virtual StopTrainingDocumentClassifierResponse EndStopTrainingDocumentClassifier(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopTrainingEntityRecognizer /// /// 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. /// /// /// Container for the necessary parameters to execute the StopTrainingEntityRecognizer service method. /// /// The response from the StopTrainingEntityRecognizer service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for StopTrainingEntityRecognizer Operation public virtual StopTrainingEntityRecognizerResponse StopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopTrainingEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTrainingEntityRecognizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopTrainingEntityRecognizer operation. /// /// /// Container for the necessary parameters to execute the StopTrainingEntityRecognizer operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopTrainingEntityRecognizer /// operation. /// REST API Reference for StopTrainingEntityRecognizer Operation public virtual IAsyncResult BeginStopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopTrainingEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTrainingEntityRecognizerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopTrainingEntityRecognizer operation. /// /// /// The IAsyncResult returned by the call to BeginStopTrainingEntityRecognizer. /// /// Returns a StopTrainingEntityRecognizerResult from Comprehend. /// REST API Reference for StopTrainingEntityRecognizer Operation public virtual StopTrainingEntityRecognizerResponse EndStopTrainingEntityRecognizer(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// 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. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by Comprehend. /// /// Concurrent modification of the tags associated with an Amazon Comprehend resource /// is not supported. /// /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The request contains more tags than can be associated with a resource (50 tags per /// resource). The maximum number of tags includes both existing tags and those included /// in your current request. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from Comprehend. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Removes a specific tag associated with an Amazon Comprehend resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by Comprehend. /// /// Concurrent modification of the tags associated with an Amazon Comprehend resource /// is not supported. /// /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The request contains more tag keys than can be associated with a resource (50 tag /// keys per resource). /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from Comprehend. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateEndpoint /// /// Updates information about the specified endpoint. For information about endpoints, /// see Managing /// endpoints. /// /// Container for the necessary parameters to execute the UpdateEndpoint service method. /// /// The response from the UpdateEndpoint service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The specified resource name is already in use. Use a different name and try your request /// again. /// /// /// The maximum number of resources per account has been exceeded. Review the resources, /// and then try your request again. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The specified resource is not available. Check the resource and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for UpdateEndpoint Operation public virtual UpdateEndpointResponse UpdateEndpoint(UpdateEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateEndpoint operation. /// /// /// Container for the necessary parameters to execute the UpdateEndpoint operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateEndpoint /// operation. /// REST API Reference for UpdateEndpoint Operation public virtual IAsyncResult BeginUpdateEndpoint(UpdateEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateEndpoint. /// /// Returns a UpdateEndpointResult from Comprehend. /// REST API Reference for UpdateEndpoint Operation public virtual UpdateEndpointResponse EndUpdateEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateFlywheel /// /// Update the configuration information for an existing flywheel. /// /// Container for the necessary parameters to execute the UpdateFlywheel service method. /// /// The response from the UpdateFlywheel service method, as returned by Comprehend. /// /// An internal server error occurred. Retry your request. /// /// /// The request is invalid. /// /// /// The KMS customer managed key (CMK) entered cannot be validated. Verify the key and /// re-enter it. /// /// /// The specified resource ARN was not found. Check the ARN and try your request again. /// /// /// The number of requests exceeds the limit. Resubmit your request later. /// /// REST API Reference for UpdateFlywheel Operation public virtual UpdateFlywheelResponse UpdateFlywheel(UpdateFlywheelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlywheelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateFlywheel operation. /// /// /// Container for the necessary parameters to execute the UpdateFlywheel operation on AmazonComprehendClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFlywheel /// operation. /// REST API Reference for UpdateFlywheel Operation public virtual IAsyncResult BeginUpdateFlywheel(UpdateFlywheelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlywheelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateFlywheel operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateFlywheel. /// /// Returns a UpdateFlywheelResult from Comprehend. /// REST API Reference for UpdateFlywheel Operation public virtual UpdateFlywheelResponse EndUpdateFlywheel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }