package comprehend
import "github.com/aws/aws-sdk-go-v2/service/comprehend"
Index ¶
- Constants
- func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
- type BatchDetectDominantLanguageInput
- type BatchDetectDominantLanguageOutput
- type BatchDetectEntitiesInput
- type BatchDetectEntitiesOutput
- type BatchDetectKeyPhrasesInput
- type BatchDetectKeyPhrasesOutput
- type BatchDetectSentimentInput
- type BatchDetectSentimentOutput
- type BatchDetectSyntaxInput
- type BatchDetectSyntaxOutput
- type ClassifyDocumentInput
- type ClassifyDocumentOutput
- type Client
- func New(options Options, optFns ...func(*Options)) *Client
- func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
- func (c *Client) BatchDetectDominantLanguage(ctx context.Context, params *BatchDetectDominantLanguageInput, optFns ...func(*Options)) (*BatchDetectDominantLanguageOutput, error)
- func (c *Client) BatchDetectEntities(ctx context.Context, params *BatchDetectEntitiesInput, optFns ...func(*Options)) (*BatchDetectEntitiesOutput, error)
- func (c *Client) BatchDetectKeyPhrases(ctx context.Context, params *BatchDetectKeyPhrasesInput, optFns ...func(*Options)) (*BatchDetectKeyPhrasesOutput, error)
- func (c *Client) BatchDetectSentiment(ctx context.Context, params *BatchDetectSentimentInput, optFns ...func(*Options)) (*BatchDetectSentimentOutput, error)
- func (c *Client) BatchDetectSyntax(ctx context.Context, params *BatchDetectSyntaxInput, optFns ...func(*Options)) (*BatchDetectSyntaxOutput, error)
- func (c *Client) ClassifyDocument(ctx context.Context, params *ClassifyDocumentInput, optFns ...func(*Options)) (*ClassifyDocumentOutput, error)
- func (c *Client) CreateDocumentClassifier(ctx context.Context, params *CreateDocumentClassifierInput, optFns ...func(*Options)) (*CreateDocumentClassifierOutput, error)
- func (c *Client) CreateEndpoint(ctx context.Context, params *CreateEndpointInput, optFns ...func(*Options)) (*CreateEndpointOutput, error)
- func (c *Client) CreateEntityRecognizer(ctx context.Context, params *CreateEntityRecognizerInput, optFns ...func(*Options)) (*CreateEntityRecognizerOutput, error)
- func (c *Client) DeleteDocumentClassifier(ctx context.Context, params *DeleteDocumentClassifierInput, optFns ...func(*Options)) (*DeleteDocumentClassifierOutput, error)
- func (c *Client) DeleteEndpoint(ctx context.Context, params *DeleteEndpointInput, optFns ...func(*Options)) (*DeleteEndpointOutput, error)
- func (c *Client) DeleteEntityRecognizer(ctx context.Context, params *DeleteEntityRecognizerInput, optFns ...func(*Options)) (*DeleteEntityRecognizerOutput, error)
- func (c *Client) DescribeDocumentClassificationJob(ctx context.Context, params *DescribeDocumentClassificationJobInput, optFns ...func(*Options)) (*DescribeDocumentClassificationJobOutput, error)
- func (c *Client) DescribeDocumentClassifier(ctx context.Context, params *DescribeDocumentClassifierInput, optFns ...func(*Options)) (*DescribeDocumentClassifierOutput, error)
- func (c *Client) DescribeDominantLanguageDetectionJob(ctx context.Context, params *DescribeDominantLanguageDetectionJobInput, optFns ...func(*Options)) (*DescribeDominantLanguageDetectionJobOutput, error)
- func (c *Client) DescribeEndpoint(ctx context.Context, params *DescribeEndpointInput, optFns ...func(*Options)) (*DescribeEndpointOutput, error)
- func (c *Client) DescribeEntitiesDetectionJob(ctx context.Context, params *DescribeEntitiesDetectionJobInput, optFns ...func(*Options)) (*DescribeEntitiesDetectionJobOutput, error)
- func (c *Client) DescribeEntityRecognizer(ctx context.Context, params *DescribeEntityRecognizerInput, optFns ...func(*Options)) (*DescribeEntityRecognizerOutput, error)
- func (c *Client) DescribeKeyPhrasesDetectionJob(ctx context.Context, params *DescribeKeyPhrasesDetectionJobInput, optFns ...func(*Options)) (*DescribeKeyPhrasesDetectionJobOutput, error)
- func (c *Client) DescribeSentimentDetectionJob(ctx context.Context, params *DescribeSentimentDetectionJobInput, optFns ...func(*Options)) (*DescribeSentimentDetectionJobOutput, error)
- func (c *Client) DescribeTopicsDetectionJob(ctx context.Context, params *DescribeTopicsDetectionJobInput, optFns ...func(*Options)) (*DescribeTopicsDetectionJobOutput, error)
- func (c *Client) DetectDominantLanguage(ctx context.Context, params *DetectDominantLanguageInput, optFns ...func(*Options)) (*DetectDominantLanguageOutput, error)
- func (c *Client) DetectEntities(ctx context.Context, params *DetectEntitiesInput, optFns ...func(*Options)) (*DetectEntitiesOutput, error)
- func (c *Client) DetectKeyPhrases(ctx context.Context, params *DetectKeyPhrasesInput, optFns ...func(*Options)) (*DetectKeyPhrasesOutput, error)
- func (c *Client) DetectSentiment(ctx context.Context, params *DetectSentimentInput, optFns ...func(*Options)) (*DetectSentimentOutput, error)
- func (c *Client) DetectSyntax(ctx context.Context, params *DetectSyntaxInput, optFns ...func(*Options)) (*DetectSyntaxOutput, error)
- func (c *Client) ListDocumentClassificationJobs(ctx context.Context, params *ListDocumentClassificationJobsInput, optFns ...func(*Options)) (*ListDocumentClassificationJobsOutput, error)
- func (c *Client) ListDocumentClassifiers(ctx context.Context, params *ListDocumentClassifiersInput, optFns ...func(*Options)) (*ListDocumentClassifiersOutput, error)
- func (c *Client) ListDominantLanguageDetectionJobs(ctx context.Context, params *ListDominantLanguageDetectionJobsInput, optFns ...func(*Options)) (*ListDominantLanguageDetectionJobsOutput, error)
- func (c *Client) ListEndpoints(ctx context.Context, params *ListEndpointsInput, optFns ...func(*Options)) (*ListEndpointsOutput, error)
- func (c *Client) ListEntitiesDetectionJobs(ctx context.Context, params *ListEntitiesDetectionJobsInput, optFns ...func(*Options)) (*ListEntitiesDetectionJobsOutput, error)
- func (c *Client) ListEntityRecognizers(ctx context.Context, params *ListEntityRecognizersInput, optFns ...func(*Options)) (*ListEntityRecognizersOutput, error)
- func (c *Client) ListKeyPhrasesDetectionJobs(ctx context.Context, params *ListKeyPhrasesDetectionJobsInput, optFns ...func(*Options)) (*ListKeyPhrasesDetectionJobsOutput, error)
- func (c *Client) ListSentimentDetectionJobs(ctx context.Context, params *ListSentimentDetectionJobsInput, optFns ...func(*Options)) (*ListSentimentDetectionJobsOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
- func (c *Client) ListTopicsDetectionJobs(ctx context.Context, params *ListTopicsDetectionJobsInput, optFns ...func(*Options)) (*ListTopicsDetectionJobsOutput, error)
- func (c *Client) StartDocumentClassificationJob(ctx context.Context, params *StartDocumentClassificationJobInput, optFns ...func(*Options)) (*StartDocumentClassificationJobOutput, error)
- func (c *Client) StartDominantLanguageDetectionJob(ctx context.Context, params *StartDominantLanguageDetectionJobInput, optFns ...func(*Options)) (*StartDominantLanguageDetectionJobOutput, error)
- func (c *Client) StartEntitiesDetectionJob(ctx context.Context, params *StartEntitiesDetectionJobInput, optFns ...func(*Options)) (*StartEntitiesDetectionJobOutput, error)
- func (c *Client) StartKeyPhrasesDetectionJob(ctx context.Context, params *StartKeyPhrasesDetectionJobInput, optFns ...func(*Options)) (*StartKeyPhrasesDetectionJobOutput, error)
- func (c *Client) StartSentimentDetectionJob(ctx context.Context, params *StartSentimentDetectionJobInput, optFns ...func(*Options)) (*StartSentimentDetectionJobOutput, error)
- func (c *Client) StartTopicsDetectionJob(ctx context.Context, params *StartTopicsDetectionJobInput, optFns ...func(*Options)) (*StartTopicsDetectionJobOutput, error)
- func (c *Client) StopDominantLanguageDetectionJob(ctx context.Context, params *StopDominantLanguageDetectionJobInput, optFns ...func(*Options)) (*StopDominantLanguageDetectionJobOutput, error)
- func (c *Client) StopEntitiesDetectionJob(ctx context.Context, params *StopEntitiesDetectionJobInput, optFns ...func(*Options)) (*StopEntitiesDetectionJobOutput, error)
- func (c *Client) StopKeyPhrasesDetectionJob(ctx context.Context, params *StopKeyPhrasesDetectionJobInput, optFns ...func(*Options)) (*StopKeyPhrasesDetectionJobOutput, error)
- func (c *Client) StopSentimentDetectionJob(ctx context.Context, params *StopSentimentDetectionJobInput, optFns ...func(*Options)) (*StopSentimentDetectionJobOutput, error)
- func (c *Client) StopTrainingDocumentClassifier(ctx context.Context, params *StopTrainingDocumentClassifierInput, optFns ...func(*Options)) (*StopTrainingDocumentClassifierOutput, error)
- func (c *Client) StopTrainingEntityRecognizer(ctx context.Context, params *StopTrainingEntityRecognizerInput, optFns ...func(*Options)) (*StopTrainingEntityRecognizerOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateEndpoint(ctx context.Context, params *UpdateEndpointInput, optFns ...func(*Options)) (*UpdateEndpointOutput, error)
- type CreateDocumentClassifierInput
- type CreateDocumentClassifierOutput
- type CreateEndpointInput
- type CreateEndpointOutput
- type CreateEntityRecognizerInput
- type CreateEntityRecognizerOutput
- type DeleteDocumentClassifierInput
- type DeleteDocumentClassifierOutput
- type DeleteEndpointInput
- type DeleteEndpointOutput
- type DeleteEntityRecognizerInput
- type DeleteEntityRecognizerOutput
- type DescribeDocumentClassificationJobInput
- type DescribeDocumentClassificationJobOutput
- type DescribeDocumentClassifierInput
- type DescribeDocumentClassifierOutput
- type DescribeDominantLanguageDetectionJobInput
- type DescribeDominantLanguageDetectionJobOutput
- type DescribeEndpointInput
- type DescribeEndpointOutput
- type DescribeEntitiesDetectionJobInput
- type DescribeEntitiesDetectionJobOutput
- type DescribeEntityRecognizerInput
- type DescribeEntityRecognizerOutput
- type DescribeKeyPhrasesDetectionJobInput
- type DescribeKeyPhrasesDetectionJobOutput
- type DescribeSentimentDetectionJobInput
- type DescribeSentimentDetectionJobOutput
- type DescribeTopicsDetectionJobInput
- type DescribeTopicsDetectionJobOutput
- type DetectDominantLanguageInput
- type DetectDominantLanguageOutput
- type DetectEntitiesInput
- type DetectEntitiesOutput
- type DetectKeyPhrasesInput
- type DetectKeyPhrasesOutput
- type DetectSentimentInput
- type DetectSentimentOutput
- type DetectSyntaxInput
- type DetectSyntaxOutput
- type EndpointResolver
- type EndpointResolverFunc
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListDocumentClassificationJobsInput
- type ListDocumentClassificationJobsOutput
- type ListDocumentClassifiersInput
- type ListDocumentClassifiersOutput
- type ListDominantLanguageDetectionJobsInput
- type ListDominantLanguageDetectionJobsOutput
- type ListEndpointsInput
- type ListEndpointsOutput
- type ListEntitiesDetectionJobsInput
- type ListEntitiesDetectionJobsOutput
- type ListEntityRecognizersInput
- type ListEntityRecognizersOutput
- type ListKeyPhrasesDetectionJobsInput
- type ListKeyPhrasesDetectionJobsOutput
- type ListSentimentDetectionJobsInput
- type ListSentimentDetectionJobsOutput
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type ListTopicsDetectionJobsInput
- type ListTopicsDetectionJobsOutput
- type Options
- func (o Options) Copy() Options
- func (o Options) GetCredentials() aws.CredentialsProvider
- func (o Options) GetEndpointOptions() ResolverOptions
- func (o Options) GetEndpointResolver() EndpointResolver
- func (o Options) GetHTTPSignerV4() HTTPSignerV4
- func (o Options) GetIdempotencyTokenProvider() IdempotencyTokenProvider
- func (o Options) GetRegion() string
- func (o Options) GetRetryer() retry.Retryer
- type ResolveEndpoint
- func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
- func (*ResolveEndpoint) ID() string
- type ResolveEndpointMiddlewareOptions
- type ResolverOptions
- type StartDocumentClassificationJobInput
- type StartDocumentClassificationJobOutput
- type StartDominantLanguageDetectionJobInput
- type StartDominantLanguageDetectionJobOutput
- type StartEntitiesDetectionJobInput
- type StartEntitiesDetectionJobOutput
- type StartKeyPhrasesDetectionJobInput
- type StartKeyPhrasesDetectionJobOutput
- type StartSentimentDetectionJobInput
- type StartSentimentDetectionJobOutput
- type StartTopicsDetectionJobInput
- type StartTopicsDetectionJobOutput
- type StopDominantLanguageDetectionJobInput
- type StopDominantLanguageDetectionJobOutput
- type StopEntitiesDetectionJobInput
- type StopEntitiesDetectionJobOutput
- type StopKeyPhrasesDetectionJobInput
- type StopKeyPhrasesDetectionJobOutput
- type StopSentimentDetectionJobInput
- type StopSentimentDetectionJobOutput
- type StopTrainingDocumentClassifierInput
- type StopTrainingDocumentClassifierOutput
- type StopTrainingEntityRecognizerInput
- type StopTrainingEntityRecognizerOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateEndpointInput
- type UpdateEndpointOutput
Constants ¶
const ServiceAPIVersion = "2017-11-27"
const ServiceID = "Comprehend"
Functions ¶
func AddResolveEndpointMiddleware ¶
func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func RemoveResolveEndpointMiddleware ¶
func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
Types ¶
type BatchDetectDominantLanguageInput ¶
type BatchDetectDominantLanguageInput struct { // A list containing the text of the input documents. The list can contain a // maximum of 25 documents. Each document should contain at least 20 characters and // must contain fewer than 5,000 bytes of UTF-8 encoded characters. TextList []*string }
type BatchDetectDominantLanguageOutput ¶
type BatchDetectDominantLanguageOutput struct { // A list containing one object for each document that contained an error. The // results are sorted in ascending order by the Index field and match the order of // the documents in the input list. If there are no errors in the batch, the // ErrorList is empty. ErrorList []*types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the // documents in the input list. If all of the documents contain an error, the // ResultList is empty. ResultList []*types.BatchDetectDominantLanguageItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type BatchDetectEntitiesInput ¶
type BatchDetectEntitiesInput struct { // The language of the input documents. You can specify any of the primary // languages supported by Amazon Comprehend. All documents must be in the same // language. LanguageCode types.LanguageCode // A list containing the text of the input documents. The list can contain a // maximum of 25 documents. Each document must contain fewer than 5,000 bytes of // UTF-8 encoded characters. TextList []*string }
type BatchDetectEntitiesOutput ¶
type BatchDetectEntitiesOutput struct { // A list containing one object for each document that contained an error. The // results are sorted in ascending order by the Index field and match the order of // the documents in the input list. If there are no errors in the batch, the // ErrorList is empty. ErrorList []*types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the // documents in the input list. If all of the documents contain an error, the // ResultList is empty. ResultList []*types.BatchDetectEntitiesItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type BatchDetectKeyPhrasesInput ¶
type BatchDetectKeyPhrasesInput struct { // The language of the input documents. You can specify any of the primary // languages supported by Amazon Comprehend. All documents must be in the same // language. LanguageCode types.LanguageCode // A list containing the text of the input documents. The list can contain a // maximum of 25 documents. Each document must contain fewer that 5,000 bytes of // UTF-8 encoded characters. TextList []*string }
type BatchDetectKeyPhrasesOutput ¶
type BatchDetectKeyPhrasesOutput struct { // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the // documents in the input list. If all of the documents contain an error, the // ResultList is empty. ResultList []*types.BatchDetectKeyPhrasesItemResult // A list containing one object for each document that contained an error. The // results are sorted in ascending order by the Index field and match the order of // the documents in the input list. If there are no errors in the batch, the // ErrorList is empty. ErrorList []*types.BatchItemError // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type BatchDetectSentimentInput ¶
type BatchDetectSentimentInput struct { // A list containing the text of the input documents. The list can contain a // maximum of 25 documents. Each document must contain fewer that 5,000 bytes of // UTF-8 encoded characters. TextList []*string // The language of the input documents. You can specify any of the primary // languages supported by Amazon Comprehend. All documents must be in the same // language. LanguageCode types.LanguageCode }
type BatchDetectSentimentOutput ¶
type BatchDetectSentimentOutput struct { // A list containing one object for each document that contained an error. The // results are sorted in ascending order by the Index field and match the order of // the documents in the input list. If there are no errors in the batch, the // ErrorList is empty. ErrorList []*types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the // documents in the input list. If all of the documents contain an error, the // ResultList is empty. ResultList []*types.BatchDetectSentimentItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type BatchDetectSyntaxInput ¶
type BatchDetectSyntaxInput struct { // A list containing the text of the input documents. The list can contain a // maximum of 25 documents. Each document must contain fewer that 5,000 bytes of // UTF-8 encoded characters. TextList []*string // The language of the input documents. You can specify any of the following // languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish // ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must // be in the same language. LanguageCode types.SyntaxLanguageCode }
type BatchDetectSyntaxOutput ¶
type BatchDetectSyntaxOutput struct { // A list containing one object for each document that contained an error. The // results are sorted in ascending order by the Index field and match the order of // the documents in the input list. If there are no errors in the batch, the // ErrorList is empty. ErrorList []*types.BatchItemError // A list of objects containing the results of the operation. The results are // sorted in ascending order by the Index field and match the order of the // documents in the input list. If all of the documents contain an error, the // ResultList is empty. ResultList []*types.BatchDetectSyntaxItemResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ClassifyDocumentInput ¶
type ClassifyDocumentInput struct { // The document text to be analyzed. Text *string // The Amazon Resource Number (ARN) of the endpoint. EndpointArn *string }
type ClassifyDocumentOutput ¶
type ClassifyDocumentOutput struct { // The classes used by the document being analyzed. These are used for multi-class // trained models. Individual classes are mutually exclusive and each document is // expected to have only a single class assigned to it. For example, an animal can // be a dog or a cat, but not both at the same time. Classes []*types.DocumentClass // The labels used the document being analyzed. These are used for multi-label // trained models. Individual labels represent different categories that are // related in some manner and are not multually exclusive. For example, a movie can // be just an action movie, or it can be an action movie, a science fiction movie, // and a comedy, all at the same time. Labels []*types.DocumentLabel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Amazon Comprehend is an AWS 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.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) BatchDetectDominantLanguage ¶
func (c *Client) BatchDetectDominantLanguage(ctx context.Context, params *BatchDetectDominantLanguageInput, optFns ...func(*Options)) (*BatchDetectDominantLanguageOutput, error)
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 (https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html).
func (*Client) BatchDetectEntities ¶
func (c *Client) BatchDetectEntities(ctx context.Context, params *BatchDetectEntitiesInput, optFns ...func(*Options)) (*BatchDetectEntitiesOutput, error)
Inspects the text of a batch of documents for named entities and returns information about them. For more information about named entities, see how-entities ()
func (*Client) BatchDetectKeyPhrases ¶
func (c *Client) BatchDetectKeyPhrases(ctx context.Context, params *BatchDetectKeyPhrasesInput, optFns ...func(*Options)) (*BatchDetectKeyPhrasesOutput, error)
Detects the key noun phrases found in a batch of documents.
func (*Client) BatchDetectSentiment ¶
func (c *Client) BatchDetectSentiment(ctx context.Context, params *BatchDetectSentimentInput, optFns ...func(*Options)) (*BatchDetectSentimentOutput, error)
Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one.
func (*Client) BatchDetectSyntax ¶
func (c *Client) BatchDetectSyntax(ctx context.Context, params *BatchDetectSyntaxInput, optFns ...func(*Options)) (*BatchDetectSyntaxOutput, error)
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 how-syntax ().
func (*Client) ClassifyDocument ¶
func (c *Client) ClassifyDocument(ctx context.Context, params *ClassifyDocumentInput, optFns ...func(*Options)) (*ClassifyDocumentOutput, error)
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.
func (*Client) CreateDocumentClassifier ¶
func (c *Client) CreateDocumentClassifier(ctx context.Context, params *CreateDocumentClassifierInput, optFns ...func(*Options)) (*CreateDocumentClassifierOutput, error)
Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that labeled with the categories that you want to use. After the classifier is trained you can use it to categorize a set of labeled documents into the categories. For more information, see how-document-classification ().
func (*Client) CreateEndpoint ¶
func (c *Client) CreateEndpoint(ctx context.Context, params *CreateEndpointInput, optFns ...func(*Options)) (*CreateEndpointOutput, error)
Creates a model-specific endpoint for synchronous inference for a previously trained custom model
func (*Client) CreateEntityRecognizer ¶
func (c *Client) CreateEntityRecognizer(ctx context.Context, params *CreateEntityRecognizerInput, optFns ...func(*Options)) (*CreateEntityRecognizerOutput, error)
Creates an entity recognizer using submitted files. After your CreateEntityRecognizer request is submitted, you can check job status using the API.
func (*Client) DeleteDocumentClassifier ¶
func (c *Client) DeleteDocumentClassifier(ctx context.Context, params *DeleteDocumentClassifierInput, optFns ...func(*Options)) (*DeleteDocumentClassifierOutput, error)
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.
func (*Client) DeleteEndpoint ¶
func (c *Client) DeleteEndpoint(ctx context.Context, params *DeleteEndpointInput, optFns ...func(*Options)) (*DeleteEndpointOutput, error)
Deletes a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted.
func (*Client) DeleteEntityRecognizer ¶
func (c *Client) DeleteEntityRecognizer(ctx context.Context, params *DeleteEntityRecognizerInput, optFns ...func(*Options)) (*DeleteEntityRecognizerOutput, error)
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.
func (*Client) DescribeDocumentClassificationJob ¶
func (c *Client) DescribeDocumentClassificationJob(ctx context.Context, params *DescribeDocumentClassificationJobInput, optFns ...func(*Options)) (*DescribeDocumentClassificationJobOutput, error)
Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.
func (*Client) DescribeDocumentClassifier ¶
func (c *Client) DescribeDocumentClassifier(ctx context.Context, params *DescribeDocumentClassifierInput, optFns ...func(*Options)) (*DescribeDocumentClassifierOutput, error)
Gets the properties associated with a document classifier.
func (*Client) DescribeDominantLanguageDetectionJob ¶
func (c *Client) DescribeDominantLanguageDetectionJob(ctx context.Context, params *DescribeDominantLanguageDetectionJobInput, optFns ...func(*Options)) (*DescribeDominantLanguageDetectionJobOutput, error)
Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.
func (*Client) DescribeEndpoint ¶
func (c *Client) DescribeEndpoint(ctx context.Context, params *DescribeEndpointInput, optFns ...func(*Options)) (*DescribeEndpointOutput, error)
Gets the properties associated with a specific endpoint. Use this operation to get the status of an endpoint.
func (*Client) DescribeEntitiesDetectionJob ¶
func (c *Client) DescribeEntitiesDetectionJob(ctx context.Context, params *DescribeEntitiesDetectionJobInput, optFns ...func(*Options)) (*DescribeEntitiesDetectionJobOutput, error)
Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.
func (*Client) DescribeEntityRecognizer ¶
func (c *Client) DescribeEntityRecognizer(ctx context.Context, params *DescribeEntityRecognizerInput, optFns ...func(*Options)) (*DescribeEntityRecognizerOutput, error)
Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
func (*Client) DescribeKeyPhrasesDetectionJob ¶
func (c *Client) DescribeKeyPhrasesDetectionJob(ctx context.Context, params *DescribeKeyPhrasesDetectionJobInput, optFns ...func(*Options)) (*DescribeKeyPhrasesDetectionJobOutput, error)
Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.
func (*Client) DescribeSentimentDetectionJob ¶
func (c *Client) DescribeSentimentDetectionJob(ctx context.Context, params *DescribeSentimentDetectionJobInput, optFns ...func(*Options)) (*DescribeSentimentDetectionJobOutput, error)
Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.
func (*Client) DescribeTopicsDetectionJob ¶
func (c *Client) DescribeTopicsDetectionJob(ctx context.Context, params *DescribeTopicsDetectionJobInput, optFns ...func(*Options)) (*DescribeTopicsDetectionJobOutput, error)
Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.
func (*Client) DetectDominantLanguage ¶
func (c *Client) DetectDominantLanguage(ctx context.Context, params *DetectDominantLanguageInput, optFns ...func(*Options)) (*DetectDominantLanguageOutput, error)
Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages (https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html).
func (*Client) DetectEntities ¶
func (c *Client) DetectEntities(ctx context.Context, params *DetectEntitiesInput, optFns ...func(*Options)) (*DetectEntitiesOutput, error)
Inspects text for named entities, and returns information about them. For more information, about named entities, see how-entities ().
func (*Client) DetectKeyPhrases ¶
func (c *Client) DetectKeyPhrases(ctx context.Context, params *DetectKeyPhrasesInput, optFns ...func(*Options)) (*DetectKeyPhrasesOutput, error)
Detects the key noun phrases found in the text.
func (*Client) DetectSentiment ¶
func (c *Client) DetectSentiment(ctx context.Context, params *DetectSentimentInput, optFns ...func(*Options)) (*DetectSentimentOutput, error)
Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).
func (*Client) DetectSyntax ¶
func (c *Client) DetectSyntax(ctx context.Context, params *DetectSyntaxInput, optFns ...func(*Options)) (*DetectSyntaxOutput, error)
Inspects text for syntax and the part of speech of words in the document. For more information, how-syntax ().
func (*Client) ListDocumentClassificationJobs ¶
func (c *Client) ListDocumentClassificationJobs(ctx context.Context, params *ListDocumentClassificationJobsInput, optFns ...func(*Options)) (*ListDocumentClassificationJobsOutput, error)
Gets a list of the documentation classification jobs that you have submitted.
func (*Client) ListDocumentClassifiers ¶
func (c *Client) ListDocumentClassifiers(ctx context.Context, params *ListDocumentClassifiersInput, optFns ...func(*Options)) (*ListDocumentClassifiersOutput, error)
Gets a list of the document classifiers that you have created.
func (*Client) ListDominantLanguageDetectionJobs ¶
func (c *Client) ListDominantLanguageDetectionJobs(ctx context.Context, params *ListDominantLanguageDetectionJobsInput, optFns ...func(*Options)) (*ListDominantLanguageDetectionJobsOutput, error)
Gets a list of the dominant language detection jobs that you have submitted.
func (*Client) ListEndpoints ¶
func (c *Client) ListEndpoints(ctx context.Context, params *ListEndpointsInput, optFns ...func(*Options)) (*ListEndpointsOutput, error)
Gets a list of all existing endpoints that you've created.
func (*Client) ListEntitiesDetectionJobs ¶
func (c *Client) ListEntitiesDetectionJobs(ctx context.Context, params *ListEntitiesDetectionJobsInput, optFns ...func(*Options)) (*ListEntitiesDetectionJobsOutput, error)
Gets a list of the entity detection jobs that you have submitted.
func (*Client) ListEntityRecognizers ¶
func (c *Client) ListEntityRecognizers(ctx context.Context, params *ListEntityRecognizersInput, optFns ...func(*Options)) (*ListEntityRecognizersOutput, error)
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.
func (*Client) ListKeyPhrasesDetectionJobs ¶
func (c *Client) ListKeyPhrasesDetectionJobs(ctx context.Context, params *ListKeyPhrasesDetectionJobsInput, optFns ...func(*Options)) (*ListKeyPhrasesDetectionJobsOutput, error)
Get a list of key phrase detection jobs that you have submitted.
func (*Client) ListSentimentDetectionJobs ¶
func (c *Client) ListSentimentDetectionJobs(ctx context.Context, params *ListSentimentDetectionJobsInput, optFns ...func(*Options)) (*ListSentimentDetectionJobsOutput, error)
Gets a list of sentiment detection jobs that you have submitted.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Lists all tags associated with a given Amazon Comprehend resource.
func (*Client) ListTopicsDetectionJobs ¶
func (c *Client) ListTopicsDetectionJobs(ctx context.Context, params *ListTopicsDetectionJobsInput, optFns ...func(*Options)) (*ListTopicsDetectionJobsOutput, error)
Gets a list of the topic detection jobs that you have submitted.
func (*Client) StartDocumentClassificationJob ¶
func (c *Client) StartDocumentClassificationJob(ctx context.Context, params *StartDocumentClassificationJobInput, optFns ...func(*Options)) (*StartDocumentClassificationJobOutput, error)
Starts an asynchronous document classification job. Use the operation to track the progress of the job.
func (*Client) StartDominantLanguageDetectionJob ¶
func (c *Client) StartDominantLanguageDetectionJob(ctx context.Context, params *StartDominantLanguageDetectionJobInput, optFns ...func(*Options)) (*StartDominantLanguageDetectionJobOutput, error)
Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.
func (*Client) StartEntitiesDetectionJob ¶
func (c *Client) StartEntitiesDetectionJob(ctx context.Context, params *StartEntitiesDetectionJobInput, optFns ...func(*Options)) (*StartEntitiesDetectionJobOutput, error)
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.
func (*Client) StartKeyPhrasesDetectionJob ¶
func (c *Client) StartKeyPhrasesDetectionJob(ctx context.Context, params *StartKeyPhrasesDetectionJobInput, optFns ...func(*Options)) (*StartKeyPhrasesDetectionJobOutput, error)
Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.
func (*Client) StartSentimentDetectionJob ¶
func (c *Client) StartSentimentDetectionJob(ctx context.Context, params *StartSentimentDetectionJobInput, optFns ...func(*Options)) (*StartSentimentDetectionJobOutput, error)
Starts an asynchronous sentiment detection job for a collection of documents. use the operation to track the status of a job.
func (*Client) StartTopicsDetectionJob ¶
func (c *Client) StartTopicsDetectionJob(ctx context.Context, params *StartTopicsDetectionJobInput, optFns ...func(*Options)) (*StartTopicsDetectionJobOutput, error)
Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job.
func (*Client) StopDominantLanguageDetectionJob ¶
func (c *Client) StopDominantLanguageDetectionJob(ctx context.Context, params *StopDominantLanguageDetectionJobInput, optFns ...func(*Options)) (*StopDominantLanguageDetectionJobOutput, error)
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.
func (*Client) StopEntitiesDetectionJob ¶
func (c *Client) StopEntitiesDetectionJob(ctx context.Context, params *StopEntitiesDetectionJobInput, optFns ...func(*Options)) (*StopEntitiesDetectionJobOutput, error)
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.
func (*Client) StopKeyPhrasesDetectionJob ¶
func (c *Client) StopKeyPhrasesDetectionJob(ctx context.Context, params *StopKeyPhrasesDetectionJobInput, optFns ...func(*Options)) (*StopKeyPhrasesDetectionJobOutput, error)
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.
func (*Client) StopSentimentDetectionJob ¶
func (c *Client) StopSentimentDetectionJob(ctx context.Context, params *StopSentimentDetectionJobInput, optFns ...func(*Options)) (*StopSentimentDetectionJobOutput, error)
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.
func (*Client) StopTrainingDocumentClassifier ¶
func (c *Client) StopTrainingDocumentClassifier(ctx context.Context, params *StopTrainingDocumentClassifierInput, optFns ...func(*Options)) (*StopTrainingDocumentClassifierOutput, error)
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.
func (*Client) StopTrainingEntityRecognizer ¶
func (c *Client) StopTrainingEntityRecognizer(ctx context.Context, params *StopTrainingEntityRecognizerInput, optFns ...func(*Options)) (*StopTrainingEntityRecognizerOutput, error)
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.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
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.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes a specific tag associated with an Amazon Comprehend resource.
func (*Client) UpdateEndpoint ¶
func (c *Client) UpdateEndpoint(ctx context.Context, params *UpdateEndpointInput, optFns ...func(*Options)) (*UpdateEndpointOutput, error)
Updates information about the specified endpoint.
type CreateDocumentClassifierInput ¶
type CreateDocumentClassifierInput struct { // The name of the document classifier. DocumentClassifierName *string // Tags to be associated with the document classifier being created. 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. Tags []*types.Tag // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that // process the analysis job. The VolumeKmsKeyId can be either of the following // formats: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * Amazon // Resource Name (ARN) of a KMS Key: // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string // A unique identifier for the request. If you don't set the client request token, // Amazon Comprehend generates one. ClientRequestToken *string // The language of the input documents. You can specify any of the following // languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish // ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must // be in the same language. LanguageCode types.LanguageCode // Indicates the mode in which the classifier will be trained. The classifier can // be trained in multi-class mode, which identifies one and only one class for each // document, or multi-label mode, which identifies one or more labels for each // document. In multi-label mode, multiple labels for an individual document are // separated by a delimiter. The default delimiter between labels is a pipe (|). Mode types.DocumentClassifierMode // Specifies the format and location of the input data for the job. InputDataConfig *types.DocumentClassifierInputDataConfig // Configuration parameters for an optional private Virtual Private Cloud (VPC) // containing the resources you are using for your custom classifier. For more // information, see Amazon VPC // (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). VpcConfig *types.VpcConfig // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role // that grants Amazon Comprehend read access to your input data. DataAccessRoleArn *string // Enables the addition of output results configuration parameters for custom // classifier jobs. OutputDataConfig *types.DocumentClassifierOutputDataConfig }
type CreateDocumentClassifierOutput ¶
type CreateDocumentClassifierOutput struct { // The Amazon Resource Name (ARN) that identifies the document classifier. DocumentClassifierArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateEndpointInput ¶
type CreateEndpointInput struct { // This is the descriptive suffix that becomes part of the EndpointArn used for all // subsequent requests to this resource. EndpointName *string // The desired number of inference units to be used by the model using this // endpoint. Each inference unit represents of a throughput of 100 characters per // second. DesiredInferenceUnits *int32 // An idempotency token provided by the customer. If this token matches a previous // endpoint creation request, Amazon Comprehend will not return a // ResourceInUseException. ClientRequestToken *string // The Amazon Resource Number (ARN) of the model to which the endpoint will be // attached. ModelArn *string // Tags associated with the endpoint being created. A tag is a key-value pair that // adds metadata to the endpoint. For example, a tag with "Sales" as the key might // be added to an endpoint to indicate its use by the sales department. Tags []*types.Tag }
type CreateEndpointOutput ¶
type CreateEndpointOutput struct { // The Amazon Resource Number (ARN) of the endpoint being created. EndpointArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateEntityRecognizerInput ¶
type CreateEntityRecognizerInput struct { // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that // process the analysis job. The VolumeKmsKeyId can be either of the following // formats: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * Amazon // Resource Name (ARN) of a KMS Key: // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string // The name given to the newly created recognizer. Recognizer names can be a // maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores // (_) are allowed. The name must be unique in the account/region. RecognizerName *string // Specifies the format and location of the input data. The S3 bucket containing // the input data must be located in the same region as the entity recognizer being // created. InputDataConfig *types.EntityRecognizerInputDataConfig // Tags to be associated with the entity recognizer being created. 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. Tags []*types.Tag // A unique identifier for the request. If you don't set the client request token, // Amazon Comprehend generates one. ClientRequestToken *string // The language of the input documents. All documents must be in the same language. // Only English ("en") is currently supported. LanguageCode types.LanguageCode // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role // that grants Amazon Comprehend read access to your input data. DataAccessRoleArn *string // Configuration parameters for an optional private Virtual Private Cloud (VPC) // containing the resources you are using for your custom entity recognizer. For // more information, see Amazon VPC // (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). VpcConfig *types.VpcConfig }
type CreateEntityRecognizerOutput ¶
type CreateEntityRecognizerOutput struct { // The Amazon Resource Name (ARN) that identifies the entity recognizer. EntityRecognizerArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteDocumentClassifierInput ¶
type DeleteDocumentClassifierInput struct { // The Amazon Resource Name (ARN) that identifies the document classifier. DocumentClassifierArn *string }
type DeleteDocumentClassifierOutput ¶
type DeleteDocumentClassifierOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteEndpointInput ¶
type DeleteEndpointInput struct { // The Amazon Resource Number (ARN) of the endpoint being deleted. EndpointArn *string }
type DeleteEndpointOutput ¶
type DeleteEndpointOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteEntityRecognizerInput ¶
type DeleteEntityRecognizerInput struct { // The Amazon Resource Name (ARN) that identifies the entity recognizer. EntityRecognizerArn *string }
type DeleteEntityRecognizerOutput ¶
type DeleteEntityRecognizerOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeDocumentClassificationJobInput ¶
type DescribeDocumentClassificationJobInput struct { // The identifier that Amazon Comprehend generated for the job. The operation // returns this identifier in its response. JobId *string }
type DescribeDocumentClassificationJobOutput ¶
type DescribeDocumentClassificationJobOutput struct { // An object that describes the properties associated with the document // classification job. DocumentClassificationJobProperties *types.DocumentClassificationJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeDocumentClassifierInput ¶
type DescribeDocumentClassifierInput struct { // The Amazon Resource Name (ARN) that identifies the document classifier. The // operation returns this identifier in its response. DocumentClassifierArn *string }
type DescribeDocumentClassifierOutput ¶
type DescribeDocumentClassifierOutput struct { // An object that contains the properties associated with a document classifier. DocumentClassifierProperties *types.DocumentClassifierProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeDominantLanguageDetectionJobInput ¶
type DescribeDominantLanguageDetectionJobInput struct { // The identifier that Amazon Comprehend generated for the job. The operation // returns this identifier in its response. JobId *string }
type DescribeDominantLanguageDetectionJobOutput ¶
type DescribeDominantLanguageDetectionJobOutput struct { // An object that contains the properties associated with a dominant language // detection job. DominantLanguageDetectionJobProperties *types.DominantLanguageDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeEndpointInput ¶
type DescribeEndpointInput struct { // The Amazon Resource Number (ARN) of the endpoint being described. EndpointArn *string }
type DescribeEndpointOutput ¶
type DescribeEndpointOutput struct { // Describes information associated with the specific endpoint. EndpointProperties *types.EndpointProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeEntitiesDetectionJobInput ¶
type DescribeEntitiesDetectionJobInput struct { // The identifier that Amazon Comprehend generated for the job. The operation // returns this identifier in its response. JobId *string }
type DescribeEntitiesDetectionJobOutput ¶
type DescribeEntitiesDetectionJobOutput struct { // An object that contains the properties associated with an entities detection // job. EntitiesDetectionJobProperties *types.EntitiesDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeEntityRecognizerInput ¶
type DescribeEntityRecognizerInput struct { // The Amazon Resource Name (ARN) that identifies the entity recognizer. EntityRecognizerArn *string }
type DescribeEntityRecognizerOutput ¶
type DescribeEntityRecognizerOutput struct { // Describes information associated with an entity recognizer. EntityRecognizerProperties *types.EntityRecognizerProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeKeyPhrasesDetectionJobInput ¶
type DescribeKeyPhrasesDetectionJobInput struct { // The identifier that Amazon Comprehend generated for the job. The operation // returns this identifier in its response. JobId *string }
type DescribeKeyPhrasesDetectionJobOutput ¶
type DescribeKeyPhrasesDetectionJobOutput struct { // An object that contains the properties associated with a key phrases detection // job. KeyPhrasesDetectionJobProperties *types.KeyPhrasesDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeSentimentDetectionJobInput ¶
type DescribeSentimentDetectionJobInput struct { // The identifier that Amazon Comprehend generated for the job. The operation // returns this identifier in its response. JobId *string }
type DescribeSentimentDetectionJobOutput ¶
type DescribeSentimentDetectionJobOutput struct { // An object that contains the properties associated with a sentiment detection // job. SentimentDetectionJobProperties *types.SentimentDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeTopicsDetectionJobInput ¶
type DescribeTopicsDetectionJobInput struct { // The identifier assigned by the user to the detection job. JobId *string }
type DescribeTopicsDetectionJobOutput ¶
type DescribeTopicsDetectionJobOutput struct { // The list of properties for the requested job. TopicsDetectionJobProperties *types.TopicsDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DetectDominantLanguageInput ¶
type DetectDominantLanguageInput struct { // A UTF-8 text string. Each string should contain at least 20 characters and must // contain fewer that 5,000 bytes of UTF-8 encoded characters. Text *string }
type DetectDominantLanguageOutput ¶
type DetectDominantLanguageOutput struct { // The languages that Amazon Comprehend detected in the input text. For each // language, the response returns the RFC 5646 language code and the level of // confidence that Amazon Comprehend has in the accuracy of its inference. For more // information about RFC 5646, see Tags for Identifying Languages // (https://tools.ietf.org/html/rfc5646) on the IETF Tools web site. Languages []*types.DominantLanguage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DetectEntitiesInput ¶
type DetectEntitiesInput struct { // The Amazon Resource Name of an endpoint that is associated with a custom entity // recognition model. Provide an endpoint if you want to detect entities by using // your own custom model instead of the default model that is used by Amazon // Comprehend. If you specify an endpoint, Amazon Comprehend uses the language of // your custom model, and it ignores any language code that you provide in your // request. EndpointArn *string // The language of the input documents. You can specify any of the primary // languages supported by Amazon Comprehend. All documents must be in the same // language. If your request includes the endpoint for a custom entity recognition // model, Amazon Comprehend uses the language of your custom model, and it ignores // any language code that you specify here. LanguageCode types.LanguageCode // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 // encoded characters. Text *string }
type DetectEntitiesOutput ¶
type DetectEntitiesOutput struct { // A collection of entities identified in the input text. For each entity, the // response provides the entity text, entity type, where the entity text begins and // ends, and the level of confidence that Amazon Comprehend has in the detection. // If your request uses a custom entity recognition model, Amazon Comprehend // detects the entities that the model is trained to recognize. Otherwise, it // detects the default entity types. For a list of default entity types, see // how-entities (). Entities []*types.Entity // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DetectKeyPhrasesInput ¶
type DetectKeyPhrasesInput struct { // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 // encoded characters. Text *string // The language of the input documents. You can specify any of the primary // languages supported by Amazon Comprehend. All documents must be in the same // language. LanguageCode types.LanguageCode }
type DetectKeyPhrasesOutput ¶
type DetectKeyPhrasesOutput struct { // A collection of key phrases that Amazon Comprehend identified in the input text. // For each key phrase, the response provides the text of the key phrase, where the // key phrase begins and ends, and the level of confidence that Amazon Comprehend // has in the accuracy of the detection. KeyPhrases []*types.KeyPhrase // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DetectSentimentInput ¶
type DetectSentimentInput struct { // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 // encoded characters. Text *string // The language of the input documents. You can specify any of the primary // languages supported by Amazon Comprehend. All documents must be in the same // language. LanguageCode types.LanguageCode }
type DetectSentimentOutput ¶
type DetectSentimentOutput struct { // An object that lists the sentiments, and their corresponding confidence levels. SentimentScore *types.SentimentScore // The inferred sentiment that Amazon Comprehend has the highest level of // confidence in. Sentiment types.SentimentType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DetectSyntaxInput ¶
type DetectSyntaxInput struct { // A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded // characters. Text *string // The language code of the input documents. You can specify any of the following // languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish // ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). LanguageCode types.SyntaxLanguageCode }
type DetectSyntaxOutput ¶
type DetectSyntaxOutput struct { // A collection of syntax tokens describing the text. For each token, the response // provides the text, the token type, where the text begins and ends, and the level // of confidence that Amazon Comprehend has that the token is correct. For a list // of token types, see how-syntax (). SyntaxTokens []*types.SyntaxToken // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface { ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error) }
EndpointResolver interface for resolving service endpoints.
func WithEndpointResolver ¶
func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver
WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options ResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options ResolverOptions) (endpoint aws.Endpoint, err error)
type HTTPClient ¶
type HTTPSignerV4 ¶
type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time) error }
type IdempotencyTokenProvider ¶
IdempotencyTokenProvider interface for providing idempotency token
type ListDocumentClassificationJobsInput ¶
type ListDocumentClassificationJobsInput struct { // Filters the jobs that are returned. You can filter jobs on their names, status, // or the date and time that they were submitted. You can only set one filter at a // time. Filter *types.DocumentClassificationJobFilter // The maximum number of results to return in each page. The default is 100. MaxResults *int32 // Identifies the next page of results to return. NextToken *string }
type ListDocumentClassificationJobsOutput ¶
type ListDocumentClassificationJobsOutput struct { // A list containing the properties of each job returned. DocumentClassificationJobPropertiesList []*types.DocumentClassificationJobProperties // Identifies the next page of results to return. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListDocumentClassifiersInput ¶
type ListDocumentClassifiersInput struct { // Identifies the next page of results to return. NextToken *string // The maximum number of results to return in each page. The default is 100. MaxResults *int32 // Filters the jobs that are returned. You can filter jobs on their name, status, // or the date and time that they were submitted. You can only set one filter at a // time. Filter *types.DocumentClassifierFilter }
type ListDocumentClassifiersOutput ¶
type ListDocumentClassifiersOutput struct { // Identifies the next page of results to return. NextToken *string // A list containing the properties of each job returned. DocumentClassifierPropertiesList []*types.DocumentClassifierProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListDominantLanguageDetectionJobsInput ¶
type ListDominantLanguageDetectionJobsInput struct { // Identifies the next page of results to return. NextToken *string // Filters that jobs that are returned. You can filter jobs on their name, status, // or the date and time that they were submitted. You can only set one filter at a // time. Filter *types.DominantLanguageDetectionJobFilter // The maximum number of results to return in each page. The default is 100. MaxResults *int32 }
type ListDominantLanguageDetectionJobsOutput ¶
type ListDominantLanguageDetectionJobsOutput struct { // Identifies the next page of results to return. NextToken *string // A list containing the properties of each job that is returned. DominantLanguageDetectionJobPropertiesList []*types.DominantLanguageDetectionJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListEndpointsInput ¶
type ListEndpointsInput struct { // Identifies the next page of results to return. NextToken *string // The maximum number of results to return in each page. The default is 100. MaxResults *int32 // Filters the endpoints that are returned. You can filter endpoints on their name, // model, status, or the date and time that they were created. You can only set one // filter at a time. Filter *types.EndpointFilter }
type ListEndpointsOutput ¶
type ListEndpointsOutput struct { // Identifies the next page of results to return. NextToken *string // Displays a list of endpoint properties being retrieved by the service in // response to the request. EndpointPropertiesList []*types.EndpointProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListEntitiesDetectionJobsInput ¶
type ListEntitiesDetectionJobsInput struct { // Filters the jobs that are returned. You can filter jobs on their name, status, // or the date and time that they were submitted. You can only set one filter at a // time. Filter *types.EntitiesDetectionJobFilter // The maximum number of results to return in each page. The default is 100. MaxResults *int32 // Identifies the next page of results to return. NextToken *string }
type ListEntitiesDetectionJobsOutput ¶
type ListEntitiesDetectionJobsOutput struct { // A list containing the properties of each job that is returned. EntitiesDetectionJobPropertiesList []*types.EntitiesDetectionJobProperties // Identifies the next page of results to return. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListEntityRecognizersInput ¶
type ListEntityRecognizersInput struct { // Identifies the next page of results to return. NextToken *string // The maximum number of results to return on each page. The default is 100. MaxResults *int32 // Filters the list of entities returned. You can filter on Status, // SubmitTimeBefore, or SubmitTimeAfter. You can only set one filter at a time. Filter *types.EntityRecognizerFilter }
type ListEntityRecognizersOutput ¶
type ListEntityRecognizersOutput struct { // Identifies the next page of results to return. NextToken *string // The list of properties of an entity recognizer. EntityRecognizerPropertiesList []*types.EntityRecognizerProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListKeyPhrasesDetectionJobsInput ¶
type ListKeyPhrasesDetectionJobsInput struct { // Identifies the next page of results to return. NextToken *string // The maximum number of results to return in each page. The default is 100. MaxResults *int32 // Filters the jobs that are returned. You can filter jobs on their name, status, // or the date and time that they were submitted. You can only set one filter at a // time. Filter *types.KeyPhrasesDetectionJobFilter }
type ListKeyPhrasesDetectionJobsOutput ¶
type ListKeyPhrasesDetectionJobsOutput struct { // A list containing the properties of each job that is returned. KeyPhrasesDetectionJobPropertiesList []*types.KeyPhrasesDetectionJobProperties // Identifies the next page of results to return. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListSentimentDetectionJobsInput ¶
type ListSentimentDetectionJobsInput struct { // Identifies the next page of results to return. NextToken *string // Filters the jobs that are returned. You can filter jobs on their name, status, // or the date and time that they were submitted. You can only set one filter at a // time. Filter *types.SentimentDetectionJobFilter // The maximum number of results to return in each page. The default is 100. MaxResults *int32 }
type ListSentimentDetectionJobsOutput ¶
type ListSentimentDetectionJobsOutput struct { // A list containing the properties of each job that is returned. SentimentDetectionJobPropertiesList []*types.SentimentDetectionJobProperties // Identifies the next page of results to return. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are // querying. ResourceArn *string }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // Tags associated with the Amazon Comprehend resource being queried. 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. Tags []*types.Tag // The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are // querying. ResourceArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListTopicsDetectionJobsInput ¶
type ListTopicsDetectionJobsInput struct { // The maximum number of results to return in each page. The default is 100. MaxResults *int32 // Filters the jobs that are returned. Jobs can be filtered on their name, status, // or the date and time that they were submitted. You can set only one filter at a // time. Filter *types.TopicsDetectionJobFilter // Identifies the next page of results to return. NextToken *string }
type ListTopicsDetectionJobsOutput ¶
type ListTopicsDetectionJobsOutput struct { // A list containing the properties of each job that is returned. TopicsDetectionJobPropertiesList []*types.TopicsDetectionJobProperties // Identifies the next page of results to return. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions ResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // Provides idempotency tokens values that will be automatically populated into // idempotent API operations. IdempotencyTokenProvider IdempotencyTokenProvider // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer retry.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
func (Options) GetCredentials ¶
func (o Options) GetCredentials() aws.CredentialsProvider
func (Options) GetEndpointOptions ¶
func (o Options) GetEndpointOptions() ResolverOptions
func (Options) GetEndpointResolver ¶
func (o Options) GetEndpointResolver() EndpointResolver
func (Options) GetHTTPSignerV4 ¶
func (o Options) GetHTTPSignerV4() HTTPSignerV4
func (Options) GetIdempotencyTokenProvider ¶
func (o Options) GetIdempotencyTokenProvider() IdempotencyTokenProvider
func (Options) GetRegion ¶
func (Options) GetRetryer ¶
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options ResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type ResolveEndpointMiddlewareOptions ¶
type ResolveEndpointMiddlewareOptions interface { GetEndpointResolver() EndpointResolver GetEndpointOptions() ResolverOptions }
type ResolverOptions ¶
type ResolverOptions = internalendpoints.Options
ResolverOptions is the service endpoint resolver options
type StartDocumentClassificationJobInput ¶
type StartDocumentClassificationJobInput struct { // The Amazon Resource Name (ARN) of the document classifier to use to process the // job. DocumentClassifierArn *string // The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) // role that grants Amazon Comprehend read access to your input data. DataAccessRoleArn *string // Specifies where to send the output files. OutputDataConfig *types.OutputDataConfig // Specifies the format and location of the input data for the job. InputDataConfig *types.InputDataConfig // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that // process the analysis job. The VolumeKmsKeyId can be either of the following // formats: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * Amazon // Resource Name (ARN) of a KMS Key: // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string // The identifier of the job. JobName *string // Configuration parameters for an optional private Virtual Private Cloud (VPC) // containing the resources you are using for your document classification job. For // more information, see Amazon VPC // (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). VpcConfig *types.VpcConfig // A unique identifier for the request. If you do not set the client request token, // Amazon Comprehend generates one. ClientRequestToken *string }
type StartDocumentClassificationJobOutput ¶
type StartDocumentClassificationJobOutput struct { // The status of the job: // // * SUBMITTED - The job has been received and queued // for processing. // // * IN_PROGRESS - Amazon Comprehend is processing the job. // // // * COMPLETED - The job was successfully completed and the output is available. // // // * FAILED - The job did not complete. For details, use the operation. // // * // STOP_REQUESTED - Amazon Comprehend has received a stop request for the job and // is processing the request. // // * STOPPED - The job was successfully stopped // without completing. JobStatus types.JobStatus // The identifier generated for the job. To get the status of the job, use this // identifier with the operation. JobId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartDominantLanguageDetectionJobInput ¶
type StartDominantLanguageDetectionJobInput struct { // An identifier for the job. JobName *string // Specifies the format and location of the input data for the job. InputDataConfig *types.InputDataConfig // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that // process the analysis job. The VolumeKmsKeyId can be either of the following // formats: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * Amazon // Resource Name (ARN) of a KMS Key: // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string // The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) // role that grants Amazon Comprehend read access to your input data. For more // information, see // https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). DataAccessRoleArn *string // Configuration parameters for an optional private Virtual Private Cloud (VPC) // containing the resources you are using for your dominant language detection job. // For more information, see Amazon VPC // (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). VpcConfig *types.VpcConfig // A unique identifier for the request. If you do not set the client request token, // Amazon Comprehend generates one. ClientRequestToken *string // Specifies where to send the output files. OutputDataConfig *types.OutputDataConfig }
type StartDominantLanguageDetectionJobOutput ¶
type StartDominantLanguageDetectionJobOutput struct { // The identifier generated for the job. To get the status of a job, use this // identifier with the operation. JobId *string // The status of the job. // // * SUBMITTED - The job has been received and is // queued for processing. // // * IN_PROGRESS - Amazon Comprehend is processing the // job. // // * COMPLETED - The job was successfully completed and the output is // available. // // * FAILED - The job did not complete. To get details, use the // operation. JobStatus types.JobStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartEntitiesDetectionJobInput ¶
type StartEntitiesDetectionJobInput struct { // Specifies where to send the output files. OutputDataConfig *types.OutputDataConfig // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that // process the analysis job. The VolumeKmsKeyId can be either of the following // formats: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * Amazon // Resource Name (ARN) of a KMS Key: // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string // The Amazon Resource Name (ARN) that identifies the specific entity recognizer to // be used by the StartEntitiesDetectionJob. This ARN is optional and is only used // for a custom entity recognition job. EntityRecognizerArn *string // Specifies the format and location of the input data for the job. InputDataConfig *types.InputDataConfig // The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) // role that grants Amazon Comprehend read access to your input data. For more // information, see // https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). DataAccessRoleArn *string // The identifier of the job. JobName *string // Configuration parameters for an optional private Virtual Private Cloud (VPC) // containing the resources you are using for your entity detection job. For more // information, see Amazon VPC // (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). VpcConfig *types.VpcConfig // The language of the input documents. All documents must be in the same language. // You can specify any of the languages supported by Amazon Comprehend. If custom // entities recognition is used, this parameter is ignored and the language used // for training the model is used instead. LanguageCode types.LanguageCode // A unique identifier for the request. If you don't set the client request token, // Amazon Comprehend generates one. ClientRequestToken *string }
type StartEntitiesDetectionJobOutput ¶
type StartEntitiesDetectionJobOutput struct { // The identifier generated for the job. To get the status of job, use this // identifier with the operation. JobId *string // The status of the job. // // * SUBMITTED - The job has been received and is // queued for processing. // // * IN_PROGRESS - Amazon Comprehend is processing the // job. // // * COMPLETED - The job was successfully completed and the output is // available. // // * FAILED - The job did not complete. To get details, use the // operation. // // * STOP_REQUESTED - Amazon Comprehend has received a stop request // for the job and is processing the request. // // * STOPPED - The job was // successfully stopped without completing. JobStatus types.JobStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartKeyPhrasesDetectionJobInput ¶
type StartKeyPhrasesDetectionJobInput struct { // Configuration parameters for an optional private Virtual Private Cloud (VPC) // containing the resources you are using for your key phrases detection job. For // more information, see Amazon VPC // (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). VpcConfig *types.VpcConfig // Specifies the format and location of the input data for the job. InputDataConfig *types.InputDataConfig // The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) // role that grants Amazon Comprehend read access to your input data. For more // information, see // https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). DataAccessRoleArn *string // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that // process the analysis job. The VolumeKmsKeyId can be either of the following // formats: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * Amazon // Resource Name (ARN) of a KMS Key: // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string // Specifies where to send the output files. OutputDataConfig *types.OutputDataConfig // A unique identifier for the request. If you don't set the client request token, // Amazon Comprehend generates one. ClientRequestToken *string // The language of the input documents. You can specify any of the primary // languages supported by Amazon Comprehend. All documents must be in the same // language. LanguageCode types.LanguageCode // The identifier of the job. JobName *string }
type StartKeyPhrasesDetectionJobOutput ¶
type StartKeyPhrasesDetectionJobOutput struct { // The status of the job. // // * SUBMITTED - The job has been received and is // queued for processing. // // * IN_PROGRESS - Amazon Comprehend is processing the // job. // // * COMPLETED - The job was successfully completed and the output is // available. // // * FAILED - The job did not complete. To get details, use the // operation. JobStatus types.JobStatus // The identifier generated for the job. To get the status of a job, use this // identifier with the operation. JobId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartSentimentDetectionJobInput ¶
type StartSentimentDetectionJobInput struct { // Specifies the format and location of the input data for the job. InputDataConfig *types.InputDataConfig // The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) // role that grants Amazon Comprehend read access to your input data. For more // information, see // https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). DataAccessRoleArn *string // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that // process the analysis job. The VolumeKmsKeyId can be either of the following // formats: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * Amazon // Resource Name (ARN) of a KMS Key: // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string // Specifies where to send the output files. OutputDataConfig *types.OutputDataConfig // Configuration parameters for an optional private Virtual Private Cloud (VPC) // containing the resources you are using for your sentiment detection job. For // more information, see Amazon VPC // (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). VpcConfig *types.VpcConfig // A unique identifier for the request. If you don't set the client request token, // Amazon Comprehend generates one. ClientRequestToken *string // The language of the input documents. You can specify any of the primary // languages supported by Amazon Comprehend. All documents must be in the same // language. LanguageCode types.LanguageCode // The identifier of the job. JobName *string }
type StartSentimentDetectionJobOutput ¶
type StartSentimentDetectionJobOutput struct { // The identifier generated for the job. To get the status of a job, use this // identifier with the operation. JobId *string // The status of the job. // // * SUBMITTED - The job has been received and is // queued for processing. // // * IN_PROGRESS - Amazon Comprehend is processing the // job. // // * COMPLETED - The job was successfully completed and the output is // available. // // * FAILED - The job did not complete. To get details, use the // operation. JobStatus types.JobStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartTopicsDetectionJobInput ¶
type StartTopicsDetectionJobInput struct { // The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) // role that grants Amazon Comprehend read access to your input data. For more // information, see // https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). DataAccessRoleArn *string // A unique identifier for the request. If you do not set the client request token, // Amazon Comprehend generates one. ClientRequestToken *string // Configuration parameters for an optional private Virtual Private Cloud (VPC) // containing the resources you are using for your topic detection job. For more // information, see Amazon VPC // (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). VpcConfig *types.VpcConfig // Specifies the format and location of the input data for the job. InputDataConfig *types.InputDataConfig // The number of topics to detect. NumberOfTopics *int32 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to // encrypt data on the storage volume attached to the ML compute instance(s) that // process the analysis job. The VolumeKmsKeyId can be either of the following // formats: // // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" // // * Amazon // Resource Name (ARN) of a KMS Key: // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string // Specifies where to send the output files. The output is a compressed archive // with two files, topic-terms.csv that lists the terms associated with each topic, // and doc-topics.csv that lists the documents associated with each topic OutputDataConfig *types.OutputDataConfig // The identifier of the job. JobName *string }
type StartTopicsDetectionJobOutput ¶
type StartTopicsDetectionJobOutput struct { // The status of the job: // // * SUBMITTED - The job has been received and is // queued for processing. // // * IN_PROGRESS - Amazon Comprehend is processing the // job. // // * COMPLETED - The job was successfully completed and the output is // available. // // * FAILED - The job did not complete. To get details, use the // DescribeTopicDetectionJob operation. JobStatus types.JobStatus // The identifier generated for the job. To get the status of the job, use this // identifier with the DescribeTopicDetectionJob operation. JobId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopDominantLanguageDetectionJobInput ¶
type StopDominantLanguageDetectionJobInput struct { // The identifier of the dominant language detection job to stop. JobId *string }
type StopDominantLanguageDetectionJobOutput ¶
type StopDominantLanguageDetectionJobOutput struct { // Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was // previously stopped with the StopDominantLanguageDetectionJob operation. JobStatus types.JobStatus // The identifier of the dominant language detection job to stop. JobId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopEntitiesDetectionJobInput ¶
type StopEntitiesDetectionJobInput struct { // The identifier of the entities detection job to stop. JobId *string }
type StopEntitiesDetectionJobOutput ¶
type StopEntitiesDetectionJobOutput struct { // The identifier of the entities detection job to stop. JobId *string // Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was // previously stopped with the StopEntitiesDetectionJob operation. JobStatus types.JobStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopKeyPhrasesDetectionJobInput ¶
type StopKeyPhrasesDetectionJobInput struct { // The identifier of the key phrases detection job to stop. JobId *string }
type StopKeyPhrasesDetectionJobOutput ¶
type StopKeyPhrasesDetectionJobOutput struct { // The identifier of the key phrases detection job to stop. JobId *string // Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was // previously stopped with the StopKeyPhrasesDetectionJob operation. JobStatus types.JobStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopSentimentDetectionJobInput ¶
type StopSentimentDetectionJobInput struct { // The identifier of the sentiment detection job to stop. JobId *string }
type StopSentimentDetectionJobOutput ¶
type StopSentimentDetectionJobOutput struct { // Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was // previously stopped with the StopSentimentDetectionJob operation. JobStatus types.JobStatus // The identifier of the sentiment detection job to stop. JobId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopTrainingDocumentClassifierInput ¶
type StopTrainingDocumentClassifierInput struct { // The Amazon Resource Name (ARN) that identifies the document classifier currently // being trained. DocumentClassifierArn *string }
type StopTrainingDocumentClassifierOutput ¶
type StopTrainingDocumentClassifierOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopTrainingEntityRecognizerInput ¶
type StopTrainingEntityRecognizerInput struct { // The Amazon Resource Name (ARN) that identifies the entity recognizer currently // being trained. EntityRecognizerArn *string }
type StopTrainingEntityRecognizerOutput ¶
type StopTrainingEntityRecognizerOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which // you want to associate the tags. ResourceArn *string // Tags being associated with a specific Amazon Comprehend resource. There can be a // maximum of 50 tags (both existing and pending) associated with a specific // resource. Tags []*types.Tag }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from // which you want to remove the tags. ResourceArn *string // The initial part of a key-value pair that forms a tag being removed from a given // resource. For example, a tag with "Sales" as the key might be added to a // resource to indicate its use by the sales department. Keys must be unique and // cannot be duplicated for a particular resource. TagKeys []*string }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateEndpointInput ¶
type UpdateEndpointInput struct { // The Amazon Resource Number (ARN) of the endpoint being updated. EndpointArn *string // The desired number of inference units to be used by the model using this // endpoint. Each inference unit represents of a throughput of 100 characters per // second. DesiredInferenceUnits *int32 }
type UpdateEndpointOutput ¶
type UpdateEndpointOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files ¶
api_client.go api_op_BatchDetectDominantLanguage.go api_op_BatchDetectEntities.go api_op_BatchDetectKeyPhrases.go api_op_BatchDetectSentiment.go api_op_BatchDetectSyntax.go api_op_ClassifyDocument.go api_op_CreateDocumentClassifier.go api_op_CreateEndpoint.go api_op_CreateEntityRecognizer.go api_op_DeleteDocumentClassifier.go api_op_DeleteEndpoint.go api_op_DeleteEntityRecognizer.go api_op_DescribeDocumentClassificationJob.go api_op_DescribeDocumentClassifier.go api_op_DescribeDominantLanguageDetectionJob.go api_op_DescribeEndpoint.go api_op_DescribeEntitiesDetectionJob.go api_op_DescribeEntityRecognizer.go api_op_DescribeKeyPhrasesDetectionJob.go api_op_DescribeSentimentDetectionJob.go api_op_DescribeTopicsDetectionJob.go api_op_DetectDominantLanguage.go api_op_DetectEntities.go api_op_DetectKeyPhrases.go api_op_DetectSentiment.go api_op_DetectSyntax.go api_op_ListDocumentClassificationJobs.go api_op_ListDocumentClassifiers.go api_op_ListDominantLanguageDetectionJobs.go api_op_ListEndpoints.go api_op_ListEntitiesDetectionJobs.go api_op_ListEntityRecognizers.go api_op_ListKeyPhrasesDetectionJobs.go api_op_ListSentimentDetectionJobs.go api_op_ListTagsForResource.go api_op_ListTopicsDetectionJobs.go api_op_StartDocumentClassificationJob.go api_op_StartDominantLanguageDetectionJob.go api_op_StartEntitiesDetectionJob.go api_op_StartKeyPhrasesDetectionJob.go api_op_StartSentimentDetectionJob.go api_op_StartTopicsDetectionJob.go api_op_StopDominantLanguageDetectionJob.go api_op_StopEntitiesDetectionJob.go api_op_StopKeyPhrasesDetectionJob.go api_op_StopSentimentDetectionJob.go api_op_StopTrainingDocumentClassifier.go api_op_StopTrainingEntityRecognizer.go api_op_TagResource.go api_op_UntagResource.go api_op_UpdateEndpoint.go deserializers.go endpoints.go serializers.go validators.go
Directories ¶
Path | Synopsis |
---|---|
internal | |
types |
- Version
- v0.1.0
- Published
- Sep 29, 2020
- Platform
- js/wasm
- Imports
- 28 packages
- Last checked
- now –
Tools for package owners.