comprehend

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 31

Documentation

Overview

Package comprehend provides the client and types for making API requests to Amazon Comprehend.

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.

See https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27 for more information on this service.

See comprehend package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/comprehend/

Using the Client

To Amazon Comprehend with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon Comprehend client Comprehend for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/comprehend/#New

Index

Constants

View Source
const (

	// ErrCodeBatchSizeLimitExceededException for service response error code
	// "BatchSizeLimitExceededException".
	//
	// The number of documents in the request exceeds the limit of 25. Try your
	// request again with fewer documents.
	ErrCodeBatchSizeLimitExceededException = "BatchSizeLimitExceededException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// An internal server error occurred. Retry your request.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeInvalidFilterException for service response error code
	// "InvalidFilterException".
	//
	// The filter specified for the ListTopicDetectionJobs operation is invalid.
	// Specify a different filter.
	ErrCodeInvalidFilterException = "InvalidFilterException"

	// ErrCodeInvalidRequestException for service response error code
	// "InvalidRequestException".
	//
	// The request is invalid.
	ErrCodeInvalidRequestException = "InvalidRequestException"

	// ErrCodeJobNotFoundException for service response error code
	// "JobNotFoundException".
	//
	// The specified job was not found. Check the job ID and try again.
	ErrCodeJobNotFoundException = "JobNotFoundException"

	// ErrCodeTextSizeLimitExceededException for service response error code
	// "TextSizeLimitExceededException".
	//
	// The size of the input text exceeds the limit. Use a smaller document.
	ErrCodeTextSizeLimitExceededException = "TextSizeLimitExceededException"

	// ErrCodeTooManyRequestsException for service response error code
	// "TooManyRequestsException".
	//
	// The number of requests exceeds the limit. Resubmit your request later.
	ErrCodeTooManyRequestsException = "TooManyRequestsException"

	// ErrCodeUnsupportedLanguageException for service response error code
	// "UnsupportedLanguageException".
	//
	// Amazon Comprehend can't process the language of the input text. For all APIs
	// except DetectDominantLanguage, Amazon Comprehend accepts only English or
	// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects
	// 100 languages. For a list of languages, see how-languages
	ErrCodeUnsupportedLanguageException = "UnsupportedLanguageException"
)
View Source
const (
	ServiceName = "comprehend" // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName  // Service ID for Regions and Endpoints metadata.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

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 is a required field
	TextList []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectDominantLanguageRequest

func (BatchDetectDominantLanguageInput) GoString

GoString returns the string representation

func (BatchDetectDominantLanguageInput) String

String returns the string representation

func (*BatchDetectDominantLanguageInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type BatchDetectDominantLanguageItemResult

type BatchDetectDominantLanguageItemResult struct {

	// The zero-based index of the document in the input list.
	Index *int64 `type:"integer"`

	// One or more DominantLanguage objects describing the dominant languages in
	// the document.
	Languages []DominantLanguage `type:"list"`
	// contains filtered or unexported fields
}

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectDominantLanguageItemResult

func (BatchDetectDominantLanguageItemResult) GoString

GoString returns the string representation

func (BatchDetectDominantLanguageItemResult) String

String returns the string representation

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 is a required field
	ErrorList []BatchItemError `type:"list" required:"true"`

	// 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 is a required field
	ResultList []BatchDetectDominantLanguageItemResult `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectDominantLanguageResponse

func (BatchDetectDominantLanguageOutput) GoString

GoString returns the string representation

func (BatchDetectDominantLanguageOutput) SDKResponseMetadata

func (s BatchDetectDominantLanguageOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (BatchDetectDominantLanguageOutput) String

String returns the string representation

type BatchDetectDominantLanguageRequest

type BatchDetectDominantLanguageRequest struct {
	*aws.Request
	Input *BatchDetectDominantLanguageInput
	Copy  func(*BatchDetectDominantLanguageInput) BatchDetectDominantLanguageRequest
}

BatchDetectDominantLanguageRequest is a API request type for the BatchDetectDominantLanguage API operation.

func (BatchDetectDominantLanguageRequest) Send

Send marshals and sends the BatchDetectDominantLanguage API request.

type BatchDetectEntitiesInput

type BatchDetectEntitiesInput struct {

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// 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 is a required field
	TextList []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectEntitiesRequest

func (BatchDetectEntitiesInput) GoString

func (s BatchDetectEntitiesInput) GoString() string

GoString returns the string representation

func (BatchDetectEntitiesInput) String

func (s BatchDetectEntitiesInput) String() string

String returns the string representation

func (*BatchDetectEntitiesInput) Validate

func (s *BatchDetectEntitiesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchDetectEntitiesItemResult

type BatchDetectEntitiesItemResult struct {

	// One or more Entity objects, one for each entity detected in the document.
	Entities []Entity `type:"list"`

	// The zero-based index of the document in the input list.
	Index *int64 `type:"integer"`
	// contains filtered or unexported fields
}

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectEntitiesItemResult

func (BatchDetectEntitiesItemResult) GoString

GoString returns the string representation

func (BatchDetectEntitiesItemResult) String

String returns the string representation

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 is a required field
	ErrorList []BatchItemError `type:"list" required:"true"`

	// 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 is a required field
	ResultList []BatchDetectEntitiesItemResult `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectEntitiesResponse

func (BatchDetectEntitiesOutput) GoString

func (s BatchDetectEntitiesOutput) GoString() string

GoString returns the string representation

func (BatchDetectEntitiesOutput) SDKResponseMetadata

func (s BatchDetectEntitiesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (BatchDetectEntitiesOutput) String

func (s BatchDetectEntitiesOutput) String() string

String returns the string representation

type BatchDetectEntitiesRequest

type BatchDetectEntitiesRequest struct {
	*aws.Request
	Input *BatchDetectEntitiesInput
	Copy  func(*BatchDetectEntitiesInput) BatchDetectEntitiesRequest
}

BatchDetectEntitiesRequest is a API request type for the BatchDetectEntities API operation.

func (BatchDetectEntitiesRequest) Send

Send marshals and sends the BatchDetectEntities API request.

type BatchDetectKeyPhrasesInput

type BatchDetectKeyPhrasesInput struct {

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// 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 is a required field
	TextList []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectKeyPhrasesRequest

func (BatchDetectKeyPhrasesInput) GoString

func (s BatchDetectKeyPhrasesInput) GoString() string

GoString returns the string representation

func (BatchDetectKeyPhrasesInput) String

String returns the string representation

func (*BatchDetectKeyPhrasesInput) Validate

func (s *BatchDetectKeyPhrasesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchDetectKeyPhrasesItemResult

type BatchDetectKeyPhrasesItemResult struct {

	// The zero-based index of the document in the input list.
	Index *int64 `type:"integer"`

	// One or more KeyPhrase objects, one for each key phrase detected in the document.
	KeyPhrases []KeyPhrase `type:"list"`
	// contains filtered or unexported fields
}

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectKeyPhrasesItemResult

func (BatchDetectKeyPhrasesItemResult) GoString

GoString returns the string representation

func (BatchDetectKeyPhrasesItemResult) String

String returns the string representation

type BatchDetectKeyPhrasesOutput

type BatchDetectKeyPhrasesOutput 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 is a required field
	ErrorList []BatchItemError `type:"list" required:"true"`

	// 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 is a required field
	ResultList []BatchDetectKeyPhrasesItemResult `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectKeyPhrasesResponse

func (BatchDetectKeyPhrasesOutput) GoString

func (s BatchDetectKeyPhrasesOutput) GoString() string

GoString returns the string representation

func (BatchDetectKeyPhrasesOutput) SDKResponseMetadata

func (s BatchDetectKeyPhrasesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (BatchDetectKeyPhrasesOutput) String

String returns the string representation

type BatchDetectKeyPhrasesRequest

type BatchDetectKeyPhrasesRequest struct {
	*aws.Request
	Input *BatchDetectKeyPhrasesInput
	Copy  func(*BatchDetectKeyPhrasesInput) BatchDetectKeyPhrasesRequest
}

BatchDetectKeyPhrasesRequest is a API request type for the BatchDetectKeyPhrases API operation.

func (BatchDetectKeyPhrasesRequest) Send

Send marshals and sends the BatchDetectKeyPhrases API request.

type BatchDetectSentimentInput

type BatchDetectSentimentInput struct {

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// 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 is a required field
	TextList []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentimentRequest

func (BatchDetectSentimentInput) GoString

func (s BatchDetectSentimentInput) GoString() string

GoString returns the string representation

func (BatchDetectSentimentInput) String

func (s BatchDetectSentimentInput) String() string

String returns the string representation

func (*BatchDetectSentimentInput) Validate

func (s *BatchDetectSentimentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchDetectSentimentItemResult

type BatchDetectSentimentItemResult struct {

	// The zero-based index of the document in the input list.
	Index *int64 `type:"integer"`

	// The sentiment detected in the document.
	Sentiment SentimentType `type:"string" enum:"true"`

	// The level of confidence that Amazon Comprehend has in the accuracy of its
	// sentiment detection.
	SentimentScore *SentimentScore `type:"structure"`
	// contains filtered or unexported fields
}

The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentimentItemResult

func (BatchDetectSentimentItemResult) GoString

GoString returns the string representation

func (BatchDetectSentimentItemResult) String

String returns the string representation

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 is a required field
	ErrorList []BatchItemError `type:"list" required:"true"`

	// 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 is a required field
	ResultList []BatchDetectSentimentItemResult `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentimentResponse

func (BatchDetectSentimentOutput) GoString

func (s BatchDetectSentimentOutput) GoString() string

GoString returns the string representation

func (BatchDetectSentimentOutput) SDKResponseMetadata

func (s BatchDetectSentimentOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (BatchDetectSentimentOutput) String

String returns the string representation

type BatchDetectSentimentRequest

type BatchDetectSentimentRequest struct {
	*aws.Request
	Input *BatchDetectSentimentInput
	Copy  func(*BatchDetectSentimentInput) BatchDetectSentimentRequest
}

BatchDetectSentimentRequest is a API request type for the BatchDetectSentiment API operation.

func (BatchDetectSentimentRequest) Send

Send marshals and sends the BatchDetectSentiment API request.

type BatchDetectSyntaxInput added in v0.5.0

type BatchDetectSyntaxInput struct {

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode SyntaxLanguageCode `type:"string" required:"true" enum:"true"`

	// 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 is a required field
	TextList []string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSyntaxRequest

func (BatchDetectSyntaxInput) GoString added in v0.5.0

func (s BatchDetectSyntaxInput) GoString() string

GoString returns the string representation

func (BatchDetectSyntaxInput) String added in v0.5.0

func (s BatchDetectSyntaxInput) String() string

String returns the string representation

func (*BatchDetectSyntaxInput) Validate added in v0.5.0

func (s *BatchDetectSyntaxInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchDetectSyntaxItemResult added in v0.5.0

type BatchDetectSyntaxItemResult struct {

	// The zero-based index of the document in the input list.
	Index *int64 `type:"integer"`

	// The syntax tokens for the words in the document, one token for each word.
	SyntaxTokens []SyntaxToken `type:"list"`
	// contains filtered or unexported fields
}

The result of calling the operation. The operation returns one object that is successfully processed by the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSyntaxItemResult

func (BatchDetectSyntaxItemResult) GoString added in v0.5.0

func (s BatchDetectSyntaxItemResult) GoString() string

GoString returns the string representation

func (BatchDetectSyntaxItemResult) String added in v0.5.0

String returns the string representation

type BatchDetectSyntaxOutput added in v0.5.0

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 is a required field
	ErrorList []BatchItemError `type:"list" required:"true"`

	// 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 is a required field
	ResultList []BatchDetectSyntaxItemResult `type:"list" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSyntaxResponse

func (BatchDetectSyntaxOutput) GoString added in v0.5.0

func (s BatchDetectSyntaxOutput) GoString() string

GoString returns the string representation

func (BatchDetectSyntaxOutput) SDKResponseMetadata added in v0.5.0

func (s BatchDetectSyntaxOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (BatchDetectSyntaxOutput) String added in v0.5.0

func (s BatchDetectSyntaxOutput) String() string

String returns the string representation

type BatchDetectSyntaxRequest added in v0.5.0

type BatchDetectSyntaxRequest struct {
	*aws.Request
	Input *BatchDetectSyntaxInput
	Copy  func(*BatchDetectSyntaxInput) BatchDetectSyntaxRequest
}

BatchDetectSyntaxRequest is a API request type for the BatchDetectSyntax API operation.

func (BatchDetectSyntaxRequest) Send added in v0.5.0

Send marshals and sends the BatchDetectSyntax API request.

type BatchItemError

type BatchItemError struct {

	// The numeric error code of the error.
	ErrorCode *string `min:"1" type:"string"`

	// A text description of the error.
	ErrorMessage *string `min:"1" type:"string"`

	// The zero-based index of the document in the input list.
	Index *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Describes an error that occurred while processing a document in a batch. The operation returns on BatchItemError object for each document that contained an error. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchItemError

func (BatchItemError) GoString

func (s BatchItemError) GoString() string

GoString returns the string representation

func (BatchItemError) String

func (s BatchItemError) String() string

String returns the string representation

type Comprehend

type Comprehend struct {
	*aws.Client
}

Comprehend provides the API operation methods for making requests to Amazon Comprehend. See this package's package overview docs for details on the service.

Comprehend methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *Comprehend

New creates a new instance of the Comprehend client with a config.

Example:

// Create a Comprehend client from just a config.
svc := comprehend.New(myConfig)

func (*Comprehend) BatchDetectDominantLanguageRequest

func (c *Comprehend) BatchDetectDominantLanguageRequest(input *BatchDetectDominantLanguageInput) BatchDetectDominantLanguageRequest

BatchDetectDominantLanguageRequest returns a request value for making API operation for Amazon Comprehend.

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 (http://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html).

// Example sending a request using the BatchDetectDominantLanguageRequest method.
req := client.BatchDetectDominantLanguageRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectDominantLanguage

func (*Comprehend) BatchDetectEntitiesRequest

func (c *Comprehend) BatchDetectEntitiesRequest(input *BatchDetectEntitiesInput) BatchDetectEntitiesRequest

BatchDetectEntitiesRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the BatchDetectEntitiesRequest method.
req := client.BatchDetectEntitiesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectEntities

func (*Comprehend) BatchDetectKeyPhrasesRequest

func (c *Comprehend) BatchDetectKeyPhrasesRequest(input *BatchDetectKeyPhrasesInput) BatchDetectKeyPhrasesRequest

BatchDetectKeyPhrasesRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the BatchDetectKeyPhrasesRequest method.
req := client.BatchDetectKeyPhrasesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectKeyPhrases

func (*Comprehend) BatchDetectSentimentRequest

func (c *Comprehend) BatchDetectSentimentRequest(input *BatchDetectSentimentInput) BatchDetectSentimentRequest

BatchDetectSentimentRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the BatchDetectSentimentRequest method.
req := client.BatchDetectSentimentRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentiment

func (*Comprehend) BatchDetectSyntaxRequest added in v0.5.0

func (c *Comprehend) BatchDetectSyntaxRequest(input *BatchDetectSyntaxInput) BatchDetectSyntaxRequest

BatchDetectSyntaxRequest returns a request value for making API operation for Amazon Comprehend.

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.

// Example sending a request using the BatchDetectSyntaxRequest method.
req := client.BatchDetectSyntaxRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSyntax

func (*Comprehend) DescribeDominantLanguageDetectionJobRequest added in v0.5.0

func (c *Comprehend) DescribeDominantLanguageDetectionJobRequest(input *DescribeDominantLanguageDetectionJobInput) DescribeDominantLanguageDetectionJobRequest

DescribeDominantLanguageDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the DescribeDominantLanguageDetectionJobRequest method.
req := client.DescribeDominantLanguageDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJob

func (*Comprehend) DescribeEntitiesDetectionJobRequest added in v0.5.0

func (c *Comprehend) DescribeEntitiesDetectionJobRequest(input *DescribeEntitiesDetectionJobInput) DescribeEntitiesDetectionJobRequest

DescribeEntitiesDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the DescribeEntitiesDetectionJobRequest method.
req := client.DescribeEntitiesDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJob

func (*Comprehend) DescribeKeyPhrasesDetectionJobRequest added in v0.5.0

func (c *Comprehend) DescribeKeyPhrasesDetectionJobRequest(input *DescribeKeyPhrasesDetectionJobInput) DescribeKeyPhrasesDetectionJobRequest

DescribeKeyPhrasesDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the DescribeKeyPhrasesDetectionJobRequest method.
req := client.DescribeKeyPhrasesDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJob

func (*Comprehend) DescribeSentimentDetectionJobRequest added in v0.5.0

func (c *Comprehend) DescribeSentimentDetectionJobRequest(input *DescribeSentimentDetectionJobInput) DescribeSentimentDetectionJobRequest

DescribeSentimentDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the DescribeSentimentDetectionJobRequest method.
req := client.DescribeSentimentDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJob

func (*Comprehend) DescribeTopicsDetectionJobRequest

func (c *Comprehend) DescribeTopicsDetectionJobRequest(input *DescribeTopicsDetectionJobInput) DescribeTopicsDetectionJobRequest

DescribeTopicsDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the DescribeTopicsDetectionJobRequest method.
req := client.DescribeTopicsDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJob

func (*Comprehend) DetectDominantLanguageRequest

func (c *Comprehend) DetectDominantLanguageRequest(input *DetectDominantLanguageInput) DetectDominantLanguageRequest

DetectDominantLanguageRequest returns a request value for making API operation for Amazon Comprehend.

Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages (http://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html).

// Example sending a request using the DetectDominantLanguageRequest method.
req := client.DetectDominantLanguageRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguage

func (*Comprehend) DetectEntitiesRequest

func (c *Comprehend) DetectEntitiesRequest(input *DetectEntitiesInput) DetectEntitiesRequest

DetectEntitiesRequest returns a request value for making API operation for Amazon Comprehend.

Inspects text for named entities, and returns information about them. For more information, about named entities, see how-entities.

// Example sending a request using the DetectEntitiesRequest method.
req := client.DetectEntitiesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntities

func (*Comprehend) DetectKeyPhrasesRequest

func (c *Comprehend) DetectKeyPhrasesRequest(input *DetectKeyPhrasesInput) DetectKeyPhrasesRequest

DetectKeyPhrasesRequest returns a request value for making API operation for Amazon Comprehend.

Detects the key noun phrases found in the text.

// Example sending a request using the DetectKeyPhrasesRequest method.
req := client.DetectKeyPhrasesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrases

func (*Comprehend) DetectSentimentRequest

func (c *Comprehend) DetectSentimentRequest(input *DetectSentimentInput) DetectSentimentRequest

DetectSentimentRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the DetectSentimentRequest method.
req := client.DetectSentimentRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentiment

func (*Comprehend) DetectSyntaxRequest added in v0.5.0

func (c *Comprehend) DetectSyntaxRequest(input *DetectSyntaxInput) DetectSyntaxRequest

DetectSyntaxRequest returns a request value for making API operation for Amazon Comprehend.

Inspects text for syntax and the part of speech of words in the document. For more information, how-syntax.

// Example sending a request using the DetectSyntaxRequest method.
req := client.DetectSyntaxRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntax

func (*Comprehend) ListDominantLanguageDetectionJobsRequest added in v0.5.0

func (c *Comprehend) ListDominantLanguageDetectionJobsRequest(input *ListDominantLanguageDetectionJobsInput) ListDominantLanguageDetectionJobsRequest

ListDominantLanguageDetectionJobsRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the ListDominantLanguageDetectionJobsRequest method.
req := client.ListDominantLanguageDetectionJobsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobs

func (*Comprehend) ListEntitiesDetectionJobsRequest added in v0.5.0

func (c *Comprehend) ListEntitiesDetectionJobsRequest(input *ListEntitiesDetectionJobsInput) ListEntitiesDetectionJobsRequest

ListEntitiesDetectionJobsRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the ListEntitiesDetectionJobsRequest method.
req := client.ListEntitiesDetectionJobsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobs

func (*Comprehend) ListKeyPhrasesDetectionJobsRequest added in v0.5.0

func (c *Comprehend) ListKeyPhrasesDetectionJobsRequest(input *ListKeyPhrasesDetectionJobsInput) ListKeyPhrasesDetectionJobsRequest

ListKeyPhrasesDetectionJobsRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the ListKeyPhrasesDetectionJobsRequest method.
req := client.ListKeyPhrasesDetectionJobsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobs

func (*Comprehend) ListSentimentDetectionJobsRequest added in v0.5.0

func (c *Comprehend) ListSentimentDetectionJobsRequest(input *ListSentimentDetectionJobsInput) ListSentimentDetectionJobsRequest

ListSentimentDetectionJobsRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the ListSentimentDetectionJobsRequest method.
req := client.ListSentimentDetectionJobsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobs

func (*Comprehend) ListTopicsDetectionJobsRequest

func (c *Comprehend) ListTopicsDetectionJobsRequest(input *ListTopicsDetectionJobsInput) ListTopicsDetectionJobsRequest

ListTopicsDetectionJobsRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the ListTopicsDetectionJobsRequest method.
req := client.ListTopicsDetectionJobsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobs

func (*Comprehend) StartDominantLanguageDetectionJobRequest added in v0.5.0

func (c *Comprehend) StartDominantLanguageDetectionJobRequest(input *StartDominantLanguageDetectionJobInput) StartDominantLanguageDetectionJobRequest

StartDominantLanguageDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the StartDominantLanguageDetectionJobRequest method.
req := client.StartDominantLanguageDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJob

func (*Comprehend) StartEntitiesDetectionJobRequest added in v0.5.0

func (c *Comprehend) StartEntitiesDetectionJobRequest(input *StartEntitiesDetectionJobInput) StartEntitiesDetectionJobRequest

StartEntitiesDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the StartEntitiesDetectionJobRequest method.
req := client.StartEntitiesDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJob

func (*Comprehend) StartKeyPhrasesDetectionJobRequest added in v0.5.0

func (c *Comprehend) StartKeyPhrasesDetectionJobRequest(input *StartKeyPhrasesDetectionJobInput) StartKeyPhrasesDetectionJobRequest

StartKeyPhrasesDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the StartKeyPhrasesDetectionJobRequest method.
req := client.StartKeyPhrasesDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJob

func (*Comprehend) StartSentimentDetectionJobRequest added in v0.5.0

func (c *Comprehend) StartSentimentDetectionJobRequest(input *StartSentimentDetectionJobInput) StartSentimentDetectionJobRequest

StartSentimentDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the StartSentimentDetectionJobRequest method.
req := client.StartSentimentDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJob

func (*Comprehend) StartTopicsDetectionJobRequest

func (c *Comprehend) StartTopicsDetectionJobRequest(input *StartTopicsDetectionJobInput) StartTopicsDetectionJobRequest

StartTopicsDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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

// Example sending a request using the StartTopicsDetectionJobRequest method.
req := client.StartTopicsDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJob

func (*Comprehend) StopDominantLanguageDetectionJobRequest added in v0.5.0

func (c *Comprehend) StopDominantLanguageDetectionJobRequest(input *StopDominantLanguageDetectionJobInput) StopDominantLanguageDetectionJobRequest

StopDominantLanguageDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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.

// Example sending a request using the StopDominantLanguageDetectionJobRequest method.
req := client.StopDominantLanguageDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJob

func (*Comprehend) StopEntitiesDetectionJobRequest added in v0.5.0

func (c *Comprehend) StopEntitiesDetectionJobRequest(input *StopEntitiesDetectionJobInput) StopEntitiesDetectionJobRequest

StopEntitiesDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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.

// Example sending a request using the StopEntitiesDetectionJobRequest method.
req := client.StopEntitiesDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJob

func (*Comprehend) StopKeyPhrasesDetectionJobRequest added in v0.5.0

func (c *Comprehend) StopKeyPhrasesDetectionJobRequest(input *StopKeyPhrasesDetectionJobInput) StopKeyPhrasesDetectionJobRequest

StopKeyPhrasesDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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.

// Example sending a request using the StopKeyPhrasesDetectionJobRequest method.
req := client.StopKeyPhrasesDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob

func (*Comprehend) StopSentimentDetectionJobRequest added in v0.5.0

func (c *Comprehend) StopSentimentDetectionJobRequest(input *StopSentimentDetectionJobInput) StopSentimentDetectionJobRequest

StopSentimentDetectionJobRequest returns a request value for making API operation for Amazon Comprehend.

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.

// Example sending a request using the StopSentimentDetectionJobRequest method.
req := client.StopSentimentDetectionJobRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJob

type DescribeDominantLanguageDetectionJobInput added in v0.5.0

type DescribeDominantLanguageDetectionJobInput struct {

	// The identifier that Amazon Comprehend generated for the job. The operation
	// returns this identifier in its response.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJobRequest

func (DescribeDominantLanguageDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (DescribeDominantLanguageDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*DescribeDominantLanguageDetectionJobInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type DescribeDominantLanguageDetectionJobOutput added in v0.5.0

type DescribeDominantLanguageDetectionJobOutput struct {

	// An object that contains the properties associated with a dominant language
	// detection job.
	DominantLanguageDetectionJobProperties *DominantLanguageDetectionJobProperties `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJobResponse

func (DescribeDominantLanguageDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (DescribeDominantLanguageDetectionJobOutput) SDKResponseMetadata added in v0.5.0

SDKResponseMetdata return sthe response metadata for the API.

func (DescribeDominantLanguageDetectionJobOutput) String added in v0.5.0

String returns the string representation

type DescribeDominantLanguageDetectionJobRequest added in v0.5.0

DescribeDominantLanguageDetectionJobRequest is a API request type for the DescribeDominantLanguageDetectionJob API operation.

func (DescribeDominantLanguageDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the DescribeDominantLanguageDetectionJob API request.

type DescribeEntitiesDetectionJobInput added in v0.5.0

type DescribeEntitiesDetectionJobInput struct {

	// The identifier that Amazon Comprehend generated for the job. The operation
	// returns this identifier in its response.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJobRequest

func (DescribeEntitiesDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (DescribeEntitiesDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*DescribeEntitiesDetectionJobInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type DescribeEntitiesDetectionJobOutput added in v0.5.0

type DescribeEntitiesDetectionJobOutput struct {

	// An object that contains the properties associated with an entities detection
	// job.
	EntitiesDetectionJobProperties *EntitiesDetectionJobProperties `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJobResponse

func (DescribeEntitiesDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (DescribeEntitiesDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s DescribeEntitiesDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DescribeEntitiesDetectionJobOutput) String added in v0.5.0

String returns the string representation

type DescribeEntitiesDetectionJobRequest added in v0.5.0

type DescribeEntitiesDetectionJobRequest struct {
	*aws.Request
	Input *DescribeEntitiesDetectionJobInput
	Copy  func(*DescribeEntitiesDetectionJobInput) DescribeEntitiesDetectionJobRequest
}

DescribeEntitiesDetectionJobRequest is a API request type for the DescribeEntitiesDetectionJob API operation.

func (DescribeEntitiesDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the DescribeEntitiesDetectionJob API request.

type DescribeKeyPhrasesDetectionJobInput added in v0.5.0

type DescribeKeyPhrasesDetectionJobInput struct {

	// The identifier that Amazon Comprehend generated for the job. The operation
	// returns this identifier in its response.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJobRequest

func (DescribeKeyPhrasesDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (DescribeKeyPhrasesDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*DescribeKeyPhrasesDetectionJobInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type DescribeKeyPhrasesDetectionJobOutput added in v0.5.0

type DescribeKeyPhrasesDetectionJobOutput struct {

	// An object that contains the properties associated with a key phrases detection
	// job.
	KeyPhrasesDetectionJobProperties *KeyPhrasesDetectionJobProperties `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJobResponse

func (DescribeKeyPhrasesDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (DescribeKeyPhrasesDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s DescribeKeyPhrasesDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DescribeKeyPhrasesDetectionJobOutput) String added in v0.5.0

String returns the string representation

type DescribeKeyPhrasesDetectionJobRequest added in v0.5.0

type DescribeKeyPhrasesDetectionJobRequest struct {
	*aws.Request
	Input *DescribeKeyPhrasesDetectionJobInput
	Copy  func(*DescribeKeyPhrasesDetectionJobInput) DescribeKeyPhrasesDetectionJobRequest
}

DescribeKeyPhrasesDetectionJobRequest is a API request type for the DescribeKeyPhrasesDetectionJob API operation.

func (DescribeKeyPhrasesDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the DescribeKeyPhrasesDetectionJob API request.

type DescribeSentimentDetectionJobInput added in v0.5.0

type DescribeSentimentDetectionJobInput struct {

	// The identifier that Amazon Comprehend generated for the job. The operation
	// returns this identifier in its response.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJobRequest

func (DescribeSentimentDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (DescribeSentimentDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*DescribeSentimentDetectionJobInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type DescribeSentimentDetectionJobOutput added in v0.5.0

type DescribeSentimentDetectionJobOutput struct {

	// An object that contains the properties associated with a sentiment detection
	// job.
	SentimentDetectionJobProperties *SentimentDetectionJobProperties `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJobResponse

func (DescribeSentimentDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (DescribeSentimentDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s DescribeSentimentDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DescribeSentimentDetectionJobOutput) String added in v0.5.0

String returns the string representation

type DescribeSentimentDetectionJobRequest added in v0.5.0

type DescribeSentimentDetectionJobRequest struct {
	*aws.Request
	Input *DescribeSentimentDetectionJobInput
	Copy  func(*DescribeSentimentDetectionJobInput) DescribeSentimentDetectionJobRequest
}

DescribeSentimentDetectionJobRequest is a API request type for the DescribeSentimentDetectionJob API operation.

func (DescribeSentimentDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the DescribeSentimentDetectionJob API request.

type DescribeTopicsDetectionJobInput

type DescribeTopicsDetectionJobInput struct {

	// The identifier assigned by the user to the detection job.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJobRequest

func (DescribeTopicsDetectionJobInput) GoString

GoString returns the string representation

func (DescribeTopicsDetectionJobInput) String

String returns the string representation

func (*DescribeTopicsDetectionJobInput) Validate

func (s *DescribeTopicsDetectionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeTopicsDetectionJobOutput

type DescribeTopicsDetectionJobOutput struct {

	// The list of properties for the requested job.
	TopicsDetectionJobProperties *TopicsDetectionJobProperties `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJobResponse

func (DescribeTopicsDetectionJobOutput) GoString

GoString returns the string representation

func (DescribeTopicsDetectionJobOutput) SDKResponseMetadata

func (s DescribeTopicsDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DescribeTopicsDetectionJobOutput) String

String returns the string representation

type DescribeTopicsDetectionJobRequest

type DescribeTopicsDetectionJobRequest struct {
	*aws.Request
	Input *DescribeTopicsDetectionJobInput
	Copy  func(*DescribeTopicsDetectionJobInput) DescribeTopicsDetectionJobRequest
}

DescribeTopicsDetectionJobRequest is a API request type for the DescribeTopicsDetectionJob API operation.

func (DescribeTopicsDetectionJobRequest) Send

Send marshals and sends the DescribeTopicsDetectionJob API request.

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 is a required field
	Text *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguageRequest

func (DetectDominantLanguageInput) GoString

func (s DetectDominantLanguageInput) GoString() string

GoString returns the string representation

func (DetectDominantLanguageInput) String

String returns the string representation

func (*DetectDominantLanguageInput) Validate

func (s *DetectDominantLanguageInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 []DominantLanguage `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguageResponse

func (DetectDominantLanguageOutput) GoString

func (s DetectDominantLanguageOutput) GoString() string

GoString returns the string representation

func (DetectDominantLanguageOutput) SDKResponseMetadata

func (s DetectDominantLanguageOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DetectDominantLanguageOutput) String

String returns the string representation

type DetectDominantLanguageRequest

type DetectDominantLanguageRequest struct {
	*aws.Request
	Input *DetectDominantLanguageInput
	Copy  func(*DetectDominantLanguageInput) DetectDominantLanguageRequest
}

DetectDominantLanguageRequest is a API request type for the DetectDominantLanguage API operation.

func (DetectDominantLanguageRequest) Send

Send marshals and sends the DetectDominantLanguage API request.

type DetectEntitiesInput

type DetectEntitiesInput struct {

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
	// encoded characters.
	//
	// Text is a required field
	Text *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntitiesRequest

func (DetectEntitiesInput) GoString

func (s DetectEntitiesInput) GoString() string

GoString returns the string representation

func (DetectEntitiesInput) String

func (s DetectEntitiesInput) String() string

String returns the string representation

func (*DetectEntitiesInput) Validate

func (s *DetectEntitiesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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.
	// For a list of entity types, see how-entities.
	Entities []Entity `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntitiesResponse

func (DetectEntitiesOutput) GoString

func (s DetectEntitiesOutput) GoString() string

GoString returns the string representation

func (DetectEntitiesOutput) SDKResponseMetadata

func (s DetectEntitiesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DetectEntitiesOutput) String

func (s DetectEntitiesOutput) String() string

String returns the string representation

type DetectEntitiesRequest

type DetectEntitiesRequest struct {
	*aws.Request
	Input *DetectEntitiesInput
	Copy  func(*DetectEntitiesInput) DetectEntitiesRequest
}

DetectEntitiesRequest is a API request type for the DetectEntities API operation.

func (DetectEntitiesRequest) Send

Send marshals and sends the DetectEntities API request.

type DetectKeyPhrasesInput

type DetectKeyPhrasesInput struct {

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
	// encoded characters.
	//
	// Text is a required field
	Text *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrasesRequest

func (DetectKeyPhrasesInput) GoString

func (s DetectKeyPhrasesInput) GoString() string

GoString returns the string representation

func (DetectKeyPhrasesInput) String

func (s DetectKeyPhrasesInput) String() string

String returns the string representation

func (*DetectKeyPhrasesInput) Validate

func (s *DetectKeyPhrasesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 []KeyPhrase `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrasesResponse

func (DetectKeyPhrasesOutput) GoString

func (s DetectKeyPhrasesOutput) GoString() string

GoString returns the string representation

func (DetectKeyPhrasesOutput) SDKResponseMetadata

func (s DetectKeyPhrasesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DetectKeyPhrasesOutput) String

func (s DetectKeyPhrasesOutput) String() string

String returns the string representation

type DetectKeyPhrasesRequest

type DetectKeyPhrasesRequest struct {
	*aws.Request
	Input *DetectKeyPhrasesInput
	Copy  func(*DetectKeyPhrasesInput) DetectKeyPhrasesRequest
}

DetectKeyPhrasesRequest is a API request type for the DetectKeyPhrases API operation.

func (DetectKeyPhrasesRequest) Send

Send marshals and sends the DetectKeyPhrases API request.

type DetectSentimentInput

type DetectSentimentInput struct {

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8
	// encoded characters.
	//
	// Text is a required field
	Text *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentimentRequest

func (DetectSentimentInput) GoString

func (s DetectSentimentInput) GoString() string

GoString returns the string representation

func (DetectSentimentInput) String

func (s DetectSentimentInput) String() string

String returns the string representation

func (*DetectSentimentInput) Validate

func (s *DetectSentimentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DetectSentimentOutput

type DetectSentimentOutput struct {

	// The inferred sentiment that Amazon Comprehend has the highest level of confidence
	// in.
	Sentiment SentimentType `type:"string" enum:"true"`

	// An object that lists the sentiments, and their corresponding confidence levels.
	SentimentScore *SentimentScore `type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentimentResponse

func (DetectSentimentOutput) GoString

func (s DetectSentimentOutput) GoString() string

GoString returns the string representation

func (DetectSentimentOutput) SDKResponseMetadata

func (s DetectSentimentOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DetectSentimentOutput) String

func (s DetectSentimentOutput) String() string

String returns the string representation

type DetectSentimentRequest

type DetectSentimentRequest struct {
	*aws.Request
	Input *DetectSentimentInput
	Copy  func(*DetectSentimentInput) DetectSentimentRequest
}

DetectSentimentRequest is a API request type for the DetectSentiment API operation.

func (DetectSentimentRequest) Send

Send marshals and sends the DetectSentiment API request.

type DetectSyntaxInput added in v0.5.0

type DetectSyntaxInput struct {

	// The language code of the input documents. You can specify English ("en")
	// or Spanish ("es").
	//
	// LanguageCode is a required field
	LanguageCode SyntaxLanguageCode `type:"string" required:"true" enum:"true"`

	// A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded
	// characters.
	//
	// Text is a required field
	Text *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntaxRequest

func (DetectSyntaxInput) GoString added in v0.5.0

func (s DetectSyntaxInput) GoString() string

GoString returns the string representation

func (DetectSyntaxInput) String added in v0.5.0

func (s DetectSyntaxInput) String() string

String returns the string representation

func (*DetectSyntaxInput) Validate added in v0.5.0

func (s *DetectSyntaxInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DetectSyntaxOutput added in v0.5.0

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 []SyntaxToken `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntaxResponse

func (DetectSyntaxOutput) GoString added in v0.5.0

func (s DetectSyntaxOutput) GoString() string

GoString returns the string representation

func (DetectSyntaxOutput) SDKResponseMetadata added in v0.5.0

func (s DetectSyntaxOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DetectSyntaxOutput) String added in v0.5.0

func (s DetectSyntaxOutput) String() string

String returns the string representation

type DetectSyntaxRequest added in v0.5.0

type DetectSyntaxRequest struct {
	*aws.Request
	Input *DetectSyntaxInput
	Copy  func(*DetectSyntaxInput) DetectSyntaxRequest
}

DetectSyntaxRequest is a API request type for the DetectSyntax API operation.

func (DetectSyntaxRequest) Send added in v0.5.0

Send marshals and sends the DetectSyntax API request.

type DominantLanguage

type DominantLanguage struct {

	// The RFC 5646 language code for the dominant language. For more information
	// about RFC 5646, see Tags for Identifying Languages (https://tools.ietf.org/html/rfc5646)
	// on the IETF Tools web site.
	LanguageCode *string `min:"1" type:"string"`

	// The level of confidence that Amazon Comprehend has in the accuracy of the
	// detection.
	Score *float64 `type:"float"`
	// contains filtered or unexported fields
}

Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DominantLanguage

func (DominantLanguage) GoString

func (s DominantLanguage) GoString() string

GoString returns the string representation

func (DominantLanguage) String

func (s DominantLanguage) String() string

String returns the string representation

type DominantLanguageDetectionJobFilter added in v0.5.0

type DominantLanguageDetectionJobFilter struct {

	// Filters on the name of the job.
	JobName *string `min:"1" type:"string"`

	// Filters the list of jobs based on job status. Returns only jobs with the
	// specified status.
	JobStatus JobStatus `type:"string" enum:"true"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Returns only jobs submitted after the specified time. Jobs are
	// returned in descending order, newest to oldest.
	SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Returns only jobs submitted before the specified time. Jobs are
	// returned in ascending order, oldest to newest.
	SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DominantLanguageDetectionJobFilter

func (DominantLanguageDetectionJobFilter) GoString added in v0.5.0

GoString returns the string representation

func (DominantLanguageDetectionJobFilter) String added in v0.5.0

String returns the string representation

func (*DominantLanguageDetectionJobFilter) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type DominantLanguageDetectionJobProperties added in v0.5.0

type DominantLanguageDetectionJobProperties struct {

	// The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
	// your input data.
	DataAccessRoleArn *string `type:"string"`

	// The time that the dominant language detection job completed.
	EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The input data configuration that you supplied when you created the dominant
	// language detection job.
	InputDataConfig *InputDataConfig `type:"structure"`

	// The identifier assigned to the dominant language detection job.
	JobId *string `min:"1" type:"string"`

	// The name that you assigned to the dominant language detection job.
	JobName *string `min:"1" type:"string"`

	// The current status of the dominant language detection job. If the status
	// is FAILED, the Message field shows the reason for the failure.
	JobStatus JobStatus `type:"string" enum:"true"`

	// A description for the status of a job.
	Message *string `type:"string"`

	// The output data configuration that you supplied when you created the dominant
	// language detection job.
	OutputDataConfig *OutputDataConfig `type:"structure"`

	// The time that the dominant language detection job was submitted for processing.
	SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information about a dominant language detection job. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DominantLanguageDetectionJobProperties

func (DominantLanguageDetectionJobProperties) GoString added in v0.5.0

GoString returns the string representation

func (DominantLanguageDetectionJobProperties) String added in v0.5.0

String returns the string representation

type EntitiesDetectionJobFilter added in v0.5.0

type EntitiesDetectionJobFilter struct {

	// Filters on the name of the job.
	JobName *string `min:"1" type:"string"`

	// Filters the list of jobs based on job status. Returns only jobs with the
	// specified status.
	JobStatus JobStatus `type:"string" enum:"true"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Returns only jobs submitted after the specified time. Jobs are
	// returned in descending order, newest to oldest.
	SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Returns only jobs submitted before the specified time. Jobs are
	// returned in ascending order, oldest to newest.
	SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntitiesDetectionJobFilter

func (EntitiesDetectionJobFilter) GoString added in v0.5.0

func (s EntitiesDetectionJobFilter) GoString() string

GoString returns the string representation

func (EntitiesDetectionJobFilter) String added in v0.5.0

String returns the string representation

func (*EntitiesDetectionJobFilter) Validate added in v0.5.0

func (s *EntitiesDetectionJobFilter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EntitiesDetectionJobProperties added in v0.5.0

type EntitiesDetectionJobProperties struct {

	// The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
	// your input data.
	DataAccessRoleArn *string `type:"string"`

	// The time that the entities detection job completed
	EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The input data configuration that you supplied when you created the entities
	// detection job.
	InputDataConfig *InputDataConfig `type:"structure"`

	// The identifier assigned to the entities detection job.
	JobId *string `min:"1" type:"string"`

	// The name that you assigned the entities detection job.
	JobName *string `min:"1" type:"string"`

	// The current status of the entities detection job. If the status is FAILED,
	// the Message field shows the reason for the failure.
	JobStatus JobStatus `type:"string" enum:"true"`

	// The language code of the input documents.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// A description of the status of a job.
	Message *string `type:"string"`

	// The output data configuration that you supplied when you created the entities
	// detection job.
	OutputDataConfig *OutputDataConfig `type:"structure"`

	// The time that the entities detection job was submitted for processing.
	SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information about an entities detection job. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntitiesDetectionJobProperties

func (EntitiesDetectionJobProperties) GoString added in v0.5.0

GoString returns the string representation

func (EntitiesDetectionJobProperties) String added in v0.5.0

String returns the string representation

type Entity

type Entity struct {

	// A character offset in the input text that shows where the entity begins (the
	// first character is at position 0). The offset returns the position of each
	// UTF-8 code point in the string. A code point is the abstract character from
	// a particular graphical representation. For example, a multi-byte UTF-8 character
	// maps to a single code point.
	BeginOffset *int64 `type:"integer"`

	// A character offset in the input text that shows where the entity ends. The
	// offset returns the position of each UTF-8 code point in the string. A code
	// point is the abstract character from a particular graphical representation.
	// For example, a multi-byte UTF-8 character maps to a single code point.
	EndOffset *int64 `type:"integer"`

	// The level of confidence that Amazon Comprehend has in the accuracy of the
	// detection.
	Score *float64 `type:"float"`

	// The text of the entity.
	Text *string `min:"1" type:"string"`

	// The entity's type.
	Type EntityType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Provides information about an entity. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/Entity

func (Entity) GoString

func (s Entity) GoString() string

GoString returns the string representation

func (Entity) String

func (s Entity) String() string

String returns the string representation

type EntityType

type EntityType string
const (
	EntityTypePerson         EntityType = "PERSON"
	EntityTypeLocation       EntityType = "LOCATION"
	EntityTypeOrganization   EntityType = "ORGANIZATION"
	EntityTypeCommercialItem EntityType = "COMMERCIAL_ITEM"
	EntityTypeEvent          EntityType = "EVENT"
	EntityTypeDate           EntityType = "DATE"
	EntityTypeQuantity       EntityType = "QUANTITY"
	EntityTypeTitle          EntityType = "TITLE"
	EntityTypeOther          EntityType = "OTHER"
)

Enum values for EntityType

func (EntityType) MarshalValue added in v0.3.0

func (enum EntityType) MarshalValue() (string, error)

func (EntityType) MarshalValueBuf added in v0.3.0

func (enum EntityType) MarshalValueBuf(b []byte) ([]byte, error)

type InputDataConfig

type InputDataConfig struct {

	// Specifies how the text in an input file should be processed:
	//
	//    * ONE_DOC_PER_FILE - Each file is considered a separate document. Use
	//    this option when you are processing large documents, such as newspaper
	//    articles or scientific papers.
	//
	//    * ONE_DOC_PER_LINE - Each line in a file is considered a separate document.
	//    Use this option when you are processing many short documents, such as
	//    text messages.
	InputFormat InputFormat `type:"string" enum:"true"`

	// The Amazon S3 URI for the input data. The URI must be in same region as the
	// API endpoint that you are calling. The URI can point to a single input file
	// or it can provide the prefix for a collection of data files.
	//
	// For example, if you use the URI S3://bucketName/prefix, if the prefix is
	// a single file, Amazon Comprehend uses that file as input. If more than one
	// file begins with the prefix, Amazon Comprehend uses all of them as input.
	//
	// S3Uri is a required field
	S3Uri *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

The input properties for a topic detection job. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/InputDataConfig

func (InputDataConfig) GoString

func (s InputDataConfig) GoString() string

GoString returns the string representation

func (InputDataConfig) String

func (s InputDataConfig) String() string

String returns the string representation

func (*InputDataConfig) Validate

func (s *InputDataConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type InputFormat

type InputFormat string
const (
	InputFormatOneDocPerFile InputFormat = "ONE_DOC_PER_FILE"
	InputFormatOneDocPerLine InputFormat = "ONE_DOC_PER_LINE"
)

Enum values for InputFormat

func (InputFormat) MarshalValue added in v0.3.0

func (enum InputFormat) MarshalValue() (string, error)

func (InputFormat) MarshalValueBuf added in v0.3.0

func (enum InputFormat) MarshalValueBuf(b []byte) ([]byte, error)

type JobStatus

type JobStatus string
const (
	JobStatusSubmitted     JobStatus = "SUBMITTED"
	JobStatusInProgress    JobStatus = "IN_PROGRESS"
	JobStatusCompleted     JobStatus = "COMPLETED"
	JobStatusFailed        JobStatus = "FAILED"
	JobStatusStopRequested JobStatus = "STOP_REQUESTED"
	JobStatusStopped       JobStatus = "STOPPED"
)

Enum values for JobStatus

func (JobStatus) MarshalValue added in v0.3.0

func (enum JobStatus) MarshalValue() (string, error)

func (JobStatus) MarshalValueBuf added in v0.3.0

func (enum JobStatus) MarshalValueBuf(b []byte) ([]byte, error)

type KeyPhrase

type KeyPhrase struct {

	// A character offset in the input text that shows where the key phrase begins
	// (the first character is at position 0). The offset returns the position of
	// each UTF-8 code point in the string. A code point is the abstract character
	// from a particular graphical representation. For example, a multi-byte UTF-8
	// character maps to a single code point.
	BeginOffset *int64 `type:"integer"`

	// A character offset in the input text where the key phrase ends. The offset
	// returns the position of each UTF-8 code point in the string. A code point
	// is the abstract character from a particular graphical representation. For
	// example, a multi-byte UTF-8 character maps to a single code point.
	EndOffset *int64 `type:"integer"`

	// The level of confidence that Amazon Comprehend has in the accuracy of the
	// detection.
	Score *float64 `type:"float"`

	// The text of a key noun phrase.
	Text *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Describes a key noun phrase. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/KeyPhrase

func (KeyPhrase) GoString

func (s KeyPhrase) GoString() string

GoString returns the string representation

func (KeyPhrase) String

func (s KeyPhrase) String() string

String returns the string representation

type KeyPhrasesDetectionJobFilter added in v0.5.0

type KeyPhrasesDetectionJobFilter struct {

	// Filters on the name of the job.
	JobName *string `min:"1" type:"string"`

	// Filters the list of jobs based on job status. Returns only jobs with the
	// specified status.
	JobStatus JobStatus `type:"string" enum:"true"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Returns only jobs submitted after the specified time. Jobs are
	// returned in descending order, newest to oldest.
	SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Returns only jobs submitted before the specified time. Jobs are
	// returned in ascending order, oldest to newest.
	SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/KeyPhrasesDetectionJobFilter

func (KeyPhrasesDetectionJobFilter) GoString added in v0.5.0

func (s KeyPhrasesDetectionJobFilter) GoString() string

GoString returns the string representation

func (KeyPhrasesDetectionJobFilter) String added in v0.5.0

String returns the string representation

func (*KeyPhrasesDetectionJobFilter) Validate added in v0.5.0

func (s *KeyPhrasesDetectionJobFilter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type KeyPhrasesDetectionJobProperties added in v0.5.0

type KeyPhrasesDetectionJobProperties struct {

	// The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
	// your input data.
	DataAccessRoleArn *string `type:"string"`

	// The time that the key phrases detection job completed.
	EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The input data configuration that you supplied when you created the key phrases
	// detection job.
	InputDataConfig *InputDataConfig `type:"structure"`

	// The identifier assigned to the key phrases detection job.
	JobId *string `min:"1" type:"string"`

	// The name that you assigned the key phrases detection job.
	JobName *string `min:"1" type:"string"`

	// The current status of the key phrases detection job. If the status is FAILED,
	// the Message field shows the reason for the failure.
	JobStatus JobStatus `type:"string" enum:"true"`

	// The language code of the input documents.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// A description of the status of a job.
	Message *string `type:"string"`

	// The output data configuration that you supplied when you created the key
	// phrases detection job.
	OutputDataConfig *OutputDataConfig `type:"structure"`

	// The time that the key phrases detection job was submitted for processing.
	SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information about a key phrases detection job. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/KeyPhrasesDetectionJobProperties

func (KeyPhrasesDetectionJobProperties) GoString added in v0.5.0

GoString returns the string representation

func (KeyPhrasesDetectionJobProperties) String added in v0.5.0

String returns the string representation

type LanguageCode

type LanguageCode string
const (
	LanguageCodeEn LanguageCode = "en"
	LanguageCodeEs LanguageCode = "es"
)

Enum values for LanguageCode

func (LanguageCode) MarshalValue added in v0.3.0

func (enum LanguageCode) MarshalValue() (string, error)

func (LanguageCode) MarshalValueBuf added in v0.3.0

func (enum LanguageCode) MarshalValueBuf(b []byte) ([]byte, error)

type ListDominantLanguageDetectionJobsInput added in v0.5.0

type ListDominantLanguageDetectionJobsInput struct {

	// 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 *DominantLanguageDetectionJobFilter `type:"structure"`

	// The maximum number of results to return in each page. The default is 100.
	MaxResults *int64 `min:"1" type:"integer"`

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobsRequest

func (ListDominantLanguageDetectionJobsInput) GoString added in v0.5.0

GoString returns the string representation

func (ListDominantLanguageDetectionJobsInput) String added in v0.5.0

String returns the string representation

func (*ListDominantLanguageDetectionJobsInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type ListDominantLanguageDetectionJobsOutput added in v0.5.0

type ListDominantLanguageDetectionJobsOutput struct {

	// A list containing the properties of each job that is returned.
	DominantLanguageDetectionJobPropertiesList []DominantLanguageDetectionJobProperties `type:"list"`

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobsResponse

func (ListDominantLanguageDetectionJobsOutput) GoString added in v0.5.0

GoString returns the string representation

func (ListDominantLanguageDetectionJobsOutput) SDKResponseMetadata added in v0.5.0

func (s ListDominantLanguageDetectionJobsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (ListDominantLanguageDetectionJobsOutput) String added in v0.5.0

String returns the string representation

type ListDominantLanguageDetectionJobsPager added in v0.5.0

type ListDominantLanguageDetectionJobsPager struct {
	aws.Pager
}

ListDominantLanguageDetectionJobsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*ListDominantLanguageDetectionJobsPager) CurrentPage added in v0.5.0

type ListDominantLanguageDetectionJobsRequest added in v0.5.0

ListDominantLanguageDetectionJobsRequest is a API request type for the ListDominantLanguageDetectionJobs API operation.

func (*ListDominantLanguageDetectionJobsRequest) Paginate added in v0.5.0

Paginate pages iterates over the pages of a ListDominantLanguageDetectionJobsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a ListDominantLanguageDetectionJobs operation.
		req := client.ListDominantLanguageDetectionJobsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (ListDominantLanguageDetectionJobsRequest) Send added in v0.5.0

Send marshals and sends the ListDominantLanguageDetectionJobs API request.

type ListEntitiesDetectionJobsInput added in v0.5.0

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 *EntitiesDetectionJobFilter `type:"structure"`

	// The maximum number of results to return in each page. The default is 100.
	MaxResults *int64 `min:"1" type:"integer"`

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobsRequest

func (ListEntitiesDetectionJobsInput) GoString added in v0.5.0

GoString returns the string representation

func (ListEntitiesDetectionJobsInput) String added in v0.5.0

String returns the string representation

func (*ListEntitiesDetectionJobsInput) Validate added in v0.5.0

func (s *ListEntitiesDetectionJobsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListEntitiesDetectionJobsOutput added in v0.5.0

type ListEntitiesDetectionJobsOutput struct {

	// A list containing the properties of each job that is returned.
	EntitiesDetectionJobPropertiesList []EntitiesDetectionJobProperties `type:"list"`

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobsResponse

func (ListEntitiesDetectionJobsOutput) GoString added in v0.5.0

GoString returns the string representation

func (ListEntitiesDetectionJobsOutput) SDKResponseMetadata added in v0.5.0

func (s ListEntitiesDetectionJobsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (ListEntitiesDetectionJobsOutput) String added in v0.5.0

String returns the string representation

type ListEntitiesDetectionJobsPager added in v0.5.0

type ListEntitiesDetectionJobsPager struct {
	aws.Pager
}

ListEntitiesDetectionJobsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*ListEntitiesDetectionJobsPager) CurrentPage added in v0.5.0

type ListEntitiesDetectionJobsRequest added in v0.5.0

type ListEntitiesDetectionJobsRequest struct {
	*aws.Request
	Input *ListEntitiesDetectionJobsInput
	Copy  func(*ListEntitiesDetectionJobsInput) ListEntitiesDetectionJobsRequest
}

ListEntitiesDetectionJobsRequest is a API request type for the ListEntitiesDetectionJobs API operation.

func (*ListEntitiesDetectionJobsRequest) Paginate added in v0.5.0

Paginate pages iterates over the pages of a ListEntitiesDetectionJobsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a ListEntitiesDetectionJobs operation.
		req := client.ListEntitiesDetectionJobsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (ListEntitiesDetectionJobsRequest) Send added in v0.5.0

Send marshals and sends the ListEntitiesDetectionJobs API request.

type ListKeyPhrasesDetectionJobsInput added in v0.5.0

type ListKeyPhrasesDetectionJobsInput 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 *KeyPhrasesDetectionJobFilter `type:"structure"`

	// The maximum number of results to return in each page. The default is 100.
	MaxResults *int64 `min:"1" type:"integer"`

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobsRequest

func (ListKeyPhrasesDetectionJobsInput) GoString added in v0.5.0

GoString returns the string representation

func (ListKeyPhrasesDetectionJobsInput) String added in v0.5.0

String returns the string representation

func (*ListKeyPhrasesDetectionJobsInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type ListKeyPhrasesDetectionJobsOutput added in v0.5.0

type ListKeyPhrasesDetectionJobsOutput struct {

	// A list containing the properties of each job that is returned.
	KeyPhrasesDetectionJobPropertiesList []KeyPhrasesDetectionJobProperties `type:"list"`

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobsResponse

func (ListKeyPhrasesDetectionJobsOutput) GoString added in v0.5.0

GoString returns the string representation

func (ListKeyPhrasesDetectionJobsOutput) SDKResponseMetadata added in v0.5.0

func (s ListKeyPhrasesDetectionJobsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (ListKeyPhrasesDetectionJobsOutput) String added in v0.5.0

String returns the string representation

type ListKeyPhrasesDetectionJobsPager added in v0.5.0

type ListKeyPhrasesDetectionJobsPager struct {
	aws.Pager
}

ListKeyPhrasesDetectionJobsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*ListKeyPhrasesDetectionJobsPager) CurrentPage added in v0.5.0

type ListKeyPhrasesDetectionJobsRequest added in v0.5.0

type ListKeyPhrasesDetectionJobsRequest struct {
	*aws.Request
	Input *ListKeyPhrasesDetectionJobsInput
	Copy  func(*ListKeyPhrasesDetectionJobsInput) ListKeyPhrasesDetectionJobsRequest
}

ListKeyPhrasesDetectionJobsRequest is a API request type for the ListKeyPhrasesDetectionJobs API operation.

func (*ListKeyPhrasesDetectionJobsRequest) Paginate added in v0.5.0

Paginate pages iterates over the pages of a ListKeyPhrasesDetectionJobsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a ListKeyPhrasesDetectionJobs operation.
		req := client.ListKeyPhrasesDetectionJobsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (ListKeyPhrasesDetectionJobsRequest) Send added in v0.5.0

Send marshals and sends the ListKeyPhrasesDetectionJobs API request.

type ListSentimentDetectionJobsInput added in v0.5.0

type ListSentimentDetectionJobsInput 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 *SentimentDetectionJobFilter `type:"structure"`

	// The maximum number of results to return in each page. The default is 100.
	MaxResults *int64 `min:"1" type:"integer"`

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobsRequest

func (ListSentimentDetectionJobsInput) GoString added in v0.5.0

GoString returns the string representation

func (ListSentimentDetectionJobsInput) String added in v0.5.0

String returns the string representation

func (*ListSentimentDetectionJobsInput) Validate added in v0.5.0

func (s *ListSentimentDetectionJobsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListSentimentDetectionJobsOutput added in v0.5.0

type ListSentimentDetectionJobsOutput struct {

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`

	// A list containing the properties of each job that is returned.
	SentimentDetectionJobPropertiesList []SentimentDetectionJobProperties `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobsResponse

func (ListSentimentDetectionJobsOutput) GoString added in v0.5.0

GoString returns the string representation

func (ListSentimentDetectionJobsOutput) SDKResponseMetadata added in v0.5.0

func (s ListSentimentDetectionJobsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (ListSentimentDetectionJobsOutput) String added in v0.5.0

String returns the string representation

type ListSentimentDetectionJobsPager added in v0.5.0

type ListSentimentDetectionJobsPager struct {
	aws.Pager
}

ListSentimentDetectionJobsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*ListSentimentDetectionJobsPager) CurrentPage added in v0.5.0

type ListSentimentDetectionJobsRequest added in v0.5.0

type ListSentimentDetectionJobsRequest struct {
	*aws.Request
	Input *ListSentimentDetectionJobsInput
	Copy  func(*ListSentimentDetectionJobsInput) ListSentimentDetectionJobsRequest
}

ListSentimentDetectionJobsRequest is a API request type for the ListSentimentDetectionJobs API operation.

func (*ListSentimentDetectionJobsRequest) Paginate added in v0.5.0

Paginate pages iterates over the pages of a ListSentimentDetectionJobsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a ListSentimentDetectionJobs operation.
		req := client.ListSentimentDetectionJobsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (ListSentimentDetectionJobsRequest) Send added in v0.5.0

Send marshals and sends the ListSentimentDetectionJobs API request.

type ListTopicsDetectionJobsInput

type ListTopicsDetectionJobsInput struct {

	// 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 *TopicsDetectionJobFilter `type:"structure"`

	// The maximum number of results to return in each page. The default is 100.
	MaxResults *int64 `min:"1" type:"integer"`

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobsRequest

func (ListTopicsDetectionJobsInput) GoString

func (s ListTopicsDetectionJobsInput) GoString() string

GoString returns the string representation

func (ListTopicsDetectionJobsInput) String

String returns the string representation

func (*ListTopicsDetectionJobsInput) Validate

func (s *ListTopicsDetectionJobsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTopicsDetectionJobsOutput

type ListTopicsDetectionJobsOutput struct {

	// Identifies the next page of results to return.
	NextToken *string `min:"1" type:"string"`

	// A list containing the properties of each job that is returned.
	TopicsDetectionJobPropertiesList []TopicsDetectionJobProperties `type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobsResponse

func (ListTopicsDetectionJobsOutput) GoString

GoString returns the string representation

func (ListTopicsDetectionJobsOutput) SDKResponseMetadata

func (s ListTopicsDetectionJobsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (ListTopicsDetectionJobsOutput) String

String returns the string representation

type ListTopicsDetectionJobsPager added in v0.3.0

type ListTopicsDetectionJobsPager struct {
	aws.Pager
}

ListTopicsDetectionJobsPager is used to paginate the request. This can be done by calling Next and CurrentPage.

func (*ListTopicsDetectionJobsPager) CurrentPage added in v0.3.0

type ListTopicsDetectionJobsRequest

type ListTopicsDetectionJobsRequest struct {
	*aws.Request
	Input *ListTopicsDetectionJobsInput
	Copy  func(*ListTopicsDetectionJobsInput) ListTopicsDetectionJobsRequest
}

ListTopicsDetectionJobsRequest is a API request type for the ListTopicsDetectionJobs API operation.

func (*ListTopicsDetectionJobsRequest) Paginate added in v0.3.0

Paginate pages iterates over the pages of a ListTopicsDetectionJobsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.

Note: This operation can generate multiple requests to a service.

   // Example iterating over at most 3 pages of a ListTopicsDetectionJobs operation.
		req := client.ListTopicsDetectionJobsRequest(input)
		p := req.Paginate()
		for p.Next() {
			page := p.CurrentPage()
		}

		if err := p.Err(); err != nil {
			return err
		}

func (ListTopicsDetectionJobsRequest) Send

Send marshals and sends the ListTopicsDetectionJobs API request.

type OutputDataConfig

type OutputDataConfig struct {

	// When you use the OutputDataConfig object with asynchronous operations, you
	// specify the Amazon S3 location where you want to write the output data. The
	// URI must be in the same region as the API endpoint that you are calling.
	// The location is used as the prefix for the actual location of the output
	// file.
	//
	// When the topic detection job is finished, the service creates an output file
	// in a directory specific to the job. The S3Uri field contains the location
	// of the output file, called output.tar.gz. It is a compressed archive that
	// contains the ouput of the operation.
	//
	// S3Uri is a required field
	S3Uri *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Provides configuration parameters for the output of topic detection jobs. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/OutputDataConfig

func (OutputDataConfig) GoString

func (s OutputDataConfig) GoString() string

GoString returns the string representation

func (OutputDataConfig) String

func (s OutputDataConfig) String() string

String returns the string representation

func (*OutputDataConfig) Validate

func (s *OutputDataConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PartOfSpeechTag added in v0.5.0

type PartOfSpeechTag struct {

	// The confidence that Amazon Comprehend has that the part of speech was correctly
	// identified.
	Score *float64 `type:"float"`

	// Identifies the part of speech that the token represents.
	Tag PartOfSpeechTagType `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Identifies the part of speech represented by the token and gives the confidence that Amazon Comprehend has that the part of speech was correctly identified. For more information about the parts of speech that Amazon Comprehend can identify, see how-syntax. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/PartOfSpeechTag

func (PartOfSpeechTag) GoString added in v0.5.0

func (s PartOfSpeechTag) GoString() string

GoString returns the string representation

func (PartOfSpeechTag) String added in v0.5.0

func (s PartOfSpeechTag) String() string

String returns the string representation

type PartOfSpeechTagType added in v0.5.0

type PartOfSpeechTagType string
const (
	PartOfSpeechTagTypeAdj   PartOfSpeechTagType = "ADJ"
	PartOfSpeechTagTypeAdp   PartOfSpeechTagType = "ADP"
	PartOfSpeechTagTypeAdv   PartOfSpeechTagType = "ADV"
	PartOfSpeechTagTypeAux   PartOfSpeechTagType = "AUX"
	PartOfSpeechTagTypeConj  PartOfSpeechTagType = "CONJ"
	PartOfSpeechTagTypeDet   PartOfSpeechTagType = "DET"
	PartOfSpeechTagTypeIntj  PartOfSpeechTagType = "INTJ"
	PartOfSpeechTagTypeNoun  PartOfSpeechTagType = "NOUN"
	PartOfSpeechTagTypeNum   PartOfSpeechTagType = "NUM"
	PartOfSpeechTagTypeO     PartOfSpeechTagType = "O"
	PartOfSpeechTagTypePart  PartOfSpeechTagType = "PART"
	PartOfSpeechTagTypePron  PartOfSpeechTagType = "PRON"
	PartOfSpeechTagTypePropn PartOfSpeechTagType = "PROPN"
	PartOfSpeechTagTypePunct PartOfSpeechTagType = "PUNCT"
	PartOfSpeechTagTypeSconj PartOfSpeechTagType = "SCONJ"
	PartOfSpeechTagTypeSym   PartOfSpeechTagType = "SYM"
	PartOfSpeechTagTypeVerb  PartOfSpeechTagType = "VERB"
)

Enum values for PartOfSpeechTagType

func (PartOfSpeechTagType) MarshalValue added in v0.5.0

func (enum PartOfSpeechTagType) MarshalValue() (string, error)

func (PartOfSpeechTagType) MarshalValueBuf added in v0.5.0

func (enum PartOfSpeechTagType) MarshalValueBuf(b []byte) ([]byte, error)

type SentimentDetectionJobFilter added in v0.5.0

type SentimentDetectionJobFilter struct {

	// Filters on the name of the job.
	JobName *string `min:"1" type:"string"`

	// Filters the list of jobs based on job status. Returns only jobs with the
	// specified status.
	JobStatus JobStatus `type:"string" enum:"true"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Returns only jobs submitted after the specified time. Jobs are
	// returned in descending order, newest to oldest.
	SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Returns only jobs submitted before the specified time. Jobs are
	// returned in ascending order, oldest to newest.
	SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/SentimentDetectionJobFilter

func (SentimentDetectionJobFilter) GoString added in v0.5.0

func (s SentimentDetectionJobFilter) GoString() string

GoString returns the string representation

func (SentimentDetectionJobFilter) String added in v0.5.0

String returns the string representation

func (*SentimentDetectionJobFilter) Validate added in v0.5.0

func (s *SentimentDetectionJobFilter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SentimentDetectionJobProperties added in v0.5.0

type SentimentDetectionJobProperties struct {

	// The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to
	// your input data.
	DataAccessRoleArn *string `type:"string"`

	// The time that the sentiment detection job ended.
	EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The input data configuration that you supplied when you created the sentiment
	// detection job.
	InputDataConfig *InputDataConfig `type:"structure"`

	// The identifier assigned to the sentiment detection job.
	JobId *string `min:"1" type:"string"`

	// The name that you assigned to the sentiment detection job
	JobName *string `min:"1" type:"string"`

	// The current status of the sentiment detection job. If the status is FAILED,
	// the Messages field shows the reason for the failure.
	JobStatus JobStatus `type:"string" enum:"true"`

	// The language code of the input documents.
	LanguageCode LanguageCode `type:"string" enum:"true"`

	// A description of the status of a job.
	Message *string `type:"string"`

	// The output data configuration that you supplied when you created the sentiment
	// detection job.
	OutputDataConfig *OutputDataConfig `type:"structure"`

	// The time that the sentiment detection job was submitted for processing.
	SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information about a sentiment detection job. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/SentimentDetectionJobProperties

func (SentimentDetectionJobProperties) GoString added in v0.5.0

GoString returns the string representation

func (SentimentDetectionJobProperties) String added in v0.5.0

String returns the string representation

type SentimentScore

type SentimentScore struct {

	// The level of confidence that Amazon Comprehend has in the accuracy of its
	// detection of the MIXED sentiment.
	Mixed *float64 `type:"float"`

	// The level of confidence that Amazon Comprehend has in the accuracy of its
	// detection of the NEGATIVE sentiment.
	Negative *float64 `type:"float"`

	// The level of confidence that Amazon Comprehend has in the accuracy of its
	// detection of the NEUTRAL sentiment.
	Neutral *float64 `type:"float"`

	// The level of confidence that Amazon Comprehend has in the accuracy of its
	// detection of the POSITIVE sentiment.
	Positive *float64 `type:"float"`
	// contains filtered or unexported fields
}

Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/SentimentScore

func (SentimentScore) GoString

func (s SentimentScore) GoString() string

GoString returns the string representation

func (SentimentScore) String

func (s SentimentScore) String() string

String returns the string representation

type SentimentType

type SentimentType string
const (
	SentimentTypePositive SentimentType = "POSITIVE"
	SentimentTypeNegative SentimentType = "NEGATIVE"
	SentimentTypeNeutral  SentimentType = "NEUTRAL"
	SentimentTypeMixed    SentimentType = "MIXED"
)

Enum values for SentimentType

func (SentimentType) MarshalValue added in v0.3.0

func (enum SentimentType) MarshalValue() (string, error)

func (SentimentType) MarshalValueBuf added in v0.3.0

func (enum SentimentType) MarshalValueBuf(b []byte) ([]byte, error)

type StartDominantLanguageDetectionJobInput added in v0.5.0

type StartDominantLanguageDetectionJobInput struct {

	// A unique identifier for the request. If you do not set the client request
	// token, Amazon Comprehend generates one.
	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`

	// 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 is a required field
	DataAccessRoleArn *string `type:"string" required:"true"`

	// Specifies the format and location of the input data for the job.
	//
	// InputDataConfig is a required field
	InputDataConfig *InputDataConfig `type:"structure" required:"true"`

	// An identifier for the job.
	JobName *string `min:"1" type:"string"`

	// Specifies where to send the output files.
	//
	// OutputDataConfig is a required field
	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJobRequest

func (StartDominantLanguageDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (StartDominantLanguageDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*StartDominantLanguageDetectionJobInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type StartDominantLanguageDetectionJobOutput added in v0.5.0

type StartDominantLanguageDetectionJobOutput struct {

	// The identifier generated for the job. To get the status of a job, use this
	// identifier with the operation.
	JobId *string `min:"1" type:"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 JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJobResponse

func (StartDominantLanguageDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (StartDominantLanguageDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s StartDominantLanguageDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StartDominantLanguageDetectionJobOutput) String added in v0.5.0

String returns the string representation

type StartDominantLanguageDetectionJobRequest added in v0.5.0

StartDominantLanguageDetectionJobRequest is a API request type for the StartDominantLanguageDetectionJob API operation.

func (StartDominantLanguageDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the StartDominantLanguageDetectionJob API request.

type StartEntitiesDetectionJobInput added in v0.5.0

type StartEntitiesDetectionJobInput struct {

	// A unique identifier for the request. If you don't set the client request
	// token, Amazon Comprehend generates one.
	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`

	// 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 is a required field
	DataAccessRoleArn *string `type:"string" required:"true"`

	// Specifies the format and location of the input data for the job.
	//
	// InputDataConfig is a required field
	InputDataConfig *InputDataConfig `type:"structure" required:"true"`

	// The identifier of the job.
	JobName *string `min:"1" type:"string"`

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// Specifies where to send the output files.
	//
	// OutputDataConfig is a required field
	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJobRequest

func (StartEntitiesDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (StartEntitiesDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*StartEntitiesDetectionJobInput) Validate added in v0.5.0

func (s *StartEntitiesDetectionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartEntitiesDetectionJobOutput added in v0.5.0

type StartEntitiesDetectionJobOutput struct {

	// The identifier generated for the job. To get the status of job, use this
	// identifier with the operation.
	JobId *string `min:"1" type:"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 JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJobResponse

func (StartEntitiesDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (StartEntitiesDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s StartEntitiesDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StartEntitiesDetectionJobOutput) String added in v0.5.0

String returns the string representation

type StartEntitiesDetectionJobRequest added in v0.5.0

type StartEntitiesDetectionJobRequest struct {
	*aws.Request
	Input *StartEntitiesDetectionJobInput
	Copy  func(*StartEntitiesDetectionJobInput) StartEntitiesDetectionJobRequest
}

StartEntitiesDetectionJobRequest is a API request type for the StartEntitiesDetectionJob API operation.

func (StartEntitiesDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the StartEntitiesDetectionJob API request.

type StartKeyPhrasesDetectionJobInput added in v0.5.0

type StartKeyPhrasesDetectionJobInput struct {

	// A unique identifier for the request. If you don't set the client request
	// token, Amazon Comprehend generates one.
	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`

	// 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 is a required field
	DataAccessRoleArn *string `type:"string" required:"true"`

	// Specifies the format and location of the input data for the job.
	//
	// InputDataConfig is a required field
	InputDataConfig *InputDataConfig `type:"structure" required:"true"`

	// The identifier of the job.
	JobName *string `min:"1" type:"string"`

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// Specifies where to send the output files.
	//
	// OutputDataConfig is a required field
	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJobRequest

func (StartKeyPhrasesDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (StartKeyPhrasesDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*StartKeyPhrasesDetectionJobInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type StartKeyPhrasesDetectionJobOutput added in v0.5.0

type StartKeyPhrasesDetectionJobOutput struct {

	// The identifier generated for the job. To get the status of a job, use this
	// identifier with the operation.
	JobId *string `min:"1" type:"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 JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJobResponse

func (StartKeyPhrasesDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (StartKeyPhrasesDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s StartKeyPhrasesDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StartKeyPhrasesDetectionJobOutput) String added in v0.5.0

String returns the string representation

type StartKeyPhrasesDetectionJobRequest added in v0.5.0

type StartKeyPhrasesDetectionJobRequest struct {
	*aws.Request
	Input *StartKeyPhrasesDetectionJobInput
	Copy  func(*StartKeyPhrasesDetectionJobInput) StartKeyPhrasesDetectionJobRequest
}

StartKeyPhrasesDetectionJobRequest is a API request type for the StartKeyPhrasesDetectionJob API operation.

func (StartKeyPhrasesDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the StartKeyPhrasesDetectionJob API request.

type StartSentimentDetectionJobInput added in v0.5.0

type StartSentimentDetectionJobInput struct {

	// A unique identifier for the request. If you don't set the client request
	// token, Amazon Comprehend generates one.
	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`

	// 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 is a required field
	DataAccessRoleArn *string `type:"string" required:"true"`

	// Specifies the format and location of the input data for the job.
	//
	// InputDataConfig is a required field
	InputDataConfig *InputDataConfig `type:"structure" required:"true"`

	// The identifier of the job.
	JobName *string `min:"1" type:"string"`

	// The language of the input documents. You can specify English ("en") or Spanish
	// ("es"). All documents must be in the same language.
	//
	// LanguageCode is a required field
	LanguageCode LanguageCode `type:"string" required:"true" enum:"true"`

	// Specifies where to send the output files.
	//
	// OutputDataConfig is a required field
	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJobRequest

func (StartSentimentDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (StartSentimentDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*StartSentimentDetectionJobInput) Validate added in v0.5.0

func (s *StartSentimentDetectionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartSentimentDetectionJobOutput added in v0.5.0

type StartSentimentDetectionJobOutput struct {

	// The identifier generated for the job. To get the status of a job, use this
	// identifier with the operation.
	JobId *string `min:"1" type:"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 JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJobResponse

func (StartSentimentDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (StartSentimentDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s StartSentimentDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StartSentimentDetectionJobOutput) String added in v0.5.0

String returns the string representation

type StartSentimentDetectionJobRequest added in v0.5.0

type StartSentimentDetectionJobRequest struct {
	*aws.Request
	Input *StartSentimentDetectionJobInput
	Copy  func(*StartSentimentDetectionJobInput) StartSentimentDetectionJobRequest
}

StartSentimentDetectionJobRequest is a API request type for the StartSentimentDetectionJob API operation.

func (StartSentimentDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the StartSentimentDetectionJob API request.

type StartTopicsDetectionJobInput

type StartTopicsDetectionJobInput struct {

	// A unique identifier for the request. If you do not set the client request
	// token, Amazon Comprehend generates one.
	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`

	// 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 is a required field
	DataAccessRoleArn *string `type:"string" required:"true"`

	// Specifies the format and location of the input data for the job.
	//
	// InputDataConfig is a required field
	InputDataConfig *InputDataConfig `type:"structure" required:"true"`

	// The identifier of the job.
	JobName *string `min:"1" type:"string"`

	// The number of topics to detect.
	NumberOfTopics *int64 `min:"1" type:"integer"`

	// 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 is a required field
	OutputDataConfig *OutputDataConfig `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJobRequest

func (StartTopicsDetectionJobInput) GoString

func (s StartTopicsDetectionJobInput) GoString() string

GoString returns the string representation

func (StartTopicsDetectionJobInput) String

String returns the string representation

func (*StartTopicsDetectionJobInput) Validate

func (s *StartTopicsDetectionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartTopicsDetectionJobOutput

type StartTopicsDetectionJobOutput struct {

	// The identifier generated for the job. To get the status of the job, use this
	// identifier with the DescribeTopicDetectionJob operation.
	JobId *string `min:"1" type:"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 DescribeTopicDetectionJob
	//    operation.
	JobStatus JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJobResponse

func (StartTopicsDetectionJobOutput) GoString

GoString returns the string representation

func (StartTopicsDetectionJobOutput) SDKResponseMetadata

func (s StartTopicsDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StartTopicsDetectionJobOutput) String

String returns the string representation

type StartTopicsDetectionJobRequest

type StartTopicsDetectionJobRequest struct {
	*aws.Request
	Input *StartTopicsDetectionJobInput
	Copy  func(*StartTopicsDetectionJobInput) StartTopicsDetectionJobRequest
}

StartTopicsDetectionJobRequest is a API request type for the StartTopicsDetectionJob API operation.

func (StartTopicsDetectionJobRequest) Send

Send marshals and sends the StartTopicsDetectionJob API request.

type StopDominantLanguageDetectionJobInput added in v0.5.0

type StopDominantLanguageDetectionJobInput struct {

	// The identifier of the dominant language detection job to stop.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJobRequest

func (StopDominantLanguageDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (StopDominantLanguageDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*StopDominantLanguageDetectionJobInput) Validate added in v0.5.0

Validate inspects the fields of the type to determine if they are valid.

type StopDominantLanguageDetectionJobOutput added in v0.5.0

type StopDominantLanguageDetectionJobOutput struct {

	// The identifier of the dominant language detection job to stop.
	JobId *string `min:"1" type:"string"`

	// Either STOP_REQUESTED if the job is currently running, or STOPPED if the
	// job was previously stopped with the StopDominantLanguageDetectionJob operation.
	JobStatus JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJobResponse

func (StopDominantLanguageDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (StopDominantLanguageDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s StopDominantLanguageDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StopDominantLanguageDetectionJobOutput) String added in v0.5.0

String returns the string representation

type StopDominantLanguageDetectionJobRequest added in v0.5.0

type StopDominantLanguageDetectionJobRequest struct {
	*aws.Request
	Input *StopDominantLanguageDetectionJobInput
	Copy  func(*StopDominantLanguageDetectionJobInput) StopDominantLanguageDetectionJobRequest
}

StopDominantLanguageDetectionJobRequest is a API request type for the StopDominantLanguageDetectionJob API operation.

func (StopDominantLanguageDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the StopDominantLanguageDetectionJob API request.

type StopEntitiesDetectionJobInput added in v0.5.0

type StopEntitiesDetectionJobInput struct {

	// The identifier of the entities detection job to stop.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJobRequest

func (StopEntitiesDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (StopEntitiesDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*StopEntitiesDetectionJobInput) Validate added in v0.5.0

func (s *StopEntitiesDetectionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StopEntitiesDetectionJobOutput added in v0.5.0

type StopEntitiesDetectionJobOutput struct {

	// The identifier of the entities detection job to stop.
	JobId *string `min:"1" type:"string"`

	// Either STOP_REQUESTED if the job is currently running, or STOPPED if the
	// job was previously stopped with the StopEntitiesDetectionJob operation.
	JobStatus JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJobResponse

func (StopEntitiesDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (StopEntitiesDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s StopEntitiesDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StopEntitiesDetectionJobOutput) String added in v0.5.0

String returns the string representation

type StopEntitiesDetectionJobRequest added in v0.5.0

type StopEntitiesDetectionJobRequest struct {
	*aws.Request
	Input *StopEntitiesDetectionJobInput
	Copy  func(*StopEntitiesDetectionJobInput) StopEntitiesDetectionJobRequest
}

StopEntitiesDetectionJobRequest is a API request type for the StopEntitiesDetectionJob API operation.

func (StopEntitiesDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the StopEntitiesDetectionJob API request.

type StopKeyPhrasesDetectionJobInput added in v0.5.0

type StopKeyPhrasesDetectionJobInput struct {

	// The identifier of the key phrases detection job to stop.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJobRequest

func (StopKeyPhrasesDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (StopKeyPhrasesDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*StopKeyPhrasesDetectionJobInput) Validate added in v0.5.0

func (s *StopKeyPhrasesDetectionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StopKeyPhrasesDetectionJobOutput added in v0.5.0

type StopKeyPhrasesDetectionJobOutput struct {

	// The identifier of the key phrases detection job to stop.
	JobId *string `min:"1" type:"string"`

	// Either STOP_REQUESTED if the job is currently running, or STOPPED if the
	// job was previously stopped with the StopKeyPhrasesDetectionJob operation.
	JobStatus JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJobResponse

func (StopKeyPhrasesDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (StopKeyPhrasesDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s StopKeyPhrasesDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StopKeyPhrasesDetectionJobOutput) String added in v0.5.0

String returns the string representation

type StopKeyPhrasesDetectionJobRequest added in v0.5.0

type StopKeyPhrasesDetectionJobRequest struct {
	*aws.Request
	Input *StopKeyPhrasesDetectionJobInput
	Copy  func(*StopKeyPhrasesDetectionJobInput) StopKeyPhrasesDetectionJobRequest
}

StopKeyPhrasesDetectionJobRequest is a API request type for the StopKeyPhrasesDetectionJob API operation.

func (StopKeyPhrasesDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the StopKeyPhrasesDetectionJob API request.

type StopSentimentDetectionJobInput added in v0.5.0

type StopSentimentDetectionJobInput struct {

	// The identifier of the sentiment detection job to stop.
	//
	// JobId is a required field
	JobId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJobRequest

func (StopSentimentDetectionJobInput) GoString added in v0.5.0

GoString returns the string representation

func (StopSentimentDetectionJobInput) String added in v0.5.0

String returns the string representation

func (*StopSentimentDetectionJobInput) Validate added in v0.5.0

func (s *StopSentimentDetectionJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StopSentimentDetectionJobOutput added in v0.5.0

type StopSentimentDetectionJobOutput struct {

	// The identifier of the sentiment detection job to stop.
	JobId *string `min:"1" type:"string"`

	// Either STOP_REQUESTED if the job is currently running, or STOPPED if the
	// job was previously stopped with the StopSentimentDetectionJob operation.
	JobStatus JobStatus `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJobResponse

func (StopSentimentDetectionJobOutput) GoString added in v0.5.0

GoString returns the string representation

func (StopSentimentDetectionJobOutput) SDKResponseMetadata added in v0.5.0

func (s StopSentimentDetectionJobOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (StopSentimentDetectionJobOutput) String added in v0.5.0

String returns the string representation

type StopSentimentDetectionJobRequest added in v0.5.0

type StopSentimentDetectionJobRequest struct {
	*aws.Request
	Input *StopSentimentDetectionJobInput
	Copy  func(*StopSentimentDetectionJobInput) StopSentimentDetectionJobRequest
}

StopSentimentDetectionJobRequest is a API request type for the StopSentimentDetectionJob API operation.

func (StopSentimentDetectionJobRequest) Send added in v0.5.0

Send marshals and sends the StopSentimentDetectionJob API request.

type SyntaxLanguageCode added in v0.5.0

type SyntaxLanguageCode string
const (
	SyntaxLanguageCodeEn SyntaxLanguageCode = "en"
)

Enum values for SyntaxLanguageCode

func (SyntaxLanguageCode) MarshalValue added in v0.5.0

func (enum SyntaxLanguageCode) MarshalValue() (string, error)

func (SyntaxLanguageCode) MarshalValueBuf added in v0.5.0

func (enum SyntaxLanguageCode) MarshalValueBuf(b []byte) ([]byte, error)

type SyntaxToken added in v0.5.0

type SyntaxToken struct {

	// The zero-based offset from the beginning of the source text to the first
	// character in the word.
	BeginOffset *int64 `type:"integer"`

	// The zero-based offset from the beginning of the source text to the last character
	// in the word.
	EndOffset *int64 `type:"integer"`

	// Provides the part of speech label and the confidence level that Amazon Comprehend
	// has that the part of speech was correctly identified. For more information,
	// see how-syntax.
	PartOfSpeech *PartOfSpeechTag `type:"structure"`

	// The word that was recognized in the source text.
	Text *string `min:"1" type:"string"`

	// A unique identifier for a token.
	TokenId *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/SyntaxToken

func (SyntaxToken) GoString added in v0.5.0

func (s SyntaxToken) GoString() string

GoString returns the string representation

func (SyntaxToken) String added in v0.5.0

func (s SyntaxToken) String() string

String returns the string representation

type TopicsDetectionJobFilter

type TopicsDetectionJobFilter struct {
	JobName *string `min:"1" type:"string"`

	// Filters the list of topic detection jobs based on job status. Returns only
	// jobs with the specified status.
	JobStatus JobStatus `type:"string" enum:"true"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Only returns jobs submitted after the specified time. Jobs are
	// returned in ascending order, oldest to newest.
	SubmitTimeAfter *time.Time `type:"timestamp" timestampFormat:"unix"`

	// Filters the list of jobs based on the time that the job was submitted for
	// processing. Only returns jobs submitted before the specified time. Jobs are
	// returned in descending order, newest to oldest.
	SubmitTimeBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information for filtering topic detection jobs. For more information, see . Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TopicsDetectionJobFilter

func (TopicsDetectionJobFilter) GoString

func (s TopicsDetectionJobFilter) GoString() string

GoString returns the string representation

func (TopicsDetectionJobFilter) String

func (s TopicsDetectionJobFilter) String() string

String returns the string representation

func (*TopicsDetectionJobFilter) Validate

func (s *TopicsDetectionJobFilter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TopicsDetectionJobProperties

type TopicsDetectionJobProperties struct {

	// The time that the topic detection job was completed.
	EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`

	// The input data configuration supplied when you created the topic detection
	// job.
	InputDataConfig *InputDataConfig `type:"structure"`

	// The identifier assigned to the topic detection job.
	JobId *string `min:"1" type:"string"`

	// The name of the topic detection job.
	JobName *string `min:"1" type:"string"`

	// The current status of the topic detection job. If the status is Failed, the
	// reason for the failure is shown in the Message field.
	JobStatus JobStatus `type:"string" enum:"true"`

	// A description for the status of a job.
	Message *string `type:"string"`

	// The number of topics to detect supplied when you created the topic detection
	// job. The default is 10.
	NumberOfTopics *int64 `type:"integer"`

	// The output data configuration supplied when you created the topic detection
	// job.
	OutputDataConfig *OutputDataConfig `type:"structure"`

	// The time that the topic detection job was submitted for processing.
	SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Provides information about a topic detection job. Please also see https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TopicsDetectionJobProperties

func (TopicsDetectionJobProperties) GoString

func (s TopicsDetectionJobProperties) GoString() string

GoString returns the string representation

func (TopicsDetectionJobProperties) String

String returns the string representation

Directories

Path Synopsis
Package comprehendiface provides an interface to enable mocking the Amazon Comprehend service client for testing your code.
Package comprehendiface provides an interface to enable mocking the Amazon Comprehend service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL