/* * 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.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; 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(); #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 #if 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 Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. 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 internal virtual BatchDetectDominantLanguageResponse BatchDetectDominantLanguage(BatchDetectDominantLanguageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectDominantLanguageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectDominantLanguageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task BatchDetectDominantLanguageAsync(BatchDetectDominantLanguageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectDominantLanguageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectDominantLanguageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchDetectEntities internal virtual BatchDetectEntitiesResponse BatchDetectEntities(BatchDetectEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task BatchDetectEntitiesAsync(BatchDetectEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectEntitiesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchDetectKeyPhrases internal virtual BatchDetectKeyPhrasesResponse BatchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectKeyPhrasesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectKeyPhrasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Detects the key noun phrases found in a batch of documents. /// /// Container for the necessary parameters to execute the BatchDetectKeyPhrases service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task BatchDetectKeyPhrasesAsync(BatchDetectKeyPhrasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectKeyPhrasesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectKeyPhrasesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchDetectSentiment internal virtual BatchDetectSentimentResponse BatchDetectSentiment(BatchDetectSentimentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectSentimentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task BatchDetectSentimentAsync(BatchDetectSentimentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectSentimentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchDetectSyntax internal virtual BatchDetectSyntaxResponse BatchDetectSyntax(BatchDetectSyntaxRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectSyntaxRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectSyntaxResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task BatchDetectSyntaxAsync(BatchDetectSyntaxRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectSyntaxRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectSyntaxResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchDetectTargetedSentiment internal virtual BatchDetectTargetedSentimentResponse BatchDetectTargetedSentiment(BatchDetectTargetedSentimentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectTargetedSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectTargetedSentimentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task BatchDetectTargetedSentimentAsync(BatchDetectTargetedSentimentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDetectTargetedSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDetectTargetedSentimentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ClassifyDocument internal virtual ClassifyDocumentResponse ClassifyDocument(ClassifyDocumentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ClassifyDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = ClassifyDocumentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ClassifyDocumentAsync(ClassifyDocumentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ClassifyDocumentRequestMarshaller.Instance; options.ResponseUnmarshaller = ClassifyDocumentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ContainsPiiEntities internal virtual ContainsPiiEntitiesResponse ContainsPiiEntities(ContainsPiiEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ContainsPiiEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ContainsPiiEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ContainsPiiEntitiesAsync(ContainsPiiEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ContainsPiiEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ContainsPiiEntitiesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDataset internal virtual CreateDatasetResponse CreateDataset(CreateDatasetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDatasetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateDatasetAsync(CreateDatasetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDatasetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDocumentClassifier internal virtual CreateDocumentClassifierResponse CreateDocumentClassifier(CreateDocumentClassifierRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDocumentClassifierResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateDocumentClassifierAsync(CreateDocumentClassifierRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDocumentClassifierResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateEndpoint internal virtual CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateEndpointAsync(CreateEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateEntityRecognizer internal virtual CreateEntityRecognizerResponse CreateEntityRecognizer(CreateEntityRecognizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEntityRecognizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateEntityRecognizerAsync(CreateEntityRecognizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEntityRecognizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateFlywheel internal virtual CreateFlywheelResponse CreateFlywheel(CreateFlywheelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlywheelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task CreateFlywheelAsync(CreateFlywheelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFlywheelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDocumentClassifier internal virtual DeleteDocumentClassifierResponse DeleteDocumentClassifier(DeleteDocumentClassifierRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentClassifierResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteDocumentClassifierAsync(DeleteDocumentClassifierRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDocumentClassifierResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteEndpoint internal virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteEndpointAsync(DeleteEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteEntityRecognizer internal virtual DeleteEntityRecognizerResponse DeleteEntityRecognizer(DeleteEntityRecognizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEntityRecognizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteEntityRecognizerAsync(DeleteEntityRecognizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEntityRecognizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteFlywheel internal virtual DeleteFlywheelResponse DeleteFlywheel(DeleteFlywheelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlywheelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteFlywheelAsync(DeleteFlywheelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFlywheelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteResourcePolicy internal virtual DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a resource-based policy that is attached to a custom model. /// /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DeleteResourcePolicyAsync(DeleteResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDataset internal virtual DescribeDatasetResponse DescribeDataset(DescribeDatasetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDatasetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeDatasetAsync(DescribeDatasetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDatasetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDocumentClassificationJob internal virtual DescribeDocumentClassificationJobResponse DescribeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentClassificationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentClassificationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeDocumentClassificationJobAsync(DescribeDocumentClassificationJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentClassificationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentClassificationJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDocumentClassifier internal virtual DescribeDocumentClassifierResponse DescribeDocumentClassifier(DescribeDocumentClassifierRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentClassifierResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the properties associated with a document classifier. /// /// Container for the necessary parameters to execute the DescribeDocumentClassifier service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeDocumentClassifierAsync(DescribeDocumentClassifierRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDocumentClassifierResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDominantLanguageDetectionJob internal virtual DescribeDominantLanguageDetectionJobResponse DescribeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDominantLanguageDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeDominantLanguageDetectionJobAsync(DescribeDominantLanguageDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDominantLanguageDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEndpoint internal virtual DescribeEndpointResponse DescribeEndpoint(DescribeEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeEndpointAsync(DescribeEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEntitiesDetectionJob internal virtual DescribeEntitiesDetectionJobResponse DescribeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeEntitiesDetectionJobAsync(DescribeEntitiesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntitiesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEntityRecognizer internal virtual DescribeEntityRecognizerResponse DescribeEntityRecognizer(DescribeEntityRecognizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntityRecognizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeEntityRecognizerAsync(DescribeEntityRecognizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEntityRecognizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEventsDetectionJob internal virtual DescribeEventsDetectionJobResponse DescribeEventsDetectionJob(DescribeEventsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEventsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the status and details of an events detection job. /// /// Container for the necessary parameters to execute the DescribeEventsDetectionJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeEventsDetectionJobAsync(DescribeEventsDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEventsDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeFlywheel internal virtual DescribeFlywheelResponse DescribeFlywheel(DescribeFlywheelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlywheelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeFlywheelAsync(DescribeFlywheelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlywheelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeFlywheelIteration internal virtual DescribeFlywheelIterationResponse DescribeFlywheelIteration(DescribeFlywheelIterationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlywheelIterationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlywheelIterationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeFlywheelIterationAsync(DescribeFlywheelIterationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFlywheelIterationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFlywheelIterationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeKeyPhrasesDetectionJob internal virtual DescribeKeyPhrasesDetectionJobResponse DescribeKeyPhrasesDetectionJob(DescribeKeyPhrasesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeKeyPhrasesDetectionJobAsync(DescribeKeyPhrasesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribePiiEntitiesDetectionJob internal virtual DescribePiiEntitiesDetectionJobResponse DescribePiiEntitiesDetectionJob(DescribePiiEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePiiEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribePiiEntitiesDetectionJobAsync(DescribePiiEntitiesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePiiEntitiesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeResourcePolicy internal virtual DescribeResourcePolicyResponse DescribeResourcePolicy(DescribeResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeResourcePolicyAsync(DescribeResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeSentimentDetectionJob internal virtual DescribeSentimentDetectionJobResponse DescribeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeSentimentDetectionJobAsync(DescribeSentimentDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSentimentDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeTargetedSentimentDetectionJob internal virtual DescribeTargetedSentimentDetectionJobResponse DescribeTargetedSentimentDetectionJob(DescribeTargetedSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeTargetedSentimentDetectionJobAsync(DescribeTargetedSentimentDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeTopicsDetectionJob internal virtual DescribeTopicsDetectionJobResponse DescribeTopicsDetectionJob(DescribeTopicsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTopicsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTopicsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DescribeTopicsDetectionJobAsync(DescribeTopicsDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTopicsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTopicsDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetectDominantLanguage internal virtual DetectDominantLanguageResponse DetectDominantLanguage(DetectDominantLanguageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectDominantLanguageRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectDominantLanguageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DetectDominantLanguageAsync(DetectDominantLanguageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectDominantLanguageRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectDominantLanguageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetectEntities internal virtual DetectEntitiesResponse DetectEntities(DetectEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DetectEntitiesAsync(DetectEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectEntitiesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetectKeyPhrases internal virtual DetectKeyPhrasesResponse DetectKeyPhrases(DetectKeyPhrasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectKeyPhrasesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectKeyPhrasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Detects the key noun phrases found in the text. /// /// Container for the necessary parameters to execute the DetectKeyPhrases service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DetectKeyPhrasesAsync(DetectKeyPhrasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectKeyPhrasesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectKeyPhrasesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetectPiiEntities internal virtual DetectPiiEntitiesResponse DetectPiiEntities(DetectPiiEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectPiiEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectPiiEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DetectPiiEntitiesAsync(DetectPiiEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectPiiEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectPiiEntitiesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetectSentiment internal virtual DetectSentimentResponse DetectSentiment(DetectSentimentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectSentimentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DetectSentimentAsync(DetectSentimentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectSentimentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetectSyntax internal virtual DetectSyntaxResponse DetectSyntax(DetectSyntaxRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectSyntaxRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectSyntaxResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DetectSyntaxAsync(DetectSyntaxRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectSyntaxRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectSyntaxResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DetectTargetedSentiment internal virtual DetectTargetedSentimentResponse DetectTargetedSentiment(DetectTargetedSentimentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectTargetedSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectTargetedSentimentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task DetectTargetedSentimentAsync(DetectTargetedSentimentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectTargetedSentimentRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectTargetedSentimentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ImportModel internal virtual ImportModelResponse ImportModel(ImportModelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportModelRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportModelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ImportModelAsync(ImportModelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportModelRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportModelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDatasets internal virtual ListDatasetsResponse ListDatasets(ListDatasetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatasetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatasetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListDatasetsAsync(ListDatasetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatasetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatasetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDocumentClassificationJobs internal virtual ListDocumentClassificationJobsResponse ListDocumentClassificationJobs(ListDocumentClassificationJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassificationJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassificationJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of the documentation classification jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListDocumentClassificationJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListDocumentClassificationJobsAsync(ListDocumentClassificationJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassificationJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassificationJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDocumentClassifiers internal virtual ListDocumentClassifiersResponse ListDocumentClassifiers(ListDocumentClassifiersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassifiersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassifiersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of the document classifiers that you have created. /// /// Container for the necessary parameters to execute the ListDocumentClassifiers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListDocumentClassifiersAsync(ListDocumentClassifiersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassifiersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassifiersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDocumentClassifierSummaries internal virtual ListDocumentClassifierSummariesResponse ListDocumentClassifierSummaries(ListDocumentClassifierSummariesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassifierSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassifierSummariesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of summaries of the document classifiers that you have created /// /// Container for the necessary parameters to execute the ListDocumentClassifierSummaries service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListDocumentClassifierSummariesAsync(ListDocumentClassifierSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDocumentClassifierSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDocumentClassifierSummariesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDominantLanguageDetectionJobs internal virtual ListDominantLanguageDetectionJobsResponse ListDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDominantLanguageDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDominantLanguageDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of the dominant language detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListDominantLanguageDetectionJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListDominantLanguageDetectionJobsAsync(ListDominantLanguageDetectionJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDominantLanguageDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDominantLanguageDetectionJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEndpoints internal virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListEndpointsAsync(ListEndpointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEntitiesDetectionJobs internal virtual ListEntitiesDetectionJobsResponse ListEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntitiesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntitiesDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of the entity detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListEntitiesDetectionJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListEntitiesDetectionJobsAsync(ListEntitiesDetectionJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntitiesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntitiesDetectionJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEntityRecognizers internal virtual ListEntityRecognizersResponse ListEntityRecognizers(ListEntityRecognizersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntityRecognizersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntityRecognizersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListEntityRecognizersAsync(ListEntityRecognizersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntityRecognizersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntityRecognizersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEntityRecognizerSummaries internal virtual ListEntityRecognizerSummariesResponse ListEntityRecognizerSummaries(ListEntityRecognizerSummariesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntityRecognizerSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntityRecognizerSummariesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of summaries for the entity recognizers that you have created. /// /// Container for the necessary parameters to execute the ListEntityRecognizerSummaries service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListEntityRecognizerSummariesAsync(ListEntityRecognizerSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntityRecognizerSummariesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntityRecognizerSummariesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEventsDetectionJobs internal virtual ListEventsDetectionJobsResponse ListEventsDetectionJobs(ListEventsDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventsDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventsDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of the events detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListEventsDetectionJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListEventsDetectionJobsAsync(ListEventsDetectionJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventsDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventsDetectionJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListFlywheelIterationHistory internal virtual ListFlywheelIterationHistoryResponse ListFlywheelIterationHistory(ListFlywheelIterationHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlywheelIterationHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlywheelIterationHistoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListFlywheelIterationHistoryAsync(ListFlywheelIterationHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlywheelIterationHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlywheelIterationHistoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListFlywheels internal virtual ListFlywheelsResponse ListFlywheels(ListFlywheelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlywheelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlywheelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of the flywheels that you have created. /// /// Container for the necessary parameters to execute the ListFlywheels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListFlywheelsAsync(ListFlywheelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFlywheelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFlywheelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListKeyPhrasesDetectionJobs internal virtual ListKeyPhrasesDetectionJobsResponse ListKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListKeyPhrasesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListKeyPhrasesDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Get a list of key phrase detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListKeyPhrasesDetectionJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListKeyPhrasesDetectionJobsAsync(ListKeyPhrasesDetectionJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListKeyPhrasesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListKeyPhrasesDetectionJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPiiEntitiesDetectionJobs internal virtual ListPiiEntitiesDetectionJobsResponse ListPiiEntitiesDetectionJobs(ListPiiEntitiesDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPiiEntitiesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPiiEntitiesDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of the PII entity detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListPiiEntitiesDetectionJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListPiiEntitiesDetectionJobsAsync(ListPiiEntitiesDetectionJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPiiEntitiesDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPiiEntitiesDetectionJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSentimentDetectionJobs internal virtual ListSentimentDetectionJobsResponse ListSentimentDetectionJobs(ListSentimentDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSentimentDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSentimentDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of sentiment detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListSentimentDetectionJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListSentimentDetectionJobsAsync(ListSentimentDetectionJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSentimentDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSentimentDetectionJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all tags associated with a given Amazon Comprehend resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTargetedSentimentDetectionJobs internal virtual ListTargetedSentimentDetectionJobsResponse ListTargetedSentimentDetectionJobs(ListTargetedSentimentDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetedSentimentDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetedSentimentDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of targeted sentiment detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListTargetedSentimentDetectionJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListTargetedSentimentDetectionJobsAsync(ListTargetedSentimentDetectionJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTargetedSentimentDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTargetedSentimentDetectionJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTopicsDetectionJobs internal virtual ListTopicsDetectionJobsResponse ListTopicsDetectionJobs(ListTopicsDetectionJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTopicsDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTopicsDetectionJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of the topic detection jobs that you have submitted. /// /// Container for the necessary parameters to execute the ListTopicsDetectionJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task ListTopicsDetectionJobsAsync(ListTopicsDetectionJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTopicsDetectionJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTopicsDetectionJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutResourcePolicy internal virtual PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task PutResourcePolicyAsync(PutResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartDocumentClassificationJob internal virtual StartDocumentClassificationJobResponse StartDocumentClassificationJob(StartDocumentClassificationJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartDocumentClassificationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDocumentClassificationJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartDocumentClassificationJobAsync(StartDocumentClassificationJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartDocumentClassificationJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDocumentClassificationJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartDominantLanguageDetectionJob internal virtual StartDominantLanguageDetectionJobResponse StartDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDominantLanguageDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartDominantLanguageDetectionJobAsync(StartDominantLanguageDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDominantLanguageDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartEntitiesDetectionJob internal virtual StartEntitiesDetectionJobResponse StartEntitiesDetectionJob(StartEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartEntitiesDetectionJobAsync(StartEntitiesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartEntitiesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartEventsDetectionJob internal virtual StartEventsDetectionJobResponse StartEventsDetectionJob(StartEventsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartEventsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts an asynchronous event detection job for a collection of documents. /// /// Container for the necessary parameters to execute the StartEventsDetectionJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartEventsDetectionJobAsync(StartEventsDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartEventsDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartFlywheelIteration internal virtual StartFlywheelIterationResponse StartFlywheelIteration(StartFlywheelIterationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlywheelIterationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlywheelIterationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartFlywheelIterationAsync(StartFlywheelIterationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartFlywheelIterationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartFlywheelIterationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartKeyPhrasesDetectionJob internal virtual StartKeyPhrasesDetectionJobResponse StartKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartKeyPhrasesDetectionJobAsync(StartKeyPhrasesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartPiiEntitiesDetectionJob internal virtual StartPiiEntitiesDetectionJobResponse StartPiiEntitiesDetectionJob(StartPiiEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartPiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartPiiEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts an asynchronous PII entity detection job for a collection of documents. /// /// Container for the necessary parameters to execute the StartPiiEntitiesDetectionJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartPiiEntitiesDetectionJobAsync(StartPiiEntitiesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartPiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartPiiEntitiesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartSentimentDetectionJob internal virtual StartSentimentDetectionJobResponse StartSentimentDetectionJob(StartSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartSentimentDetectionJobAsync(StartSentimentDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSentimentDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartTargetedSentimentDetectionJob internal virtual StartTargetedSentimentDetectionJobResponse StartTargetedSentimentDetectionJob(StartTargetedSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartTargetedSentimentDetectionJobAsync(StartTargetedSentimentDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartTopicsDetectionJob internal virtual StartTopicsDetectionJobResponse StartTopicsDetectionJob(StartTopicsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartTopicsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTopicsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StartTopicsDetectionJobAsync(StartTopicsDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartTopicsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTopicsDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopDominantLanguageDetectionJob internal virtual StopDominantLanguageDetectionJobResponse StopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopDominantLanguageDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopDominantLanguageDetectionJobAsync(StopDominantLanguageDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopDominantLanguageDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopDominantLanguageDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopEntitiesDetectionJob internal virtual StopEntitiesDetectionJobResponse StopEntitiesDetectionJob(StopEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopEntitiesDetectionJobAsync(StopEntitiesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopEntitiesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopEventsDetectionJob internal virtual StopEventsDetectionJobResponse StopEventsDetectionJob(StopEventsDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopEventsDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops an events detection job in progress. /// /// Container for the necessary parameters to execute the StopEventsDetectionJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopEventsDetectionJobAsync(StopEventsDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopEventsDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopEventsDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopKeyPhrasesDetectionJob internal virtual StopKeyPhrasesDetectionJobResponse StopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopKeyPhrasesDetectionJobAsync(StopKeyPhrasesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopKeyPhrasesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopKeyPhrasesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopPiiEntitiesDetectionJob internal virtual StopPiiEntitiesDetectionJobResponse StopPiiEntitiesDetectionJob(StopPiiEntitiesDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopPiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopPiiEntitiesDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops a PII entities detection job in progress. /// /// Container for the necessary parameters to execute the StopPiiEntitiesDetectionJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopPiiEntitiesDetectionJobAsync(StopPiiEntitiesDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopPiiEntitiesDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopPiiEntitiesDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopSentimentDetectionJob internal virtual StopSentimentDetectionJobResponse StopSentimentDetectionJob(StopSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopSentimentDetectionJobAsync(StopSentimentDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopSentimentDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopTargetedSentimentDetectionJob internal virtual StopTargetedSentimentDetectionJobResponse StopTargetedSentimentDetectionJob(StopTargetedSentimentDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopTargetedSentimentDetectionJobAsync(StopTargetedSentimentDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopTargetedSentimentDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTargetedSentimentDetectionJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopTrainingDocumentClassifier internal virtual StopTrainingDocumentClassifierResponse StopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopTrainingDocumentClassifierAsync(StopTrainingDocumentClassifierRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopTrainingEntityRecognizer internal virtual StopTrainingEntityRecognizerResponse StopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopTrainingEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTrainingEntityRecognizerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task StopTrainingEntityRecognizerAsync(StopTrainingEntityRecognizerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopTrainingEntityRecognizerRequestMarshaller.Instance; options.ResponseUnmarshaller = StopTrainingEntityRecognizerResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes a specific tag associated with an Amazon Comprehend resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateEndpoint internal virtual UpdateEndpointResponse UpdateEndpoint(UpdateEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates information about the specified endpoint. For information about endpoints, /// see Managing /// endpoints. /// /// Container for the necessary parameters to execute the UpdateEndpoint service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UpdateEndpointAsync(UpdateEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateFlywheel internal virtual UpdateFlywheelResponse UpdateFlywheel(UpdateFlywheelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlywheelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Update the configuration information for an existing flywheel. /// /// Container for the necessary parameters to execute the UpdateFlywheel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// 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 Task UpdateFlywheelAsync(UpdateFlywheelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFlywheelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFlywheelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }