1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package comprehend 4 5import ( 6 "fmt" 7 "time" 8 9 "github.com/aws/aws-sdk-go/aws" 10 "github.com/aws/aws-sdk-go/aws/awsutil" 11 "github.com/aws/aws-sdk-go/aws/request" 12 "github.com/aws/aws-sdk-go/private/protocol" 13 "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" 14) 15 16const opBatchDetectDominantLanguage = "BatchDetectDominantLanguage" 17 18// BatchDetectDominantLanguageRequest generates a "aws/request.Request" representing the 19// client's request for the BatchDetectDominantLanguage operation. The "output" return 20// value will be populated with the request's response once the request completes 21// successfully. 22// 23// Use "Send" method on the returned Request to send the API call to the service. 24// the "output" return value is not valid until after Send returns without error. 25// 26// See BatchDetectDominantLanguage for more information on using the BatchDetectDominantLanguage 27// API call, and error handling. 28// 29// This method is useful when you want to inject custom logic or configuration 30// into the SDK's request lifecycle. Such as custom headers, or retry logic. 31// 32// 33// // Example sending a request using the BatchDetectDominantLanguageRequest method. 34// req, resp := client.BatchDetectDominantLanguageRequest(params) 35// 36// err := req.Send() 37// if err == nil { // resp is now filled 38// fmt.Println(resp) 39// } 40// 41// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectDominantLanguage 42func (c *Comprehend) BatchDetectDominantLanguageRequest(input *BatchDetectDominantLanguageInput) (req *request.Request, output *BatchDetectDominantLanguageOutput) { 43 op := &request.Operation{ 44 Name: opBatchDetectDominantLanguage, 45 HTTPMethod: "POST", 46 HTTPPath: "/", 47 } 48 49 if input == nil { 50 input = &BatchDetectDominantLanguageInput{} 51 } 52 53 output = &BatchDetectDominantLanguageOutput{} 54 req = c.newRequest(op, input, output) 55 return 56} 57 58// BatchDetectDominantLanguage API operation for Amazon Comprehend. 59// 60// Determines the dominant language of the input text for a batch of documents. 61// For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend 62// Supported Languages (https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html). 63// 64// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 65// with awserr.Error's Code and Message methods to get detailed information about 66// the error. 67// 68// See the AWS API reference guide for Amazon Comprehend's 69// API operation BatchDetectDominantLanguage for usage and error information. 70// 71// Returned Error Types: 72// * InvalidRequestException 73// The request is invalid. 74// 75// * TextSizeLimitExceededException 76// The size of the input text exceeds the limit. Use a smaller document. 77// 78// * BatchSizeLimitExceededException 79// The number of documents in the request exceeds the limit of 25. Try your 80// request again with fewer documents. 81// 82// * InternalServerException 83// An internal server error occurred. Retry your request. 84// 85// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectDominantLanguage 86func (c *Comprehend) BatchDetectDominantLanguage(input *BatchDetectDominantLanguageInput) (*BatchDetectDominantLanguageOutput, error) { 87 req, out := c.BatchDetectDominantLanguageRequest(input) 88 return out, req.Send() 89} 90 91// BatchDetectDominantLanguageWithContext is the same as BatchDetectDominantLanguage with the addition of 92// the ability to pass a context and additional request options. 93// 94// See BatchDetectDominantLanguage for details on how to use this API operation. 95// 96// The context must be non-nil and will be used for request cancellation. If 97// the context is nil a panic will occur. In the future the SDK may create 98// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 99// for more information on using Contexts. 100func (c *Comprehend) BatchDetectDominantLanguageWithContext(ctx aws.Context, input *BatchDetectDominantLanguageInput, opts ...request.Option) (*BatchDetectDominantLanguageOutput, error) { 101 req, out := c.BatchDetectDominantLanguageRequest(input) 102 req.SetContext(ctx) 103 req.ApplyOptions(opts...) 104 return out, req.Send() 105} 106 107const opBatchDetectEntities = "BatchDetectEntities" 108 109// BatchDetectEntitiesRequest generates a "aws/request.Request" representing the 110// client's request for the BatchDetectEntities operation. The "output" return 111// value will be populated with the request's response once the request completes 112// successfully. 113// 114// Use "Send" method on the returned Request to send the API call to the service. 115// the "output" return value is not valid until after Send returns without error. 116// 117// See BatchDetectEntities for more information on using the BatchDetectEntities 118// API call, and error handling. 119// 120// This method is useful when you want to inject custom logic or configuration 121// into the SDK's request lifecycle. Such as custom headers, or retry logic. 122// 123// 124// // Example sending a request using the BatchDetectEntitiesRequest method. 125// req, resp := client.BatchDetectEntitiesRequest(params) 126// 127// err := req.Send() 128// if err == nil { // resp is now filled 129// fmt.Println(resp) 130// } 131// 132// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectEntities 133func (c *Comprehend) BatchDetectEntitiesRequest(input *BatchDetectEntitiesInput) (req *request.Request, output *BatchDetectEntitiesOutput) { 134 op := &request.Operation{ 135 Name: opBatchDetectEntities, 136 HTTPMethod: "POST", 137 HTTPPath: "/", 138 } 139 140 if input == nil { 141 input = &BatchDetectEntitiesInput{} 142 } 143 144 output = &BatchDetectEntitiesOutput{} 145 req = c.newRequest(op, input, output) 146 return 147} 148 149// BatchDetectEntities API operation for Amazon Comprehend. 150// 151// Inspects the text of a batch of documents for named entities and returns 152// information about them. For more information about named entities, see how-entities 153// 154// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 155// with awserr.Error's Code and Message methods to get detailed information about 156// the error. 157// 158// See the AWS API reference guide for Amazon Comprehend's 159// API operation BatchDetectEntities for usage and error information. 160// 161// Returned Error Types: 162// * InvalidRequestException 163// The request is invalid. 164// 165// * TextSizeLimitExceededException 166// The size of the input text exceeds the limit. Use a smaller document. 167// 168// * UnsupportedLanguageException 169// Amazon Comprehend can't process the language of the input text. For custom 170// entity recognition APIs, only English, Spanish, French, Italian, German, 171// or Portuguese are accepted. For a list of supported languages, see supported-languages. 172// 173// * BatchSizeLimitExceededException 174// The number of documents in the request exceeds the limit of 25. Try your 175// request again with fewer documents. 176// 177// * InternalServerException 178// An internal server error occurred. Retry your request. 179// 180// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectEntities 181func (c *Comprehend) BatchDetectEntities(input *BatchDetectEntitiesInput) (*BatchDetectEntitiesOutput, error) { 182 req, out := c.BatchDetectEntitiesRequest(input) 183 return out, req.Send() 184} 185 186// BatchDetectEntitiesWithContext is the same as BatchDetectEntities with the addition of 187// the ability to pass a context and additional request options. 188// 189// See BatchDetectEntities for details on how to use this API operation. 190// 191// The context must be non-nil and will be used for request cancellation. If 192// the context is nil a panic will occur. In the future the SDK may create 193// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 194// for more information on using Contexts. 195func (c *Comprehend) BatchDetectEntitiesWithContext(ctx aws.Context, input *BatchDetectEntitiesInput, opts ...request.Option) (*BatchDetectEntitiesOutput, error) { 196 req, out := c.BatchDetectEntitiesRequest(input) 197 req.SetContext(ctx) 198 req.ApplyOptions(opts...) 199 return out, req.Send() 200} 201 202const opBatchDetectKeyPhrases = "BatchDetectKeyPhrases" 203 204// BatchDetectKeyPhrasesRequest generates a "aws/request.Request" representing the 205// client's request for the BatchDetectKeyPhrases operation. The "output" return 206// value will be populated with the request's response once the request completes 207// successfully. 208// 209// Use "Send" method on the returned Request to send the API call to the service. 210// the "output" return value is not valid until after Send returns without error. 211// 212// See BatchDetectKeyPhrases for more information on using the BatchDetectKeyPhrases 213// API call, and error handling. 214// 215// This method is useful when you want to inject custom logic or configuration 216// into the SDK's request lifecycle. Such as custom headers, or retry logic. 217// 218// 219// // Example sending a request using the BatchDetectKeyPhrasesRequest method. 220// req, resp := client.BatchDetectKeyPhrasesRequest(params) 221// 222// err := req.Send() 223// if err == nil { // resp is now filled 224// fmt.Println(resp) 225// } 226// 227// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectKeyPhrases 228func (c *Comprehend) BatchDetectKeyPhrasesRequest(input *BatchDetectKeyPhrasesInput) (req *request.Request, output *BatchDetectKeyPhrasesOutput) { 229 op := &request.Operation{ 230 Name: opBatchDetectKeyPhrases, 231 HTTPMethod: "POST", 232 HTTPPath: "/", 233 } 234 235 if input == nil { 236 input = &BatchDetectKeyPhrasesInput{} 237 } 238 239 output = &BatchDetectKeyPhrasesOutput{} 240 req = c.newRequest(op, input, output) 241 return 242} 243 244// BatchDetectKeyPhrases API operation for Amazon Comprehend. 245// 246// Detects the key noun phrases found in a batch of documents. 247// 248// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 249// with awserr.Error's Code and Message methods to get detailed information about 250// the error. 251// 252// See the AWS API reference guide for Amazon Comprehend's 253// API operation BatchDetectKeyPhrases for usage and error information. 254// 255// Returned Error Types: 256// * InvalidRequestException 257// The request is invalid. 258// 259// * TextSizeLimitExceededException 260// The size of the input text exceeds the limit. Use a smaller document. 261// 262// * UnsupportedLanguageException 263// Amazon Comprehend can't process the language of the input text. For custom 264// entity recognition APIs, only English, Spanish, French, Italian, German, 265// or Portuguese are accepted. For a list of supported languages, see supported-languages. 266// 267// * BatchSizeLimitExceededException 268// The number of documents in the request exceeds the limit of 25. Try your 269// request again with fewer documents. 270// 271// * InternalServerException 272// An internal server error occurred. Retry your request. 273// 274// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectKeyPhrases 275func (c *Comprehend) BatchDetectKeyPhrases(input *BatchDetectKeyPhrasesInput) (*BatchDetectKeyPhrasesOutput, error) { 276 req, out := c.BatchDetectKeyPhrasesRequest(input) 277 return out, req.Send() 278} 279 280// BatchDetectKeyPhrasesWithContext is the same as BatchDetectKeyPhrases with the addition of 281// the ability to pass a context and additional request options. 282// 283// See BatchDetectKeyPhrases for details on how to use this API operation. 284// 285// The context must be non-nil and will be used for request cancellation. If 286// the context is nil a panic will occur. In the future the SDK may create 287// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 288// for more information on using Contexts. 289func (c *Comprehend) BatchDetectKeyPhrasesWithContext(ctx aws.Context, input *BatchDetectKeyPhrasesInput, opts ...request.Option) (*BatchDetectKeyPhrasesOutput, error) { 290 req, out := c.BatchDetectKeyPhrasesRequest(input) 291 req.SetContext(ctx) 292 req.ApplyOptions(opts...) 293 return out, req.Send() 294} 295 296const opBatchDetectSentiment = "BatchDetectSentiment" 297 298// BatchDetectSentimentRequest generates a "aws/request.Request" representing the 299// client's request for the BatchDetectSentiment operation. The "output" return 300// value will be populated with the request's response once the request completes 301// successfully. 302// 303// Use "Send" method on the returned Request to send the API call to the service. 304// the "output" return value is not valid until after Send returns without error. 305// 306// See BatchDetectSentiment for more information on using the BatchDetectSentiment 307// API call, and error handling. 308// 309// This method is useful when you want to inject custom logic or configuration 310// into the SDK's request lifecycle. Such as custom headers, or retry logic. 311// 312// 313// // Example sending a request using the BatchDetectSentimentRequest method. 314// req, resp := client.BatchDetectSentimentRequest(params) 315// 316// err := req.Send() 317// if err == nil { // resp is now filled 318// fmt.Println(resp) 319// } 320// 321// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentiment 322func (c *Comprehend) BatchDetectSentimentRequest(input *BatchDetectSentimentInput) (req *request.Request, output *BatchDetectSentimentOutput) { 323 op := &request.Operation{ 324 Name: opBatchDetectSentiment, 325 HTTPMethod: "POST", 326 HTTPPath: "/", 327 } 328 329 if input == nil { 330 input = &BatchDetectSentimentInput{} 331 } 332 333 output = &BatchDetectSentimentOutput{} 334 req = c.newRequest(op, input, output) 335 return 336} 337 338// BatchDetectSentiment API operation for Amazon Comprehend. 339// 340// Inspects a batch of documents and returns an inference of the prevailing 341// sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one. 342// 343// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 344// with awserr.Error's Code and Message methods to get detailed information about 345// the error. 346// 347// See the AWS API reference guide for Amazon Comprehend's 348// API operation BatchDetectSentiment for usage and error information. 349// 350// Returned Error Types: 351// * InvalidRequestException 352// The request is invalid. 353// 354// * TextSizeLimitExceededException 355// The size of the input text exceeds the limit. Use a smaller document. 356// 357// * UnsupportedLanguageException 358// Amazon Comprehend can't process the language of the input text. For custom 359// entity recognition APIs, only English, Spanish, French, Italian, German, 360// or Portuguese are accepted. For a list of supported languages, see supported-languages. 361// 362// * BatchSizeLimitExceededException 363// The number of documents in the request exceeds the limit of 25. Try your 364// request again with fewer documents. 365// 366// * InternalServerException 367// An internal server error occurred. Retry your request. 368// 369// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentiment 370func (c *Comprehend) BatchDetectSentiment(input *BatchDetectSentimentInput) (*BatchDetectSentimentOutput, error) { 371 req, out := c.BatchDetectSentimentRequest(input) 372 return out, req.Send() 373} 374 375// BatchDetectSentimentWithContext is the same as BatchDetectSentiment with the addition of 376// the ability to pass a context and additional request options. 377// 378// See BatchDetectSentiment for details on how to use this API operation. 379// 380// The context must be non-nil and will be used for request cancellation. If 381// the context is nil a panic will occur. In the future the SDK may create 382// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 383// for more information on using Contexts. 384func (c *Comprehend) BatchDetectSentimentWithContext(ctx aws.Context, input *BatchDetectSentimentInput, opts ...request.Option) (*BatchDetectSentimentOutput, error) { 385 req, out := c.BatchDetectSentimentRequest(input) 386 req.SetContext(ctx) 387 req.ApplyOptions(opts...) 388 return out, req.Send() 389} 390 391const opBatchDetectSyntax = "BatchDetectSyntax" 392 393// BatchDetectSyntaxRequest generates a "aws/request.Request" representing the 394// client's request for the BatchDetectSyntax operation. The "output" return 395// value will be populated with the request's response once the request completes 396// successfully. 397// 398// Use "Send" method on the returned Request to send the API call to the service. 399// the "output" return value is not valid until after Send returns without error. 400// 401// See BatchDetectSyntax for more information on using the BatchDetectSyntax 402// API call, and error handling. 403// 404// This method is useful when you want to inject custom logic or configuration 405// into the SDK's request lifecycle. Such as custom headers, or retry logic. 406// 407// 408// // Example sending a request using the BatchDetectSyntaxRequest method. 409// req, resp := client.BatchDetectSyntaxRequest(params) 410// 411// err := req.Send() 412// if err == nil { // resp is now filled 413// fmt.Println(resp) 414// } 415// 416// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSyntax 417func (c *Comprehend) BatchDetectSyntaxRequest(input *BatchDetectSyntaxInput) (req *request.Request, output *BatchDetectSyntaxOutput) { 418 op := &request.Operation{ 419 Name: opBatchDetectSyntax, 420 HTTPMethod: "POST", 421 HTTPPath: "/", 422 } 423 424 if input == nil { 425 input = &BatchDetectSyntaxInput{} 426 } 427 428 output = &BatchDetectSyntaxOutput{} 429 req = c.newRequest(op, input, output) 430 return 431} 432 433// BatchDetectSyntax API operation for Amazon Comprehend. 434// 435// Inspects the text of a batch of documents for the syntax and part of speech 436// of the words in the document and returns information about them. For more 437// information, see how-syntax. 438// 439// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 440// with awserr.Error's Code and Message methods to get detailed information about 441// the error. 442// 443// See the AWS API reference guide for Amazon Comprehend's 444// API operation BatchDetectSyntax for usage and error information. 445// 446// Returned Error Types: 447// * InvalidRequestException 448// The request is invalid. 449// 450// * TextSizeLimitExceededException 451// The size of the input text exceeds the limit. Use a smaller document. 452// 453// * UnsupportedLanguageException 454// Amazon Comprehend can't process the language of the input text. For custom 455// entity recognition APIs, only English, Spanish, French, Italian, German, 456// or Portuguese are accepted. For a list of supported languages, see supported-languages. 457// 458// * BatchSizeLimitExceededException 459// The number of documents in the request exceeds the limit of 25. Try your 460// request again with fewer documents. 461// 462// * InternalServerException 463// An internal server error occurred. Retry your request. 464// 465// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSyntax 466func (c *Comprehend) BatchDetectSyntax(input *BatchDetectSyntaxInput) (*BatchDetectSyntaxOutput, error) { 467 req, out := c.BatchDetectSyntaxRequest(input) 468 return out, req.Send() 469} 470 471// BatchDetectSyntaxWithContext is the same as BatchDetectSyntax with the addition of 472// the ability to pass a context and additional request options. 473// 474// See BatchDetectSyntax for details on how to use this API operation. 475// 476// The context must be non-nil and will be used for request cancellation. If 477// the context is nil a panic will occur. In the future the SDK may create 478// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 479// for more information on using Contexts. 480func (c *Comprehend) BatchDetectSyntaxWithContext(ctx aws.Context, input *BatchDetectSyntaxInput, opts ...request.Option) (*BatchDetectSyntaxOutput, error) { 481 req, out := c.BatchDetectSyntaxRequest(input) 482 req.SetContext(ctx) 483 req.ApplyOptions(opts...) 484 return out, req.Send() 485} 486 487const opClassifyDocument = "ClassifyDocument" 488 489// ClassifyDocumentRequest generates a "aws/request.Request" representing the 490// client's request for the ClassifyDocument operation. The "output" return 491// value will be populated with the request's response once the request completes 492// successfully. 493// 494// Use "Send" method on the returned Request to send the API call to the service. 495// the "output" return value is not valid until after Send returns without error. 496// 497// See ClassifyDocument for more information on using the ClassifyDocument 498// API call, and error handling. 499// 500// This method is useful when you want to inject custom logic or configuration 501// into the SDK's request lifecycle. Such as custom headers, or retry logic. 502// 503// 504// // Example sending a request using the ClassifyDocumentRequest method. 505// req, resp := client.ClassifyDocumentRequest(params) 506// 507// err := req.Send() 508// if err == nil { // resp is now filled 509// fmt.Println(resp) 510// } 511// 512// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ClassifyDocument 513func (c *Comprehend) ClassifyDocumentRequest(input *ClassifyDocumentInput) (req *request.Request, output *ClassifyDocumentOutput) { 514 op := &request.Operation{ 515 Name: opClassifyDocument, 516 HTTPMethod: "POST", 517 HTTPPath: "/", 518 } 519 520 if input == nil { 521 input = &ClassifyDocumentInput{} 522 } 523 524 output = &ClassifyDocumentOutput{} 525 req = c.newRequest(op, input, output) 526 return 527} 528 529// ClassifyDocument API operation for Amazon Comprehend. 530// 531// Creates a new document classification request to analyze a single document 532// in real-time, using a previously created and trained custom model and an 533// endpoint. 534// 535// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 536// with awserr.Error's Code and Message methods to get detailed information about 537// the error. 538// 539// See the AWS API reference guide for Amazon Comprehend's 540// API operation ClassifyDocument for usage and error information. 541// 542// Returned Error Types: 543// * InvalidRequestException 544// The request is invalid. 545// 546// * ResourceUnavailableException 547// The specified resource is not available. Check the resource and try your 548// request again. 549// 550// * TextSizeLimitExceededException 551// The size of the input text exceeds the limit. Use a smaller document. 552// 553// * InternalServerException 554// An internal server error occurred. Retry your request. 555// 556// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ClassifyDocument 557func (c *Comprehend) ClassifyDocument(input *ClassifyDocumentInput) (*ClassifyDocumentOutput, error) { 558 req, out := c.ClassifyDocumentRequest(input) 559 return out, req.Send() 560} 561 562// ClassifyDocumentWithContext is the same as ClassifyDocument with the addition of 563// the ability to pass a context and additional request options. 564// 565// See ClassifyDocument for details on how to use this API operation. 566// 567// The context must be non-nil and will be used for request cancellation. If 568// the context is nil a panic will occur. In the future the SDK may create 569// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 570// for more information on using Contexts. 571func (c *Comprehend) ClassifyDocumentWithContext(ctx aws.Context, input *ClassifyDocumentInput, opts ...request.Option) (*ClassifyDocumentOutput, error) { 572 req, out := c.ClassifyDocumentRequest(input) 573 req.SetContext(ctx) 574 req.ApplyOptions(opts...) 575 return out, req.Send() 576} 577 578const opContainsPiiEntities = "ContainsPiiEntities" 579 580// ContainsPiiEntitiesRequest generates a "aws/request.Request" representing the 581// client's request for the ContainsPiiEntities operation. The "output" return 582// value will be populated with the request's response once the request completes 583// successfully. 584// 585// Use "Send" method on the returned Request to send the API call to the service. 586// the "output" return value is not valid until after Send returns without error. 587// 588// See ContainsPiiEntities for more information on using the ContainsPiiEntities 589// API call, and error handling. 590// 591// This method is useful when you want to inject custom logic or configuration 592// into the SDK's request lifecycle. Such as custom headers, or retry logic. 593// 594// 595// // Example sending a request using the ContainsPiiEntitiesRequest method. 596// req, resp := client.ContainsPiiEntitiesRequest(params) 597// 598// err := req.Send() 599// if err == nil { // resp is now filled 600// fmt.Println(resp) 601// } 602// 603// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ContainsPiiEntities 604func (c *Comprehend) ContainsPiiEntitiesRequest(input *ContainsPiiEntitiesInput) (req *request.Request, output *ContainsPiiEntitiesOutput) { 605 op := &request.Operation{ 606 Name: opContainsPiiEntities, 607 HTTPMethod: "POST", 608 HTTPPath: "/", 609 } 610 611 if input == nil { 612 input = &ContainsPiiEntitiesInput{} 613 } 614 615 output = &ContainsPiiEntitiesOutput{} 616 req = c.newRequest(op, input, output) 617 return 618} 619 620// ContainsPiiEntities API operation for Amazon Comprehend. 621// 622// Analyzes input text for the presence of personally identifiable information 623// (PII) and returns the labels of identified PII entity types such as name, 624// address, bank account number, or phone number. 625// 626// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 627// with awserr.Error's Code and Message methods to get detailed information about 628// the error. 629// 630// See the AWS API reference guide for Amazon Comprehend's 631// API operation ContainsPiiEntities for usage and error information. 632// 633// Returned Error Types: 634// * InvalidRequestException 635// The request is invalid. 636// 637// * TextSizeLimitExceededException 638// The size of the input text exceeds the limit. Use a smaller document. 639// 640// * UnsupportedLanguageException 641// Amazon Comprehend can't process the language of the input text. For custom 642// entity recognition APIs, only English, Spanish, French, Italian, German, 643// or Portuguese are accepted. For a list of supported languages, see supported-languages. 644// 645// * InternalServerException 646// An internal server error occurred. Retry your request. 647// 648// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ContainsPiiEntities 649func (c *Comprehend) ContainsPiiEntities(input *ContainsPiiEntitiesInput) (*ContainsPiiEntitiesOutput, error) { 650 req, out := c.ContainsPiiEntitiesRequest(input) 651 return out, req.Send() 652} 653 654// ContainsPiiEntitiesWithContext is the same as ContainsPiiEntities with the addition of 655// the ability to pass a context and additional request options. 656// 657// See ContainsPiiEntities for details on how to use this API operation. 658// 659// The context must be non-nil and will be used for request cancellation. If 660// the context is nil a panic will occur. In the future the SDK may create 661// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 662// for more information on using Contexts. 663func (c *Comprehend) ContainsPiiEntitiesWithContext(ctx aws.Context, input *ContainsPiiEntitiesInput, opts ...request.Option) (*ContainsPiiEntitiesOutput, error) { 664 req, out := c.ContainsPiiEntitiesRequest(input) 665 req.SetContext(ctx) 666 req.ApplyOptions(opts...) 667 return out, req.Send() 668} 669 670const opCreateDocumentClassifier = "CreateDocumentClassifier" 671 672// CreateDocumentClassifierRequest generates a "aws/request.Request" representing the 673// client's request for the CreateDocumentClassifier operation. The "output" return 674// value will be populated with the request's response once the request completes 675// successfully. 676// 677// Use "Send" method on the returned Request to send the API call to the service. 678// the "output" return value is not valid until after Send returns without error. 679// 680// See CreateDocumentClassifier for more information on using the CreateDocumentClassifier 681// API call, and error handling. 682// 683// This method is useful when you want to inject custom logic or configuration 684// into the SDK's request lifecycle. Such as custom headers, or retry logic. 685// 686// 687// // Example sending a request using the CreateDocumentClassifierRequest method. 688// req, resp := client.CreateDocumentClassifierRequest(params) 689// 690// err := req.Send() 691// if err == nil { // resp is now filled 692// fmt.Println(resp) 693// } 694// 695// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateDocumentClassifier 696func (c *Comprehend) CreateDocumentClassifierRequest(input *CreateDocumentClassifierInput) (req *request.Request, output *CreateDocumentClassifierOutput) { 697 op := &request.Operation{ 698 Name: opCreateDocumentClassifier, 699 HTTPMethod: "POST", 700 HTTPPath: "/", 701 } 702 703 if input == nil { 704 input = &CreateDocumentClassifierInput{} 705 } 706 707 output = &CreateDocumentClassifierOutput{} 708 req = c.newRequest(op, input, output) 709 return 710} 711 712// CreateDocumentClassifier API operation for Amazon Comprehend. 713// 714// Creates a new document classifier that you can use to categorize documents. 715// To create a classifier, you provide a set of training documents that labeled 716// with the categories that you want to use. After the classifier is trained 717// you can use it to categorize a set of labeled documents into the categories. 718// For more information, see how-document-classification. 719// 720// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 721// with awserr.Error's Code and Message methods to get detailed information about 722// the error. 723// 724// See the AWS API reference guide for Amazon Comprehend's 725// API operation CreateDocumentClassifier for usage and error information. 726// 727// Returned Error Types: 728// * InvalidRequestException 729// The request is invalid. 730// 731// * ResourceInUseException 732// The specified resource name is already in use. Use a different name and try 733// your request again. 734// 735// * TooManyTagsException 736// The request contains more tags than can be associated with a resource (50 737// tags per resource). The maximum number of tags includes both existing tags 738// and those included in your current request. 739// 740// * TooManyRequestsException 741// The number of requests exceeds the limit. Resubmit your request later. 742// 743// * ResourceLimitExceededException 744// The maximum number of resources per account has been exceeded. Review the 745// resources, and then try your request again. 746// 747// * UnsupportedLanguageException 748// Amazon Comprehend can't process the language of the input text. For custom 749// entity recognition APIs, only English, Spanish, French, Italian, German, 750// or Portuguese are accepted. For a list of supported languages, see supported-languages. 751// 752// * KmsKeyValidationException 753// The KMS customer managed key (CMK) entered cannot be validated. Verify the 754// key and re-enter it. 755// 756// * InternalServerException 757// An internal server error occurred. Retry your request. 758// 759// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateDocumentClassifier 760func (c *Comprehend) CreateDocumentClassifier(input *CreateDocumentClassifierInput) (*CreateDocumentClassifierOutput, error) { 761 req, out := c.CreateDocumentClassifierRequest(input) 762 return out, req.Send() 763} 764 765// CreateDocumentClassifierWithContext is the same as CreateDocumentClassifier with the addition of 766// the ability to pass a context and additional request options. 767// 768// See CreateDocumentClassifier for details on how to use this API operation. 769// 770// The context must be non-nil and will be used for request cancellation. If 771// the context is nil a panic will occur. In the future the SDK may create 772// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 773// for more information on using Contexts. 774func (c *Comprehend) CreateDocumentClassifierWithContext(ctx aws.Context, input *CreateDocumentClassifierInput, opts ...request.Option) (*CreateDocumentClassifierOutput, error) { 775 req, out := c.CreateDocumentClassifierRequest(input) 776 req.SetContext(ctx) 777 req.ApplyOptions(opts...) 778 return out, req.Send() 779} 780 781const opCreateEndpoint = "CreateEndpoint" 782 783// CreateEndpointRequest generates a "aws/request.Request" representing the 784// client's request for the CreateEndpoint operation. The "output" return 785// value will be populated with the request's response once the request completes 786// successfully. 787// 788// Use "Send" method on the returned Request to send the API call to the service. 789// the "output" return value is not valid until after Send returns without error. 790// 791// See CreateEndpoint for more information on using the CreateEndpoint 792// API call, and error handling. 793// 794// This method is useful when you want to inject custom logic or configuration 795// into the SDK's request lifecycle. Such as custom headers, or retry logic. 796// 797// 798// // Example sending a request using the CreateEndpointRequest method. 799// req, resp := client.CreateEndpointRequest(params) 800// 801// err := req.Send() 802// if err == nil { // resp is now filled 803// fmt.Println(resp) 804// } 805// 806// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEndpoint 807func (c *Comprehend) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput) { 808 op := &request.Operation{ 809 Name: opCreateEndpoint, 810 HTTPMethod: "POST", 811 HTTPPath: "/", 812 } 813 814 if input == nil { 815 input = &CreateEndpointInput{} 816 } 817 818 output = &CreateEndpointOutput{} 819 req = c.newRequest(op, input, output) 820 return 821} 822 823// CreateEndpoint API operation for Amazon Comprehend. 824// 825// Creates a model-specific endpoint for synchronous inference for a previously 826// trained custom model 827// 828// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 829// with awserr.Error's Code and Message methods to get detailed information about 830// the error. 831// 832// See the AWS API reference guide for Amazon Comprehend's 833// API operation CreateEndpoint for usage and error information. 834// 835// Returned Error Types: 836// * InvalidRequestException 837// The request is invalid. 838// 839// * ResourceInUseException 840// The specified resource name is already in use. Use a different name and try 841// your request again. 842// 843// * ResourceLimitExceededException 844// The maximum number of resources per account has been exceeded. Review the 845// resources, and then try your request again. 846// 847// * ResourceNotFoundException 848// The specified resource ARN was not found. Check the ARN and try your request 849// again. 850// 851// * ResourceUnavailableException 852// The specified resource is not available. Check the resource and try your 853// request again. 854// 855// * TooManyRequestsException 856// The number of requests exceeds the limit. Resubmit your request later. 857// 858// * TooManyTagsException 859// The request contains more tags than can be associated with a resource (50 860// tags per resource). The maximum number of tags includes both existing tags 861// and those included in your current request. 862// 863// * InternalServerException 864// An internal server error occurred. Retry your request. 865// 866// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEndpoint 867func (c *Comprehend) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) { 868 req, out := c.CreateEndpointRequest(input) 869 return out, req.Send() 870} 871 872// CreateEndpointWithContext is the same as CreateEndpoint with the addition of 873// the ability to pass a context and additional request options. 874// 875// See CreateEndpoint for details on how to use this API operation. 876// 877// The context must be non-nil and will be used for request cancellation. If 878// the context is nil a panic will occur. In the future the SDK may create 879// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 880// for more information on using Contexts. 881func (c *Comprehend) CreateEndpointWithContext(ctx aws.Context, input *CreateEndpointInput, opts ...request.Option) (*CreateEndpointOutput, error) { 882 req, out := c.CreateEndpointRequest(input) 883 req.SetContext(ctx) 884 req.ApplyOptions(opts...) 885 return out, req.Send() 886} 887 888const opCreateEntityRecognizer = "CreateEntityRecognizer" 889 890// CreateEntityRecognizerRequest generates a "aws/request.Request" representing the 891// client's request for the CreateEntityRecognizer operation. The "output" return 892// value will be populated with the request's response once the request completes 893// successfully. 894// 895// Use "Send" method on the returned Request to send the API call to the service. 896// the "output" return value is not valid until after Send returns without error. 897// 898// See CreateEntityRecognizer for more information on using the CreateEntityRecognizer 899// API call, and error handling. 900// 901// This method is useful when you want to inject custom logic or configuration 902// into the SDK's request lifecycle. Such as custom headers, or retry logic. 903// 904// 905// // Example sending a request using the CreateEntityRecognizerRequest method. 906// req, resp := client.CreateEntityRecognizerRequest(params) 907// 908// err := req.Send() 909// if err == nil { // resp is now filled 910// fmt.Println(resp) 911// } 912// 913// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEntityRecognizer 914func (c *Comprehend) CreateEntityRecognizerRequest(input *CreateEntityRecognizerInput) (req *request.Request, output *CreateEntityRecognizerOutput) { 915 op := &request.Operation{ 916 Name: opCreateEntityRecognizer, 917 HTTPMethod: "POST", 918 HTTPPath: "/", 919 } 920 921 if input == nil { 922 input = &CreateEntityRecognizerInput{} 923 } 924 925 output = &CreateEntityRecognizerOutput{} 926 req = c.newRequest(op, input, output) 927 return 928} 929 930// CreateEntityRecognizer API operation for Amazon Comprehend. 931// 932// Creates an entity recognizer using submitted files. After your CreateEntityRecognizer 933// request is submitted, you can check job status using the API. 934// 935// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 936// with awserr.Error's Code and Message methods to get detailed information about 937// the error. 938// 939// See the AWS API reference guide for Amazon Comprehend's 940// API operation CreateEntityRecognizer for usage and error information. 941// 942// Returned Error Types: 943// * InvalidRequestException 944// The request is invalid. 945// 946// * ResourceInUseException 947// The specified resource name is already in use. Use a different name and try 948// your request again. 949// 950// * TooManyTagsException 951// The request contains more tags than can be associated with a resource (50 952// tags per resource). The maximum number of tags includes both existing tags 953// and those included in your current request. 954// 955// * TooManyRequestsException 956// The number of requests exceeds the limit. Resubmit your request later. 957// 958// * ResourceLimitExceededException 959// The maximum number of resources per account has been exceeded. Review the 960// resources, and then try your request again. 961// 962// * UnsupportedLanguageException 963// Amazon Comprehend can't process the language of the input text. For custom 964// entity recognition APIs, only English, Spanish, French, Italian, German, 965// or Portuguese are accepted. For a list of supported languages, see supported-languages. 966// 967// * KmsKeyValidationException 968// The KMS customer managed key (CMK) entered cannot be validated. Verify the 969// key and re-enter it. 970// 971// * InternalServerException 972// An internal server error occurred. Retry your request. 973// 974// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEntityRecognizer 975func (c *Comprehend) CreateEntityRecognizer(input *CreateEntityRecognizerInput) (*CreateEntityRecognizerOutput, error) { 976 req, out := c.CreateEntityRecognizerRequest(input) 977 return out, req.Send() 978} 979 980// CreateEntityRecognizerWithContext is the same as CreateEntityRecognizer with the addition of 981// the ability to pass a context and additional request options. 982// 983// See CreateEntityRecognizer for details on how to use this API operation. 984// 985// The context must be non-nil and will be used for request cancellation. If 986// the context is nil a panic will occur. In the future the SDK may create 987// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 988// for more information on using Contexts. 989func (c *Comprehend) CreateEntityRecognizerWithContext(ctx aws.Context, input *CreateEntityRecognizerInput, opts ...request.Option) (*CreateEntityRecognizerOutput, error) { 990 req, out := c.CreateEntityRecognizerRequest(input) 991 req.SetContext(ctx) 992 req.ApplyOptions(opts...) 993 return out, req.Send() 994} 995 996const opDeleteDocumentClassifier = "DeleteDocumentClassifier" 997 998// DeleteDocumentClassifierRequest generates a "aws/request.Request" representing the 999// client's request for the DeleteDocumentClassifier operation. The "output" return 1000// value will be populated with the request's response once the request completes 1001// successfully. 1002// 1003// Use "Send" method on the returned Request to send the API call to the service. 1004// the "output" return value is not valid until after Send returns without error. 1005// 1006// See DeleteDocumentClassifier for more information on using the DeleteDocumentClassifier 1007// API call, and error handling. 1008// 1009// This method is useful when you want to inject custom logic or configuration 1010// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1011// 1012// 1013// // Example sending a request using the DeleteDocumentClassifierRequest method. 1014// req, resp := client.DeleteDocumentClassifierRequest(params) 1015// 1016// err := req.Send() 1017// if err == nil { // resp is now filled 1018// fmt.Println(resp) 1019// } 1020// 1021// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteDocumentClassifier 1022func (c *Comprehend) DeleteDocumentClassifierRequest(input *DeleteDocumentClassifierInput) (req *request.Request, output *DeleteDocumentClassifierOutput) { 1023 op := &request.Operation{ 1024 Name: opDeleteDocumentClassifier, 1025 HTTPMethod: "POST", 1026 HTTPPath: "/", 1027 } 1028 1029 if input == nil { 1030 input = &DeleteDocumentClassifierInput{} 1031 } 1032 1033 output = &DeleteDocumentClassifierOutput{} 1034 req = c.newRequest(op, input, output) 1035 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1036 return 1037} 1038 1039// DeleteDocumentClassifier API operation for Amazon Comprehend. 1040// 1041// Deletes a previously created document classifier 1042// 1043// Only those classifiers that are in terminated states (IN_ERROR, TRAINED) 1044// will be deleted. If an active inference job is using the model, a ResourceInUseException 1045// will be returned. 1046// 1047// This is an asynchronous action that puts the classifier into a DELETING state, 1048// and it is then removed by a background job. Once removed, the classifier 1049// disappears from your account and is no longer available for use. 1050// 1051// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1052// with awserr.Error's Code and Message methods to get detailed information about 1053// the error. 1054// 1055// See the AWS API reference guide for Amazon Comprehend's 1056// API operation DeleteDocumentClassifier for usage and error information. 1057// 1058// Returned Error Types: 1059// * InvalidRequestException 1060// The request is invalid. 1061// 1062// * TooManyRequestsException 1063// The number of requests exceeds the limit. Resubmit your request later. 1064// 1065// * ResourceNotFoundException 1066// The specified resource ARN was not found. Check the ARN and try your request 1067// again. 1068// 1069// * ResourceUnavailableException 1070// The specified resource is not available. Check the resource and try your 1071// request again. 1072// 1073// * ResourceInUseException 1074// The specified resource name is already in use. Use a different name and try 1075// your request again. 1076// 1077// * InternalServerException 1078// An internal server error occurred. Retry your request. 1079// 1080// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteDocumentClassifier 1081func (c *Comprehend) DeleteDocumentClassifier(input *DeleteDocumentClassifierInput) (*DeleteDocumentClassifierOutput, error) { 1082 req, out := c.DeleteDocumentClassifierRequest(input) 1083 return out, req.Send() 1084} 1085 1086// DeleteDocumentClassifierWithContext is the same as DeleteDocumentClassifier with the addition of 1087// the ability to pass a context and additional request options. 1088// 1089// See DeleteDocumentClassifier for details on how to use this API operation. 1090// 1091// The context must be non-nil and will be used for request cancellation. If 1092// the context is nil a panic will occur. In the future the SDK may create 1093// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1094// for more information on using Contexts. 1095func (c *Comprehend) DeleteDocumentClassifierWithContext(ctx aws.Context, input *DeleteDocumentClassifierInput, opts ...request.Option) (*DeleteDocumentClassifierOutput, error) { 1096 req, out := c.DeleteDocumentClassifierRequest(input) 1097 req.SetContext(ctx) 1098 req.ApplyOptions(opts...) 1099 return out, req.Send() 1100} 1101 1102const opDeleteEndpoint = "DeleteEndpoint" 1103 1104// DeleteEndpointRequest generates a "aws/request.Request" representing the 1105// client's request for the DeleteEndpoint operation. The "output" return 1106// value will be populated with the request's response once the request completes 1107// successfully. 1108// 1109// Use "Send" method on the returned Request to send the API call to the service. 1110// the "output" return value is not valid until after Send returns without error. 1111// 1112// See DeleteEndpoint for more information on using the DeleteEndpoint 1113// API call, and error handling. 1114// 1115// This method is useful when you want to inject custom logic or configuration 1116// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1117// 1118// 1119// // Example sending a request using the DeleteEndpointRequest method. 1120// req, resp := client.DeleteEndpointRequest(params) 1121// 1122// err := req.Send() 1123// if err == nil { // resp is now filled 1124// fmt.Println(resp) 1125// } 1126// 1127// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEndpoint 1128func (c *Comprehend) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) { 1129 op := &request.Operation{ 1130 Name: opDeleteEndpoint, 1131 HTTPMethod: "POST", 1132 HTTPPath: "/", 1133 } 1134 1135 if input == nil { 1136 input = &DeleteEndpointInput{} 1137 } 1138 1139 output = &DeleteEndpointOutput{} 1140 req = c.newRequest(op, input, output) 1141 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1142 return 1143} 1144 1145// DeleteEndpoint API operation for Amazon Comprehend. 1146// 1147// Deletes a model-specific endpoint for a previously-trained custom model. 1148// All endpoints must be deleted in order for the model to be deleted. 1149// 1150// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1151// with awserr.Error's Code and Message methods to get detailed information about 1152// the error. 1153// 1154// See the AWS API reference guide for Amazon Comprehend's 1155// API operation DeleteEndpoint for usage and error information. 1156// 1157// Returned Error Types: 1158// * InvalidRequestException 1159// The request is invalid. 1160// 1161// * ResourceInUseException 1162// The specified resource name is already in use. Use a different name and try 1163// your request again. 1164// 1165// * ResourceNotFoundException 1166// The specified resource ARN was not found. Check the ARN and try your request 1167// again. 1168// 1169// * TooManyRequestsException 1170// The number of requests exceeds the limit. Resubmit your request later. 1171// 1172// * InternalServerException 1173// An internal server error occurred. Retry your request. 1174// 1175// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEndpoint 1176func (c *Comprehend) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { 1177 req, out := c.DeleteEndpointRequest(input) 1178 return out, req.Send() 1179} 1180 1181// DeleteEndpointWithContext is the same as DeleteEndpoint with the addition of 1182// the ability to pass a context and additional request options. 1183// 1184// See DeleteEndpoint for details on how to use this API operation. 1185// 1186// The context must be non-nil and will be used for request cancellation. If 1187// the context is nil a panic will occur. In the future the SDK may create 1188// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1189// for more information on using Contexts. 1190func (c *Comprehend) DeleteEndpointWithContext(ctx aws.Context, input *DeleteEndpointInput, opts ...request.Option) (*DeleteEndpointOutput, error) { 1191 req, out := c.DeleteEndpointRequest(input) 1192 req.SetContext(ctx) 1193 req.ApplyOptions(opts...) 1194 return out, req.Send() 1195} 1196 1197const opDeleteEntityRecognizer = "DeleteEntityRecognizer" 1198 1199// DeleteEntityRecognizerRequest generates a "aws/request.Request" representing the 1200// client's request for the DeleteEntityRecognizer operation. The "output" return 1201// value will be populated with the request's response once the request completes 1202// successfully. 1203// 1204// Use "Send" method on the returned Request to send the API call to the service. 1205// the "output" return value is not valid until after Send returns without error. 1206// 1207// See DeleteEntityRecognizer for more information on using the DeleteEntityRecognizer 1208// API call, and error handling. 1209// 1210// This method is useful when you want to inject custom logic or configuration 1211// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1212// 1213// 1214// // Example sending a request using the DeleteEntityRecognizerRequest method. 1215// req, resp := client.DeleteEntityRecognizerRequest(params) 1216// 1217// err := req.Send() 1218// if err == nil { // resp is now filled 1219// fmt.Println(resp) 1220// } 1221// 1222// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEntityRecognizer 1223func (c *Comprehend) DeleteEntityRecognizerRequest(input *DeleteEntityRecognizerInput) (req *request.Request, output *DeleteEntityRecognizerOutput) { 1224 op := &request.Operation{ 1225 Name: opDeleteEntityRecognizer, 1226 HTTPMethod: "POST", 1227 HTTPPath: "/", 1228 } 1229 1230 if input == nil { 1231 input = &DeleteEntityRecognizerInput{} 1232 } 1233 1234 output = &DeleteEntityRecognizerOutput{} 1235 req = c.newRequest(op, input, output) 1236 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1237 return 1238} 1239 1240// DeleteEntityRecognizer API operation for Amazon Comprehend. 1241// 1242// Deletes an entity recognizer. 1243// 1244// Only those recognizers that are in terminated states (IN_ERROR, TRAINED) 1245// will be deleted. If an active inference job is using the model, a ResourceInUseException 1246// will be returned. 1247// 1248// This is an asynchronous action that puts the recognizer into a DELETING state, 1249// and it is then removed by a background job. Once removed, the recognizer 1250// disappears from your account and is no longer available for use. 1251// 1252// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1253// with awserr.Error's Code and Message methods to get detailed information about 1254// the error. 1255// 1256// See the AWS API reference guide for Amazon Comprehend's 1257// API operation DeleteEntityRecognizer for usage and error information. 1258// 1259// Returned Error Types: 1260// * InvalidRequestException 1261// The request is invalid. 1262// 1263// * TooManyRequestsException 1264// The number of requests exceeds the limit. Resubmit your request later. 1265// 1266// * ResourceNotFoundException 1267// The specified resource ARN was not found. Check the ARN and try your request 1268// again. 1269// 1270// * ResourceUnavailableException 1271// The specified resource is not available. Check the resource and try your 1272// request again. 1273// 1274// * ResourceInUseException 1275// The specified resource name is already in use. Use a different name and try 1276// your request again. 1277// 1278// * InternalServerException 1279// An internal server error occurred. Retry your request. 1280// 1281// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEntityRecognizer 1282func (c *Comprehend) DeleteEntityRecognizer(input *DeleteEntityRecognizerInput) (*DeleteEntityRecognizerOutput, error) { 1283 req, out := c.DeleteEntityRecognizerRequest(input) 1284 return out, req.Send() 1285} 1286 1287// DeleteEntityRecognizerWithContext is the same as DeleteEntityRecognizer with the addition of 1288// the ability to pass a context and additional request options. 1289// 1290// See DeleteEntityRecognizer for details on how to use this API operation. 1291// 1292// The context must be non-nil and will be used for request cancellation. If 1293// the context is nil a panic will occur. In the future the SDK may create 1294// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1295// for more information on using Contexts. 1296func (c *Comprehend) DeleteEntityRecognizerWithContext(ctx aws.Context, input *DeleteEntityRecognizerInput, opts ...request.Option) (*DeleteEntityRecognizerOutput, error) { 1297 req, out := c.DeleteEntityRecognizerRequest(input) 1298 req.SetContext(ctx) 1299 req.ApplyOptions(opts...) 1300 return out, req.Send() 1301} 1302 1303const opDescribeDocumentClassificationJob = "DescribeDocumentClassificationJob" 1304 1305// DescribeDocumentClassificationJobRequest generates a "aws/request.Request" representing the 1306// client's request for the DescribeDocumentClassificationJob operation. The "output" return 1307// value will be populated with the request's response once the request completes 1308// successfully. 1309// 1310// Use "Send" method on the returned Request to send the API call to the service. 1311// the "output" return value is not valid until after Send returns without error. 1312// 1313// See DescribeDocumentClassificationJob for more information on using the DescribeDocumentClassificationJob 1314// API call, and error handling. 1315// 1316// This method is useful when you want to inject custom logic or configuration 1317// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1318// 1319// 1320// // Example sending a request using the DescribeDocumentClassificationJobRequest method. 1321// req, resp := client.DescribeDocumentClassificationJobRequest(params) 1322// 1323// err := req.Send() 1324// if err == nil { // resp is now filled 1325// fmt.Println(resp) 1326// } 1327// 1328// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassificationJob 1329func (c *Comprehend) DescribeDocumentClassificationJobRequest(input *DescribeDocumentClassificationJobInput) (req *request.Request, output *DescribeDocumentClassificationJobOutput) { 1330 op := &request.Operation{ 1331 Name: opDescribeDocumentClassificationJob, 1332 HTTPMethod: "POST", 1333 HTTPPath: "/", 1334 } 1335 1336 if input == nil { 1337 input = &DescribeDocumentClassificationJobInput{} 1338 } 1339 1340 output = &DescribeDocumentClassificationJobOutput{} 1341 req = c.newRequest(op, input, output) 1342 return 1343} 1344 1345// DescribeDocumentClassificationJob API operation for Amazon Comprehend. 1346// 1347// Gets the properties associated with a document classification job. Use this 1348// operation to get the status of a classification job. 1349// 1350// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1351// with awserr.Error's Code and Message methods to get detailed information about 1352// the error. 1353// 1354// See the AWS API reference guide for Amazon Comprehend's 1355// API operation DescribeDocumentClassificationJob for usage and error information. 1356// 1357// Returned Error Types: 1358// * InvalidRequestException 1359// The request is invalid. 1360// 1361// * TooManyRequestsException 1362// The number of requests exceeds the limit. Resubmit your request later. 1363// 1364// * JobNotFoundException 1365// The specified job was not found. Check the job ID and try again. 1366// 1367// * InternalServerException 1368// An internal server error occurred. Retry your request. 1369// 1370// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassificationJob 1371func (c *Comprehend) DescribeDocumentClassificationJob(input *DescribeDocumentClassificationJobInput) (*DescribeDocumentClassificationJobOutput, error) { 1372 req, out := c.DescribeDocumentClassificationJobRequest(input) 1373 return out, req.Send() 1374} 1375 1376// DescribeDocumentClassificationJobWithContext is the same as DescribeDocumentClassificationJob with the addition of 1377// the ability to pass a context and additional request options. 1378// 1379// See DescribeDocumentClassificationJob for details on how to use this API operation. 1380// 1381// The context must be non-nil and will be used for request cancellation. If 1382// the context is nil a panic will occur. In the future the SDK may create 1383// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1384// for more information on using Contexts. 1385func (c *Comprehend) DescribeDocumentClassificationJobWithContext(ctx aws.Context, input *DescribeDocumentClassificationJobInput, opts ...request.Option) (*DescribeDocumentClassificationJobOutput, error) { 1386 req, out := c.DescribeDocumentClassificationJobRequest(input) 1387 req.SetContext(ctx) 1388 req.ApplyOptions(opts...) 1389 return out, req.Send() 1390} 1391 1392const opDescribeDocumentClassifier = "DescribeDocumentClassifier" 1393 1394// DescribeDocumentClassifierRequest generates a "aws/request.Request" representing the 1395// client's request for the DescribeDocumentClassifier operation. The "output" return 1396// value will be populated with the request's response once the request completes 1397// successfully. 1398// 1399// Use "Send" method on the returned Request to send the API call to the service. 1400// the "output" return value is not valid until after Send returns without error. 1401// 1402// See DescribeDocumentClassifier for more information on using the DescribeDocumentClassifier 1403// API call, and error handling. 1404// 1405// This method is useful when you want to inject custom logic or configuration 1406// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1407// 1408// 1409// // Example sending a request using the DescribeDocumentClassifierRequest method. 1410// req, resp := client.DescribeDocumentClassifierRequest(params) 1411// 1412// err := req.Send() 1413// if err == nil { // resp is now filled 1414// fmt.Println(resp) 1415// } 1416// 1417// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassifier 1418func (c *Comprehend) DescribeDocumentClassifierRequest(input *DescribeDocumentClassifierInput) (req *request.Request, output *DescribeDocumentClassifierOutput) { 1419 op := &request.Operation{ 1420 Name: opDescribeDocumentClassifier, 1421 HTTPMethod: "POST", 1422 HTTPPath: "/", 1423 } 1424 1425 if input == nil { 1426 input = &DescribeDocumentClassifierInput{} 1427 } 1428 1429 output = &DescribeDocumentClassifierOutput{} 1430 req = c.newRequest(op, input, output) 1431 return 1432} 1433 1434// DescribeDocumentClassifier API operation for Amazon Comprehend. 1435// 1436// Gets the properties associated with a document classifier. 1437// 1438// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1439// with awserr.Error's Code and Message methods to get detailed information about 1440// the error. 1441// 1442// See the AWS API reference guide for Amazon Comprehend's 1443// API operation DescribeDocumentClassifier for usage and error information. 1444// 1445// Returned Error Types: 1446// * InvalidRequestException 1447// The request is invalid. 1448// 1449// * TooManyRequestsException 1450// The number of requests exceeds the limit. Resubmit your request later. 1451// 1452// * ResourceNotFoundException 1453// The specified resource ARN was not found. Check the ARN and try your request 1454// again. 1455// 1456// * InternalServerException 1457// An internal server error occurred. Retry your request. 1458// 1459// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassifier 1460func (c *Comprehend) DescribeDocumentClassifier(input *DescribeDocumentClassifierInput) (*DescribeDocumentClassifierOutput, error) { 1461 req, out := c.DescribeDocumentClassifierRequest(input) 1462 return out, req.Send() 1463} 1464 1465// DescribeDocumentClassifierWithContext is the same as DescribeDocumentClassifier with the addition of 1466// the ability to pass a context and additional request options. 1467// 1468// See DescribeDocumentClassifier for details on how to use this API operation. 1469// 1470// The context must be non-nil and will be used for request cancellation. If 1471// the context is nil a panic will occur. In the future the SDK may create 1472// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1473// for more information on using Contexts. 1474func (c *Comprehend) DescribeDocumentClassifierWithContext(ctx aws.Context, input *DescribeDocumentClassifierInput, opts ...request.Option) (*DescribeDocumentClassifierOutput, error) { 1475 req, out := c.DescribeDocumentClassifierRequest(input) 1476 req.SetContext(ctx) 1477 req.ApplyOptions(opts...) 1478 return out, req.Send() 1479} 1480 1481const opDescribeDominantLanguageDetectionJob = "DescribeDominantLanguageDetectionJob" 1482 1483// DescribeDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the 1484// client's request for the DescribeDominantLanguageDetectionJob operation. The "output" return 1485// value will be populated with the request's response once the request completes 1486// successfully. 1487// 1488// Use "Send" method on the returned Request to send the API call to the service. 1489// the "output" return value is not valid until after Send returns without error. 1490// 1491// See DescribeDominantLanguageDetectionJob for more information on using the DescribeDominantLanguageDetectionJob 1492// API call, and error handling. 1493// 1494// This method is useful when you want to inject custom logic or configuration 1495// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1496// 1497// 1498// // Example sending a request using the DescribeDominantLanguageDetectionJobRequest method. 1499// req, resp := client.DescribeDominantLanguageDetectionJobRequest(params) 1500// 1501// err := req.Send() 1502// if err == nil { // resp is now filled 1503// fmt.Println(resp) 1504// } 1505// 1506// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJob 1507func (c *Comprehend) DescribeDominantLanguageDetectionJobRequest(input *DescribeDominantLanguageDetectionJobInput) (req *request.Request, output *DescribeDominantLanguageDetectionJobOutput) { 1508 op := &request.Operation{ 1509 Name: opDescribeDominantLanguageDetectionJob, 1510 HTTPMethod: "POST", 1511 HTTPPath: "/", 1512 } 1513 1514 if input == nil { 1515 input = &DescribeDominantLanguageDetectionJobInput{} 1516 } 1517 1518 output = &DescribeDominantLanguageDetectionJobOutput{} 1519 req = c.newRequest(op, input, output) 1520 return 1521} 1522 1523// DescribeDominantLanguageDetectionJob API operation for Amazon Comprehend. 1524// 1525// Gets the properties associated with a dominant language detection job. Use 1526// this operation to get the status of a detection job. 1527// 1528// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1529// with awserr.Error's Code and Message methods to get detailed information about 1530// the error. 1531// 1532// See the AWS API reference guide for Amazon Comprehend's 1533// API operation DescribeDominantLanguageDetectionJob for usage and error information. 1534// 1535// Returned Error Types: 1536// * InvalidRequestException 1537// The request is invalid. 1538// 1539// * JobNotFoundException 1540// The specified job was not found. Check the job ID and try again. 1541// 1542// * TooManyRequestsException 1543// The number of requests exceeds the limit. Resubmit your request later. 1544// 1545// * InternalServerException 1546// An internal server error occurred. Retry your request. 1547// 1548// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJob 1549func (c *Comprehend) DescribeDominantLanguageDetectionJob(input *DescribeDominantLanguageDetectionJobInput) (*DescribeDominantLanguageDetectionJobOutput, error) { 1550 req, out := c.DescribeDominantLanguageDetectionJobRequest(input) 1551 return out, req.Send() 1552} 1553 1554// DescribeDominantLanguageDetectionJobWithContext is the same as DescribeDominantLanguageDetectionJob with the addition of 1555// the ability to pass a context and additional request options. 1556// 1557// See DescribeDominantLanguageDetectionJob for details on how to use this API operation. 1558// 1559// The context must be non-nil and will be used for request cancellation. If 1560// the context is nil a panic will occur. In the future the SDK may create 1561// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1562// for more information on using Contexts. 1563func (c *Comprehend) DescribeDominantLanguageDetectionJobWithContext(ctx aws.Context, input *DescribeDominantLanguageDetectionJobInput, opts ...request.Option) (*DescribeDominantLanguageDetectionJobOutput, error) { 1564 req, out := c.DescribeDominantLanguageDetectionJobRequest(input) 1565 req.SetContext(ctx) 1566 req.ApplyOptions(opts...) 1567 return out, req.Send() 1568} 1569 1570const opDescribeEndpoint = "DescribeEndpoint" 1571 1572// DescribeEndpointRequest generates a "aws/request.Request" representing the 1573// client's request for the DescribeEndpoint operation. The "output" return 1574// value will be populated with the request's response once the request completes 1575// successfully. 1576// 1577// Use "Send" method on the returned Request to send the API call to the service. 1578// the "output" return value is not valid until after Send returns without error. 1579// 1580// See DescribeEndpoint for more information on using the DescribeEndpoint 1581// API call, and error handling. 1582// 1583// This method is useful when you want to inject custom logic or configuration 1584// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1585// 1586// 1587// // Example sending a request using the DescribeEndpointRequest method. 1588// req, resp := client.DescribeEndpointRequest(params) 1589// 1590// err := req.Send() 1591// if err == nil { // resp is now filled 1592// fmt.Println(resp) 1593// } 1594// 1595// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEndpoint 1596func (c *Comprehend) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) { 1597 op := &request.Operation{ 1598 Name: opDescribeEndpoint, 1599 HTTPMethod: "POST", 1600 HTTPPath: "/", 1601 } 1602 1603 if input == nil { 1604 input = &DescribeEndpointInput{} 1605 } 1606 1607 output = &DescribeEndpointOutput{} 1608 req = c.newRequest(op, input, output) 1609 return 1610} 1611 1612// DescribeEndpoint API operation for Amazon Comprehend. 1613// 1614// Gets the properties associated with a specific endpoint. Use this operation 1615// to get the status of an endpoint. 1616// 1617// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1618// with awserr.Error's Code and Message methods to get detailed information about 1619// the error. 1620// 1621// See the AWS API reference guide for Amazon Comprehend's 1622// API operation DescribeEndpoint for usage and error information. 1623// 1624// Returned Error Types: 1625// * InvalidRequestException 1626// The request is invalid. 1627// 1628// * TooManyRequestsException 1629// The number of requests exceeds the limit. Resubmit your request later. 1630// 1631// * ResourceNotFoundException 1632// The specified resource ARN was not found. Check the ARN and try your request 1633// again. 1634// 1635// * InternalServerException 1636// An internal server error occurred. Retry your request. 1637// 1638// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEndpoint 1639func (c *Comprehend) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { 1640 req, out := c.DescribeEndpointRequest(input) 1641 return out, req.Send() 1642} 1643 1644// DescribeEndpointWithContext is the same as DescribeEndpoint with the addition of 1645// the ability to pass a context and additional request options. 1646// 1647// See DescribeEndpoint for details on how to use this API operation. 1648// 1649// The context must be non-nil and will be used for request cancellation. If 1650// the context is nil a panic will occur. In the future the SDK may create 1651// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1652// for more information on using Contexts. 1653func (c *Comprehend) DescribeEndpointWithContext(ctx aws.Context, input *DescribeEndpointInput, opts ...request.Option) (*DescribeEndpointOutput, error) { 1654 req, out := c.DescribeEndpointRequest(input) 1655 req.SetContext(ctx) 1656 req.ApplyOptions(opts...) 1657 return out, req.Send() 1658} 1659 1660const opDescribeEntitiesDetectionJob = "DescribeEntitiesDetectionJob" 1661 1662// DescribeEntitiesDetectionJobRequest generates a "aws/request.Request" representing the 1663// client's request for the DescribeEntitiesDetectionJob operation. The "output" return 1664// value will be populated with the request's response once the request completes 1665// successfully. 1666// 1667// Use "Send" method on the returned Request to send the API call to the service. 1668// the "output" return value is not valid until after Send returns without error. 1669// 1670// See DescribeEntitiesDetectionJob for more information on using the DescribeEntitiesDetectionJob 1671// API call, and error handling. 1672// 1673// This method is useful when you want to inject custom logic or configuration 1674// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1675// 1676// 1677// // Example sending a request using the DescribeEntitiesDetectionJobRequest method. 1678// req, resp := client.DescribeEntitiesDetectionJobRequest(params) 1679// 1680// err := req.Send() 1681// if err == nil { // resp is now filled 1682// fmt.Println(resp) 1683// } 1684// 1685// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJob 1686func (c *Comprehend) DescribeEntitiesDetectionJobRequest(input *DescribeEntitiesDetectionJobInput) (req *request.Request, output *DescribeEntitiesDetectionJobOutput) { 1687 op := &request.Operation{ 1688 Name: opDescribeEntitiesDetectionJob, 1689 HTTPMethod: "POST", 1690 HTTPPath: "/", 1691 } 1692 1693 if input == nil { 1694 input = &DescribeEntitiesDetectionJobInput{} 1695 } 1696 1697 output = &DescribeEntitiesDetectionJobOutput{} 1698 req = c.newRequest(op, input, output) 1699 return 1700} 1701 1702// DescribeEntitiesDetectionJob API operation for Amazon Comprehend. 1703// 1704// Gets the properties associated with an entities detection job. Use this operation 1705// to get the status of a detection job. 1706// 1707// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1708// with awserr.Error's Code and Message methods to get detailed information about 1709// the error. 1710// 1711// See the AWS API reference guide for Amazon Comprehend's 1712// API operation DescribeEntitiesDetectionJob for usage and error information. 1713// 1714// Returned Error Types: 1715// * InvalidRequestException 1716// The request is invalid. 1717// 1718// * JobNotFoundException 1719// The specified job was not found. Check the job ID and try again. 1720// 1721// * TooManyRequestsException 1722// The number of requests exceeds the limit. Resubmit your request later. 1723// 1724// * InternalServerException 1725// An internal server error occurred. Retry your request. 1726// 1727// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJob 1728func (c *Comprehend) DescribeEntitiesDetectionJob(input *DescribeEntitiesDetectionJobInput) (*DescribeEntitiesDetectionJobOutput, error) { 1729 req, out := c.DescribeEntitiesDetectionJobRequest(input) 1730 return out, req.Send() 1731} 1732 1733// DescribeEntitiesDetectionJobWithContext is the same as DescribeEntitiesDetectionJob with the addition of 1734// the ability to pass a context and additional request options. 1735// 1736// See DescribeEntitiesDetectionJob for details on how to use this API operation. 1737// 1738// The context must be non-nil and will be used for request cancellation. If 1739// the context is nil a panic will occur. In the future the SDK may create 1740// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1741// for more information on using Contexts. 1742func (c *Comprehend) DescribeEntitiesDetectionJobWithContext(ctx aws.Context, input *DescribeEntitiesDetectionJobInput, opts ...request.Option) (*DescribeEntitiesDetectionJobOutput, error) { 1743 req, out := c.DescribeEntitiesDetectionJobRequest(input) 1744 req.SetContext(ctx) 1745 req.ApplyOptions(opts...) 1746 return out, req.Send() 1747} 1748 1749const opDescribeEntityRecognizer = "DescribeEntityRecognizer" 1750 1751// DescribeEntityRecognizerRequest generates a "aws/request.Request" representing the 1752// client's request for the DescribeEntityRecognizer operation. The "output" return 1753// value will be populated with the request's response once the request completes 1754// successfully. 1755// 1756// Use "Send" method on the returned Request to send the API call to the service. 1757// the "output" return value is not valid until after Send returns without error. 1758// 1759// See DescribeEntityRecognizer for more information on using the DescribeEntityRecognizer 1760// API call, and error handling. 1761// 1762// This method is useful when you want to inject custom logic or configuration 1763// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1764// 1765// 1766// // Example sending a request using the DescribeEntityRecognizerRequest method. 1767// req, resp := client.DescribeEntityRecognizerRequest(params) 1768// 1769// err := req.Send() 1770// if err == nil { // resp is now filled 1771// fmt.Println(resp) 1772// } 1773// 1774// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntityRecognizer 1775func (c *Comprehend) DescribeEntityRecognizerRequest(input *DescribeEntityRecognizerInput) (req *request.Request, output *DescribeEntityRecognizerOutput) { 1776 op := &request.Operation{ 1777 Name: opDescribeEntityRecognizer, 1778 HTTPMethod: "POST", 1779 HTTPPath: "/", 1780 } 1781 1782 if input == nil { 1783 input = &DescribeEntityRecognizerInput{} 1784 } 1785 1786 output = &DescribeEntityRecognizerOutput{} 1787 req = c.newRequest(op, input, output) 1788 return 1789} 1790 1791// DescribeEntityRecognizer API operation for Amazon Comprehend. 1792// 1793// Provides details about an entity recognizer including status, S3 buckets 1794// containing training data, recognizer metadata, metrics, and so on. 1795// 1796// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1797// with awserr.Error's Code and Message methods to get detailed information about 1798// the error. 1799// 1800// See the AWS API reference guide for Amazon Comprehend's 1801// API operation DescribeEntityRecognizer for usage and error information. 1802// 1803// Returned Error Types: 1804// * InvalidRequestException 1805// The request is invalid. 1806// 1807// * TooManyRequestsException 1808// The number of requests exceeds the limit. Resubmit your request later. 1809// 1810// * ResourceNotFoundException 1811// The specified resource ARN was not found. Check the ARN and try your request 1812// again. 1813// 1814// * InternalServerException 1815// An internal server error occurred. Retry your request. 1816// 1817// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntityRecognizer 1818func (c *Comprehend) DescribeEntityRecognizer(input *DescribeEntityRecognizerInput) (*DescribeEntityRecognizerOutput, error) { 1819 req, out := c.DescribeEntityRecognizerRequest(input) 1820 return out, req.Send() 1821} 1822 1823// DescribeEntityRecognizerWithContext is the same as DescribeEntityRecognizer with the addition of 1824// the ability to pass a context and additional request options. 1825// 1826// See DescribeEntityRecognizer for details on how to use this API operation. 1827// 1828// The context must be non-nil and will be used for request cancellation. If 1829// the context is nil a panic will occur. In the future the SDK may create 1830// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1831// for more information on using Contexts. 1832func (c *Comprehend) DescribeEntityRecognizerWithContext(ctx aws.Context, input *DescribeEntityRecognizerInput, opts ...request.Option) (*DescribeEntityRecognizerOutput, error) { 1833 req, out := c.DescribeEntityRecognizerRequest(input) 1834 req.SetContext(ctx) 1835 req.ApplyOptions(opts...) 1836 return out, req.Send() 1837} 1838 1839const opDescribeEventsDetectionJob = "DescribeEventsDetectionJob" 1840 1841// DescribeEventsDetectionJobRequest generates a "aws/request.Request" representing the 1842// client's request for the DescribeEventsDetectionJob operation. The "output" return 1843// value will be populated with the request's response once the request completes 1844// successfully. 1845// 1846// Use "Send" method on the returned Request to send the API call to the service. 1847// the "output" return value is not valid until after Send returns without error. 1848// 1849// See DescribeEventsDetectionJob for more information on using the DescribeEventsDetectionJob 1850// API call, and error handling. 1851// 1852// This method is useful when you want to inject custom logic or configuration 1853// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1854// 1855// 1856// // Example sending a request using the DescribeEventsDetectionJobRequest method. 1857// req, resp := client.DescribeEventsDetectionJobRequest(params) 1858// 1859// err := req.Send() 1860// if err == nil { // resp is now filled 1861// fmt.Println(resp) 1862// } 1863// 1864// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEventsDetectionJob 1865func (c *Comprehend) DescribeEventsDetectionJobRequest(input *DescribeEventsDetectionJobInput) (req *request.Request, output *DescribeEventsDetectionJobOutput) { 1866 op := &request.Operation{ 1867 Name: opDescribeEventsDetectionJob, 1868 HTTPMethod: "POST", 1869 HTTPPath: "/", 1870 } 1871 1872 if input == nil { 1873 input = &DescribeEventsDetectionJobInput{} 1874 } 1875 1876 output = &DescribeEventsDetectionJobOutput{} 1877 req = c.newRequest(op, input, output) 1878 return 1879} 1880 1881// DescribeEventsDetectionJob API operation for Amazon Comprehend. 1882// 1883// Gets the status and details of an events detection job. 1884// 1885// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1886// with awserr.Error's Code and Message methods to get detailed information about 1887// the error. 1888// 1889// See the AWS API reference guide for Amazon Comprehend's 1890// API operation DescribeEventsDetectionJob for usage and error information. 1891// 1892// Returned Error Types: 1893// * InvalidRequestException 1894// The request is invalid. 1895// 1896// * JobNotFoundException 1897// The specified job was not found. Check the job ID and try again. 1898// 1899// * TooManyRequestsException 1900// The number of requests exceeds the limit. Resubmit your request later. 1901// 1902// * InternalServerException 1903// An internal server error occurred. Retry your request. 1904// 1905// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEventsDetectionJob 1906func (c *Comprehend) DescribeEventsDetectionJob(input *DescribeEventsDetectionJobInput) (*DescribeEventsDetectionJobOutput, error) { 1907 req, out := c.DescribeEventsDetectionJobRequest(input) 1908 return out, req.Send() 1909} 1910 1911// DescribeEventsDetectionJobWithContext is the same as DescribeEventsDetectionJob with the addition of 1912// the ability to pass a context and additional request options. 1913// 1914// See DescribeEventsDetectionJob for details on how to use this API operation. 1915// 1916// The context must be non-nil and will be used for request cancellation. If 1917// the context is nil a panic will occur. In the future the SDK may create 1918// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1919// for more information on using Contexts. 1920func (c *Comprehend) DescribeEventsDetectionJobWithContext(ctx aws.Context, input *DescribeEventsDetectionJobInput, opts ...request.Option) (*DescribeEventsDetectionJobOutput, error) { 1921 req, out := c.DescribeEventsDetectionJobRequest(input) 1922 req.SetContext(ctx) 1923 req.ApplyOptions(opts...) 1924 return out, req.Send() 1925} 1926 1927const opDescribeKeyPhrasesDetectionJob = "DescribeKeyPhrasesDetectionJob" 1928 1929// DescribeKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the 1930// client's request for the DescribeKeyPhrasesDetectionJob operation. The "output" return 1931// value will be populated with the request's response once the request completes 1932// successfully. 1933// 1934// Use "Send" method on the returned Request to send the API call to the service. 1935// the "output" return value is not valid until after Send returns without error. 1936// 1937// See DescribeKeyPhrasesDetectionJob for more information on using the DescribeKeyPhrasesDetectionJob 1938// API call, and error handling. 1939// 1940// This method is useful when you want to inject custom logic or configuration 1941// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1942// 1943// 1944// // Example sending a request using the DescribeKeyPhrasesDetectionJobRequest method. 1945// req, resp := client.DescribeKeyPhrasesDetectionJobRequest(params) 1946// 1947// err := req.Send() 1948// if err == nil { // resp is now filled 1949// fmt.Println(resp) 1950// } 1951// 1952// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJob 1953func (c *Comprehend) DescribeKeyPhrasesDetectionJobRequest(input *DescribeKeyPhrasesDetectionJobInput) (req *request.Request, output *DescribeKeyPhrasesDetectionJobOutput) { 1954 op := &request.Operation{ 1955 Name: opDescribeKeyPhrasesDetectionJob, 1956 HTTPMethod: "POST", 1957 HTTPPath: "/", 1958 } 1959 1960 if input == nil { 1961 input = &DescribeKeyPhrasesDetectionJobInput{} 1962 } 1963 1964 output = &DescribeKeyPhrasesDetectionJobOutput{} 1965 req = c.newRequest(op, input, output) 1966 return 1967} 1968 1969// DescribeKeyPhrasesDetectionJob API operation for Amazon Comprehend. 1970// 1971// Gets the properties associated with a key phrases detection job. Use this 1972// operation to get the status of a detection job. 1973// 1974// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1975// with awserr.Error's Code and Message methods to get detailed information about 1976// the error. 1977// 1978// See the AWS API reference guide for Amazon Comprehend's 1979// API operation DescribeKeyPhrasesDetectionJob for usage and error information. 1980// 1981// Returned Error Types: 1982// * InvalidRequestException 1983// The request is invalid. 1984// 1985// * JobNotFoundException 1986// The specified job was not found. Check the job ID and try again. 1987// 1988// * TooManyRequestsException 1989// The number of requests exceeds the limit. Resubmit your request later. 1990// 1991// * InternalServerException 1992// An internal server error occurred. Retry your request. 1993// 1994// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJob 1995func (c *Comprehend) DescribeKeyPhrasesDetectionJob(input *DescribeKeyPhrasesDetectionJobInput) (*DescribeKeyPhrasesDetectionJobOutput, error) { 1996 req, out := c.DescribeKeyPhrasesDetectionJobRequest(input) 1997 return out, req.Send() 1998} 1999 2000// DescribeKeyPhrasesDetectionJobWithContext is the same as DescribeKeyPhrasesDetectionJob with the addition of 2001// the ability to pass a context and additional request options. 2002// 2003// See DescribeKeyPhrasesDetectionJob for details on how to use this API operation. 2004// 2005// The context must be non-nil and will be used for request cancellation. If 2006// the context is nil a panic will occur. In the future the SDK may create 2007// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2008// for more information on using Contexts. 2009func (c *Comprehend) DescribeKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *DescribeKeyPhrasesDetectionJobInput, opts ...request.Option) (*DescribeKeyPhrasesDetectionJobOutput, error) { 2010 req, out := c.DescribeKeyPhrasesDetectionJobRequest(input) 2011 req.SetContext(ctx) 2012 req.ApplyOptions(opts...) 2013 return out, req.Send() 2014} 2015 2016const opDescribePiiEntitiesDetectionJob = "DescribePiiEntitiesDetectionJob" 2017 2018// DescribePiiEntitiesDetectionJobRequest generates a "aws/request.Request" representing the 2019// client's request for the DescribePiiEntitiesDetectionJob operation. The "output" return 2020// value will be populated with the request's response once the request completes 2021// successfully. 2022// 2023// Use "Send" method on the returned Request to send the API call to the service. 2024// the "output" return value is not valid until after Send returns without error. 2025// 2026// See DescribePiiEntitiesDetectionJob for more information on using the DescribePiiEntitiesDetectionJob 2027// API call, and error handling. 2028// 2029// This method is useful when you want to inject custom logic or configuration 2030// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2031// 2032// 2033// // Example sending a request using the DescribePiiEntitiesDetectionJobRequest method. 2034// req, resp := client.DescribePiiEntitiesDetectionJobRequest(params) 2035// 2036// err := req.Send() 2037// if err == nil { // resp is now filled 2038// fmt.Println(resp) 2039// } 2040// 2041// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribePiiEntitiesDetectionJob 2042func (c *Comprehend) DescribePiiEntitiesDetectionJobRequest(input *DescribePiiEntitiesDetectionJobInput) (req *request.Request, output *DescribePiiEntitiesDetectionJobOutput) { 2043 op := &request.Operation{ 2044 Name: opDescribePiiEntitiesDetectionJob, 2045 HTTPMethod: "POST", 2046 HTTPPath: "/", 2047 } 2048 2049 if input == nil { 2050 input = &DescribePiiEntitiesDetectionJobInput{} 2051 } 2052 2053 output = &DescribePiiEntitiesDetectionJobOutput{} 2054 req = c.newRequest(op, input, output) 2055 return 2056} 2057 2058// DescribePiiEntitiesDetectionJob API operation for Amazon Comprehend. 2059// 2060// Gets the properties associated with a PII entities detection job. For example, 2061// you can use this operation to get the job status. 2062// 2063// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2064// with awserr.Error's Code and Message methods to get detailed information about 2065// the error. 2066// 2067// See the AWS API reference guide for Amazon Comprehend's 2068// API operation DescribePiiEntitiesDetectionJob for usage and error information. 2069// 2070// Returned Error Types: 2071// * InvalidRequestException 2072// The request is invalid. 2073// 2074// * JobNotFoundException 2075// The specified job was not found. Check the job ID and try again. 2076// 2077// * TooManyRequestsException 2078// The number of requests exceeds the limit. Resubmit your request later. 2079// 2080// * InternalServerException 2081// An internal server error occurred. Retry your request. 2082// 2083// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribePiiEntitiesDetectionJob 2084func (c *Comprehend) DescribePiiEntitiesDetectionJob(input *DescribePiiEntitiesDetectionJobInput) (*DescribePiiEntitiesDetectionJobOutput, error) { 2085 req, out := c.DescribePiiEntitiesDetectionJobRequest(input) 2086 return out, req.Send() 2087} 2088 2089// DescribePiiEntitiesDetectionJobWithContext is the same as DescribePiiEntitiesDetectionJob with the addition of 2090// the ability to pass a context and additional request options. 2091// 2092// See DescribePiiEntitiesDetectionJob for details on how to use this API operation. 2093// 2094// The context must be non-nil and will be used for request cancellation. If 2095// the context is nil a panic will occur. In the future the SDK may create 2096// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2097// for more information on using Contexts. 2098func (c *Comprehend) DescribePiiEntitiesDetectionJobWithContext(ctx aws.Context, input *DescribePiiEntitiesDetectionJobInput, opts ...request.Option) (*DescribePiiEntitiesDetectionJobOutput, error) { 2099 req, out := c.DescribePiiEntitiesDetectionJobRequest(input) 2100 req.SetContext(ctx) 2101 req.ApplyOptions(opts...) 2102 return out, req.Send() 2103} 2104 2105const opDescribeSentimentDetectionJob = "DescribeSentimentDetectionJob" 2106 2107// DescribeSentimentDetectionJobRequest generates a "aws/request.Request" representing the 2108// client's request for the DescribeSentimentDetectionJob operation. The "output" return 2109// value will be populated with the request's response once the request completes 2110// successfully. 2111// 2112// Use "Send" method on the returned Request to send the API call to the service. 2113// the "output" return value is not valid until after Send returns without error. 2114// 2115// See DescribeSentimentDetectionJob for more information on using the DescribeSentimentDetectionJob 2116// API call, and error handling. 2117// 2118// This method is useful when you want to inject custom logic or configuration 2119// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2120// 2121// 2122// // Example sending a request using the DescribeSentimentDetectionJobRequest method. 2123// req, resp := client.DescribeSentimentDetectionJobRequest(params) 2124// 2125// err := req.Send() 2126// if err == nil { // resp is now filled 2127// fmt.Println(resp) 2128// } 2129// 2130// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJob 2131func (c *Comprehend) DescribeSentimentDetectionJobRequest(input *DescribeSentimentDetectionJobInput) (req *request.Request, output *DescribeSentimentDetectionJobOutput) { 2132 op := &request.Operation{ 2133 Name: opDescribeSentimentDetectionJob, 2134 HTTPMethod: "POST", 2135 HTTPPath: "/", 2136 } 2137 2138 if input == nil { 2139 input = &DescribeSentimentDetectionJobInput{} 2140 } 2141 2142 output = &DescribeSentimentDetectionJobOutput{} 2143 req = c.newRequest(op, input, output) 2144 return 2145} 2146 2147// DescribeSentimentDetectionJob API operation for Amazon Comprehend. 2148// 2149// Gets the properties associated with a sentiment detection job. Use this operation 2150// to get the status of a detection job. 2151// 2152// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2153// with awserr.Error's Code and Message methods to get detailed information about 2154// the error. 2155// 2156// See the AWS API reference guide for Amazon Comprehend's 2157// API operation DescribeSentimentDetectionJob for usage and error information. 2158// 2159// Returned Error Types: 2160// * InvalidRequestException 2161// The request is invalid. 2162// 2163// * JobNotFoundException 2164// The specified job was not found. Check the job ID and try again. 2165// 2166// * TooManyRequestsException 2167// The number of requests exceeds the limit. Resubmit your request later. 2168// 2169// * InternalServerException 2170// An internal server error occurred. Retry your request. 2171// 2172// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJob 2173func (c *Comprehend) DescribeSentimentDetectionJob(input *DescribeSentimentDetectionJobInput) (*DescribeSentimentDetectionJobOutput, error) { 2174 req, out := c.DescribeSentimentDetectionJobRequest(input) 2175 return out, req.Send() 2176} 2177 2178// DescribeSentimentDetectionJobWithContext is the same as DescribeSentimentDetectionJob with the addition of 2179// the ability to pass a context and additional request options. 2180// 2181// See DescribeSentimentDetectionJob for details on how to use this API operation. 2182// 2183// The context must be non-nil and will be used for request cancellation. If 2184// the context is nil a panic will occur. In the future the SDK may create 2185// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2186// for more information on using Contexts. 2187func (c *Comprehend) DescribeSentimentDetectionJobWithContext(ctx aws.Context, input *DescribeSentimentDetectionJobInput, opts ...request.Option) (*DescribeSentimentDetectionJobOutput, error) { 2188 req, out := c.DescribeSentimentDetectionJobRequest(input) 2189 req.SetContext(ctx) 2190 req.ApplyOptions(opts...) 2191 return out, req.Send() 2192} 2193 2194const opDescribeTopicsDetectionJob = "DescribeTopicsDetectionJob" 2195 2196// DescribeTopicsDetectionJobRequest generates a "aws/request.Request" representing the 2197// client's request for the DescribeTopicsDetectionJob operation. The "output" return 2198// value will be populated with the request's response once the request completes 2199// successfully. 2200// 2201// Use "Send" method on the returned Request to send the API call to the service. 2202// the "output" return value is not valid until after Send returns without error. 2203// 2204// See DescribeTopicsDetectionJob for more information on using the DescribeTopicsDetectionJob 2205// API call, and error handling. 2206// 2207// This method is useful when you want to inject custom logic or configuration 2208// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2209// 2210// 2211// // Example sending a request using the DescribeTopicsDetectionJobRequest method. 2212// req, resp := client.DescribeTopicsDetectionJobRequest(params) 2213// 2214// err := req.Send() 2215// if err == nil { // resp is now filled 2216// fmt.Println(resp) 2217// } 2218// 2219// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJob 2220func (c *Comprehend) DescribeTopicsDetectionJobRequest(input *DescribeTopicsDetectionJobInput) (req *request.Request, output *DescribeTopicsDetectionJobOutput) { 2221 op := &request.Operation{ 2222 Name: opDescribeTopicsDetectionJob, 2223 HTTPMethod: "POST", 2224 HTTPPath: "/", 2225 } 2226 2227 if input == nil { 2228 input = &DescribeTopicsDetectionJobInput{} 2229 } 2230 2231 output = &DescribeTopicsDetectionJobOutput{} 2232 req = c.newRequest(op, input, output) 2233 return 2234} 2235 2236// DescribeTopicsDetectionJob API operation for Amazon Comprehend. 2237// 2238// Gets the properties associated with a topic detection job. Use this operation 2239// to get the status of a detection job. 2240// 2241// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2242// with awserr.Error's Code and Message methods to get detailed information about 2243// the error. 2244// 2245// See the AWS API reference guide for Amazon Comprehend's 2246// API operation DescribeTopicsDetectionJob for usage and error information. 2247// 2248// Returned Error Types: 2249// * InvalidRequestException 2250// The request is invalid. 2251// 2252// * JobNotFoundException 2253// The specified job was not found. Check the job ID and try again. 2254// 2255// * TooManyRequestsException 2256// The number of requests exceeds the limit. Resubmit your request later. 2257// 2258// * InternalServerException 2259// An internal server error occurred. Retry your request. 2260// 2261// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJob 2262func (c *Comprehend) DescribeTopicsDetectionJob(input *DescribeTopicsDetectionJobInput) (*DescribeTopicsDetectionJobOutput, error) { 2263 req, out := c.DescribeTopicsDetectionJobRequest(input) 2264 return out, req.Send() 2265} 2266 2267// DescribeTopicsDetectionJobWithContext is the same as DescribeTopicsDetectionJob with the addition of 2268// the ability to pass a context and additional request options. 2269// 2270// See DescribeTopicsDetectionJob for details on how to use this API operation. 2271// 2272// The context must be non-nil and will be used for request cancellation. If 2273// the context is nil a panic will occur. In the future the SDK may create 2274// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2275// for more information on using Contexts. 2276func (c *Comprehend) DescribeTopicsDetectionJobWithContext(ctx aws.Context, input *DescribeTopicsDetectionJobInput, opts ...request.Option) (*DescribeTopicsDetectionJobOutput, error) { 2277 req, out := c.DescribeTopicsDetectionJobRequest(input) 2278 req.SetContext(ctx) 2279 req.ApplyOptions(opts...) 2280 return out, req.Send() 2281} 2282 2283const opDetectDominantLanguage = "DetectDominantLanguage" 2284 2285// DetectDominantLanguageRequest generates a "aws/request.Request" representing the 2286// client's request for the DetectDominantLanguage operation. The "output" return 2287// value will be populated with the request's response once the request completes 2288// successfully. 2289// 2290// Use "Send" method on the returned Request to send the API call to the service. 2291// the "output" return value is not valid until after Send returns without error. 2292// 2293// See DetectDominantLanguage for more information on using the DetectDominantLanguage 2294// API call, and error handling. 2295// 2296// This method is useful when you want to inject custom logic or configuration 2297// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2298// 2299// 2300// // Example sending a request using the DetectDominantLanguageRequest method. 2301// req, resp := client.DetectDominantLanguageRequest(params) 2302// 2303// err := req.Send() 2304// if err == nil { // resp is now filled 2305// fmt.Println(resp) 2306// } 2307// 2308// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguage 2309func (c *Comprehend) DetectDominantLanguageRequest(input *DetectDominantLanguageInput) (req *request.Request, output *DetectDominantLanguageOutput) { 2310 op := &request.Operation{ 2311 Name: opDetectDominantLanguage, 2312 HTTPMethod: "POST", 2313 HTTPPath: "/", 2314 } 2315 2316 if input == nil { 2317 input = &DetectDominantLanguageInput{} 2318 } 2319 2320 output = &DetectDominantLanguageOutput{} 2321 req = c.newRequest(op, input, output) 2322 return 2323} 2324 2325// DetectDominantLanguage API operation for Amazon Comprehend. 2326// 2327// Determines the dominant language of the input text. For a list of languages 2328// that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages 2329// (https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html). 2330// 2331// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2332// with awserr.Error's Code and Message methods to get detailed information about 2333// the error. 2334// 2335// See the AWS API reference guide for Amazon Comprehend's 2336// API operation DetectDominantLanguage for usage and error information. 2337// 2338// Returned Error Types: 2339// * InvalidRequestException 2340// The request is invalid. 2341// 2342// * TextSizeLimitExceededException 2343// The size of the input text exceeds the limit. Use a smaller document. 2344// 2345// * InternalServerException 2346// An internal server error occurred. Retry your request. 2347// 2348// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguage 2349func (c *Comprehend) DetectDominantLanguage(input *DetectDominantLanguageInput) (*DetectDominantLanguageOutput, error) { 2350 req, out := c.DetectDominantLanguageRequest(input) 2351 return out, req.Send() 2352} 2353 2354// DetectDominantLanguageWithContext is the same as DetectDominantLanguage with the addition of 2355// the ability to pass a context and additional request options. 2356// 2357// See DetectDominantLanguage for details on how to use this API operation. 2358// 2359// The context must be non-nil and will be used for request cancellation. If 2360// the context is nil a panic will occur. In the future the SDK may create 2361// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2362// for more information on using Contexts. 2363func (c *Comprehend) DetectDominantLanguageWithContext(ctx aws.Context, input *DetectDominantLanguageInput, opts ...request.Option) (*DetectDominantLanguageOutput, error) { 2364 req, out := c.DetectDominantLanguageRequest(input) 2365 req.SetContext(ctx) 2366 req.ApplyOptions(opts...) 2367 return out, req.Send() 2368} 2369 2370const opDetectEntities = "DetectEntities" 2371 2372// DetectEntitiesRequest generates a "aws/request.Request" representing the 2373// client's request for the DetectEntities operation. The "output" return 2374// value will be populated with the request's response once the request completes 2375// successfully. 2376// 2377// Use "Send" method on the returned Request to send the API call to the service. 2378// the "output" return value is not valid until after Send returns without error. 2379// 2380// See DetectEntities for more information on using the DetectEntities 2381// API call, and error handling. 2382// 2383// This method is useful when you want to inject custom logic or configuration 2384// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2385// 2386// 2387// // Example sending a request using the DetectEntitiesRequest method. 2388// req, resp := client.DetectEntitiesRequest(params) 2389// 2390// err := req.Send() 2391// if err == nil { // resp is now filled 2392// fmt.Println(resp) 2393// } 2394// 2395// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntities 2396func (c *Comprehend) DetectEntitiesRequest(input *DetectEntitiesInput) (req *request.Request, output *DetectEntitiesOutput) { 2397 op := &request.Operation{ 2398 Name: opDetectEntities, 2399 HTTPMethod: "POST", 2400 HTTPPath: "/", 2401 } 2402 2403 if input == nil { 2404 input = &DetectEntitiesInput{} 2405 } 2406 2407 output = &DetectEntitiesOutput{} 2408 req = c.newRequest(op, input, output) 2409 return 2410} 2411 2412// DetectEntities API operation for Amazon Comprehend. 2413// 2414// Inspects text for named entities, and returns information about them. For 2415// more information, about named entities, see how-entities. 2416// 2417// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2418// with awserr.Error's Code and Message methods to get detailed information about 2419// the error. 2420// 2421// See the AWS API reference guide for Amazon Comprehend's 2422// API operation DetectEntities for usage and error information. 2423// 2424// Returned Error Types: 2425// * InvalidRequestException 2426// The request is invalid. 2427// 2428// * ResourceUnavailableException 2429// The specified resource is not available. Check the resource and try your 2430// request again. 2431// 2432// * TextSizeLimitExceededException 2433// The size of the input text exceeds the limit. Use a smaller document. 2434// 2435// * UnsupportedLanguageException 2436// Amazon Comprehend can't process the language of the input text. For custom 2437// entity recognition APIs, only English, Spanish, French, Italian, German, 2438// or Portuguese are accepted. For a list of supported languages, see supported-languages. 2439// 2440// * InternalServerException 2441// An internal server error occurred. Retry your request. 2442// 2443// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntities 2444func (c *Comprehend) DetectEntities(input *DetectEntitiesInput) (*DetectEntitiesOutput, error) { 2445 req, out := c.DetectEntitiesRequest(input) 2446 return out, req.Send() 2447} 2448 2449// DetectEntitiesWithContext is the same as DetectEntities with the addition of 2450// the ability to pass a context and additional request options. 2451// 2452// See DetectEntities for details on how to use this API operation. 2453// 2454// The context must be non-nil and will be used for request cancellation. If 2455// the context is nil a panic will occur. In the future the SDK may create 2456// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2457// for more information on using Contexts. 2458func (c *Comprehend) DetectEntitiesWithContext(ctx aws.Context, input *DetectEntitiesInput, opts ...request.Option) (*DetectEntitiesOutput, error) { 2459 req, out := c.DetectEntitiesRequest(input) 2460 req.SetContext(ctx) 2461 req.ApplyOptions(opts...) 2462 return out, req.Send() 2463} 2464 2465const opDetectKeyPhrases = "DetectKeyPhrases" 2466 2467// DetectKeyPhrasesRequest generates a "aws/request.Request" representing the 2468// client's request for the DetectKeyPhrases operation. The "output" return 2469// value will be populated with the request's response once the request completes 2470// successfully. 2471// 2472// Use "Send" method on the returned Request to send the API call to the service. 2473// the "output" return value is not valid until after Send returns without error. 2474// 2475// See DetectKeyPhrases for more information on using the DetectKeyPhrases 2476// API call, and error handling. 2477// 2478// This method is useful when you want to inject custom logic or configuration 2479// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2480// 2481// 2482// // Example sending a request using the DetectKeyPhrasesRequest method. 2483// req, resp := client.DetectKeyPhrasesRequest(params) 2484// 2485// err := req.Send() 2486// if err == nil { // resp is now filled 2487// fmt.Println(resp) 2488// } 2489// 2490// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrases 2491func (c *Comprehend) DetectKeyPhrasesRequest(input *DetectKeyPhrasesInput) (req *request.Request, output *DetectKeyPhrasesOutput) { 2492 op := &request.Operation{ 2493 Name: opDetectKeyPhrases, 2494 HTTPMethod: "POST", 2495 HTTPPath: "/", 2496 } 2497 2498 if input == nil { 2499 input = &DetectKeyPhrasesInput{} 2500 } 2501 2502 output = &DetectKeyPhrasesOutput{} 2503 req = c.newRequest(op, input, output) 2504 return 2505} 2506 2507// DetectKeyPhrases API operation for Amazon Comprehend. 2508// 2509// Detects the key noun phrases found in the text. 2510// 2511// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2512// with awserr.Error's Code and Message methods to get detailed information about 2513// the error. 2514// 2515// See the AWS API reference guide for Amazon Comprehend's 2516// API operation DetectKeyPhrases for usage and error information. 2517// 2518// Returned Error Types: 2519// * InvalidRequestException 2520// The request is invalid. 2521// 2522// * TextSizeLimitExceededException 2523// The size of the input text exceeds the limit. Use a smaller document. 2524// 2525// * UnsupportedLanguageException 2526// Amazon Comprehend can't process the language of the input text. For custom 2527// entity recognition APIs, only English, Spanish, French, Italian, German, 2528// or Portuguese are accepted. For a list of supported languages, see supported-languages. 2529// 2530// * InternalServerException 2531// An internal server error occurred. Retry your request. 2532// 2533// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrases 2534func (c *Comprehend) DetectKeyPhrases(input *DetectKeyPhrasesInput) (*DetectKeyPhrasesOutput, error) { 2535 req, out := c.DetectKeyPhrasesRequest(input) 2536 return out, req.Send() 2537} 2538 2539// DetectKeyPhrasesWithContext is the same as DetectKeyPhrases with the addition of 2540// the ability to pass a context and additional request options. 2541// 2542// See DetectKeyPhrases for details on how to use this API operation. 2543// 2544// The context must be non-nil and will be used for request cancellation. If 2545// the context is nil a panic will occur. In the future the SDK may create 2546// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2547// for more information on using Contexts. 2548func (c *Comprehend) DetectKeyPhrasesWithContext(ctx aws.Context, input *DetectKeyPhrasesInput, opts ...request.Option) (*DetectKeyPhrasesOutput, error) { 2549 req, out := c.DetectKeyPhrasesRequest(input) 2550 req.SetContext(ctx) 2551 req.ApplyOptions(opts...) 2552 return out, req.Send() 2553} 2554 2555const opDetectPiiEntities = "DetectPiiEntities" 2556 2557// DetectPiiEntitiesRequest generates a "aws/request.Request" representing the 2558// client's request for the DetectPiiEntities operation. The "output" return 2559// value will be populated with the request's response once the request completes 2560// successfully. 2561// 2562// Use "Send" method on the returned Request to send the API call to the service. 2563// the "output" return value is not valid until after Send returns without error. 2564// 2565// See DetectPiiEntities for more information on using the DetectPiiEntities 2566// API call, and error handling. 2567// 2568// This method is useful when you want to inject custom logic or configuration 2569// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2570// 2571// 2572// // Example sending a request using the DetectPiiEntitiesRequest method. 2573// req, resp := client.DetectPiiEntitiesRequest(params) 2574// 2575// err := req.Send() 2576// if err == nil { // resp is now filled 2577// fmt.Println(resp) 2578// } 2579// 2580// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectPiiEntities 2581func (c *Comprehend) DetectPiiEntitiesRequest(input *DetectPiiEntitiesInput) (req *request.Request, output *DetectPiiEntitiesOutput) { 2582 op := &request.Operation{ 2583 Name: opDetectPiiEntities, 2584 HTTPMethod: "POST", 2585 HTTPPath: "/", 2586 } 2587 2588 if input == nil { 2589 input = &DetectPiiEntitiesInput{} 2590 } 2591 2592 output = &DetectPiiEntitiesOutput{} 2593 req = c.newRequest(op, input, output) 2594 return 2595} 2596 2597// DetectPiiEntities API operation for Amazon Comprehend. 2598// 2599// Inspects the input text for entities that contain personally identifiable 2600// information (PII) and returns information about them. 2601// 2602// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2603// with awserr.Error's Code and Message methods to get detailed information about 2604// the error. 2605// 2606// See the AWS API reference guide for Amazon Comprehend's 2607// API operation DetectPiiEntities for usage and error information. 2608// 2609// Returned Error Types: 2610// * InvalidRequestException 2611// The request is invalid. 2612// 2613// * TextSizeLimitExceededException 2614// The size of the input text exceeds the limit. Use a smaller document. 2615// 2616// * UnsupportedLanguageException 2617// Amazon Comprehend can't process the language of the input text. For custom 2618// entity recognition APIs, only English, Spanish, French, Italian, German, 2619// or Portuguese are accepted. For a list of supported languages, see supported-languages. 2620// 2621// * InternalServerException 2622// An internal server error occurred. Retry your request. 2623// 2624// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectPiiEntities 2625func (c *Comprehend) DetectPiiEntities(input *DetectPiiEntitiesInput) (*DetectPiiEntitiesOutput, error) { 2626 req, out := c.DetectPiiEntitiesRequest(input) 2627 return out, req.Send() 2628} 2629 2630// DetectPiiEntitiesWithContext is the same as DetectPiiEntities with the addition of 2631// the ability to pass a context and additional request options. 2632// 2633// See DetectPiiEntities for details on how to use this API operation. 2634// 2635// The context must be non-nil and will be used for request cancellation. If 2636// the context is nil a panic will occur. In the future the SDK may create 2637// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2638// for more information on using Contexts. 2639func (c *Comprehend) DetectPiiEntitiesWithContext(ctx aws.Context, input *DetectPiiEntitiesInput, opts ...request.Option) (*DetectPiiEntitiesOutput, error) { 2640 req, out := c.DetectPiiEntitiesRequest(input) 2641 req.SetContext(ctx) 2642 req.ApplyOptions(opts...) 2643 return out, req.Send() 2644} 2645 2646const opDetectSentiment = "DetectSentiment" 2647 2648// DetectSentimentRequest generates a "aws/request.Request" representing the 2649// client's request for the DetectSentiment operation. The "output" return 2650// value will be populated with the request's response once the request completes 2651// successfully. 2652// 2653// Use "Send" method on the returned Request to send the API call to the service. 2654// the "output" return value is not valid until after Send returns without error. 2655// 2656// See DetectSentiment for more information on using the DetectSentiment 2657// API call, and error handling. 2658// 2659// This method is useful when you want to inject custom logic or configuration 2660// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2661// 2662// 2663// // Example sending a request using the DetectSentimentRequest method. 2664// req, resp := client.DetectSentimentRequest(params) 2665// 2666// err := req.Send() 2667// if err == nil { // resp is now filled 2668// fmt.Println(resp) 2669// } 2670// 2671// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentiment 2672func (c *Comprehend) DetectSentimentRequest(input *DetectSentimentInput) (req *request.Request, output *DetectSentimentOutput) { 2673 op := &request.Operation{ 2674 Name: opDetectSentiment, 2675 HTTPMethod: "POST", 2676 HTTPPath: "/", 2677 } 2678 2679 if input == nil { 2680 input = &DetectSentimentInput{} 2681 } 2682 2683 output = &DetectSentimentOutput{} 2684 req = c.newRequest(op, input, output) 2685 return 2686} 2687 2688// DetectSentiment API operation for Amazon Comprehend. 2689// 2690// Inspects text and returns an inference of the prevailing sentiment (POSITIVE, 2691// NEUTRAL, MIXED, or NEGATIVE). 2692// 2693// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2694// with awserr.Error's Code and Message methods to get detailed information about 2695// the error. 2696// 2697// See the AWS API reference guide for Amazon Comprehend's 2698// API operation DetectSentiment for usage and error information. 2699// 2700// Returned Error Types: 2701// * InvalidRequestException 2702// The request is invalid. 2703// 2704// * TextSizeLimitExceededException 2705// The size of the input text exceeds the limit. Use a smaller document. 2706// 2707// * UnsupportedLanguageException 2708// Amazon Comprehend can't process the language of the input text. For custom 2709// entity recognition APIs, only English, Spanish, French, Italian, German, 2710// or Portuguese are accepted. For a list of supported languages, see supported-languages. 2711// 2712// * InternalServerException 2713// An internal server error occurred. Retry your request. 2714// 2715// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentiment 2716func (c *Comprehend) DetectSentiment(input *DetectSentimentInput) (*DetectSentimentOutput, error) { 2717 req, out := c.DetectSentimentRequest(input) 2718 return out, req.Send() 2719} 2720 2721// DetectSentimentWithContext is the same as DetectSentiment with the addition of 2722// the ability to pass a context and additional request options. 2723// 2724// See DetectSentiment for details on how to use this API operation. 2725// 2726// The context must be non-nil and will be used for request cancellation. If 2727// the context is nil a panic will occur. In the future the SDK may create 2728// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2729// for more information on using Contexts. 2730func (c *Comprehend) DetectSentimentWithContext(ctx aws.Context, input *DetectSentimentInput, opts ...request.Option) (*DetectSentimentOutput, error) { 2731 req, out := c.DetectSentimentRequest(input) 2732 req.SetContext(ctx) 2733 req.ApplyOptions(opts...) 2734 return out, req.Send() 2735} 2736 2737const opDetectSyntax = "DetectSyntax" 2738 2739// DetectSyntaxRequest generates a "aws/request.Request" representing the 2740// client's request for the DetectSyntax operation. The "output" return 2741// value will be populated with the request's response once the request completes 2742// successfully. 2743// 2744// Use "Send" method on the returned Request to send the API call to the service. 2745// the "output" return value is not valid until after Send returns without error. 2746// 2747// See DetectSyntax for more information on using the DetectSyntax 2748// API call, and error handling. 2749// 2750// This method is useful when you want to inject custom logic or configuration 2751// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2752// 2753// 2754// // Example sending a request using the DetectSyntaxRequest method. 2755// req, resp := client.DetectSyntaxRequest(params) 2756// 2757// err := req.Send() 2758// if err == nil { // resp is now filled 2759// fmt.Println(resp) 2760// } 2761// 2762// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntax 2763func (c *Comprehend) DetectSyntaxRequest(input *DetectSyntaxInput) (req *request.Request, output *DetectSyntaxOutput) { 2764 op := &request.Operation{ 2765 Name: opDetectSyntax, 2766 HTTPMethod: "POST", 2767 HTTPPath: "/", 2768 } 2769 2770 if input == nil { 2771 input = &DetectSyntaxInput{} 2772 } 2773 2774 output = &DetectSyntaxOutput{} 2775 req = c.newRequest(op, input, output) 2776 return 2777} 2778 2779// DetectSyntax API operation for Amazon Comprehend. 2780// 2781// Inspects text for syntax and the part of speech of words in the document. 2782// For more information, how-syntax. 2783// 2784// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2785// with awserr.Error's Code and Message methods to get detailed information about 2786// the error. 2787// 2788// See the AWS API reference guide for Amazon Comprehend's 2789// API operation DetectSyntax for usage and error information. 2790// 2791// Returned Error Types: 2792// * InvalidRequestException 2793// The request is invalid. 2794// 2795// * TextSizeLimitExceededException 2796// The size of the input text exceeds the limit. Use a smaller document. 2797// 2798// * UnsupportedLanguageException 2799// Amazon Comprehend can't process the language of the input text. For custom 2800// entity recognition APIs, only English, Spanish, French, Italian, German, 2801// or Portuguese are accepted. For a list of supported languages, see supported-languages. 2802// 2803// * InternalServerException 2804// An internal server error occurred. Retry your request. 2805// 2806// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntax 2807func (c *Comprehend) DetectSyntax(input *DetectSyntaxInput) (*DetectSyntaxOutput, error) { 2808 req, out := c.DetectSyntaxRequest(input) 2809 return out, req.Send() 2810} 2811 2812// DetectSyntaxWithContext is the same as DetectSyntax with the addition of 2813// the ability to pass a context and additional request options. 2814// 2815// See DetectSyntax for details on how to use this API operation. 2816// 2817// The context must be non-nil and will be used for request cancellation. If 2818// the context is nil a panic will occur. In the future the SDK may create 2819// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2820// for more information on using Contexts. 2821func (c *Comprehend) DetectSyntaxWithContext(ctx aws.Context, input *DetectSyntaxInput, opts ...request.Option) (*DetectSyntaxOutput, error) { 2822 req, out := c.DetectSyntaxRequest(input) 2823 req.SetContext(ctx) 2824 req.ApplyOptions(opts...) 2825 return out, req.Send() 2826} 2827 2828const opListDocumentClassificationJobs = "ListDocumentClassificationJobs" 2829 2830// ListDocumentClassificationJobsRequest generates a "aws/request.Request" representing the 2831// client's request for the ListDocumentClassificationJobs operation. The "output" return 2832// value will be populated with the request's response once the request completes 2833// successfully. 2834// 2835// Use "Send" method on the returned Request to send the API call to the service. 2836// the "output" return value is not valid until after Send returns without error. 2837// 2838// See ListDocumentClassificationJobs for more information on using the ListDocumentClassificationJobs 2839// API call, and error handling. 2840// 2841// This method is useful when you want to inject custom logic or configuration 2842// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2843// 2844// 2845// // Example sending a request using the ListDocumentClassificationJobsRequest method. 2846// req, resp := client.ListDocumentClassificationJobsRequest(params) 2847// 2848// err := req.Send() 2849// if err == nil { // resp is now filled 2850// fmt.Println(resp) 2851// } 2852// 2853// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassificationJobs 2854func (c *Comprehend) ListDocumentClassificationJobsRequest(input *ListDocumentClassificationJobsInput) (req *request.Request, output *ListDocumentClassificationJobsOutput) { 2855 op := &request.Operation{ 2856 Name: opListDocumentClassificationJobs, 2857 HTTPMethod: "POST", 2858 HTTPPath: "/", 2859 Paginator: &request.Paginator{ 2860 InputTokens: []string{"NextToken"}, 2861 OutputTokens: []string{"NextToken"}, 2862 LimitToken: "MaxResults", 2863 TruncationToken: "", 2864 }, 2865 } 2866 2867 if input == nil { 2868 input = &ListDocumentClassificationJobsInput{} 2869 } 2870 2871 output = &ListDocumentClassificationJobsOutput{} 2872 req = c.newRequest(op, input, output) 2873 return 2874} 2875 2876// ListDocumentClassificationJobs API operation for Amazon Comprehend. 2877// 2878// Gets a list of the documentation classification jobs that you have submitted. 2879// 2880// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2881// with awserr.Error's Code and Message methods to get detailed information about 2882// the error. 2883// 2884// See the AWS API reference guide for Amazon Comprehend's 2885// API operation ListDocumentClassificationJobs for usage and error information. 2886// 2887// Returned Error Types: 2888// * InvalidRequestException 2889// The request is invalid. 2890// 2891// * TooManyRequestsException 2892// The number of requests exceeds the limit. Resubmit your request later. 2893// 2894// * InvalidFilterException 2895// The filter specified for the operation is invalid. Specify a different filter. 2896// 2897// * InternalServerException 2898// An internal server error occurred. Retry your request. 2899// 2900// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassificationJobs 2901func (c *Comprehend) ListDocumentClassificationJobs(input *ListDocumentClassificationJobsInput) (*ListDocumentClassificationJobsOutput, error) { 2902 req, out := c.ListDocumentClassificationJobsRequest(input) 2903 return out, req.Send() 2904} 2905 2906// ListDocumentClassificationJobsWithContext is the same as ListDocumentClassificationJobs with the addition of 2907// the ability to pass a context and additional request options. 2908// 2909// See ListDocumentClassificationJobs for details on how to use this API operation. 2910// 2911// The context must be non-nil and will be used for request cancellation. If 2912// the context is nil a panic will occur. In the future the SDK may create 2913// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2914// for more information on using Contexts. 2915func (c *Comprehend) ListDocumentClassificationJobsWithContext(ctx aws.Context, input *ListDocumentClassificationJobsInput, opts ...request.Option) (*ListDocumentClassificationJobsOutput, error) { 2916 req, out := c.ListDocumentClassificationJobsRequest(input) 2917 req.SetContext(ctx) 2918 req.ApplyOptions(opts...) 2919 return out, req.Send() 2920} 2921 2922// ListDocumentClassificationJobsPages iterates over the pages of a ListDocumentClassificationJobs operation, 2923// calling the "fn" function with the response data for each page. To stop 2924// iterating, return false from the fn function. 2925// 2926// See ListDocumentClassificationJobs method for more information on how to use this operation. 2927// 2928// Note: This operation can generate multiple requests to a service. 2929// 2930// // Example iterating over at most 3 pages of a ListDocumentClassificationJobs operation. 2931// pageNum := 0 2932// err := client.ListDocumentClassificationJobsPages(params, 2933// func(page *comprehend.ListDocumentClassificationJobsOutput, lastPage bool) bool { 2934// pageNum++ 2935// fmt.Println(page) 2936// return pageNum <= 3 2937// }) 2938// 2939func (c *Comprehend) ListDocumentClassificationJobsPages(input *ListDocumentClassificationJobsInput, fn func(*ListDocumentClassificationJobsOutput, bool) bool) error { 2940 return c.ListDocumentClassificationJobsPagesWithContext(aws.BackgroundContext(), input, fn) 2941} 2942 2943// ListDocumentClassificationJobsPagesWithContext same as ListDocumentClassificationJobsPages except 2944// it takes a Context and allows setting request options on the pages. 2945// 2946// The context must be non-nil and will be used for request cancellation. If 2947// the context is nil a panic will occur. In the future the SDK may create 2948// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2949// for more information on using Contexts. 2950func (c *Comprehend) ListDocumentClassificationJobsPagesWithContext(ctx aws.Context, input *ListDocumentClassificationJobsInput, fn func(*ListDocumentClassificationJobsOutput, bool) bool, opts ...request.Option) error { 2951 p := request.Pagination{ 2952 NewRequest: func() (*request.Request, error) { 2953 var inCpy *ListDocumentClassificationJobsInput 2954 if input != nil { 2955 tmp := *input 2956 inCpy = &tmp 2957 } 2958 req, _ := c.ListDocumentClassificationJobsRequest(inCpy) 2959 req.SetContext(ctx) 2960 req.ApplyOptions(opts...) 2961 return req, nil 2962 }, 2963 } 2964 2965 for p.Next() { 2966 if !fn(p.Page().(*ListDocumentClassificationJobsOutput), !p.HasNextPage()) { 2967 break 2968 } 2969 } 2970 2971 return p.Err() 2972} 2973 2974const opListDocumentClassifiers = "ListDocumentClassifiers" 2975 2976// ListDocumentClassifiersRequest generates a "aws/request.Request" representing the 2977// client's request for the ListDocumentClassifiers operation. The "output" return 2978// value will be populated with the request's response once the request completes 2979// successfully. 2980// 2981// Use "Send" method on the returned Request to send the API call to the service. 2982// the "output" return value is not valid until after Send returns without error. 2983// 2984// See ListDocumentClassifiers for more information on using the ListDocumentClassifiers 2985// API call, and error handling. 2986// 2987// This method is useful when you want to inject custom logic or configuration 2988// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2989// 2990// 2991// // Example sending a request using the ListDocumentClassifiersRequest method. 2992// req, resp := client.ListDocumentClassifiersRequest(params) 2993// 2994// err := req.Send() 2995// if err == nil { // resp is now filled 2996// fmt.Println(resp) 2997// } 2998// 2999// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifiers 3000func (c *Comprehend) ListDocumentClassifiersRequest(input *ListDocumentClassifiersInput) (req *request.Request, output *ListDocumentClassifiersOutput) { 3001 op := &request.Operation{ 3002 Name: opListDocumentClassifiers, 3003 HTTPMethod: "POST", 3004 HTTPPath: "/", 3005 Paginator: &request.Paginator{ 3006 InputTokens: []string{"NextToken"}, 3007 OutputTokens: []string{"NextToken"}, 3008 LimitToken: "MaxResults", 3009 TruncationToken: "", 3010 }, 3011 } 3012 3013 if input == nil { 3014 input = &ListDocumentClassifiersInput{} 3015 } 3016 3017 output = &ListDocumentClassifiersOutput{} 3018 req = c.newRequest(op, input, output) 3019 return 3020} 3021 3022// ListDocumentClassifiers API operation for Amazon Comprehend. 3023// 3024// Gets a list of the document classifiers that you have created. 3025// 3026// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3027// with awserr.Error's Code and Message methods to get detailed information about 3028// the error. 3029// 3030// See the AWS API reference guide for Amazon Comprehend's 3031// API operation ListDocumentClassifiers for usage and error information. 3032// 3033// Returned Error Types: 3034// * InvalidRequestException 3035// The request is invalid. 3036// 3037// * TooManyRequestsException 3038// The number of requests exceeds the limit. Resubmit your request later. 3039// 3040// * InvalidFilterException 3041// The filter specified for the operation is invalid. Specify a different filter. 3042// 3043// * InternalServerException 3044// An internal server error occurred. Retry your request. 3045// 3046// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifiers 3047func (c *Comprehend) ListDocumentClassifiers(input *ListDocumentClassifiersInput) (*ListDocumentClassifiersOutput, error) { 3048 req, out := c.ListDocumentClassifiersRequest(input) 3049 return out, req.Send() 3050} 3051 3052// ListDocumentClassifiersWithContext is the same as ListDocumentClassifiers with the addition of 3053// the ability to pass a context and additional request options. 3054// 3055// See ListDocumentClassifiers for details on how to use this API operation. 3056// 3057// The context must be non-nil and will be used for request cancellation. If 3058// the context is nil a panic will occur. In the future the SDK may create 3059// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3060// for more information on using Contexts. 3061func (c *Comprehend) ListDocumentClassifiersWithContext(ctx aws.Context, input *ListDocumentClassifiersInput, opts ...request.Option) (*ListDocumentClassifiersOutput, error) { 3062 req, out := c.ListDocumentClassifiersRequest(input) 3063 req.SetContext(ctx) 3064 req.ApplyOptions(opts...) 3065 return out, req.Send() 3066} 3067 3068// ListDocumentClassifiersPages iterates over the pages of a ListDocumentClassifiers operation, 3069// calling the "fn" function with the response data for each page. To stop 3070// iterating, return false from the fn function. 3071// 3072// See ListDocumentClassifiers method for more information on how to use this operation. 3073// 3074// Note: This operation can generate multiple requests to a service. 3075// 3076// // Example iterating over at most 3 pages of a ListDocumentClassifiers operation. 3077// pageNum := 0 3078// err := client.ListDocumentClassifiersPages(params, 3079// func(page *comprehend.ListDocumentClassifiersOutput, lastPage bool) bool { 3080// pageNum++ 3081// fmt.Println(page) 3082// return pageNum <= 3 3083// }) 3084// 3085func (c *Comprehend) ListDocumentClassifiersPages(input *ListDocumentClassifiersInput, fn func(*ListDocumentClassifiersOutput, bool) bool) error { 3086 return c.ListDocumentClassifiersPagesWithContext(aws.BackgroundContext(), input, fn) 3087} 3088 3089// ListDocumentClassifiersPagesWithContext same as ListDocumentClassifiersPages except 3090// it takes a Context and allows setting request options on the pages. 3091// 3092// The context must be non-nil and will be used for request cancellation. If 3093// the context is nil a panic will occur. In the future the SDK may create 3094// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3095// for more information on using Contexts. 3096func (c *Comprehend) ListDocumentClassifiersPagesWithContext(ctx aws.Context, input *ListDocumentClassifiersInput, fn func(*ListDocumentClassifiersOutput, bool) bool, opts ...request.Option) error { 3097 p := request.Pagination{ 3098 NewRequest: func() (*request.Request, error) { 3099 var inCpy *ListDocumentClassifiersInput 3100 if input != nil { 3101 tmp := *input 3102 inCpy = &tmp 3103 } 3104 req, _ := c.ListDocumentClassifiersRequest(inCpy) 3105 req.SetContext(ctx) 3106 req.ApplyOptions(opts...) 3107 return req, nil 3108 }, 3109 } 3110 3111 for p.Next() { 3112 if !fn(p.Page().(*ListDocumentClassifiersOutput), !p.HasNextPage()) { 3113 break 3114 } 3115 } 3116 3117 return p.Err() 3118} 3119 3120const opListDominantLanguageDetectionJobs = "ListDominantLanguageDetectionJobs" 3121 3122// ListDominantLanguageDetectionJobsRequest generates a "aws/request.Request" representing the 3123// client's request for the ListDominantLanguageDetectionJobs operation. The "output" return 3124// value will be populated with the request's response once the request completes 3125// successfully. 3126// 3127// Use "Send" method on the returned Request to send the API call to the service. 3128// the "output" return value is not valid until after Send returns without error. 3129// 3130// See ListDominantLanguageDetectionJobs for more information on using the ListDominantLanguageDetectionJobs 3131// API call, and error handling. 3132// 3133// This method is useful when you want to inject custom logic or configuration 3134// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3135// 3136// 3137// // Example sending a request using the ListDominantLanguageDetectionJobsRequest method. 3138// req, resp := client.ListDominantLanguageDetectionJobsRequest(params) 3139// 3140// err := req.Send() 3141// if err == nil { // resp is now filled 3142// fmt.Println(resp) 3143// } 3144// 3145// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobs 3146func (c *Comprehend) ListDominantLanguageDetectionJobsRequest(input *ListDominantLanguageDetectionJobsInput) (req *request.Request, output *ListDominantLanguageDetectionJobsOutput) { 3147 op := &request.Operation{ 3148 Name: opListDominantLanguageDetectionJobs, 3149 HTTPMethod: "POST", 3150 HTTPPath: "/", 3151 Paginator: &request.Paginator{ 3152 InputTokens: []string{"NextToken"}, 3153 OutputTokens: []string{"NextToken"}, 3154 LimitToken: "MaxResults", 3155 TruncationToken: "", 3156 }, 3157 } 3158 3159 if input == nil { 3160 input = &ListDominantLanguageDetectionJobsInput{} 3161 } 3162 3163 output = &ListDominantLanguageDetectionJobsOutput{} 3164 req = c.newRequest(op, input, output) 3165 return 3166} 3167 3168// ListDominantLanguageDetectionJobs API operation for Amazon Comprehend. 3169// 3170// Gets a list of the dominant language detection jobs that you have submitted. 3171// 3172// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3173// with awserr.Error's Code and Message methods to get detailed information about 3174// the error. 3175// 3176// See the AWS API reference guide for Amazon Comprehend's 3177// API operation ListDominantLanguageDetectionJobs for usage and error information. 3178// 3179// Returned Error Types: 3180// * InvalidRequestException 3181// The request is invalid. 3182// 3183// * TooManyRequestsException 3184// The number of requests exceeds the limit. Resubmit your request later. 3185// 3186// * InvalidFilterException 3187// The filter specified for the operation is invalid. Specify a different filter. 3188// 3189// * InternalServerException 3190// An internal server error occurred. Retry your request. 3191// 3192// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobs 3193func (c *Comprehend) ListDominantLanguageDetectionJobs(input *ListDominantLanguageDetectionJobsInput) (*ListDominantLanguageDetectionJobsOutput, error) { 3194 req, out := c.ListDominantLanguageDetectionJobsRequest(input) 3195 return out, req.Send() 3196} 3197 3198// ListDominantLanguageDetectionJobsWithContext is the same as ListDominantLanguageDetectionJobs with the addition of 3199// the ability to pass a context and additional request options. 3200// 3201// See ListDominantLanguageDetectionJobs for details on how to use this API operation. 3202// 3203// The context must be non-nil and will be used for request cancellation. If 3204// the context is nil a panic will occur. In the future the SDK may create 3205// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3206// for more information on using Contexts. 3207func (c *Comprehend) ListDominantLanguageDetectionJobsWithContext(ctx aws.Context, input *ListDominantLanguageDetectionJobsInput, opts ...request.Option) (*ListDominantLanguageDetectionJobsOutput, error) { 3208 req, out := c.ListDominantLanguageDetectionJobsRequest(input) 3209 req.SetContext(ctx) 3210 req.ApplyOptions(opts...) 3211 return out, req.Send() 3212} 3213 3214// ListDominantLanguageDetectionJobsPages iterates over the pages of a ListDominantLanguageDetectionJobs operation, 3215// calling the "fn" function with the response data for each page. To stop 3216// iterating, return false from the fn function. 3217// 3218// See ListDominantLanguageDetectionJobs method for more information on how to use this operation. 3219// 3220// Note: This operation can generate multiple requests to a service. 3221// 3222// // Example iterating over at most 3 pages of a ListDominantLanguageDetectionJobs operation. 3223// pageNum := 0 3224// err := client.ListDominantLanguageDetectionJobsPages(params, 3225// func(page *comprehend.ListDominantLanguageDetectionJobsOutput, lastPage bool) bool { 3226// pageNum++ 3227// fmt.Println(page) 3228// return pageNum <= 3 3229// }) 3230// 3231func (c *Comprehend) ListDominantLanguageDetectionJobsPages(input *ListDominantLanguageDetectionJobsInput, fn func(*ListDominantLanguageDetectionJobsOutput, bool) bool) error { 3232 return c.ListDominantLanguageDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 3233} 3234 3235// ListDominantLanguageDetectionJobsPagesWithContext same as ListDominantLanguageDetectionJobsPages except 3236// it takes a Context and allows setting request options on the pages. 3237// 3238// The context must be non-nil and will be used for request cancellation. If 3239// the context is nil a panic will occur. In the future the SDK may create 3240// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3241// for more information on using Contexts. 3242func (c *Comprehend) ListDominantLanguageDetectionJobsPagesWithContext(ctx aws.Context, input *ListDominantLanguageDetectionJobsInput, fn func(*ListDominantLanguageDetectionJobsOutput, bool) bool, opts ...request.Option) error { 3243 p := request.Pagination{ 3244 NewRequest: func() (*request.Request, error) { 3245 var inCpy *ListDominantLanguageDetectionJobsInput 3246 if input != nil { 3247 tmp := *input 3248 inCpy = &tmp 3249 } 3250 req, _ := c.ListDominantLanguageDetectionJobsRequest(inCpy) 3251 req.SetContext(ctx) 3252 req.ApplyOptions(opts...) 3253 return req, nil 3254 }, 3255 } 3256 3257 for p.Next() { 3258 if !fn(p.Page().(*ListDominantLanguageDetectionJobsOutput), !p.HasNextPage()) { 3259 break 3260 } 3261 } 3262 3263 return p.Err() 3264} 3265 3266const opListEndpoints = "ListEndpoints" 3267 3268// ListEndpointsRequest generates a "aws/request.Request" representing the 3269// client's request for the ListEndpoints operation. The "output" return 3270// value will be populated with the request's response once the request completes 3271// successfully. 3272// 3273// Use "Send" method on the returned Request to send the API call to the service. 3274// the "output" return value is not valid until after Send returns without error. 3275// 3276// See ListEndpoints for more information on using the ListEndpoints 3277// API call, and error handling. 3278// 3279// This method is useful when you want to inject custom logic or configuration 3280// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3281// 3282// 3283// // Example sending a request using the ListEndpointsRequest method. 3284// req, resp := client.ListEndpointsRequest(params) 3285// 3286// err := req.Send() 3287// if err == nil { // resp is now filled 3288// fmt.Println(resp) 3289// } 3290// 3291// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEndpoints 3292func (c *Comprehend) ListEndpointsRequest(input *ListEndpointsInput) (req *request.Request, output *ListEndpointsOutput) { 3293 op := &request.Operation{ 3294 Name: opListEndpoints, 3295 HTTPMethod: "POST", 3296 HTTPPath: "/", 3297 } 3298 3299 if input == nil { 3300 input = &ListEndpointsInput{} 3301 } 3302 3303 output = &ListEndpointsOutput{} 3304 req = c.newRequest(op, input, output) 3305 return 3306} 3307 3308// ListEndpoints API operation for Amazon Comprehend. 3309// 3310// Gets a list of all existing endpoints that you've created. 3311// 3312// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3313// with awserr.Error's Code and Message methods to get detailed information about 3314// the error. 3315// 3316// See the AWS API reference guide for Amazon Comprehend's 3317// API operation ListEndpoints for usage and error information. 3318// 3319// Returned Error Types: 3320// * InvalidRequestException 3321// The request is invalid. 3322// 3323// * TooManyRequestsException 3324// The number of requests exceeds the limit. Resubmit your request later. 3325// 3326// * InternalServerException 3327// An internal server error occurred. Retry your request. 3328// 3329// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEndpoints 3330func (c *Comprehend) ListEndpoints(input *ListEndpointsInput) (*ListEndpointsOutput, error) { 3331 req, out := c.ListEndpointsRequest(input) 3332 return out, req.Send() 3333} 3334 3335// ListEndpointsWithContext is the same as ListEndpoints with the addition of 3336// the ability to pass a context and additional request options. 3337// 3338// See ListEndpoints for details on how to use this API operation. 3339// 3340// The context must be non-nil and will be used for request cancellation. If 3341// the context is nil a panic will occur. In the future the SDK may create 3342// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3343// for more information on using Contexts. 3344func (c *Comprehend) ListEndpointsWithContext(ctx aws.Context, input *ListEndpointsInput, opts ...request.Option) (*ListEndpointsOutput, error) { 3345 req, out := c.ListEndpointsRequest(input) 3346 req.SetContext(ctx) 3347 req.ApplyOptions(opts...) 3348 return out, req.Send() 3349} 3350 3351const opListEntitiesDetectionJobs = "ListEntitiesDetectionJobs" 3352 3353// ListEntitiesDetectionJobsRequest generates a "aws/request.Request" representing the 3354// client's request for the ListEntitiesDetectionJobs operation. The "output" return 3355// value will be populated with the request's response once the request completes 3356// successfully. 3357// 3358// Use "Send" method on the returned Request to send the API call to the service. 3359// the "output" return value is not valid until after Send returns without error. 3360// 3361// See ListEntitiesDetectionJobs for more information on using the ListEntitiesDetectionJobs 3362// API call, and error handling. 3363// 3364// This method is useful when you want to inject custom logic or configuration 3365// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3366// 3367// 3368// // Example sending a request using the ListEntitiesDetectionJobsRequest method. 3369// req, resp := client.ListEntitiesDetectionJobsRequest(params) 3370// 3371// err := req.Send() 3372// if err == nil { // resp is now filled 3373// fmt.Println(resp) 3374// } 3375// 3376// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobs 3377func (c *Comprehend) ListEntitiesDetectionJobsRequest(input *ListEntitiesDetectionJobsInput) (req *request.Request, output *ListEntitiesDetectionJobsOutput) { 3378 op := &request.Operation{ 3379 Name: opListEntitiesDetectionJobs, 3380 HTTPMethod: "POST", 3381 HTTPPath: "/", 3382 Paginator: &request.Paginator{ 3383 InputTokens: []string{"NextToken"}, 3384 OutputTokens: []string{"NextToken"}, 3385 LimitToken: "MaxResults", 3386 TruncationToken: "", 3387 }, 3388 } 3389 3390 if input == nil { 3391 input = &ListEntitiesDetectionJobsInput{} 3392 } 3393 3394 output = &ListEntitiesDetectionJobsOutput{} 3395 req = c.newRequest(op, input, output) 3396 return 3397} 3398 3399// ListEntitiesDetectionJobs API operation for Amazon Comprehend. 3400// 3401// Gets a list of the entity detection jobs that you have submitted. 3402// 3403// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3404// with awserr.Error's Code and Message methods to get detailed information about 3405// the error. 3406// 3407// See the AWS API reference guide for Amazon Comprehend's 3408// API operation ListEntitiesDetectionJobs for usage and error information. 3409// 3410// Returned Error Types: 3411// * InvalidRequestException 3412// The request is invalid. 3413// 3414// * TooManyRequestsException 3415// The number of requests exceeds the limit. Resubmit your request later. 3416// 3417// * InvalidFilterException 3418// The filter specified for the operation is invalid. Specify a different filter. 3419// 3420// * InternalServerException 3421// An internal server error occurred. Retry your request. 3422// 3423// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobs 3424func (c *Comprehend) ListEntitiesDetectionJobs(input *ListEntitiesDetectionJobsInput) (*ListEntitiesDetectionJobsOutput, error) { 3425 req, out := c.ListEntitiesDetectionJobsRequest(input) 3426 return out, req.Send() 3427} 3428 3429// ListEntitiesDetectionJobsWithContext is the same as ListEntitiesDetectionJobs with the addition of 3430// the ability to pass a context and additional request options. 3431// 3432// See ListEntitiesDetectionJobs for details on how to use this API operation. 3433// 3434// The context must be non-nil and will be used for request cancellation. If 3435// the context is nil a panic will occur. In the future the SDK may create 3436// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3437// for more information on using Contexts. 3438func (c *Comprehend) ListEntitiesDetectionJobsWithContext(ctx aws.Context, input *ListEntitiesDetectionJobsInput, opts ...request.Option) (*ListEntitiesDetectionJobsOutput, error) { 3439 req, out := c.ListEntitiesDetectionJobsRequest(input) 3440 req.SetContext(ctx) 3441 req.ApplyOptions(opts...) 3442 return out, req.Send() 3443} 3444 3445// ListEntitiesDetectionJobsPages iterates over the pages of a ListEntitiesDetectionJobs operation, 3446// calling the "fn" function with the response data for each page. To stop 3447// iterating, return false from the fn function. 3448// 3449// See ListEntitiesDetectionJobs method for more information on how to use this operation. 3450// 3451// Note: This operation can generate multiple requests to a service. 3452// 3453// // Example iterating over at most 3 pages of a ListEntitiesDetectionJobs operation. 3454// pageNum := 0 3455// err := client.ListEntitiesDetectionJobsPages(params, 3456// func(page *comprehend.ListEntitiesDetectionJobsOutput, lastPage bool) bool { 3457// pageNum++ 3458// fmt.Println(page) 3459// return pageNum <= 3 3460// }) 3461// 3462func (c *Comprehend) ListEntitiesDetectionJobsPages(input *ListEntitiesDetectionJobsInput, fn func(*ListEntitiesDetectionJobsOutput, bool) bool) error { 3463 return c.ListEntitiesDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 3464} 3465 3466// ListEntitiesDetectionJobsPagesWithContext same as ListEntitiesDetectionJobsPages except 3467// it takes a Context and allows setting request options on the pages. 3468// 3469// The context must be non-nil and will be used for request cancellation. If 3470// the context is nil a panic will occur. In the future the SDK may create 3471// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3472// for more information on using Contexts. 3473func (c *Comprehend) ListEntitiesDetectionJobsPagesWithContext(ctx aws.Context, input *ListEntitiesDetectionJobsInput, fn func(*ListEntitiesDetectionJobsOutput, bool) bool, opts ...request.Option) error { 3474 p := request.Pagination{ 3475 NewRequest: func() (*request.Request, error) { 3476 var inCpy *ListEntitiesDetectionJobsInput 3477 if input != nil { 3478 tmp := *input 3479 inCpy = &tmp 3480 } 3481 req, _ := c.ListEntitiesDetectionJobsRequest(inCpy) 3482 req.SetContext(ctx) 3483 req.ApplyOptions(opts...) 3484 return req, nil 3485 }, 3486 } 3487 3488 for p.Next() { 3489 if !fn(p.Page().(*ListEntitiesDetectionJobsOutput), !p.HasNextPage()) { 3490 break 3491 } 3492 } 3493 3494 return p.Err() 3495} 3496 3497const opListEntityRecognizers = "ListEntityRecognizers" 3498 3499// ListEntityRecognizersRequest generates a "aws/request.Request" representing the 3500// client's request for the ListEntityRecognizers operation. The "output" return 3501// value will be populated with the request's response once the request completes 3502// successfully. 3503// 3504// Use "Send" method on the returned Request to send the API call to the service. 3505// the "output" return value is not valid until after Send returns without error. 3506// 3507// See ListEntityRecognizers for more information on using the ListEntityRecognizers 3508// API call, and error handling. 3509// 3510// This method is useful when you want to inject custom logic or configuration 3511// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3512// 3513// 3514// // Example sending a request using the ListEntityRecognizersRequest method. 3515// req, resp := client.ListEntityRecognizersRequest(params) 3516// 3517// err := req.Send() 3518// if err == nil { // resp is now filled 3519// fmt.Println(resp) 3520// } 3521// 3522// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizers 3523func (c *Comprehend) ListEntityRecognizersRequest(input *ListEntityRecognizersInput) (req *request.Request, output *ListEntityRecognizersOutput) { 3524 op := &request.Operation{ 3525 Name: opListEntityRecognizers, 3526 HTTPMethod: "POST", 3527 HTTPPath: "/", 3528 Paginator: &request.Paginator{ 3529 InputTokens: []string{"NextToken"}, 3530 OutputTokens: []string{"NextToken"}, 3531 LimitToken: "MaxResults", 3532 TruncationToken: "", 3533 }, 3534 } 3535 3536 if input == nil { 3537 input = &ListEntityRecognizersInput{} 3538 } 3539 3540 output = &ListEntityRecognizersOutput{} 3541 req = c.newRequest(op, input, output) 3542 return 3543} 3544 3545// ListEntityRecognizers API operation for Amazon Comprehend. 3546// 3547// Gets a list of the properties of all entity recognizers that you created, 3548// including recognizers currently in training. Allows you to filter the list 3549// of recognizers based on criteria such as status and submission time. This 3550// call returns up to 500 entity recognizers in the list, with a default number 3551// of 100 recognizers in the list. 3552// 3553// The results of this list are not in any particular order. Please get the 3554// list and sort locally if needed. 3555// 3556// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3557// with awserr.Error's Code and Message methods to get detailed information about 3558// the error. 3559// 3560// See the AWS API reference guide for Amazon Comprehend's 3561// API operation ListEntityRecognizers for usage and error information. 3562// 3563// Returned Error Types: 3564// * InvalidRequestException 3565// The request is invalid. 3566// 3567// * TooManyRequestsException 3568// The number of requests exceeds the limit. Resubmit your request later. 3569// 3570// * InvalidFilterException 3571// The filter specified for the operation is invalid. Specify a different filter. 3572// 3573// * InternalServerException 3574// An internal server error occurred. Retry your request. 3575// 3576// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizers 3577func (c *Comprehend) ListEntityRecognizers(input *ListEntityRecognizersInput) (*ListEntityRecognizersOutput, error) { 3578 req, out := c.ListEntityRecognizersRequest(input) 3579 return out, req.Send() 3580} 3581 3582// ListEntityRecognizersWithContext is the same as ListEntityRecognizers with the addition of 3583// the ability to pass a context and additional request options. 3584// 3585// See ListEntityRecognizers for details on how to use this API operation. 3586// 3587// The context must be non-nil and will be used for request cancellation. If 3588// the context is nil a panic will occur. In the future the SDK may create 3589// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3590// for more information on using Contexts. 3591func (c *Comprehend) ListEntityRecognizersWithContext(ctx aws.Context, input *ListEntityRecognizersInput, opts ...request.Option) (*ListEntityRecognizersOutput, error) { 3592 req, out := c.ListEntityRecognizersRequest(input) 3593 req.SetContext(ctx) 3594 req.ApplyOptions(opts...) 3595 return out, req.Send() 3596} 3597 3598// ListEntityRecognizersPages iterates over the pages of a ListEntityRecognizers operation, 3599// calling the "fn" function with the response data for each page. To stop 3600// iterating, return false from the fn function. 3601// 3602// See ListEntityRecognizers method for more information on how to use this operation. 3603// 3604// Note: This operation can generate multiple requests to a service. 3605// 3606// // Example iterating over at most 3 pages of a ListEntityRecognizers operation. 3607// pageNum := 0 3608// err := client.ListEntityRecognizersPages(params, 3609// func(page *comprehend.ListEntityRecognizersOutput, lastPage bool) bool { 3610// pageNum++ 3611// fmt.Println(page) 3612// return pageNum <= 3 3613// }) 3614// 3615func (c *Comprehend) ListEntityRecognizersPages(input *ListEntityRecognizersInput, fn func(*ListEntityRecognizersOutput, bool) bool) error { 3616 return c.ListEntityRecognizersPagesWithContext(aws.BackgroundContext(), input, fn) 3617} 3618 3619// ListEntityRecognizersPagesWithContext same as ListEntityRecognizersPages except 3620// it takes a Context and allows setting request options on the pages. 3621// 3622// The context must be non-nil and will be used for request cancellation. If 3623// the context is nil a panic will occur. In the future the SDK may create 3624// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3625// for more information on using Contexts. 3626func (c *Comprehend) ListEntityRecognizersPagesWithContext(ctx aws.Context, input *ListEntityRecognizersInput, fn func(*ListEntityRecognizersOutput, bool) bool, opts ...request.Option) error { 3627 p := request.Pagination{ 3628 NewRequest: func() (*request.Request, error) { 3629 var inCpy *ListEntityRecognizersInput 3630 if input != nil { 3631 tmp := *input 3632 inCpy = &tmp 3633 } 3634 req, _ := c.ListEntityRecognizersRequest(inCpy) 3635 req.SetContext(ctx) 3636 req.ApplyOptions(opts...) 3637 return req, nil 3638 }, 3639 } 3640 3641 for p.Next() { 3642 if !fn(p.Page().(*ListEntityRecognizersOutput), !p.HasNextPage()) { 3643 break 3644 } 3645 } 3646 3647 return p.Err() 3648} 3649 3650const opListEventsDetectionJobs = "ListEventsDetectionJobs" 3651 3652// ListEventsDetectionJobsRequest generates a "aws/request.Request" representing the 3653// client's request for the ListEventsDetectionJobs operation. The "output" return 3654// value will be populated with the request's response once the request completes 3655// successfully. 3656// 3657// Use "Send" method on the returned Request to send the API call to the service. 3658// the "output" return value is not valid until after Send returns without error. 3659// 3660// See ListEventsDetectionJobs for more information on using the ListEventsDetectionJobs 3661// API call, and error handling. 3662// 3663// This method is useful when you want to inject custom logic or configuration 3664// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3665// 3666// 3667// // Example sending a request using the ListEventsDetectionJobsRequest method. 3668// req, resp := client.ListEventsDetectionJobsRequest(params) 3669// 3670// err := req.Send() 3671// if err == nil { // resp is now filled 3672// fmt.Println(resp) 3673// } 3674// 3675// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEventsDetectionJobs 3676func (c *Comprehend) ListEventsDetectionJobsRequest(input *ListEventsDetectionJobsInput) (req *request.Request, output *ListEventsDetectionJobsOutput) { 3677 op := &request.Operation{ 3678 Name: opListEventsDetectionJobs, 3679 HTTPMethod: "POST", 3680 HTTPPath: "/", 3681 Paginator: &request.Paginator{ 3682 InputTokens: []string{"NextToken"}, 3683 OutputTokens: []string{"NextToken"}, 3684 LimitToken: "MaxResults", 3685 TruncationToken: "", 3686 }, 3687 } 3688 3689 if input == nil { 3690 input = &ListEventsDetectionJobsInput{} 3691 } 3692 3693 output = &ListEventsDetectionJobsOutput{} 3694 req = c.newRequest(op, input, output) 3695 return 3696} 3697 3698// ListEventsDetectionJobs API operation for Amazon Comprehend. 3699// 3700// Gets a list of the events detection jobs that you have submitted. 3701// 3702// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3703// with awserr.Error's Code and Message methods to get detailed information about 3704// the error. 3705// 3706// See the AWS API reference guide for Amazon Comprehend's 3707// API operation ListEventsDetectionJobs for usage and error information. 3708// 3709// Returned Error Types: 3710// * InvalidRequestException 3711// The request is invalid. 3712// 3713// * TooManyRequestsException 3714// The number of requests exceeds the limit. Resubmit your request later. 3715// 3716// * InvalidFilterException 3717// The filter specified for the operation is invalid. Specify a different filter. 3718// 3719// * InternalServerException 3720// An internal server error occurred. Retry your request. 3721// 3722// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEventsDetectionJobs 3723func (c *Comprehend) ListEventsDetectionJobs(input *ListEventsDetectionJobsInput) (*ListEventsDetectionJobsOutput, error) { 3724 req, out := c.ListEventsDetectionJobsRequest(input) 3725 return out, req.Send() 3726} 3727 3728// ListEventsDetectionJobsWithContext is the same as ListEventsDetectionJobs with the addition of 3729// the ability to pass a context and additional request options. 3730// 3731// See ListEventsDetectionJobs for details on how to use this API operation. 3732// 3733// The context must be non-nil and will be used for request cancellation. If 3734// the context is nil a panic will occur. In the future the SDK may create 3735// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3736// for more information on using Contexts. 3737func (c *Comprehend) ListEventsDetectionJobsWithContext(ctx aws.Context, input *ListEventsDetectionJobsInput, opts ...request.Option) (*ListEventsDetectionJobsOutput, error) { 3738 req, out := c.ListEventsDetectionJobsRequest(input) 3739 req.SetContext(ctx) 3740 req.ApplyOptions(opts...) 3741 return out, req.Send() 3742} 3743 3744// ListEventsDetectionJobsPages iterates over the pages of a ListEventsDetectionJobs operation, 3745// calling the "fn" function with the response data for each page. To stop 3746// iterating, return false from the fn function. 3747// 3748// See ListEventsDetectionJobs method for more information on how to use this operation. 3749// 3750// Note: This operation can generate multiple requests to a service. 3751// 3752// // Example iterating over at most 3 pages of a ListEventsDetectionJobs operation. 3753// pageNum := 0 3754// err := client.ListEventsDetectionJobsPages(params, 3755// func(page *comprehend.ListEventsDetectionJobsOutput, lastPage bool) bool { 3756// pageNum++ 3757// fmt.Println(page) 3758// return pageNum <= 3 3759// }) 3760// 3761func (c *Comprehend) ListEventsDetectionJobsPages(input *ListEventsDetectionJobsInput, fn func(*ListEventsDetectionJobsOutput, bool) bool) error { 3762 return c.ListEventsDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 3763} 3764 3765// ListEventsDetectionJobsPagesWithContext same as ListEventsDetectionJobsPages except 3766// it takes a Context and allows setting request options on the pages. 3767// 3768// The context must be non-nil and will be used for request cancellation. If 3769// the context is nil a panic will occur. In the future the SDK may create 3770// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3771// for more information on using Contexts. 3772func (c *Comprehend) ListEventsDetectionJobsPagesWithContext(ctx aws.Context, input *ListEventsDetectionJobsInput, fn func(*ListEventsDetectionJobsOutput, bool) bool, opts ...request.Option) error { 3773 p := request.Pagination{ 3774 NewRequest: func() (*request.Request, error) { 3775 var inCpy *ListEventsDetectionJobsInput 3776 if input != nil { 3777 tmp := *input 3778 inCpy = &tmp 3779 } 3780 req, _ := c.ListEventsDetectionJobsRequest(inCpy) 3781 req.SetContext(ctx) 3782 req.ApplyOptions(opts...) 3783 return req, nil 3784 }, 3785 } 3786 3787 for p.Next() { 3788 if !fn(p.Page().(*ListEventsDetectionJobsOutput), !p.HasNextPage()) { 3789 break 3790 } 3791 } 3792 3793 return p.Err() 3794} 3795 3796const opListKeyPhrasesDetectionJobs = "ListKeyPhrasesDetectionJobs" 3797 3798// ListKeyPhrasesDetectionJobsRequest generates a "aws/request.Request" representing the 3799// client's request for the ListKeyPhrasesDetectionJobs operation. The "output" return 3800// value will be populated with the request's response once the request completes 3801// successfully. 3802// 3803// Use "Send" method on the returned Request to send the API call to the service. 3804// the "output" return value is not valid until after Send returns without error. 3805// 3806// See ListKeyPhrasesDetectionJobs for more information on using the ListKeyPhrasesDetectionJobs 3807// API call, and error handling. 3808// 3809// This method is useful when you want to inject custom logic or configuration 3810// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3811// 3812// 3813// // Example sending a request using the ListKeyPhrasesDetectionJobsRequest method. 3814// req, resp := client.ListKeyPhrasesDetectionJobsRequest(params) 3815// 3816// err := req.Send() 3817// if err == nil { // resp is now filled 3818// fmt.Println(resp) 3819// } 3820// 3821// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobs 3822func (c *Comprehend) ListKeyPhrasesDetectionJobsRequest(input *ListKeyPhrasesDetectionJobsInput) (req *request.Request, output *ListKeyPhrasesDetectionJobsOutput) { 3823 op := &request.Operation{ 3824 Name: opListKeyPhrasesDetectionJobs, 3825 HTTPMethod: "POST", 3826 HTTPPath: "/", 3827 Paginator: &request.Paginator{ 3828 InputTokens: []string{"NextToken"}, 3829 OutputTokens: []string{"NextToken"}, 3830 LimitToken: "MaxResults", 3831 TruncationToken: "", 3832 }, 3833 } 3834 3835 if input == nil { 3836 input = &ListKeyPhrasesDetectionJobsInput{} 3837 } 3838 3839 output = &ListKeyPhrasesDetectionJobsOutput{} 3840 req = c.newRequest(op, input, output) 3841 return 3842} 3843 3844// ListKeyPhrasesDetectionJobs API operation for Amazon Comprehend. 3845// 3846// Get a list of key phrase detection jobs that you have submitted. 3847// 3848// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3849// with awserr.Error's Code and Message methods to get detailed information about 3850// the error. 3851// 3852// See the AWS API reference guide for Amazon Comprehend's 3853// API operation ListKeyPhrasesDetectionJobs for usage and error information. 3854// 3855// Returned Error Types: 3856// * InvalidRequestException 3857// The request is invalid. 3858// 3859// * TooManyRequestsException 3860// The number of requests exceeds the limit. Resubmit your request later. 3861// 3862// * InvalidFilterException 3863// The filter specified for the operation is invalid. Specify a different filter. 3864// 3865// * InternalServerException 3866// An internal server error occurred. Retry your request. 3867// 3868// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobs 3869func (c *Comprehend) ListKeyPhrasesDetectionJobs(input *ListKeyPhrasesDetectionJobsInput) (*ListKeyPhrasesDetectionJobsOutput, error) { 3870 req, out := c.ListKeyPhrasesDetectionJobsRequest(input) 3871 return out, req.Send() 3872} 3873 3874// ListKeyPhrasesDetectionJobsWithContext is the same as ListKeyPhrasesDetectionJobs with the addition of 3875// the ability to pass a context and additional request options. 3876// 3877// See ListKeyPhrasesDetectionJobs for details on how to use this API operation. 3878// 3879// The context must be non-nil and will be used for request cancellation. If 3880// the context is nil a panic will occur. In the future the SDK may create 3881// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3882// for more information on using Contexts. 3883func (c *Comprehend) ListKeyPhrasesDetectionJobsWithContext(ctx aws.Context, input *ListKeyPhrasesDetectionJobsInput, opts ...request.Option) (*ListKeyPhrasesDetectionJobsOutput, error) { 3884 req, out := c.ListKeyPhrasesDetectionJobsRequest(input) 3885 req.SetContext(ctx) 3886 req.ApplyOptions(opts...) 3887 return out, req.Send() 3888} 3889 3890// ListKeyPhrasesDetectionJobsPages iterates over the pages of a ListKeyPhrasesDetectionJobs operation, 3891// calling the "fn" function with the response data for each page. To stop 3892// iterating, return false from the fn function. 3893// 3894// See ListKeyPhrasesDetectionJobs method for more information on how to use this operation. 3895// 3896// Note: This operation can generate multiple requests to a service. 3897// 3898// // Example iterating over at most 3 pages of a ListKeyPhrasesDetectionJobs operation. 3899// pageNum := 0 3900// err := client.ListKeyPhrasesDetectionJobsPages(params, 3901// func(page *comprehend.ListKeyPhrasesDetectionJobsOutput, lastPage bool) bool { 3902// pageNum++ 3903// fmt.Println(page) 3904// return pageNum <= 3 3905// }) 3906// 3907func (c *Comprehend) ListKeyPhrasesDetectionJobsPages(input *ListKeyPhrasesDetectionJobsInput, fn func(*ListKeyPhrasesDetectionJobsOutput, bool) bool) error { 3908 return c.ListKeyPhrasesDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 3909} 3910 3911// ListKeyPhrasesDetectionJobsPagesWithContext same as ListKeyPhrasesDetectionJobsPages except 3912// it takes a Context and allows setting request options on the pages. 3913// 3914// The context must be non-nil and will be used for request cancellation. If 3915// the context is nil a panic will occur. In the future the SDK may create 3916// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3917// for more information on using Contexts. 3918func (c *Comprehend) ListKeyPhrasesDetectionJobsPagesWithContext(ctx aws.Context, input *ListKeyPhrasesDetectionJobsInput, fn func(*ListKeyPhrasesDetectionJobsOutput, bool) bool, opts ...request.Option) error { 3919 p := request.Pagination{ 3920 NewRequest: func() (*request.Request, error) { 3921 var inCpy *ListKeyPhrasesDetectionJobsInput 3922 if input != nil { 3923 tmp := *input 3924 inCpy = &tmp 3925 } 3926 req, _ := c.ListKeyPhrasesDetectionJobsRequest(inCpy) 3927 req.SetContext(ctx) 3928 req.ApplyOptions(opts...) 3929 return req, nil 3930 }, 3931 } 3932 3933 for p.Next() { 3934 if !fn(p.Page().(*ListKeyPhrasesDetectionJobsOutput), !p.HasNextPage()) { 3935 break 3936 } 3937 } 3938 3939 return p.Err() 3940} 3941 3942const opListPiiEntitiesDetectionJobs = "ListPiiEntitiesDetectionJobs" 3943 3944// ListPiiEntitiesDetectionJobsRequest generates a "aws/request.Request" representing the 3945// client's request for the ListPiiEntitiesDetectionJobs operation. The "output" return 3946// value will be populated with the request's response once the request completes 3947// successfully. 3948// 3949// Use "Send" method on the returned Request to send the API call to the service. 3950// the "output" return value is not valid until after Send returns without error. 3951// 3952// See ListPiiEntitiesDetectionJobs for more information on using the ListPiiEntitiesDetectionJobs 3953// API call, and error handling. 3954// 3955// This method is useful when you want to inject custom logic or configuration 3956// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3957// 3958// 3959// // Example sending a request using the ListPiiEntitiesDetectionJobsRequest method. 3960// req, resp := client.ListPiiEntitiesDetectionJobsRequest(params) 3961// 3962// err := req.Send() 3963// if err == nil { // resp is now filled 3964// fmt.Println(resp) 3965// } 3966// 3967// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListPiiEntitiesDetectionJobs 3968func (c *Comprehend) ListPiiEntitiesDetectionJobsRequest(input *ListPiiEntitiesDetectionJobsInput) (req *request.Request, output *ListPiiEntitiesDetectionJobsOutput) { 3969 op := &request.Operation{ 3970 Name: opListPiiEntitiesDetectionJobs, 3971 HTTPMethod: "POST", 3972 HTTPPath: "/", 3973 } 3974 3975 if input == nil { 3976 input = &ListPiiEntitiesDetectionJobsInput{} 3977 } 3978 3979 output = &ListPiiEntitiesDetectionJobsOutput{} 3980 req = c.newRequest(op, input, output) 3981 return 3982} 3983 3984// ListPiiEntitiesDetectionJobs API operation for Amazon Comprehend. 3985// 3986// Gets a list of the PII entity detection jobs that you have submitted. 3987// 3988// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3989// with awserr.Error's Code and Message methods to get detailed information about 3990// the error. 3991// 3992// See the AWS API reference guide for Amazon Comprehend's 3993// API operation ListPiiEntitiesDetectionJobs for usage and error information. 3994// 3995// Returned Error Types: 3996// * InvalidRequestException 3997// The request is invalid. 3998// 3999// * TooManyRequestsException 4000// The number of requests exceeds the limit. Resubmit your request later. 4001// 4002// * InvalidFilterException 4003// The filter specified for the operation is invalid. Specify a different filter. 4004// 4005// * InternalServerException 4006// An internal server error occurred. Retry your request. 4007// 4008// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListPiiEntitiesDetectionJobs 4009func (c *Comprehend) ListPiiEntitiesDetectionJobs(input *ListPiiEntitiesDetectionJobsInput) (*ListPiiEntitiesDetectionJobsOutput, error) { 4010 req, out := c.ListPiiEntitiesDetectionJobsRequest(input) 4011 return out, req.Send() 4012} 4013 4014// ListPiiEntitiesDetectionJobsWithContext is the same as ListPiiEntitiesDetectionJobs with the addition of 4015// the ability to pass a context and additional request options. 4016// 4017// See ListPiiEntitiesDetectionJobs for details on how to use this API operation. 4018// 4019// The context must be non-nil and will be used for request cancellation. If 4020// the context is nil a panic will occur. In the future the SDK may create 4021// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4022// for more information on using Contexts. 4023func (c *Comprehend) ListPiiEntitiesDetectionJobsWithContext(ctx aws.Context, input *ListPiiEntitiesDetectionJobsInput, opts ...request.Option) (*ListPiiEntitiesDetectionJobsOutput, error) { 4024 req, out := c.ListPiiEntitiesDetectionJobsRequest(input) 4025 req.SetContext(ctx) 4026 req.ApplyOptions(opts...) 4027 return out, req.Send() 4028} 4029 4030const opListSentimentDetectionJobs = "ListSentimentDetectionJobs" 4031 4032// ListSentimentDetectionJobsRequest generates a "aws/request.Request" representing the 4033// client's request for the ListSentimentDetectionJobs operation. The "output" return 4034// value will be populated with the request's response once the request completes 4035// successfully. 4036// 4037// Use "Send" method on the returned Request to send the API call to the service. 4038// the "output" return value is not valid until after Send returns without error. 4039// 4040// See ListSentimentDetectionJobs for more information on using the ListSentimentDetectionJobs 4041// API call, and error handling. 4042// 4043// This method is useful when you want to inject custom logic or configuration 4044// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4045// 4046// 4047// // Example sending a request using the ListSentimentDetectionJobsRequest method. 4048// req, resp := client.ListSentimentDetectionJobsRequest(params) 4049// 4050// err := req.Send() 4051// if err == nil { // resp is now filled 4052// fmt.Println(resp) 4053// } 4054// 4055// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobs 4056func (c *Comprehend) ListSentimentDetectionJobsRequest(input *ListSentimentDetectionJobsInput) (req *request.Request, output *ListSentimentDetectionJobsOutput) { 4057 op := &request.Operation{ 4058 Name: opListSentimentDetectionJobs, 4059 HTTPMethod: "POST", 4060 HTTPPath: "/", 4061 Paginator: &request.Paginator{ 4062 InputTokens: []string{"NextToken"}, 4063 OutputTokens: []string{"NextToken"}, 4064 LimitToken: "MaxResults", 4065 TruncationToken: "", 4066 }, 4067 } 4068 4069 if input == nil { 4070 input = &ListSentimentDetectionJobsInput{} 4071 } 4072 4073 output = &ListSentimentDetectionJobsOutput{} 4074 req = c.newRequest(op, input, output) 4075 return 4076} 4077 4078// ListSentimentDetectionJobs API operation for Amazon Comprehend. 4079// 4080// Gets a list of sentiment detection jobs that you have submitted. 4081// 4082// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4083// with awserr.Error's Code and Message methods to get detailed information about 4084// the error. 4085// 4086// See the AWS API reference guide for Amazon Comprehend's 4087// API operation ListSentimentDetectionJobs for usage and error information. 4088// 4089// Returned Error Types: 4090// * InvalidRequestException 4091// The request is invalid. 4092// 4093// * TooManyRequestsException 4094// The number of requests exceeds the limit. Resubmit your request later. 4095// 4096// * InvalidFilterException 4097// The filter specified for the operation is invalid. Specify a different filter. 4098// 4099// * InternalServerException 4100// An internal server error occurred. Retry your request. 4101// 4102// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobs 4103func (c *Comprehend) ListSentimentDetectionJobs(input *ListSentimentDetectionJobsInput) (*ListSentimentDetectionJobsOutput, error) { 4104 req, out := c.ListSentimentDetectionJobsRequest(input) 4105 return out, req.Send() 4106} 4107 4108// ListSentimentDetectionJobsWithContext is the same as ListSentimentDetectionJobs with the addition of 4109// the ability to pass a context and additional request options. 4110// 4111// See ListSentimentDetectionJobs for details on how to use this API operation. 4112// 4113// The context must be non-nil and will be used for request cancellation. If 4114// the context is nil a panic will occur. In the future the SDK may create 4115// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4116// for more information on using Contexts. 4117func (c *Comprehend) ListSentimentDetectionJobsWithContext(ctx aws.Context, input *ListSentimentDetectionJobsInput, opts ...request.Option) (*ListSentimentDetectionJobsOutput, error) { 4118 req, out := c.ListSentimentDetectionJobsRequest(input) 4119 req.SetContext(ctx) 4120 req.ApplyOptions(opts...) 4121 return out, req.Send() 4122} 4123 4124// ListSentimentDetectionJobsPages iterates over the pages of a ListSentimentDetectionJobs operation, 4125// calling the "fn" function with the response data for each page. To stop 4126// iterating, return false from the fn function. 4127// 4128// See ListSentimentDetectionJobs method for more information on how to use this operation. 4129// 4130// Note: This operation can generate multiple requests to a service. 4131// 4132// // Example iterating over at most 3 pages of a ListSentimentDetectionJobs operation. 4133// pageNum := 0 4134// err := client.ListSentimentDetectionJobsPages(params, 4135// func(page *comprehend.ListSentimentDetectionJobsOutput, lastPage bool) bool { 4136// pageNum++ 4137// fmt.Println(page) 4138// return pageNum <= 3 4139// }) 4140// 4141func (c *Comprehend) ListSentimentDetectionJobsPages(input *ListSentimentDetectionJobsInput, fn func(*ListSentimentDetectionJobsOutput, bool) bool) error { 4142 return c.ListSentimentDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 4143} 4144 4145// ListSentimentDetectionJobsPagesWithContext same as ListSentimentDetectionJobsPages except 4146// it takes a Context and allows setting request options on the pages. 4147// 4148// The context must be non-nil and will be used for request cancellation. If 4149// the context is nil a panic will occur. In the future the SDK may create 4150// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4151// for more information on using Contexts. 4152func (c *Comprehend) ListSentimentDetectionJobsPagesWithContext(ctx aws.Context, input *ListSentimentDetectionJobsInput, fn func(*ListSentimentDetectionJobsOutput, bool) bool, opts ...request.Option) error { 4153 p := request.Pagination{ 4154 NewRequest: func() (*request.Request, error) { 4155 var inCpy *ListSentimentDetectionJobsInput 4156 if input != nil { 4157 tmp := *input 4158 inCpy = &tmp 4159 } 4160 req, _ := c.ListSentimentDetectionJobsRequest(inCpy) 4161 req.SetContext(ctx) 4162 req.ApplyOptions(opts...) 4163 return req, nil 4164 }, 4165 } 4166 4167 for p.Next() { 4168 if !fn(p.Page().(*ListSentimentDetectionJobsOutput), !p.HasNextPage()) { 4169 break 4170 } 4171 } 4172 4173 return p.Err() 4174} 4175 4176const opListTagsForResource = "ListTagsForResource" 4177 4178// ListTagsForResourceRequest generates a "aws/request.Request" representing the 4179// client's request for the ListTagsForResource operation. The "output" return 4180// value will be populated with the request's response once the request completes 4181// successfully. 4182// 4183// Use "Send" method on the returned Request to send the API call to the service. 4184// the "output" return value is not valid until after Send returns without error. 4185// 4186// See ListTagsForResource for more information on using the ListTagsForResource 4187// API call, and error handling. 4188// 4189// This method is useful when you want to inject custom logic or configuration 4190// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4191// 4192// 4193// // Example sending a request using the ListTagsForResourceRequest method. 4194// req, resp := client.ListTagsForResourceRequest(params) 4195// 4196// err := req.Send() 4197// if err == nil { // resp is now filled 4198// fmt.Println(resp) 4199// } 4200// 4201// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTagsForResource 4202func (c *Comprehend) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 4203 op := &request.Operation{ 4204 Name: opListTagsForResource, 4205 HTTPMethod: "POST", 4206 HTTPPath: "/", 4207 } 4208 4209 if input == nil { 4210 input = &ListTagsForResourceInput{} 4211 } 4212 4213 output = &ListTagsForResourceOutput{} 4214 req = c.newRequest(op, input, output) 4215 return 4216} 4217 4218// ListTagsForResource API operation for Amazon Comprehend. 4219// 4220// Lists all tags associated with a given Amazon Comprehend resource. 4221// 4222// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4223// with awserr.Error's Code and Message methods to get detailed information about 4224// the error. 4225// 4226// See the AWS API reference guide for Amazon Comprehend's 4227// API operation ListTagsForResource for usage and error information. 4228// 4229// Returned Error Types: 4230// * InvalidRequestException 4231// The request is invalid. 4232// 4233// * ResourceNotFoundException 4234// The specified resource ARN was not found. Check the ARN and try your request 4235// again. 4236// 4237// * InternalServerException 4238// An internal server error occurred. Retry your request. 4239// 4240// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTagsForResource 4241func (c *Comprehend) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 4242 req, out := c.ListTagsForResourceRequest(input) 4243 return out, req.Send() 4244} 4245 4246// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 4247// the ability to pass a context and additional request options. 4248// 4249// See ListTagsForResource for details on how to use this API operation. 4250// 4251// The context must be non-nil and will be used for request cancellation. If 4252// the context is nil a panic will occur. In the future the SDK may create 4253// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4254// for more information on using Contexts. 4255func (c *Comprehend) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 4256 req, out := c.ListTagsForResourceRequest(input) 4257 req.SetContext(ctx) 4258 req.ApplyOptions(opts...) 4259 return out, req.Send() 4260} 4261 4262const opListTopicsDetectionJobs = "ListTopicsDetectionJobs" 4263 4264// ListTopicsDetectionJobsRequest generates a "aws/request.Request" representing the 4265// client's request for the ListTopicsDetectionJobs operation. The "output" return 4266// value will be populated with the request's response once the request completes 4267// successfully. 4268// 4269// Use "Send" method on the returned Request to send the API call to the service. 4270// the "output" return value is not valid until after Send returns without error. 4271// 4272// See ListTopicsDetectionJobs for more information on using the ListTopicsDetectionJobs 4273// API call, and error handling. 4274// 4275// This method is useful when you want to inject custom logic or configuration 4276// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4277// 4278// 4279// // Example sending a request using the ListTopicsDetectionJobsRequest method. 4280// req, resp := client.ListTopicsDetectionJobsRequest(params) 4281// 4282// err := req.Send() 4283// if err == nil { // resp is now filled 4284// fmt.Println(resp) 4285// } 4286// 4287// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobs 4288func (c *Comprehend) ListTopicsDetectionJobsRequest(input *ListTopicsDetectionJobsInput) (req *request.Request, output *ListTopicsDetectionJobsOutput) { 4289 op := &request.Operation{ 4290 Name: opListTopicsDetectionJobs, 4291 HTTPMethod: "POST", 4292 HTTPPath: "/", 4293 Paginator: &request.Paginator{ 4294 InputTokens: []string{"NextToken"}, 4295 OutputTokens: []string{"NextToken"}, 4296 LimitToken: "MaxResults", 4297 TruncationToken: "", 4298 }, 4299 } 4300 4301 if input == nil { 4302 input = &ListTopicsDetectionJobsInput{} 4303 } 4304 4305 output = &ListTopicsDetectionJobsOutput{} 4306 req = c.newRequest(op, input, output) 4307 return 4308} 4309 4310// ListTopicsDetectionJobs API operation for Amazon Comprehend. 4311// 4312// Gets a list of the topic detection jobs that you have submitted. 4313// 4314// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4315// with awserr.Error's Code and Message methods to get detailed information about 4316// the error. 4317// 4318// See the AWS API reference guide for Amazon Comprehend's 4319// API operation ListTopicsDetectionJobs for usage and error information. 4320// 4321// Returned Error Types: 4322// * InvalidRequestException 4323// The request is invalid. 4324// 4325// * TooManyRequestsException 4326// The number of requests exceeds the limit. Resubmit your request later. 4327// 4328// * InvalidFilterException 4329// The filter specified for the operation is invalid. Specify a different filter. 4330// 4331// * InternalServerException 4332// An internal server error occurred. Retry your request. 4333// 4334// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobs 4335func (c *Comprehend) ListTopicsDetectionJobs(input *ListTopicsDetectionJobsInput) (*ListTopicsDetectionJobsOutput, error) { 4336 req, out := c.ListTopicsDetectionJobsRequest(input) 4337 return out, req.Send() 4338} 4339 4340// ListTopicsDetectionJobsWithContext is the same as ListTopicsDetectionJobs with the addition of 4341// the ability to pass a context and additional request options. 4342// 4343// See ListTopicsDetectionJobs for details on how to use this API operation. 4344// 4345// The context must be non-nil and will be used for request cancellation. If 4346// the context is nil a panic will occur. In the future the SDK may create 4347// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4348// for more information on using Contexts. 4349func (c *Comprehend) ListTopicsDetectionJobsWithContext(ctx aws.Context, input *ListTopicsDetectionJobsInput, opts ...request.Option) (*ListTopicsDetectionJobsOutput, error) { 4350 req, out := c.ListTopicsDetectionJobsRequest(input) 4351 req.SetContext(ctx) 4352 req.ApplyOptions(opts...) 4353 return out, req.Send() 4354} 4355 4356// ListTopicsDetectionJobsPages iterates over the pages of a ListTopicsDetectionJobs operation, 4357// calling the "fn" function with the response data for each page. To stop 4358// iterating, return false from the fn function. 4359// 4360// See ListTopicsDetectionJobs method for more information on how to use this operation. 4361// 4362// Note: This operation can generate multiple requests to a service. 4363// 4364// // Example iterating over at most 3 pages of a ListTopicsDetectionJobs operation. 4365// pageNum := 0 4366// err := client.ListTopicsDetectionJobsPages(params, 4367// func(page *comprehend.ListTopicsDetectionJobsOutput, lastPage bool) bool { 4368// pageNum++ 4369// fmt.Println(page) 4370// return pageNum <= 3 4371// }) 4372// 4373func (c *Comprehend) ListTopicsDetectionJobsPages(input *ListTopicsDetectionJobsInput, fn func(*ListTopicsDetectionJobsOutput, bool) bool) error { 4374 return c.ListTopicsDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 4375} 4376 4377// ListTopicsDetectionJobsPagesWithContext same as ListTopicsDetectionJobsPages except 4378// it takes a Context and allows setting request options on the pages. 4379// 4380// The context must be non-nil and will be used for request cancellation. If 4381// the context is nil a panic will occur. In the future the SDK may create 4382// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4383// for more information on using Contexts. 4384func (c *Comprehend) ListTopicsDetectionJobsPagesWithContext(ctx aws.Context, input *ListTopicsDetectionJobsInput, fn func(*ListTopicsDetectionJobsOutput, bool) bool, opts ...request.Option) error { 4385 p := request.Pagination{ 4386 NewRequest: func() (*request.Request, error) { 4387 var inCpy *ListTopicsDetectionJobsInput 4388 if input != nil { 4389 tmp := *input 4390 inCpy = &tmp 4391 } 4392 req, _ := c.ListTopicsDetectionJobsRequest(inCpy) 4393 req.SetContext(ctx) 4394 req.ApplyOptions(opts...) 4395 return req, nil 4396 }, 4397 } 4398 4399 for p.Next() { 4400 if !fn(p.Page().(*ListTopicsDetectionJobsOutput), !p.HasNextPage()) { 4401 break 4402 } 4403 } 4404 4405 return p.Err() 4406} 4407 4408const opStartDocumentClassificationJob = "StartDocumentClassificationJob" 4409 4410// StartDocumentClassificationJobRequest generates a "aws/request.Request" representing the 4411// client's request for the StartDocumentClassificationJob operation. The "output" return 4412// value will be populated with the request's response once the request completes 4413// successfully. 4414// 4415// Use "Send" method on the returned Request to send the API call to the service. 4416// the "output" return value is not valid until after Send returns without error. 4417// 4418// See StartDocumentClassificationJob for more information on using the StartDocumentClassificationJob 4419// API call, and error handling. 4420// 4421// This method is useful when you want to inject custom logic or configuration 4422// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4423// 4424// 4425// // Example sending a request using the StartDocumentClassificationJobRequest method. 4426// req, resp := client.StartDocumentClassificationJobRequest(params) 4427// 4428// err := req.Send() 4429// if err == nil { // resp is now filled 4430// fmt.Println(resp) 4431// } 4432// 4433// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDocumentClassificationJob 4434func (c *Comprehend) StartDocumentClassificationJobRequest(input *StartDocumentClassificationJobInput) (req *request.Request, output *StartDocumentClassificationJobOutput) { 4435 op := &request.Operation{ 4436 Name: opStartDocumentClassificationJob, 4437 HTTPMethod: "POST", 4438 HTTPPath: "/", 4439 } 4440 4441 if input == nil { 4442 input = &StartDocumentClassificationJobInput{} 4443 } 4444 4445 output = &StartDocumentClassificationJobOutput{} 4446 req = c.newRequest(op, input, output) 4447 return 4448} 4449 4450// StartDocumentClassificationJob API operation for Amazon Comprehend. 4451// 4452// Starts an asynchronous document classification job. Use the operation to 4453// track the progress of the job. 4454// 4455// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4456// with awserr.Error's Code and Message methods to get detailed information about 4457// the error. 4458// 4459// See the AWS API reference guide for Amazon Comprehend's 4460// API operation StartDocumentClassificationJob for usage and error information. 4461// 4462// Returned Error Types: 4463// * InvalidRequestException 4464// The request is invalid. 4465// 4466// * TooManyRequestsException 4467// The number of requests exceeds the limit. Resubmit your request later. 4468// 4469// * ResourceNotFoundException 4470// The specified resource ARN was not found. Check the ARN and try your request 4471// again. 4472// 4473// * ResourceUnavailableException 4474// The specified resource is not available. Check the resource and try your 4475// request again. 4476// 4477// * KmsKeyValidationException 4478// The KMS customer managed key (CMK) entered cannot be validated. Verify the 4479// key and re-enter it. 4480// 4481// * InternalServerException 4482// An internal server error occurred. Retry your request. 4483// 4484// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDocumentClassificationJob 4485func (c *Comprehend) StartDocumentClassificationJob(input *StartDocumentClassificationJobInput) (*StartDocumentClassificationJobOutput, error) { 4486 req, out := c.StartDocumentClassificationJobRequest(input) 4487 return out, req.Send() 4488} 4489 4490// StartDocumentClassificationJobWithContext is the same as StartDocumentClassificationJob with the addition of 4491// the ability to pass a context and additional request options. 4492// 4493// See StartDocumentClassificationJob for details on how to use this API operation. 4494// 4495// The context must be non-nil and will be used for request cancellation. If 4496// the context is nil a panic will occur. In the future the SDK may create 4497// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4498// for more information on using Contexts. 4499func (c *Comprehend) StartDocumentClassificationJobWithContext(ctx aws.Context, input *StartDocumentClassificationJobInput, opts ...request.Option) (*StartDocumentClassificationJobOutput, error) { 4500 req, out := c.StartDocumentClassificationJobRequest(input) 4501 req.SetContext(ctx) 4502 req.ApplyOptions(opts...) 4503 return out, req.Send() 4504} 4505 4506const opStartDominantLanguageDetectionJob = "StartDominantLanguageDetectionJob" 4507 4508// StartDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the 4509// client's request for the StartDominantLanguageDetectionJob operation. The "output" return 4510// value will be populated with the request's response once the request completes 4511// successfully. 4512// 4513// Use "Send" method on the returned Request to send the API call to the service. 4514// the "output" return value is not valid until after Send returns without error. 4515// 4516// See StartDominantLanguageDetectionJob for more information on using the StartDominantLanguageDetectionJob 4517// API call, and error handling. 4518// 4519// This method is useful when you want to inject custom logic or configuration 4520// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4521// 4522// 4523// // Example sending a request using the StartDominantLanguageDetectionJobRequest method. 4524// req, resp := client.StartDominantLanguageDetectionJobRequest(params) 4525// 4526// err := req.Send() 4527// if err == nil { // resp is now filled 4528// fmt.Println(resp) 4529// } 4530// 4531// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJob 4532func (c *Comprehend) StartDominantLanguageDetectionJobRequest(input *StartDominantLanguageDetectionJobInput) (req *request.Request, output *StartDominantLanguageDetectionJobOutput) { 4533 op := &request.Operation{ 4534 Name: opStartDominantLanguageDetectionJob, 4535 HTTPMethod: "POST", 4536 HTTPPath: "/", 4537 } 4538 4539 if input == nil { 4540 input = &StartDominantLanguageDetectionJobInput{} 4541 } 4542 4543 output = &StartDominantLanguageDetectionJobOutput{} 4544 req = c.newRequest(op, input, output) 4545 return 4546} 4547 4548// StartDominantLanguageDetectionJob API operation for Amazon Comprehend. 4549// 4550// Starts an asynchronous dominant language detection job for a collection of 4551// documents. Use the operation to track the status of a job. 4552// 4553// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4554// with awserr.Error's Code and Message methods to get detailed information about 4555// the error. 4556// 4557// See the AWS API reference guide for Amazon Comprehend's 4558// API operation StartDominantLanguageDetectionJob for usage and error information. 4559// 4560// Returned Error Types: 4561// * InvalidRequestException 4562// The request is invalid. 4563// 4564// * TooManyRequestsException 4565// The number of requests exceeds the limit. Resubmit your request later. 4566// 4567// * KmsKeyValidationException 4568// The KMS customer managed key (CMK) entered cannot be validated. Verify the 4569// key and re-enter it. 4570// 4571// * InternalServerException 4572// An internal server error occurred. Retry your request. 4573// 4574// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJob 4575func (c *Comprehend) StartDominantLanguageDetectionJob(input *StartDominantLanguageDetectionJobInput) (*StartDominantLanguageDetectionJobOutput, error) { 4576 req, out := c.StartDominantLanguageDetectionJobRequest(input) 4577 return out, req.Send() 4578} 4579 4580// StartDominantLanguageDetectionJobWithContext is the same as StartDominantLanguageDetectionJob with the addition of 4581// the ability to pass a context and additional request options. 4582// 4583// See StartDominantLanguageDetectionJob for details on how to use this API operation. 4584// 4585// The context must be non-nil and will be used for request cancellation. If 4586// the context is nil a panic will occur. In the future the SDK may create 4587// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4588// for more information on using Contexts. 4589func (c *Comprehend) StartDominantLanguageDetectionJobWithContext(ctx aws.Context, input *StartDominantLanguageDetectionJobInput, opts ...request.Option) (*StartDominantLanguageDetectionJobOutput, error) { 4590 req, out := c.StartDominantLanguageDetectionJobRequest(input) 4591 req.SetContext(ctx) 4592 req.ApplyOptions(opts...) 4593 return out, req.Send() 4594} 4595 4596const opStartEntitiesDetectionJob = "StartEntitiesDetectionJob" 4597 4598// StartEntitiesDetectionJobRequest generates a "aws/request.Request" representing the 4599// client's request for the StartEntitiesDetectionJob operation. The "output" return 4600// value will be populated with the request's response once the request completes 4601// successfully. 4602// 4603// Use "Send" method on the returned Request to send the API call to the service. 4604// the "output" return value is not valid until after Send returns without error. 4605// 4606// See StartEntitiesDetectionJob for more information on using the StartEntitiesDetectionJob 4607// API call, and error handling. 4608// 4609// This method is useful when you want to inject custom logic or configuration 4610// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4611// 4612// 4613// // Example sending a request using the StartEntitiesDetectionJobRequest method. 4614// req, resp := client.StartEntitiesDetectionJobRequest(params) 4615// 4616// err := req.Send() 4617// if err == nil { // resp is now filled 4618// fmt.Println(resp) 4619// } 4620// 4621// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJob 4622func (c *Comprehend) StartEntitiesDetectionJobRequest(input *StartEntitiesDetectionJobInput) (req *request.Request, output *StartEntitiesDetectionJobOutput) { 4623 op := &request.Operation{ 4624 Name: opStartEntitiesDetectionJob, 4625 HTTPMethod: "POST", 4626 HTTPPath: "/", 4627 } 4628 4629 if input == nil { 4630 input = &StartEntitiesDetectionJobInput{} 4631 } 4632 4633 output = &StartEntitiesDetectionJobOutput{} 4634 req = c.newRequest(op, input, output) 4635 return 4636} 4637 4638// StartEntitiesDetectionJob API operation for Amazon Comprehend. 4639// 4640// Starts an asynchronous entity detection job for a collection of documents. 4641// Use the operation to track the status of a job. 4642// 4643// This API can be used for either standard entity detection or custom entity 4644// recognition. In order to be used for custom entity recognition, the optional 4645// EntityRecognizerArn must be used in order to provide access to the recognizer 4646// being used to detect the custom entity. 4647// 4648// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4649// with awserr.Error's Code and Message methods to get detailed information about 4650// the error. 4651// 4652// See the AWS API reference guide for Amazon Comprehend's 4653// API operation StartEntitiesDetectionJob for usage and error information. 4654// 4655// Returned Error Types: 4656// * InvalidRequestException 4657// The request is invalid. 4658// 4659// * TooManyRequestsException 4660// The number of requests exceeds the limit. Resubmit your request later. 4661// 4662// * ResourceNotFoundException 4663// The specified resource ARN was not found. Check the ARN and try your request 4664// again. 4665// 4666// * ResourceUnavailableException 4667// The specified resource is not available. Check the resource and try your 4668// request again. 4669// 4670// * KmsKeyValidationException 4671// The KMS customer managed key (CMK) entered cannot be validated. Verify the 4672// key and re-enter it. 4673// 4674// * InternalServerException 4675// An internal server error occurred. Retry your request. 4676// 4677// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJob 4678func (c *Comprehend) StartEntitiesDetectionJob(input *StartEntitiesDetectionJobInput) (*StartEntitiesDetectionJobOutput, error) { 4679 req, out := c.StartEntitiesDetectionJobRequest(input) 4680 return out, req.Send() 4681} 4682 4683// StartEntitiesDetectionJobWithContext is the same as StartEntitiesDetectionJob with the addition of 4684// the ability to pass a context and additional request options. 4685// 4686// See StartEntitiesDetectionJob for details on how to use this API operation. 4687// 4688// The context must be non-nil and will be used for request cancellation. If 4689// the context is nil a panic will occur. In the future the SDK may create 4690// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4691// for more information on using Contexts. 4692func (c *Comprehend) StartEntitiesDetectionJobWithContext(ctx aws.Context, input *StartEntitiesDetectionJobInput, opts ...request.Option) (*StartEntitiesDetectionJobOutput, error) { 4693 req, out := c.StartEntitiesDetectionJobRequest(input) 4694 req.SetContext(ctx) 4695 req.ApplyOptions(opts...) 4696 return out, req.Send() 4697} 4698 4699const opStartEventsDetectionJob = "StartEventsDetectionJob" 4700 4701// StartEventsDetectionJobRequest generates a "aws/request.Request" representing the 4702// client's request for the StartEventsDetectionJob operation. The "output" return 4703// value will be populated with the request's response once the request completes 4704// successfully. 4705// 4706// Use "Send" method on the returned Request to send the API call to the service. 4707// the "output" return value is not valid until after Send returns without error. 4708// 4709// See StartEventsDetectionJob for more information on using the StartEventsDetectionJob 4710// API call, and error handling. 4711// 4712// This method is useful when you want to inject custom logic or configuration 4713// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4714// 4715// 4716// // Example sending a request using the StartEventsDetectionJobRequest method. 4717// req, resp := client.StartEventsDetectionJobRequest(params) 4718// 4719// err := req.Send() 4720// if err == nil { // resp is now filled 4721// fmt.Println(resp) 4722// } 4723// 4724// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEventsDetectionJob 4725func (c *Comprehend) StartEventsDetectionJobRequest(input *StartEventsDetectionJobInput) (req *request.Request, output *StartEventsDetectionJobOutput) { 4726 op := &request.Operation{ 4727 Name: opStartEventsDetectionJob, 4728 HTTPMethod: "POST", 4729 HTTPPath: "/", 4730 } 4731 4732 if input == nil { 4733 input = &StartEventsDetectionJobInput{} 4734 } 4735 4736 output = &StartEventsDetectionJobOutput{} 4737 req = c.newRequest(op, input, output) 4738 return 4739} 4740 4741// StartEventsDetectionJob API operation for Amazon Comprehend. 4742// 4743// Starts an asynchronous event detection job for a collection of documents. 4744// 4745// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4746// with awserr.Error's Code and Message methods to get detailed information about 4747// the error. 4748// 4749// See the AWS API reference guide for Amazon Comprehend's 4750// API operation StartEventsDetectionJob for usage and error information. 4751// 4752// Returned Error Types: 4753// * InvalidRequestException 4754// The request is invalid. 4755// 4756// * TooManyRequestsException 4757// The number of requests exceeds the limit. Resubmit your request later. 4758// 4759// * KmsKeyValidationException 4760// The KMS customer managed key (CMK) entered cannot be validated. Verify the 4761// key and re-enter it. 4762// 4763// * InternalServerException 4764// An internal server error occurred. Retry your request. 4765// 4766// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEventsDetectionJob 4767func (c *Comprehend) StartEventsDetectionJob(input *StartEventsDetectionJobInput) (*StartEventsDetectionJobOutput, error) { 4768 req, out := c.StartEventsDetectionJobRequest(input) 4769 return out, req.Send() 4770} 4771 4772// StartEventsDetectionJobWithContext is the same as StartEventsDetectionJob with the addition of 4773// the ability to pass a context and additional request options. 4774// 4775// See StartEventsDetectionJob for details on how to use this API operation. 4776// 4777// The context must be non-nil and will be used for request cancellation. If 4778// the context is nil a panic will occur. In the future the SDK may create 4779// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4780// for more information on using Contexts. 4781func (c *Comprehend) StartEventsDetectionJobWithContext(ctx aws.Context, input *StartEventsDetectionJobInput, opts ...request.Option) (*StartEventsDetectionJobOutput, error) { 4782 req, out := c.StartEventsDetectionJobRequest(input) 4783 req.SetContext(ctx) 4784 req.ApplyOptions(opts...) 4785 return out, req.Send() 4786} 4787 4788const opStartKeyPhrasesDetectionJob = "StartKeyPhrasesDetectionJob" 4789 4790// StartKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the 4791// client's request for the StartKeyPhrasesDetectionJob operation. The "output" return 4792// value will be populated with the request's response once the request completes 4793// successfully. 4794// 4795// Use "Send" method on the returned Request to send the API call to the service. 4796// the "output" return value is not valid until after Send returns without error. 4797// 4798// See StartKeyPhrasesDetectionJob for more information on using the StartKeyPhrasesDetectionJob 4799// API call, and error handling. 4800// 4801// This method is useful when you want to inject custom logic or configuration 4802// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4803// 4804// 4805// // Example sending a request using the StartKeyPhrasesDetectionJobRequest method. 4806// req, resp := client.StartKeyPhrasesDetectionJobRequest(params) 4807// 4808// err := req.Send() 4809// if err == nil { // resp is now filled 4810// fmt.Println(resp) 4811// } 4812// 4813// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJob 4814func (c *Comprehend) StartKeyPhrasesDetectionJobRequest(input *StartKeyPhrasesDetectionJobInput) (req *request.Request, output *StartKeyPhrasesDetectionJobOutput) { 4815 op := &request.Operation{ 4816 Name: opStartKeyPhrasesDetectionJob, 4817 HTTPMethod: "POST", 4818 HTTPPath: "/", 4819 } 4820 4821 if input == nil { 4822 input = &StartKeyPhrasesDetectionJobInput{} 4823 } 4824 4825 output = &StartKeyPhrasesDetectionJobOutput{} 4826 req = c.newRequest(op, input, output) 4827 return 4828} 4829 4830// StartKeyPhrasesDetectionJob API operation for Amazon Comprehend. 4831// 4832// Starts an asynchronous key phrase detection job for a collection of documents. 4833// Use the operation to track the status of a job. 4834// 4835// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4836// with awserr.Error's Code and Message methods to get detailed information about 4837// the error. 4838// 4839// See the AWS API reference guide for Amazon Comprehend's 4840// API operation StartKeyPhrasesDetectionJob for usage and error information. 4841// 4842// Returned Error Types: 4843// * InvalidRequestException 4844// The request is invalid. 4845// 4846// * TooManyRequestsException 4847// The number of requests exceeds the limit. Resubmit your request later. 4848// 4849// * KmsKeyValidationException 4850// The KMS customer managed key (CMK) entered cannot be validated. Verify the 4851// key and re-enter it. 4852// 4853// * InternalServerException 4854// An internal server error occurred. Retry your request. 4855// 4856// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJob 4857func (c *Comprehend) StartKeyPhrasesDetectionJob(input *StartKeyPhrasesDetectionJobInput) (*StartKeyPhrasesDetectionJobOutput, error) { 4858 req, out := c.StartKeyPhrasesDetectionJobRequest(input) 4859 return out, req.Send() 4860} 4861 4862// StartKeyPhrasesDetectionJobWithContext is the same as StartKeyPhrasesDetectionJob with the addition of 4863// the ability to pass a context and additional request options. 4864// 4865// See StartKeyPhrasesDetectionJob for details on how to use this API operation. 4866// 4867// The context must be non-nil and will be used for request cancellation. If 4868// the context is nil a panic will occur. In the future the SDK may create 4869// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4870// for more information on using Contexts. 4871func (c *Comprehend) StartKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *StartKeyPhrasesDetectionJobInput, opts ...request.Option) (*StartKeyPhrasesDetectionJobOutput, error) { 4872 req, out := c.StartKeyPhrasesDetectionJobRequest(input) 4873 req.SetContext(ctx) 4874 req.ApplyOptions(opts...) 4875 return out, req.Send() 4876} 4877 4878const opStartPiiEntitiesDetectionJob = "StartPiiEntitiesDetectionJob" 4879 4880// StartPiiEntitiesDetectionJobRequest generates a "aws/request.Request" representing the 4881// client's request for the StartPiiEntitiesDetectionJob operation. The "output" return 4882// value will be populated with the request's response once the request completes 4883// successfully. 4884// 4885// Use "Send" method on the returned Request to send the API call to the service. 4886// the "output" return value is not valid until after Send returns without error. 4887// 4888// See StartPiiEntitiesDetectionJob for more information on using the StartPiiEntitiesDetectionJob 4889// API call, and error handling. 4890// 4891// This method is useful when you want to inject custom logic or configuration 4892// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4893// 4894// 4895// // Example sending a request using the StartPiiEntitiesDetectionJobRequest method. 4896// req, resp := client.StartPiiEntitiesDetectionJobRequest(params) 4897// 4898// err := req.Send() 4899// if err == nil { // resp is now filled 4900// fmt.Println(resp) 4901// } 4902// 4903// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartPiiEntitiesDetectionJob 4904func (c *Comprehend) StartPiiEntitiesDetectionJobRequest(input *StartPiiEntitiesDetectionJobInput) (req *request.Request, output *StartPiiEntitiesDetectionJobOutput) { 4905 op := &request.Operation{ 4906 Name: opStartPiiEntitiesDetectionJob, 4907 HTTPMethod: "POST", 4908 HTTPPath: "/", 4909 } 4910 4911 if input == nil { 4912 input = &StartPiiEntitiesDetectionJobInput{} 4913 } 4914 4915 output = &StartPiiEntitiesDetectionJobOutput{} 4916 req = c.newRequest(op, input, output) 4917 return 4918} 4919 4920// StartPiiEntitiesDetectionJob API operation for Amazon Comprehend. 4921// 4922// Starts an asynchronous PII entity detection job for a collection of documents. 4923// 4924// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4925// with awserr.Error's Code and Message methods to get detailed information about 4926// the error. 4927// 4928// See the AWS API reference guide for Amazon Comprehend's 4929// API operation StartPiiEntitiesDetectionJob for usage and error information. 4930// 4931// Returned Error Types: 4932// * InvalidRequestException 4933// The request is invalid. 4934// 4935// * TooManyRequestsException 4936// The number of requests exceeds the limit. Resubmit your request later. 4937// 4938// * KmsKeyValidationException 4939// The KMS customer managed key (CMK) entered cannot be validated. Verify the 4940// key and re-enter it. 4941// 4942// * InternalServerException 4943// An internal server error occurred. Retry your request. 4944// 4945// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartPiiEntitiesDetectionJob 4946func (c *Comprehend) StartPiiEntitiesDetectionJob(input *StartPiiEntitiesDetectionJobInput) (*StartPiiEntitiesDetectionJobOutput, error) { 4947 req, out := c.StartPiiEntitiesDetectionJobRequest(input) 4948 return out, req.Send() 4949} 4950 4951// StartPiiEntitiesDetectionJobWithContext is the same as StartPiiEntitiesDetectionJob with the addition of 4952// the ability to pass a context and additional request options. 4953// 4954// See StartPiiEntitiesDetectionJob for details on how to use this API operation. 4955// 4956// The context must be non-nil and will be used for request cancellation. If 4957// the context is nil a panic will occur. In the future the SDK may create 4958// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4959// for more information on using Contexts. 4960func (c *Comprehend) StartPiiEntitiesDetectionJobWithContext(ctx aws.Context, input *StartPiiEntitiesDetectionJobInput, opts ...request.Option) (*StartPiiEntitiesDetectionJobOutput, error) { 4961 req, out := c.StartPiiEntitiesDetectionJobRequest(input) 4962 req.SetContext(ctx) 4963 req.ApplyOptions(opts...) 4964 return out, req.Send() 4965} 4966 4967const opStartSentimentDetectionJob = "StartSentimentDetectionJob" 4968 4969// StartSentimentDetectionJobRequest generates a "aws/request.Request" representing the 4970// client's request for the StartSentimentDetectionJob operation. The "output" return 4971// value will be populated with the request's response once the request completes 4972// successfully. 4973// 4974// Use "Send" method on the returned Request to send the API call to the service. 4975// the "output" return value is not valid until after Send returns without error. 4976// 4977// See StartSentimentDetectionJob for more information on using the StartSentimentDetectionJob 4978// API call, and error handling. 4979// 4980// This method is useful when you want to inject custom logic or configuration 4981// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4982// 4983// 4984// // Example sending a request using the StartSentimentDetectionJobRequest method. 4985// req, resp := client.StartSentimentDetectionJobRequest(params) 4986// 4987// err := req.Send() 4988// if err == nil { // resp is now filled 4989// fmt.Println(resp) 4990// } 4991// 4992// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJob 4993func (c *Comprehend) StartSentimentDetectionJobRequest(input *StartSentimentDetectionJobInput) (req *request.Request, output *StartSentimentDetectionJobOutput) { 4994 op := &request.Operation{ 4995 Name: opStartSentimentDetectionJob, 4996 HTTPMethod: "POST", 4997 HTTPPath: "/", 4998 } 4999 5000 if input == nil { 5001 input = &StartSentimentDetectionJobInput{} 5002 } 5003 5004 output = &StartSentimentDetectionJobOutput{} 5005 req = c.newRequest(op, input, output) 5006 return 5007} 5008 5009// StartSentimentDetectionJob API operation for Amazon Comprehend. 5010// 5011// Starts an asynchronous sentiment detection job for a collection of documents. 5012// use the operation to track the status of a job. 5013// 5014// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5015// with awserr.Error's Code and Message methods to get detailed information about 5016// the error. 5017// 5018// See the AWS API reference guide for Amazon Comprehend's 5019// API operation StartSentimentDetectionJob for usage and error information. 5020// 5021// Returned Error Types: 5022// * InvalidRequestException 5023// The request is invalid. 5024// 5025// * TooManyRequestsException 5026// The number of requests exceeds the limit. Resubmit your request later. 5027// 5028// * KmsKeyValidationException 5029// The KMS customer managed key (CMK) entered cannot be validated. Verify the 5030// key and re-enter it. 5031// 5032// * InternalServerException 5033// An internal server error occurred. Retry your request. 5034// 5035// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJob 5036func (c *Comprehend) StartSentimentDetectionJob(input *StartSentimentDetectionJobInput) (*StartSentimentDetectionJobOutput, error) { 5037 req, out := c.StartSentimentDetectionJobRequest(input) 5038 return out, req.Send() 5039} 5040 5041// StartSentimentDetectionJobWithContext is the same as StartSentimentDetectionJob with the addition of 5042// the ability to pass a context and additional request options. 5043// 5044// See StartSentimentDetectionJob for details on how to use this API operation. 5045// 5046// The context must be non-nil and will be used for request cancellation. If 5047// the context is nil a panic will occur. In the future the SDK may create 5048// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5049// for more information on using Contexts. 5050func (c *Comprehend) StartSentimentDetectionJobWithContext(ctx aws.Context, input *StartSentimentDetectionJobInput, opts ...request.Option) (*StartSentimentDetectionJobOutput, error) { 5051 req, out := c.StartSentimentDetectionJobRequest(input) 5052 req.SetContext(ctx) 5053 req.ApplyOptions(opts...) 5054 return out, req.Send() 5055} 5056 5057const opStartTopicsDetectionJob = "StartTopicsDetectionJob" 5058 5059// StartTopicsDetectionJobRequest generates a "aws/request.Request" representing the 5060// client's request for the StartTopicsDetectionJob operation. The "output" return 5061// value will be populated with the request's response once the request completes 5062// successfully. 5063// 5064// Use "Send" method on the returned Request to send the API call to the service. 5065// the "output" return value is not valid until after Send returns without error. 5066// 5067// See StartTopicsDetectionJob for more information on using the StartTopicsDetectionJob 5068// API call, and error handling. 5069// 5070// This method is useful when you want to inject custom logic or configuration 5071// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5072// 5073// 5074// // Example sending a request using the StartTopicsDetectionJobRequest method. 5075// req, resp := client.StartTopicsDetectionJobRequest(params) 5076// 5077// err := req.Send() 5078// if err == nil { // resp is now filled 5079// fmt.Println(resp) 5080// } 5081// 5082// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJob 5083func (c *Comprehend) StartTopicsDetectionJobRequest(input *StartTopicsDetectionJobInput) (req *request.Request, output *StartTopicsDetectionJobOutput) { 5084 op := &request.Operation{ 5085 Name: opStartTopicsDetectionJob, 5086 HTTPMethod: "POST", 5087 HTTPPath: "/", 5088 } 5089 5090 if input == nil { 5091 input = &StartTopicsDetectionJobInput{} 5092 } 5093 5094 output = &StartTopicsDetectionJobOutput{} 5095 req = c.newRequest(op, input, output) 5096 return 5097} 5098 5099// StartTopicsDetectionJob API operation for Amazon Comprehend. 5100// 5101// Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob 5102// operation to track the status of a job. 5103// 5104// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5105// with awserr.Error's Code and Message methods to get detailed information about 5106// the error. 5107// 5108// See the AWS API reference guide for Amazon Comprehend's 5109// API operation StartTopicsDetectionJob for usage and error information. 5110// 5111// Returned Error Types: 5112// * InvalidRequestException 5113// The request is invalid. 5114// 5115// * TooManyRequestsException 5116// The number of requests exceeds the limit. Resubmit your request later. 5117// 5118// * KmsKeyValidationException 5119// The KMS customer managed key (CMK) entered cannot be validated. Verify the 5120// key and re-enter it. 5121// 5122// * InternalServerException 5123// An internal server error occurred. Retry your request. 5124// 5125// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJob 5126func (c *Comprehend) StartTopicsDetectionJob(input *StartTopicsDetectionJobInput) (*StartTopicsDetectionJobOutput, error) { 5127 req, out := c.StartTopicsDetectionJobRequest(input) 5128 return out, req.Send() 5129} 5130 5131// StartTopicsDetectionJobWithContext is the same as StartTopicsDetectionJob with the addition of 5132// the ability to pass a context and additional request options. 5133// 5134// See StartTopicsDetectionJob for details on how to use this API operation. 5135// 5136// The context must be non-nil and will be used for request cancellation. If 5137// the context is nil a panic will occur. In the future the SDK may create 5138// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5139// for more information on using Contexts. 5140func (c *Comprehend) StartTopicsDetectionJobWithContext(ctx aws.Context, input *StartTopicsDetectionJobInput, opts ...request.Option) (*StartTopicsDetectionJobOutput, error) { 5141 req, out := c.StartTopicsDetectionJobRequest(input) 5142 req.SetContext(ctx) 5143 req.ApplyOptions(opts...) 5144 return out, req.Send() 5145} 5146 5147const opStopDominantLanguageDetectionJob = "StopDominantLanguageDetectionJob" 5148 5149// StopDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the 5150// client's request for the StopDominantLanguageDetectionJob operation. The "output" return 5151// value will be populated with the request's response once the request completes 5152// successfully. 5153// 5154// Use "Send" method on the returned Request to send the API call to the service. 5155// the "output" return value is not valid until after Send returns without error. 5156// 5157// See StopDominantLanguageDetectionJob for more information on using the StopDominantLanguageDetectionJob 5158// API call, and error handling. 5159// 5160// This method is useful when you want to inject custom logic or configuration 5161// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5162// 5163// 5164// // Example sending a request using the StopDominantLanguageDetectionJobRequest method. 5165// req, resp := client.StopDominantLanguageDetectionJobRequest(params) 5166// 5167// err := req.Send() 5168// if err == nil { // resp is now filled 5169// fmt.Println(resp) 5170// } 5171// 5172// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJob 5173func (c *Comprehend) StopDominantLanguageDetectionJobRequest(input *StopDominantLanguageDetectionJobInput) (req *request.Request, output *StopDominantLanguageDetectionJobOutput) { 5174 op := &request.Operation{ 5175 Name: opStopDominantLanguageDetectionJob, 5176 HTTPMethod: "POST", 5177 HTTPPath: "/", 5178 } 5179 5180 if input == nil { 5181 input = &StopDominantLanguageDetectionJobInput{} 5182 } 5183 5184 output = &StopDominantLanguageDetectionJobOutput{} 5185 req = c.newRequest(op, input, output) 5186 return 5187} 5188 5189// StopDominantLanguageDetectionJob API operation for Amazon Comprehend. 5190// 5191// Stops a dominant language detection job in progress. 5192// 5193// If the job state is IN_PROGRESS the job is marked for termination and put 5194// into the STOP_REQUESTED state. If the job completes before it can be stopped, 5195// it is put into the COMPLETED state; otherwise the job is stopped and put 5196// into the STOPPED state. 5197// 5198// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob 5199// operation, the operation returns a 400 Internal Request Exception. 5200// 5201// When a job is stopped, any documents already processed are written to the 5202// output location. 5203// 5204// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5205// with awserr.Error's Code and Message methods to get detailed information about 5206// the error. 5207// 5208// See the AWS API reference guide for Amazon Comprehend's 5209// API operation StopDominantLanguageDetectionJob for usage and error information. 5210// 5211// Returned Error Types: 5212// * InvalidRequestException 5213// The request is invalid. 5214// 5215// * JobNotFoundException 5216// The specified job was not found. Check the job ID and try again. 5217// 5218// * InternalServerException 5219// An internal server error occurred. Retry your request. 5220// 5221// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJob 5222func (c *Comprehend) StopDominantLanguageDetectionJob(input *StopDominantLanguageDetectionJobInput) (*StopDominantLanguageDetectionJobOutput, error) { 5223 req, out := c.StopDominantLanguageDetectionJobRequest(input) 5224 return out, req.Send() 5225} 5226 5227// StopDominantLanguageDetectionJobWithContext is the same as StopDominantLanguageDetectionJob with the addition of 5228// the ability to pass a context and additional request options. 5229// 5230// See StopDominantLanguageDetectionJob for details on how to use this API operation. 5231// 5232// The context must be non-nil and will be used for request cancellation. If 5233// the context is nil a panic will occur. In the future the SDK may create 5234// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5235// for more information on using Contexts. 5236func (c *Comprehend) StopDominantLanguageDetectionJobWithContext(ctx aws.Context, input *StopDominantLanguageDetectionJobInput, opts ...request.Option) (*StopDominantLanguageDetectionJobOutput, error) { 5237 req, out := c.StopDominantLanguageDetectionJobRequest(input) 5238 req.SetContext(ctx) 5239 req.ApplyOptions(opts...) 5240 return out, req.Send() 5241} 5242 5243const opStopEntitiesDetectionJob = "StopEntitiesDetectionJob" 5244 5245// StopEntitiesDetectionJobRequest generates a "aws/request.Request" representing the 5246// client's request for the StopEntitiesDetectionJob operation. The "output" return 5247// value will be populated with the request's response once the request completes 5248// successfully. 5249// 5250// Use "Send" method on the returned Request to send the API call to the service. 5251// the "output" return value is not valid until after Send returns without error. 5252// 5253// See StopEntitiesDetectionJob for more information on using the StopEntitiesDetectionJob 5254// API call, and error handling. 5255// 5256// This method is useful when you want to inject custom logic or configuration 5257// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5258// 5259// 5260// // Example sending a request using the StopEntitiesDetectionJobRequest method. 5261// req, resp := client.StopEntitiesDetectionJobRequest(params) 5262// 5263// err := req.Send() 5264// if err == nil { // resp is now filled 5265// fmt.Println(resp) 5266// } 5267// 5268// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJob 5269func (c *Comprehend) StopEntitiesDetectionJobRequest(input *StopEntitiesDetectionJobInput) (req *request.Request, output *StopEntitiesDetectionJobOutput) { 5270 op := &request.Operation{ 5271 Name: opStopEntitiesDetectionJob, 5272 HTTPMethod: "POST", 5273 HTTPPath: "/", 5274 } 5275 5276 if input == nil { 5277 input = &StopEntitiesDetectionJobInput{} 5278 } 5279 5280 output = &StopEntitiesDetectionJobOutput{} 5281 req = c.newRequest(op, input, output) 5282 return 5283} 5284 5285// StopEntitiesDetectionJob API operation for Amazon Comprehend. 5286// 5287// Stops an entities detection job in progress. 5288// 5289// If the job state is IN_PROGRESS the job is marked for termination and put 5290// into the STOP_REQUESTED state. If the job completes before it can be stopped, 5291// it is put into the COMPLETED state; otherwise the job is stopped and put 5292// into the STOPPED state. 5293// 5294// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob 5295// operation, the operation returns a 400 Internal Request Exception. 5296// 5297// When a job is stopped, any documents already processed are written to the 5298// output location. 5299// 5300// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5301// with awserr.Error's Code and Message methods to get detailed information about 5302// the error. 5303// 5304// See the AWS API reference guide for Amazon Comprehend's 5305// API operation StopEntitiesDetectionJob for usage and error information. 5306// 5307// Returned Error Types: 5308// * InvalidRequestException 5309// The request is invalid. 5310// 5311// * JobNotFoundException 5312// The specified job was not found. Check the job ID and try again. 5313// 5314// * InternalServerException 5315// An internal server error occurred. Retry your request. 5316// 5317// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJob 5318func (c *Comprehend) StopEntitiesDetectionJob(input *StopEntitiesDetectionJobInput) (*StopEntitiesDetectionJobOutput, error) { 5319 req, out := c.StopEntitiesDetectionJobRequest(input) 5320 return out, req.Send() 5321} 5322 5323// StopEntitiesDetectionJobWithContext is the same as StopEntitiesDetectionJob with the addition of 5324// the ability to pass a context and additional request options. 5325// 5326// See StopEntitiesDetectionJob for details on how to use this API operation. 5327// 5328// The context must be non-nil and will be used for request cancellation. If 5329// the context is nil a panic will occur. In the future the SDK may create 5330// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5331// for more information on using Contexts. 5332func (c *Comprehend) StopEntitiesDetectionJobWithContext(ctx aws.Context, input *StopEntitiesDetectionJobInput, opts ...request.Option) (*StopEntitiesDetectionJobOutput, error) { 5333 req, out := c.StopEntitiesDetectionJobRequest(input) 5334 req.SetContext(ctx) 5335 req.ApplyOptions(opts...) 5336 return out, req.Send() 5337} 5338 5339const opStopEventsDetectionJob = "StopEventsDetectionJob" 5340 5341// StopEventsDetectionJobRequest generates a "aws/request.Request" representing the 5342// client's request for the StopEventsDetectionJob operation. The "output" return 5343// value will be populated with the request's response once the request completes 5344// successfully. 5345// 5346// Use "Send" method on the returned Request to send the API call to the service. 5347// the "output" return value is not valid until after Send returns without error. 5348// 5349// See StopEventsDetectionJob for more information on using the StopEventsDetectionJob 5350// API call, and error handling. 5351// 5352// This method is useful when you want to inject custom logic or configuration 5353// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5354// 5355// 5356// // Example sending a request using the StopEventsDetectionJobRequest method. 5357// req, resp := client.StopEventsDetectionJobRequest(params) 5358// 5359// err := req.Send() 5360// if err == nil { // resp is now filled 5361// fmt.Println(resp) 5362// } 5363// 5364// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEventsDetectionJob 5365func (c *Comprehend) StopEventsDetectionJobRequest(input *StopEventsDetectionJobInput) (req *request.Request, output *StopEventsDetectionJobOutput) { 5366 op := &request.Operation{ 5367 Name: opStopEventsDetectionJob, 5368 HTTPMethod: "POST", 5369 HTTPPath: "/", 5370 } 5371 5372 if input == nil { 5373 input = &StopEventsDetectionJobInput{} 5374 } 5375 5376 output = &StopEventsDetectionJobOutput{} 5377 req = c.newRequest(op, input, output) 5378 return 5379} 5380 5381// StopEventsDetectionJob API operation for Amazon Comprehend. 5382// 5383// Stops an events detection job in progress. 5384// 5385// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5386// with awserr.Error's Code and Message methods to get detailed information about 5387// the error. 5388// 5389// See the AWS API reference guide for Amazon Comprehend's 5390// API operation StopEventsDetectionJob for usage and error information. 5391// 5392// Returned Error Types: 5393// * InvalidRequestException 5394// The request is invalid. 5395// 5396// * JobNotFoundException 5397// The specified job was not found. Check the job ID and try again. 5398// 5399// * InternalServerException 5400// An internal server error occurred. Retry your request. 5401// 5402// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEventsDetectionJob 5403func (c *Comprehend) StopEventsDetectionJob(input *StopEventsDetectionJobInput) (*StopEventsDetectionJobOutput, error) { 5404 req, out := c.StopEventsDetectionJobRequest(input) 5405 return out, req.Send() 5406} 5407 5408// StopEventsDetectionJobWithContext is the same as StopEventsDetectionJob with the addition of 5409// the ability to pass a context and additional request options. 5410// 5411// See StopEventsDetectionJob for details on how to use this API operation. 5412// 5413// The context must be non-nil and will be used for request cancellation. If 5414// the context is nil a panic will occur. In the future the SDK may create 5415// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5416// for more information on using Contexts. 5417func (c *Comprehend) StopEventsDetectionJobWithContext(ctx aws.Context, input *StopEventsDetectionJobInput, opts ...request.Option) (*StopEventsDetectionJobOutput, error) { 5418 req, out := c.StopEventsDetectionJobRequest(input) 5419 req.SetContext(ctx) 5420 req.ApplyOptions(opts...) 5421 return out, req.Send() 5422} 5423 5424const opStopKeyPhrasesDetectionJob = "StopKeyPhrasesDetectionJob" 5425 5426// StopKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the 5427// client's request for the StopKeyPhrasesDetectionJob operation. The "output" return 5428// value will be populated with the request's response once the request completes 5429// successfully. 5430// 5431// Use "Send" method on the returned Request to send the API call to the service. 5432// the "output" return value is not valid until after Send returns without error. 5433// 5434// See StopKeyPhrasesDetectionJob for more information on using the StopKeyPhrasesDetectionJob 5435// API call, and error handling. 5436// 5437// This method is useful when you want to inject custom logic or configuration 5438// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5439// 5440// 5441// // Example sending a request using the StopKeyPhrasesDetectionJobRequest method. 5442// req, resp := client.StopKeyPhrasesDetectionJobRequest(params) 5443// 5444// err := req.Send() 5445// if err == nil { // resp is now filled 5446// fmt.Println(resp) 5447// } 5448// 5449// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob 5450func (c *Comprehend) StopKeyPhrasesDetectionJobRequest(input *StopKeyPhrasesDetectionJobInput) (req *request.Request, output *StopKeyPhrasesDetectionJobOutput) { 5451 op := &request.Operation{ 5452 Name: opStopKeyPhrasesDetectionJob, 5453 HTTPMethod: "POST", 5454 HTTPPath: "/", 5455 } 5456 5457 if input == nil { 5458 input = &StopKeyPhrasesDetectionJobInput{} 5459 } 5460 5461 output = &StopKeyPhrasesDetectionJobOutput{} 5462 req = c.newRequest(op, input, output) 5463 return 5464} 5465 5466// StopKeyPhrasesDetectionJob API operation for Amazon Comprehend. 5467// 5468// Stops a key phrases detection job in progress. 5469// 5470// If the job state is IN_PROGRESS the job is marked for termination and put 5471// into the STOP_REQUESTED state. If the job completes before it can be stopped, 5472// it is put into the COMPLETED state; otherwise the job is stopped and put 5473// into the STOPPED state. 5474// 5475// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob 5476// operation, the operation returns a 400 Internal Request Exception. 5477// 5478// When a job is stopped, any documents already processed are written to the 5479// output location. 5480// 5481// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5482// with awserr.Error's Code and Message methods to get detailed information about 5483// the error. 5484// 5485// See the AWS API reference guide for Amazon Comprehend's 5486// API operation StopKeyPhrasesDetectionJob for usage and error information. 5487// 5488// Returned Error Types: 5489// * InvalidRequestException 5490// The request is invalid. 5491// 5492// * JobNotFoundException 5493// The specified job was not found. Check the job ID and try again. 5494// 5495// * InternalServerException 5496// An internal server error occurred. Retry your request. 5497// 5498// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob 5499func (c *Comprehend) StopKeyPhrasesDetectionJob(input *StopKeyPhrasesDetectionJobInput) (*StopKeyPhrasesDetectionJobOutput, error) { 5500 req, out := c.StopKeyPhrasesDetectionJobRequest(input) 5501 return out, req.Send() 5502} 5503 5504// StopKeyPhrasesDetectionJobWithContext is the same as StopKeyPhrasesDetectionJob with the addition of 5505// the ability to pass a context and additional request options. 5506// 5507// See StopKeyPhrasesDetectionJob for details on how to use this API operation. 5508// 5509// The context must be non-nil and will be used for request cancellation. If 5510// the context is nil a panic will occur. In the future the SDK may create 5511// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5512// for more information on using Contexts. 5513func (c *Comprehend) StopKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *StopKeyPhrasesDetectionJobInput, opts ...request.Option) (*StopKeyPhrasesDetectionJobOutput, error) { 5514 req, out := c.StopKeyPhrasesDetectionJobRequest(input) 5515 req.SetContext(ctx) 5516 req.ApplyOptions(opts...) 5517 return out, req.Send() 5518} 5519 5520const opStopPiiEntitiesDetectionJob = "StopPiiEntitiesDetectionJob" 5521 5522// StopPiiEntitiesDetectionJobRequest generates a "aws/request.Request" representing the 5523// client's request for the StopPiiEntitiesDetectionJob operation. The "output" return 5524// value will be populated with the request's response once the request completes 5525// successfully. 5526// 5527// Use "Send" method on the returned Request to send the API call to the service. 5528// the "output" return value is not valid until after Send returns without error. 5529// 5530// See StopPiiEntitiesDetectionJob for more information on using the StopPiiEntitiesDetectionJob 5531// API call, and error handling. 5532// 5533// This method is useful when you want to inject custom logic or configuration 5534// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5535// 5536// 5537// // Example sending a request using the StopPiiEntitiesDetectionJobRequest method. 5538// req, resp := client.StopPiiEntitiesDetectionJobRequest(params) 5539// 5540// err := req.Send() 5541// if err == nil { // resp is now filled 5542// fmt.Println(resp) 5543// } 5544// 5545// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopPiiEntitiesDetectionJob 5546func (c *Comprehend) StopPiiEntitiesDetectionJobRequest(input *StopPiiEntitiesDetectionJobInput) (req *request.Request, output *StopPiiEntitiesDetectionJobOutput) { 5547 op := &request.Operation{ 5548 Name: opStopPiiEntitiesDetectionJob, 5549 HTTPMethod: "POST", 5550 HTTPPath: "/", 5551 } 5552 5553 if input == nil { 5554 input = &StopPiiEntitiesDetectionJobInput{} 5555 } 5556 5557 output = &StopPiiEntitiesDetectionJobOutput{} 5558 req = c.newRequest(op, input, output) 5559 return 5560} 5561 5562// StopPiiEntitiesDetectionJob API operation for Amazon Comprehend. 5563// 5564// Stops a PII entities detection job in progress. 5565// 5566// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5567// with awserr.Error's Code and Message methods to get detailed information about 5568// the error. 5569// 5570// See the AWS API reference guide for Amazon Comprehend's 5571// API operation StopPiiEntitiesDetectionJob for usage and error information. 5572// 5573// Returned Error Types: 5574// * InvalidRequestException 5575// The request is invalid. 5576// 5577// * JobNotFoundException 5578// The specified job was not found. Check the job ID and try again. 5579// 5580// * InternalServerException 5581// An internal server error occurred. Retry your request. 5582// 5583// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopPiiEntitiesDetectionJob 5584func (c *Comprehend) StopPiiEntitiesDetectionJob(input *StopPiiEntitiesDetectionJobInput) (*StopPiiEntitiesDetectionJobOutput, error) { 5585 req, out := c.StopPiiEntitiesDetectionJobRequest(input) 5586 return out, req.Send() 5587} 5588 5589// StopPiiEntitiesDetectionJobWithContext is the same as StopPiiEntitiesDetectionJob with the addition of 5590// the ability to pass a context and additional request options. 5591// 5592// See StopPiiEntitiesDetectionJob for details on how to use this API operation. 5593// 5594// The context must be non-nil and will be used for request cancellation. If 5595// the context is nil a panic will occur. In the future the SDK may create 5596// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5597// for more information on using Contexts. 5598func (c *Comprehend) StopPiiEntitiesDetectionJobWithContext(ctx aws.Context, input *StopPiiEntitiesDetectionJobInput, opts ...request.Option) (*StopPiiEntitiesDetectionJobOutput, error) { 5599 req, out := c.StopPiiEntitiesDetectionJobRequest(input) 5600 req.SetContext(ctx) 5601 req.ApplyOptions(opts...) 5602 return out, req.Send() 5603} 5604 5605const opStopSentimentDetectionJob = "StopSentimentDetectionJob" 5606 5607// StopSentimentDetectionJobRequest generates a "aws/request.Request" representing the 5608// client's request for the StopSentimentDetectionJob operation. The "output" return 5609// value will be populated with the request's response once the request completes 5610// successfully. 5611// 5612// Use "Send" method on the returned Request to send the API call to the service. 5613// the "output" return value is not valid until after Send returns without error. 5614// 5615// See StopSentimentDetectionJob for more information on using the StopSentimentDetectionJob 5616// API call, and error handling. 5617// 5618// This method is useful when you want to inject custom logic or configuration 5619// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5620// 5621// 5622// // Example sending a request using the StopSentimentDetectionJobRequest method. 5623// req, resp := client.StopSentimentDetectionJobRequest(params) 5624// 5625// err := req.Send() 5626// if err == nil { // resp is now filled 5627// fmt.Println(resp) 5628// } 5629// 5630// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJob 5631func (c *Comprehend) StopSentimentDetectionJobRequest(input *StopSentimentDetectionJobInput) (req *request.Request, output *StopSentimentDetectionJobOutput) { 5632 op := &request.Operation{ 5633 Name: opStopSentimentDetectionJob, 5634 HTTPMethod: "POST", 5635 HTTPPath: "/", 5636 } 5637 5638 if input == nil { 5639 input = &StopSentimentDetectionJobInput{} 5640 } 5641 5642 output = &StopSentimentDetectionJobOutput{} 5643 req = c.newRequest(op, input, output) 5644 return 5645} 5646 5647// StopSentimentDetectionJob API operation for Amazon Comprehend. 5648// 5649// Stops a sentiment detection job in progress. 5650// 5651// If the job state is IN_PROGRESS the job is marked for termination and put 5652// into the STOP_REQUESTED state. If the job completes before it can be stopped, 5653// it is put into the COMPLETED state; otherwise the job is be stopped and put 5654// into the STOPPED state. 5655// 5656// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob 5657// operation, the operation returns a 400 Internal Request Exception. 5658// 5659// When a job is stopped, any documents already processed are written to the 5660// output location. 5661// 5662// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5663// with awserr.Error's Code and Message methods to get detailed information about 5664// the error. 5665// 5666// See the AWS API reference guide for Amazon Comprehend's 5667// API operation StopSentimentDetectionJob for usage and error information. 5668// 5669// Returned Error Types: 5670// * InvalidRequestException 5671// The request is invalid. 5672// 5673// * JobNotFoundException 5674// The specified job was not found. Check the job ID and try again. 5675// 5676// * InternalServerException 5677// An internal server error occurred. Retry your request. 5678// 5679// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJob 5680func (c *Comprehend) StopSentimentDetectionJob(input *StopSentimentDetectionJobInput) (*StopSentimentDetectionJobOutput, error) { 5681 req, out := c.StopSentimentDetectionJobRequest(input) 5682 return out, req.Send() 5683} 5684 5685// StopSentimentDetectionJobWithContext is the same as StopSentimentDetectionJob with the addition of 5686// the ability to pass a context and additional request options. 5687// 5688// See StopSentimentDetectionJob for details on how to use this API operation. 5689// 5690// The context must be non-nil and will be used for request cancellation. If 5691// the context is nil a panic will occur. In the future the SDK may create 5692// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5693// for more information on using Contexts. 5694func (c *Comprehend) StopSentimentDetectionJobWithContext(ctx aws.Context, input *StopSentimentDetectionJobInput, opts ...request.Option) (*StopSentimentDetectionJobOutput, error) { 5695 req, out := c.StopSentimentDetectionJobRequest(input) 5696 req.SetContext(ctx) 5697 req.ApplyOptions(opts...) 5698 return out, req.Send() 5699} 5700 5701const opStopTrainingDocumentClassifier = "StopTrainingDocumentClassifier" 5702 5703// StopTrainingDocumentClassifierRequest generates a "aws/request.Request" representing the 5704// client's request for the StopTrainingDocumentClassifier operation. The "output" return 5705// value will be populated with the request's response once the request completes 5706// successfully. 5707// 5708// Use "Send" method on the returned Request to send the API call to the service. 5709// the "output" return value is not valid until after Send returns without error. 5710// 5711// See StopTrainingDocumentClassifier for more information on using the StopTrainingDocumentClassifier 5712// API call, and error handling. 5713// 5714// This method is useful when you want to inject custom logic or configuration 5715// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5716// 5717// 5718// // Example sending a request using the StopTrainingDocumentClassifierRequest method. 5719// req, resp := client.StopTrainingDocumentClassifierRequest(params) 5720// 5721// err := req.Send() 5722// if err == nil { // resp is now filled 5723// fmt.Println(resp) 5724// } 5725// 5726// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingDocumentClassifier 5727func (c *Comprehend) StopTrainingDocumentClassifierRequest(input *StopTrainingDocumentClassifierInput) (req *request.Request, output *StopTrainingDocumentClassifierOutput) { 5728 op := &request.Operation{ 5729 Name: opStopTrainingDocumentClassifier, 5730 HTTPMethod: "POST", 5731 HTTPPath: "/", 5732 } 5733 5734 if input == nil { 5735 input = &StopTrainingDocumentClassifierInput{} 5736 } 5737 5738 output = &StopTrainingDocumentClassifierOutput{} 5739 req = c.newRequest(op, input, output) 5740 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5741 return 5742} 5743 5744// StopTrainingDocumentClassifier API operation for Amazon Comprehend. 5745// 5746// Stops a document classifier training job while in progress. 5747// 5748// If the training job state is TRAINING, the job is marked for termination 5749// and put into the STOP_REQUESTED state. If the training job completes before 5750// it can be stopped, it is put into the TRAINED; otherwise the training job 5751// is stopped and put into the STOPPED state and the service sends back an HTTP 5752// 200 response with an empty HTTP body. 5753// 5754// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5755// with awserr.Error's Code and Message methods to get detailed information about 5756// the error. 5757// 5758// See the AWS API reference guide for Amazon Comprehend's 5759// API operation StopTrainingDocumentClassifier for usage and error information. 5760// 5761// Returned Error Types: 5762// * InvalidRequestException 5763// The request is invalid. 5764// 5765// * TooManyRequestsException 5766// The number of requests exceeds the limit. Resubmit your request later. 5767// 5768// * ResourceNotFoundException 5769// The specified resource ARN was not found. Check the ARN and try your request 5770// again. 5771// 5772// * InternalServerException 5773// An internal server error occurred. Retry your request. 5774// 5775// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingDocumentClassifier 5776func (c *Comprehend) StopTrainingDocumentClassifier(input *StopTrainingDocumentClassifierInput) (*StopTrainingDocumentClassifierOutput, error) { 5777 req, out := c.StopTrainingDocumentClassifierRequest(input) 5778 return out, req.Send() 5779} 5780 5781// StopTrainingDocumentClassifierWithContext is the same as StopTrainingDocumentClassifier with the addition of 5782// the ability to pass a context and additional request options. 5783// 5784// See StopTrainingDocumentClassifier for details on how to use this API operation. 5785// 5786// The context must be non-nil and will be used for request cancellation. If 5787// the context is nil a panic will occur. In the future the SDK may create 5788// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5789// for more information on using Contexts. 5790func (c *Comprehend) StopTrainingDocumentClassifierWithContext(ctx aws.Context, input *StopTrainingDocumentClassifierInput, opts ...request.Option) (*StopTrainingDocumentClassifierOutput, error) { 5791 req, out := c.StopTrainingDocumentClassifierRequest(input) 5792 req.SetContext(ctx) 5793 req.ApplyOptions(opts...) 5794 return out, req.Send() 5795} 5796 5797const opStopTrainingEntityRecognizer = "StopTrainingEntityRecognizer" 5798 5799// StopTrainingEntityRecognizerRequest generates a "aws/request.Request" representing the 5800// client's request for the StopTrainingEntityRecognizer operation. The "output" return 5801// value will be populated with the request's response once the request completes 5802// successfully. 5803// 5804// Use "Send" method on the returned Request to send the API call to the service. 5805// the "output" return value is not valid until after Send returns without error. 5806// 5807// See StopTrainingEntityRecognizer for more information on using the StopTrainingEntityRecognizer 5808// API call, and error handling. 5809// 5810// This method is useful when you want to inject custom logic or configuration 5811// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5812// 5813// 5814// // Example sending a request using the StopTrainingEntityRecognizerRequest method. 5815// req, resp := client.StopTrainingEntityRecognizerRequest(params) 5816// 5817// err := req.Send() 5818// if err == nil { // resp is now filled 5819// fmt.Println(resp) 5820// } 5821// 5822// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingEntityRecognizer 5823func (c *Comprehend) StopTrainingEntityRecognizerRequest(input *StopTrainingEntityRecognizerInput) (req *request.Request, output *StopTrainingEntityRecognizerOutput) { 5824 op := &request.Operation{ 5825 Name: opStopTrainingEntityRecognizer, 5826 HTTPMethod: "POST", 5827 HTTPPath: "/", 5828 } 5829 5830 if input == nil { 5831 input = &StopTrainingEntityRecognizerInput{} 5832 } 5833 5834 output = &StopTrainingEntityRecognizerOutput{} 5835 req = c.newRequest(op, input, output) 5836 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5837 return 5838} 5839 5840// StopTrainingEntityRecognizer API operation for Amazon Comprehend. 5841// 5842// Stops an entity recognizer training job while in progress. 5843// 5844// If the training job state is TRAINING, the job is marked for termination 5845// and put into the STOP_REQUESTED state. If the training job completes before 5846// it can be stopped, it is put into the TRAINED; otherwise the training job 5847// is stopped and putted into the STOPPED state and the service sends back an 5848// HTTP 200 response with an empty HTTP body. 5849// 5850// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5851// with awserr.Error's Code and Message methods to get detailed information about 5852// the error. 5853// 5854// See the AWS API reference guide for Amazon Comprehend's 5855// API operation StopTrainingEntityRecognizer for usage and error information. 5856// 5857// Returned Error Types: 5858// * InvalidRequestException 5859// The request is invalid. 5860// 5861// * TooManyRequestsException 5862// The number of requests exceeds the limit. Resubmit your request later. 5863// 5864// * ResourceNotFoundException 5865// The specified resource ARN was not found. Check the ARN and try your request 5866// again. 5867// 5868// * InternalServerException 5869// An internal server error occurred. Retry your request. 5870// 5871// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingEntityRecognizer 5872func (c *Comprehend) StopTrainingEntityRecognizer(input *StopTrainingEntityRecognizerInput) (*StopTrainingEntityRecognizerOutput, error) { 5873 req, out := c.StopTrainingEntityRecognizerRequest(input) 5874 return out, req.Send() 5875} 5876 5877// StopTrainingEntityRecognizerWithContext is the same as StopTrainingEntityRecognizer with the addition of 5878// the ability to pass a context and additional request options. 5879// 5880// See StopTrainingEntityRecognizer for details on how to use this API operation. 5881// 5882// The context must be non-nil and will be used for request cancellation. If 5883// the context is nil a panic will occur. In the future the SDK may create 5884// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5885// for more information on using Contexts. 5886func (c *Comprehend) StopTrainingEntityRecognizerWithContext(ctx aws.Context, input *StopTrainingEntityRecognizerInput, opts ...request.Option) (*StopTrainingEntityRecognizerOutput, error) { 5887 req, out := c.StopTrainingEntityRecognizerRequest(input) 5888 req.SetContext(ctx) 5889 req.ApplyOptions(opts...) 5890 return out, req.Send() 5891} 5892 5893const opTagResource = "TagResource" 5894 5895// TagResourceRequest generates a "aws/request.Request" representing the 5896// client's request for the TagResource operation. The "output" return 5897// value will be populated with the request's response once the request completes 5898// successfully. 5899// 5900// Use "Send" method on the returned Request to send the API call to the service. 5901// the "output" return value is not valid until after Send returns without error. 5902// 5903// See TagResource for more information on using the TagResource 5904// API call, and error handling. 5905// 5906// This method is useful when you want to inject custom logic or configuration 5907// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5908// 5909// 5910// // Example sending a request using the TagResourceRequest method. 5911// req, resp := client.TagResourceRequest(params) 5912// 5913// err := req.Send() 5914// if err == nil { // resp is now filled 5915// fmt.Println(resp) 5916// } 5917// 5918// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TagResource 5919func (c *Comprehend) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 5920 op := &request.Operation{ 5921 Name: opTagResource, 5922 HTTPMethod: "POST", 5923 HTTPPath: "/", 5924 } 5925 5926 if input == nil { 5927 input = &TagResourceInput{} 5928 } 5929 5930 output = &TagResourceOutput{} 5931 req = c.newRequest(op, input, output) 5932 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 5933 return 5934} 5935 5936// TagResource API operation for Amazon Comprehend. 5937// 5938// Associates a specific tag with an Amazon Comprehend resource. A tag is a 5939// key-value pair that adds as a metadata to a resource used by Amazon Comprehend. 5940// For example, a tag with "Sales" as the key might be added to a resource to 5941// indicate its use by the sales department. 5942// 5943// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5944// with awserr.Error's Code and Message methods to get detailed information about 5945// the error. 5946// 5947// See the AWS API reference guide for Amazon Comprehend's 5948// API operation TagResource for usage and error information. 5949// 5950// Returned Error Types: 5951// * InvalidRequestException 5952// The request is invalid. 5953// 5954// * ConcurrentModificationException 5955// Concurrent modification of the tags associated with an Amazon Comprehend 5956// resource is not supported. 5957// 5958// * ResourceNotFoundException 5959// The specified resource ARN was not found. Check the ARN and try your request 5960// again. 5961// 5962// * TooManyTagsException 5963// The request contains more tags than can be associated with a resource (50 5964// tags per resource). The maximum number of tags includes both existing tags 5965// and those included in your current request. 5966// 5967// * InternalServerException 5968// An internal server error occurred. Retry your request. 5969// 5970// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TagResource 5971func (c *Comprehend) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 5972 req, out := c.TagResourceRequest(input) 5973 return out, req.Send() 5974} 5975 5976// TagResourceWithContext is the same as TagResource with the addition of 5977// the ability to pass a context and additional request options. 5978// 5979// See TagResource for details on how to use this API operation. 5980// 5981// The context must be non-nil and will be used for request cancellation. If 5982// the context is nil a panic will occur. In the future the SDK may create 5983// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5984// for more information on using Contexts. 5985func (c *Comprehend) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 5986 req, out := c.TagResourceRequest(input) 5987 req.SetContext(ctx) 5988 req.ApplyOptions(opts...) 5989 return out, req.Send() 5990} 5991 5992const opUntagResource = "UntagResource" 5993 5994// UntagResourceRequest generates a "aws/request.Request" representing the 5995// client's request for the UntagResource operation. The "output" return 5996// value will be populated with the request's response once the request completes 5997// successfully. 5998// 5999// Use "Send" method on the returned Request to send the API call to the service. 6000// the "output" return value is not valid until after Send returns without error. 6001// 6002// See UntagResource for more information on using the UntagResource 6003// API call, and error handling. 6004// 6005// This method is useful when you want to inject custom logic or configuration 6006// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6007// 6008// 6009// // Example sending a request using the UntagResourceRequest method. 6010// req, resp := client.UntagResourceRequest(params) 6011// 6012// err := req.Send() 6013// if err == nil { // resp is now filled 6014// fmt.Println(resp) 6015// } 6016// 6017// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UntagResource 6018func (c *Comprehend) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 6019 op := &request.Operation{ 6020 Name: opUntagResource, 6021 HTTPMethod: "POST", 6022 HTTPPath: "/", 6023 } 6024 6025 if input == nil { 6026 input = &UntagResourceInput{} 6027 } 6028 6029 output = &UntagResourceOutput{} 6030 req = c.newRequest(op, input, output) 6031 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6032 return 6033} 6034 6035// UntagResource API operation for Amazon Comprehend. 6036// 6037// Removes a specific tag associated with an Amazon Comprehend resource. 6038// 6039// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6040// with awserr.Error's Code and Message methods to get detailed information about 6041// the error. 6042// 6043// See the AWS API reference guide for Amazon Comprehend's 6044// API operation UntagResource for usage and error information. 6045// 6046// Returned Error Types: 6047// * TooManyTagKeysException 6048// The request contains more tag keys than can be associated with a resource 6049// (50 tag keys per resource). 6050// 6051// * InvalidRequestException 6052// The request is invalid. 6053// 6054// * ConcurrentModificationException 6055// Concurrent modification of the tags associated with an Amazon Comprehend 6056// resource is not supported. 6057// 6058// * ResourceNotFoundException 6059// The specified resource ARN was not found. Check the ARN and try your request 6060// again. 6061// 6062// * InternalServerException 6063// An internal server error occurred. Retry your request. 6064// 6065// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UntagResource 6066func (c *Comprehend) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 6067 req, out := c.UntagResourceRequest(input) 6068 return out, req.Send() 6069} 6070 6071// UntagResourceWithContext is the same as UntagResource with the addition of 6072// the ability to pass a context and additional request options. 6073// 6074// See UntagResource for details on how to use this API operation. 6075// 6076// The context must be non-nil and will be used for request cancellation. If 6077// the context is nil a panic will occur. In the future the SDK may create 6078// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6079// for more information on using Contexts. 6080func (c *Comprehend) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 6081 req, out := c.UntagResourceRequest(input) 6082 req.SetContext(ctx) 6083 req.ApplyOptions(opts...) 6084 return out, req.Send() 6085} 6086 6087const opUpdateEndpoint = "UpdateEndpoint" 6088 6089// UpdateEndpointRequest generates a "aws/request.Request" representing the 6090// client's request for the UpdateEndpoint operation. The "output" return 6091// value will be populated with the request's response once the request completes 6092// successfully. 6093// 6094// Use "Send" method on the returned Request to send the API call to the service. 6095// the "output" return value is not valid until after Send returns without error. 6096// 6097// See UpdateEndpoint for more information on using the UpdateEndpoint 6098// API call, and error handling. 6099// 6100// This method is useful when you want to inject custom logic or configuration 6101// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6102// 6103// 6104// // Example sending a request using the UpdateEndpointRequest method. 6105// req, resp := client.UpdateEndpointRequest(params) 6106// 6107// err := req.Send() 6108// if err == nil { // resp is now filled 6109// fmt.Println(resp) 6110// } 6111// 6112// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UpdateEndpoint 6113func (c *Comprehend) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) { 6114 op := &request.Operation{ 6115 Name: opUpdateEndpoint, 6116 HTTPMethod: "POST", 6117 HTTPPath: "/", 6118 } 6119 6120 if input == nil { 6121 input = &UpdateEndpointInput{} 6122 } 6123 6124 output = &UpdateEndpointOutput{} 6125 req = c.newRequest(op, input, output) 6126 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 6127 return 6128} 6129 6130// UpdateEndpoint API operation for Amazon Comprehend. 6131// 6132// Updates information about the specified endpoint. 6133// 6134// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6135// with awserr.Error's Code and Message methods to get detailed information about 6136// the error. 6137// 6138// See the AWS API reference guide for Amazon Comprehend's 6139// API operation UpdateEndpoint for usage and error information. 6140// 6141// Returned Error Types: 6142// * InvalidRequestException 6143// The request is invalid. 6144// 6145// * TooManyRequestsException 6146// The number of requests exceeds the limit. Resubmit your request later. 6147// 6148// * ResourceInUseException 6149// The specified resource name is already in use. Use a different name and try 6150// your request again. 6151// 6152// * ResourceLimitExceededException 6153// The maximum number of resources per account has been exceeded. Review the 6154// resources, and then try your request again. 6155// 6156// * ResourceNotFoundException 6157// The specified resource ARN was not found. Check the ARN and try your request 6158// again. 6159// 6160// * ResourceUnavailableException 6161// The specified resource is not available. Check the resource and try your 6162// request again. 6163// 6164// * InternalServerException 6165// An internal server error occurred. Retry your request. 6166// 6167// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UpdateEndpoint 6168func (c *Comprehend) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) { 6169 req, out := c.UpdateEndpointRequest(input) 6170 return out, req.Send() 6171} 6172 6173// UpdateEndpointWithContext is the same as UpdateEndpoint with the addition of 6174// the ability to pass a context and additional request options. 6175// 6176// See UpdateEndpoint for details on how to use this API operation. 6177// 6178// The context must be non-nil and will be used for request cancellation. If 6179// the context is nil a panic will occur. In the future the SDK may create 6180// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6181// for more information on using Contexts. 6182func (c *Comprehend) UpdateEndpointWithContext(ctx aws.Context, input *UpdateEndpointInput, opts ...request.Option) (*UpdateEndpointOutput, error) { 6183 req, out := c.UpdateEndpointRequest(input) 6184 req.SetContext(ctx) 6185 req.ApplyOptions(opts...) 6186 return out, req.Send() 6187} 6188 6189// An augmented manifest file that provides training data for your custom model. 6190// An augmented manifest file is a labeled dataset that is produced by Amazon 6191// SageMaker Ground Truth. 6192type AugmentedManifestsListItem struct { 6193 _ struct{} `type:"structure"` 6194 6195 // The JSON attribute that contains the annotations for your training documents. 6196 // The number of attribute names that you specify depends on whether your augmented 6197 // manifest file is the output of a single labeling job or a chained labeling 6198 // job. 6199 // 6200 // If your file is the output of a single labeling job, specify the LabelAttributeName 6201 // key that was used when the job was created in Ground Truth. 6202 // 6203 // If your file is the output of a chained labeling job, specify the LabelAttributeName 6204 // key for one or more jobs in the chain. Each LabelAttributeName key provides 6205 // the annotations from an individual job. 6206 // 6207 // AttributeNames is a required field 6208 AttributeNames []*string `type:"list" required:"true"` 6209 6210 // The Amazon S3 location of the augmented manifest file. 6211 // 6212 // S3Uri is a required field 6213 S3Uri *string `type:"string" required:"true"` 6214} 6215 6216// String returns the string representation 6217func (s AugmentedManifestsListItem) String() string { 6218 return awsutil.Prettify(s) 6219} 6220 6221// GoString returns the string representation 6222func (s AugmentedManifestsListItem) GoString() string { 6223 return s.String() 6224} 6225 6226// Validate inspects the fields of the type to determine if they are valid. 6227func (s *AugmentedManifestsListItem) Validate() error { 6228 invalidParams := request.ErrInvalidParams{Context: "AugmentedManifestsListItem"} 6229 if s.AttributeNames == nil { 6230 invalidParams.Add(request.NewErrParamRequired("AttributeNames")) 6231 } 6232 if s.S3Uri == nil { 6233 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 6234 } 6235 6236 if invalidParams.Len() > 0 { 6237 return invalidParams 6238 } 6239 return nil 6240} 6241 6242// SetAttributeNames sets the AttributeNames field's value. 6243func (s *AugmentedManifestsListItem) SetAttributeNames(v []*string) *AugmentedManifestsListItem { 6244 s.AttributeNames = v 6245 return s 6246} 6247 6248// SetS3Uri sets the S3Uri field's value. 6249func (s *AugmentedManifestsListItem) SetS3Uri(v string) *AugmentedManifestsListItem { 6250 s.S3Uri = &v 6251 return s 6252} 6253 6254type BatchDetectDominantLanguageInput struct { 6255 _ struct{} `type:"structure"` 6256 6257 // A list containing the text of the input documents. The list can contain a 6258 // maximum of 25 documents. Each document should contain at least 20 characters 6259 // and must contain fewer than 5,000 bytes of UTF-8 encoded characters. 6260 // 6261 // TextList is a required field 6262 TextList []*string `type:"list" required:"true" sensitive:"true"` 6263} 6264 6265// String returns the string representation 6266func (s BatchDetectDominantLanguageInput) String() string { 6267 return awsutil.Prettify(s) 6268} 6269 6270// GoString returns the string representation 6271func (s BatchDetectDominantLanguageInput) GoString() string { 6272 return s.String() 6273} 6274 6275// Validate inspects the fields of the type to determine if they are valid. 6276func (s *BatchDetectDominantLanguageInput) Validate() error { 6277 invalidParams := request.ErrInvalidParams{Context: "BatchDetectDominantLanguageInput"} 6278 if s.TextList == nil { 6279 invalidParams.Add(request.NewErrParamRequired("TextList")) 6280 } 6281 6282 if invalidParams.Len() > 0 { 6283 return invalidParams 6284 } 6285 return nil 6286} 6287 6288// SetTextList sets the TextList field's value. 6289func (s *BatchDetectDominantLanguageInput) SetTextList(v []*string) *BatchDetectDominantLanguageInput { 6290 s.TextList = v 6291 return s 6292} 6293 6294// The result of calling the operation. The operation returns one object for 6295// each document that is successfully processed by the operation. 6296type BatchDetectDominantLanguageItemResult struct { 6297 _ struct{} `type:"structure"` 6298 6299 // The zero-based index of the document in the input list. 6300 Index *int64 `type:"integer"` 6301 6302 // One or more DominantLanguage objects describing the dominant languages in 6303 // the document. 6304 Languages []*DominantLanguage `type:"list"` 6305} 6306 6307// String returns the string representation 6308func (s BatchDetectDominantLanguageItemResult) String() string { 6309 return awsutil.Prettify(s) 6310} 6311 6312// GoString returns the string representation 6313func (s BatchDetectDominantLanguageItemResult) GoString() string { 6314 return s.String() 6315} 6316 6317// SetIndex sets the Index field's value. 6318func (s *BatchDetectDominantLanguageItemResult) SetIndex(v int64) *BatchDetectDominantLanguageItemResult { 6319 s.Index = &v 6320 return s 6321} 6322 6323// SetLanguages sets the Languages field's value. 6324func (s *BatchDetectDominantLanguageItemResult) SetLanguages(v []*DominantLanguage) *BatchDetectDominantLanguageItemResult { 6325 s.Languages = v 6326 return s 6327} 6328 6329type BatchDetectDominantLanguageOutput struct { 6330 _ struct{} `type:"structure" sensitive:"true"` 6331 6332 // A list containing one object for each document that contained an error. The 6333 // results are sorted in ascending order by the Index field and match the order 6334 // of the documents in the input list. If there are no errors in the batch, 6335 // the ErrorList is empty. 6336 // 6337 // ErrorList is a required field 6338 ErrorList []*BatchItemError `type:"list" required:"true"` 6339 6340 // A list of objects containing the results of the operation. The results are 6341 // sorted in ascending order by the Index field and match the order of the documents 6342 // in the input list. If all of the documents contain an error, the ResultList 6343 // is empty. 6344 // 6345 // ResultList is a required field 6346 ResultList []*BatchDetectDominantLanguageItemResult `type:"list" required:"true"` 6347} 6348 6349// String returns the string representation 6350func (s BatchDetectDominantLanguageOutput) String() string { 6351 return awsutil.Prettify(s) 6352} 6353 6354// GoString returns the string representation 6355func (s BatchDetectDominantLanguageOutput) GoString() string { 6356 return s.String() 6357} 6358 6359// SetErrorList sets the ErrorList field's value. 6360func (s *BatchDetectDominantLanguageOutput) SetErrorList(v []*BatchItemError) *BatchDetectDominantLanguageOutput { 6361 s.ErrorList = v 6362 return s 6363} 6364 6365// SetResultList sets the ResultList field's value. 6366func (s *BatchDetectDominantLanguageOutput) SetResultList(v []*BatchDetectDominantLanguageItemResult) *BatchDetectDominantLanguageOutput { 6367 s.ResultList = v 6368 return s 6369} 6370 6371type BatchDetectEntitiesInput struct { 6372 _ struct{} `type:"structure"` 6373 6374 // The language of the input documents. You can specify any of the primary languages 6375 // supported by Amazon Comprehend. All documents must be in the same language. 6376 // 6377 // LanguageCode is a required field 6378 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 6379 6380 // A list containing the text of the input documents. The list can contain a 6381 // maximum of 25 documents. Each document must contain fewer than 5,000 bytes 6382 // of UTF-8 encoded characters. 6383 // 6384 // TextList is a required field 6385 TextList []*string `type:"list" required:"true" sensitive:"true"` 6386} 6387 6388// String returns the string representation 6389func (s BatchDetectEntitiesInput) String() string { 6390 return awsutil.Prettify(s) 6391} 6392 6393// GoString returns the string representation 6394func (s BatchDetectEntitiesInput) GoString() string { 6395 return s.String() 6396} 6397 6398// Validate inspects the fields of the type to determine if they are valid. 6399func (s *BatchDetectEntitiesInput) Validate() error { 6400 invalidParams := request.ErrInvalidParams{Context: "BatchDetectEntitiesInput"} 6401 if s.LanguageCode == nil { 6402 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 6403 } 6404 if s.TextList == nil { 6405 invalidParams.Add(request.NewErrParamRequired("TextList")) 6406 } 6407 6408 if invalidParams.Len() > 0 { 6409 return invalidParams 6410 } 6411 return nil 6412} 6413 6414// SetLanguageCode sets the LanguageCode field's value. 6415func (s *BatchDetectEntitiesInput) SetLanguageCode(v string) *BatchDetectEntitiesInput { 6416 s.LanguageCode = &v 6417 return s 6418} 6419 6420// SetTextList sets the TextList field's value. 6421func (s *BatchDetectEntitiesInput) SetTextList(v []*string) *BatchDetectEntitiesInput { 6422 s.TextList = v 6423 return s 6424} 6425 6426// The result of calling the operation. The operation returns one object for 6427// each document that is successfully processed by the operation. 6428type BatchDetectEntitiesItemResult struct { 6429 _ struct{} `type:"structure"` 6430 6431 // One or more Entity objects, one for each entity detected in the document. 6432 Entities []*Entity `type:"list"` 6433 6434 // The zero-based index of the document in the input list. 6435 Index *int64 `type:"integer"` 6436} 6437 6438// String returns the string representation 6439func (s BatchDetectEntitiesItemResult) String() string { 6440 return awsutil.Prettify(s) 6441} 6442 6443// GoString returns the string representation 6444func (s BatchDetectEntitiesItemResult) GoString() string { 6445 return s.String() 6446} 6447 6448// SetEntities sets the Entities field's value. 6449func (s *BatchDetectEntitiesItemResult) SetEntities(v []*Entity) *BatchDetectEntitiesItemResult { 6450 s.Entities = v 6451 return s 6452} 6453 6454// SetIndex sets the Index field's value. 6455func (s *BatchDetectEntitiesItemResult) SetIndex(v int64) *BatchDetectEntitiesItemResult { 6456 s.Index = &v 6457 return s 6458} 6459 6460type BatchDetectEntitiesOutput struct { 6461 _ struct{} `type:"structure" sensitive:"true"` 6462 6463 // A list containing one object for each document that contained an error. The 6464 // results are sorted in ascending order by the Index field and match the order 6465 // of the documents in the input list. If there are no errors in the batch, 6466 // the ErrorList is empty. 6467 // 6468 // ErrorList is a required field 6469 ErrorList []*BatchItemError `type:"list" required:"true"` 6470 6471 // A list of objects containing the results of the operation. The results are 6472 // sorted in ascending order by the Index field and match the order of the documents 6473 // in the input list. If all of the documents contain an error, the ResultList 6474 // is empty. 6475 // 6476 // ResultList is a required field 6477 ResultList []*BatchDetectEntitiesItemResult `type:"list" required:"true"` 6478} 6479 6480// String returns the string representation 6481func (s BatchDetectEntitiesOutput) String() string { 6482 return awsutil.Prettify(s) 6483} 6484 6485// GoString returns the string representation 6486func (s BatchDetectEntitiesOutput) GoString() string { 6487 return s.String() 6488} 6489 6490// SetErrorList sets the ErrorList field's value. 6491func (s *BatchDetectEntitiesOutput) SetErrorList(v []*BatchItemError) *BatchDetectEntitiesOutput { 6492 s.ErrorList = v 6493 return s 6494} 6495 6496// SetResultList sets the ResultList field's value. 6497func (s *BatchDetectEntitiesOutput) SetResultList(v []*BatchDetectEntitiesItemResult) *BatchDetectEntitiesOutput { 6498 s.ResultList = v 6499 return s 6500} 6501 6502type BatchDetectKeyPhrasesInput struct { 6503 _ struct{} `type:"structure"` 6504 6505 // The language of the input documents. You can specify any of the primary languages 6506 // supported by Amazon Comprehend. All documents must be in the same language. 6507 // 6508 // LanguageCode is a required field 6509 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 6510 6511 // A list containing the text of the input documents. The list can contain a 6512 // maximum of 25 documents. Each document must contain fewer that 5,000 bytes 6513 // of UTF-8 encoded characters. 6514 // 6515 // TextList is a required field 6516 TextList []*string `type:"list" required:"true" sensitive:"true"` 6517} 6518 6519// String returns the string representation 6520func (s BatchDetectKeyPhrasesInput) String() string { 6521 return awsutil.Prettify(s) 6522} 6523 6524// GoString returns the string representation 6525func (s BatchDetectKeyPhrasesInput) GoString() string { 6526 return s.String() 6527} 6528 6529// Validate inspects the fields of the type to determine if they are valid. 6530func (s *BatchDetectKeyPhrasesInput) Validate() error { 6531 invalidParams := request.ErrInvalidParams{Context: "BatchDetectKeyPhrasesInput"} 6532 if s.LanguageCode == nil { 6533 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 6534 } 6535 if s.TextList == nil { 6536 invalidParams.Add(request.NewErrParamRequired("TextList")) 6537 } 6538 6539 if invalidParams.Len() > 0 { 6540 return invalidParams 6541 } 6542 return nil 6543} 6544 6545// SetLanguageCode sets the LanguageCode field's value. 6546func (s *BatchDetectKeyPhrasesInput) SetLanguageCode(v string) *BatchDetectKeyPhrasesInput { 6547 s.LanguageCode = &v 6548 return s 6549} 6550 6551// SetTextList sets the TextList field's value. 6552func (s *BatchDetectKeyPhrasesInput) SetTextList(v []*string) *BatchDetectKeyPhrasesInput { 6553 s.TextList = v 6554 return s 6555} 6556 6557// The result of calling the operation. The operation returns one object for 6558// each document that is successfully processed by the operation. 6559type BatchDetectKeyPhrasesItemResult struct { 6560 _ struct{} `type:"structure"` 6561 6562 // The zero-based index of the document in the input list. 6563 Index *int64 `type:"integer"` 6564 6565 // One or more KeyPhrase objects, one for each key phrase detected in the document. 6566 KeyPhrases []*KeyPhrase `type:"list"` 6567} 6568 6569// String returns the string representation 6570func (s BatchDetectKeyPhrasesItemResult) String() string { 6571 return awsutil.Prettify(s) 6572} 6573 6574// GoString returns the string representation 6575func (s BatchDetectKeyPhrasesItemResult) GoString() string { 6576 return s.String() 6577} 6578 6579// SetIndex sets the Index field's value. 6580func (s *BatchDetectKeyPhrasesItemResult) SetIndex(v int64) *BatchDetectKeyPhrasesItemResult { 6581 s.Index = &v 6582 return s 6583} 6584 6585// SetKeyPhrases sets the KeyPhrases field's value. 6586func (s *BatchDetectKeyPhrasesItemResult) SetKeyPhrases(v []*KeyPhrase) *BatchDetectKeyPhrasesItemResult { 6587 s.KeyPhrases = v 6588 return s 6589} 6590 6591type BatchDetectKeyPhrasesOutput struct { 6592 _ struct{} `type:"structure" sensitive:"true"` 6593 6594 // A list containing one object for each document that contained an error. The 6595 // results are sorted in ascending order by the Index field and match the order 6596 // of the documents in the input list. If there are no errors in the batch, 6597 // the ErrorList is empty. 6598 // 6599 // ErrorList is a required field 6600 ErrorList []*BatchItemError `type:"list" required:"true"` 6601 6602 // A list of objects containing the results of the operation. The results are 6603 // sorted in ascending order by the Index field and match the order of the documents 6604 // in the input list. If all of the documents contain an error, the ResultList 6605 // is empty. 6606 // 6607 // ResultList is a required field 6608 ResultList []*BatchDetectKeyPhrasesItemResult `type:"list" required:"true"` 6609} 6610 6611// String returns the string representation 6612func (s BatchDetectKeyPhrasesOutput) String() string { 6613 return awsutil.Prettify(s) 6614} 6615 6616// GoString returns the string representation 6617func (s BatchDetectKeyPhrasesOutput) GoString() string { 6618 return s.String() 6619} 6620 6621// SetErrorList sets the ErrorList field's value. 6622func (s *BatchDetectKeyPhrasesOutput) SetErrorList(v []*BatchItemError) *BatchDetectKeyPhrasesOutput { 6623 s.ErrorList = v 6624 return s 6625} 6626 6627// SetResultList sets the ResultList field's value. 6628func (s *BatchDetectKeyPhrasesOutput) SetResultList(v []*BatchDetectKeyPhrasesItemResult) *BatchDetectKeyPhrasesOutput { 6629 s.ResultList = v 6630 return s 6631} 6632 6633type BatchDetectSentimentInput struct { 6634 _ struct{} `type:"structure"` 6635 6636 // The language of the input documents. You can specify any of the primary languages 6637 // supported by Amazon Comprehend. All documents must be in the same language. 6638 // 6639 // LanguageCode is a required field 6640 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 6641 6642 // A list containing the text of the input documents. The list can contain a 6643 // maximum of 25 documents. Each document must contain fewer that 5,000 bytes 6644 // of UTF-8 encoded characters. 6645 // 6646 // TextList is a required field 6647 TextList []*string `type:"list" required:"true" sensitive:"true"` 6648} 6649 6650// String returns the string representation 6651func (s BatchDetectSentimentInput) String() string { 6652 return awsutil.Prettify(s) 6653} 6654 6655// GoString returns the string representation 6656func (s BatchDetectSentimentInput) GoString() string { 6657 return s.String() 6658} 6659 6660// Validate inspects the fields of the type to determine if they are valid. 6661func (s *BatchDetectSentimentInput) Validate() error { 6662 invalidParams := request.ErrInvalidParams{Context: "BatchDetectSentimentInput"} 6663 if s.LanguageCode == nil { 6664 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 6665 } 6666 if s.TextList == nil { 6667 invalidParams.Add(request.NewErrParamRequired("TextList")) 6668 } 6669 6670 if invalidParams.Len() > 0 { 6671 return invalidParams 6672 } 6673 return nil 6674} 6675 6676// SetLanguageCode sets the LanguageCode field's value. 6677func (s *BatchDetectSentimentInput) SetLanguageCode(v string) *BatchDetectSentimentInput { 6678 s.LanguageCode = &v 6679 return s 6680} 6681 6682// SetTextList sets the TextList field's value. 6683func (s *BatchDetectSentimentInput) SetTextList(v []*string) *BatchDetectSentimentInput { 6684 s.TextList = v 6685 return s 6686} 6687 6688// The result of calling the operation. The operation returns one object for 6689// each document that is successfully processed by the operation. 6690type BatchDetectSentimentItemResult struct { 6691 _ struct{} `type:"structure"` 6692 6693 // The zero-based index of the document in the input list. 6694 Index *int64 `type:"integer"` 6695 6696 // The sentiment detected in the document. 6697 Sentiment *string `type:"string" enum:"SentimentType"` 6698 6699 // The level of confidence that Amazon Comprehend has in the accuracy of its 6700 // sentiment detection. 6701 SentimentScore *SentimentScore `type:"structure"` 6702} 6703 6704// String returns the string representation 6705func (s BatchDetectSentimentItemResult) String() string { 6706 return awsutil.Prettify(s) 6707} 6708 6709// GoString returns the string representation 6710func (s BatchDetectSentimentItemResult) GoString() string { 6711 return s.String() 6712} 6713 6714// SetIndex sets the Index field's value. 6715func (s *BatchDetectSentimentItemResult) SetIndex(v int64) *BatchDetectSentimentItemResult { 6716 s.Index = &v 6717 return s 6718} 6719 6720// SetSentiment sets the Sentiment field's value. 6721func (s *BatchDetectSentimentItemResult) SetSentiment(v string) *BatchDetectSentimentItemResult { 6722 s.Sentiment = &v 6723 return s 6724} 6725 6726// SetSentimentScore sets the SentimentScore field's value. 6727func (s *BatchDetectSentimentItemResult) SetSentimentScore(v *SentimentScore) *BatchDetectSentimentItemResult { 6728 s.SentimentScore = v 6729 return s 6730} 6731 6732type BatchDetectSentimentOutput struct { 6733 _ struct{} `type:"structure" sensitive:"true"` 6734 6735 // A list containing one object for each document that contained an error. The 6736 // results are sorted in ascending order by the Index field and match the order 6737 // of the documents in the input list. If there are no errors in the batch, 6738 // the ErrorList is empty. 6739 // 6740 // ErrorList is a required field 6741 ErrorList []*BatchItemError `type:"list" required:"true"` 6742 6743 // A list of objects containing the results of the operation. The results are 6744 // sorted in ascending order by the Index field and match the order of the documents 6745 // in the input list. If all of the documents contain an error, the ResultList 6746 // is empty. 6747 // 6748 // ResultList is a required field 6749 ResultList []*BatchDetectSentimentItemResult `type:"list" required:"true"` 6750} 6751 6752// String returns the string representation 6753func (s BatchDetectSentimentOutput) String() string { 6754 return awsutil.Prettify(s) 6755} 6756 6757// GoString returns the string representation 6758func (s BatchDetectSentimentOutput) GoString() string { 6759 return s.String() 6760} 6761 6762// SetErrorList sets the ErrorList field's value. 6763func (s *BatchDetectSentimentOutput) SetErrorList(v []*BatchItemError) *BatchDetectSentimentOutput { 6764 s.ErrorList = v 6765 return s 6766} 6767 6768// SetResultList sets the ResultList field's value. 6769func (s *BatchDetectSentimentOutput) SetResultList(v []*BatchDetectSentimentItemResult) *BatchDetectSentimentOutput { 6770 s.ResultList = v 6771 return s 6772} 6773 6774type BatchDetectSyntaxInput struct { 6775 _ struct{} `type:"structure"` 6776 6777 // The language of the input documents. You can specify any of the following 6778 // languages supported by Amazon Comprehend: German ("de"), English ("en"), 6779 // Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All 6780 // documents must be in the same language. 6781 // 6782 // LanguageCode is a required field 6783 LanguageCode *string `type:"string" required:"true" enum:"SyntaxLanguageCode"` 6784 6785 // A list containing the text of the input documents. The list can contain a 6786 // maximum of 25 documents. Each document must contain fewer that 5,000 bytes 6787 // of UTF-8 encoded characters. 6788 // 6789 // TextList is a required field 6790 TextList []*string `type:"list" required:"true" sensitive:"true"` 6791} 6792 6793// String returns the string representation 6794func (s BatchDetectSyntaxInput) String() string { 6795 return awsutil.Prettify(s) 6796} 6797 6798// GoString returns the string representation 6799func (s BatchDetectSyntaxInput) GoString() string { 6800 return s.String() 6801} 6802 6803// Validate inspects the fields of the type to determine if they are valid. 6804func (s *BatchDetectSyntaxInput) Validate() error { 6805 invalidParams := request.ErrInvalidParams{Context: "BatchDetectSyntaxInput"} 6806 if s.LanguageCode == nil { 6807 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 6808 } 6809 if s.TextList == nil { 6810 invalidParams.Add(request.NewErrParamRequired("TextList")) 6811 } 6812 6813 if invalidParams.Len() > 0 { 6814 return invalidParams 6815 } 6816 return nil 6817} 6818 6819// SetLanguageCode sets the LanguageCode field's value. 6820func (s *BatchDetectSyntaxInput) SetLanguageCode(v string) *BatchDetectSyntaxInput { 6821 s.LanguageCode = &v 6822 return s 6823} 6824 6825// SetTextList sets the TextList field's value. 6826func (s *BatchDetectSyntaxInput) SetTextList(v []*string) *BatchDetectSyntaxInput { 6827 s.TextList = v 6828 return s 6829} 6830 6831// The result of calling the operation. The operation returns one object that 6832// is successfully processed by the operation. 6833type BatchDetectSyntaxItemResult struct { 6834 _ struct{} `type:"structure"` 6835 6836 // The zero-based index of the document in the input list. 6837 Index *int64 `type:"integer"` 6838 6839 // The syntax tokens for the words in the document, one token for each word. 6840 SyntaxTokens []*SyntaxToken `type:"list"` 6841} 6842 6843// String returns the string representation 6844func (s BatchDetectSyntaxItemResult) String() string { 6845 return awsutil.Prettify(s) 6846} 6847 6848// GoString returns the string representation 6849func (s BatchDetectSyntaxItemResult) GoString() string { 6850 return s.String() 6851} 6852 6853// SetIndex sets the Index field's value. 6854func (s *BatchDetectSyntaxItemResult) SetIndex(v int64) *BatchDetectSyntaxItemResult { 6855 s.Index = &v 6856 return s 6857} 6858 6859// SetSyntaxTokens sets the SyntaxTokens field's value. 6860func (s *BatchDetectSyntaxItemResult) SetSyntaxTokens(v []*SyntaxToken) *BatchDetectSyntaxItemResult { 6861 s.SyntaxTokens = v 6862 return s 6863} 6864 6865type BatchDetectSyntaxOutput struct { 6866 _ struct{} `type:"structure" sensitive:"true"` 6867 6868 // A list containing one object for each document that contained an error. The 6869 // results are sorted in ascending order by the Index field and match the order 6870 // of the documents in the input list. If there are no errors in the batch, 6871 // the ErrorList is empty. 6872 // 6873 // ErrorList is a required field 6874 ErrorList []*BatchItemError `type:"list" required:"true"` 6875 6876 // A list of objects containing the results of the operation. The results are 6877 // sorted in ascending order by the Index field and match the order of the documents 6878 // in the input list. If all of the documents contain an error, the ResultList 6879 // is empty. 6880 // 6881 // ResultList is a required field 6882 ResultList []*BatchDetectSyntaxItemResult `type:"list" required:"true"` 6883} 6884 6885// String returns the string representation 6886func (s BatchDetectSyntaxOutput) String() string { 6887 return awsutil.Prettify(s) 6888} 6889 6890// GoString returns the string representation 6891func (s BatchDetectSyntaxOutput) GoString() string { 6892 return s.String() 6893} 6894 6895// SetErrorList sets the ErrorList field's value. 6896func (s *BatchDetectSyntaxOutput) SetErrorList(v []*BatchItemError) *BatchDetectSyntaxOutput { 6897 s.ErrorList = v 6898 return s 6899} 6900 6901// SetResultList sets the ResultList field's value. 6902func (s *BatchDetectSyntaxOutput) SetResultList(v []*BatchDetectSyntaxItemResult) *BatchDetectSyntaxOutput { 6903 s.ResultList = v 6904 return s 6905} 6906 6907// Describes an error that occurred while processing a document in a batch. 6908// The operation returns on BatchItemError object for each document that contained 6909// an error. 6910type BatchItemError struct { 6911 _ struct{} `type:"structure"` 6912 6913 // The numeric error code of the error. 6914 ErrorCode *string `min:"1" type:"string"` 6915 6916 // A text description of the error. 6917 ErrorMessage *string `min:"1" type:"string"` 6918 6919 // The zero-based index of the document in the input list. 6920 Index *int64 `type:"integer"` 6921} 6922 6923// String returns the string representation 6924func (s BatchItemError) String() string { 6925 return awsutil.Prettify(s) 6926} 6927 6928// GoString returns the string representation 6929func (s BatchItemError) GoString() string { 6930 return s.String() 6931} 6932 6933// SetErrorCode sets the ErrorCode field's value. 6934func (s *BatchItemError) SetErrorCode(v string) *BatchItemError { 6935 s.ErrorCode = &v 6936 return s 6937} 6938 6939// SetErrorMessage sets the ErrorMessage field's value. 6940func (s *BatchItemError) SetErrorMessage(v string) *BatchItemError { 6941 s.ErrorMessage = &v 6942 return s 6943} 6944 6945// SetIndex sets the Index field's value. 6946func (s *BatchItemError) SetIndex(v int64) *BatchItemError { 6947 s.Index = &v 6948 return s 6949} 6950 6951// The number of documents in the request exceeds the limit of 25. Try your 6952// request again with fewer documents. 6953type BatchSizeLimitExceededException struct { 6954 _ struct{} `type:"structure"` 6955 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6956 6957 Message_ *string `locationName:"Message" min:"1" type:"string"` 6958} 6959 6960// String returns the string representation 6961func (s BatchSizeLimitExceededException) String() string { 6962 return awsutil.Prettify(s) 6963} 6964 6965// GoString returns the string representation 6966func (s BatchSizeLimitExceededException) GoString() string { 6967 return s.String() 6968} 6969 6970func newErrorBatchSizeLimitExceededException(v protocol.ResponseMetadata) error { 6971 return &BatchSizeLimitExceededException{ 6972 RespMetadata: v, 6973 } 6974} 6975 6976// Code returns the exception type name. 6977func (s *BatchSizeLimitExceededException) Code() string { 6978 return "BatchSizeLimitExceededException" 6979} 6980 6981// Message returns the exception's message. 6982func (s *BatchSizeLimitExceededException) Message() string { 6983 if s.Message_ != nil { 6984 return *s.Message_ 6985 } 6986 return "" 6987} 6988 6989// OrigErr always returns nil, satisfies awserr.Error interface. 6990func (s *BatchSizeLimitExceededException) OrigErr() error { 6991 return nil 6992} 6993 6994func (s *BatchSizeLimitExceededException) Error() string { 6995 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6996} 6997 6998// Status code returns the HTTP status code for the request's response error. 6999func (s *BatchSizeLimitExceededException) StatusCode() int { 7000 return s.RespMetadata.StatusCode 7001} 7002 7003// RequestID returns the service's response RequestID for request. 7004func (s *BatchSizeLimitExceededException) RequestID() string { 7005 return s.RespMetadata.RequestID 7006} 7007 7008// Describes the result metrics for the test data associated with an documentation 7009// classifier. 7010type ClassifierEvaluationMetrics struct { 7011 _ struct{} `type:"structure"` 7012 7013 // The fraction of the labels that were correct recognized. It is computed by 7014 // dividing the number of labels in the test documents that were correctly recognized 7015 // by the total number of labels in the test documents. 7016 Accuracy *float64 `type:"double"` 7017 7018 // A measure of how accurate the classifier results are for the test data. It 7019 // is derived from the Precision and Recall values. The F1Score is the harmonic 7020 // average of the two scores. The highest score is 1, and the worst score is 7021 // 0. 7022 F1Score *float64 `type:"double"` 7023 7024 // Indicates the fraction of labels that are incorrectly predicted. Also seen 7025 // as the fraction of wrong labels compared to the total number of labels. Scores 7026 // closer to zero are better. 7027 HammingLoss *float64 `type:"double"` 7028 7029 // A measure of how accurate the classifier results are for the test data. It 7030 // is a combination of the Micro Precision and Micro Recall values. The Micro 7031 // F1Score is the harmonic mean of the two scores. The highest score is 1, and 7032 // the worst score is 0. 7033 MicroF1Score *float64 `type:"double"` 7034 7035 // A measure of the usefulness of the recognizer results in the test data. High 7036 // precision means that the recognizer returned substantially more relevant 7037 // results than irrelevant ones. Unlike the Precision metric which comes from 7038 // averaging the precision of all available labels, this is based on the overall 7039 // score of all precision scores added together. 7040 MicroPrecision *float64 `type:"double"` 7041 7042 // A measure of how complete the classifier results are for the test data. High 7043 // recall means that the classifier returned most of the relevant results. Specifically, 7044 // this indicates how many of the correct categories in the text that the model 7045 // can predict. It is a percentage of correct categories in the text that can 7046 // found. Instead of averaging the recall scores of all labels (as with Recall), 7047 // micro Recall is based on the overall score of all recall scores added together. 7048 MicroRecall *float64 `type:"double"` 7049 7050 // A measure of the usefulness of the classifier results in the test data. High 7051 // precision means that the classifier returned substantially more relevant 7052 // results than irrelevant ones. 7053 Precision *float64 `type:"double"` 7054 7055 // A measure of how complete the classifier results are for the test data. High 7056 // recall means that the classifier returned most of the relevant results. 7057 Recall *float64 `type:"double"` 7058} 7059 7060// String returns the string representation 7061func (s ClassifierEvaluationMetrics) String() string { 7062 return awsutil.Prettify(s) 7063} 7064 7065// GoString returns the string representation 7066func (s ClassifierEvaluationMetrics) GoString() string { 7067 return s.String() 7068} 7069 7070// SetAccuracy sets the Accuracy field's value. 7071func (s *ClassifierEvaluationMetrics) SetAccuracy(v float64) *ClassifierEvaluationMetrics { 7072 s.Accuracy = &v 7073 return s 7074} 7075 7076// SetF1Score sets the F1Score field's value. 7077func (s *ClassifierEvaluationMetrics) SetF1Score(v float64) *ClassifierEvaluationMetrics { 7078 s.F1Score = &v 7079 return s 7080} 7081 7082// SetHammingLoss sets the HammingLoss field's value. 7083func (s *ClassifierEvaluationMetrics) SetHammingLoss(v float64) *ClassifierEvaluationMetrics { 7084 s.HammingLoss = &v 7085 return s 7086} 7087 7088// SetMicroF1Score sets the MicroF1Score field's value. 7089func (s *ClassifierEvaluationMetrics) SetMicroF1Score(v float64) *ClassifierEvaluationMetrics { 7090 s.MicroF1Score = &v 7091 return s 7092} 7093 7094// SetMicroPrecision sets the MicroPrecision field's value. 7095func (s *ClassifierEvaluationMetrics) SetMicroPrecision(v float64) *ClassifierEvaluationMetrics { 7096 s.MicroPrecision = &v 7097 return s 7098} 7099 7100// SetMicroRecall sets the MicroRecall field's value. 7101func (s *ClassifierEvaluationMetrics) SetMicroRecall(v float64) *ClassifierEvaluationMetrics { 7102 s.MicroRecall = &v 7103 return s 7104} 7105 7106// SetPrecision sets the Precision field's value. 7107func (s *ClassifierEvaluationMetrics) SetPrecision(v float64) *ClassifierEvaluationMetrics { 7108 s.Precision = &v 7109 return s 7110} 7111 7112// SetRecall sets the Recall field's value. 7113func (s *ClassifierEvaluationMetrics) SetRecall(v float64) *ClassifierEvaluationMetrics { 7114 s.Recall = &v 7115 return s 7116} 7117 7118// Provides information about a document classifier. 7119type ClassifierMetadata struct { 7120 _ struct{} `type:"structure" sensitive:"true"` 7121 7122 // Describes the result metrics for the test data associated with an documentation 7123 // classifier. 7124 EvaluationMetrics *ClassifierEvaluationMetrics `type:"structure"` 7125 7126 // The number of labels in the input data. 7127 NumberOfLabels *int64 `type:"integer"` 7128 7129 // The number of documents in the input data that were used to test the classifier. 7130 // Typically this is 10 to 20 percent of the input documents, up to 10,000 documents. 7131 NumberOfTestDocuments *int64 `type:"integer"` 7132 7133 // The number of documents in the input data that were used to train the classifier. 7134 // Typically this is 80 to 90 percent of the input documents. 7135 NumberOfTrainedDocuments *int64 `type:"integer"` 7136} 7137 7138// String returns the string representation 7139func (s ClassifierMetadata) String() string { 7140 return awsutil.Prettify(s) 7141} 7142 7143// GoString returns the string representation 7144func (s ClassifierMetadata) GoString() string { 7145 return s.String() 7146} 7147 7148// SetEvaluationMetrics sets the EvaluationMetrics field's value. 7149func (s *ClassifierMetadata) SetEvaluationMetrics(v *ClassifierEvaluationMetrics) *ClassifierMetadata { 7150 s.EvaluationMetrics = v 7151 return s 7152} 7153 7154// SetNumberOfLabels sets the NumberOfLabels field's value. 7155func (s *ClassifierMetadata) SetNumberOfLabels(v int64) *ClassifierMetadata { 7156 s.NumberOfLabels = &v 7157 return s 7158} 7159 7160// SetNumberOfTestDocuments sets the NumberOfTestDocuments field's value. 7161func (s *ClassifierMetadata) SetNumberOfTestDocuments(v int64) *ClassifierMetadata { 7162 s.NumberOfTestDocuments = &v 7163 return s 7164} 7165 7166// SetNumberOfTrainedDocuments sets the NumberOfTrainedDocuments field's value. 7167func (s *ClassifierMetadata) SetNumberOfTrainedDocuments(v int64) *ClassifierMetadata { 7168 s.NumberOfTrainedDocuments = &v 7169 return s 7170} 7171 7172type ClassifyDocumentInput struct { 7173 _ struct{} `type:"structure"` 7174 7175 // The Amazon Resource Number (ARN) of the endpoint. 7176 // 7177 // EndpointArn is a required field 7178 EndpointArn *string `type:"string" required:"true"` 7179 7180 // The document text to be analyzed. 7181 // 7182 // Text is a required field 7183 Text *string `min:"1" type:"string" required:"true" sensitive:"true"` 7184} 7185 7186// String returns the string representation 7187func (s ClassifyDocumentInput) String() string { 7188 return awsutil.Prettify(s) 7189} 7190 7191// GoString returns the string representation 7192func (s ClassifyDocumentInput) GoString() string { 7193 return s.String() 7194} 7195 7196// Validate inspects the fields of the type to determine if they are valid. 7197func (s *ClassifyDocumentInput) Validate() error { 7198 invalidParams := request.ErrInvalidParams{Context: "ClassifyDocumentInput"} 7199 if s.EndpointArn == nil { 7200 invalidParams.Add(request.NewErrParamRequired("EndpointArn")) 7201 } 7202 if s.Text == nil { 7203 invalidParams.Add(request.NewErrParamRequired("Text")) 7204 } 7205 if s.Text != nil && len(*s.Text) < 1 { 7206 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 7207 } 7208 7209 if invalidParams.Len() > 0 { 7210 return invalidParams 7211 } 7212 return nil 7213} 7214 7215// SetEndpointArn sets the EndpointArn field's value. 7216func (s *ClassifyDocumentInput) SetEndpointArn(v string) *ClassifyDocumentInput { 7217 s.EndpointArn = &v 7218 return s 7219} 7220 7221// SetText sets the Text field's value. 7222func (s *ClassifyDocumentInput) SetText(v string) *ClassifyDocumentInput { 7223 s.Text = &v 7224 return s 7225} 7226 7227type ClassifyDocumentOutput struct { 7228 _ struct{} `type:"structure" sensitive:"true"` 7229 7230 // The classes used by the document being analyzed. These are used for multi-class 7231 // trained models. Individual classes are mutually exclusive and each document 7232 // is expected to have only a single class assigned to it. For example, an animal 7233 // can be a dog or a cat, but not both at the same time. 7234 Classes []*DocumentClass `type:"list"` 7235 7236 // The labels used the document being analyzed. These are used for multi-label 7237 // trained models. Individual labels represent different categories that are 7238 // related in some manner and are not mutually exclusive. For example, a movie 7239 // can be just an action movie, or it can be an action movie, a science fiction 7240 // movie, and a comedy, all at the same time. 7241 Labels []*DocumentLabel `type:"list"` 7242} 7243 7244// String returns the string representation 7245func (s ClassifyDocumentOutput) String() string { 7246 return awsutil.Prettify(s) 7247} 7248 7249// GoString returns the string representation 7250func (s ClassifyDocumentOutput) GoString() string { 7251 return s.String() 7252} 7253 7254// SetClasses sets the Classes field's value. 7255func (s *ClassifyDocumentOutput) SetClasses(v []*DocumentClass) *ClassifyDocumentOutput { 7256 s.Classes = v 7257 return s 7258} 7259 7260// SetLabels sets the Labels field's value. 7261func (s *ClassifyDocumentOutput) SetLabels(v []*DocumentLabel) *ClassifyDocumentOutput { 7262 s.Labels = v 7263 return s 7264} 7265 7266// Concurrent modification of the tags associated with an Amazon Comprehend 7267// resource is not supported. 7268type ConcurrentModificationException struct { 7269 _ struct{} `type:"structure"` 7270 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7271 7272 Message_ *string `locationName:"Message" min:"1" type:"string"` 7273} 7274 7275// String returns the string representation 7276func (s ConcurrentModificationException) String() string { 7277 return awsutil.Prettify(s) 7278} 7279 7280// GoString returns the string representation 7281func (s ConcurrentModificationException) GoString() string { 7282 return s.String() 7283} 7284 7285func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { 7286 return &ConcurrentModificationException{ 7287 RespMetadata: v, 7288 } 7289} 7290 7291// Code returns the exception type name. 7292func (s *ConcurrentModificationException) Code() string { 7293 return "ConcurrentModificationException" 7294} 7295 7296// Message returns the exception's message. 7297func (s *ConcurrentModificationException) Message() string { 7298 if s.Message_ != nil { 7299 return *s.Message_ 7300 } 7301 return "" 7302} 7303 7304// OrigErr always returns nil, satisfies awserr.Error interface. 7305func (s *ConcurrentModificationException) OrigErr() error { 7306 return nil 7307} 7308 7309func (s *ConcurrentModificationException) Error() string { 7310 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7311} 7312 7313// Status code returns the HTTP status code for the request's response error. 7314func (s *ConcurrentModificationException) StatusCode() int { 7315 return s.RespMetadata.StatusCode 7316} 7317 7318// RequestID returns the service's response RequestID for request. 7319func (s *ConcurrentModificationException) RequestID() string { 7320 return s.RespMetadata.RequestID 7321} 7322 7323type ContainsPiiEntitiesInput struct { 7324 _ struct{} `type:"structure"` 7325 7326 // The language of the input documents. 7327 // 7328 // LanguageCode is a required field 7329 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 7330 7331 // Creates a new document classification request to analyze a single document 7332 // in real-time, returning personally identifiable information (PII) entity 7333 // labels. 7334 // 7335 // Text is a required field 7336 Text *string `min:"1" type:"string" required:"true"` 7337} 7338 7339// String returns the string representation 7340func (s ContainsPiiEntitiesInput) String() string { 7341 return awsutil.Prettify(s) 7342} 7343 7344// GoString returns the string representation 7345func (s ContainsPiiEntitiesInput) GoString() string { 7346 return s.String() 7347} 7348 7349// Validate inspects the fields of the type to determine if they are valid. 7350func (s *ContainsPiiEntitiesInput) Validate() error { 7351 invalidParams := request.ErrInvalidParams{Context: "ContainsPiiEntitiesInput"} 7352 if s.LanguageCode == nil { 7353 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 7354 } 7355 if s.Text == nil { 7356 invalidParams.Add(request.NewErrParamRequired("Text")) 7357 } 7358 if s.Text != nil && len(*s.Text) < 1 { 7359 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 7360 } 7361 7362 if invalidParams.Len() > 0 { 7363 return invalidParams 7364 } 7365 return nil 7366} 7367 7368// SetLanguageCode sets the LanguageCode field's value. 7369func (s *ContainsPiiEntitiesInput) SetLanguageCode(v string) *ContainsPiiEntitiesInput { 7370 s.LanguageCode = &v 7371 return s 7372} 7373 7374// SetText sets the Text field's value. 7375func (s *ContainsPiiEntitiesInput) SetText(v string) *ContainsPiiEntitiesInput { 7376 s.Text = &v 7377 return s 7378} 7379 7380type ContainsPiiEntitiesOutput struct { 7381 _ struct{} `type:"structure"` 7382 7383 // The labels used in the document being analyzed. Individual labels represent 7384 // personally identifiable information (PII) entity types. 7385 Labels []*EntityLabel `type:"list"` 7386} 7387 7388// String returns the string representation 7389func (s ContainsPiiEntitiesOutput) String() string { 7390 return awsutil.Prettify(s) 7391} 7392 7393// GoString returns the string representation 7394func (s ContainsPiiEntitiesOutput) GoString() string { 7395 return s.String() 7396} 7397 7398// SetLabels sets the Labels field's value. 7399func (s *ContainsPiiEntitiesOutput) SetLabels(v []*EntityLabel) *ContainsPiiEntitiesOutput { 7400 s.Labels = v 7401 return s 7402} 7403 7404type CreateDocumentClassifierInput struct { 7405 _ struct{} `type:"structure"` 7406 7407 // A unique identifier for the request. If you don't set the client request 7408 // token, Amazon Comprehend generates one. 7409 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 7410 7411 // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role 7412 // that grants Amazon Comprehend read access to your input data. 7413 // 7414 // DataAccessRoleArn is a required field 7415 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 7416 7417 // The name of the document classifier. 7418 // 7419 // DocumentClassifierName is a required field 7420 DocumentClassifierName *string `type:"string" required:"true"` 7421 7422 // Specifies the format and location of the input data for the job. 7423 // 7424 // InputDataConfig is a required field 7425 InputDataConfig *DocumentClassifierInputDataConfig `type:"structure" required:"true"` 7426 7427 // The language of the input documents. You can specify any of the following 7428 // languages supported by Amazon Comprehend: German ("de"), English ("en"), 7429 // Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All 7430 // documents must be in the same language. 7431 // 7432 // LanguageCode is a required field 7433 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 7434 7435 // Indicates the mode in which the classifier will be trained. The classifier 7436 // can be trained in multi-class mode, which identifies one and only one class 7437 // for each document, or multi-label mode, which identifies one or more labels 7438 // for each document. In multi-label mode, multiple labels for an individual 7439 // document are separated by a delimiter. The default delimiter between labels 7440 // is a pipe (|). 7441 Mode *string `type:"string" enum:"DocumentClassifierMode"` 7442 7443 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 7444 // to encrypt trained custom models. The ModelKmsKeyId can be either of the 7445 // following formats: 7446 // 7447 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 7448 // 7449 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 7450 ModelKmsKeyId *string `type:"string"` 7451 7452 // Enables the addition of output results configuration parameters for custom 7453 // classifier jobs. 7454 OutputDataConfig *DocumentClassifierOutputDataConfig `type:"structure"` 7455 7456 // Tags to be associated with the document classifier being created. A tag is 7457 // a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. 7458 // For example, a tag with "Sales" as the key might be added to a resource to 7459 // indicate its use by the sales department. 7460 Tags []*Tag `type:"list"` 7461 7462 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 7463 // to encrypt data on the storage volume attached to the ML compute instance(s) 7464 // that process the analysis job. The VolumeKmsKeyId can be either of the following 7465 // formats: 7466 // 7467 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 7468 // 7469 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 7470 VolumeKmsKeyId *string `type:"string"` 7471 7472 // Configuration parameters for an optional private Virtual Private Cloud (VPC) 7473 // containing the resources you are using for your custom classifier. For more 7474 // information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 7475 VpcConfig *VpcConfig `type:"structure"` 7476} 7477 7478// String returns the string representation 7479func (s CreateDocumentClassifierInput) String() string { 7480 return awsutil.Prettify(s) 7481} 7482 7483// GoString returns the string representation 7484func (s CreateDocumentClassifierInput) GoString() string { 7485 return s.String() 7486} 7487 7488// Validate inspects the fields of the type to determine if they are valid. 7489func (s *CreateDocumentClassifierInput) Validate() error { 7490 invalidParams := request.ErrInvalidParams{Context: "CreateDocumentClassifierInput"} 7491 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 7492 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 7493 } 7494 if s.DataAccessRoleArn == nil { 7495 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 7496 } 7497 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 7498 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 7499 } 7500 if s.DocumentClassifierName == nil { 7501 invalidParams.Add(request.NewErrParamRequired("DocumentClassifierName")) 7502 } 7503 if s.InputDataConfig == nil { 7504 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 7505 } 7506 if s.LanguageCode == nil { 7507 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 7508 } 7509 if s.InputDataConfig != nil { 7510 if err := s.InputDataConfig.Validate(); err != nil { 7511 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 7512 } 7513 } 7514 if s.Tags != nil { 7515 for i, v := range s.Tags { 7516 if v == nil { 7517 continue 7518 } 7519 if err := v.Validate(); err != nil { 7520 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 7521 } 7522 } 7523 } 7524 if s.VpcConfig != nil { 7525 if err := s.VpcConfig.Validate(); err != nil { 7526 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 7527 } 7528 } 7529 7530 if invalidParams.Len() > 0 { 7531 return invalidParams 7532 } 7533 return nil 7534} 7535 7536// SetClientRequestToken sets the ClientRequestToken field's value. 7537func (s *CreateDocumentClassifierInput) SetClientRequestToken(v string) *CreateDocumentClassifierInput { 7538 s.ClientRequestToken = &v 7539 return s 7540} 7541 7542// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 7543func (s *CreateDocumentClassifierInput) SetDataAccessRoleArn(v string) *CreateDocumentClassifierInput { 7544 s.DataAccessRoleArn = &v 7545 return s 7546} 7547 7548// SetDocumentClassifierName sets the DocumentClassifierName field's value. 7549func (s *CreateDocumentClassifierInput) SetDocumentClassifierName(v string) *CreateDocumentClassifierInput { 7550 s.DocumentClassifierName = &v 7551 return s 7552} 7553 7554// SetInputDataConfig sets the InputDataConfig field's value. 7555func (s *CreateDocumentClassifierInput) SetInputDataConfig(v *DocumentClassifierInputDataConfig) *CreateDocumentClassifierInput { 7556 s.InputDataConfig = v 7557 return s 7558} 7559 7560// SetLanguageCode sets the LanguageCode field's value. 7561func (s *CreateDocumentClassifierInput) SetLanguageCode(v string) *CreateDocumentClassifierInput { 7562 s.LanguageCode = &v 7563 return s 7564} 7565 7566// SetMode sets the Mode field's value. 7567func (s *CreateDocumentClassifierInput) SetMode(v string) *CreateDocumentClassifierInput { 7568 s.Mode = &v 7569 return s 7570} 7571 7572// SetModelKmsKeyId sets the ModelKmsKeyId field's value. 7573func (s *CreateDocumentClassifierInput) SetModelKmsKeyId(v string) *CreateDocumentClassifierInput { 7574 s.ModelKmsKeyId = &v 7575 return s 7576} 7577 7578// SetOutputDataConfig sets the OutputDataConfig field's value. 7579func (s *CreateDocumentClassifierInput) SetOutputDataConfig(v *DocumentClassifierOutputDataConfig) *CreateDocumentClassifierInput { 7580 s.OutputDataConfig = v 7581 return s 7582} 7583 7584// SetTags sets the Tags field's value. 7585func (s *CreateDocumentClassifierInput) SetTags(v []*Tag) *CreateDocumentClassifierInput { 7586 s.Tags = v 7587 return s 7588} 7589 7590// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 7591func (s *CreateDocumentClassifierInput) SetVolumeKmsKeyId(v string) *CreateDocumentClassifierInput { 7592 s.VolumeKmsKeyId = &v 7593 return s 7594} 7595 7596// SetVpcConfig sets the VpcConfig field's value. 7597func (s *CreateDocumentClassifierInput) SetVpcConfig(v *VpcConfig) *CreateDocumentClassifierInput { 7598 s.VpcConfig = v 7599 return s 7600} 7601 7602type CreateDocumentClassifierOutput struct { 7603 _ struct{} `type:"structure"` 7604 7605 // The Amazon Resource Name (ARN) that identifies the document classifier. 7606 DocumentClassifierArn *string `type:"string"` 7607} 7608 7609// String returns the string representation 7610func (s CreateDocumentClassifierOutput) String() string { 7611 return awsutil.Prettify(s) 7612} 7613 7614// GoString returns the string representation 7615func (s CreateDocumentClassifierOutput) GoString() string { 7616 return s.String() 7617} 7618 7619// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. 7620func (s *CreateDocumentClassifierOutput) SetDocumentClassifierArn(v string) *CreateDocumentClassifierOutput { 7621 s.DocumentClassifierArn = &v 7622 return s 7623} 7624 7625type CreateEndpointInput struct { 7626 _ struct{} `type:"structure"` 7627 7628 // An idempotency token provided by the customer. If this token matches a previous 7629 // endpoint creation request, Amazon Comprehend will not return a ResourceInUseException. 7630 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 7631 7632 // The Amazon Resource Name (ARN) of the AWS identity and Access Management 7633 // (IAM) role that grants Amazon Comprehend read access to trained custom models 7634 // encrypted with a customer managed key (ModelKmsKeyId). 7635 DataAccessRoleArn *string `min:"20" type:"string"` 7636 7637 // The desired number of inference units to be used by the model using this 7638 // endpoint. Each inference unit represents of a throughput of 100 characters 7639 // per second. 7640 // 7641 // DesiredInferenceUnits is a required field 7642 DesiredInferenceUnits *int64 `min:"1" type:"integer" required:"true"` 7643 7644 // This is the descriptive suffix that becomes part of the EndpointArn used 7645 // for all subsequent requests to this resource. 7646 // 7647 // EndpointName is a required field 7648 EndpointName *string `type:"string" required:"true"` 7649 7650 // The Amazon Resource Number (ARN) of the model to which the endpoint will 7651 // be attached. 7652 // 7653 // ModelArn is a required field 7654 ModelArn *string `type:"string" required:"true"` 7655 7656 // Tags associated with the endpoint being created. A tag is a key-value pair 7657 // that adds metadata to the endpoint. For example, a tag with "Sales" as the 7658 // key might be added to an endpoint to indicate its use by the sales department. 7659 Tags []*Tag `type:"list"` 7660} 7661 7662// String returns the string representation 7663func (s CreateEndpointInput) String() string { 7664 return awsutil.Prettify(s) 7665} 7666 7667// GoString returns the string representation 7668func (s CreateEndpointInput) GoString() string { 7669 return s.String() 7670} 7671 7672// Validate inspects the fields of the type to determine if they are valid. 7673func (s *CreateEndpointInput) Validate() error { 7674 invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"} 7675 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 7676 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 7677 } 7678 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 7679 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 7680 } 7681 if s.DesiredInferenceUnits == nil { 7682 invalidParams.Add(request.NewErrParamRequired("DesiredInferenceUnits")) 7683 } 7684 if s.DesiredInferenceUnits != nil && *s.DesiredInferenceUnits < 1 { 7685 invalidParams.Add(request.NewErrParamMinValue("DesiredInferenceUnits", 1)) 7686 } 7687 if s.EndpointName == nil { 7688 invalidParams.Add(request.NewErrParamRequired("EndpointName")) 7689 } 7690 if s.ModelArn == nil { 7691 invalidParams.Add(request.NewErrParamRequired("ModelArn")) 7692 } 7693 if s.Tags != nil { 7694 for i, v := range s.Tags { 7695 if v == nil { 7696 continue 7697 } 7698 if err := v.Validate(); err != nil { 7699 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 7700 } 7701 } 7702 } 7703 7704 if invalidParams.Len() > 0 { 7705 return invalidParams 7706 } 7707 return nil 7708} 7709 7710// SetClientRequestToken sets the ClientRequestToken field's value. 7711func (s *CreateEndpointInput) SetClientRequestToken(v string) *CreateEndpointInput { 7712 s.ClientRequestToken = &v 7713 return s 7714} 7715 7716// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 7717func (s *CreateEndpointInput) SetDataAccessRoleArn(v string) *CreateEndpointInput { 7718 s.DataAccessRoleArn = &v 7719 return s 7720} 7721 7722// SetDesiredInferenceUnits sets the DesiredInferenceUnits field's value. 7723func (s *CreateEndpointInput) SetDesiredInferenceUnits(v int64) *CreateEndpointInput { 7724 s.DesiredInferenceUnits = &v 7725 return s 7726} 7727 7728// SetEndpointName sets the EndpointName field's value. 7729func (s *CreateEndpointInput) SetEndpointName(v string) *CreateEndpointInput { 7730 s.EndpointName = &v 7731 return s 7732} 7733 7734// SetModelArn sets the ModelArn field's value. 7735func (s *CreateEndpointInput) SetModelArn(v string) *CreateEndpointInput { 7736 s.ModelArn = &v 7737 return s 7738} 7739 7740// SetTags sets the Tags field's value. 7741func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput { 7742 s.Tags = v 7743 return s 7744} 7745 7746type CreateEndpointOutput struct { 7747 _ struct{} `type:"structure"` 7748 7749 // The Amazon Resource Number (ARN) of the endpoint being created. 7750 EndpointArn *string `type:"string"` 7751} 7752 7753// String returns the string representation 7754func (s CreateEndpointOutput) String() string { 7755 return awsutil.Prettify(s) 7756} 7757 7758// GoString returns the string representation 7759func (s CreateEndpointOutput) GoString() string { 7760 return s.String() 7761} 7762 7763// SetEndpointArn sets the EndpointArn field's value. 7764func (s *CreateEndpointOutput) SetEndpointArn(v string) *CreateEndpointOutput { 7765 s.EndpointArn = &v 7766 return s 7767} 7768 7769type CreateEntityRecognizerInput struct { 7770 _ struct{} `type:"structure"` 7771 7772 // A unique identifier for the request. If you don't set the client request 7773 // token, Amazon Comprehend generates one. 7774 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 7775 7776 // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role 7777 // that grants Amazon Comprehend read access to your input data. 7778 // 7779 // DataAccessRoleArn is a required field 7780 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 7781 7782 // Specifies the format and location of the input data. The S3 bucket containing 7783 // the input data must be located in the same region as the entity recognizer 7784 // being created. 7785 // 7786 // InputDataConfig is a required field 7787 InputDataConfig *EntityRecognizerInputDataConfig `type:"structure" required:"true"` 7788 7789 // You can specify any of the following languages supported by Amazon Comprehend: 7790 // English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), German ("de"), 7791 // or Portuguese ("pt"). All documents must be in the same language. 7792 // 7793 // LanguageCode is a required field 7794 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 7795 7796 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 7797 // to encrypt trained custom models. The ModelKmsKeyId can be either of the 7798 // following formats 7799 // 7800 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 7801 // 7802 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 7803 ModelKmsKeyId *string `type:"string"` 7804 7805 // The name given to the newly created recognizer. Recognizer names can be a 7806 // maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores 7807 // (_) are allowed. The name must be unique in the account/region. 7808 // 7809 // RecognizerName is a required field 7810 RecognizerName *string `type:"string" required:"true"` 7811 7812 // Tags to be associated with the entity recognizer being created. A tag is 7813 // a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. 7814 // For example, a tag with "Sales" as the key might be added to a resource to 7815 // indicate its use by the sales department. 7816 Tags []*Tag `type:"list"` 7817 7818 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 7819 // to encrypt data on the storage volume attached to the ML compute instance(s) 7820 // that process the analysis job. The VolumeKmsKeyId can be either of the following 7821 // formats: 7822 // 7823 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 7824 // 7825 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 7826 VolumeKmsKeyId *string `type:"string"` 7827 7828 // Configuration parameters for an optional private Virtual Private Cloud (VPC) 7829 // containing the resources you are using for your custom entity recognizer. 7830 // For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 7831 VpcConfig *VpcConfig `type:"structure"` 7832} 7833 7834// String returns the string representation 7835func (s CreateEntityRecognizerInput) String() string { 7836 return awsutil.Prettify(s) 7837} 7838 7839// GoString returns the string representation 7840func (s CreateEntityRecognizerInput) GoString() string { 7841 return s.String() 7842} 7843 7844// Validate inspects the fields of the type to determine if they are valid. 7845func (s *CreateEntityRecognizerInput) Validate() error { 7846 invalidParams := request.ErrInvalidParams{Context: "CreateEntityRecognizerInput"} 7847 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 7848 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 7849 } 7850 if s.DataAccessRoleArn == nil { 7851 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 7852 } 7853 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 7854 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 7855 } 7856 if s.InputDataConfig == nil { 7857 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 7858 } 7859 if s.LanguageCode == nil { 7860 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 7861 } 7862 if s.RecognizerName == nil { 7863 invalidParams.Add(request.NewErrParamRequired("RecognizerName")) 7864 } 7865 if s.InputDataConfig != nil { 7866 if err := s.InputDataConfig.Validate(); err != nil { 7867 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 7868 } 7869 } 7870 if s.Tags != nil { 7871 for i, v := range s.Tags { 7872 if v == nil { 7873 continue 7874 } 7875 if err := v.Validate(); err != nil { 7876 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 7877 } 7878 } 7879 } 7880 if s.VpcConfig != nil { 7881 if err := s.VpcConfig.Validate(); err != nil { 7882 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 7883 } 7884 } 7885 7886 if invalidParams.Len() > 0 { 7887 return invalidParams 7888 } 7889 return nil 7890} 7891 7892// SetClientRequestToken sets the ClientRequestToken field's value. 7893func (s *CreateEntityRecognizerInput) SetClientRequestToken(v string) *CreateEntityRecognizerInput { 7894 s.ClientRequestToken = &v 7895 return s 7896} 7897 7898// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 7899func (s *CreateEntityRecognizerInput) SetDataAccessRoleArn(v string) *CreateEntityRecognizerInput { 7900 s.DataAccessRoleArn = &v 7901 return s 7902} 7903 7904// SetInputDataConfig sets the InputDataConfig field's value. 7905func (s *CreateEntityRecognizerInput) SetInputDataConfig(v *EntityRecognizerInputDataConfig) *CreateEntityRecognizerInput { 7906 s.InputDataConfig = v 7907 return s 7908} 7909 7910// SetLanguageCode sets the LanguageCode field's value. 7911func (s *CreateEntityRecognizerInput) SetLanguageCode(v string) *CreateEntityRecognizerInput { 7912 s.LanguageCode = &v 7913 return s 7914} 7915 7916// SetModelKmsKeyId sets the ModelKmsKeyId field's value. 7917func (s *CreateEntityRecognizerInput) SetModelKmsKeyId(v string) *CreateEntityRecognizerInput { 7918 s.ModelKmsKeyId = &v 7919 return s 7920} 7921 7922// SetRecognizerName sets the RecognizerName field's value. 7923func (s *CreateEntityRecognizerInput) SetRecognizerName(v string) *CreateEntityRecognizerInput { 7924 s.RecognizerName = &v 7925 return s 7926} 7927 7928// SetTags sets the Tags field's value. 7929func (s *CreateEntityRecognizerInput) SetTags(v []*Tag) *CreateEntityRecognizerInput { 7930 s.Tags = v 7931 return s 7932} 7933 7934// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 7935func (s *CreateEntityRecognizerInput) SetVolumeKmsKeyId(v string) *CreateEntityRecognizerInput { 7936 s.VolumeKmsKeyId = &v 7937 return s 7938} 7939 7940// SetVpcConfig sets the VpcConfig field's value. 7941func (s *CreateEntityRecognizerInput) SetVpcConfig(v *VpcConfig) *CreateEntityRecognizerInput { 7942 s.VpcConfig = v 7943 return s 7944} 7945 7946type CreateEntityRecognizerOutput struct { 7947 _ struct{} `type:"structure"` 7948 7949 // The Amazon Resource Name (ARN) that identifies the entity recognizer. 7950 EntityRecognizerArn *string `type:"string"` 7951} 7952 7953// String returns the string representation 7954func (s CreateEntityRecognizerOutput) String() string { 7955 return awsutil.Prettify(s) 7956} 7957 7958// GoString returns the string representation 7959func (s CreateEntityRecognizerOutput) GoString() string { 7960 return s.String() 7961} 7962 7963// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. 7964func (s *CreateEntityRecognizerOutput) SetEntityRecognizerArn(v string) *CreateEntityRecognizerOutput { 7965 s.EntityRecognizerArn = &v 7966 return s 7967} 7968 7969type DeleteDocumentClassifierInput struct { 7970 _ struct{} `type:"structure"` 7971 7972 // The Amazon Resource Name (ARN) that identifies the document classifier. 7973 // 7974 // DocumentClassifierArn is a required field 7975 DocumentClassifierArn *string `type:"string" required:"true"` 7976} 7977 7978// String returns the string representation 7979func (s DeleteDocumentClassifierInput) String() string { 7980 return awsutil.Prettify(s) 7981} 7982 7983// GoString returns the string representation 7984func (s DeleteDocumentClassifierInput) GoString() string { 7985 return s.String() 7986} 7987 7988// Validate inspects the fields of the type to determine if they are valid. 7989func (s *DeleteDocumentClassifierInput) Validate() error { 7990 invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentClassifierInput"} 7991 if s.DocumentClassifierArn == nil { 7992 invalidParams.Add(request.NewErrParamRequired("DocumentClassifierArn")) 7993 } 7994 7995 if invalidParams.Len() > 0 { 7996 return invalidParams 7997 } 7998 return nil 7999} 8000 8001// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. 8002func (s *DeleteDocumentClassifierInput) SetDocumentClassifierArn(v string) *DeleteDocumentClassifierInput { 8003 s.DocumentClassifierArn = &v 8004 return s 8005} 8006 8007type DeleteDocumentClassifierOutput struct { 8008 _ struct{} `type:"structure"` 8009} 8010 8011// String returns the string representation 8012func (s DeleteDocumentClassifierOutput) String() string { 8013 return awsutil.Prettify(s) 8014} 8015 8016// GoString returns the string representation 8017func (s DeleteDocumentClassifierOutput) GoString() string { 8018 return s.String() 8019} 8020 8021type DeleteEndpointInput struct { 8022 _ struct{} `type:"structure"` 8023 8024 // The Amazon Resource Number (ARN) of the endpoint being deleted. 8025 // 8026 // EndpointArn is a required field 8027 EndpointArn *string `type:"string" required:"true"` 8028} 8029 8030// String returns the string representation 8031func (s DeleteEndpointInput) String() string { 8032 return awsutil.Prettify(s) 8033} 8034 8035// GoString returns the string representation 8036func (s DeleteEndpointInput) GoString() string { 8037 return s.String() 8038} 8039 8040// Validate inspects the fields of the type to determine if they are valid. 8041func (s *DeleteEndpointInput) Validate() error { 8042 invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} 8043 if s.EndpointArn == nil { 8044 invalidParams.Add(request.NewErrParamRequired("EndpointArn")) 8045 } 8046 8047 if invalidParams.Len() > 0 { 8048 return invalidParams 8049 } 8050 return nil 8051} 8052 8053// SetEndpointArn sets the EndpointArn field's value. 8054func (s *DeleteEndpointInput) SetEndpointArn(v string) *DeleteEndpointInput { 8055 s.EndpointArn = &v 8056 return s 8057} 8058 8059type DeleteEndpointOutput struct { 8060 _ struct{} `type:"structure"` 8061} 8062 8063// String returns the string representation 8064func (s DeleteEndpointOutput) String() string { 8065 return awsutil.Prettify(s) 8066} 8067 8068// GoString returns the string representation 8069func (s DeleteEndpointOutput) GoString() string { 8070 return s.String() 8071} 8072 8073type DeleteEntityRecognizerInput struct { 8074 _ struct{} `type:"structure"` 8075 8076 // The Amazon Resource Name (ARN) that identifies the entity recognizer. 8077 // 8078 // EntityRecognizerArn is a required field 8079 EntityRecognizerArn *string `type:"string" required:"true"` 8080} 8081 8082// String returns the string representation 8083func (s DeleteEntityRecognizerInput) String() string { 8084 return awsutil.Prettify(s) 8085} 8086 8087// GoString returns the string representation 8088func (s DeleteEntityRecognizerInput) GoString() string { 8089 return s.String() 8090} 8091 8092// Validate inspects the fields of the type to determine if they are valid. 8093func (s *DeleteEntityRecognizerInput) Validate() error { 8094 invalidParams := request.ErrInvalidParams{Context: "DeleteEntityRecognizerInput"} 8095 if s.EntityRecognizerArn == nil { 8096 invalidParams.Add(request.NewErrParamRequired("EntityRecognizerArn")) 8097 } 8098 8099 if invalidParams.Len() > 0 { 8100 return invalidParams 8101 } 8102 return nil 8103} 8104 8105// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. 8106func (s *DeleteEntityRecognizerInput) SetEntityRecognizerArn(v string) *DeleteEntityRecognizerInput { 8107 s.EntityRecognizerArn = &v 8108 return s 8109} 8110 8111type DeleteEntityRecognizerOutput struct { 8112 _ struct{} `type:"structure"` 8113} 8114 8115// String returns the string representation 8116func (s DeleteEntityRecognizerOutput) String() string { 8117 return awsutil.Prettify(s) 8118} 8119 8120// GoString returns the string representation 8121func (s DeleteEntityRecognizerOutput) GoString() string { 8122 return s.String() 8123} 8124 8125type DescribeDocumentClassificationJobInput struct { 8126 _ struct{} `type:"structure"` 8127 8128 // The identifier that Amazon Comprehend generated for the job. The operation 8129 // returns this identifier in its response. 8130 // 8131 // JobId is a required field 8132 JobId *string `min:"1" type:"string" required:"true"` 8133} 8134 8135// String returns the string representation 8136func (s DescribeDocumentClassificationJobInput) String() string { 8137 return awsutil.Prettify(s) 8138} 8139 8140// GoString returns the string representation 8141func (s DescribeDocumentClassificationJobInput) GoString() string { 8142 return s.String() 8143} 8144 8145// Validate inspects the fields of the type to determine if they are valid. 8146func (s *DescribeDocumentClassificationJobInput) Validate() error { 8147 invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentClassificationJobInput"} 8148 if s.JobId == nil { 8149 invalidParams.Add(request.NewErrParamRequired("JobId")) 8150 } 8151 if s.JobId != nil && len(*s.JobId) < 1 { 8152 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8153 } 8154 8155 if invalidParams.Len() > 0 { 8156 return invalidParams 8157 } 8158 return nil 8159} 8160 8161// SetJobId sets the JobId field's value. 8162func (s *DescribeDocumentClassificationJobInput) SetJobId(v string) *DescribeDocumentClassificationJobInput { 8163 s.JobId = &v 8164 return s 8165} 8166 8167type DescribeDocumentClassificationJobOutput struct { 8168 _ struct{} `type:"structure"` 8169 8170 // An object that describes the properties associated with the document classification 8171 // job. 8172 DocumentClassificationJobProperties *DocumentClassificationJobProperties `type:"structure"` 8173} 8174 8175// String returns the string representation 8176func (s DescribeDocumentClassificationJobOutput) String() string { 8177 return awsutil.Prettify(s) 8178} 8179 8180// GoString returns the string representation 8181func (s DescribeDocumentClassificationJobOutput) GoString() string { 8182 return s.String() 8183} 8184 8185// SetDocumentClassificationJobProperties sets the DocumentClassificationJobProperties field's value. 8186func (s *DescribeDocumentClassificationJobOutput) SetDocumentClassificationJobProperties(v *DocumentClassificationJobProperties) *DescribeDocumentClassificationJobOutput { 8187 s.DocumentClassificationJobProperties = v 8188 return s 8189} 8190 8191type DescribeDocumentClassifierInput struct { 8192 _ struct{} `type:"structure"` 8193 8194 // The Amazon Resource Name (ARN) that identifies the document classifier. The 8195 // operation returns this identifier in its response. 8196 // 8197 // DocumentClassifierArn is a required field 8198 DocumentClassifierArn *string `type:"string" required:"true"` 8199} 8200 8201// String returns the string representation 8202func (s DescribeDocumentClassifierInput) String() string { 8203 return awsutil.Prettify(s) 8204} 8205 8206// GoString returns the string representation 8207func (s DescribeDocumentClassifierInput) GoString() string { 8208 return s.String() 8209} 8210 8211// Validate inspects the fields of the type to determine if they are valid. 8212func (s *DescribeDocumentClassifierInput) Validate() error { 8213 invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentClassifierInput"} 8214 if s.DocumentClassifierArn == nil { 8215 invalidParams.Add(request.NewErrParamRequired("DocumentClassifierArn")) 8216 } 8217 8218 if invalidParams.Len() > 0 { 8219 return invalidParams 8220 } 8221 return nil 8222} 8223 8224// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. 8225func (s *DescribeDocumentClassifierInput) SetDocumentClassifierArn(v string) *DescribeDocumentClassifierInput { 8226 s.DocumentClassifierArn = &v 8227 return s 8228} 8229 8230type DescribeDocumentClassifierOutput struct { 8231 _ struct{} `type:"structure"` 8232 8233 // An object that contains the properties associated with a document classifier. 8234 DocumentClassifierProperties *DocumentClassifierProperties `type:"structure"` 8235} 8236 8237// String returns the string representation 8238func (s DescribeDocumentClassifierOutput) String() string { 8239 return awsutil.Prettify(s) 8240} 8241 8242// GoString returns the string representation 8243func (s DescribeDocumentClassifierOutput) GoString() string { 8244 return s.String() 8245} 8246 8247// SetDocumentClassifierProperties sets the DocumentClassifierProperties field's value. 8248func (s *DescribeDocumentClassifierOutput) SetDocumentClassifierProperties(v *DocumentClassifierProperties) *DescribeDocumentClassifierOutput { 8249 s.DocumentClassifierProperties = v 8250 return s 8251} 8252 8253type DescribeDominantLanguageDetectionJobInput struct { 8254 _ struct{} `type:"structure"` 8255 8256 // The identifier that Amazon Comprehend generated for the job. The operation 8257 // returns this identifier in its response. 8258 // 8259 // JobId is a required field 8260 JobId *string `min:"1" type:"string" required:"true"` 8261} 8262 8263// String returns the string representation 8264func (s DescribeDominantLanguageDetectionJobInput) String() string { 8265 return awsutil.Prettify(s) 8266} 8267 8268// GoString returns the string representation 8269func (s DescribeDominantLanguageDetectionJobInput) GoString() string { 8270 return s.String() 8271} 8272 8273// Validate inspects the fields of the type to determine if they are valid. 8274func (s *DescribeDominantLanguageDetectionJobInput) Validate() error { 8275 invalidParams := request.ErrInvalidParams{Context: "DescribeDominantLanguageDetectionJobInput"} 8276 if s.JobId == nil { 8277 invalidParams.Add(request.NewErrParamRequired("JobId")) 8278 } 8279 if s.JobId != nil && len(*s.JobId) < 1 { 8280 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8281 } 8282 8283 if invalidParams.Len() > 0 { 8284 return invalidParams 8285 } 8286 return nil 8287} 8288 8289// SetJobId sets the JobId field's value. 8290func (s *DescribeDominantLanguageDetectionJobInput) SetJobId(v string) *DescribeDominantLanguageDetectionJobInput { 8291 s.JobId = &v 8292 return s 8293} 8294 8295type DescribeDominantLanguageDetectionJobOutput struct { 8296 _ struct{} `type:"structure"` 8297 8298 // An object that contains the properties associated with a dominant language 8299 // detection job. 8300 DominantLanguageDetectionJobProperties *DominantLanguageDetectionJobProperties `type:"structure"` 8301} 8302 8303// String returns the string representation 8304func (s DescribeDominantLanguageDetectionJobOutput) String() string { 8305 return awsutil.Prettify(s) 8306} 8307 8308// GoString returns the string representation 8309func (s DescribeDominantLanguageDetectionJobOutput) GoString() string { 8310 return s.String() 8311} 8312 8313// SetDominantLanguageDetectionJobProperties sets the DominantLanguageDetectionJobProperties field's value. 8314func (s *DescribeDominantLanguageDetectionJobOutput) SetDominantLanguageDetectionJobProperties(v *DominantLanguageDetectionJobProperties) *DescribeDominantLanguageDetectionJobOutput { 8315 s.DominantLanguageDetectionJobProperties = v 8316 return s 8317} 8318 8319type DescribeEndpointInput struct { 8320 _ struct{} `type:"structure"` 8321 8322 // The Amazon Resource Number (ARN) of the endpoint being described. 8323 // 8324 // EndpointArn is a required field 8325 EndpointArn *string `type:"string" required:"true"` 8326} 8327 8328// String returns the string representation 8329func (s DescribeEndpointInput) String() string { 8330 return awsutil.Prettify(s) 8331} 8332 8333// GoString returns the string representation 8334func (s DescribeEndpointInput) GoString() string { 8335 return s.String() 8336} 8337 8338// Validate inspects the fields of the type to determine if they are valid. 8339func (s *DescribeEndpointInput) Validate() error { 8340 invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointInput"} 8341 if s.EndpointArn == nil { 8342 invalidParams.Add(request.NewErrParamRequired("EndpointArn")) 8343 } 8344 8345 if invalidParams.Len() > 0 { 8346 return invalidParams 8347 } 8348 return nil 8349} 8350 8351// SetEndpointArn sets the EndpointArn field's value. 8352func (s *DescribeEndpointInput) SetEndpointArn(v string) *DescribeEndpointInput { 8353 s.EndpointArn = &v 8354 return s 8355} 8356 8357type DescribeEndpointOutput struct { 8358 _ struct{} `type:"structure"` 8359 8360 // Describes information associated with the specific endpoint. 8361 EndpointProperties *EndpointProperties `type:"structure"` 8362} 8363 8364// String returns the string representation 8365func (s DescribeEndpointOutput) String() string { 8366 return awsutil.Prettify(s) 8367} 8368 8369// GoString returns the string representation 8370func (s DescribeEndpointOutput) GoString() string { 8371 return s.String() 8372} 8373 8374// SetEndpointProperties sets the EndpointProperties field's value. 8375func (s *DescribeEndpointOutput) SetEndpointProperties(v *EndpointProperties) *DescribeEndpointOutput { 8376 s.EndpointProperties = v 8377 return s 8378} 8379 8380type DescribeEntitiesDetectionJobInput struct { 8381 _ struct{} `type:"structure"` 8382 8383 // The identifier that Amazon Comprehend generated for the job. The operation 8384 // returns this identifier in its response. 8385 // 8386 // JobId is a required field 8387 JobId *string `min:"1" type:"string" required:"true"` 8388} 8389 8390// String returns the string representation 8391func (s DescribeEntitiesDetectionJobInput) String() string { 8392 return awsutil.Prettify(s) 8393} 8394 8395// GoString returns the string representation 8396func (s DescribeEntitiesDetectionJobInput) GoString() string { 8397 return s.String() 8398} 8399 8400// Validate inspects the fields of the type to determine if they are valid. 8401func (s *DescribeEntitiesDetectionJobInput) Validate() error { 8402 invalidParams := request.ErrInvalidParams{Context: "DescribeEntitiesDetectionJobInput"} 8403 if s.JobId == nil { 8404 invalidParams.Add(request.NewErrParamRequired("JobId")) 8405 } 8406 if s.JobId != nil && len(*s.JobId) < 1 { 8407 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8408 } 8409 8410 if invalidParams.Len() > 0 { 8411 return invalidParams 8412 } 8413 return nil 8414} 8415 8416// SetJobId sets the JobId field's value. 8417func (s *DescribeEntitiesDetectionJobInput) SetJobId(v string) *DescribeEntitiesDetectionJobInput { 8418 s.JobId = &v 8419 return s 8420} 8421 8422type DescribeEntitiesDetectionJobOutput struct { 8423 _ struct{} `type:"structure"` 8424 8425 // An object that contains the properties associated with an entities detection 8426 // job. 8427 EntitiesDetectionJobProperties *EntitiesDetectionJobProperties `type:"structure"` 8428} 8429 8430// String returns the string representation 8431func (s DescribeEntitiesDetectionJobOutput) String() string { 8432 return awsutil.Prettify(s) 8433} 8434 8435// GoString returns the string representation 8436func (s DescribeEntitiesDetectionJobOutput) GoString() string { 8437 return s.String() 8438} 8439 8440// SetEntitiesDetectionJobProperties sets the EntitiesDetectionJobProperties field's value. 8441func (s *DescribeEntitiesDetectionJobOutput) SetEntitiesDetectionJobProperties(v *EntitiesDetectionJobProperties) *DescribeEntitiesDetectionJobOutput { 8442 s.EntitiesDetectionJobProperties = v 8443 return s 8444} 8445 8446type DescribeEntityRecognizerInput struct { 8447 _ struct{} `type:"structure"` 8448 8449 // The Amazon Resource Name (ARN) that identifies the entity recognizer. 8450 // 8451 // EntityRecognizerArn is a required field 8452 EntityRecognizerArn *string `type:"string" required:"true"` 8453} 8454 8455// String returns the string representation 8456func (s DescribeEntityRecognizerInput) String() string { 8457 return awsutil.Prettify(s) 8458} 8459 8460// GoString returns the string representation 8461func (s DescribeEntityRecognizerInput) GoString() string { 8462 return s.String() 8463} 8464 8465// Validate inspects the fields of the type to determine if they are valid. 8466func (s *DescribeEntityRecognizerInput) Validate() error { 8467 invalidParams := request.ErrInvalidParams{Context: "DescribeEntityRecognizerInput"} 8468 if s.EntityRecognizerArn == nil { 8469 invalidParams.Add(request.NewErrParamRequired("EntityRecognizerArn")) 8470 } 8471 8472 if invalidParams.Len() > 0 { 8473 return invalidParams 8474 } 8475 return nil 8476} 8477 8478// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. 8479func (s *DescribeEntityRecognizerInput) SetEntityRecognizerArn(v string) *DescribeEntityRecognizerInput { 8480 s.EntityRecognizerArn = &v 8481 return s 8482} 8483 8484type DescribeEntityRecognizerOutput struct { 8485 _ struct{} `type:"structure"` 8486 8487 // Describes information associated with an entity recognizer. 8488 EntityRecognizerProperties *EntityRecognizerProperties `type:"structure"` 8489} 8490 8491// String returns the string representation 8492func (s DescribeEntityRecognizerOutput) String() string { 8493 return awsutil.Prettify(s) 8494} 8495 8496// GoString returns the string representation 8497func (s DescribeEntityRecognizerOutput) GoString() string { 8498 return s.String() 8499} 8500 8501// SetEntityRecognizerProperties sets the EntityRecognizerProperties field's value. 8502func (s *DescribeEntityRecognizerOutput) SetEntityRecognizerProperties(v *EntityRecognizerProperties) *DescribeEntityRecognizerOutput { 8503 s.EntityRecognizerProperties = v 8504 return s 8505} 8506 8507type DescribeEventsDetectionJobInput struct { 8508 _ struct{} `type:"structure"` 8509 8510 // The identifier of the events detection job. 8511 // 8512 // JobId is a required field 8513 JobId *string `min:"1" type:"string" required:"true"` 8514} 8515 8516// String returns the string representation 8517func (s DescribeEventsDetectionJobInput) String() string { 8518 return awsutil.Prettify(s) 8519} 8520 8521// GoString returns the string representation 8522func (s DescribeEventsDetectionJobInput) GoString() string { 8523 return s.String() 8524} 8525 8526// Validate inspects the fields of the type to determine if they are valid. 8527func (s *DescribeEventsDetectionJobInput) Validate() error { 8528 invalidParams := request.ErrInvalidParams{Context: "DescribeEventsDetectionJobInput"} 8529 if s.JobId == nil { 8530 invalidParams.Add(request.NewErrParamRequired("JobId")) 8531 } 8532 if s.JobId != nil && len(*s.JobId) < 1 { 8533 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8534 } 8535 8536 if invalidParams.Len() > 0 { 8537 return invalidParams 8538 } 8539 return nil 8540} 8541 8542// SetJobId sets the JobId field's value. 8543func (s *DescribeEventsDetectionJobInput) SetJobId(v string) *DescribeEventsDetectionJobInput { 8544 s.JobId = &v 8545 return s 8546} 8547 8548type DescribeEventsDetectionJobOutput struct { 8549 _ struct{} `type:"structure"` 8550 8551 // An object that contains the properties associated with an event detection 8552 // job. 8553 EventsDetectionJobProperties *EventsDetectionJobProperties `type:"structure"` 8554} 8555 8556// String returns the string representation 8557func (s DescribeEventsDetectionJobOutput) String() string { 8558 return awsutil.Prettify(s) 8559} 8560 8561// GoString returns the string representation 8562func (s DescribeEventsDetectionJobOutput) GoString() string { 8563 return s.String() 8564} 8565 8566// SetEventsDetectionJobProperties sets the EventsDetectionJobProperties field's value. 8567func (s *DescribeEventsDetectionJobOutput) SetEventsDetectionJobProperties(v *EventsDetectionJobProperties) *DescribeEventsDetectionJobOutput { 8568 s.EventsDetectionJobProperties = v 8569 return s 8570} 8571 8572type DescribeKeyPhrasesDetectionJobInput struct { 8573 _ struct{} `type:"structure"` 8574 8575 // The identifier that Amazon Comprehend generated for the job. The operation 8576 // returns this identifier in its response. 8577 // 8578 // JobId is a required field 8579 JobId *string `min:"1" type:"string" required:"true"` 8580} 8581 8582// String returns the string representation 8583func (s DescribeKeyPhrasesDetectionJobInput) String() string { 8584 return awsutil.Prettify(s) 8585} 8586 8587// GoString returns the string representation 8588func (s DescribeKeyPhrasesDetectionJobInput) GoString() string { 8589 return s.String() 8590} 8591 8592// Validate inspects the fields of the type to determine if they are valid. 8593func (s *DescribeKeyPhrasesDetectionJobInput) Validate() error { 8594 invalidParams := request.ErrInvalidParams{Context: "DescribeKeyPhrasesDetectionJobInput"} 8595 if s.JobId == nil { 8596 invalidParams.Add(request.NewErrParamRequired("JobId")) 8597 } 8598 if s.JobId != nil && len(*s.JobId) < 1 { 8599 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8600 } 8601 8602 if invalidParams.Len() > 0 { 8603 return invalidParams 8604 } 8605 return nil 8606} 8607 8608// SetJobId sets the JobId field's value. 8609func (s *DescribeKeyPhrasesDetectionJobInput) SetJobId(v string) *DescribeKeyPhrasesDetectionJobInput { 8610 s.JobId = &v 8611 return s 8612} 8613 8614type DescribeKeyPhrasesDetectionJobOutput struct { 8615 _ struct{} `type:"structure"` 8616 8617 // An object that contains the properties associated with a key phrases detection 8618 // job. 8619 KeyPhrasesDetectionJobProperties *KeyPhrasesDetectionJobProperties `type:"structure"` 8620} 8621 8622// String returns the string representation 8623func (s DescribeKeyPhrasesDetectionJobOutput) String() string { 8624 return awsutil.Prettify(s) 8625} 8626 8627// GoString returns the string representation 8628func (s DescribeKeyPhrasesDetectionJobOutput) GoString() string { 8629 return s.String() 8630} 8631 8632// SetKeyPhrasesDetectionJobProperties sets the KeyPhrasesDetectionJobProperties field's value. 8633func (s *DescribeKeyPhrasesDetectionJobOutput) SetKeyPhrasesDetectionJobProperties(v *KeyPhrasesDetectionJobProperties) *DescribeKeyPhrasesDetectionJobOutput { 8634 s.KeyPhrasesDetectionJobProperties = v 8635 return s 8636} 8637 8638type DescribePiiEntitiesDetectionJobInput struct { 8639 _ struct{} `type:"structure"` 8640 8641 // The identifier that Amazon Comprehend generated for the job. The operation 8642 // returns this identifier in its response. 8643 // 8644 // JobId is a required field 8645 JobId *string `min:"1" type:"string" required:"true"` 8646} 8647 8648// String returns the string representation 8649func (s DescribePiiEntitiesDetectionJobInput) String() string { 8650 return awsutil.Prettify(s) 8651} 8652 8653// GoString returns the string representation 8654func (s DescribePiiEntitiesDetectionJobInput) GoString() string { 8655 return s.String() 8656} 8657 8658// Validate inspects the fields of the type to determine if they are valid. 8659func (s *DescribePiiEntitiesDetectionJobInput) Validate() error { 8660 invalidParams := request.ErrInvalidParams{Context: "DescribePiiEntitiesDetectionJobInput"} 8661 if s.JobId == nil { 8662 invalidParams.Add(request.NewErrParamRequired("JobId")) 8663 } 8664 if s.JobId != nil && len(*s.JobId) < 1 { 8665 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8666 } 8667 8668 if invalidParams.Len() > 0 { 8669 return invalidParams 8670 } 8671 return nil 8672} 8673 8674// SetJobId sets the JobId field's value. 8675func (s *DescribePiiEntitiesDetectionJobInput) SetJobId(v string) *DescribePiiEntitiesDetectionJobInput { 8676 s.JobId = &v 8677 return s 8678} 8679 8680type DescribePiiEntitiesDetectionJobOutput struct { 8681 _ struct{} `type:"structure"` 8682 8683 // Provides information about a PII entities detection job. 8684 PiiEntitiesDetectionJobProperties *PiiEntitiesDetectionJobProperties `type:"structure"` 8685} 8686 8687// String returns the string representation 8688func (s DescribePiiEntitiesDetectionJobOutput) String() string { 8689 return awsutil.Prettify(s) 8690} 8691 8692// GoString returns the string representation 8693func (s DescribePiiEntitiesDetectionJobOutput) GoString() string { 8694 return s.String() 8695} 8696 8697// SetPiiEntitiesDetectionJobProperties sets the PiiEntitiesDetectionJobProperties field's value. 8698func (s *DescribePiiEntitiesDetectionJobOutput) SetPiiEntitiesDetectionJobProperties(v *PiiEntitiesDetectionJobProperties) *DescribePiiEntitiesDetectionJobOutput { 8699 s.PiiEntitiesDetectionJobProperties = v 8700 return s 8701} 8702 8703type DescribeSentimentDetectionJobInput struct { 8704 _ struct{} `type:"structure"` 8705 8706 // The identifier that Amazon Comprehend generated for the job. The operation 8707 // returns this identifier in its response. 8708 // 8709 // JobId is a required field 8710 JobId *string `min:"1" type:"string" required:"true"` 8711} 8712 8713// String returns the string representation 8714func (s DescribeSentimentDetectionJobInput) String() string { 8715 return awsutil.Prettify(s) 8716} 8717 8718// GoString returns the string representation 8719func (s DescribeSentimentDetectionJobInput) GoString() string { 8720 return s.String() 8721} 8722 8723// Validate inspects the fields of the type to determine if they are valid. 8724func (s *DescribeSentimentDetectionJobInput) Validate() error { 8725 invalidParams := request.ErrInvalidParams{Context: "DescribeSentimentDetectionJobInput"} 8726 if s.JobId == nil { 8727 invalidParams.Add(request.NewErrParamRequired("JobId")) 8728 } 8729 if s.JobId != nil && len(*s.JobId) < 1 { 8730 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8731 } 8732 8733 if invalidParams.Len() > 0 { 8734 return invalidParams 8735 } 8736 return nil 8737} 8738 8739// SetJobId sets the JobId field's value. 8740func (s *DescribeSentimentDetectionJobInput) SetJobId(v string) *DescribeSentimentDetectionJobInput { 8741 s.JobId = &v 8742 return s 8743} 8744 8745type DescribeSentimentDetectionJobOutput struct { 8746 _ struct{} `type:"structure"` 8747 8748 // An object that contains the properties associated with a sentiment detection 8749 // job. 8750 SentimentDetectionJobProperties *SentimentDetectionJobProperties `type:"structure"` 8751} 8752 8753// String returns the string representation 8754func (s DescribeSentimentDetectionJobOutput) String() string { 8755 return awsutil.Prettify(s) 8756} 8757 8758// GoString returns the string representation 8759func (s DescribeSentimentDetectionJobOutput) GoString() string { 8760 return s.String() 8761} 8762 8763// SetSentimentDetectionJobProperties sets the SentimentDetectionJobProperties field's value. 8764func (s *DescribeSentimentDetectionJobOutput) SetSentimentDetectionJobProperties(v *SentimentDetectionJobProperties) *DescribeSentimentDetectionJobOutput { 8765 s.SentimentDetectionJobProperties = v 8766 return s 8767} 8768 8769type DescribeTopicsDetectionJobInput struct { 8770 _ struct{} `type:"structure"` 8771 8772 // The identifier assigned by the user to the detection job. 8773 // 8774 // JobId is a required field 8775 JobId *string `min:"1" type:"string" required:"true"` 8776} 8777 8778// String returns the string representation 8779func (s DescribeTopicsDetectionJobInput) String() string { 8780 return awsutil.Prettify(s) 8781} 8782 8783// GoString returns the string representation 8784func (s DescribeTopicsDetectionJobInput) GoString() string { 8785 return s.String() 8786} 8787 8788// Validate inspects the fields of the type to determine if they are valid. 8789func (s *DescribeTopicsDetectionJobInput) Validate() error { 8790 invalidParams := request.ErrInvalidParams{Context: "DescribeTopicsDetectionJobInput"} 8791 if s.JobId == nil { 8792 invalidParams.Add(request.NewErrParamRequired("JobId")) 8793 } 8794 if s.JobId != nil && len(*s.JobId) < 1 { 8795 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 8796 } 8797 8798 if invalidParams.Len() > 0 { 8799 return invalidParams 8800 } 8801 return nil 8802} 8803 8804// SetJobId sets the JobId field's value. 8805func (s *DescribeTopicsDetectionJobInput) SetJobId(v string) *DescribeTopicsDetectionJobInput { 8806 s.JobId = &v 8807 return s 8808} 8809 8810type DescribeTopicsDetectionJobOutput struct { 8811 _ struct{} `type:"structure"` 8812 8813 // The list of properties for the requested job. 8814 TopicsDetectionJobProperties *TopicsDetectionJobProperties `type:"structure"` 8815} 8816 8817// String returns the string representation 8818func (s DescribeTopicsDetectionJobOutput) String() string { 8819 return awsutil.Prettify(s) 8820} 8821 8822// GoString returns the string representation 8823func (s DescribeTopicsDetectionJobOutput) GoString() string { 8824 return s.String() 8825} 8826 8827// SetTopicsDetectionJobProperties sets the TopicsDetectionJobProperties field's value. 8828func (s *DescribeTopicsDetectionJobOutput) SetTopicsDetectionJobProperties(v *TopicsDetectionJobProperties) *DescribeTopicsDetectionJobOutput { 8829 s.TopicsDetectionJobProperties = v 8830 return s 8831} 8832 8833type DetectDominantLanguageInput struct { 8834 _ struct{} `type:"structure"` 8835 8836 // A UTF-8 text string. Each string should contain at least 20 characters and 8837 // must contain fewer that 5,000 bytes of UTF-8 encoded characters. 8838 // 8839 // Text is a required field 8840 Text *string `min:"1" type:"string" required:"true" sensitive:"true"` 8841} 8842 8843// String returns the string representation 8844func (s DetectDominantLanguageInput) String() string { 8845 return awsutil.Prettify(s) 8846} 8847 8848// GoString returns the string representation 8849func (s DetectDominantLanguageInput) GoString() string { 8850 return s.String() 8851} 8852 8853// Validate inspects the fields of the type to determine if they are valid. 8854func (s *DetectDominantLanguageInput) Validate() error { 8855 invalidParams := request.ErrInvalidParams{Context: "DetectDominantLanguageInput"} 8856 if s.Text == nil { 8857 invalidParams.Add(request.NewErrParamRequired("Text")) 8858 } 8859 if s.Text != nil && len(*s.Text) < 1 { 8860 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 8861 } 8862 8863 if invalidParams.Len() > 0 { 8864 return invalidParams 8865 } 8866 return nil 8867} 8868 8869// SetText sets the Text field's value. 8870func (s *DetectDominantLanguageInput) SetText(v string) *DetectDominantLanguageInput { 8871 s.Text = &v 8872 return s 8873} 8874 8875type DetectDominantLanguageOutput struct { 8876 _ struct{} `type:"structure" sensitive:"true"` 8877 8878 // The languages that Amazon Comprehend detected in the input text. For each 8879 // language, the response returns the RFC 5646 language code and the level of 8880 // confidence that Amazon Comprehend has in the accuracy of its inference. For 8881 // more information about RFC 5646, see Tags for Identifying Languages (https://tools.ietf.org/html/rfc5646) 8882 // on the IETF Tools web site. 8883 Languages []*DominantLanguage `type:"list"` 8884} 8885 8886// String returns the string representation 8887func (s DetectDominantLanguageOutput) String() string { 8888 return awsutil.Prettify(s) 8889} 8890 8891// GoString returns the string representation 8892func (s DetectDominantLanguageOutput) GoString() string { 8893 return s.String() 8894} 8895 8896// SetLanguages sets the Languages field's value. 8897func (s *DetectDominantLanguageOutput) SetLanguages(v []*DominantLanguage) *DetectDominantLanguageOutput { 8898 s.Languages = v 8899 return s 8900} 8901 8902type DetectEntitiesInput struct { 8903 _ struct{} `type:"structure"` 8904 8905 // The Amazon Resource Name of an endpoint that is associated with a custom 8906 // entity recognition model. Provide an endpoint if you want to detect entities 8907 // by using your own custom model instead of the default model that is used 8908 // by Amazon Comprehend. 8909 // 8910 // If you specify an endpoint, Amazon Comprehend uses the language of your custom 8911 // model, and it ignores any language code that you provide in your request. 8912 EndpointArn *string `type:"string"` 8913 8914 // The language of the input documents. You can specify any of the primary languages 8915 // supported by Amazon Comprehend. All documents must be in the same language. 8916 // 8917 // If your request includes the endpoint for a custom entity recognition model, 8918 // Amazon Comprehend uses the language of your custom model, and it ignores 8919 // any language code that you specify here. 8920 LanguageCode *string `type:"string" enum:"LanguageCode"` 8921 8922 // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 8923 // encoded characters. 8924 // 8925 // Text is a required field 8926 Text *string `min:"1" type:"string" required:"true" sensitive:"true"` 8927} 8928 8929// String returns the string representation 8930func (s DetectEntitiesInput) String() string { 8931 return awsutil.Prettify(s) 8932} 8933 8934// GoString returns the string representation 8935func (s DetectEntitiesInput) GoString() string { 8936 return s.String() 8937} 8938 8939// Validate inspects the fields of the type to determine if they are valid. 8940func (s *DetectEntitiesInput) Validate() error { 8941 invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesInput"} 8942 if s.Text == nil { 8943 invalidParams.Add(request.NewErrParamRequired("Text")) 8944 } 8945 if s.Text != nil && len(*s.Text) < 1 { 8946 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 8947 } 8948 8949 if invalidParams.Len() > 0 { 8950 return invalidParams 8951 } 8952 return nil 8953} 8954 8955// SetEndpointArn sets the EndpointArn field's value. 8956func (s *DetectEntitiesInput) SetEndpointArn(v string) *DetectEntitiesInput { 8957 s.EndpointArn = &v 8958 return s 8959} 8960 8961// SetLanguageCode sets the LanguageCode field's value. 8962func (s *DetectEntitiesInput) SetLanguageCode(v string) *DetectEntitiesInput { 8963 s.LanguageCode = &v 8964 return s 8965} 8966 8967// SetText sets the Text field's value. 8968func (s *DetectEntitiesInput) SetText(v string) *DetectEntitiesInput { 8969 s.Text = &v 8970 return s 8971} 8972 8973type DetectEntitiesOutput struct { 8974 _ struct{} `type:"structure" sensitive:"true"` 8975 8976 // A collection of entities identified in the input text. For each entity, the 8977 // response provides the entity text, entity type, where the entity text begins 8978 // and ends, and the level of confidence that Amazon Comprehend has in the detection. 8979 // 8980 // If your request uses a custom entity recognition model, Amazon Comprehend 8981 // detects the entities that the model is trained to recognize. Otherwise, it 8982 // detects the default entity types. For a list of default entity types, see 8983 // how-entities. 8984 Entities []*Entity `type:"list"` 8985} 8986 8987// String returns the string representation 8988func (s DetectEntitiesOutput) String() string { 8989 return awsutil.Prettify(s) 8990} 8991 8992// GoString returns the string representation 8993func (s DetectEntitiesOutput) GoString() string { 8994 return s.String() 8995} 8996 8997// SetEntities sets the Entities field's value. 8998func (s *DetectEntitiesOutput) SetEntities(v []*Entity) *DetectEntitiesOutput { 8999 s.Entities = v 9000 return s 9001} 9002 9003type DetectKeyPhrasesInput struct { 9004 _ struct{} `type:"structure"` 9005 9006 // The language of the input documents. You can specify any of the primary languages 9007 // supported by Amazon Comprehend. All documents must be in the same language. 9008 // 9009 // LanguageCode is a required field 9010 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 9011 9012 // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 9013 // encoded characters. 9014 // 9015 // Text is a required field 9016 Text *string `min:"1" type:"string" required:"true" sensitive:"true"` 9017} 9018 9019// String returns the string representation 9020func (s DetectKeyPhrasesInput) String() string { 9021 return awsutil.Prettify(s) 9022} 9023 9024// GoString returns the string representation 9025func (s DetectKeyPhrasesInput) GoString() string { 9026 return s.String() 9027} 9028 9029// Validate inspects the fields of the type to determine if they are valid. 9030func (s *DetectKeyPhrasesInput) Validate() error { 9031 invalidParams := request.ErrInvalidParams{Context: "DetectKeyPhrasesInput"} 9032 if s.LanguageCode == nil { 9033 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 9034 } 9035 if s.Text == nil { 9036 invalidParams.Add(request.NewErrParamRequired("Text")) 9037 } 9038 if s.Text != nil && len(*s.Text) < 1 { 9039 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 9040 } 9041 9042 if invalidParams.Len() > 0 { 9043 return invalidParams 9044 } 9045 return nil 9046} 9047 9048// SetLanguageCode sets the LanguageCode field's value. 9049func (s *DetectKeyPhrasesInput) SetLanguageCode(v string) *DetectKeyPhrasesInput { 9050 s.LanguageCode = &v 9051 return s 9052} 9053 9054// SetText sets the Text field's value. 9055func (s *DetectKeyPhrasesInput) SetText(v string) *DetectKeyPhrasesInput { 9056 s.Text = &v 9057 return s 9058} 9059 9060type DetectKeyPhrasesOutput struct { 9061 _ struct{} `type:"structure" sensitive:"true"` 9062 9063 // A collection of key phrases that Amazon Comprehend identified in the input 9064 // text. For each key phrase, the response provides the text of the key phrase, 9065 // where the key phrase begins and ends, and the level of confidence that Amazon 9066 // Comprehend has in the accuracy of the detection. 9067 KeyPhrases []*KeyPhrase `type:"list"` 9068} 9069 9070// String returns the string representation 9071func (s DetectKeyPhrasesOutput) String() string { 9072 return awsutil.Prettify(s) 9073} 9074 9075// GoString returns the string representation 9076func (s DetectKeyPhrasesOutput) GoString() string { 9077 return s.String() 9078} 9079 9080// SetKeyPhrases sets the KeyPhrases field's value. 9081func (s *DetectKeyPhrasesOutput) SetKeyPhrases(v []*KeyPhrase) *DetectKeyPhrasesOutput { 9082 s.KeyPhrases = v 9083 return s 9084} 9085 9086type DetectPiiEntitiesInput struct { 9087 _ struct{} `type:"structure"` 9088 9089 // The language of the input documents. 9090 // 9091 // LanguageCode is a required field 9092 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 9093 9094 // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 9095 // encoded characters. 9096 // 9097 // Text is a required field 9098 Text *string `min:"1" type:"string" required:"true"` 9099} 9100 9101// String returns the string representation 9102func (s DetectPiiEntitiesInput) String() string { 9103 return awsutil.Prettify(s) 9104} 9105 9106// GoString returns the string representation 9107func (s DetectPiiEntitiesInput) GoString() string { 9108 return s.String() 9109} 9110 9111// Validate inspects the fields of the type to determine if they are valid. 9112func (s *DetectPiiEntitiesInput) Validate() error { 9113 invalidParams := request.ErrInvalidParams{Context: "DetectPiiEntitiesInput"} 9114 if s.LanguageCode == nil { 9115 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 9116 } 9117 if s.Text == nil { 9118 invalidParams.Add(request.NewErrParamRequired("Text")) 9119 } 9120 if s.Text != nil && len(*s.Text) < 1 { 9121 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 9122 } 9123 9124 if invalidParams.Len() > 0 { 9125 return invalidParams 9126 } 9127 return nil 9128} 9129 9130// SetLanguageCode sets the LanguageCode field's value. 9131func (s *DetectPiiEntitiesInput) SetLanguageCode(v string) *DetectPiiEntitiesInput { 9132 s.LanguageCode = &v 9133 return s 9134} 9135 9136// SetText sets the Text field's value. 9137func (s *DetectPiiEntitiesInput) SetText(v string) *DetectPiiEntitiesInput { 9138 s.Text = &v 9139 return s 9140} 9141 9142type DetectPiiEntitiesOutput struct { 9143 _ struct{} `type:"structure"` 9144 9145 // A collection of PII entities identified in the input text. For each entity, 9146 // the response provides the entity type, where the entity text begins and ends, 9147 // and the level of confidence that Amazon Comprehend has in the detection. 9148 Entities []*PiiEntity `type:"list"` 9149} 9150 9151// String returns the string representation 9152func (s DetectPiiEntitiesOutput) String() string { 9153 return awsutil.Prettify(s) 9154} 9155 9156// GoString returns the string representation 9157func (s DetectPiiEntitiesOutput) GoString() string { 9158 return s.String() 9159} 9160 9161// SetEntities sets the Entities field's value. 9162func (s *DetectPiiEntitiesOutput) SetEntities(v []*PiiEntity) *DetectPiiEntitiesOutput { 9163 s.Entities = v 9164 return s 9165} 9166 9167type DetectSentimentInput struct { 9168 _ struct{} `type:"structure"` 9169 9170 // The language of the input documents. You can specify any of the primary languages 9171 // supported by Amazon Comprehend. All documents must be in the same language. 9172 // 9173 // LanguageCode is a required field 9174 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 9175 9176 // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 9177 // encoded characters. 9178 // 9179 // Text is a required field 9180 Text *string `min:"1" type:"string" required:"true" sensitive:"true"` 9181} 9182 9183// String returns the string representation 9184func (s DetectSentimentInput) String() string { 9185 return awsutil.Prettify(s) 9186} 9187 9188// GoString returns the string representation 9189func (s DetectSentimentInput) GoString() string { 9190 return s.String() 9191} 9192 9193// Validate inspects the fields of the type to determine if they are valid. 9194func (s *DetectSentimentInput) Validate() error { 9195 invalidParams := request.ErrInvalidParams{Context: "DetectSentimentInput"} 9196 if s.LanguageCode == nil { 9197 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 9198 } 9199 if s.Text == nil { 9200 invalidParams.Add(request.NewErrParamRequired("Text")) 9201 } 9202 if s.Text != nil && len(*s.Text) < 1 { 9203 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 9204 } 9205 9206 if invalidParams.Len() > 0 { 9207 return invalidParams 9208 } 9209 return nil 9210} 9211 9212// SetLanguageCode sets the LanguageCode field's value. 9213func (s *DetectSentimentInput) SetLanguageCode(v string) *DetectSentimentInput { 9214 s.LanguageCode = &v 9215 return s 9216} 9217 9218// SetText sets the Text field's value. 9219func (s *DetectSentimentInput) SetText(v string) *DetectSentimentInput { 9220 s.Text = &v 9221 return s 9222} 9223 9224type DetectSentimentOutput struct { 9225 _ struct{} `type:"structure" sensitive:"true"` 9226 9227 // The inferred sentiment that Amazon Comprehend has the highest level of confidence 9228 // in. 9229 Sentiment *string `type:"string" enum:"SentimentType"` 9230 9231 // An object that lists the sentiments, and their corresponding confidence levels. 9232 SentimentScore *SentimentScore `type:"structure"` 9233} 9234 9235// String returns the string representation 9236func (s DetectSentimentOutput) String() string { 9237 return awsutil.Prettify(s) 9238} 9239 9240// GoString returns the string representation 9241func (s DetectSentimentOutput) GoString() string { 9242 return s.String() 9243} 9244 9245// SetSentiment sets the Sentiment field's value. 9246func (s *DetectSentimentOutput) SetSentiment(v string) *DetectSentimentOutput { 9247 s.Sentiment = &v 9248 return s 9249} 9250 9251// SetSentimentScore sets the SentimentScore field's value. 9252func (s *DetectSentimentOutput) SetSentimentScore(v *SentimentScore) *DetectSentimentOutput { 9253 s.SentimentScore = v 9254 return s 9255} 9256 9257type DetectSyntaxInput struct { 9258 _ struct{} `type:"structure"` 9259 9260 // The language code of the input documents. You can specify any of the following 9261 // languages supported by Amazon Comprehend: German ("de"), English ("en"), 9262 // Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). 9263 // 9264 // LanguageCode is a required field 9265 LanguageCode *string `type:"string" required:"true" enum:"SyntaxLanguageCode"` 9266 9267 // A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded 9268 // characters. 9269 // 9270 // Text is a required field 9271 Text *string `min:"1" type:"string" required:"true" sensitive:"true"` 9272} 9273 9274// String returns the string representation 9275func (s DetectSyntaxInput) String() string { 9276 return awsutil.Prettify(s) 9277} 9278 9279// GoString returns the string representation 9280func (s DetectSyntaxInput) GoString() string { 9281 return s.String() 9282} 9283 9284// Validate inspects the fields of the type to determine if they are valid. 9285func (s *DetectSyntaxInput) Validate() error { 9286 invalidParams := request.ErrInvalidParams{Context: "DetectSyntaxInput"} 9287 if s.LanguageCode == nil { 9288 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 9289 } 9290 if s.Text == nil { 9291 invalidParams.Add(request.NewErrParamRequired("Text")) 9292 } 9293 if s.Text != nil && len(*s.Text) < 1 { 9294 invalidParams.Add(request.NewErrParamMinLen("Text", 1)) 9295 } 9296 9297 if invalidParams.Len() > 0 { 9298 return invalidParams 9299 } 9300 return nil 9301} 9302 9303// SetLanguageCode sets the LanguageCode field's value. 9304func (s *DetectSyntaxInput) SetLanguageCode(v string) *DetectSyntaxInput { 9305 s.LanguageCode = &v 9306 return s 9307} 9308 9309// SetText sets the Text field's value. 9310func (s *DetectSyntaxInput) SetText(v string) *DetectSyntaxInput { 9311 s.Text = &v 9312 return s 9313} 9314 9315type DetectSyntaxOutput struct { 9316 _ struct{} `type:"structure" sensitive:"true"` 9317 9318 // A collection of syntax tokens describing the text. For each token, the response 9319 // provides the text, the token type, where the text begins and ends, and the 9320 // level of confidence that Amazon Comprehend has that the token is correct. 9321 // For a list of token types, see how-syntax. 9322 SyntaxTokens []*SyntaxToken `type:"list"` 9323} 9324 9325// String returns the string representation 9326func (s DetectSyntaxOutput) String() string { 9327 return awsutil.Prettify(s) 9328} 9329 9330// GoString returns the string representation 9331func (s DetectSyntaxOutput) GoString() string { 9332 return s.String() 9333} 9334 9335// SetSyntaxTokens sets the SyntaxTokens field's value. 9336func (s *DetectSyntaxOutput) SetSyntaxTokens(v []*SyntaxToken) *DetectSyntaxOutput { 9337 s.SyntaxTokens = v 9338 return s 9339} 9340 9341// Specifies the class that categorizes the document being analyzed 9342type DocumentClass struct { 9343 _ struct{} `type:"structure"` 9344 9345 // The name of the class. 9346 Name *string `min:"1" type:"string"` 9347 9348 // The confidence score that Amazon Comprehend has this class correctly attributed. 9349 Score *float64 `type:"float"` 9350} 9351 9352// String returns the string representation 9353func (s DocumentClass) String() string { 9354 return awsutil.Prettify(s) 9355} 9356 9357// GoString returns the string representation 9358func (s DocumentClass) GoString() string { 9359 return s.String() 9360} 9361 9362// SetName sets the Name field's value. 9363func (s *DocumentClass) SetName(v string) *DocumentClass { 9364 s.Name = &v 9365 return s 9366} 9367 9368// SetScore sets the Score field's value. 9369func (s *DocumentClass) SetScore(v float64) *DocumentClass { 9370 s.Score = &v 9371 return s 9372} 9373 9374// Provides information for filtering a list of document classification jobs. 9375// For more information, see the operation. You can provide only one filter 9376// parameter in each request. 9377type DocumentClassificationJobFilter struct { 9378 _ struct{} `type:"structure"` 9379 9380 // Filters on the name of the job. 9381 JobName *string `min:"1" type:"string"` 9382 9383 // Filters the list based on job status. Returns only jobs with the specified 9384 // status. 9385 JobStatus *string `type:"string" enum:"JobStatus"` 9386 9387 // Filters the list of jobs based on the time that the job was submitted for 9388 // processing. Returns only jobs submitted after the specified time. Jobs are 9389 // returned in descending order, newest to oldest. 9390 SubmitTimeAfter *time.Time `type:"timestamp"` 9391 9392 // Filters the list of jobs based on the time that the job was submitted for 9393 // processing. Returns only jobs submitted before the specified time. Jobs are 9394 // returned in ascending order, oldest to newest. 9395 SubmitTimeBefore *time.Time `type:"timestamp"` 9396} 9397 9398// String returns the string representation 9399func (s DocumentClassificationJobFilter) String() string { 9400 return awsutil.Prettify(s) 9401} 9402 9403// GoString returns the string representation 9404func (s DocumentClassificationJobFilter) GoString() string { 9405 return s.String() 9406} 9407 9408// Validate inspects the fields of the type to determine if they are valid. 9409func (s *DocumentClassificationJobFilter) Validate() error { 9410 invalidParams := request.ErrInvalidParams{Context: "DocumentClassificationJobFilter"} 9411 if s.JobName != nil && len(*s.JobName) < 1 { 9412 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 9413 } 9414 9415 if invalidParams.Len() > 0 { 9416 return invalidParams 9417 } 9418 return nil 9419} 9420 9421// SetJobName sets the JobName field's value. 9422func (s *DocumentClassificationJobFilter) SetJobName(v string) *DocumentClassificationJobFilter { 9423 s.JobName = &v 9424 return s 9425} 9426 9427// SetJobStatus sets the JobStatus field's value. 9428func (s *DocumentClassificationJobFilter) SetJobStatus(v string) *DocumentClassificationJobFilter { 9429 s.JobStatus = &v 9430 return s 9431} 9432 9433// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 9434func (s *DocumentClassificationJobFilter) SetSubmitTimeAfter(v time.Time) *DocumentClassificationJobFilter { 9435 s.SubmitTimeAfter = &v 9436 return s 9437} 9438 9439// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 9440func (s *DocumentClassificationJobFilter) SetSubmitTimeBefore(v time.Time) *DocumentClassificationJobFilter { 9441 s.SubmitTimeBefore = &v 9442 return s 9443} 9444 9445// Provides information about a document classification job. 9446type DocumentClassificationJobProperties struct { 9447 _ struct{} `type:"structure"` 9448 9449 // The Amazon Resource Name (ARN) of the AWS identity and Access Management 9450 // (IAM) role that grants Amazon Comprehend read access to your input data. 9451 DataAccessRoleArn *string `min:"20" type:"string"` 9452 9453 // The Amazon Resource Name (ARN) that identifies the document classifier. 9454 DocumentClassifierArn *string `type:"string"` 9455 9456 // The time that the document classification job completed. 9457 EndTime *time.Time `type:"timestamp"` 9458 9459 // The input data configuration that you supplied when you created the document 9460 // classification job. 9461 InputDataConfig *InputDataConfig `type:"structure"` 9462 9463 // The identifier assigned to the document classification job. 9464 JobId *string `min:"1" type:"string"` 9465 9466 // The name that you assigned to the document classification job. 9467 JobName *string `min:"1" type:"string"` 9468 9469 // The current status of the document classification job. If the status is FAILED, 9470 // the Message field shows the reason for the failure. 9471 JobStatus *string `type:"string" enum:"JobStatus"` 9472 9473 // A description of the status of the job. 9474 Message *string `type:"string"` 9475 9476 // The output data configuration that you supplied when you created the document 9477 // classification job. 9478 OutputDataConfig *OutputDataConfig `type:"structure"` 9479 9480 // The time that the document classification job was submitted for processing. 9481 SubmitTime *time.Time `type:"timestamp"` 9482 9483 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 9484 // to encrypt data on the storage volume attached to the ML compute instance(s) 9485 // that process the analysis job. The VolumeKmsKeyId can be either of the following 9486 // formats: 9487 // 9488 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 9489 // 9490 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 9491 VolumeKmsKeyId *string `type:"string"` 9492 9493 // Configuration parameters for a private Virtual Private Cloud (VPC) containing 9494 // the resources you are using for your document classification job. For more 9495 // information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 9496 VpcConfig *VpcConfig `type:"structure"` 9497} 9498 9499// String returns the string representation 9500func (s DocumentClassificationJobProperties) String() string { 9501 return awsutil.Prettify(s) 9502} 9503 9504// GoString returns the string representation 9505func (s DocumentClassificationJobProperties) GoString() string { 9506 return s.String() 9507} 9508 9509// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 9510func (s *DocumentClassificationJobProperties) SetDataAccessRoleArn(v string) *DocumentClassificationJobProperties { 9511 s.DataAccessRoleArn = &v 9512 return s 9513} 9514 9515// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. 9516func (s *DocumentClassificationJobProperties) SetDocumentClassifierArn(v string) *DocumentClassificationJobProperties { 9517 s.DocumentClassifierArn = &v 9518 return s 9519} 9520 9521// SetEndTime sets the EndTime field's value. 9522func (s *DocumentClassificationJobProperties) SetEndTime(v time.Time) *DocumentClassificationJobProperties { 9523 s.EndTime = &v 9524 return s 9525} 9526 9527// SetInputDataConfig sets the InputDataConfig field's value. 9528func (s *DocumentClassificationJobProperties) SetInputDataConfig(v *InputDataConfig) *DocumentClassificationJobProperties { 9529 s.InputDataConfig = v 9530 return s 9531} 9532 9533// SetJobId sets the JobId field's value. 9534func (s *DocumentClassificationJobProperties) SetJobId(v string) *DocumentClassificationJobProperties { 9535 s.JobId = &v 9536 return s 9537} 9538 9539// SetJobName sets the JobName field's value. 9540func (s *DocumentClassificationJobProperties) SetJobName(v string) *DocumentClassificationJobProperties { 9541 s.JobName = &v 9542 return s 9543} 9544 9545// SetJobStatus sets the JobStatus field's value. 9546func (s *DocumentClassificationJobProperties) SetJobStatus(v string) *DocumentClassificationJobProperties { 9547 s.JobStatus = &v 9548 return s 9549} 9550 9551// SetMessage sets the Message field's value. 9552func (s *DocumentClassificationJobProperties) SetMessage(v string) *DocumentClassificationJobProperties { 9553 s.Message = &v 9554 return s 9555} 9556 9557// SetOutputDataConfig sets the OutputDataConfig field's value. 9558func (s *DocumentClassificationJobProperties) SetOutputDataConfig(v *OutputDataConfig) *DocumentClassificationJobProperties { 9559 s.OutputDataConfig = v 9560 return s 9561} 9562 9563// SetSubmitTime sets the SubmitTime field's value. 9564func (s *DocumentClassificationJobProperties) SetSubmitTime(v time.Time) *DocumentClassificationJobProperties { 9565 s.SubmitTime = &v 9566 return s 9567} 9568 9569// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 9570func (s *DocumentClassificationJobProperties) SetVolumeKmsKeyId(v string) *DocumentClassificationJobProperties { 9571 s.VolumeKmsKeyId = &v 9572 return s 9573} 9574 9575// SetVpcConfig sets the VpcConfig field's value. 9576func (s *DocumentClassificationJobProperties) SetVpcConfig(v *VpcConfig) *DocumentClassificationJobProperties { 9577 s.VpcConfig = v 9578 return s 9579} 9580 9581// Provides information for filtering a list of document classifiers. You can 9582// only specify one filtering parameter in a request. For more information, 9583// see the operation. 9584type DocumentClassifierFilter struct { 9585 _ struct{} `type:"structure"` 9586 9587 // Filters the list of classifiers based on status. 9588 Status *string `type:"string" enum:"ModelStatus"` 9589 9590 // Filters the list of classifiers based on the time that the classifier was 9591 // submitted for processing. Returns only classifiers submitted after the specified 9592 // time. Classifiers are returned in descending order, newest to oldest. 9593 SubmitTimeAfter *time.Time `type:"timestamp"` 9594 9595 // Filters the list of classifiers based on the time that the classifier was 9596 // submitted for processing. Returns only classifiers submitted before the specified 9597 // time. Classifiers are returned in ascending order, oldest to newest. 9598 SubmitTimeBefore *time.Time `type:"timestamp"` 9599} 9600 9601// String returns the string representation 9602func (s DocumentClassifierFilter) String() string { 9603 return awsutil.Prettify(s) 9604} 9605 9606// GoString returns the string representation 9607func (s DocumentClassifierFilter) GoString() string { 9608 return s.String() 9609} 9610 9611// SetStatus sets the Status field's value. 9612func (s *DocumentClassifierFilter) SetStatus(v string) *DocumentClassifierFilter { 9613 s.Status = &v 9614 return s 9615} 9616 9617// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 9618func (s *DocumentClassifierFilter) SetSubmitTimeAfter(v time.Time) *DocumentClassifierFilter { 9619 s.SubmitTimeAfter = &v 9620 return s 9621} 9622 9623// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 9624func (s *DocumentClassifierFilter) SetSubmitTimeBefore(v time.Time) *DocumentClassifierFilter { 9625 s.SubmitTimeBefore = &v 9626 return s 9627} 9628 9629// The input properties for training a document classifier. 9630// 9631// For more information on how the input file is formatted, see how-document-classification-training-data. 9632type DocumentClassifierInputDataConfig struct { 9633 _ struct{} `type:"structure"` 9634 9635 // A list of augmented manifest files that provide training data for your custom 9636 // model. An augmented manifest file is a labeled dataset that is produced by 9637 // Amazon SageMaker Ground Truth. 9638 // 9639 // This parameter is required if you set DataFormat to AUGMENTED_MANIFEST. 9640 AugmentedManifests []*AugmentedManifestsListItem `type:"list"` 9641 9642 // The format of your training data: 9643 // 9644 // * COMPREHEND_CSV: A two-column CSV file, where labels are provided in 9645 // the first column, and documents are provided in the second. If you use 9646 // this value, you must provide the S3Uri parameter in your request. 9647 // 9648 // * AUGMENTED_MANIFEST: A labeled dataset that is produced by Amazon SageMaker 9649 // Ground Truth. This file is in JSON lines format. Each line is a complete 9650 // JSON object that contains a training document and its associated labels. 9651 // If you use this value, you must provide the AugmentedManifests parameter 9652 // in your request. 9653 // 9654 // If you don't specify a value, Amazon Comprehend uses COMPREHEND_CSV as the 9655 // default. 9656 DataFormat *string `type:"string" enum:"DocumentClassifierDataFormat"` 9657 9658 // Indicates the delimiter used to separate each label for training a multi-label 9659 // classifier. The default delimiter between labels is a pipe (|). You can use 9660 // a different character as a delimiter (if it's an allowed character) by specifying 9661 // it under Delimiter for labels. If the training documents use a delimiter 9662 // other than the default or the delimiter you specify, the labels on that line 9663 // will be combined to make a single unique label, such as LABELLABELLABEL. 9664 LabelDelimiter *string `min:"1" type:"string"` 9665 9666 // The Amazon S3 URI for the input data. The S3 bucket must be in the same region 9667 // as the API endpoint that you are calling. The URI can point to a single input 9668 // file or it can provide the prefix for a collection of input files. 9669 // 9670 // For example, if you use the URI S3://bucketName/prefix, if the prefix is 9671 // a single file, Amazon Comprehend uses that file as input. If more than one 9672 // file begins with the prefix, Amazon Comprehend uses all of them as input. 9673 // 9674 // This parameter is required if you set DataFormat to COMPREHEND_CSV. 9675 S3Uri *string `type:"string"` 9676} 9677 9678// String returns the string representation 9679func (s DocumentClassifierInputDataConfig) String() string { 9680 return awsutil.Prettify(s) 9681} 9682 9683// GoString returns the string representation 9684func (s DocumentClassifierInputDataConfig) GoString() string { 9685 return s.String() 9686} 9687 9688// Validate inspects the fields of the type to determine if they are valid. 9689func (s *DocumentClassifierInputDataConfig) Validate() error { 9690 invalidParams := request.ErrInvalidParams{Context: "DocumentClassifierInputDataConfig"} 9691 if s.LabelDelimiter != nil && len(*s.LabelDelimiter) < 1 { 9692 invalidParams.Add(request.NewErrParamMinLen("LabelDelimiter", 1)) 9693 } 9694 if s.AugmentedManifests != nil { 9695 for i, v := range s.AugmentedManifests { 9696 if v == nil { 9697 continue 9698 } 9699 if err := v.Validate(); err != nil { 9700 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AugmentedManifests", i), err.(request.ErrInvalidParams)) 9701 } 9702 } 9703 } 9704 9705 if invalidParams.Len() > 0 { 9706 return invalidParams 9707 } 9708 return nil 9709} 9710 9711// SetAugmentedManifests sets the AugmentedManifests field's value. 9712func (s *DocumentClassifierInputDataConfig) SetAugmentedManifests(v []*AugmentedManifestsListItem) *DocumentClassifierInputDataConfig { 9713 s.AugmentedManifests = v 9714 return s 9715} 9716 9717// SetDataFormat sets the DataFormat field's value. 9718func (s *DocumentClassifierInputDataConfig) SetDataFormat(v string) *DocumentClassifierInputDataConfig { 9719 s.DataFormat = &v 9720 return s 9721} 9722 9723// SetLabelDelimiter sets the LabelDelimiter field's value. 9724func (s *DocumentClassifierInputDataConfig) SetLabelDelimiter(v string) *DocumentClassifierInputDataConfig { 9725 s.LabelDelimiter = &v 9726 return s 9727} 9728 9729// SetS3Uri sets the S3Uri field's value. 9730func (s *DocumentClassifierInputDataConfig) SetS3Uri(v string) *DocumentClassifierInputDataConfig { 9731 s.S3Uri = &v 9732 return s 9733} 9734 9735// Provides output results configuration parameters for custom classifier jobs. 9736type DocumentClassifierOutputDataConfig struct { 9737 _ struct{} `type:"structure"` 9738 9739 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 9740 // to encrypt the output results from an analysis job. The KmsKeyId can be one 9741 // of the following formats: 9742 // 9743 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 9744 // 9745 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 9746 // 9747 // * KMS Key Alias: "alias/ExampleAlias" 9748 // 9749 // * ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias" 9750 KmsKeyId *string `type:"string"` 9751 9752 // When you use the OutputDataConfig object while creating a custom classifier, 9753 // you specify the Amazon S3 location where you want to write the confusion 9754 // matrix. The URI must be in the same region as the API endpoint that you are 9755 // calling. The location is used as the prefix for the actual location of this 9756 // output file. 9757 // 9758 // When the custom classifier job is finished, the service creates the output 9759 // file in a directory specific to the job. The S3Uri field contains the location 9760 // of the output file, called output.tar.gz. It is a compressed archive that 9761 // contains the confusion matrix. 9762 S3Uri *string `type:"string"` 9763} 9764 9765// String returns the string representation 9766func (s DocumentClassifierOutputDataConfig) String() string { 9767 return awsutil.Prettify(s) 9768} 9769 9770// GoString returns the string representation 9771func (s DocumentClassifierOutputDataConfig) GoString() string { 9772 return s.String() 9773} 9774 9775// SetKmsKeyId sets the KmsKeyId field's value. 9776func (s *DocumentClassifierOutputDataConfig) SetKmsKeyId(v string) *DocumentClassifierOutputDataConfig { 9777 s.KmsKeyId = &v 9778 return s 9779} 9780 9781// SetS3Uri sets the S3Uri field's value. 9782func (s *DocumentClassifierOutputDataConfig) SetS3Uri(v string) *DocumentClassifierOutputDataConfig { 9783 s.S3Uri = &v 9784 return s 9785} 9786 9787// Provides information about a document classifier. 9788type DocumentClassifierProperties struct { 9789 _ struct{} `type:"structure"` 9790 9791 // Information about the document classifier, including the number of documents 9792 // used for training the classifier, the number of documents used for test the 9793 // classifier, and an accuracy rating. 9794 ClassifierMetadata *ClassifierMetadata `type:"structure" sensitive:"true"` 9795 9796 // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role 9797 // that grants Amazon Comprehend read access to your input data. 9798 DataAccessRoleArn *string `min:"20" type:"string"` 9799 9800 // The Amazon Resource Name (ARN) that identifies the document classifier. 9801 DocumentClassifierArn *string `type:"string"` 9802 9803 // The time that training the document classifier completed. 9804 EndTime *time.Time `type:"timestamp"` 9805 9806 // The input data configuration that you supplied when you created the document 9807 // classifier for training. 9808 InputDataConfig *DocumentClassifierInputDataConfig `type:"structure"` 9809 9810 // The language code for the language of the documents that the classifier was 9811 // trained on. 9812 LanguageCode *string `type:"string" enum:"LanguageCode"` 9813 9814 // Additional information about the status of the classifier. 9815 Message *string `type:"string"` 9816 9817 // Indicates the mode in which the specific classifier was trained. This also 9818 // indicates the format of input documents and the format of the confusion matrix. 9819 // Each classifier can only be trained in one mode and this cannot be changed 9820 // once the classifier is trained. 9821 Mode *string `type:"string" enum:"DocumentClassifierMode"` 9822 9823 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 9824 // to encrypt trained custom models. The ModelKmsKeyId can be either of the 9825 // following formats: 9826 // 9827 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 9828 // 9829 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 9830 ModelKmsKeyId *string `type:"string"` 9831 9832 // Provides output results configuration parameters for custom classifier jobs. 9833 OutputDataConfig *DocumentClassifierOutputDataConfig `type:"structure"` 9834 9835 // The status of the document classifier. If the status is TRAINED the classifier 9836 // is ready to use. If the status is FAILED you can see additional information 9837 // about why the classifier wasn't trained in the Message field. 9838 Status *string `type:"string" enum:"ModelStatus"` 9839 9840 // The time that the document classifier was submitted for training. 9841 SubmitTime *time.Time `type:"timestamp"` 9842 9843 // The time that training of the document classifier was completed. Indicates 9844 // the time when the training completes on documentation classifiers. You are 9845 // billed for the time interval between this time and the value of TrainingStartTime. 9846 TrainingEndTime *time.Time `type:"timestamp"` 9847 9848 // Indicates the time when the training starts on documentation classifiers. 9849 // You are billed for the time interval between this time and the value of TrainingEndTime. 9850 TrainingStartTime *time.Time `type:"timestamp"` 9851 9852 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 9853 // to encrypt data on the storage volume attached to the ML compute instance(s) 9854 // that process the analysis job. The VolumeKmsKeyId can be either of the following 9855 // formats: 9856 // 9857 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 9858 // 9859 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 9860 VolumeKmsKeyId *string `type:"string"` 9861 9862 // Configuration parameters for a private Virtual Private Cloud (VPC) containing 9863 // the resources you are using for your custom classifier. For more information, 9864 // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 9865 VpcConfig *VpcConfig `type:"structure"` 9866} 9867 9868// String returns the string representation 9869func (s DocumentClassifierProperties) String() string { 9870 return awsutil.Prettify(s) 9871} 9872 9873// GoString returns the string representation 9874func (s DocumentClassifierProperties) GoString() string { 9875 return s.String() 9876} 9877 9878// SetClassifierMetadata sets the ClassifierMetadata field's value. 9879func (s *DocumentClassifierProperties) SetClassifierMetadata(v *ClassifierMetadata) *DocumentClassifierProperties { 9880 s.ClassifierMetadata = v 9881 return s 9882} 9883 9884// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 9885func (s *DocumentClassifierProperties) SetDataAccessRoleArn(v string) *DocumentClassifierProperties { 9886 s.DataAccessRoleArn = &v 9887 return s 9888} 9889 9890// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. 9891func (s *DocumentClassifierProperties) SetDocumentClassifierArn(v string) *DocumentClassifierProperties { 9892 s.DocumentClassifierArn = &v 9893 return s 9894} 9895 9896// SetEndTime sets the EndTime field's value. 9897func (s *DocumentClassifierProperties) SetEndTime(v time.Time) *DocumentClassifierProperties { 9898 s.EndTime = &v 9899 return s 9900} 9901 9902// SetInputDataConfig sets the InputDataConfig field's value. 9903func (s *DocumentClassifierProperties) SetInputDataConfig(v *DocumentClassifierInputDataConfig) *DocumentClassifierProperties { 9904 s.InputDataConfig = v 9905 return s 9906} 9907 9908// SetLanguageCode sets the LanguageCode field's value. 9909func (s *DocumentClassifierProperties) SetLanguageCode(v string) *DocumentClassifierProperties { 9910 s.LanguageCode = &v 9911 return s 9912} 9913 9914// SetMessage sets the Message field's value. 9915func (s *DocumentClassifierProperties) SetMessage(v string) *DocumentClassifierProperties { 9916 s.Message = &v 9917 return s 9918} 9919 9920// SetMode sets the Mode field's value. 9921func (s *DocumentClassifierProperties) SetMode(v string) *DocumentClassifierProperties { 9922 s.Mode = &v 9923 return s 9924} 9925 9926// SetModelKmsKeyId sets the ModelKmsKeyId field's value. 9927func (s *DocumentClassifierProperties) SetModelKmsKeyId(v string) *DocumentClassifierProperties { 9928 s.ModelKmsKeyId = &v 9929 return s 9930} 9931 9932// SetOutputDataConfig sets the OutputDataConfig field's value. 9933func (s *DocumentClassifierProperties) SetOutputDataConfig(v *DocumentClassifierOutputDataConfig) *DocumentClassifierProperties { 9934 s.OutputDataConfig = v 9935 return s 9936} 9937 9938// SetStatus sets the Status field's value. 9939func (s *DocumentClassifierProperties) SetStatus(v string) *DocumentClassifierProperties { 9940 s.Status = &v 9941 return s 9942} 9943 9944// SetSubmitTime sets the SubmitTime field's value. 9945func (s *DocumentClassifierProperties) SetSubmitTime(v time.Time) *DocumentClassifierProperties { 9946 s.SubmitTime = &v 9947 return s 9948} 9949 9950// SetTrainingEndTime sets the TrainingEndTime field's value. 9951func (s *DocumentClassifierProperties) SetTrainingEndTime(v time.Time) *DocumentClassifierProperties { 9952 s.TrainingEndTime = &v 9953 return s 9954} 9955 9956// SetTrainingStartTime sets the TrainingStartTime field's value. 9957func (s *DocumentClassifierProperties) SetTrainingStartTime(v time.Time) *DocumentClassifierProperties { 9958 s.TrainingStartTime = &v 9959 return s 9960} 9961 9962// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 9963func (s *DocumentClassifierProperties) SetVolumeKmsKeyId(v string) *DocumentClassifierProperties { 9964 s.VolumeKmsKeyId = &v 9965 return s 9966} 9967 9968// SetVpcConfig sets the VpcConfig field's value. 9969func (s *DocumentClassifierProperties) SetVpcConfig(v *VpcConfig) *DocumentClassifierProperties { 9970 s.VpcConfig = v 9971 return s 9972} 9973 9974// Specifies one of the label or labels that categorize the document being analyzed. 9975type DocumentLabel struct { 9976 _ struct{} `type:"structure"` 9977 9978 // The name of the label. 9979 Name *string `min:"1" type:"string"` 9980 9981 // The confidence score that Amazon Comprehend has this label correctly attributed. 9982 Score *float64 `type:"float"` 9983} 9984 9985// String returns the string representation 9986func (s DocumentLabel) String() string { 9987 return awsutil.Prettify(s) 9988} 9989 9990// GoString returns the string representation 9991func (s DocumentLabel) GoString() string { 9992 return s.String() 9993} 9994 9995// SetName sets the Name field's value. 9996func (s *DocumentLabel) SetName(v string) *DocumentLabel { 9997 s.Name = &v 9998 return s 9999} 10000 10001// SetScore sets the Score field's value. 10002func (s *DocumentLabel) SetScore(v float64) *DocumentLabel { 10003 s.Score = &v 10004 return s 10005} 10006 10007// Returns the code for the dominant language in the input text and the level 10008// of confidence that Amazon Comprehend has in the accuracy of the detection. 10009type DominantLanguage struct { 10010 _ struct{} `type:"structure"` 10011 10012 // The RFC 5646 language code for the dominant language. For more information 10013 // about RFC 5646, see Tags for Identifying Languages (https://tools.ietf.org/html/rfc5646) 10014 // on the IETF Tools web site. 10015 LanguageCode *string `min:"1" type:"string"` 10016 10017 // The level of confidence that Amazon Comprehend has in the accuracy of the 10018 // detection. 10019 Score *float64 `type:"float"` 10020} 10021 10022// String returns the string representation 10023func (s DominantLanguage) String() string { 10024 return awsutil.Prettify(s) 10025} 10026 10027// GoString returns the string representation 10028func (s DominantLanguage) GoString() string { 10029 return s.String() 10030} 10031 10032// SetLanguageCode sets the LanguageCode field's value. 10033func (s *DominantLanguage) SetLanguageCode(v string) *DominantLanguage { 10034 s.LanguageCode = &v 10035 return s 10036} 10037 10038// SetScore sets the Score field's value. 10039func (s *DominantLanguage) SetScore(v float64) *DominantLanguage { 10040 s.Score = &v 10041 return s 10042} 10043 10044// Provides information for filtering a list of dominant language detection 10045// jobs. For more information, see the operation. 10046type DominantLanguageDetectionJobFilter struct { 10047 _ struct{} `type:"structure"` 10048 10049 // Filters on the name of the job. 10050 JobName *string `min:"1" type:"string"` 10051 10052 // Filters the list of jobs based on job status. Returns only jobs with the 10053 // specified status. 10054 JobStatus *string `type:"string" enum:"JobStatus"` 10055 10056 // Filters the list of jobs based on the time that the job was submitted for 10057 // processing. Returns only jobs submitted after the specified time. Jobs are 10058 // returned in descending order, newest to oldest. 10059 SubmitTimeAfter *time.Time `type:"timestamp"` 10060 10061 // Filters the list of jobs based on the time that the job was submitted for 10062 // processing. Returns only jobs submitted before the specified time. Jobs are 10063 // returned in ascending order, oldest to newest. 10064 SubmitTimeBefore *time.Time `type:"timestamp"` 10065} 10066 10067// String returns the string representation 10068func (s DominantLanguageDetectionJobFilter) String() string { 10069 return awsutil.Prettify(s) 10070} 10071 10072// GoString returns the string representation 10073func (s DominantLanguageDetectionJobFilter) GoString() string { 10074 return s.String() 10075} 10076 10077// Validate inspects the fields of the type to determine if they are valid. 10078func (s *DominantLanguageDetectionJobFilter) Validate() error { 10079 invalidParams := request.ErrInvalidParams{Context: "DominantLanguageDetectionJobFilter"} 10080 if s.JobName != nil && len(*s.JobName) < 1 { 10081 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 10082 } 10083 10084 if invalidParams.Len() > 0 { 10085 return invalidParams 10086 } 10087 return nil 10088} 10089 10090// SetJobName sets the JobName field's value. 10091func (s *DominantLanguageDetectionJobFilter) SetJobName(v string) *DominantLanguageDetectionJobFilter { 10092 s.JobName = &v 10093 return s 10094} 10095 10096// SetJobStatus sets the JobStatus field's value. 10097func (s *DominantLanguageDetectionJobFilter) SetJobStatus(v string) *DominantLanguageDetectionJobFilter { 10098 s.JobStatus = &v 10099 return s 10100} 10101 10102// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 10103func (s *DominantLanguageDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *DominantLanguageDetectionJobFilter { 10104 s.SubmitTimeAfter = &v 10105 return s 10106} 10107 10108// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 10109func (s *DominantLanguageDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *DominantLanguageDetectionJobFilter { 10110 s.SubmitTimeBefore = &v 10111 return s 10112} 10113 10114// Provides information about a dominant language detection job. 10115type DominantLanguageDetectionJobProperties struct { 10116 _ struct{} `type:"structure"` 10117 10118 // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to 10119 // your input data. 10120 DataAccessRoleArn *string `min:"20" type:"string"` 10121 10122 // The time that the dominant language detection job completed. 10123 EndTime *time.Time `type:"timestamp"` 10124 10125 // The input data configuration that you supplied when you created the dominant 10126 // language detection job. 10127 InputDataConfig *InputDataConfig `type:"structure"` 10128 10129 // The identifier assigned to the dominant language detection job. 10130 JobId *string `min:"1" type:"string"` 10131 10132 // The name that you assigned to the dominant language detection job. 10133 JobName *string `min:"1" type:"string"` 10134 10135 // The current status of the dominant language detection job. If the status 10136 // is FAILED, the Message field shows the reason for the failure. 10137 JobStatus *string `type:"string" enum:"JobStatus"` 10138 10139 // A description for the status of a job. 10140 Message *string `type:"string"` 10141 10142 // The output data configuration that you supplied when you created the dominant 10143 // language detection job. 10144 OutputDataConfig *OutputDataConfig `type:"structure"` 10145 10146 // The time that the dominant language detection job was submitted for processing. 10147 SubmitTime *time.Time `type:"timestamp"` 10148 10149 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 10150 // to encrypt data on the storage volume attached to the ML compute instance(s) 10151 // that process the analysis job. The VolumeKmsKeyId can be either of the following 10152 // formats: 10153 // 10154 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 10155 // 10156 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 10157 VolumeKmsKeyId *string `type:"string"` 10158 10159 // Configuration parameters for a private Virtual Private Cloud (VPC) containing 10160 // the resources you are using for your dominant language detection job. For 10161 // more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 10162 VpcConfig *VpcConfig `type:"structure"` 10163} 10164 10165// String returns the string representation 10166func (s DominantLanguageDetectionJobProperties) String() string { 10167 return awsutil.Prettify(s) 10168} 10169 10170// GoString returns the string representation 10171func (s DominantLanguageDetectionJobProperties) GoString() string { 10172 return s.String() 10173} 10174 10175// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 10176func (s *DominantLanguageDetectionJobProperties) SetDataAccessRoleArn(v string) *DominantLanguageDetectionJobProperties { 10177 s.DataAccessRoleArn = &v 10178 return s 10179} 10180 10181// SetEndTime sets the EndTime field's value. 10182func (s *DominantLanguageDetectionJobProperties) SetEndTime(v time.Time) *DominantLanguageDetectionJobProperties { 10183 s.EndTime = &v 10184 return s 10185} 10186 10187// SetInputDataConfig sets the InputDataConfig field's value. 10188func (s *DominantLanguageDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *DominantLanguageDetectionJobProperties { 10189 s.InputDataConfig = v 10190 return s 10191} 10192 10193// SetJobId sets the JobId field's value. 10194func (s *DominantLanguageDetectionJobProperties) SetJobId(v string) *DominantLanguageDetectionJobProperties { 10195 s.JobId = &v 10196 return s 10197} 10198 10199// SetJobName sets the JobName field's value. 10200func (s *DominantLanguageDetectionJobProperties) SetJobName(v string) *DominantLanguageDetectionJobProperties { 10201 s.JobName = &v 10202 return s 10203} 10204 10205// SetJobStatus sets the JobStatus field's value. 10206func (s *DominantLanguageDetectionJobProperties) SetJobStatus(v string) *DominantLanguageDetectionJobProperties { 10207 s.JobStatus = &v 10208 return s 10209} 10210 10211// SetMessage sets the Message field's value. 10212func (s *DominantLanguageDetectionJobProperties) SetMessage(v string) *DominantLanguageDetectionJobProperties { 10213 s.Message = &v 10214 return s 10215} 10216 10217// SetOutputDataConfig sets the OutputDataConfig field's value. 10218func (s *DominantLanguageDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *DominantLanguageDetectionJobProperties { 10219 s.OutputDataConfig = v 10220 return s 10221} 10222 10223// SetSubmitTime sets the SubmitTime field's value. 10224func (s *DominantLanguageDetectionJobProperties) SetSubmitTime(v time.Time) *DominantLanguageDetectionJobProperties { 10225 s.SubmitTime = &v 10226 return s 10227} 10228 10229// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 10230func (s *DominantLanguageDetectionJobProperties) SetVolumeKmsKeyId(v string) *DominantLanguageDetectionJobProperties { 10231 s.VolumeKmsKeyId = &v 10232 return s 10233} 10234 10235// SetVpcConfig sets the VpcConfig field's value. 10236func (s *DominantLanguageDetectionJobProperties) SetVpcConfig(v *VpcConfig) *DominantLanguageDetectionJobProperties { 10237 s.VpcConfig = v 10238 return s 10239} 10240 10241// The filter used to determine which endpoints are returned. You can filter 10242// jobs on their name, model, status, or the date and time that they were created. 10243// You can only set one filter at a time. 10244type EndpointFilter struct { 10245 _ struct{} `type:"structure"` 10246 10247 // Specifies a date after which the returned endpoint or endpoints were created. 10248 CreationTimeAfter *time.Time `type:"timestamp"` 10249 10250 // Specifies a date before which the returned endpoint or endpoints were created. 10251 CreationTimeBefore *time.Time `type:"timestamp"` 10252 10253 // The Amazon Resource Number (ARN) of the model to which the endpoint is attached. 10254 ModelArn *string `type:"string"` 10255 10256 // Specifies the status of the endpoint being returned. Possible values are: 10257 // Creating, Ready, Updating, Deleting, Failed. 10258 Status *string `type:"string" enum:"EndpointStatus"` 10259} 10260 10261// String returns the string representation 10262func (s EndpointFilter) String() string { 10263 return awsutil.Prettify(s) 10264} 10265 10266// GoString returns the string representation 10267func (s EndpointFilter) GoString() string { 10268 return s.String() 10269} 10270 10271// SetCreationTimeAfter sets the CreationTimeAfter field's value. 10272func (s *EndpointFilter) SetCreationTimeAfter(v time.Time) *EndpointFilter { 10273 s.CreationTimeAfter = &v 10274 return s 10275} 10276 10277// SetCreationTimeBefore sets the CreationTimeBefore field's value. 10278func (s *EndpointFilter) SetCreationTimeBefore(v time.Time) *EndpointFilter { 10279 s.CreationTimeBefore = &v 10280 return s 10281} 10282 10283// SetModelArn sets the ModelArn field's value. 10284func (s *EndpointFilter) SetModelArn(v string) *EndpointFilter { 10285 s.ModelArn = &v 10286 return s 10287} 10288 10289// SetStatus sets the Status field's value. 10290func (s *EndpointFilter) SetStatus(v string) *EndpointFilter { 10291 s.Status = &v 10292 return s 10293} 10294 10295// Specifies information about the specified endpoint. 10296type EndpointProperties struct { 10297 _ struct{} `type:"structure"` 10298 10299 // The creation date and time of the endpoint. 10300 CreationTime *time.Time `type:"timestamp"` 10301 10302 // The number of inference units currently used by the model using this endpoint. 10303 CurrentInferenceUnits *int64 `min:"1" type:"integer"` 10304 10305 // The Amazon Resource Name (ARN) of the AWS identity and Access Management 10306 // (IAM) role that grants Amazon Comprehend read access to trained custom models 10307 // encrypted with a customer managed key (ModelKmsKeyId). 10308 DataAccessRoleArn *string `min:"20" type:"string"` 10309 10310 // The desired number of inference units to be used by the model using this 10311 // endpoint. Each inference unit represents of a throughput of 100 characters 10312 // per second. 10313 DesiredInferenceUnits *int64 `min:"1" type:"integer"` 10314 10315 // The Amazon Resource Number (ARN) of the endpoint. 10316 EndpointArn *string `type:"string"` 10317 10318 // The date and time that the endpoint was last modified. 10319 LastModifiedTime *time.Time `type:"timestamp"` 10320 10321 // Specifies a reason for failure in cases of Failed status. 10322 Message *string `type:"string"` 10323 10324 // The Amazon Resource Number (ARN) of the model to which the endpoint is attached. 10325 ModelArn *string `type:"string"` 10326 10327 // Specifies the status of the endpoint. Because the endpoint updates and creation 10328 // are asynchronous, so customers will need to wait for the endpoint to be Ready 10329 // status before making inference requests. 10330 Status *string `type:"string" enum:"EndpointStatus"` 10331} 10332 10333// String returns the string representation 10334func (s EndpointProperties) String() string { 10335 return awsutil.Prettify(s) 10336} 10337 10338// GoString returns the string representation 10339func (s EndpointProperties) GoString() string { 10340 return s.String() 10341} 10342 10343// SetCreationTime sets the CreationTime field's value. 10344func (s *EndpointProperties) SetCreationTime(v time.Time) *EndpointProperties { 10345 s.CreationTime = &v 10346 return s 10347} 10348 10349// SetCurrentInferenceUnits sets the CurrentInferenceUnits field's value. 10350func (s *EndpointProperties) SetCurrentInferenceUnits(v int64) *EndpointProperties { 10351 s.CurrentInferenceUnits = &v 10352 return s 10353} 10354 10355// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 10356func (s *EndpointProperties) SetDataAccessRoleArn(v string) *EndpointProperties { 10357 s.DataAccessRoleArn = &v 10358 return s 10359} 10360 10361// SetDesiredInferenceUnits sets the DesiredInferenceUnits field's value. 10362func (s *EndpointProperties) SetDesiredInferenceUnits(v int64) *EndpointProperties { 10363 s.DesiredInferenceUnits = &v 10364 return s 10365} 10366 10367// SetEndpointArn sets the EndpointArn field's value. 10368func (s *EndpointProperties) SetEndpointArn(v string) *EndpointProperties { 10369 s.EndpointArn = &v 10370 return s 10371} 10372 10373// SetLastModifiedTime sets the LastModifiedTime field's value. 10374func (s *EndpointProperties) SetLastModifiedTime(v time.Time) *EndpointProperties { 10375 s.LastModifiedTime = &v 10376 return s 10377} 10378 10379// SetMessage sets the Message field's value. 10380func (s *EndpointProperties) SetMessage(v string) *EndpointProperties { 10381 s.Message = &v 10382 return s 10383} 10384 10385// SetModelArn sets the ModelArn field's value. 10386func (s *EndpointProperties) SetModelArn(v string) *EndpointProperties { 10387 s.ModelArn = &v 10388 return s 10389} 10390 10391// SetStatus sets the Status field's value. 10392func (s *EndpointProperties) SetStatus(v string) *EndpointProperties { 10393 s.Status = &v 10394 return s 10395} 10396 10397// Provides information for filtering a list of dominant language detection 10398// jobs. For more information, see the operation. 10399type EntitiesDetectionJobFilter struct { 10400 _ struct{} `type:"structure"` 10401 10402 // Filters on the name of the job. 10403 JobName *string `min:"1" type:"string"` 10404 10405 // Filters the list of jobs based on job status. Returns only jobs with the 10406 // specified status. 10407 JobStatus *string `type:"string" enum:"JobStatus"` 10408 10409 // Filters the list of jobs based on the time that the job was submitted for 10410 // processing. Returns only jobs submitted after the specified time. Jobs are 10411 // returned in descending order, newest to oldest. 10412 SubmitTimeAfter *time.Time `type:"timestamp"` 10413 10414 // Filters the list of jobs based on the time that the job was submitted for 10415 // processing. Returns only jobs submitted before the specified time. Jobs are 10416 // returned in ascending order, oldest to newest. 10417 SubmitTimeBefore *time.Time `type:"timestamp"` 10418} 10419 10420// String returns the string representation 10421func (s EntitiesDetectionJobFilter) String() string { 10422 return awsutil.Prettify(s) 10423} 10424 10425// GoString returns the string representation 10426func (s EntitiesDetectionJobFilter) GoString() string { 10427 return s.String() 10428} 10429 10430// Validate inspects the fields of the type to determine if they are valid. 10431func (s *EntitiesDetectionJobFilter) Validate() error { 10432 invalidParams := request.ErrInvalidParams{Context: "EntitiesDetectionJobFilter"} 10433 if s.JobName != nil && len(*s.JobName) < 1 { 10434 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 10435 } 10436 10437 if invalidParams.Len() > 0 { 10438 return invalidParams 10439 } 10440 return nil 10441} 10442 10443// SetJobName sets the JobName field's value. 10444func (s *EntitiesDetectionJobFilter) SetJobName(v string) *EntitiesDetectionJobFilter { 10445 s.JobName = &v 10446 return s 10447} 10448 10449// SetJobStatus sets the JobStatus field's value. 10450func (s *EntitiesDetectionJobFilter) SetJobStatus(v string) *EntitiesDetectionJobFilter { 10451 s.JobStatus = &v 10452 return s 10453} 10454 10455// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 10456func (s *EntitiesDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *EntitiesDetectionJobFilter { 10457 s.SubmitTimeAfter = &v 10458 return s 10459} 10460 10461// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 10462func (s *EntitiesDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *EntitiesDetectionJobFilter { 10463 s.SubmitTimeBefore = &v 10464 return s 10465} 10466 10467// Provides information about an entities detection job. 10468type EntitiesDetectionJobProperties struct { 10469 _ struct{} `type:"structure"` 10470 10471 // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to 10472 // your input data. 10473 DataAccessRoleArn *string `min:"20" type:"string"` 10474 10475 // The time that the entities detection job completed 10476 EndTime *time.Time `type:"timestamp"` 10477 10478 // The Amazon Resource Name (ARN) that identifies the entity recognizer. 10479 EntityRecognizerArn *string `type:"string"` 10480 10481 // The input data configuration that you supplied when you created the entities 10482 // detection job. 10483 InputDataConfig *InputDataConfig `type:"structure"` 10484 10485 // The identifier assigned to the entities detection job. 10486 JobId *string `min:"1" type:"string"` 10487 10488 // The name that you assigned the entities detection job. 10489 JobName *string `min:"1" type:"string"` 10490 10491 // The current status of the entities detection job. If the status is FAILED, 10492 // the Message field shows the reason for the failure. 10493 JobStatus *string `type:"string" enum:"JobStatus"` 10494 10495 // The language code of the input documents. 10496 LanguageCode *string `type:"string" enum:"LanguageCode"` 10497 10498 // A description of the status of a job. 10499 Message *string `type:"string"` 10500 10501 // The output data configuration that you supplied when you created the entities 10502 // detection job. 10503 OutputDataConfig *OutputDataConfig `type:"structure"` 10504 10505 // The time that the entities detection job was submitted for processing. 10506 SubmitTime *time.Time `type:"timestamp"` 10507 10508 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 10509 // to encrypt data on the storage volume attached to the ML compute instance(s) 10510 // that process the analysis job. The VolumeKmsKeyId can be either of the following 10511 // formats: 10512 // 10513 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 10514 // 10515 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 10516 VolumeKmsKeyId *string `type:"string"` 10517 10518 // Configuration parameters for a private Virtual Private Cloud (VPC) containing 10519 // the resources you are using for your entity detection job. For more information, 10520 // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 10521 VpcConfig *VpcConfig `type:"structure"` 10522} 10523 10524// String returns the string representation 10525func (s EntitiesDetectionJobProperties) String() string { 10526 return awsutil.Prettify(s) 10527} 10528 10529// GoString returns the string representation 10530func (s EntitiesDetectionJobProperties) GoString() string { 10531 return s.String() 10532} 10533 10534// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 10535func (s *EntitiesDetectionJobProperties) SetDataAccessRoleArn(v string) *EntitiesDetectionJobProperties { 10536 s.DataAccessRoleArn = &v 10537 return s 10538} 10539 10540// SetEndTime sets the EndTime field's value. 10541func (s *EntitiesDetectionJobProperties) SetEndTime(v time.Time) *EntitiesDetectionJobProperties { 10542 s.EndTime = &v 10543 return s 10544} 10545 10546// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. 10547func (s *EntitiesDetectionJobProperties) SetEntityRecognizerArn(v string) *EntitiesDetectionJobProperties { 10548 s.EntityRecognizerArn = &v 10549 return s 10550} 10551 10552// SetInputDataConfig sets the InputDataConfig field's value. 10553func (s *EntitiesDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *EntitiesDetectionJobProperties { 10554 s.InputDataConfig = v 10555 return s 10556} 10557 10558// SetJobId sets the JobId field's value. 10559func (s *EntitiesDetectionJobProperties) SetJobId(v string) *EntitiesDetectionJobProperties { 10560 s.JobId = &v 10561 return s 10562} 10563 10564// SetJobName sets the JobName field's value. 10565func (s *EntitiesDetectionJobProperties) SetJobName(v string) *EntitiesDetectionJobProperties { 10566 s.JobName = &v 10567 return s 10568} 10569 10570// SetJobStatus sets the JobStatus field's value. 10571func (s *EntitiesDetectionJobProperties) SetJobStatus(v string) *EntitiesDetectionJobProperties { 10572 s.JobStatus = &v 10573 return s 10574} 10575 10576// SetLanguageCode sets the LanguageCode field's value. 10577func (s *EntitiesDetectionJobProperties) SetLanguageCode(v string) *EntitiesDetectionJobProperties { 10578 s.LanguageCode = &v 10579 return s 10580} 10581 10582// SetMessage sets the Message field's value. 10583func (s *EntitiesDetectionJobProperties) SetMessage(v string) *EntitiesDetectionJobProperties { 10584 s.Message = &v 10585 return s 10586} 10587 10588// SetOutputDataConfig sets the OutputDataConfig field's value. 10589func (s *EntitiesDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *EntitiesDetectionJobProperties { 10590 s.OutputDataConfig = v 10591 return s 10592} 10593 10594// SetSubmitTime sets the SubmitTime field's value. 10595func (s *EntitiesDetectionJobProperties) SetSubmitTime(v time.Time) *EntitiesDetectionJobProperties { 10596 s.SubmitTime = &v 10597 return s 10598} 10599 10600// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 10601func (s *EntitiesDetectionJobProperties) SetVolumeKmsKeyId(v string) *EntitiesDetectionJobProperties { 10602 s.VolumeKmsKeyId = &v 10603 return s 10604} 10605 10606// SetVpcConfig sets the VpcConfig field's value. 10607func (s *EntitiesDetectionJobProperties) SetVpcConfig(v *VpcConfig) *EntitiesDetectionJobProperties { 10608 s.VpcConfig = v 10609 return s 10610} 10611 10612// Provides information about an entity. 10613type Entity struct { 10614 _ struct{} `type:"structure"` 10615 10616 // A character offset in the input text that shows where the entity begins (the 10617 // first character is at position 0). The offset returns the position of each 10618 // UTF-8 code point in the string. A code point is the abstract character from 10619 // a particular graphical representation. For example, a multi-byte UTF-8 character 10620 // maps to a single code point. 10621 BeginOffset *int64 `type:"integer"` 10622 10623 // A character offset in the input text that shows where the entity ends. The 10624 // offset returns the position of each UTF-8 code point in the string. A code 10625 // point is the abstract character from a particular graphical representation. 10626 // For example, a multi-byte UTF-8 character maps to a single code point. 10627 EndOffset *int64 `type:"integer"` 10628 10629 // The level of confidence that Amazon Comprehend has in the accuracy of the 10630 // detection. 10631 Score *float64 `type:"float"` 10632 10633 // The text of the entity. 10634 Text *string `min:"1" type:"string"` 10635 10636 // The entity's type. 10637 Type *string `type:"string" enum:"EntityType"` 10638} 10639 10640// String returns the string representation 10641func (s Entity) String() string { 10642 return awsutil.Prettify(s) 10643} 10644 10645// GoString returns the string representation 10646func (s Entity) GoString() string { 10647 return s.String() 10648} 10649 10650// SetBeginOffset sets the BeginOffset field's value. 10651func (s *Entity) SetBeginOffset(v int64) *Entity { 10652 s.BeginOffset = &v 10653 return s 10654} 10655 10656// SetEndOffset sets the EndOffset field's value. 10657func (s *Entity) SetEndOffset(v int64) *Entity { 10658 s.EndOffset = &v 10659 return s 10660} 10661 10662// SetScore sets the Score field's value. 10663func (s *Entity) SetScore(v float64) *Entity { 10664 s.Score = &v 10665 return s 10666} 10667 10668// SetText sets the Text field's value. 10669func (s *Entity) SetText(v string) *Entity { 10670 s.Text = &v 10671 return s 10672} 10673 10674// SetType sets the Type field's value. 10675func (s *Entity) SetType(v string) *Entity { 10676 s.Type = &v 10677 return s 10678} 10679 10680// Specifies one of the label or labels that categorize the personally identifiable 10681// information (PII) entity being analyzed. 10682type EntityLabel struct { 10683 _ struct{} `type:"structure"` 10684 10685 // The name of the label. 10686 Name *string `type:"string" enum:"PiiEntityType"` 10687 10688 // The level of confidence that Amazon Comprehend has in the accuracy of the 10689 // detection. 10690 Score *float64 `type:"float"` 10691} 10692 10693// String returns the string representation 10694func (s EntityLabel) String() string { 10695 return awsutil.Prettify(s) 10696} 10697 10698// GoString returns the string representation 10699func (s EntityLabel) GoString() string { 10700 return s.String() 10701} 10702 10703// SetName sets the Name field's value. 10704func (s *EntityLabel) SetName(v string) *EntityLabel { 10705 s.Name = &v 10706 return s 10707} 10708 10709// SetScore sets the Score field's value. 10710func (s *EntityLabel) SetScore(v float64) *EntityLabel { 10711 s.Score = &v 10712 return s 10713} 10714 10715// Describes the annotations associated with a entity recognizer. 10716type EntityRecognizerAnnotations struct { 10717 _ struct{} `type:"structure"` 10718 10719 // Specifies the Amazon S3 location where the annotations for an entity recognizer 10720 // are located. The URI must be in the same region as the API endpoint that 10721 // you are calling. 10722 // 10723 // S3Uri is a required field 10724 S3Uri *string `type:"string" required:"true"` 10725} 10726 10727// String returns the string representation 10728func (s EntityRecognizerAnnotations) String() string { 10729 return awsutil.Prettify(s) 10730} 10731 10732// GoString returns the string representation 10733func (s EntityRecognizerAnnotations) GoString() string { 10734 return s.String() 10735} 10736 10737// Validate inspects the fields of the type to determine if they are valid. 10738func (s *EntityRecognizerAnnotations) Validate() error { 10739 invalidParams := request.ErrInvalidParams{Context: "EntityRecognizerAnnotations"} 10740 if s.S3Uri == nil { 10741 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 10742 } 10743 10744 if invalidParams.Len() > 0 { 10745 return invalidParams 10746 } 10747 return nil 10748} 10749 10750// SetS3Uri sets the S3Uri field's value. 10751func (s *EntityRecognizerAnnotations) SetS3Uri(v string) *EntityRecognizerAnnotations { 10752 s.S3Uri = &v 10753 return s 10754} 10755 10756// Describes the training documents submitted with an entity recognizer. 10757type EntityRecognizerDocuments struct { 10758 _ struct{} `type:"structure"` 10759 10760 // Specifies the Amazon S3 location where the training documents for an entity 10761 // recognizer are located. The URI must be in the same region as the API endpoint 10762 // that you are calling. 10763 // 10764 // S3Uri is a required field 10765 S3Uri *string `type:"string" required:"true"` 10766} 10767 10768// String returns the string representation 10769func (s EntityRecognizerDocuments) String() string { 10770 return awsutil.Prettify(s) 10771} 10772 10773// GoString returns the string representation 10774func (s EntityRecognizerDocuments) GoString() string { 10775 return s.String() 10776} 10777 10778// Validate inspects the fields of the type to determine if they are valid. 10779func (s *EntityRecognizerDocuments) Validate() error { 10780 invalidParams := request.ErrInvalidParams{Context: "EntityRecognizerDocuments"} 10781 if s.S3Uri == nil { 10782 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 10783 } 10784 10785 if invalidParams.Len() > 0 { 10786 return invalidParams 10787 } 10788 return nil 10789} 10790 10791// SetS3Uri sets the S3Uri field's value. 10792func (s *EntityRecognizerDocuments) SetS3Uri(v string) *EntityRecognizerDocuments { 10793 s.S3Uri = &v 10794 return s 10795} 10796 10797// Describes the entity recognizer submitted with an entity recognizer. 10798type EntityRecognizerEntityList struct { 10799 _ struct{} `type:"structure"` 10800 10801 // Specifies the Amazon S3 location where the entity list is located. The URI 10802 // must be in the same region as the API endpoint that you are calling. 10803 // 10804 // S3Uri is a required field 10805 S3Uri *string `type:"string" required:"true"` 10806} 10807 10808// String returns the string representation 10809func (s EntityRecognizerEntityList) String() string { 10810 return awsutil.Prettify(s) 10811} 10812 10813// GoString returns the string representation 10814func (s EntityRecognizerEntityList) GoString() string { 10815 return s.String() 10816} 10817 10818// Validate inspects the fields of the type to determine if they are valid. 10819func (s *EntityRecognizerEntityList) Validate() error { 10820 invalidParams := request.ErrInvalidParams{Context: "EntityRecognizerEntityList"} 10821 if s.S3Uri == nil { 10822 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 10823 } 10824 10825 if invalidParams.Len() > 0 { 10826 return invalidParams 10827 } 10828 return nil 10829} 10830 10831// SetS3Uri sets the S3Uri field's value. 10832func (s *EntityRecognizerEntityList) SetS3Uri(v string) *EntityRecognizerEntityList { 10833 s.S3Uri = &v 10834 return s 10835} 10836 10837// Detailed information about the accuracy of an entity recognizer. 10838type EntityRecognizerEvaluationMetrics struct { 10839 _ struct{} `type:"structure"` 10840 10841 // A measure of how accurate the recognizer results are for the test data. It 10842 // is derived from the Precision and Recall values. The F1Score is the harmonic 10843 // average of the two scores. The highest score is 1, and the worst score is 10844 // 0. 10845 F1Score *float64 `type:"double"` 10846 10847 // A measure of the usefulness of the recognizer results in the test data. High 10848 // precision means that the recognizer returned substantially more relevant 10849 // results than irrelevant ones. 10850 Precision *float64 `type:"double"` 10851 10852 // A measure of how complete the recognizer results are for the test data. High 10853 // recall means that the recognizer returned most of the relevant results. 10854 Recall *float64 `type:"double"` 10855} 10856 10857// String returns the string representation 10858func (s EntityRecognizerEvaluationMetrics) String() string { 10859 return awsutil.Prettify(s) 10860} 10861 10862// GoString returns the string representation 10863func (s EntityRecognizerEvaluationMetrics) GoString() string { 10864 return s.String() 10865} 10866 10867// SetF1Score sets the F1Score field's value. 10868func (s *EntityRecognizerEvaluationMetrics) SetF1Score(v float64) *EntityRecognizerEvaluationMetrics { 10869 s.F1Score = &v 10870 return s 10871} 10872 10873// SetPrecision sets the Precision field's value. 10874func (s *EntityRecognizerEvaluationMetrics) SetPrecision(v float64) *EntityRecognizerEvaluationMetrics { 10875 s.Precision = &v 10876 return s 10877} 10878 10879// SetRecall sets the Recall field's value. 10880func (s *EntityRecognizerEvaluationMetrics) SetRecall(v float64) *EntityRecognizerEvaluationMetrics { 10881 s.Recall = &v 10882 return s 10883} 10884 10885// Provides information for filtering a list of entity recognizers. You can 10886// only specify one filtering parameter in a request. For more information, 10887// see the operation./> 10888type EntityRecognizerFilter struct { 10889 _ struct{} `type:"structure"` 10890 10891 // The status of an entity recognizer. 10892 Status *string `type:"string" enum:"ModelStatus"` 10893 10894 // Filters the list of entities based on the time that the list was submitted 10895 // for processing. Returns only jobs submitted after the specified time. Jobs 10896 // are returned in ascending order, oldest to newest. 10897 SubmitTimeAfter *time.Time `type:"timestamp"` 10898 10899 // Filters the list of entities based on the time that the list was submitted 10900 // for processing. Returns only jobs submitted before the specified time. Jobs 10901 // are returned in descending order, newest to oldest. 10902 SubmitTimeBefore *time.Time `type:"timestamp"` 10903} 10904 10905// String returns the string representation 10906func (s EntityRecognizerFilter) String() string { 10907 return awsutil.Prettify(s) 10908} 10909 10910// GoString returns the string representation 10911func (s EntityRecognizerFilter) GoString() string { 10912 return s.String() 10913} 10914 10915// SetStatus sets the Status field's value. 10916func (s *EntityRecognizerFilter) SetStatus(v string) *EntityRecognizerFilter { 10917 s.Status = &v 10918 return s 10919} 10920 10921// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 10922func (s *EntityRecognizerFilter) SetSubmitTimeAfter(v time.Time) *EntityRecognizerFilter { 10923 s.SubmitTimeAfter = &v 10924 return s 10925} 10926 10927// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 10928func (s *EntityRecognizerFilter) SetSubmitTimeBefore(v time.Time) *EntityRecognizerFilter { 10929 s.SubmitTimeBefore = &v 10930 return s 10931} 10932 10933// Specifies the format and location of the input data. 10934type EntityRecognizerInputDataConfig struct { 10935 _ struct{} `type:"structure"` 10936 10937 // The S3 location of the CSV file that annotates your training documents. 10938 Annotations *EntityRecognizerAnnotations `type:"structure"` 10939 10940 // A list of augmented manifest files that provide training data for your custom 10941 // model. An augmented manifest file is a labeled dataset that is produced by 10942 // Amazon SageMaker Ground Truth. 10943 // 10944 // This parameter is required if you set DataFormat to AUGMENTED_MANIFEST. 10945 AugmentedManifests []*AugmentedManifestsListItem `type:"list"` 10946 10947 // The format of your training data: 10948 // 10949 // * COMPREHEND_CSV: A CSV file that supplements your training documents. 10950 // The CSV file contains information about the custom entities that your 10951 // trained model will detect. The required format of the file depends on 10952 // whether you are providing annotations or an entity list. If you use this 10953 // value, you must provide your CSV file by using either the Annotations 10954 // or EntityList parameters. You must provide your training documents by 10955 // using the Documents parameter. 10956 // 10957 // * AUGMENTED_MANIFEST: A labeled dataset that is produced by Amazon SageMaker 10958 // Ground Truth. This file is in JSON lines format. Each line is a complete 10959 // JSON object that contains a training document and its labels. Each label 10960 // annotates a named entity in the training document. If you use this value, 10961 // you must provide the AugmentedManifests parameter in your request. 10962 // 10963 // If you don't specify a value, Amazon Comprehend uses COMPREHEND_CSV as the 10964 // default. 10965 DataFormat *string `type:"string" enum:"EntityRecognizerDataFormat"` 10966 10967 // The S3 location of the folder that contains the training documents for your 10968 // custom entity recognizer. 10969 // 10970 // This parameter is required if you set DataFormat to COMPREHEND_CSV. 10971 Documents *EntityRecognizerDocuments `type:"structure"` 10972 10973 // The S3 location of the CSV file that has the entity list for your custom 10974 // entity recognizer. 10975 EntityList *EntityRecognizerEntityList `type:"structure"` 10976 10977 // The entity types in the labeled training data that Amazon Comprehend uses 10978 // to train the custom entity recognizer. Any entity types that you don't specify 10979 // are ignored. 10980 // 10981 // A maximum of 25 entity types can be used at one time to train an entity recognizer. 10982 // Entity types must not contain the following invalid characters: \n (line 10983 // break), \\n (escaped line break), \r (carriage return), \\r (escaped carriage 10984 // return), \t (tab), \\t (escaped tab), space, and , (comma). 10985 // 10986 // EntityTypes is a required field 10987 EntityTypes []*EntityTypesListItem `type:"list" required:"true"` 10988} 10989 10990// String returns the string representation 10991func (s EntityRecognizerInputDataConfig) String() string { 10992 return awsutil.Prettify(s) 10993} 10994 10995// GoString returns the string representation 10996func (s EntityRecognizerInputDataConfig) GoString() string { 10997 return s.String() 10998} 10999 11000// Validate inspects the fields of the type to determine if they are valid. 11001func (s *EntityRecognizerInputDataConfig) Validate() error { 11002 invalidParams := request.ErrInvalidParams{Context: "EntityRecognizerInputDataConfig"} 11003 if s.EntityTypes == nil { 11004 invalidParams.Add(request.NewErrParamRequired("EntityTypes")) 11005 } 11006 if s.Annotations != nil { 11007 if err := s.Annotations.Validate(); err != nil { 11008 invalidParams.AddNested("Annotations", err.(request.ErrInvalidParams)) 11009 } 11010 } 11011 if s.AugmentedManifests != nil { 11012 for i, v := range s.AugmentedManifests { 11013 if v == nil { 11014 continue 11015 } 11016 if err := v.Validate(); err != nil { 11017 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AugmentedManifests", i), err.(request.ErrInvalidParams)) 11018 } 11019 } 11020 } 11021 if s.Documents != nil { 11022 if err := s.Documents.Validate(); err != nil { 11023 invalidParams.AddNested("Documents", err.(request.ErrInvalidParams)) 11024 } 11025 } 11026 if s.EntityList != nil { 11027 if err := s.EntityList.Validate(); err != nil { 11028 invalidParams.AddNested("EntityList", err.(request.ErrInvalidParams)) 11029 } 11030 } 11031 if s.EntityTypes != nil { 11032 for i, v := range s.EntityTypes { 11033 if v == nil { 11034 continue 11035 } 11036 if err := v.Validate(); err != nil { 11037 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EntityTypes", i), err.(request.ErrInvalidParams)) 11038 } 11039 } 11040 } 11041 11042 if invalidParams.Len() > 0 { 11043 return invalidParams 11044 } 11045 return nil 11046} 11047 11048// SetAnnotations sets the Annotations field's value. 11049func (s *EntityRecognizerInputDataConfig) SetAnnotations(v *EntityRecognizerAnnotations) *EntityRecognizerInputDataConfig { 11050 s.Annotations = v 11051 return s 11052} 11053 11054// SetAugmentedManifests sets the AugmentedManifests field's value. 11055func (s *EntityRecognizerInputDataConfig) SetAugmentedManifests(v []*AugmentedManifestsListItem) *EntityRecognizerInputDataConfig { 11056 s.AugmentedManifests = v 11057 return s 11058} 11059 11060// SetDataFormat sets the DataFormat field's value. 11061func (s *EntityRecognizerInputDataConfig) SetDataFormat(v string) *EntityRecognizerInputDataConfig { 11062 s.DataFormat = &v 11063 return s 11064} 11065 11066// SetDocuments sets the Documents field's value. 11067func (s *EntityRecognizerInputDataConfig) SetDocuments(v *EntityRecognizerDocuments) *EntityRecognizerInputDataConfig { 11068 s.Documents = v 11069 return s 11070} 11071 11072// SetEntityList sets the EntityList field's value. 11073func (s *EntityRecognizerInputDataConfig) SetEntityList(v *EntityRecognizerEntityList) *EntityRecognizerInputDataConfig { 11074 s.EntityList = v 11075 return s 11076} 11077 11078// SetEntityTypes sets the EntityTypes field's value. 11079func (s *EntityRecognizerInputDataConfig) SetEntityTypes(v []*EntityTypesListItem) *EntityRecognizerInputDataConfig { 11080 s.EntityTypes = v 11081 return s 11082} 11083 11084// Detailed information about an entity recognizer. 11085type EntityRecognizerMetadata struct { 11086 _ struct{} `type:"structure" sensitive:"true"` 11087 11088 // Entity types from the metadata of an entity recognizer. 11089 EntityTypes []*EntityRecognizerMetadataEntityTypesListItem `type:"list"` 11090 11091 // Detailed information about the accuracy of an entity recognizer. 11092 EvaluationMetrics *EntityRecognizerEvaluationMetrics `type:"structure"` 11093 11094 // The number of documents in the input data that were used to test the entity 11095 // recognizer. Typically this is 10 to 20 percent of the input documents. 11096 NumberOfTestDocuments *int64 `type:"integer"` 11097 11098 // The number of documents in the input data that were used to train the entity 11099 // recognizer. Typically this is 80 to 90 percent of the input documents. 11100 NumberOfTrainedDocuments *int64 `type:"integer"` 11101} 11102 11103// String returns the string representation 11104func (s EntityRecognizerMetadata) String() string { 11105 return awsutil.Prettify(s) 11106} 11107 11108// GoString returns the string representation 11109func (s EntityRecognizerMetadata) GoString() string { 11110 return s.String() 11111} 11112 11113// SetEntityTypes sets the EntityTypes field's value. 11114func (s *EntityRecognizerMetadata) SetEntityTypes(v []*EntityRecognizerMetadataEntityTypesListItem) *EntityRecognizerMetadata { 11115 s.EntityTypes = v 11116 return s 11117} 11118 11119// SetEvaluationMetrics sets the EvaluationMetrics field's value. 11120func (s *EntityRecognizerMetadata) SetEvaluationMetrics(v *EntityRecognizerEvaluationMetrics) *EntityRecognizerMetadata { 11121 s.EvaluationMetrics = v 11122 return s 11123} 11124 11125// SetNumberOfTestDocuments sets the NumberOfTestDocuments field's value. 11126func (s *EntityRecognizerMetadata) SetNumberOfTestDocuments(v int64) *EntityRecognizerMetadata { 11127 s.NumberOfTestDocuments = &v 11128 return s 11129} 11130 11131// SetNumberOfTrainedDocuments sets the NumberOfTrainedDocuments field's value. 11132func (s *EntityRecognizerMetadata) SetNumberOfTrainedDocuments(v int64) *EntityRecognizerMetadata { 11133 s.NumberOfTrainedDocuments = &v 11134 return s 11135} 11136 11137// Individual item from the list of entity types in the metadata of an entity 11138// recognizer. 11139type EntityRecognizerMetadataEntityTypesListItem struct { 11140 _ struct{} `type:"structure"` 11141 11142 // Detailed information about the accuracy of the entity recognizer for a specific 11143 // item on the list of entity types. 11144 EvaluationMetrics *EntityTypesEvaluationMetrics `type:"structure"` 11145 11146 // Indicates the number of times the given entity type was seen in the training 11147 // data. 11148 NumberOfTrainMentions *int64 `type:"integer"` 11149 11150 // Type of entity from the list of entity types in the metadata of an entity 11151 // recognizer. 11152 Type *string `type:"string"` 11153} 11154 11155// String returns the string representation 11156func (s EntityRecognizerMetadataEntityTypesListItem) String() string { 11157 return awsutil.Prettify(s) 11158} 11159 11160// GoString returns the string representation 11161func (s EntityRecognizerMetadataEntityTypesListItem) GoString() string { 11162 return s.String() 11163} 11164 11165// SetEvaluationMetrics sets the EvaluationMetrics field's value. 11166func (s *EntityRecognizerMetadataEntityTypesListItem) SetEvaluationMetrics(v *EntityTypesEvaluationMetrics) *EntityRecognizerMetadataEntityTypesListItem { 11167 s.EvaluationMetrics = v 11168 return s 11169} 11170 11171// SetNumberOfTrainMentions sets the NumberOfTrainMentions field's value. 11172func (s *EntityRecognizerMetadataEntityTypesListItem) SetNumberOfTrainMentions(v int64) *EntityRecognizerMetadataEntityTypesListItem { 11173 s.NumberOfTrainMentions = &v 11174 return s 11175} 11176 11177// SetType sets the Type field's value. 11178func (s *EntityRecognizerMetadataEntityTypesListItem) SetType(v string) *EntityRecognizerMetadataEntityTypesListItem { 11179 s.Type = &v 11180 return s 11181} 11182 11183// Describes information about an entity recognizer. 11184type EntityRecognizerProperties struct { 11185 _ struct{} `type:"structure"` 11186 11187 // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role 11188 // that grants Amazon Comprehend read access to your input data. 11189 DataAccessRoleArn *string `min:"20" type:"string"` 11190 11191 // The time that the recognizer creation completed. 11192 EndTime *time.Time `type:"timestamp"` 11193 11194 // The Amazon Resource Name (ARN) that identifies the entity recognizer. 11195 EntityRecognizerArn *string `type:"string"` 11196 11197 // The input data properties of an entity recognizer. 11198 InputDataConfig *EntityRecognizerInputDataConfig `type:"structure"` 11199 11200 // The language of the input documents. All documents must be in the same language. 11201 // Only English ("en") is currently supported. 11202 LanguageCode *string `type:"string" enum:"LanguageCode"` 11203 11204 // A description of the status of the recognizer. 11205 Message *string `type:"string"` 11206 11207 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 11208 // to encrypt trained custom models. The ModelKmsKeyId can be either of the 11209 // following formats: 11210 // 11211 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 11212 // 11213 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 11214 ModelKmsKeyId *string `type:"string"` 11215 11216 // Provides information about an entity recognizer. 11217 RecognizerMetadata *EntityRecognizerMetadata `type:"structure" sensitive:"true"` 11218 11219 // Provides the status of the entity recognizer. 11220 Status *string `type:"string" enum:"ModelStatus"` 11221 11222 // The time that the recognizer was submitted for processing. 11223 SubmitTime *time.Time `type:"timestamp"` 11224 11225 // The time that training of the entity recognizer was completed. 11226 TrainingEndTime *time.Time `type:"timestamp"` 11227 11228 // The time that training of the entity recognizer started. 11229 TrainingStartTime *time.Time `type:"timestamp"` 11230 11231 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 11232 // to encrypt data on the storage volume attached to the ML compute instance(s) 11233 // that process the analysis job. The VolumeKmsKeyId can be either of the following 11234 // formats: 11235 // 11236 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 11237 // 11238 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 11239 VolumeKmsKeyId *string `type:"string"` 11240 11241 // Configuration parameters for a private Virtual Private Cloud (VPC) containing 11242 // the resources you are using for your custom entity recognizer. For more information, 11243 // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 11244 VpcConfig *VpcConfig `type:"structure"` 11245} 11246 11247// String returns the string representation 11248func (s EntityRecognizerProperties) String() string { 11249 return awsutil.Prettify(s) 11250} 11251 11252// GoString returns the string representation 11253func (s EntityRecognizerProperties) GoString() string { 11254 return s.String() 11255} 11256 11257// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 11258func (s *EntityRecognizerProperties) SetDataAccessRoleArn(v string) *EntityRecognizerProperties { 11259 s.DataAccessRoleArn = &v 11260 return s 11261} 11262 11263// SetEndTime sets the EndTime field's value. 11264func (s *EntityRecognizerProperties) SetEndTime(v time.Time) *EntityRecognizerProperties { 11265 s.EndTime = &v 11266 return s 11267} 11268 11269// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. 11270func (s *EntityRecognizerProperties) SetEntityRecognizerArn(v string) *EntityRecognizerProperties { 11271 s.EntityRecognizerArn = &v 11272 return s 11273} 11274 11275// SetInputDataConfig sets the InputDataConfig field's value. 11276func (s *EntityRecognizerProperties) SetInputDataConfig(v *EntityRecognizerInputDataConfig) *EntityRecognizerProperties { 11277 s.InputDataConfig = v 11278 return s 11279} 11280 11281// SetLanguageCode sets the LanguageCode field's value. 11282func (s *EntityRecognizerProperties) SetLanguageCode(v string) *EntityRecognizerProperties { 11283 s.LanguageCode = &v 11284 return s 11285} 11286 11287// SetMessage sets the Message field's value. 11288func (s *EntityRecognizerProperties) SetMessage(v string) *EntityRecognizerProperties { 11289 s.Message = &v 11290 return s 11291} 11292 11293// SetModelKmsKeyId sets the ModelKmsKeyId field's value. 11294func (s *EntityRecognizerProperties) SetModelKmsKeyId(v string) *EntityRecognizerProperties { 11295 s.ModelKmsKeyId = &v 11296 return s 11297} 11298 11299// SetRecognizerMetadata sets the RecognizerMetadata field's value. 11300func (s *EntityRecognizerProperties) SetRecognizerMetadata(v *EntityRecognizerMetadata) *EntityRecognizerProperties { 11301 s.RecognizerMetadata = v 11302 return s 11303} 11304 11305// SetStatus sets the Status field's value. 11306func (s *EntityRecognizerProperties) SetStatus(v string) *EntityRecognizerProperties { 11307 s.Status = &v 11308 return s 11309} 11310 11311// SetSubmitTime sets the SubmitTime field's value. 11312func (s *EntityRecognizerProperties) SetSubmitTime(v time.Time) *EntityRecognizerProperties { 11313 s.SubmitTime = &v 11314 return s 11315} 11316 11317// SetTrainingEndTime sets the TrainingEndTime field's value. 11318func (s *EntityRecognizerProperties) SetTrainingEndTime(v time.Time) *EntityRecognizerProperties { 11319 s.TrainingEndTime = &v 11320 return s 11321} 11322 11323// SetTrainingStartTime sets the TrainingStartTime field's value. 11324func (s *EntityRecognizerProperties) SetTrainingStartTime(v time.Time) *EntityRecognizerProperties { 11325 s.TrainingStartTime = &v 11326 return s 11327} 11328 11329// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 11330func (s *EntityRecognizerProperties) SetVolumeKmsKeyId(v string) *EntityRecognizerProperties { 11331 s.VolumeKmsKeyId = &v 11332 return s 11333} 11334 11335// SetVpcConfig sets the VpcConfig field's value. 11336func (s *EntityRecognizerProperties) SetVpcConfig(v *VpcConfig) *EntityRecognizerProperties { 11337 s.VpcConfig = v 11338 return s 11339} 11340 11341// Detailed information about the accuracy of an entity recognizer for a specific 11342// entity type. 11343type EntityTypesEvaluationMetrics struct { 11344 _ struct{} `type:"structure"` 11345 11346 // A measure of how accurate the recognizer results are for a specific entity 11347 // type in the test data. It is derived from the Precision and Recall values. 11348 // The F1Score is the harmonic average of the two scores. The highest score 11349 // is 1, and the worst score is 0. 11350 F1Score *float64 `type:"double"` 11351 11352 // A measure of the usefulness of the recognizer results for a specific entity 11353 // type in the test data. High precision means that the recognizer returned 11354 // substantially more relevant results than irrelevant ones. 11355 Precision *float64 `type:"double"` 11356 11357 // A measure of how complete the recognizer results are for a specific entity 11358 // type in the test data. High recall means that the recognizer returned most 11359 // of the relevant results. 11360 Recall *float64 `type:"double"` 11361} 11362 11363// String returns the string representation 11364func (s EntityTypesEvaluationMetrics) String() string { 11365 return awsutil.Prettify(s) 11366} 11367 11368// GoString returns the string representation 11369func (s EntityTypesEvaluationMetrics) GoString() string { 11370 return s.String() 11371} 11372 11373// SetF1Score sets the F1Score field's value. 11374func (s *EntityTypesEvaluationMetrics) SetF1Score(v float64) *EntityTypesEvaluationMetrics { 11375 s.F1Score = &v 11376 return s 11377} 11378 11379// SetPrecision sets the Precision field's value. 11380func (s *EntityTypesEvaluationMetrics) SetPrecision(v float64) *EntityTypesEvaluationMetrics { 11381 s.Precision = &v 11382 return s 11383} 11384 11385// SetRecall sets the Recall field's value. 11386func (s *EntityTypesEvaluationMetrics) SetRecall(v float64) *EntityTypesEvaluationMetrics { 11387 s.Recall = &v 11388 return s 11389} 11390 11391// An entity type within a labeled training dataset that Amazon Comprehend uses 11392// to train a custom entity recognizer. 11393type EntityTypesListItem struct { 11394 _ struct{} `type:"structure"` 11395 11396 // An entity type within a labeled training dataset that Amazon Comprehend uses 11397 // to train a custom entity recognizer. 11398 // 11399 // Entity types must not contain the following invalid characters: \n (line 11400 // break), \\n (escaped line break, \r (carriage return), \\r (escaped carriage 11401 // return), \t (tab), \\t (escaped tab), space, and , (comma). 11402 // 11403 // Type is a required field 11404 Type *string `type:"string" required:"true"` 11405} 11406 11407// String returns the string representation 11408func (s EntityTypesListItem) String() string { 11409 return awsutil.Prettify(s) 11410} 11411 11412// GoString returns the string representation 11413func (s EntityTypesListItem) GoString() string { 11414 return s.String() 11415} 11416 11417// Validate inspects the fields of the type to determine if they are valid. 11418func (s *EntityTypesListItem) Validate() error { 11419 invalidParams := request.ErrInvalidParams{Context: "EntityTypesListItem"} 11420 if s.Type == nil { 11421 invalidParams.Add(request.NewErrParamRequired("Type")) 11422 } 11423 11424 if invalidParams.Len() > 0 { 11425 return invalidParams 11426 } 11427 return nil 11428} 11429 11430// SetType sets the Type field's value. 11431func (s *EntityTypesListItem) SetType(v string) *EntityTypesListItem { 11432 s.Type = &v 11433 return s 11434} 11435 11436// Provides information for filtering a list of event detection jobs. 11437type EventsDetectionJobFilter struct { 11438 _ struct{} `type:"structure"` 11439 11440 // Filters on the name of the events detection job. 11441 JobName *string `min:"1" type:"string"` 11442 11443 // Filters the list of jobs based on job status. Returns only jobs with the 11444 // specified status. 11445 JobStatus *string `type:"string" enum:"JobStatus"` 11446 11447 // Filters the list of jobs based on the time that the job was submitted for 11448 // processing. Returns only jobs submitted after the specified time. Jobs are 11449 // returned in descending order, newest to oldest. 11450 SubmitTimeAfter *time.Time `type:"timestamp"` 11451 11452 // Filters the list of jobs based on the time that the job was submitted for 11453 // processing. Returns only jobs submitted before the specified time. Jobs are 11454 // returned in ascending order, oldest to newest. 11455 SubmitTimeBefore *time.Time `type:"timestamp"` 11456} 11457 11458// String returns the string representation 11459func (s EventsDetectionJobFilter) String() string { 11460 return awsutil.Prettify(s) 11461} 11462 11463// GoString returns the string representation 11464func (s EventsDetectionJobFilter) GoString() string { 11465 return s.String() 11466} 11467 11468// Validate inspects the fields of the type to determine if they are valid. 11469func (s *EventsDetectionJobFilter) Validate() error { 11470 invalidParams := request.ErrInvalidParams{Context: "EventsDetectionJobFilter"} 11471 if s.JobName != nil && len(*s.JobName) < 1 { 11472 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 11473 } 11474 11475 if invalidParams.Len() > 0 { 11476 return invalidParams 11477 } 11478 return nil 11479} 11480 11481// SetJobName sets the JobName field's value. 11482func (s *EventsDetectionJobFilter) SetJobName(v string) *EventsDetectionJobFilter { 11483 s.JobName = &v 11484 return s 11485} 11486 11487// SetJobStatus sets the JobStatus field's value. 11488func (s *EventsDetectionJobFilter) SetJobStatus(v string) *EventsDetectionJobFilter { 11489 s.JobStatus = &v 11490 return s 11491} 11492 11493// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 11494func (s *EventsDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *EventsDetectionJobFilter { 11495 s.SubmitTimeAfter = &v 11496 return s 11497} 11498 11499// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 11500func (s *EventsDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *EventsDetectionJobFilter { 11501 s.SubmitTimeBefore = &v 11502 return s 11503} 11504 11505// Provides information about an events detection job. 11506type EventsDetectionJobProperties struct { 11507 _ struct{} `type:"structure"` 11508 11509 // The Amazon Resource Name (ARN) of the AWS Identify and Access Management 11510 // (IAM) role that grants Amazon Comprehend read access to your input data. 11511 DataAccessRoleArn *string `min:"20" type:"string"` 11512 11513 // The time that the events detection job completed. 11514 EndTime *time.Time `type:"timestamp"` 11515 11516 // The input data configuration that you supplied when you created the events 11517 // detection job. 11518 InputDataConfig *InputDataConfig `type:"structure"` 11519 11520 // The identifier assigned to the events detection job. 11521 JobId *string `min:"1" type:"string"` 11522 11523 // The name you assigned the events detection job. 11524 JobName *string `min:"1" type:"string"` 11525 11526 // The current status of the events detection job. 11527 JobStatus *string `type:"string" enum:"JobStatus"` 11528 11529 // The language code of the input documents. 11530 LanguageCode *string `type:"string" enum:"LanguageCode"` 11531 11532 // A description of the status of the events detection job. 11533 Message *string `type:"string"` 11534 11535 // The output data configuration that you supplied when you created the events 11536 // detection job. 11537 OutputDataConfig *OutputDataConfig `type:"structure"` 11538 11539 // The time that the events detection job was submitted for processing. 11540 SubmitTime *time.Time `type:"timestamp"` 11541 11542 // The types of events that are detected by the job. 11543 TargetEventTypes []*string `min:"1" type:"list"` 11544} 11545 11546// String returns the string representation 11547func (s EventsDetectionJobProperties) String() string { 11548 return awsutil.Prettify(s) 11549} 11550 11551// GoString returns the string representation 11552func (s EventsDetectionJobProperties) GoString() string { 11553 return s.String() 11554} 11555 11556// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 11557func (s *EventsDetectionJobProperties) SetDataAccessRoleArn(v string) *EventsDetectionJobProperties { 11558 s.DataAccessRoleArn = &v 11559 return s 11560} 11561 11562// SetEndTime sets the EndTime field's value. 11563func (s *EventsDetectionJobProperties) SetEndTime(v time.Time) *EventsDetectionJobProperties { 11564 s.EndTime = &v 11565 return s 11566} 11567 11568// SetInputDataConfig sets the InputDataConfig field's value. 11569func (s *EventsDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *EventsDetectionJobProperties { 11570 s.InputDataConfig = v 11571 return s 11572} 11573 11574// SetJobId sets the JobId field's value. 11575func (s *EventsDetectionJobProperties) SetJobId(v string) *EventsDetectionJobProperties { 11576 s.JobId = &v 11577 return s 11578} 11579 11580// SetJobName sets the JobName field's value. 11581func (s *EventsDetectionJobProperties) SetJobName(v string) *EventsDetectionJobProperties { 11582 s.JobName = &v 11583 return s 11584} 11585 11586// SetJobStatus sets the JobStatus field's value. 11587func (s *EventsDetectionJobProperties) SetJobStatus(v string) *EventsDetectionJobProperties { 11588 s.JobStatus = &v 11589 return s 11590} 11591 11592// SetLanguageCode sets the LanguageCode field's value. 11593func (s *EventsDetectionJobProperties) SetLanguageCode(v string) *EventsDetectionJobProperties { 11594 s.LanguageCode = &v 11595 return s 11596} 11597 11598// SetMessage sets the Message field's value. 11599func (s *EventsDetectionJobProperties) SetMessage(v string) *EventsDetectionJobProperties { 11600 s.Message = &v 11601 return s 11602} 11603 11604// SetOutputDataConfig sets the OutputDataConfig field's value. 11605func (s *EventsDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *EventsDetectionJobProperties { 11606 s.OutputDataConfig = v 11607 return s 11608} 11609 11610// SetSubmitTime sets the SubmitTime field's value. 11611func (s *EventsDetectionJobProperties) SetSubmitTime(v time.Time) *EventsDetectionJobProperties { 11612 s.SubmitTime = &v 11613 return s 11614} 11615 11616// SetTargetEventTypes sets the TargetEventTypes field's value. 11617func (s *EventsDetectionJobProperties) SetTargetEventTypes(v []*string) *EventsDetectionJobProperties { 11618 s.TargetEventTypes = v 11619 return s 11620} 11621 11622// The input properties for a topic detection job. 11623type InputDataConfig struct { 11624 _ struct{} `type:"structure"` 11625 11626 // Specifies how the text in an input file should be processed: 11627 // 11628 // * ONE_DOC_PER_FILE - Each file is considered a separate document. Use 11629 // this option when you are processing large documents, such as newspaper 11630 // articles or scientific papers. 11631 // 11632 // * ONE_DOC_PER_LINE - Each line in a file is considered a separate document. 11633 // Use this option when you are processing many short documents, such as 11634 // text messages. 11635 InputFormat *string `type:"string" enum:"InputFormat"` 11636 11637 // The Amazon S3 URI for the input data. The URI must be in same region as the 11638 // API endpoint that you are calling. The URI can point to a single input file 11639 // or it can provide the prefix for a collection of data files. 11640 // 11641 // For example, if you use the URI S3://bucketName/prefix, if the prefix is 11642 // a single file, Amazon Comprehend uses that file as input. If more than one 11643 // file begins with the prefix, Amazon Comprehend uses all of them as input. 11644 // 11645 // S3Uri is a required field 11646 S3Uri *string `type:"string" required:"true"` 11647} 11648 11649// String returns the string representation 11650func (s InputDataConfig) String() string { 11651 return awsutil.Prettify(s) 11652} 11653 11654// GoString returns the string representation 11655func (s InputDataConfig) GoString() string { 11656 return s.String() 11657} 11658 11659// Validate inspects the fields of the type to determine if they are valid. 11660func (s *InputDataConfig) Validate() error { 11661 invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"} 11662 if s.S3Uri == nil { 11663 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 11664 } 11665 11666 if invalidParams.Len() > 0 { 11667 return invalidParams 11668 } 11669 return nil 11670} 11671 11672// SetInputFormat sets the InputFormat field's value. 11673func (s *InputDataConfig) SetInputFormat(v string) *InputDataConfig { 11674 s.InputFormat = &v 11675 return s 11676} 11677 11678// SetS3Uri sets the S3Uri field's value. 11679func (s *InputDataConfig) SetS3Uri(v string) *InputDataConfig { 11680 s.S3Uri = &v 11681 return s 11682} 11683 11684// An internal server error occurred. Retry your request. 11685type InternalServerException struct { 11686 _ struct{} `type:"structure"` 11687 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11688 11689 Message_ *string `locationName:"Message" min:"1" type:"string"` 11690} 11691 11692// String returns the string representation 11693func (s InternalServerException) String() string { 11694 return awsutil.Prettify(s) 11695} 11696 11697// GoString returns the string representation 11698func (s InternalServerException) GoString() string { 11699 return s.String() 11700} 11701 11702func newErrorInternalServerException(v protocol.ResponseMetadata) error { 11703 return &InternalServerException{ 11704 RespMetadata: v, 11705 } 11706} 11707 11708// Code returns the exception type name. 11709func (s *InternalServerException) Code() string { 11710 return "InternalServerException" 11711} 11712 11713// Message returns the exception's message. 11714func (s *InternalServerException) Message() string { 11715 if s.Message_ != nil { 11716 return *s.Message_ 11717 } 11718 return "" 11719} 11720 11721// OrigErr always returns nil, satisfies awserr.Error interface. 11722func (s *InternalServerException) OrigErr() error { 11723 return nil 11724} 11725 11726func (s *InternalServerException) Error() string { 11727 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11728} 11729 11730// Status code returns the HTTP status code for the request's response error. 11731func (s *InternalServerException) StatusCode() int { 11732 return s.RespMetadata.StatusCode 11733} 11734 11735// RequestID returns the service's response RequestID for request. 11736func (s *InternalServerException) RequestID() string { 11737 return s.RespMetadata.RequestID 11738} 11739 11740// The filter specified for the operation is invalid. Specify a different filter. 11741type InvalidFilterException struct { 11742 _ struct{} `type:"structure"` 11743 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11744 11745 Message_ *string `locationName:"Message" min:"1" type:"string"` 11746} 11747 11748// String returns the string representation 11749func (s InvalidFilterException) String() string { 11750 return awsutil.Prettify(s) 11751} 11752 11753// GoString returns the string representation 11754func (s InvalidFilterException) GoString() string { 11755 return s.String() 11756} 11757 11758func newErrorInvalidFilterException(v protocol.ResponseMetadata) error { 11759 return &InvalidFilterException{ 11760 RespMetadata: v, 11761 } 11762} 11763 11764// Code returns the exception type name. 11765func (s *InvalidFilterException) Code() string { 11766 return "InvalidFilterException" 11767} 11768 11769// Message returns the exception's message. 11770func (s *InvalidFilterException) Message() string { 11771 if s.Message_ != nil { 11772 return *s.Message_ 11773 } 11774 return "" 11775} 11776 11777// OrigErr always returns nil, satisfies awserr.Error interface. 11778func (s *InvalidFilterException) OrigErr() error { 11779 return nil 11780} 11781 11782func (s *InvalidFilterException) Error() string { 11783 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11784} 11785 11786// Status code returns the HTTP status code for the request's response error. 11787func (s *InvalidFilterException) StatusCode() int { 11788 return s.RespMetadata.StatusCode 11789} 11790 11791// RequestID returns the service's response RequestID for request. 11792func (s *InvalidFilterException) RequestID() string { 11793 return s.RespMetadata.RequestID 11794} 11795 11796// The request is invalid. 11797type InvalidRequestException struct { 11798 _ struct{} `type:"structure"` 11799 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11800 11801 Message_ *string `locationName:"Message" min:"1" type:"string"` 11802} 11803 11804// String returns the string representation 11805func (s InvalidRequestException) String() string { 11806 return awsutil.Prettify(s) 11807} 11808 11809// GoString returns the string representation 11810func (s InvalidRequestException) GoString() string { 11811 return s.String() 11812} 11813 11814func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { 11815 return &InvalidRequestException{ 11816 RespMetadata: v, 11817 } 11818} 11819 11820// Code returns the exception type name. 11821func (s *InvalidRequestException) Code() string { 11822 return "InvalidRequestException" 11823} 11824 11825// Message returns the exception's message. 11826func (s *InvalidRequestException) Message() string { 11827 if s.Message_ != nil { 11828 return *s.Message_ 11829 } 11830 return "" 11831} 11832 11833// OrigErr always returns nil, satisfies awserr.Error interface. 11834func (s *InvalidRequestException) OrigErr() error { 11835 return nil 11836} 11837 11838func (s *InvalidRequestException) Error() string { 11839 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11840} 11841 11842// Status code returns the HTTP status code for the request's response error. 11843func (s *InvalidRequestException) StatusCode() int { 11844 return s.RespMetadata.StatusCode 11845} 11846 11847// RequestID returns the service's response RequestID for request. 11848func (s *InvalidRequestException) RequestID() string { 11849 return s.RespMetadata.RequestID 11850} 11851 11852// The specified job was not found. Check the job ID and try again. 11853type JobNotFoundException struct { 11854 _ struct{} `type:"structure"` 11855 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11856 11857 Message_ *string `locationName:"Message" min:"1" type:"string"` 11858} 11859 11860// String returns the string representation 11861func (s JobNotFoundException) String() string { 11862 return awsutil.Prettify(s) 11863} 11864 11865// GoString returns the string representation 11866func (s JobNotFoundException) GoString() string { 11867 return s.String() 11868} 11869 11870func newErrorJobNotFoundException(v protocol.ResponseMetadata) error { 11871 return &JobNotFoundException{ 11872 RespMetadata: v, 11873 } 11874} 11875 11876// Code returns the exception type name. 11877func (s *JobNotFoundException) Code() string { 11878 return "JobNotFoundException" 11879} 11880 11881// Message returns the exception's message. 11882func (s *JobNotFoundException) Message() string { 11883 if s.Message_ != nil { 11884 return *s.Message_ 11885 } 11886 return "" 11887} 11888 11889// OrigErr always returns nil, satisfies awserr.Error interface. 11890func (s *JobNotFoundException) OrigErr() error { 11891 return nil 11892} 11893 11894func (s *JobNotFoundException) Error() string { 11895 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11896} 11897 11898// Status code returns the HTTP status code for the request's response error. 11899func (s *JobNotFoundException) StatusCode() int { 11900 return s.RespMetadata.StatusCode 11901} 11902 11903// RequestID returns the service's response RequestID for request. 11904func (s *JobNotFoundException) RequestID() string { 11905 return s.RespMetadata.RequestID 11906} 11907 11908// Describes a key noun phrase. 11909type KeyPhrase struct { 11910 _ struct{} `type:"structure"` 11911 11912 // A character offset in the input text that shows where the key phrase begins 11913 // (the first character is at position 0). The offset returns the position of 11914 // each UTF-8 code point in the string. A code point is the abstract character 11915 // from a particular graphical representation. For example, a multi-byte UTF-8 11916 // character maps to a single code point. 11917 BeginOffset *int64 `type:"integer"` 11918 11919 // A character offset in the input text where the key phrase ends. The offset 11920 // returns the position of each UTF-8 code point in the string. A code point 11921 // is the abstract character from a particular graphical representation. For 11922 // example, a multi-byte UTF-8 character maps to a single code point. 11923 EndOffset *int64 `type:"integer"` 11924 11925 // The level of confidence that Amazon Comprehend has in the accuracy of the 11926 // detection. 11927 Score *float64 `type:"float"` 11928 11929 // The text of a key noun phrase. 11930 Text *string `min:"1" type:"string"` 11931} 11932 11933// String returns the string representation 11934func (s KeyPhrase) String() string { 11935 return awsutil.Prettify(s) 11936} 11937 11938// GoString returns the string representation 11939func (s KeyPhrase) GoString() string { 11940 return s.String() 11941} 11942 11943// SetBeginOffset sets the BeginOffset field's value. 11944func (s *KeyPhrase) SetBeginOffset(v int64) *KeyPhrase { 11945 s.BeginOffset = &v 11946 return s 11947} 11948 11949// SetEndOffset sets the EndOffset field's value. 11950func (s *KeyPhrase) SetEndOffset(v int64) *KeyPhrase { 11951 s.EndOffset = &v 11952 return s 11953} 11954 11955// SetScore sets the Score field's value. 11956func (s *KeyPhrase) SetScore(v float64) *KeyPhrase { 11957 s.Score = &v 11958 return s 11959} 11960 11961// SetText sets the Text field's value. 11962func (s *KeyPhrase) SetText(v string) *KeyPhrase { 11963 s.Text = &v 11964 return s 11965} 11966 11967// Provides information for filtering a list of dominant language detection 11968// jobs. For more information, see the operation. 11969type KeyPhrasesDetectionJobFilter struct { 11970 _ struct{} `type:"structure"` 11971 11972 // Filters on the name of the job. 11973 JobName *string `min:"1" type:"string"` 11974 11975 // Filters the list of jobs based on job status. Returns only jobs with the 11976 // specified status. 11977 JobStatus *string `type:"string" enum:"JobStatus"` 11978 11979 // Filters the list of jobs based on the time that the job was submitted for 11980 // processing. Returns only jobs submitted after the specified time. Jobs are 11981 // returned in descending order, newest to oldest. 11982 SubmitTimeAfter *time.Time `type:"timestamp"` 11983 11984 // Filters the list of jobs based on the time that the job was submitted for 11985 // processing. Returns only jobs submitted before the specified time. Jobs are 11986 // returned in ascending order, oldest to newest. 11987 SubmitTimeBefore *time.Time `type:"timestamp"` 11988} 11989 11990// String returns the string representation 11991func (s KeyPhrasesDetectionJobFilter) String() string { 11992 return awsutil.Prettify(s) 11993} 11994 11995// GoString returns the string representation 11996func (s KeyPhrasesDetectionJobFilter) GoString() string { 11997 return s.String() 11998} 11999 12000// Validate inspects the fields of the type to determine if they are valid. 12001func (s *KeyPhrasesDetectionJobFilter) Validate() error { 12002 invalidParams := request.ErrInvalidParams{Context: "KeyPhrasesDetectionJobFilter"} 12003 if s.JobName != nil && len(*s.JobName) < 1 { 12004 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 12005 } 12006 12007 if invalidParams.Len() > 0 { 12008 return invalidParams 12009 } 12010 return nil 12011} 12012 12013// SetJobName sets the JobName field's value. 12014func (s *KeyPhrasesDetectionJobFilter) SetJobName(v string) *KeyPhrasesDetectionJobFilter { 12015 s.JobName = &v 12016 return s 12017} 12018 12019// SetJobStatus sets the JobStatus field's value. 12020func (s *KeyPhrasesDetectionJobFilter) SetJobStatus(v string) *KeyPhrasesDetectionJobFilter { 12021 s.JobStatus = &v 12022 return s 12023} 12024 12025// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 12026func (s *KeyPhrasesDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *KeyPhrasesDetectionJobFilter { 12027 s.SubmitTimeAfter = &v 12028 return s 12029} 12030 12031// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 12032func (s *KeyPhrasesDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *KeyPhrasesDetectionJobFilter { 12033 s.SubmitTimeBefore = &v 12034 return s 12035} 12036 12037// Provides information about a key phrases detection job. 12038type KeyPhrasesDetectionJobProperties struct { 12039 _ struct{} `type:"structure"` 12040 12041 // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to 12042 // your input data. 12043 DataAccessRoleArn *string `min:"20" type:"string"` 12044 12045 // The time that the key phrases detection job completed. 12046 EndTime *time.Time `type:"timestamp"` 12047 12048 // The input data configuration that you supplied when you created the key phrases 12049 // detection job. 12050 InputDataConfig *InputDataConfig `type:"structure"` 12051 12052 // The identifier assigned to the key phrases detection job. 12053 JobId *string `min:"1" type:"string"` 12054 12055 // The name that you assigned the key phrases detection job. 12056 JobName *string `min:"1" type:"string"` 12057 12058 // The current status of the key phrases detection job. If the status is FAILED, 12059 // the Message field shows the reason for the failure. 12060 JobStatus *string `type:"string" enum:"JobStatus"` 12061 12062 // The language code of the input documents. 12063 LanguageCode *string `type:"string" enum:"LanguageCode"` 12064 12065 // A description of the status of a job. 12066 Message *string `type:"string"` 12067 12068 // The output data configuration that you supplied when you created the key 12069 // phrases detection job. 12070 OutputDataConfig *OutputDataConfig `type:"structure"` 12071 12072 // The time that the key phrases detection job was submitted for processing. 12073 SubmitTime *time.Time `type:"timestamp"` 12074 12075 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 12076 // to encrypt data on the storage volume attached to the ML compute instance(s) 12077 // that process the analysis job. The VolumeKmsKeyId can be either of the following 12078 // formats: 12079 // 12080 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 12081 // 12082 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 12083 VolumeKmsKeyId *string `type:"string"` 12084 12085 // Configuration parameters for a private Virtual Private Cloud (VPC) containing 12086 // the resources you are using for your key phrases detection job. For more 12087 // information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 12088 VpcConfig *VpcConfig `type:"structure"` 12089} 12090 12091// String returns the string representation 12092func (s KeyPhrasesDetectionJobProperties) String() string { 12093 return awsutil.Prettify(s) 12094} 12095 12096// GoString returns the string representation 12097func (s KeyPhrasesDetectionJobProperties) GoString() string { 12098 return s.String() 12099} 12100 12101// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 12102func (s *KeyPhrasesDetectionJobProperties) SetDataAccessRoleArn(v string) *KeyPhrasesDetectionJobProperties { 12103 s.DataAccessRoleArn = &v 12104 return s 12105} 12106 12107// SetEndTime sets the EndTime field's value. 12108func (s *KeyPhrasesDetectionJobProperties) SetEndTime(v time.Time) *KeyPhrasesDetectionJobProperties { 12109 s.EndTime = &v 12110 return s 12111} 12112 12113// SetInputDataConfig sets the InputDataConfig field's value. 12114func (s *KeyPhrasesDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *KeyPhrasesDetectionJobProperties { 12115 s.InputDataConfig = v 12116 return s 12117} 12118 12119// SetJobId sets the JobId field's value. 12120func (s *KeyPhrasesDetectionJobProperties) SetJobId(v string) *KeyPhrasesDetectionJobProperties { 12121 s.JobId = &v 12122 return s 12123} 12124 12125// SetJobName sets the JobName field's value. 12126func (s *KeyPhrasesDetectionJobProperties) SetJobName(v string) *KeyPhrasesDetectionJobProperties { 12127 s.JobName = &v 12128 return s 12129} 12130 12131// SetJobStatus sets the JobStatus field's value. 12132func (s *KeyPhrasesDetectionJobProperties) SetJobStatus(v string) *KeyPhrasesDetectionJobProperties { 12133 s.JobStatus = &v 12134 return s 12135} 12136 12137// SetLanguageCode sets the LanguageCode field's value. 12138func (s *KeyPhrasesDetectionJobProperties) SetLanguageCode(v string) *KeyPhrasesDetectionJobProperties { 12139 s.LanguageCode = &v 12140 return s 12141} 12142 12143// SetMessage sets the Message field's value. 12144func (s *KeyPhrasesDetectionJobProperties) SetMessage(v string) *KeyPhrasesDetectionJobProperties { 12145 s.Message = &v 12146 return s 12147} 12148 12149// SetOutputDataConfig sets the OutputDataConfig field's value. 12150func (s *KeyPhrasesDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *KeyPhrasesDetectionJobProperties { 12151 s.OutputDataConfig = v 12152 return s 12153} 12154 12155// SetSubmitTime sets the SubmitTime field's value. 12156func (s *KeyPhrasesDetectionJobProperties) SetSubmitTime(v time.Time) *KeyPhrasesDetectionJobProperties { 12157 s.SubmitTime = &v 12158 return s 12159} 12160 12161// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 12162func (s *KeyPhrasesDetectionJobProperties) SetVolumeKmsKeyId(v string) *KeyPhrasesDetectionJobProperties { 12163 s.VolumeKmsKeyId = &v 12164 return s 12165} 12166 12167// SetVpcConfig sets the VpcConfig field's value. 12168func (s *KeyPhrasesDetectionJobProperties) SetVpcConfig(v *VpcConfig) *KeyPhrasesDetectionJobProperties { 12169 s.VpcConfig = v 12170 return s 12171} 12172 12173// The KMS customer managed key (CMK) entered cannot be validated. Verify the 12174// key and re-enter it. 12175type KmsKeyValidationException struct { 12176 _ struct{} `type:"structure"` 12177 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12178 12179 Message_ *string `locationName:"Message" min:"1" type:"string"` 12180} 12181 12182// String returns the string representation 12183func (s KmsKeyValidationException) String() string { 12184 return awsutil.Prettify(s) 12185} 12186 12187// GoString returns the string representation 12188func (s KmsKeyValidationException) GoString() string { 12189 return s.String() 12190} 12191 12192func newErrorKmsKeyValidationException(v protocol.ResponseMetadata) error { 12193 return &KmsKeyValidationException{ 12194 RespMetadata: v, 12195 } 12196} 12197 12198// Code returns the exception type name. 12199func (s *KmsKeyValidationException) Code() string { 12200 return "KmsKeyValidationException" 12201} 12202 12203// Message returns the exception's message. 12204func (s *KmsKeyValidationException) Message() string { 12205 if s.Message_ != nil { 12206 return *s.Message_ 12207 } 12208 return "" 12209} 12210 12211// OrigErr always returns nil, satisfies awserr.Error interface. 12212func (s *KmsKeyValidationException) OrigErr() error { 12213 return nil 12214} 12215 12216func (s *KmsKeyValidationException) Error() string { 12217 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12218} 12219 12220// Status code returns the HTTP status code for the request's response error. 12221func (s *KmsKeyValidationException) StatusCode() int { 12222 return s.RespMetadata.StatusCode 12223} 12224 12225// RequestID returns the service's response RequestID for request. 12226func (s *KmsKeyValidationException) RequestID() string { 12227 return s.RespMetadata.RequestID 12228} 12229 12230type ListDocumentClassificationJobsInput struct { 12231 _ struct{} `type:"structure"` 12232 12233 // Filters the jobs that are returned. You can filter jobs on their names, status, 12234 // or the date and time that they were submitted. You can only set one filter 12235 // at a time. 12236 Filter *DocumentClassificationJobFilter `type:"structure"` 12237 12238 // The maximum number of results to return in each page. The default is 100. 12239 MaxResults *int64 `min:"1" type:"integer"` 12240 12241 // Identifies the next page of results to return. 12242 NextToken *string `min:"1" type:"string"` 12243} 12244 12245// String returns the string representation 12246func (s ListDocumentClassificationJobsInput) String() string { 12247 return awsutil.Prettify(s) 12248} 12249 12250// GoString returns the string representation 12251func (s ListDocumentClassificationJobsInput) GoString() string { 12252 return s.String() 12253} 12254 12255// Validate inspects the fields of the type to determine if they are valid. 12256func (s *ListDocumentClassificationJobsInput) Validate() error { 12257 invalidParams := request.ErrInvalidParams{Context: "ListDocumentClassificationJobsInput"} 12258 if s.MaxResults != nil && *s.MaxResults < 1 { 12259 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 12260 } 12261 if s.NextToken != nil && len(*s.NextToken) < 1 { 12262 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 12263 } 12264 if s.Filter != nil { 12265 if err := s.Filter.Validate(); err != nil { 12266 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 12267 } 12268 } 12269 12270 if invalidParams.Len() > 0 { 12271 return invalidParams 12272 } 12273 return nil 12274} 12275 12276// SetFilter sets the Filter field's value. 12277func (s *ListDocumentClassificationJobsInput) SetFilter(v *DocumentClassificationJobFilter) *ListDocumentClassificationJobsInput { 12278 s.Filter = v 12279 return s 12280} 12281 12282// SetMaxResults sets the MaxResults field's value. 12283func (s *ListDocumentClassificationJobsInput) SetMaxResults(v int64) *ListDocumentClassificationJobsInput { 12284 s.MaxResults = &v 12285 return s 12286} 12287 12288// SetNextToken sets the NextToken field's value. 12289func (s *ListDocumentClassificationJobsInput) SetNextToken(v string) *ListDocumentClassificationJobsInput { 12290 s.NextToken = &v 12291 return s 12292} 12293 12294type ListDocumentClassificationJobsOutput struct { 12295 _ struct{} `type:"structure"` 12296 12297 // A list containing the properties of each job returned. 12298 DocumentClassificationJobPropertiesList []*DocumentClassificationJobProperties `type:"list"` 12299 12300 // Identifies the next page of results to return. 12301 NextToken *string `min:"1" type:"string"` 12302} 12303 12304// String returns the string representation 12305func (s ListDocumentClassificationJobsOutput) String() string { 12306 return awsutil.Prettify(s) 12307} 12308 12309// GoString returns the string representation 12310func (s ListDocumentClassificationJobsOutput) GoString() string { 12311 return s.String() 12312} 12313 12314// SetDocumentClassificationJobPropertiesList sets the DocumentClassificationJobPropertiesList field's value. 12315func (s *ListDocumentClassificationJobsOutput) SetDocumentClassificationJobPropertiesList(v []*DocumentClassificationJobProperties) *ListDocumentClassificationJobsOutput { 12316 s.DocumentClassificationJobPropertiesList = v 12317 return s 12318} 12319 12320// SetNextToken sets the NextToken field's value. 12321func (s *ListDocumentClassificationJobsOutput) SetNextToken(v string) *ListDocumentClassificationJobsOutput { 12322 s.NextToken = &v 12323 return s 12324} 12325 12326type ListDocumentClassifiersInput struct { 12327 _ struct{} `type:"structure"` 12328 12329 // Filters the jobs that are returned. You can filter jobs on their name, status, 12330 // or the date and time that they were submitted. You can only set one filter 12331 // at a time. 12332 Filter *DocumentClassifierFilter `type:"structure"` 12333 12334 // The maximum number of results to return in each page. The default is 100. 12335 MaxResults *int64 `min:"1" type:"integer"` 12336 12337 // Identifies the next page of results to return. 12338 NextToken *string `min:"1" type:"string"` 12339} 12340 12341// String returns the string representation 12342func (s ListDocumentClassifiersInput) String() string { 12343 return awsutil.Prettify(s) 12344} 12345 12346// GoString returns the string representation 12347func (s ListDocumentClassifiersInput) GoString() string { 12348 return s.String() 12349} 12350 12351// Validate inspects the fields of the type to determine if they are valid. 12352func (s *ListDocumentClassifiersInput) Validate() error { 12353 invalidParams := request.ErrInvalidParams{Context: "ListDocumentClassifiersInput"} 12354 if s.MaxResults != nil && *s.MaxResults < 1 { 12355 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 12356 } 12357 if s.NextToken != nil && len(*s.NextToken) < 1 { 12358 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 12359 } 12360 12361 if invalidParams.Len() > 0 { 12362 return invalidParams 12363 } 12364 return nil 12365} 12366 12367// SetFilter sets the Filter field's value. 12368func (s *ListDocumentClassifiersInput) SetFilter(v *DocumentClassifierFilter) *ListDocumentClassifiersInput { 12369 s.Filter = v 12370 return s 12371} 12372 12373// SetMaxResults sets the MaxResults field's value. 12374func (s *ListDocumentClassifiersInput) SetMaxResults(v int64) *ListDocumentClassifiersInput { 12375 s.MaxResults = &v 12376 return s 12377} 12378 12379// SetNextToken sets the NextToken field's value. 12380func (s *ListDocumentClassifiersInput) SetNextToken(v string) *ListDocumentClassifiersInput { 12381 s.NextToken = &v 12382 return s 12383} 12384 12385type ListDocumentClassifiersOutput struct { 12386 _ struct{} `type:"structure"` 12387 12388 // A list containing the properties of each job returned. 12389 DocumentClassifierPropertiesList []*DocumentClassifierProperties `type:"list"` 12390 12391 // Identifies the next page of results to return. 12392 NextToken *string `min:"1" type:"string"` 12393} 12394 12395// String returns the string representation 12396func (s ListDocumentClassifiersOutput) String() string { 12397 return awsutil.Prettify(s) 12398} 12399 12400// GoString returns the string representation 12401func (s ListDocumentClassifiersOutput) GoString() string { 12402 return s.String() 12403} 12404 12405// SetDocumentClassifierPropertiesList sets the DocumentClassifierPropertiesList field's value. 12406func (s *ListDocumentClassifiersOutput) SetDocumentClassifierPropertiesList(v []*DocumentClassifierProperties) *ListDocumentClassifiersOutput { 12407 s.DocumentClassifierPropertiesList = v 12408 return s 12409} 12410 12411// SetNextToken sets the NextToken field's value. 12412func (s *ListDocumentClassifiersOutput) SetNextToken(v string) *ListDocumentClassifiersOutput { 12413 s.NextToken = &v 12414 return s 12415} 12416 12417type ListDominantLanguageDetectionJobsInput struct { 12418 _ struct{} `type:"structure"` 12419 12420 // Filters that jobs that are returned. You can filter jobs on their name, status, 12421 // or the date and time that they were submitted. You can only set one filter 12422 // at a time. 12423 Filter *DominantLanguageDetectionJobFilter `type:"structure"` 12424 12425 // The maximum number of results to return in each page. The default is 100. 12426 MaxResults *int64 `min:"1" type:"integer"` 12427 12428 // Identifies the next page of results to return. 12429 NextToken *string `min:"1" type:"string"` 12430} 12431 12432// String returns the string representation 12433func (s ListDominantLanguageDetectionJobsInput) String() string { 12434 return awsutil.Prettify(s) 12435} 12436 12437// GoString returns the string representation 12438func (s ListDominantLanguageDetectionJobsInput) GoString() string { 12439 return s.String() 12440} 12441 12442// Validate inspects the fields of the type to determine if they are valid. 12443func (s *ListDominantLanguageDetectionJobsInput) Validate() error { 12444 invalidParams := request.ErrInvalidParams{Context: "ListDominantLanguageDetectionJobsInput"} 12445 if s.MaxResults != nil && *s.MaxResults < 1 { 12446 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 12447 } 12448 if s.NextToken != nil && len(*s.NextToken) < 1 { 12449 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 12450 } 12451 if s.Filter != nil { 12452 if err := s.Filter.Validate(); err != nil { 12453 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 12454 } 12455 } 12456 12457 if invalidParams.Len() > 0 { 12458 return invalidParams 12459 } 12460 return nil 12461} 12462 12463// SetFilter sets the Filter field's value. 12464func (s *ListDominantLanguageDetectionJobsInput) SetFilter(v *DominantLanguageDetectionJobFilter) *ListDominantLanguageDetectionJobsInput { 12465 s.Filter = v 12466 return s 12467} 12468 12469// SetMaxResults sets the MaxResults field's value. 12470func (s *ListDominantLanguageDetectionJobsInput) SetMaxResults(v int64) *ListDominantLanguageDetectionJobsInput { 12471 s.MaxResults = &v 12472 return s 12473} 12474 12475// SetNextToken sets the NextToken field's value. 12476func (s *ListDominantLanguageDetectionJobsInput) SetNextToken(v string) *ListDominantLanguageDetectionJobsInput { 12477 s.NextToken = &v 12478 return s 12479} 12480 12481type ListDominantLanguageDetectionJobsOutput struct { 12482 _ struct{} `type:"structure"` 12483 12484 // A list containing the properties of each job that is returned. 12485 DominantLanguageDetectionJobPropertiesList []*DominantLanguageDetectionJobProperties `type:"list"` 12486 12487 // Identifies the next page of results to return. 12488 NextToken *string `min:"1" type:"string"` 12489} 12490 12491// String returns the string representation 12492func (s ListDominantLanguageDetectionJobsOutput) String() string { 12493 return awsutil.Prettify(s) 12494} 12495 12496// GoString returns the string representation 12497func (s ListDominantLanguageDetectionJobsOutput) GoString() string { 12498 return s.String() 12499} 12500 12501// SetDominantLanguageDetectionJobPropertiesList sets the DominantLanguageDetectionJobPropertiesList field's value. 12502func (s *ListDominantLanguageDetectionJobsOutput) SetDominantLanguageDetectionJobPropertiesList(v []*DominantLanguageDetectionJobProperties) *ListDominantLanguageDetectionJobsOutput { 12503 s.DominantLanguageDetectionJobPropertiesList = v 12504 return s 12505} 12506 12507// SetNextToken sets the NextToken field's value. 12508func (s *ListDominantLanguageDetectionJobsOutput) SetNextToken(v string) *ListDominantLanguageDetectionJobsOutput { 12509 s.NextToken = &v 12510 return s 12511} 12512 12513type ListEndpointsInput struct { 12514 _ struct{} `type:"structure"` 12515 12516 // Filters the endpoints that are returned. You can filter endpoints on their 12517 // name, model, status, or the date and time that they were created. You can 12518 // only set one filter at a time. 12519 Filter *EndpointFilter `type:"structure"` 12520 12521 // The maximum number of results to return in each page. The default is 100. 12522 MaxResults *int64 `min:"1" type:"integer"` 12523 12524 // Identifies the next page of results to return. 12525 NextToken *string `min:"1" type:"string"` 12526} 12527 12528// String returns the string representation 12529func (s ListEndpointsInput) String() string { 12530 return awsutil.Prettify(s) 12531} 12532 12533// GoString returns the string representation 12534func (s ListEndpointsInput) GoString() string { 12535 return s.String() 12536} 12537 12538// Validate inspects the fields of the type to determine if they are valid. 12539func (s *ListEndpointsInput) Validate() error { 12540 invalidParams := request.ErrInvalidParams{Context: "ListEndpointsInput"} 12541 if s.MaxResults != nil && *s.MaxResults < 1 { 12542 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 12543 } 12544 if s.NextToken != nil && len(*s.NextToken) < 1 { 12545 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 12546 } 12547 12548 if invalidParams.Len() > 0 { 12549 return invalidParams 12550 } 12551 return nil 12552} 12553 12554// SetFilter sets the Filter field's value. 12555func (s *ListEndpointsInput) SetFilter(v *EndpointFilter) *ListEndpointsInput { 12556 s.Filter = v 12557 return s 12558} 12559 12560// SetMaxResults sets the MaxResults field's value. 12561func (s *ListEndpointsInput) SetMaxResults(v int64) *ListEndpointsInput { 12562 s.MaxResults = &v 12563 return s 12564} 12565 12566// SetNextToken sets the NextToken field's value. 12567func (s *ListEndpointsInput) SetNextToken(v string) *ListEndpointsInput { 12568 s.NextToken = &v 12569 return s 12570} 12571 12572type ListEndpointsOutput struct { 12573 _ struct{} `type:"structure"` 12574 12575 // Displays a list of endpoint properties being retrieved by the service in 12576 // response to the request. 12577 EndpointPropertiesList []*EndpointProperties `type:"list"` 12578 12579 // Identifies the next page of results to return. 12580 NextToken *string `min:"1" type:"string"` 12581} 12582 12583// String returns the string representation 12584func (s ListEndpointsOutput) String() string { 12585 return awsutil.Prettify(s) 12586} 12587 12588// GoString returns the string representation 12589func (s ListEndpointsOutput) GoString() string { 12590 return s.String() 12591} 12592 12593// SetEndpointPropertiesList sets the EndpointPropertiesList field's value. 12594func (s *ListEndpointsOutput) SetEndpointPropertiesList(v []*EndpointProperties) *ListEndpointsOutput { 12595 s.EndpointPropertiesList = v 12596 return s 12597} 12598 12599// SetNextToken sets the NextToken field's value. 12600func (s *ListEndpointsOutput) SetNextToken(v string) *ListEndpointsOutput { 12601 s.NextToken = &v 12602 return s 12603} 12604 12605type ListEntitiesDetectionJobsInput struct { 12606 _ struct{} `type:"structure"` 12607 12608 // Filters the jobs that are returned. You can filter jobs on their name, status, 12609 // or the date and time that they were submitted. You can only set one filter 12610 // at a time. 12611 Filter *EntitiesDetectionJobFilter `type:"structure"` 12612 12613 // The maximum number of results to return in each page. The default is 100. 12614 MaxResults *int64 `min:"1" type:"integer"` 12615 12616 // Identifies the next page of results to return. 12617 NextToken *string `min:"1" type:"string"` 12618} 12619 12620// String returns the string representation 12621func (s ListEntitiesDetectionJobsInput) String() string { 12622 return awsutil.Prettify(s) 12623} 12624 12625// GoString returns the string representation 12626func (s ListEntitiesDetectionJobsInput) GoString() string { 12627 return s.String() 12628} 12629 12630// Validate inspects the fields of the type to determine if they are valid. 12631func (s *ListEntitiesDetectionJobsInput) Validate() error { 12632 invalidParams := request.ErrInvalidParams{Context: "ListEntitiesDetectionJobsInput"} 12633 if s.MaxResults != nil && *s.MaxResults < 1 { 12634 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 12635 } 12636 if s.NextToken != nil && len(*s.NextToken) < 1 { 12637 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 12638 } 12639 if s.Filter != nil { 12640 if err := s.Filter.Validate(); err != nil { 12641 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 12642 } 12643 } 12644 12645 if invalidParams.Len() > 0 { 12646 return invalidParams 12647 } 12648 return nil 12649} 12650 12651// SetFilter sets the Filter field's value. 12652func (s *ListEntitiesDetectionJobsInput) SetFilter(v *EntitiesDetectionJobFilter) *ListEntitiesDetectionJobsInput { 12653 s.Filter = v 12654 return s 12655} 12656 12657// SetMaxResults sets the MaxResults field's value. 12658func (s *ListEntitiesDetectionJobsInput) SetMaxResults(v int64) *ListEntitiesDetectionJobsInput { 12659 s.MaxResults = &v 12660 return s 12661} 12662 12663// SetNextToken sets the NextToken field's value. 12664func (s *ListEntitiesDetectionJobsInput) SetNextToken(v string) *ListEntitiesDetectionJobsInput { 12665 s.NextToken = &v 12666 return s 12667} 12668 12669type ListEntitiesDetectionJobsOutput struct { 12670 _ struct{} `type:"structure"` 12671 12672 // A list containing the properties of each job that is returned. 12673 EntitiesDetectionJobPropertiesList []*EntitiesDetectionJobProperties `type:"list"` 12674 12675 // Identifies the next page of results to return. 12676 NextToken *string `min:"1" type:"string"` 12677} 12678 12679// String returns the string representation 12680func (s ListEntitiesDetectionJobsOutput) String() string { 12681 return awsutil.Prettify(s) 12682} 12683 12684// GoString returns the string representation 12685func (s ListEntitiesDetectionJobsOutput) GoString() string { 12686 return s.String() 12687} 12688 12689// SetEntitiesDetectionJobPropertiesList sets the EntitiesDetectionJobPropertiesList field's value. 12690func (s *ListEntitiesDetectionJobsOutput) SetEntitiesDetectionJobPropertiesList(v []*EntitiesDetectionJobProperties) *ListEntitiesDetectionJobsOutput { 12691 s.EntitiesDetectionJobPropertiesList = v 12692 return s 12693} 12694 12695// SetNextToken sets the NextToken field's value. 12696func (s *ListEntitiesDetectionJobsOutput) SetNextToken(v string) *ListEntitiesDetectionJobsOutput { 12697 s.NextToken = &v 12698 return s 12699} 12700 12701type ListEntityRecognizersInput struct { 12702 _ struct{} `type:"structure"` 12703 12704 // Filters the list of entities returned. You can filter on Status, SubmitTimeBefore, 12705 // or SubmitTimeAfter. You can only set one filter at a time. 12706 Filter *EntityRecognizerFilter `type:"structure"` 12707 12708 // The maximum number of results to return on each page. The default is 100. 12709 MaxResults *int64 `min:"1" type:"integer"` 12710 12711 // Identifies the next page of results to return. 12712 NextToken *string `min:"1" type:"string"` 12713} 12714 12715// String returns the string representation 12716func (s ListEntityRecognizersInput) String() string { 12717 return awsutil.Prettify(s) 12718} 12719 12720// GoString returns the string representation 12721func (s ListEntityRecognizersInput) GoString() string { 12722 return s.String() 12723} 12724 12725// Validate inspects the fields of the type to determine if they are valid. 12726func (s *ListEntityRecognizersInput) Validate() error { 12727 invalidParams := request.ErrInvalidParams{Context: "ListEntityRecognizersInput"} 12728 if s.MaxResults != nil && *s.MaxResults < 1 { 12729 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 12730 } 12731 if s.NextToken != nil && len(*s.NextToken) < 1 { 12732 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 12733 } 12734 12735 if invalidParams.Len() > 0 { 12736 return invalidParams 12737 } 12738 return nil 12739} 12740 12741// SetFilter sets the Filter field's value. 12742func (s *ListEntityRecognizersInput) SetFilter(v *EntityRecognizerFilter) *ListEntityRecognizersInput { 12743 s.Filter = v 12744 return s 12745} 12746 12747// SetMaxResults sets the MaxResults field's value. 12748func (s *ListEntityRecognizersInput) SetMaxResults(v int64) *ListEntityRecognizersInput { 12749 s.MaxResults = &v 12750 return s 12751} 12752 12753// SetNextToken sets the NextToken field's value. 12754func (s *ListEntityRecognizersInput) SetNextToken(v string) *ListEntityRecognizersInput { 12755 s.NextToken = &v 12756 return s 12757} 12758 12759type ListEntityRecognizersOutput struct { 12760 _ struct{} `type:"structure"` 12761 12762 // The list of properties of an entity recognizer. 12763 EntityRecognizerPropertiesList []*EntityRecognizerProperties `type:"list"` 12764 12765 // Identifies the next page of results to return. 12766 NextToken *string `min:"1" type:"string"` 12767} 12768 12769// String returns the string representation 12770func (s ListEntityRecognizersOutput) String() string { 12771 return awsutil.Prettify(s) 12772} 12773 12774// GoString returns the string representation 12775func (s ListEntityRecognizersOutput) GoString() string { 12776 return s.String() 12777} 12778 12779// SetEntityRecognizerPropertiesList sets the EntityRecognizerPropertiesList field's value. 12780func (s *ListEntityRecognizersOutput) SetEntityRecognizerPropertiesList(v []*EntityRecognizerProperties) *ListEntityRecognizersOutput { 12781 s.EntityRecognizerPropertiesList = v 12782 return s 12783} 12784 12785// SetNextToken sets the NextToken field's value. 12786func (s *ListEntityRecognizersOutput) SetNextToken(v string) *ListEntityRecognizersOutput { 12787 s.NextToken = &v 12788 return s 12789} 12790 12791type ListEventsDetectionJobsInput struct { 12792 _ struct{} `type:"structure"` 12793 12794 // Filters the jobs that are returned. You can filter jobs on their name, status, 12795 // or the date and time that they were submitted. You can only set one filter 12796 // at a time. 12797 Filter *EventsDetectionJobFilter `type:"structure"` 12798 12799 // The maximum number of results to return in each page. 12800 MaxResults *int64 `min:"1" type:"integer"` 12801 12802 // Identifies the next page of results to return. 12803 NextToken *string `min:"1" type:"string"` 12804} 12805 12806// String returns the string representation 12807func (s ListEventsDetectionJobsInput) String() string { 12808 return awsutil.Prettify(s) 12809} 12810 12811// GoString returns the string representation 12812func (s ListEventsDetectionJobsInput) GoString() string { 12813 return s.String() 12814} 12815 12816// Validate inspects the fields of the type to determine if they are valid. 12817func (s *ListEventsDetectionJobsInput) Validate() error { 12818 invalidParams := request.ErrInvalidParams{Context: "ListEventsDetectionJobsInput"} 12819 if s.MaxResults != nil && *s.MaxResults < 1 { 12820 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 12821 } 12822 if s.NextToken != nil && len(*s.NextToken) < 1 { 12823 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 12824 } 12825 if s.Filter != nil { 12826 if err := s.Filter.Validate(); err != nil { 12827 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 12828 } 12829 } 12830 12831 if invalidParams.Len() > 0 { 12832 return invalidParams 12833 } 12834 return nil 12835} 12836 12837// SetFilter sets the Filter field's value. 12838func (s *ListEventsDetectionJobsInput) SetFilter(v *EventsDetectionJobFilter) *ListEventsDetectionJobsInput { 12839 s.Filter = v 12840 return s 12841} 12842 12843// SetMaxResults sets the MaxResults field's value. 12844func (s *ListEventsDetectionJobsInput) SetMaxResults(v int64) *ListEventsDetectionJobsInput { 12845 s.MaxResults = &v 12846 return s 12847} 12848 12849// SetNextToken sets the NextToken field's value. 12850func (s *ListEventsDetectionJobsInput) SetNextToken(v string) *ListEventsDetectionJobsInput { 12851 s.NextToken = &v 12852 return s 12853} 12854 12855type ListEventsDetectionJobsOutput struct { 12856 _ struct{} `type:"structure"` 12857 12858 // A list containing the properties of each job that is returned. 12859 EventsDetectionJobPropertiesList []*EventsDetectionJobProperties `type:"list"` 12860 12861 // Identifies the next page of results to return. 12862 NextToken *string `min:"1" type:"string"` 12863} 12864 12865// String returns the string representation 12866func (s ListEventsDetectionJobsOutput) String() string { 12867 return awsutil.Prettify(s) 12868} 12869 12870// GoString returns the string representation 12871func (s ListEventsDetectionJobsOutput) GoString() string { 12872 return s.String() 12873} 12874 12875// SetEventsDetectionJobPropertiesList sets the EventsDetectionJobPropertiesList field's value. 12876func (s *ListEventsDetectionJobsOutput) SetEventsDetectionJobPropertiesList(v []*EventsDetectionJobProperties) *ListEventsDetectionJobsOutput { 12877 s.EventsDetectionJobPropertiesList = v 12878 return s 12879} 12880 12881// SetNextToken sets the NextToken field's value. 12882func (s *ListEventsDetectionJobsOutput) SetNextToken(v string) *ListEventsDetectionJobsOutput { 12883 s.NextToken = &v 12884 return s 12885} 12886 12887type ListKeyPhrasesDetectionJobsInput struct { 12888 _ struct{} `type:"structure"` 12889 12890 // Filters the jobs that are returned. You can filter jobs on their name, status, 12891 // or the date and time that they were submitted. You can only set one filter 12892 // at a time. 12893 Filter *KeyPhrasesDetectionJobFilter `type:"structure"` 12894 12895 // The maximum number of results to return in each page. The default is 100. 12896 MaxResults *int64 `min:"1" type:"integer"` 12897 12898 // Identifies the next page of results to return. 12899 NextToken *string `min:"1" type:"string"` 12900} 12901 12902// String returns the string representation 12903func (s ListKeyPhrasesDetectionJobsInput) String() string { 12904 return awsutil.Prettify(s) 12905} 12906 12907// GoString returns the string representation 12908func (s ListKeyPhrasesDetectionJobsInput) GoString() string { 12909 return s.String() 12910} 12911 12912// Validate inspects the fields of the type to determine if they are valid. 12913func (s *ListKeyPhrasesDetectionJobsInput) Validate() error { 12914 invalidParams := request.ErrInvalidParams{Context: "ListKeyPhrasesDetectionJobsInput"} 12915 if s.MaxResults != nil && *s.MaxResults < 1 { 12916 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 12917 } 12918 if s.NextToken != nil && len(*s.NextToken) < 1 { 12919 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 12920 } 12921 if s.Filter != nil { 12922 if err := s.Filter.Validate(); err != nil { 12923 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 12924 } 12925 } 12926 12927 if invalidParams.Len() > 0 { 12928 return invalidParams 12929 } 12930 return nil 12931} 12932 12933// SetFilter sets the Filter field's value. 12934func (s *ListKeyPhrasesDetectionJobsInput) SetFilter(v *KeyPhrasesDetectionJobFilter) *ListKeyPhrasesDetectionJobsInput { 12935 s.Filter = v 12936 return s 12937} 12938 12939// SetMaxResults sets the MaxResults field's value. 12940func (s *ListKeyPhrasesDetectionJobsInput) SetMaxResults(v int64) *ListKeyPhrasesDetectionJobsInput { 12941 s.MaxResults = &v 12942 return s 12943} 12944 12945// SetNextToken sets the NextToken field's value. 12946func (s *ListKeyPhrasesDetectionJobsInput) SetNextToken(v string) *ListKeyPhrasesDetectionJobsInput { 12947 s.NextToken = &v 12948 return s 12949} 12950 12951type ListKeyPhrasesDetectionJobsOutput struct { 12952 _ struct{} `type:"structure"` 12953 12954 // A list containing the properties of each job that is returned. 12955 KeyPhrasesDetectionJobPropertiesList []*KeyPhrasesDetectionJobProperties `type:"list"` 12956 12957 // Identifies the next page of results to return. 12958 NextToken *string `min:"1" type:"string"` 12959} 12960 12961// String returns the string representation 12962func (s ListKeyPhrasesDetectionJobsOutput) String() string { 12963 return awsutil.Prettify(s) 12964} 12965 12966// GoString returns the string representation 12967func (s ListKeyPhrasesDetectionJobsOutput) GoString() string { 12968 return s.String() 12969} 12970 12971// SetKeyPhrasesDetectionJobPropertiesList sets the KeyPhrasesDetectionJobPropertiesList field's value. 12972func (s *ListKeyPhrasesDetectionJobsOutput) SetKeyPhrasesDetectionJobPropertiesList(v []*KeyPhrasesDetectionJobProperties) *ListKeyPhrasesDetectionJobsOutput { 12973 s.KeyPhrasesDetectionJobPropertiesList = v 12974 return s 12975} 12976 12977// SetNextToken sets the NextToken field's value. 12978func (s *ListKeyPhrasesDetectionJobsOutput) SetNextToken(v string) *ListKeyPhrasesDetectionJobsOutput { 12979 s.NextToken = &v 12980 return s 12981} 12982 12983type ListPiiEntitiesDetectionJobsInput struct { 12984 _ struct{} `type:"structure"` 12985 12986 // Filters the jobs that are returned. You can filter jobs on their name, status, 12987 // or the date and time that they were submitted. You can only set one filter 12988 // at a time. 12989 Filter *PiiEntitiesDetectionJobFilter `type:"structure"` 12990 12991 // The maximum number of results to return in each page. 12992 MaxResults *int64 `min:"1" type:"integer"` 12993 12994 // Identifies the next page of results to return. 12995 NextToken *string `min:"1" type:"string"` 12996} 12997 12998// String returns the string representation 12999func (s ListPiiEntitiesDetectionJobsInput) String() string { 13000 return awsutil.Prettify(s) 13001} 13002 13003// GoString returns the string representation 13004func (s ListPiiEntitiesDetectionJobsInput) GoString() string { 13005 return s.String() 13006} 13007 13008// Validate inspects the fields of the type to determine if they are valid. 13009func (s *ListPiiEntitiesDetectionJobsInput) Validate() error { 13010 invalidParams := request.ErrInvalidParams{Context: "ListPiiEntitiesDetectionJobsInput"} 13011 if s.MaxResults != nil && *s.MaxResults < 1 { 13012 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 13013 } 13014 if s.NextToken != nil && len(*s.NextToken) < 1 { 13015 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 13016 } 13017 if s.Filter != nil { 13018 if err := s.Filter.Validate(); err != nil { 13019 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 13020 } 13021 } 13022 13023 if invalidParams.Len() > 0 { 13024 return invalidParams 13025 } 13026 return nil 13027} 13028 13029// SetFilter sets the Filter field's value. 13030func (s *ListPiiEntitiesDetectionJobsInput) SetFilter(v *PiiEntitiesDetectionJobFilter) *ListPiiEntitiesDetectionJobsInput { 13031 s.Filter = v 13032 return s 13033} 13034 13035// SetMaxResults sets the MaxResults field's value. 13036func (s *ListPiiEntitiesDetectionJobsInput) SetMaxResults(v int64) *ListPiiEntitiesDetectionJobsInput { 13037 s.MaxResults = &v 13038 return s 13039} 13040 13041// SetNextToken sets the NextToken field's value. 13042func (s *ListPiiEntitiesDetectionJobsInput) SetNextToken(v string) *ListPiiEntitiesDetectionJobsInput { 13043 s.NextToken = &v 13044 return s 13045} 13046 13047type ListPiiEntitiesDetectionJobsOutput struct { 13048 _ struct{} `type:"structure"` 13049 13050 // Identifies the next page of results to return. 13051 NextToken *string `min:"1" type:"string"` 13052 13053 // A list containing the properties of each job that is returned. 13054 PiiEntitiesDetectionJobPropertiesList []*PiiEntitiesDetectionJobProperties `type:"list"` 13055} 13056 13057// String returns the string representation 13058func (s ListPiiEntitiesDetectionJobsOutput) String() string { 13059 return awsutil.Prettify(s) 13060} 13061 13062// GoString returns the string representation 13063func (s ListPiiEntitiesDetectionJobsOutput) GoString() string { 13064 return s.String() 13065} 13066 13067// SetNextToken sets the NextToken field's value. 13068func (s *ListPiiEntitiesDetectionJobsOutput) SetNextToken(v string) *ListPiiEntitiesDetectionJobsOutput { 13069 s.NextToken = &v 13070 return s 13071} 13072 13073// SetPiiEntitiesDetectionJobPropertiesList sets the PiiEntitiesDetectionJobPropertiesList field's value. 13074func (s *ListPiiEntitiesDetectionJobsOutput) SetPiiEntitiesDetectionJobPropertiesList(v []*PiiEntitiesDetectionJobProperties) *ListPiiEntitiesDetectionJobsOutput { 13075 s.PiiEntitiesDetectionJobPropertiesList = v 13076 return s 13077} 13078 13079type ListSentimentDetectionJobsInput struct { 13080 _ struct{} `type:"structure"` 13081 13082 // Filters the jobs that are returned. You can filter jobs on their name, status, 13083 // or the date and time that they were submitted. You can only set one filter 13084 // at a time. 13085 Filter *SentimentDetectionJobFilter `type:"structure"` 13086 13087 // The maximum number of results to return in each page. The default is 100. 13088 MaxResults *int64 `min:"1" type:"integer"` 13089 13090 // Identifies the next page of results to return. 13091 NextToken *string `min:"1" type:"string"` 13092} 13093 13094// String returns the string representation 13095func (s ListSentimentDetectionJobsInput) String() string { 13096 return awsutil.Prettify(s) 13097} 13098 13099// GoString returns the string representation 13100func (s ListSentimentDetectionJobsInput) GoString() string { 13101 return s.String() 13102} 13103 13104// Validate inspects the fields of the type to determine if they are valid. 13105func (s *ListSentimentDetectionJobsInput) Validate() error { 13106 invalidParams := request.ErrInvalidParams{Context: "ListSentimentDetectionJobsInput"} 13107 if s.MaxResults != nil && *s.MaxResults < 1 { 13108 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 13109 } 13110 if s.NextToken != nil && len(*s.NextToken) < 1 { 13111 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 13112 } 13113 if s.Filter != nil { 13114 if err := s.Filter.Validate(); err != nil { 13115 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 13116 } 13117 } 13118 13119 if invalidParams.Len() > 0 { 13120 return invalidParams 13121 } 13122 return nil 13123} 13124 13125// SetFilter sets the Filter field's value. 13126func (s *ListSentimentDetectionJobsInput) SetFilter(v *SentimentDetectionJobFilter) *ListSentimentDetectionJobsInput { 13127 s.Filter = v 13128 return s 13129} 13130 13131// SetMaxResults sets the MaxResults field's value. 13132func (s *ListSentimentDetectionJobsInput) SetMaxResults(v int64) *ListSentimentDetectionJobsInput { 13133 s.MaxResults = &v 13134 return s 13135} 13136 13137// SetNextToken sets the NextToken field's value. 13138func (s *ListSentimentDetectionJobsInput) SetNextToken(v string) *ListSentimentDetectionJobsInput { 13139 s.NextToken = &v 13140 return s 13141} 13142 13143type ListSentimentDetectionJobsOutput struct { 13144 _ struct{} `type:"structure"` 13145 13146 // Identifies the next page of results to return. 13147 NextToken *string `min:"1" type:"string"` 13148 13149 // A list containing the properties of each job that is returned. 13150 SentimentDetectionJobPropertiesList []*SentimentDetectionJobProperties `type:"list"` 13151} 13152 13153// String returns the string representation 13154func (s ListSentimentDetectionJobsOutput) String() string { 13155 return awsutil.Prettify(s) 13156} 13157 13158// GoString returns the string representation 13159func (s ListSentimentDetectionJobsOutput) GoString() string { 13160 return s.String() 13161} 13162 13163// SetNextToken sets the NextToken field's value. 13164func (s *ListSentimentDetectionJobsOutput) SetNextToken(v string) *ListSentimentDetectionJobsOutput { 13165 s.NextToken = &v 13166 return s 13167} 13168 13169// SetSentimentDetectionJobPropertiesList sets the SentimentDetectionJobPropertiesList field's value. 13170func (s *ListSentimentDetectionJobsOutput) SetSentimentDetectionJobPropertiesList(v []*SentimentDetectionJobProperties) *ListSentimentDetectionJobsOutput { 13171 s.SentimentDetectionJobPropertiesList = v 13172 return s 13173} 13174 13175type ListTagsForResourceInput struct { 13176 _ struct{} `type:"structure"` 13177 13178 // The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you 13179 // are querying. 13180 // 13181 // ResourceArn is a required field 13182 ResourceArn *string `type:"string" required:"true"` 13183} 13184 13185// String returns the string representation 13186func (s ListTagsForResourceInput) String() string { 13187 return awsutil.Prettify(s) 13188} 13189 13190// GoString returns the string representation 13191func (s ListTagsForResourceInput) GoString() string { 13192 return s.String() 13193} 13194 13195// Validate inspects the fields of the type to determine if they are valid. 13196func (s *ListTagsForResourceInput) Validate() error { 13197 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 13198 if s.ResourceArn == nil { 13199 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 13200 } 13201 13202 if invalidParams.Len() > 0 { 13203 return invalidParams 13204 } 13205 return nil 13206} 13207 13208// SetResourceArn sets the ResourceArn field's value. 13209func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 13210 s.ResourceArn = &v 13211 return s 13212} 13213 13214type ListTagsForResourceOutput struct { 13215 _ struct{} `type:"structure"` 13216 13217 // The Amazon Resource Name (ARN) of the given Amazon Comprehend resource you 13218 // are querying. 13219 ResourceArn *string `type:"string"` 13220 13221 // Tags associated with the Amazon Comprehend resource being queried. A tag 13222 // is a key-value pair that adds as a metadata to a resource used by Amazon 13223 // Comprehend. For example, a tag with "Sales" as the key might be added to 13224 // a resource to indicate its use by the sales department. 13225 Tags []*Tag `type:"list"` 13226} 13227 13228// String returns the string representation 13229func (s ListTagsForResourceOutput) String() string { 13230 return awsutil.Prettify(s) 13231} 13232 13233// GoString returns the string representation 13234func (s ListTagsForResourceOutput) GoString() string { 13235 return s.String() 13236} 13237 13238// SetResourceArn sets the ResourceArn field's value. 13239func (s *ListTagsForResourceOutput) SetResourceArn(v string) *ListTagsForResourceOutput { 13240 s.ResourceArn = &v 13241 return s 13242} 13243 13244// SetTags sets the Tags field's value. 13245func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 13246 s.Tags = v 13247 return s 13248} 13249 13250type ListTopicsDetectionJobsInput struct { 13251 _ struct{} `type:"structure"` 13252 13253 // Filters the jobs that are returned. Jobs can be filtered on their name, status, 13254 // or the date and time that they were submitted. You can set only one filter 13255 // at a time. 13256 Filter *TopicsDetectionJobFilter `type:"structure"` 13257 13258 // The maximum number of results to return in each page. The default is 100. 13259 MaxResults *int64 `min:"1" type:"integer"` 13260 13261 // Identifies the next page of results to return. 13262 NextToken *string `min:"1" type:"string"` 13263} 13264 13265// String returns the string representation 13266func (s ListTopicsDetectionJobsInput) String() string { 13267 return awsutil.Prettify(s) 13268} 13269 13270// GoString returns the string representation 13271func (s ListTopicsDetectionJobsInput) GoString() string { 13272 return s.String() 13273} 13274 13275// Validate inspects the fields of the type to determine if they are valid. 13276func (s *ListTopicsDetectionJobsInput) Validate() error { 13277 invalidParams := request.ErrInvalidParams{Context: "ListTopicsDetectionJobsInput"} 13278 if s.MaxResults != nil && *s.MaxResults < 1 { 13279 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 13280 } 13281 if s.NextToken != nil && len(*s.NextToken) < 1 { 13282 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 13283 } 13284 if s.Filter != nil { 13285 if err := s.Filter.Validate(); err != nil { 13286 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) 13287 } 13288 } 13289 13290 if invalidParams.Len() > 0 { 13291 return invalidParams 13292 } 13293 return nil 13294} 13295 13296// SetFilter sets the Filter field's value. 13297func (s *ListTopicsDetectionJobsInput) SetFilter(v *TopicsDetectionJobFilter) *ListTopicsDetectionJobsInput { 13298 s.Filter = v 13299 return s 13300} 13301 13302// SetMaxResults sets the MaxResults field's value. 13303func (s *ListTopicsDetectionJobsInput) SetMaxResults(v int64) *ListTopicsDetectionJobsInput { 13304 s.MaxResults = &v 13305 return s 13306} 13307 13308// SetNextToken sets the NextToken field's value. 13309func (s *ListTopicsDetectionJobsInput) SetNextToken(v string) *ListTopicsDetectionJobsInput { 13310 s.NextToken = &v 13311 return s 13312} 13313 13314type ListTopicsDetectionJobsOutput struct { 13315 _ struct{} `type:"structure"` 13316 13317 // Identifies the next page of results to return. 13318 NextToken *string `min:"1" type:"string"` 13319 13320 // A list containing the properties of each job that is returned. 13321 TopicsDetectionJobPropertiesList []*TopicsDetectionJobProperties `type:"list"` 13322} 13323 13324// String returns the string representation 13325func (s ListTopicsDetectionJobsOutput) String() string { 13326 return awsutil.Prettify(s) 13327} 13328 13329// GoString returns the string representation 13330func (s ListTopicsDetectionJobsOutput) GoString() string { 13331 return s.String() 13332} 13333 13334// SetNextToken sets the NextToken field's value. 13335func (s *ListTopicsDetectionJobsOutput) SetNextToken(v string) *ListTopicsDetectionJobsOutput { 13336 s.NextToken = &v 13337 return s 13338} 13339 13340// SetTopicsDetectionJobPropertiesList sets the TopicsDetectionJobPropertiesList field's value. 13341func (s *ListTopicsDetectionJobsOutput) SetTopicsDetectionJobPropertiesList(v []*TopicsDetectionJobProperties) *ListTopicsDetectionJobsOutput { 13342 s.TopicsDetectionJobPropertiesList = v 13343 return s 13344} 13345 13346// Provides configuration parameters for the output of topic detection jobs. 13347type OutputDataConfig struct { 13348 _ struct{} `type:"structure"` 13349 13350 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 13351 // to encrypt the output results from an analysis job. The KmsKeyId can be one 13352 // of the following formats: 13353 // 13354 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 13355 // 13356 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 13357 // 13358 // * KMS Key Alias: "alias/ExampleAlias" 13359 // 13360 // * ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias" 13361 KmsKeyId *string `type:"string"` 13362 13363 // When you use the OutputDataConfig object with asynchronous operations, you 13364 // specify the Amazon S3 location where you want to write the output data. The 13365 // URI must be in the same region as the API endpoint that you are calling. 13366 // The location is used as the prefix for the actual location of the output 13367 // file. 13368 // 13369 // When the topic detection job is finished, the service creates an output file 13370 // in a directory specific to the job. The S3Uri field contains the location 13371 // of the output file, called output.tar.gz. It is a compressed archive that 13372 // contains the ouput of the operation. 13373 // 13374 // S3Uri is a required field 13375 S3Uri *string `type:"string" required:"true"` 13376} 13377 13378// String returns the string representation 13379func (s OutputDataConfig) String() string { 13380 return awsutil.Prettify(s) 13381} 13382 13383// GoString returns the string representation 13384func (s OutputDataConfig) GoString() string { 13385 return s.String() 13386} 13387 13388// Validate inspects the fields of the type to determine if they are valid. 13389func (s *OutputDataConfig) Validate() error { 13390 invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} 13391 if s.S3Uri == nil { 13392 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 13393 } 13394 13395 if invalidParams.Len() > 0 { 13396 return invalidParams 13397 } 13398 return nil 13399} 13400 13401// SetKmsKeyId sets the KmsKeyId field's value. 13402func (s *OutputDataConfig) SetKmsKeyId(v string) *OutputDataConfig { 13403 s.KmsKeyId = &v 13404 return s 13405} 13406 13407// SetS3Uri sets the S3Uri field's value. 13408func (s *OutputDataConfig) SetS3Uri(v string) *OutputDataConfig { 13409 s.S3Uri = &v 13410 return s 13411} 13412 13413// Identifies the part of speech represented by the token and gives the confidence 13414// that Amazon Comprehend has that the part of speech was correctly identified. 13415// For more information about the parts of speech that Amazon Comprehend can 13416// identify, see how-syntax. 13417type PartOfSpeechTag struct { 13418 _ struct{} `type:"structure"` 13419 13420 // The confidence that Amazon Comprehend has that the part of speech was correctly 13421 // identified. 13422 Score *float64 `type:"float"` 13423 13424 // Identifies the part of speech that the token represents. 13425 Tag *string `type:"string" enum:"PartOfSpeechTagType"` 13426} 13427 13428// String returns the string representation 13429func (s PartOfSpeechTag) String() string { 13430 return awsutil.Prettify(s) 13431} 13432 13433// GoString returns the string representation 13434func (s PartOfSpeechTag) GoString() string { 13435 return s.String() 13436} 13437 13438// SetScore sets the Score field's value. 13439func (s *PartOfSpeechTag) SetScore(v float64) *PartOfSpeechTag { 13440 s.Score = &v 13441 return s 13442} 13443 13444// SetTag sets the Tag field's value. 13445func (s *PartOfSpeechTag) SetTag(v string) *PartOfSpeechTag { 13446 s.Tag = &v 13447 return s 13448} 13449 13450// Provides information for filtering a list of PII entity detection jobs. 13451type PiiEntitiesDetectionJobFilter struct { 13452 _ struct{} `type:"structure"` 13453 13454 // Filters on the name of the job. 13455 JobName *string `min:"1" type:"string"` 13456 13457 // Filters the list of jobs based on job status. Returns only jobs with the 13458 // specified status. 13459 JobStatus *string `type:"string" enum:"JobStatus"` 13460 13461 // Filters the list of jobs based on the time that the job was submitted for 13462 // processing. Returns only jobs submitted after the specified time. Jobs are 13463 // returned in descending order, newest to oldest. 13464 SubmitTimeAfter *time.Time `type:"timestamp"` 13465 13466 // Filters the list of jobs based on the time that the job was submitted for 13467 // processing. Returns only jobs submitted before the specified time. Jobs are 13468 // returned in ascending order, oldest to newest. 13469 SubmitTimeBefore *time.Time `type:"timestamp"` 13470} 13471 13472// String returns the string representation 13473func (s PiiEntitiesDetectionJobFilter) String() string { 13474 return awsutil.Prettify(s) 13475} 13476 13477// GoString returns the string representation 13478func (s PiiEntitiesDetectionJobFilter) GoString() string { 13479 return s.String() 13480} 13481 13482// Validate inspects the fields of the type to determine if they are valid. 13483func (s *PiiEntitiesDetectionJobFilter) Validate() error { 13484 invalidParams := request.ErrInvalidParams{Context: "PiiEntitiesDetectionJobFilter"} 13485 if s.JobName != nil && len(*s.JobName) < 1 { 13486 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 13487 } 13488 13489 if invalidParams.Len() > 0 { 13490 return invalidParams 13491 } 13492 return nil 13493} 13494 13495// SetJobName sets the JobName field's value. 13496func (s *PiiEntitiesDetectionJobFilter) SetJobName(v string) *PiiEntitiesDetectionJobFilter { 13497 s.JobName = &v 13498 return s 13499} 13500 13501// SetJobStatus sets the JobStatus field's value. 13502func (s *PiiEntitiesDetectionJobFilter) SetJobStatus(v string) *PiiEntitiesDetectionJobFilter { 13503 s.JobStatus = &v 13504 return s 13505} 13506 13507// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 13508func (s *PiiEntitiesDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *PiiEntitiesDetectionJobFilter { 13509 s.SubmitTimeAfter = &v 13510 return s 13511} 13512 13513// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 13514func (s *PiiEntitiesDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *PiiEntitiesDetectionJobFilter { 13515 s.SubmitTimeBefore = &v 13516 return s 13517} 13518 13519// Provides information about a PII entities detection job. 13520type PiiEntitiesDetectionJobProperties struct { 13521 _ struct{} `type:"structure"` 13522 13523 // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to 13524 // your input data. 13525 DataAccessRoleArn *string `min:"20" type:"string"` 13526 13527 // The time that the PII entities detection job completed. 13528 EndTime *time.Time `type:"timestamp"` 13529 13530 // The input properties for a PII entities detection job. 13531 InputDataConfig *InputDataConfig `type:"structure"` 13532 13533 // The identifier assigned to the PII entities detection job. 13534 JobId *string `min:"1" type:"string"` 13535 13536 // The name that you assigned the PII entities detection job. 13537 JobName *string `min:"1" type:"string"` 13538 13539 // The current status of the PII entities detection job. If the status is FAILED, 13540 // the Message field shows the reason for the failure. 13541 JobStatus *string `type:"string" enum:"JobStatus"` 13542 13543 // The language code of the input documents 13544 LanguageCode *string `type:"string" enum:"LanguageCode"` 13545 13546 // A description of the status of a job. 13547 Message *string `type:"string"` 13548 13549 // Specifies whether the output provides the locations (offsets) of PII entities 13550 // or a file in which PII entities are redacted. 13551 Mode *string `type:"string" enum:"PiiEntitiesDetectionMode"` 13552 13553 // The output data configuration that you supplied when you created the PII 13554 // entities detection job. 13555 OutputDataConfig *PiiOutputDataConfig `type:"structure"` 13556 13557 // Provides configuration parameters for PII entity redaction. 13558 // 13559 // This parameter is required if you set the Mode parameter to ONLY_REDACTION. 13560 // In that case, you must provide a RedactionConfig definition that includes 13561 // the PiiEntityTypes parameter. 13562 RedactionConfig *RedactionConfig `type:"structure"` 13563 13564 // The time that the PII entities detection job was submitted for processing. 13565 SubmitTime *time.Time `type:"timestamp"` 13566} 13567 13568// String returns the string representation 13569func (s PiiEntitiesDetectionJobProperties) String() string { 13570 return awsutil.Prettify(s) 13571} 13572 13573// GoString returns the string representation 13574func (s PiiEntitiesDetectionJobProperties) GoString() string { 13575 return s.String() 13576} 13577 13578// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 13579func (s *PiiEntitiesDetectionJobProperties) SetDataAccessRoleArn(v string) *PiiEntitiesDetectionJobProperties { 13580 s.DataAccessRoleArn = &v 13581 return s 13582} 13583 13584// SetEndTime sets the EndTime field's value. 13585func (s *PiiEntitiesDetectionJobProperties) SetEndTime(v time.Time) *PiiEntitiesDetectionJobProperties { 13586 s.EndTime = &v 13587 return s 13588} 13589 13590// SetInputDataConfig sets the InputDataConfig field's value. 13591func (s *PiiEntitiesDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *PiiEntitiesDetectionJobProperties { 13592 s.InputDataConfig = v 13593 return s 13594} 13595 13596// SetJobId sets the JobId field's value. 13597func (s *PiiEntitiesDetectionJobProperties) SetJobId(v string) *PiiEntitiesDetectionJobProperties { 13598 s.JobId = &v 13599 return s 13600} 13601 13602// SetJobName sets the JobName field's value. 13603func (s *PiiEntitiesDetectionJobProperties) SetJobName(v string) *PiiEntitiesDetectionJobProperties { 13604 s.JobName = &v 13605 return s 13606} 13607 13608// SetJobStatus sets the JobStatus field's value. 13609func (s *PiiEntitiesDetectionJobProperties) SetJobStatus(v string) *PiiEntitiesDetectionJobProperties { 13610 s.JobStatus = &v 13611 return s 13612} 13613 13614// SetLanguageCode sets the LanguageCode field's value. 13615func (s *PiiEntitiesDetectionJobProperties) SetLanguageCode(v string) *PiiEntitiesDetectionJobProperties { 13616 s.LanguageCode = &v 13617 return s 13618} 13619 13620// SetMessage sets the Message field's value. 13621func (s *PiiEntitiesDetectionJobProperties) SetMessage(v string) *PiiEntitiesDetectionJobProperties { 13622 s.Message = &v 13623 return s 13624} 13625 13626// SetMode sets the Mode field's value. 13627func (s *PiiEntitiesDetectionJobProperties) SetMode(v string) *PiiEntitiesDetectionJobProperties { 13628 s.Mode = &v 13629 return s 13630} 13631 13632// SetOutputDataConfig sets the OutputDataConfig field's value. 13633func (s *PiiEntitiesDetectionJobProperties) SetOutputDataConfig(v *PiiOutputDataConfig) *PiiEntitiesDetectionJobProperties { 13634 s.OutputDataConfig = v 13635 return s 13636} 13637 13638// SetRedactionConfig sets the RedactionConfig field's value. 13639func (s *PiiEntitiesDetectionJobProperties) SetRedactionConfig(v *RedactionConfig) *PiiEntitiesDetectionJobProperties { 13640 s.RedactionConfig = v 13641 return s 13642} 13643 13644// SetSubmitTime sets the SubmitTime field's value. 13645func (s *PiiEntitiesDetectionJobProperties) SetSubmitTime(v time.Time) *PiiEntitiesDetectionJobProperties { 13646 s.SubmitTime = &v 13647 return s 13648} 13649 13650// Provides information about a PII entity. 13651type PiiEntity struct { 13652 _ struct{} `type:"structure"` 13653 13654 // A character offset in the input text that shows where the PII entity begins 13655 // (the first character is at position 0). The offset returns the position of 13656 // each UTF-8 code point in the string. A code point is the abstract character 13657 // from a particular graphical representation. For example, a multi-byte UTF-8 13658 // character maps to a single code point. 13659 BeginOffset *int64 `type:"integer"` 13660 13661 // A character offset in the input text that shows where the PII entity ends. 13662 // The offset returns the position of each UTF-8 code point in the string. A 13663 // code point is the abstract character from a particular graphical representation. 13664 // For example, a multi-byte UTF-8 character maps to a single code point. 13665 EndOffset *int64 `type:"integer"` 13666 13667 // The level of confidence that Amazon Comprehend has in the accuracy of the 13668 // detection. 13669 Score *float64 `type:"float"` 13670 13671 // The entity's type. 13672 Type *string `type:"string" enum:"PiiEntityType"` 13673} 13674 13675// String returns the string representation 13676func (s PiiEntity) String() string { 13677 return awsutil.Prettify(s) 13678} 13679 13680// GoString returns the string representation 13681func (s PiiEntity) GoString() string { 13682 return s.String() 13683} 13684 13685// SetBeginOffset sets the BeginOffset field's value. 13686func (s *PiiEntity) SetBeginOffset(v int64) *PiiEntity { 13687 s.BeginOffset = &v 13688 return s 13689} 13690 13691// SetEndOffset sets the EndOffset field's value. 13692func (s *PiiEntity) SetEndOffset(v int64) *PiiEntity { 13693 s.EndOffset = &v 13694 return s 13695} 13696 13697// SetScore sets the Score field's value. 13698func (s *PiiEntity) SetScore(v float64) *PiiEntity { 13699 s.Score = &v 13700 return s 13701} 13702 13703// SetType sets the Type field's value. 13704func (s *PiiEntity) SetType(v string) *PiiEntity { 13705 s.Type = &v 13706 return s 13707} 13708 13709// Provides configuration parameters for the output of PII entity detection 13710// jobs. 13711type PiiOutputDataConfig struct { 13712 _ struct{} `type:"structure"` 13713 13714 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 13715 // to encrypt the output results from an analysis job. 13716 KmsKeyId *string `type:"string"` 13717 13718 // When you use the PiiOutputDataConfig object with asynchronous operations, 13719 // you specify the Amazon S3 location where you want to write the output data. 13720 // 13721 // S3Uri is a required field 13722 S3Uri *string `type:"string" required:"true"` 13723} 13724 13725// String returns the string representation 13726func (s PiiOutputDataConfig) String() string { 13727 return awsutil.Prettify(s) 13728} 13729 13730// GoString returns the string representation 13731func (s PiiOutputDataConfig) GoString() string { 13732 return s.String() 13733} 13734 13735// SetKmsKeyId sets the KmsKeyId field's value. 13736func (s *PiiOutputDataConfig) SetKmsKeyId(v string) *PiiOutputDataConfig { 13737 s.KmsKeyId = &v 13738 return s 13739} 13740 13741// SetS3Uri sets the S3Uri field's value. 13742func (s *PiiOutputDataConfig) SetS3Uri(v string) *PiiOutputDataConfig { 13743 s.S3Uri = &v 13744 return s 13745} 13746 13747// Provides configuration parameters for PII entity redaction. 13748type RedactionConfig struct { 13749 _ struct{} `type:"structure"` 13750 13751 // A character that replaces each character in the redacted PII entity. 13752 MaskCharacter *string `min:"1" type:"string"` 13753 13754 // Specifies whether the PII entity is redacted with the mask character or the 13755 // entity type. 13756 MaskMode *string `type:"string" enum:"PiiEntitiesDetectionMaskMode"` 13757 13758 // An array of the types of PII entities that Amazon Comprehend detects in the 13759 // input text for your request. 13760 PiiEntityTypes []*string `type:"list"` 13761} 13762 13763// String returns the string representation 13764func (s RedactionConfig) String() string { 13765 return awsutil.Prettify(s) 13766} 13767 13768// GoString returns the string representation 13769func (s RedactionConfig) GoString() string { 13770 return s.String() 13771} 13772 13773// Validate inspects the fields of the type to determine if they are valid. 13774func (s *RedactionConfig) Validate() error { 13775 invalidParams := request.ErrInvalidParams{Context: "RedactionConfig"} 13776 if s.MaskCharacter != nil && len(*s.MaskCharacter) < 1 { 13777 invalidParams.Add(request.NewErrParamMinLen("MaskCharacter", 1)) 13778 } 13779 13780 if invalidParams.Len() > 0 { 13781 return invalidParams 13782 } 13783 return nil 13784} 13785 13786// SetMaskCharacter sets the MaskCharacter field's value. 13787func (s *RedactionConfig) SetMaskCharacter(v string) *RedactionConfig { 13788 s.MaskCharacter = &v 13789 return s 13790} 13791 13792// SetMaskMode sets the MaskMode field's value. 13793func (s *RedactionConfig) SetMaskMode(v string) *RedactionConfig { 13794 s.MaskMode = &v 13795 return s 13796} 13797 13798// SetPiiEntityTypes sets the PiiEntityTypes field's value. 13799func (s *RedactionConfig) SetPiiEntityTypes(v []*string) *RedactionConfig { 13800 s.PiiEntityTypes = v 13801 return s 13802} 13803 13804// The specified resource name is already in use. Use a different name and try 13805// your request again. 13806type ResourceInUseException struct { 13807 _ struct{} `type:"structure"` 13808 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13809 13810 Message_ *string `locationName:"Message" min:"1" type:"string"` 13811} 13812 13813// String returns the string representation 13814func (s ResourceInUseException) String() string { 13815 return awsutil.Prettify(s) 13816} 13817 13818// GoString returns the string representation 13819func (s ResourceInUseException) GoString() string { 13820 return s.String() 13821} 13822 13823func newErrorResourceInUseException(v protocol.ResponseMetadata) error { 13824 return &ResourceInUseException{ 13825 RespMetadata: v, 13826 } 13827} 13828 13829// Code returns the exception type name. 13830func (s *ResourceInUseException) Code() string { 13831 return "ResourceInUseException" 13832} 13833 13834// Message returns the exception's message. 13835func (s *ResourceInUseException) Message() string { 13836 if s.Message_ != nil { 13837 return *s.Message_ 13838 } 13839 return "" 13840} 13841 13842// OrigErr always returns nil, satisfies awserr.Error interface. 13843func (s *ResourceInUseException) OrigErr() error { 13844 return nil 13845} 13846 13847func (s *ResourceInUseException) Error() string { 13848 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13849} 13850 13851// Status code returns the HTTP status code for the request's response error. 13852func (s *ResourceInUseException) StatusCode() int { 13853 return s.RespMetadata.StatusCode 13854} 13855 13856// RequestID returns the service's response RequestID for request. 13857func (s *ResourceInUseException) RequestID() string { 13858 return s.RespMetadata.RequestID 13859} 13860 13861// The maximum number of resources per account has been exceeded. Review the 13862// resources, and then try your request again. 13863type ResourceLimitExceededException struct { 13864 _ struct{} `type:"structure"` 13865 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13866 13867 Message_ *string `locationName:"Message" min:"1" type:"string"` 13868} 13869 13870// String returns the string representation 13871func (s ResourceLimitExceededException) String() string { 13872 return awsutil.Prettify(s) 13873} 13874 13875// GoString returns the string representation 13876func (s ResourceLimitExceededException) GoString() string { 13877 return s.String() 13878} 13879 13880func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { 13881 return &ResourceLimitExceededException{ 13882 RespMetadata: v, 13883 } 13884} 13885 13886// Code returns the exception type name. 13887func (s *ResourceLimitExceededException) Code() string { 13888 return "ResourceLimitExceededException" 13889} 13890 13891// Message returns the exception's message. 13892func (s *ResourceLimitExceededException) Message() string { 13893 if s.Message_ != nil { 13894 return *s.Message_ 13895 } 13896 return "" 13897} 13898 13899// OrigErr always returns nil, satisfies awserr.Error interface. 13900func (s *ResourceLimitExceededException) OrigErr() error { 13901 return nil 13902} 13903 13904func (s *ResourceLimitExceededException) Error() string { 13905 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13906} 13907 13908// Status code returns the HTTP status code for the request's response error. 13909func (s *ResourceLimitExceededException) StatusCode() int { 13910 return s.RespMetadata.StatusCode 13911} 13912 13913// RequestID returns the service's response RequestID for request. 13914func (s *ResourceLimitExceededException) RequestID() string { 13915 return s.RespMetadata.RequestID 13916} 13917 13918// The specified resource ARN was not found. Check the ARN and try your request 13919// again. 13920type ResourceNotFoundException struct { 13921 _ struct{} `type:"structure"` 13922 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13923 13924 Message_ *string `locationName:"Message" min:"1" type:"string"` 13925} 13926 13927// String returns the string representation 13928func (s ResourceNotFoundException) String() string { 13929 return awsutil.Prettify(s) 13930} 13931 13932// GoString returns the string representation 13933func (s ResourceNotFoundException) GoString() string { 13934 return s.String() 13935} 13936 13937func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 13938 return &ResourceNotFoundException{ 13939 RespMetadata: v, 13940 } 13941} 13942 13943// Code returns the exception type name. 13944func (s *ResourceNotFoundException) Code() string { 13945 return "ResourceNotFoundException" 13946} 13947 13948// Message returns the exception's message. 13949func (s *ResourceNotFoundException) Message() string { 13950 if s.Message_ != nil { 13951 return *s.Message_ 13952 } 13953 return "" 13954} 13955 13956// OrigErr always returns nil, satisfies awserr.Error interface. 13957func (s *ResourceNotFoundException) OrigErr() error { 13958 return nil 13959} 13960 13961func (s *ResourceNotFoundException) Error() string { 13962 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13963} 13964 13965// Status code returns the HTTP status code for the request's response error. 13966func (s *ResourceNotFoundException) StatusCode() int { 13967 return s.RespMetadata.StatusCode 13968} 13969 13970// RequestID returns the service's response RequestID for request. 13971func (s *ResourceNotFoundException) RequestID() string { 13972 return s.RespMetadata.RequestID 13973} 13974 13975// The specified resource is not available. Check the resource and try your 13976// request again. 13977type ResourceUnavailableException struct { 13978 _ struct{} `type:"structure"` 13979 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13980 13981 Message_ *string `locationName:"Message" min:"1" type:"string"` 13982} 13983 13984// String returns the string representation 13985func (s ResourceUnavailableException) String() string { 13986 return awsutil.Prettify(s) 13987} 13988 13989// GoString returns the string representation 13990func (s ResourceUnavailableException) GoString() string { 13991 return s.String() 13992} 13993 13994func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { 13995 return &ResourceUnavailableException{ 13996 RespMetadata: v, 13997 } 13998} 13999 14000// Code returns the exception type name. 14001func (s *ResourceUnavailableException) Code() string { 14002 return "ResourceUnavailableException" 14003} 14004 14005// Message returns the exception's message. 14006func (s *ResourceUnavailableException) Message() string { 14007 if s.Message_ != nil { 14008 return *s.Message_ 14009 } 14010 return "" 14011} 14012 14013// OrigErr always returns nil, satisfies awserr.Error interface. 14014func (s *ResourceUnavailableException) OrigErr() error { 14015 return nil 14016} 14017 14018func (s *ResourceUnavailableException) Error() string { 14019 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14020} 14021 14022// Status code returns the HTTP status code for the request's response error. 14023func (s *ResourceUnavailableException) StatusCode() int { 14024 return s.RespMetadata.StatusCode 14025} 14026 14027// RequestID returns the service's response RequestID for request. 14028func (s *ResourceUnavailableException) RequestID() string { 14029 return s.RespMetadata.RequestID 14030} 14031 14032// Provides information for filtering a list of dominant language detection 14033// jobs. For more information, see the operation. 14034type SentimentDetectionJobFilter struct { 14035 _ struct{} `type:"structure"` 14036 14037 // Filters on the name of the job. 14038 JobName *string `min:"1" type:"string"` 14039 14040 // Filters the list of jobs based on job status. Returns only jobs with the 14041 // specified status. 14042 JobStatus *string `type:"string" enum:"JobStatus"` 14043 14044 // Filters the list of jobs based on the time that the job was submitted for 14045 // processing. Returns only jobs submitted after the specified time. Jobs are 14046 // returned in descending order, newest to oldest. 14047 SubmitTimeAfter *time.Time `type:"timestamp"` 14048 14049 // Filters the list of jobs based on the time that the job was submitted for 14050 // processing. Returns only jobs submitted before the specified time. Jobs are 14051 // returned in ascending order, oldest to newest. 14052 SubmitTimeBefore *time.Time `type:"timestamp"` 14053} 14054 14055// String returns the string representation 14056func (s SentimentDetectionJobFilter) String() string { 14057 return awsutil.Prettify(s) 14058} 14059 14060// GoString returns the string representation 14061func (s SentimentDetectionJobFilter) GoString() string { 14062 return s.String() 14063} 14064 14065// Validate inspects the fields of the type to determine if they are valid. 14066func (s *SentimentDetectionJobFilter) Validate() error { 14067 invalidParams := request.ErrInvalidParams{Context: "SentimentDetectionJobFilter"} 14068 if s.JobName != nil && len(*s.JobName) < 1 { 14069 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 14070 } 14071 14072 if invalidParams.Len() > 0 { 14073 return invalidParams 14074 } 14075 return nil 14076} 14077 14078// SetJobName sets the JobName field's value. 14079func (s *SentimentDetectionJobFilter) SetJobName(v string) *SentimentDetectionJobFilter { 14080 s.JobName = &v 14081 return s 14082} 14083 14084// SetJobStatus sets the JobStatus field's value. 14085func (s *SentimentDetectionJobFilter) SetJobStatus(v string) *SentimentDetectionJobFilter { 14086 s.JobStatus = &v 14087 return s 14088} 14089 14090// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 14091func (s *SentimentDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *SentimentDetectionJobFilter { 14092 s.SubmitTimeAfter = &v 14093 return s 14094} 14095 14096// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 14097func (s *SentimentDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *SentimentDetectionJobFilter { 14098 s.SubmitTimeBefore = &v 14099 return s 14100} 14101 14102// Provides information about a sentiment detection job. 14103type SentimentDetectionJobProperties struct { 14104 _ struct{} `type:"structure"` 14105 14106 // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to 14107 // your input data. 14108 DataAccessRoleArn *string `min:"20" type:"string"` 14109 14110 // The time that the sentiment detection job ended. 14111 EndTime *time.Time `type:"timestamp"` 14112 14113 // The input data configuration that you supplied when you created the sentiment 14114 // detection job. 14115 InputDataConfig *InputDataConfig `type:"structure"` 14116 14117 // The identifier assigned to the sentiment detection job. 14118 JobId *string `min:"1" type:"string"` 14119 14120 // The name that you assigned to the sentiment detection job 14121 JobName *string `min:"1" type:"string"` 14122 14123 // The current status of the sentiment detection job. If the status is FAILED, 14124 // the Messages field shows the reason for the failure. 14125 JobStatus *string `type:"string" enum:"JobStatus"` 14126 14127 // The language code of the input documents. 14128 LanguageCode *string `type:"string" enum:"LanguageCode"` 14129 14130 // A description of the status of a job. 14131 Message *string `type:"string"` 14132 14133 // The output data configuration that you supplied when you created the sentiment 14134 // detection job. 14135 OutputDataConfig *OutputDataConfig `type:"structure"` 14136 14137 // The time that the sentiment detection job was submitted for processing. 14138 SubmitTime *time.Time `type:"timestamp"` 14139 14140 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 14141 // to encrypt data on the storage volume attached to the ML compute instance(s) 14142 // that process the analysis job. The VolumeKmsKeyId can be either of the following 14143 // formats: 14144 // 14145 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 14146 // 14147 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 14148 VolumeKmsKeyId *string `type:"string"` 14149 14150 // Configuration parameters for a private Virtual Private Cloud (VPC) containing 14151 // the resources you are using for your sentiment detection job. For more information, 14152 // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 14153 VpcConfig *VpcConfig `type:"structure"` 14154} 14155 14156// String returns the string representation 14157func (s SentimentDetectionJobProperties) String() string { 14158 return awsutil.Prettify(s) 14159} 14160 14161// GoString returns the string representation 14162func (s SentimentDetectionJobProperties) GoString() string { 14163 return s.String() 14164} 14165 14166// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 14167func (s *SentimentDetectionJobProperties) SetDataAccessRoleArn(v string) *SentimentDetectionJobProperties { 14168 s.DataAccessRoleArn = &v 14169 return s 14170} 14171 14172// SetEndTime sets the EndTime field's value. 14173func (s *SentimentDetectionJobProperties) SetEndTime(v time.Time) *SentimentDetectionJobProperties { 14174 s.EndTime = &v 14175 return s 14176} 14177 14178// SetInputDataConfig sets the InputDataConfig field's value. 14179func (s *SentimentDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *SentimentDetectionJobProperties { 14180 s.InputDataConfig = v 14181 return s 14182} 14183 14184// SetJobId sets the JobId field's value. 14185func (s *SentimentDetectionJobProperties) SetJobId(v string) *SentimentDetectionJobProperties { 14186 s.JobId = &v 14187 return s 14188} 14189 14190// SetJobName sets the JobName field's value. 14191func (s *SentimentDetectionJobProperties) SetJobName(v string) *SentimentDetectionJobProperties { 14192 s.JobName = &v 14193 return s 14194} 14195 14196// SetJobStatus sets the JobStatus field's value. 14197func (s *SentimentDetectionJobProperties) SetJobStatus(v string) *SentimentDetectionJobProperties { 14198 s.JobStatus = &v 14199 return s 14200} 14201 14202// SetLanguageCode sets the LanguageCode field's value. 14203func (s *SentimentDetectionJobProperties) SetLanguageCode(v string) *SentimentDetectionJobProperties { 14204 s.LanguageCode = &v 14205 return s 14206} 14207 14208// SetMessage sets the Message field's value. 14209func (s *SentimentDetectionJobProperties) SetMessage(v string) *SentimentDetectionJobProperties { 14210 s.Message = &v 14211 return s 14212} 14213 14214// SetOutputDataConfig sets the OutputDataConfig field's value. 14215func (s *SentimentDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *SentimentDetectionJobProperties { 14216 s.OutputDataConfig = v 14217 return s 14218} 14219 14220// SetSubmitTime sets the SubmitTime field's value. 14221func (s *SentimentDetectionJobProperties) SetSubmitTime(v time.Time) *SentimentDetectionJobProperties { 14222 s.SubmitTime = &v 14223 return s 14224} 14225 14226// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 14227func (s *SentimentDetectionJobProperties) SetVolumeKmsKeyId(v string) *SentimentDetectionJobProperties { 14228 s.VolumeKmsKeyId = &v 14229 return s 14230} 14231 14232// SetVpcConfig sets the VpcConfig field's value. 14233func (s *SentimentDetectionJobProperties) SetVpcConfig(v *VpcConfig) *SentimentDetectionJobProperties { 14234 s.VpcConfig = v 14235 return s 14236} 14237 14238// Describes the level of confidence that Amazon Comprehend has in the accuracy 14239// of its detection of sentiments. 14240type SentimentScore struct { 14241 _ struct{} `type:"structure"` 14242 14243 // The level of confidence that Amazon Comprehend has in the accuracy of its 14244 // detection of the MIXED sentiment. 14245 Mixed *float64 `type:"float"` 14246 14247 // The level of confidence that Amazon Comprehend has in the accuracy of its 14248 // detection of the NEGATIVE sentiment. 14249 Negative *float64 `type:"float"` 14250 14251 // The level of confidence that Amazon Comprehend has in the accuracy of its 14252 // detection of the NEUTRAL sentiment. 14253 Neutral *float64 `type:"float"` 14254 14255 // The level of confidence that Amazon Comprehend has in the accuracy of its 14256 // detection of the POSITIVE sentiment. 14257 Positive *float64 `type:"float"` 14258} 14259 14260// String returns the string representation 14261func (s SentimentScore) String() string { 14262 return awsutil.Prettify(s) 14263} 14264 14265// GoString returns the string representation 14266func (s SentimentScore) GoString() string { 14267 return s.String() 14268} 14269 14270// SetMixed sets the Mixed field's value. 14271func (s *SentimentScore) SetMixed(v float64) *SentimentScore { 14272 s.Mixed = &v 14273 return s 14274} 14275 14276// SetNegative sets the Negative field's value. 14277func (s *SentimentScore) SetNegative(v float64) *SentimentScore { 14278 s.Negative = &v 14279 return s 14280} 14281 14282// SetNeutral sets the Neutral field's value. 14283func (s *SentimentScore) SetNeutral(v float64) *SentimentScore { 14284 s.Neutral = &v 14285 return s 14286} 14287 14288// SetPositive sets the Positive field's value. 14289func (s *SentimentScore) SetPositive(v float64) *SentimentScore { 14290 s.Positive = &v 14291 return s 14292} 14293 14294type StartDocumentClassificationJobInput struct { 14295 _ struct{} `type:"structure"` 14296 14297 // A unique identifier for the request. If you do not set the client request 14298 // token, Amazon Comprehend generates one. 14299 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 14300 14301 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 14302 // (IAM) role that grants Amazon Comprehend read access to your input data. 14303 // 14304 // DataAccessRoleArn is a required field 14305 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 14306 14307 // The Amazon Resource Name (ARN) of the document classifier to use to process 14308 // the job. 14309 // 14310 // DocumentClassifierArn is a required field 14311 DocumentClassifierArn *string `type:"string" required:"true"` 14312 14313 // Specifies the format and location of the input data for the job. 14314 // 14315 // InputDataConfig is a required field 14316 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 14317 14318 // The identifier of the job. 14319 JobName *string `min:"1" type:"string"` 14320 14321 // Specifies where to send the output files. 14322 // 14323 // OutputDataConfig is a required field 14324 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 14325 14326 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 14327 // to encrypt data on the storage volume attached to the ML compute instance(s) 14328 // that process the analysis job. The VolumeKmsKeyId can be either of the following 14329 // formats: 14330 // 14331 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 14332 // 14333 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 14334 VolumeKmsKeyId *string `type:"string"` 14335 14336 // Configuration parameters for an optional private Virtual Private Cloud (VPC) 14337 // containing the resources you are using for your document classification job. 14338 // For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 14339 VpcConfig *VpcConfig `type:"structure"` 14340} 14341 14342// String returns the string representation 14343func (s StartDocumentClassificationJobInput) String() string { 14344 return awsutil.Prettify(s) 14345} 14346 14347// GoString returns the string representation 14348func (s StartDocumentClassificationJobInput) GoString() string { 14349 return s.String() 14350} 14351 14352// Validate inspects the fields of the type to determine if they are valid. 14353func (s *StartDocumentClassificationJobInput) Validate() error { 14354 invalidParams := request.ErrInvalidParams{Context: "StartDocumentClassificationJobInput"} 14355 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 14356 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 14357 } 14358 if s.DataAccessRoleArn == nil { 14359 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 14360 } 14361 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 14362 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 14363 } 14364 if s.DocumentClassifierArn == nil { 14365 invalidParams.Add(request.NewErrParamRequired("DocumentClassifierArn")) 14366 } 14367 if s.InputDataConfig == nil { 14368 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 14369 } 14370 if s.JobName != nil && len(*s.JobName) < 1 { 14371 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 14372 } 14373 if s.OutputDataConfig == nil { 14374 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 14375 } 14376 if s.InputDataConfig != nil { 14377 if err := s.InputDataConfig.Validate(); err != nil { 14378 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 14379 } 14380 } 14381 if s.OutputDataConfig != nil { 14382 if err := s.OutputDataConfig.Validate(); err != nil { 14383 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 14384 } 14385 } 14386 if s.VpcConfig != nil { 14387 if err := s.VpcConfig.Validate(); err != nil { 14388 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 14389 } 14390 } 14391 14392 if invalidParams.Len() > 0 { 14393 return invalidParams 14394 } 14395 return nil 14396} 14397 14398// SetClientRequestToken sets the ClientRequestToken field's value. 14399func (s *StartDocumentClassificationJobInput) SetClientRequestToken(v string) *StartDocumentClassificationJobInput { 14400 s.ClientRequestToken = &v 14401 return s 14402} 14403 14404// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 14405func (s *StartDocumentClassificationJobInput) SetDataAccessRoleArn(v string) *StartDocumentClassificationJobInput { 14406 s.DataAccessRoleArn = &v 14407 return s 14408} 14409 14410// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. 14411func (s *StartDocumentClassificationJobInput) SetDocumentClassifierArn(v string) *StartDocumentClassificationJobInput { 14412 s.DocumentClassifierArn = &v 14413 return s 14414} 14415 14416// SetInputDataConfig sets the InputDataConfig field's value. 14417func (s *StartDocumentClassificationJobInput) SetInputDataConfig(v *InputDataConfig) *StartDocumentClassificationJobInput { 14418 s.InputDataConfig = v 14419 return s 14420} 14421 14422// SetJobName sets the JobName field's value. 14423func (s *StartDocumentClassificationJobInput) SetJobName(v string) *StartDocumentClassificationJobInput { 14424 s.JobName = &v 14425 return s 14426} 14427 14428// SetOutputDataConfig sets the OutputDataConfig field's value. 14429func (s *StartDocumentClassificationJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartDocumentClassificationJobInput { 14430 s.OutputDataConfig = v 14431 return s 14432} 14433 14434// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 14435func (s *StartDocumentClassificationJobInput) SetVolumeKmsKeyId(v string) *StartDocumentClassificationJobInput { 14436 s.VolumeKmsKeyId = &v 14437 return s 14438} 14439 14440// SetVpcConfig sets the VpcConfig field's value. 14441func (s *StartDocumentClassificationJobInput) SetVpcConfig(v *VpcConfig) *StartDocumentClassificationJobInput { 14442 s.VpcConfig = v 14443 return s 14444} 14445 14446type StartDocumentClassificationJobOutput struct { 14447 _ struct{} `type:"structure"` 14448 14449 // The identifier generated for the job. To get the status of the job, use this 14450 // identifier with the operation. 14451 JobId *string `min:"1" type:"string"` 14452 14453 // The status of the job: 14454 // 14455 // * SUBMITTED - The job has been received and queued for processing. 14456 // 14457 // * IN_PROGRESS - Amazon Comprehend is processing the job. 14458 // 14459 // * COMPLETED - The job was successfully completed and the output is available. 14460 // 14461 // * FAILED - The job did not complete. For details, use the operation. 14462 // 14463 // * STOP_REQUESTED - Amazon Comprehend has received a stop request for the 14464 // job and is processing the request. 14465 // 14466 // * STOPPED - The job was successfully stopped without completing. 14467 JobStatus *string `type:"string" enum:"JobStatus"` 14468} 14469 14470// String returns the string representation 14471func (s StartDocumentClassificationJobOutput) String() string { 14472 return awsutil.Prettify(s) 14473} 14474 14475// GoString returns the string representation 14476func (s StartDocumentClassificationJobOutput) GoString() string { 14477 return s.String() 14478} 14479 14480// SetJobId sets the JobId field's value. 14481func (s *StartDocumentClassificationJobOutput) SetJobId(v string) *StartDocumentClassificationJobOutput { 14482 s.JobId = &v 14483 return s 14484} 14485 14486// SetJobStatus sets the JobStatus field's value. 14487func (s *StartDocumentClassificationJobOutput) SetJobStatus(v string) *StartDocumentClassificationJobOutput { 14488 s.JobStatus = &v 14489 return s 14490} 14491 14492type StartDominantLanguageDetectionJobInput struct { 14493 _ struct{} `type:"structure"` 14494 14495 // A unique identifier for the request. If you do not set the client request 14496 // token, Amazon Comprehend generates one. 14497 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 14498 14499 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 14500 // (IAM) role that grants Amazon Comprehend read access to your input data. 14501 // For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions 14502 // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). 14503 // 14504 // DataAccessRoleArn is a required field 14505 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 14506 14507 // Specifies the format and location of the input data for the job. 14508 // 14509 // InputDataConfig is a required field 14510 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 14511 14512 // An identifier for the job. 14513 JobName *string `min:"1" type:"string"` 14514 14515 // Specifies where to send the output files. 14516 // 14517 // OutputDataConfig is a required field 14518 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 14519 14520 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 14521 // to encrypt data on the storage volume attached to the ML compute instance(s) 14522 // that process the analysis job. The VolumeKmsKeyId can be either of the following 14523 // formats: 14524 // 14525 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 14526 // 14527 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 14528 VolumeKmsKeyId *string `type:"string"` 14529 14530 // Configuration parameters for an optional private Virtual Private Cloud (VPC) 14531 // containing the resources you are using for your dominant language detection 14532 // job. For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 14533 VpcConfig *VpcConfig `type:"structure"` 14534} 14535 14536// String returns the string representation 14537func (s StartDominantLanguageDetectionJobInput) String() string { 14538 return awsutil.Prettify(s) 14539} 14540 14541// GoString returns the string representation 14542func (s StartDominantLanguageDetectionJobInput) GoString() string { 14543 return s.String() 14544} 14545 14546// Validate inspects the fields of the type to determine if they are valid. 14547func (s *StartDominantLanguageDetectionJobInput) Validate() error { 14548 invalidParams := request.ErrInvalidParams{Context: "StartDominantLanguageDetectionJobInput"} 14549 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 14550 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 14551 } 14552 if s.DataAccessRoleArn == nil { 14553 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 14554 } 14555 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 14556 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 14557 } 14558 if s.InputDataConfig == nil { 14559 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 14560 } 14561 if s.JobName != nil && len(*s.JobName) < 1 { 14562 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 14563 } 14564 if s.OutputDataConfig == nil { 14565 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 14566 } 14567 if s.InputDataConfig != nil { 14568 if err := s.InputDataConfig.Validate(); err != nil { 14569 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 14570 } 14571 } 14572 if s.OutputDataConfig != nil { 14573 if err := s.OutputDataConfig.Validate(); err != nil { 14574 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 14575 } 14576 } 14577 if s.VpcConfig != nil { 14578 if err := s.VpcConfig.Validate(); err != nil { 14579 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 14580 } 14581 } 14582 14583 if invalidParams.Len() > 0 { 14584 return invalidParams 14585 } 14586 return nil 14587} 14588 14589// SetClientRequestToken sets the ClientRequestToken field's value. 14590func (s *StartDominantLanguageDetectionJobInput) SetClientRequestToken(v string) *StartDominantLanguageDetectionJobInput { 14591 s.ClientRequestToken = &v 14592 return s 14593} 14594 14595// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 14596func (s *StartDominantLanguageDetectionJobInput) SetDataAccessRoleArn(v string) *StartDominantLanguageDetectionJobInput { 14597 s.DataAccessRoleArn = &v 14598 return s 14599} 14600 14601// SetInputDataConfig sets the InputDataConfig field's value. 14602func (s *StartDominantLanguageDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartDominantLanguageDetectionJobInput { 14603 s.InputDataConfig = v 14604 return s 14605} 14606 14607// SetJobName sets the JobName field's value. 14608func (s *StartDominantLanguageDetectionJobInput) SetJobName(v string) *StartDominantLanguageDetectionJobInput { 14609 s.JobName = &v 14610 return s 14611} 14612 14613// SetOutputDataConfig sets the OutputDataConfig field's value. 14614func (s *StartDominantLanguageDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartDominantLanguageDetectionJobInput { 14615 s.OutputDataConfig = v 14616 return s 14617} 14618 14619// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 14620func (s *StartDominantLanguageDetectionJobInput) SetVolumeKmsKeyId(v string) *StartDominantLanguageDetectionJobInput { 14621 s.VolumeKmsKeyId = &v 14622 return s 14623} 14624 14625// SetVpcConfig sets the VpcConfig field's value. 14626func (s *StartDominantLanguageDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartDominantLanguageDetectionJobInput { 14627 s.VpcConfig = v 14628 return s 14629} 14630 14631type StartDominantLanguageDetectionJobOutput struct { 14632 _ struct{} `type:"structure"` 14633 14634 // The identifier generated for the job. To get the status of a job, use this 14635 // identifier with the operation. 14636 JobId *string `min:"1" type:"string"` 14637 14638 // The status of the job. 14639 // 14640 // * SUBMITTED - The job has been received and is queued for processing. 14641 // 14642 // * IN_PROGRESS - Amazon Comprehend is processing the job. 14643 // 14644 // * COMPLETED - The job was successfully completed and the output is available. 14645 // 14646 // * FAILED - The job did not complete. To get details, use the operation. 14647 JobStatus *string `type:"string" enum:"JobStatus"` 14648} 14649 14650// String returns the string representation 14651func (s StartDominantLanguageDetectionJobOutput) String() string { 14652 return awsutil.Prettify(s) 14653} 14654 14655// GoString returns the string representation 14656func (s StartDominantLanguageDetectionJobOutput) GoString() string { 14657 return s.String() 14658} 14659 14660// SetJobId sets the JobId field's value. 14661func (s *StartDominantLanguageDetectionJobOutput) SetJobId(v string) *StartDominantLanguageDetectionJobOutput { 14662 s.JobId = &v 14663 return s 14664} 14665 14666// SetJobStatus sets the JobStatus field's value. 14667func (s *StartDominantLanguageDetectionJobOutput) SetJobStatus(v string) *StartDominantLanguageDetectionJobOutput { 14668 s.JobStatus = &v 14669 return s 14670} 14671 14672type StartEntitiesDetectionJobInput struct { 14673 _ struct{} `type:"structure"` 14674 14675 // A unique identifier for the request. If you don't set the client request 14676 // token, Amazon Comprehend generates one. 14677 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 14678 14679 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 14680 // (IAM) role that grants Amazon Comprehend read access to your input data. 14681 // For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions 14682 // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). 14683 // 14684 // DataAccessRoleArn is a required field 14685 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 14686 14687 // The Amazon Resource Name (ARN) that identifies the specific entity recognizer 14688 // to be used by the StartEntitiesDetectionJob. This ARN is optional and is 14689 // only used for a custom entity recognition job. 14690 EntityRecognizerArn *string `type:"string"` 14691 14692 // Specifies the format and location of the input data for the job. 14693 // 14694 // InputDataConfig is a required field 14695 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 14696 14697 // The identifier of the job. 14698 JobName *string `min:"1" type:"string"` 14699 14700 // The language of the input documents. All documents must be in the same language. 14701 // You can specify any of the languages supported by Amazon Comprehend. If custom 14702 // entities recognition is used, this parameter is ignored and the language 14703 // used for training the model is used instead. 14704 // 14705 // LanguageCode is a required field 14706 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 14707 14708 // Specifies where to send the output files. 14709 // 14710 // OutputDataConfig is a required field 14711 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 14712 14713 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 14714 // to encrypt data on the storage volume attached to the ML compute instance(s) 14715 // that process the analysis job. The VolumeKmsKeyId can be either of the following 14716 // formats: 14717 // 14718 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 14719 // 14720 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 14721 VolumeKmsKeyId *string `type:"string"` 14722 14723 // Configuration parameters for an optional private Virtual Private Cloud (VPC) 14724 // containing the resources you are using for your entity detection job. For 14725 // more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 14726 VpcConfig *VpcConfig `type:"structure"` 14727} 14728 14729// String returns the string representation 14730func (s StartEntitiesDetectionJobInput) String() string { 14731 return awsutil.Prettify(s) 14732} 14733 14734// GoString returns the string representation 14735func (s StartEntitiesDetectionJobInput) GoString() string { 14736 return s.String() 14737} 14738 14739// Validate inspects the fields of the type to determine if they are valid. 14740func (s *StartEntitiesDetectionJobInput) Validate() error { 14741 invalidParams := request.ErrInvalidParams{Context: "StartEntitiesDetectionJobInput"} 14742 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 14743 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 14744 } 14745 if s.DataAccessRoleArn == nil { 14746 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 14747 } 14748 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 14749 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 14750 } 14751 if s.InputDataConfig == nil { 14752 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 14753 } 14754 if s.JobName != nil && len(*s.JobName) < 1 { 14755 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 14756 } 14757 if s.LanguageCode == nil { 14758 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 14759 } 14760 if s.OutputDataConfig == nil { 14761 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 14762 } 14763 if s.InputDataConfig != nil { 14764 if err := s.InputDataConfig.Validate(); err != nil { 14765 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 14766 } 14767 } 14768 if s.OutputDataConfig != nil { 14769 if err := s.OutputDataConfig.Validate(); err != nil { 14770 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 14771 } 14772 } 14773 if s.VpcConfig != nil { 14774 if err := s.VpcConfig.Validate(); err != nil { 14775 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 14776 } 14777 } 14778 14779 if invalidParams.Len() > 0 { 14780 return invalidParams 14781 } 14782 return nil 14783} 14784 14785// SetClientRequestToken sets the ClientRequestToken field's value. 14786func (s *StartEntitiesDetectionJobInput) SetClientRequestToken(v string) *StartEntitiesDetectionJobInput { 14787 s.ClientRequestToken = &v 14788 return s 14789} 14790 14791// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 14792func (s *StartEntitiesDetectionJobInput) SetDataAccessRoleArn(v string) *StartEntitiesDetectionJobInput { 14793 s.DataAccessRoleArn = &v 14794 return s 14795} 14796 14797// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. 14798func (s *StartEntitiesDetectionJobInput) SetEntityRecognizerArn(v string) *StartEntitiesDetectionJobInput { 14799 s.EntityRecognizerArn = &v 14800 return s 14801} 14802 14803// SetInputDataConfig sets the InputDataConfig field's value. 14804func (s *StartEntitiesDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartEntitiesDetectionJobInput { 14805 s.InputDataConfig = v 14806 return s 14807} 14808 14809// SetJobName sets the JobName field's value. 14810func (s *StartEntitiesDetectionJobInput) SetJobName(v string) *StartEntitiesDetectionJobInput { 14811 s.JobName = &v 14812 return s 14813} 14814 14815// SetLanguageCode sets the LanguageCode field's value. 14816func (s *StartEntitiesDetectionJobInput) SetLanguageCode(v string) *StartEntitiesDetectionJobInput { 14817 s.LanguageCode = &v 14818 return s 14819} 14820 14821// SetOutputDataConfig sets the OutputDataConfig field's value. 14822func (s *StartEntitiesDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartEntitiesDetectionJobInput { 14823 s.OutputDataConfig = v 14824 return s 14825} 14826 14827// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 14828func (s *StartEntitiesDetectionJobInput) SetVolumeKmsKeyId(v string) *StartEntitiesDetectionJobInput { 14829 s.VolumeKmsKeyId = &v 14830 return s 14831} 14832 14833// SetVpcConfig sets the VpcConfig field's value. 14834func (s *StartEntitiesDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartEntitiesDetectionJobInput { 14835 s.VpcConfig = v 14836 return s 14837} 14838 14839type StartEntitiesDetectionJobOutput struct { 14840 _ struct{} `type:"structure"` 14841 14842 // The identifier generated for the job. To get the status of job, use this 14843 // identifier with the operation. 14844 JobId *string `min:"1" type:"string"` 14845 14846 // The status of the job. 14847 // 14848 // * SUBMITTED - The job has been received and is queued for processing. 14849 // 14850 // * IN_PROGRESS - Amazon Comprehend is processing the job. 14851 // 14852 // * COMPLETED - The job was successfully completed and the output is available. 14853 // 14854 // * FAILED - The job did not complete. To get details, use the operation. 14855 // 14856 // * STOP_REQUESTED - Amazon Comprehend has received a stop request for the 14857 // job and is processing the request. 14858 // 14859 // * STOPPED - The job was successfully stopped without completing. 14860 JobStatus *string `type:"string" enum:"JobStatus"` 14861} 14862 14863// String returns the string representation 14864func (s StartEntitiesDetectionJobOutput) String() string { 14865 return awsutil.Prettify(s) 14866} 14867 14868// GoString returns the string representation 14869func (s StartEntitiesDetectionJobOutput) GoString() string { 14870 return s.String() 14871} 14872 14873// SetJobId sets the JobId field's value. 14874func (s *StartEntitiesDetectionJobOutput) SetJobId(v string) *StartEntitiesDetectionJobOutput { 14875 s.JobId = &v 14876 return s 14877} 14878 14879// SetJobStatus sets the JobStatus field's value. 14880func (s *StartEntitiesDetectionJobOutput) SetJobStatus(v string) *StartEntitiesDetectionJobOutput { 14881 s.JobStatus = &v 14882 return s 14883} 14884 14885type StartEventsDetectionJobInput struct { 14886 _ struct{} `type:"structure"` 14887 14888 // An unique identifier for the request. If you don't set the client request 14889 // token, Amazon Comprehend generates one. 14890 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 14891 14892 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 14893 // (IAM) role that grants Amazon Comprehend read access to your input data. 14894 // 14895 // DataAccessRoleArn is a required field 14896 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 14897 14898 // Specifies the format and location of the input data for the job. 14899 // 14900 // InputDataConfig is a required field 14901 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 14902 14903 // The identifier of the events detection job. 14904 JobName *string `min:"1" type:"string"` 14905 14906 // The language code of the input documents. 14907 // 14908 // LanguageCode is a required field 14909 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 14910 14911 // Specifies where to send the output files. 14912 // 14913 // OutputDataConfig is a required field 14914 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 14915 14916 // The types of events to detect in the input documents. 14917 // 14918 // TargetEventTypes is a required field 14919 TargetEventTypes []*string `min:"1" type:"list" required:"true"` 14920} 14921 14922// String returns the string representation 14923func (s StartEventsDetectionJobInput) String() string { 14924 return awsutil.Prettify(s) 14925} 14926 14927// GoString returns the string representation 14928func (s StartEventsDetectionJobInput) GoString() string { 14929 return s.String() 14930} 14931 14932// Validate inspects the fields of the type to determine if they are valid. 14933func (s *StartEventsDetectionJobInput) Validate() error { 14934 invalidParams := request.ErrInvalidParams{Context: "StartEventsDetectionJobInput"} 14935 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 14936 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 14937 } 14938 if s.DataAccessRoleArn == nil { 14939 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 14940 } 14941 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 14942 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 14943 } 14944 if s.InputDataConfig == nil { 14945 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 14946 } 14947 if s.JobName != nil && len(*s.JobName) < 1 { 14948 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 14949 } 14950 if s.LanguageCode == nil { 14951 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 14952 } 14953 if s.OutputDataConfig == nil { 14954 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 14955 } 14956 if s.TargetEventTypes == nil { 14957 invalidParams.Add(request.NewErrParamRequired("TargetEventTypes")) 14958 } 14959 if s.TargetEventTypes != nil && len(s.TargetEventTypes) < 1 { 14960 invalidParams.Add(request.NewErrParamMinLen("TargetEventTypes", 1)) 14961 } 14962 if s.InputDataConfig != nil { 14963 if err := s.InputDataConfig.Validate(); err != nil { 14964 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 14965 } 14966 } 14967 if s.OutputDataConfig != nil { 14968 if err := s.OutputDataConfig.Validate(); err != nil { 14969 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 14970 } 14971 } 14972 14973 if invalidParams.Len() > 0 { 14974 return invalidParams 14975 } 14976 return nil 14977} 14978 14979// SetClientRequestToken sets the ClientRequestToken field's value. 14980func (s *StartEventsDetectionJobInput) SetClientRequestToken(v string) *StartEventsDetectionJobInput { 14981 s.ClientRequestToken = &v 14982 return s 14983} 14984 14985// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 14986func (s *StartEventsDetectionJobInput) SetDataAccessRoleArn(v string) *StartEventsDetectionJobInput { 14987 s.DataAccessRoleArn = &v 14988 return s 14989} 14990 14991// SetInputDataConfig sets the InputDataConfig field's value. 14992func (s *StartEventsDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartEventsDetectionJobInput { 14993 s.InputDataConfig = v 14994 return s 14995} 14996 14997// SetJobName sets the JobName field's value. 14998func (s *StartEventsDetectionJobInput) SetJobName(v string) *StartEventsDetectionJobInput { 14999 s.JobName = &v 15000 return s 15001} 15002 15003// SetLanguageCode sets the LanguageCode field's value. 15004func (s *StartEventsDetectionJobInput) SetLanguageCode(v string) *StartEventsDetectionJobInput { 15005 s.LanguageCode = &v 15006 return s 15007} 15008 15009// SetOutputDataConfig sets the OutputDataConfig field's value. 15010func (s *StartEventsDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartEventsDetectionJobInput { 15011 s.OutputDataConfig = v 15012 return s 15013} 15014 15015// SetTargetEventTypes sets the TargetEventTypes field's value. 15016func (s *StartEventsDetectionJobInput) SetTargetEventTypes(v []*string) *StartEventsDetectionJobInput { 15017 s.TargetEventTypes = v 15018 return s 15019} 15020 15021type StartEventsDetectionJobOutput struct { 15022 _ struct{} `type:"structure"` 15023 15024 // An unique identifier for the request. If you don't set the client request 15025 // token, Amazon Comprehend generates one. 15026 JobId *string `min:"1" type:"string"` 15027 15028 // The status of the events detection job. 15029 JobStatus *string `type:"string" enum:"JobStatus"` 15030} 15031 15032// String returns the string representation 15033func (s StartEventsDetectionJobOutput) String() string { 15034 return awsutil.Prettify(s) 15035} 15036 15037// GoString returns the string representation 15038func (s StartEventsDetectionJobOutput) GoString() string { 15039 return s.String() 15040} 15041 15042// SetJobId sets the JobId field's value. 15043func (s *StartEventsDetectionJobOutput) SetJobId(v string) *StartEventsDetectionJobOutput { 15044 s.JobId = &v 15045 return s 15046} 15047 15048// SetJobStatus sets the JobStatus field's value. 15049func (s *StartEventsDetectionJobOutput) SetJobStatus(v string) *StartEventsDetectionJobOutput { 15050 s.JobStatus = &v 15051 return s 15052} 15053 15054type StartKeyPhrasesDetectionJobInput struct { 15055 _ struct{} `type:"structure"` 15056 15057 // A unique identifier for the request. If you don't set the client request 15058 // token, Amazon Comprehend generates one. 15059 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 15060 15061 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 15062 // (IAM) role that grants Amazon Comprehend read access to your input data. 15063 // For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions 15064 // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). 15065 // 15066 // DataAccessRoleArn is a required field 15067 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 15068 15069 // Specifies the format and location of the input data for the job. 15070 // 15071 // InputDataConfig is a required field 15072 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 15073 15074 // The identifier of the job. 15075 JobName *string `min:"1" type:"string"` 15076 15077 // The language of the input documents. You can specify any of the primary languages 15078 // supported by Amazon Comprehend. All documents must be in the same language. 15079 // 15080 // LanguageCode is a required field 15081 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 15082 15083 // Specifies where to send the output files. 15084 // 15085 // OutputDataConfig is a required field 15086 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 15087 15088 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 15089 // to encrypt data on the storage volume attached to the ML compute instance(s) 15090 // that process the analysis job. The VolumeKmsKeyId can be either of the following 15091 // formats: 15092 // 15093 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 15094 // 15095 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 15096 VolumeKmsKeyId *string `type:"string"` 15097 15098 // Configuration parameters for an optional private Virtual Private Cloud (VPC) 15099 // containing the resources you are using for your key phrases detection job. 15100 // For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 15101 VpcConfig *VpcConfig `type:"structure"` 15102} 15103 15104// String returns the string representation 15105func (s StartKeyPhrasesDetectionJobInput) String() string { 15106 return awsutil.Prettify(s) 15107} 15108 15109// GoString returns the string representation 15110func (s StartKeyPhrasesDetectionJobInput) GoString() string { 15111 return s.String() 15112} 15113 15114// Validate inspects the fields of the type to determine if they are valid. 15115func (s *StartKeyPhrasesDetectionJobInput) Validate() error { 15116 invalidParams := request.ErrInvalidParams{Context: "StartKeyPhrasesDetectionJobInput"} 15117 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 15118 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 15119 } 15120 if s.DataAccessRoleArn == nil { 15121 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 15122 } 15123 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 15124 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 15125 } 15126 if s.InputDataConfig == nil { 15127 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 15128 } 15129 if s.JobName != nil && len(*s.JobName) < 1 { 15130 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 15131 } 15132 if s.LanguageCode == nil { 15133 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 15134 } 15135 if s.OutputDataConfig == nil { 15136 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 15137 } 15138 if s.InputDataConfig != nil { 15139 if err := s.InputDataConfig.Validate(); err != nil { 15140 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 15141 } 15142 } 15143 if s.OutputDataConfig != nil { 15144 if err := s.OutputDataConfig.Validate(); err != nil { 15145 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 15146 } 15147 } 15148 if s.VpcConfig != nil { 15149 if err := s.VpcConfig.Validate(); err != nil { 15150 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 15151 } 15152 } 15153 15154 if invalidParams.Len() > 0 { 15155 return invalidParams 15156 } 15157 return nil 15158} 15159 15160// SetClientRequestToken sets the ClientRequestToken field's value. 15161func (s *StartKeyPhrasesDetectionJobInput) SetClientRequestToken(v string) *StartKeyPhrasesDetectionJobInput { 15162 s.ClientRequestToken = &v 15163 return s 15164} 15165 15166// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 15167func (s *StartKeyPhrasesDetectionJobInput) SetDataAccessRoleArn(v string) *StartKeyPhrasesDetectionJobInput { 15168 s.DataAccessRoleArn = &v 15169 return s 15170} 15171 15172// SetInputDataConfig sets the InputDataConfig field's value. 15173func (s *StartKeyPhrasesDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartKeyPhrasesDetectionJobInput { 15174 s.InputDataConfig = v 15175 return s 15176} 15177 15178// SetJobName sets the JobName field's value. 15179func (s *StartKeyPhrasesDetectionJobInput) SetJobName(v string) *StartKeyPhrasesDetectionJobInput { 15180 s.JobName = &v 15181 return s 15182} 15183 15184// SetLanguageCode sets the LanguageCode field's value. 15185func (s *StartKeyPhrasesDetectionJobInput) SetLanguageCode(v string) *StartKeyPhrasesDetectionJobInput { 15186 s.LanguageCode = &v 15187 return s 15188} 15189 15190// SetOutputDataConfig sets the OutputDataConfig field's value. 15191func (s *StartKeyPhrasesDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartKeyPhrasesDetectionJobInput { 15192 s.OutputDataConfig = v 15193 return s 15194} 15195 15196// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 15197func (s *StartKeyPhrasesDetectionJobInput) SetVolumeKmsKeyId(v string) *StartKeyPhrasesDetectionJobInput { 15198 s.VolumeKmsKeyId = &v 15199 return s 15200} 15201 15202// SetVpcConfig sets the VpcConfig field's value. 15203func (s *StartKeyPhrasesDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartKeyPhrasesDetectionJobInput { 15204 s.VpcConfig = v 15205 return s 15206} 15207 15208type StartKeyPhrasesDetectionJobOutput struct { 15209 _ struct{} `type:"structure"` 15210 15211 // The identifier generated for the job. To get the status of a job, use this 15212 // identifier with the operation. 15213 JobId *string `min:"1" type:"string"` 15214 15215 // The status of the job. 15216 // 15217 // * SUBMITTED - The job has been received and is queued for processing. 15218 // 15219 // * IN_PROGRESS - Amazon Comprehend is processing the job. 15220 // 15221 // * COMPLETED - The job was successfully completed and the output is available. 15222 // 15223 // * FAILED - The job did not complete. To get details, use the operation. 15224 JobStatus *string `type:"string" enum:"JobStatus"` 15225} 15226 15227// String returns the string representation 15228func (s StartKeyPhrasesDetectionJobOutput) String() string { 15229 return awsutil.Prettify(s) 15230} 15231 15232// GoString returns the string representation 15233func (s StartKeyPhrasesDetectionJobOutput) GoString() string { 15234 return s.String() 15235} 15236 15237// SetJobId sets the JobId field's value. 15238func (s *StartKeyPhrasesDetectionJobOutput) SetJobId(v string) *StartKeyPhrasesDetectionJobOutput { 15239 s.JobId = &v 15240 return s 15241} 15242 15243// SetJobStatus sets the JobStatus field's value. 15244func (s *StartKeyPhrasesDetectionJobOutput) SetJobStatus(v string) *StartKeyPhrasesDetectionJobOutput { 15245 s.JobStatus = &v 15246 return s 15247} 15248 15249type StartPiiEntitiesDetectionJobInput struct { 15250 _ struct{} `type:"structure"` 15251 15252 // A unique identifier for the request. If you don't set the client request 15253 // token, Amazon Comprehend generates one. 15254 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 15255 15256 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 15257 // (IAM) role that grants Amazon Comprehend read access to your input data. 15258 // 15259 // DataAccessRoleArn is a required field 15260 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 15261 15262 // The input properties for a PII entities detection job. 15263 // 15264 // InputDataConfig is a required field 15265 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 15266 15267 // The identifier of the job. 15268 JobName *string `min:"1" type:"string"` 15269 15270 // The language of the input documents. 15271 // 15272 // LanguageCode is a required field 15273 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 15274 15275 // Specifies whether the output provides the locations (offsets) of PII entities 15276 // or a file in which PII entities are redacted. 15277 // 15278 // Mode is a required field 15279 Mode *string `type:"string" required:"true" enum:"PiiEntitiesDetectionMode"` 15280 15281 // Provides configuration parameters for the output of PII entity detection 15282 // jobs. 15283 // 15284 // OutputDataConfig is a required field 15285 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 15286 15287 // Provides configuration parameters for PII entity redaction. 15288 // 15289 // This parameter is required if you set the Mode parameter to ONLY_REDACTION. 15290 // In that case, you must provide a RedactionConfig definition that includes 15291 // the PiiEntityTypes parameter. 15292 RedactionConfig *RedactionConfig `type:"structure"` 15293} 15294 15295// String returns the string representation 15296func (s StartPiiEntitiesDetectionJobInput) String() string { 15297 return awsutil.Prettify(s) 15298} 15299 15300// GoString returns the string representation 15301func (s StartPiiEntitiesDetectionJobInput) GoString() string { 15302 return s.String() 15303} 15304 15305// Validate inspects the fields of the type to determine if they are valid. 15306func (s *StartPiiEntitiesDetectionJobInput) Validate() error { 15307 invalidParams := request.ErrInvalidParams{Context: "StartPiiEntitiesDetectionJobInput"} 15308 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 15309 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 15310 } 15311 if s.DataAccessRoleArn == nil { 15312 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 15313 } 15314 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 15315 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 15316 } 15317 if s.InputDataConfig == nil { 15318 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 15319 } 15320 if s.JobName != nil && len(*s.JobName) < 1 { 15321 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 15322 } 15323 if s.LanguageCode == nil { 15324 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 15325 } 15326 if s.Mode == nil { 15327 invalidParams.Add(request.NewErrParamRequired("Mode")) 15328 } 15329 if s.OutputDataConfig == nil { 15330 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 15331 } 15332 if s.InputDataConfig != nil { 15333 if err := s.InputDataConfig.Validate(); err != nil { 15334 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 15335 } 15336 } 15337 if s.OutputDataConfig != nil { 15338 if err := s.OutputDataConfig.Validate(); err != nil { 15339 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 15340 } 15341 } 15342 if s.RedactionConfig != nil { 15343 if err := s.RedactionConfig.Validate(); err != nil { 15344 invalidParams.AddNested("RedactionConfig", err.(request.ErrInvalidParams)) 15345 } 15346 } 15347 15348 if invalidParams.Len() > 0 { 15349 return invalidParams 15350 } 15351 return nil 15352} 15353 15354// SetClientRequestToken sets the ClientRequestToken field's value. 15355func (s *StartPiiEntitiesDetectionJobInput) SetClientRequestToken(v string) *StartPiiEntitiesDetectionJobInput { 15356 s.ClientRequestToken = &v 15357 return s 15358} 15359 15360// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 15361func (s *StartPiiEntitiesDetectionJobInput) SetDataAccessRoleArn(v string) *StartPiiEntitiesDetectionJobInput { 15362 s.DataAccessRoleArn = &v 15363 return s 15364} 15365 15366// SetInputDataConfig sets the InputDataConfig field's value. 15367func (s *StartPiiEntitiesDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartPiiEntitiesDetectionJobInput { 15368 s.InputDataConfig = v 15369 return s 15370} 15371 15372// SetJobName sets the JobName field's value. 15373func (s *StartPiiEntitiesDetectionJobInput) SetJobName(v string) *StartPiiEntitiesDetectionJobInput { 15374 s.JobName = &v 15375 return s 15376} 15377 15378// SetLanguageCode sets the LanguageCode field's value. 15379func (s *StartPiiEntitiesDetectionJobInput) SetLanguageCode(v string) *StartPiiEntitiesDetectionJobInput { 15380 s.LanguageCode = &v 15381 return s 15382} 15383 15384// SetMode sets the Mode field's value. 15385func (s *StartPiiEntitiesDetectionJobInput) SetMode(v string) *StartPiiEntitiesDetectionJobInput { 15386 s.Mode = &v 15387 return s 15388} 15389 15390// SetOutputDataConfig sets the OutputDataConfig field's value. 15391func (s *StartPiiEntitiesDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartPiiEntitiesDetectionJobInput { 15392 s.OutputDataConfig = v 15393 return s 15394} 15395 15396// SetRedactionConfig sets the RedactionConfig field's value. 15397func (s *StartPiiEntitiesDetectionJobInput) SetRedactionConfig(v *RedactionConfig) *StartPiiEntitiesDetectionJobInput { 15398 s.RedactionConfig = v 15399 return s 15400} 15401 15402type StartPiiEntitiesDetectionJobOutput struct { 15403 _ struct{} `type:"structure"` 15404 15405 // The identifier generated for the job. 15406 JobId *string `min:"1" type:"string"` 15407 15408 // The status of the job. 15409 JobStatus *string `type:"string" enum:"JobStatus"` 15410} 15411 15412// String returns the string representation 15413func (s StartPiiEntitiesDetectionJobOutput) String() string { 15414 return awsutil.Prettify(s) 15415} 15416 15417// GoString returns the string representation 15418func (s StartPiiEntitiesDetectionJobOutput) GoString() string { 15419 return s.String() 15420} 15421 15422// SetJobId sets the JobId field's value. 15423func (s *StartPiiEntitiesDetectionJobOutput) SetJobId(v string) *StartPiiEntitiesDetectionJobOutput { 15424 s.JobId = &v 15425 return s 15426} 15427 15428// SetJobStatus sets the JobStatus field's value. 15429func (s *StartPiiEntitiesDetectionJobOutput) SetJobStatus(v string) *StartPiiEntitiesDetectionJobOutput { 15430 s.JobStatus = &v 15431 return s 15432} 15433 15434type StartSentimentDetectionJobInput struct { 15435 _ struct{} `type:"structure"` 15436 15437 // A unique identifier for the request. If you don't set the client request 15438 // token, Amazon Comprehend generates one. 15439 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 15440 15441 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 15442 // (IAM) role that grants Amazon Comprehend read access to your input data. 15443 // For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions 15444 // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). 15445 // 15446 // DataAccessRoleArn is a required field 15447 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 15448 15449 // Specifies the format and location of the input data for the job. 15450 // 15451 // InputDataConfig is a required field 15452 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 15453 15454 // The identifier of the job. 15455 JobName *string `min:"1" type:"string"` 15456 15457 // The language of the input documents. You can specify any of the primary languages 15458 // supported by Amazon Comprehend. All documents must be in the same language. 15459 // 15460 // LanguageCode is a required field 15461 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 15462 15463 // Specifies where to send the output files. 15464 // 15465 // OutputDataConfig is a required field 15466 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 15467 15468 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 15469 // to encrypt data on the storage volume attached to the ML compute instance(s) 15470 // that process the analysis job. The VolumeKmsKeyId can be either of the following 15471 // formats: 15472 // 15473 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 15474 // 15475 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 15476 VolumeKmsKeyId *string `type:"string"` 15477 15478 // Configuration parameters for an optional private Virtual Private Cloud (VPC) 15479 // containing the resources you are using for your sentiment detection job. 15480 // For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 15481 VpcConfig *VpcConfig `type:"structure"` 15482} 15483 15484// String returns the string representation 15485func (s StartSentimentDetectionJobInput) String() string { 15486 return awsutil.Prettify(s) 15487} 15488 15489// GoString returns the string representation 15490func (s StartSentimentDetectionJobInput) GoString() string { 15491 return s.String() 15492} 15493 15494// Validate inspects the fields of the type to determine if they are valid. 15495func (s *StartSentimentDetectionJobInput) Validate() error { 15496 invalidParams := request.ErrInvalidParams{Context: "StartSentimentDetectionJobInput"} 15497 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 15498 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 15499 } 15500 if s.DataAccessRoleArn == nil { 15501 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 15502 } 15503 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 15504 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 15505 } 15506 if s.InputDataConfig == nil { 15507 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 15508 } 15509 if s.JobName != nil && len(*s.JobName) < 1 { 15510 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 15511 } 15512 if s.LanguageCode == nil { 15513 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 15514 } 15515 if s.OutputDataConfig == nil { 15516 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 15517 } 15518 if s.InputDataConfig != nil { 15519 if err := s.InputDataConfig.Validate(); err != nil { 15520 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 15521 } 15522 } 15523 if s.OutputDataConfig != nil { 15524 if err := s.OutputDataConfig.Validate(); err != nil { 15525 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 15526 } 15527 } 15528 if s.VpcConfig != nil { 15529 if err := s.VpcConfig.Validate(); err != nil { 15530 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 15531 } 15532 } 15533 15534 if invalidParams.Len() > 0 { 15535 return invalidParams 15536 } 15537 return nil 15538} 15539 15540// SetClientRequestToken sets the ClientRequestToken field's value. 15541func (s *StartSentimentDetectionJobInput) SetClientRequestToken(v string) *StartSentimentDetectionJobInput { 15542 s.ClientRequestToken = &v 15543 return s 15544} 15545 15546// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 15547func (s *StartSentimentDetectionJobInput) SetDataAccessRoleArn(v string) *StartSentimentDetectionJobInput { 15548 s.DataAccessRoleArn = &v 15549 return s 15550} 15551 15552// SetInputDataConfig sets the InputDataConfig field's value. 15553func (s *StartSentimentDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartSentimentDetectionJobInput { 15554 s.InputDataConfig = v 15555 return s 15556} 15557 15558// SetJobName sets the JobName field's value. 15559func (s *StartSentimentDetectionJobInput) SetJobName(v string) *StartSentimentDetectionJobInput { 15560 s.JobName = &v 15561 return s 15562} 15563 15564// SetLanguageCode sets the LanguageCode field's value. 15565func (s *StartSentimentDetectionJobInput) SetLanguageCode(v string) *StartSentimentDetectionJobInput { 15566 s.LanguageCode = &v 15567 return s 15568} 15569 15570// SetOutputDataConfig sets the OutputDataConfig field's value. 15571func (s *StartSentimentDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartSentimentDetectionJobInput { 15572 s.OutputDataConfig = v 15573 return s 15574} 15575 15576// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 15577func (s *StartSentimentDetectionJobInput) SetVolumeKmsKeyId(v string) *StartSentimentDetectionJobInput { 15578 s.VolumeKmsKeyId = &v 15579 return s 15580} 15581 15582// SetVpcConfig sets the VpcConfig field's value. 15583func (s *StartSentimentDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartSentimentDetectionJobInput { 15584 s.VpcConfig = v 15585 return s 15586} 15587 15588type StartSentimentDetectionJobOutput struct { 15589 _ struct{} `type:"structure"` 15590 15591 // The identifier generated for the job. To get the status of a job, use this 15592 // identifier with the operation. 15593 JobId *string `min:"1" type:"string"` 15594 15595 // The status of the job. 15596 // 15597 // * SUBMITTED - The job has been received and is queued for processing. 15598 // 15599 // * IN_PROGRESS - Amazon Comprehend is processing the job. 15600 // 15601 // * COMPLETED - The job was successfully completed and the output is available. 15602 // 15603 // * FAILED - The job did not complete. To get details, use the operation. 15604 JobStatus *string `type:"string" enum:"JobStatus"` 15605} 15606 15607// String returns the string representation 15608func (s StartSentimentDetectionJobOutput) String() string { 15609 return awsutil.Prettify(s) 15610} 15611 15612// GoString returns the string representation 15613func (s StartSentimentDetectionJobOutput) GoString() string { 15614 return s.String() 15615} 15616 15617// SetJobId sets the JobId field's value. 15618func (s *StartSentimentDetectionJobOutput) SetJobId(v string) *StartSentimentDetectionJobOutput { 15619 s.JobId = &v 15620 return s 15621} 15622 15623// SetJobStatus sets the JobStatus field's value. 15624func (s *StartSentimentDetectionJobOutput) SetJobStatus(v string) *StartSentimentDetectionJobOutput { 15625 s.JobStatus = &v 15626 return s 15627} 15628 15629type StartTopicsDetectionJobInput struct { 15630 _ struct{} `type:"structure"` 15631 15632 // A unique identifier for the request. If you do not set the client request 15633 // token, Amazon Comprehend generates one. 15634 ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` 15635 15636 // The Amazon Resource Name (ARN) of the AWS Identity and Access Management 15637 // (IAM) role that grants Amazon Comprehend read access to your input data. 15638 // For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions 15639 // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). 15640 // 15641 // DataAccessRoleArn is a required field 15642 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 15643 15644 // Specifies the format and location of the input data for the job. 15645 // 15646 // InputDataConfig is a required field 15647 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 15648 15649 // The identifier of the job. 15650 JobName *string `min:"1" type:"string"` 15651 15652 // The number of topics to detect. 15653 NumberOfTopics *int64 `min:"1" type:"integer"` 15654 15655 // Specifies where to send the output files. The output is a compressed archive 15656 // with two files, topic-terms.csv that lists the terms associated with each 15657 // topic, and doc-topics.csv that lists the documents associated with each topic 15658 // 15659 // OutputDataConfig is a required field 15660 OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` 15661 15662 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 15663 // to encrypt data on the storage volume attached to the ML compute instance(s) 15664 // that process the analysis job. The VolumeKmsKeyId can be either of the following 15665 // formats: 15666 // 15667 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 15668 // 15669 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 15670 VolumeKmsKeyId *string `type:"string"` 15671 15672 // Configuration parameters for an optional private Virtual Private Cloud (VPC) 15673 // containing the resources you are using for your topic detection job. For 15674 // more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 15675 VpcConfig *VpcConfig `type:"structure"` 15676} 15677 15678// String returns the string representation 15679func (s StartTopicsDetectionJobInput) String() string { 15680 return awsutil.Prettify(s) 15681} 15682 15683// GoString returns the string representation 15684func (s StartTopicsDetectionJobInput) GoString() string { 15685 return s.String() 15686} 15687 15688// Validate inspects the fields of the type to determine if they are valid. 15689func (s *StartTopicsDetectionJobInput) Validate() error { 15690 invalidParams := request.ErrInvalidParams{Context: "StartTopicsDetectionJobInput"} 15691 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { 15692 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) 15693 } 15694 if s.DataAccessRoleArn == nil { 15695 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 15696 } 15697 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 15698 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 15699 } 15700 if s.InputDataConfig == nil { 15701 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 15702 } 15703 if s.JobName != nil && len(*s.JobName) < 1 { 15704 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 15705 } 15706 if s.NumberOfTopics != nil && *s.NumberOfTopics < 1 { 15707 invalidParams.Add(request.NewErrParamMinValue("NumberOfTopics", 1)) 15708 } 15709 if s.OutputDataConfig == nil { 15710 invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) 15711 } 15712 if s.InputDataConfig != nil { 15713 if err := s.InputDataConfig.Validate(); err != nil { 15714 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 15715 } 15716 } 15717 if s.OutputDataConfig != nil { 15718 if err := s.OutputDataConfig.Validate(); err != nil { 15719 invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) 15720 } 15721 } 15722 if s.VpcConfig != nil { 15723 if err := s.VpcConfig.Validate(); err != nil { 15724 invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) 15725 } 15726 } 15727 15728 if invalidParams.Len() > 0 { 15729 return invalidParams 15730 } 15731 return nil 15732} 15733 15734// SetClientRequestToken sets the ClientRequestToken field's value. 15735func (s *StartTopicsDetectionJobInput) SetClientRequestToken(v string) *StartTopicsDetectionJobInput { 15736 s.ClientRequestToken = &v 15737 return s 15738} 15739 15740// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 15741func (s *StartTopicsDetectionJobInput) SetDataAccessRoleArn(v string) *StartTopicsDetectionJobInput { 15742 s.DataAccessRoleArn = &v 15743 return s 15744} 15745 15746// SetInputDataConfig sets the InputDataConfig field's value. 15747func (s *StartTopicsDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartTopicsDetectionJobInput { 15748 s.InputDataConfig = v 15749 return s 15750} 15751 15752// SetJobName sets the JobName field's value. 15753func (s *StartTopicsDetectionJobInput) SetJobName(v string) *StartTopicsDetectionJobInput { 15754 s.JobName = &v 15755 return s 15756} 15757 15758// SetNumberOfTopics sets the NumberOfTopics field's value. 15759func (s *StartTopicsDetectionJobInput) SetNumberOfTopics(v int64) *StartTopicsDetectionJobInput { 15760 s.NumberOfTopics = &v 15761 return s 15762} 15763 15764// SetOutputDataConfig sets the OutputDataConfig field's value. 15765func (s *StartTopicsDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartTopicsDetectionJobInput { 15766 s.OutputDataConfig = v 15767 return s 15768} 15769 15770// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 15771func (s *StartTopicsDetectionJobInput) SetVolumeKmsKeyId(v string) *StartTopicsDetectionJobInput { 15772 s.VolumeKmsKeyId = &v 15773 return s 15774} 15775 15776// SetVpcConfig sets the VpcConfig field's value. 15777func (s *StartTopicsDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartTopicsDetectionJobInput { 15778 s.VpcConfig = v 15779 return s 15780} 15781 15782type StartTopicsDetectionJobOutput struct { 15783 _ struct{} `type:"structure"` 15784 15785 // The identifier generated for the job. To get the status of the job, use this 15786 // identifier with the DescribeTopicDetectionJob operation. 15787 JobId *string `min:"1" type:"string"` 15788 15789 // The status of the job: 15790 // 15791 // * SUBMITTED - The job has been received and is queued for processing. 15792 // 15793 // * IN_PROGRESS - Amazon Comprehend is processing the job. 15794 // 15795 // * COMPLETED - The job was successfully completed and the output is available. 15796 // 15797 // * FAILED - The job did not complete. To get details, use the DescribeTopicDetectionJob 15798 // operation. 15799 JobStatus *string `type:"string" enum:"JobStatus"` 15800} 15801 15802// String returns the string representation 15803func (s StartTopicsDetectionJobOutput) String() string { 15804 return awsutil.Prettify(s) 15805} 15806 15807// GoString returns the string representation 15808func (s StartTopicsDetectionJobOutput) GoString() string { 15809 return s.String() 15810} 15811 15812// SetJobId sets the JobId field's value. 15813func (s *StartTopicsDetectionJobOutput) SetJobId(v string) *StartTopicsDetectionJobOutput { 15814 s.JobId = &v 15815 return s 15816} 15817 15818// SetJobStatus sets the JobStatus field's value. 15819func (s *StartTopicsDetectionJobOutput) SetJobStatus(v string) *StartTopicsDetectionJobOutput { 15820 s.JobStatus = &v 15821 return s 15822} 15823 15824type StopDominantLanguageDetectionJobInput struct { 15825 _ struct{} `type:"structure"` 15826 15827 // The identifier of the dominant language detection job to stop. 15828 // 15829 // JobId is a required field 15830 JobId *string `min:"1" type:"string" required:"true"` 15831} 15832 15833// String returns the string representation 15834func (s StopDominantLanguageDetectionJobInput) String() string { 15835 return awsutil.Prettify(s) 15836} 15837 15838// GoString returns the string representation 15839func (s StopDominantLanguageDetectionJobInput) GoString() string { 15840 return s.String() 15841} 15842 15843// Validate inspects the fields of the type to determine if they are valid. 15844func (s *StopDominantLanguageDetectionJobInput) Validate() error { 15845 invalidParams := request.ErrInvalidParams{Context: "StopDominantLanguageDetectionJobInput"} 15846 if s.JobId == nil { 15847 invalidParams.Add(request.NewErrParamRequired("JobId")) 15848 } 15849 if s.JobId != nil && len(*s.JobId) < 1 { 15850 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 15851 } 15852 15853 if invalidParams.Len() > 0 { 15854 return invalidParams 15855 } 15856 return nil 15857} 15858 15859// SetJobId sets the JobId field's value. 15860func (s *StopDominantLanguageDetectionJobInput) SetJobId(v string) *StopDominantLanguageDetectionJobInput { 15861 s.JobId = &v 15862 return s 15863} 15864 15865type StopDominantLanguageDetectionJobOutput struct { 15866 _ struct{} `type:"structure"` 15867 15868 // The identifier of the dominant language detection job to stop. 15869 JobId *string `min:"1" type:"string"` 15870 15871 // Either STOP_REQUESTED if the job is currently running, or STOPPED if the 15872 // job was previously stopped with the StopDominantLanguageDetectionJob operation. 15873 JobStatus *string `type:"string" enum:"JobStatus"` 15874} 15875 15876// String returns the string representation 15877func (s StopDominantLanguageDetectionJobOutput) String() string { 15878 return awsutil.Prettify(s) 15879} 15880 15881// GoString returns the string representation 15882func (s StopDominantLanguageDetectionJobOutput) GoString() string { 15883 return s.String() 15884} 15885 15886// SetJobId sets the JobId field's value. 15887func (s *StopDominantLanguageDetectionJobOutput) SetJobId(v string) *StopDominantLanguageDetectionJobOutput { 15888 s.JobId = &v 15889 return s 15890} 15891 15892// SetJobStatus sets the JobStatus field's value. 15893func (s *StopDominantLanguageDetectionJobOutput) SetJobStatus(v string) *StopDominantLanguageDetectionJobOutput { 15894 s.JobStatus = &v 15895 return s 15896} 15897 15898type StopEntitiesDetectionJobInput struct { 15899 _ struct{} `type:"structure"` 15900 15901 // The identifier of the entities detection job to stop. 15902 // 15903 // JobId is a required field 15904 JobId *string `min:"1" type:"string" required:"true"` 15905} 15906 15907// String returns the string representation 15908func (s StopEntitiesDetectionJobInput) String() string { 15909 return awsutil.Prettify(s) 15910} 15911 15912// GoString returns the string representation 15913func (s StopEntitiesDetectionJobInput) GoString() string { 15914 return s.String() 15915} 15916 15917// Validate inspects the fields of the type to determine if they are valid. 15918func (s *StopEntitiesDetectionJobInput) Validate() error { 15919 invalidParams := request.ErrInvalidParams{Context: "StopEntitiesDetectionJobInput"} 15920 if s.JobId == nil { 15921 invalidParams.Add(request.NewErrParamRequired("JobId")) 15922 } 15923 if s.JobId != nil && len(*s.JobId) < 1 { 15924 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 15925 } 15926 15927 if invalidParams.Len() > 0 { 15928 return invalidParams 15929 } 15930 return nil 15931} 15932 15933// SetJobId sets the JobId field's value. 15934func (s *StopEntitiesDetectionJobInput) SetJobId(v string) *StopEntitiesDetectionJobInput { 15935 s.JobId = &v 15936 return s 15937} 15938 15939type StopEntitiesDetectionJobOutput struct { 15940 _ struct{} `type:"structure"` 15941 15942 // The identifier of the entities detection job to stop. 15943 JobId *string `min:"1" type:"string"` 15944 15945 // Either STOP_REQUESTED if the job is currently running, or STOPPED if the 15946 // job was previously stopped with the StopEntitiesDetectionJob operation. 15947 JobStatus *string `type:"string" enum:"JobStatus"` 15948} 15949 15950// String returns the string representation 15951func (s StopEntitiesDetectionJobOutput) String() string { 15952 return awsutil.Prettify(s) 15953} 15954 15955// GoString returns the string representation 15956func (s StopEntitiesDetectionJobOutput) GoString() string { 15957 return s.String() 15958} 15959 15960// SetJobId sets the JobId field's value. 15961func (s *StopEntitiesDetectionJobOutput) SetJobId(v string) *StopEntitiesDetectionJobOutput { 15962 s.JobId = &v 15963 return s 15964} 15965 15966// SetJobStatus sets the JobStatus field's value. 15967func (s *StopEntitiesDetectionJobOutput) SetJobStatus(v string) *StopEntitiesDetectionJobOutput { 15968 s.JobStatus = &v 15969 return s 15970} 15971 15972type StopEventsDetectionJobInput struct { 15973 _ struct{} `type:"structure"` 15974 15975 // The identifier of the events detection job to stop. 15976 // 15977 // JobId is a required field 15978 JobId *string `min:"1" type:"string" required:"true"` 15979} 15980 15981// String returns the string representation 15982func (s StopEventsDetectionJobInput) String() string { 15983 return awsutil.Prettify(s) 15984} 15985 15986// GoString returns the string representation 15987func (s StopEventsDetectionJobInput) GoString() string { 15988 return s.String() 15989} 15990 15991// Validate inspects the fields of the type to determine if they are valid. 15992func (s *StopEventsDetectionJobInput) Validate() error { 15993 invalidParams := request.ErrInvalidParams{Context: "StopEventsDetectionJobInput"} 15994 if s.JobId == nil { 15995 invalidParams.Add(request.NewErrParamRequired("JobId")) 15996 } 15997 if s.JobId != nil && len(*s.JobId) < 1 { 15998 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 15999 } 16000 16001 if invalidParams.Len() > 0 { 16002 return invalidParams 16003 } 16004 return nil 16005} 16006 16007// SetJobId sets the JobId field's value. 16008func (s *StopEventsDetectionJobInput) SetJobId(v string) *StopEventsDetectionJobInput { 16009 s.JobId = &v 16010 return s 16011} 16012 16013type StopEventsDetectionJobOutput struct { 16014 _ struct{} `type:"structure"` 16015 16016 // The identifier of the events detection job to stop. 16017 JobId *string `min:"1" type:"string"` 16018 16019 // The status of the events detection job. 16020 JobStatus *string `type:"string" enum:"JobStatus"` 16021} 16022 16023// String returns the string representation 16024func (s StopEventsDetectionJobOutput) String() string { 16025 return awsutil.Prettify(s) 16026} 16027 16028// GoString returns the string representation 16029func (s StopEventsDetectionJobOutput) GoString() string { 16030 return s.String() 16031} 16032 16033// SetJobId sets the JobId field's value. 16034func (s *StopEventsDetectionJobOutput) SetJobId(v string) *StopEventsDetectionJobOutput { 16035 s.JobId = &v 16036 return s 16037} 16038 16039// SetJobStatus sets the JobStatus field's value. 16040func (s *StopEventsDetectionJobOutput) SetJobStatus(v string) *StopEventsDetectionJobOutput { 16041 s.JobStatus = &v 16042 return s 16043} 16044 16045type StopKeyPhrasesDetectionJobInput struct { 16046 _ struct{} `type:"structure"` 16047 16048 // The identifier of the key phrases detection job to stop. 16049 // 16050 // JobId is a required field 16051 JobId *string `min:"1" type:"string" required:"true"` 16052} 16053 16054// String returns the string representation 16055func (s StopKeyPhrasesDetectionJobInput) String() string { 16056 return awsutil.Prettify(s) 16057} 16058 16059// GoString returns the string representation 16060func (s StopKeyPhrasesDetectionJobInput) GoString() string { 16061 return s.String() 16062} 16063 16064// Validate inspects the fields of the type to determine if they are valid. 16065func (s *StopKeyPhrasesDetectionJobInput) Validate() error { 16066 invalidParams := request.ErrInvalidParams{Context: "StopKeyPhrasesDetectionJobInput"} 16067 if s.JobId == nil { 16068 invalidParams.Add(request.NewErrParamRequired("JobId")) 16069 } 16070 if s.JobId != nil && len(*s.JobId) < 1 { 16071 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 16072 } 16073 16074 if invalidParams.Len() > 0 { 16075 return invalidParams 16076 } 16077 return nil 16078} 16079 16080// SetJobId sets the JobId field's value. 16081func (s *StopKeyPhrasesDetectionJobInput) SetJobId(v string) *StopKeyPhrasesDetectionJobInput { 16082 s.JobId = &v 16083 return s 16084} 16085 16086type StopKeyPhrasesDetectionJobOutput struct { 16087 _ struct{} `type:"structure"` 16088 16089 // The identifier of the key phrases detection job to stop. 16090 JobId *string `min:"1" type:"string"` 16091 16092 // Either STOP_REQUESTED if the job is currently running, or STOPPED if the 16093 // job was previously stopped with the StopKeyPhrasesDetectionJob operation. 16094 JobStatus *string `type:"string" enum:"JobStatus"` 16095} 16096 16097// String returns the string representation 16098func (s StopKeyPhrasesDetectionJobOutput) String() string { 16099 return awsutil.Prettify(s) 16100} 16101 16102// GoString returns the string representation 16103func (s StopKeyPhrasesDetectionJobOutput) GoString() string { 16104 return s.String() 16105} 16106 16107// SetJobId sets the JobId field's value. 16108func (s *StopKeyPhrasesDetectionJobOutput) SetJobId(v string) *StopKeyPhrasesDetectionJobOutput { 16109 s.JobId = &v 16110 return s 16111} 16112 16113// SetJobStatus sets the JobStatus field's value. 16114func (s *StopKeyPhrasesDetectionJobOutput) SetJobStatus(v string) *StopKeyPhrasesDetectionJobOutput { 16115 s.JobStatus = &v 16116 return s 16117} 16118 16119type StopPiiEntitiesDetectionJobInput struct { 16120 _ struct{} `type:"structure"` 16121 16122 // The identifier of the PII entities detection job to stop. 16123 // 16124 // JobId is a required field 16125 JobId *string `min:"1" type:"string" required:"true"` 16126} 16127 16128// String returns the string representation 16129func (s StopPiiEntitiesDetectionJobInput) String() string { 16130 return awsutil.Prettify(s) 16131} 16132 16133// GoString returns the string representation 16134func (s StopPiiEntitiesDetectionJobInput) GoString() string { 16135 return s.String() 16136} 16137 16138// Validate inspects the fields of the type to determine if they are valid. 16139func (s *StopPiiEntitiesDetectionJobInput) Validate() error { 16140 invalidParams := request.ErrInvalidParams{Context: "StopPiiEntitiesDetectionJobInput"} 16141 if s.JobId == nil { 16142 invalidParams.Add(request.NewErrParamRequired("JobId")) 16143 } 16144 if s.JobId != nil && len(*s.JobId) < 1 { 16145 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 16146 } 16147 16148 if invalidParams.Len() > 0 { 16149 return invalidParams 16150 } 16151 return nil 16152} 16153 16154// SetJobId sets the JobId field's value. 16155func (s *StopPiiEntitiesDetectionJobInput) SetJobId(v string) *StopPiiEntitiesDetectionJobInput { 16156 s.JobId = &v 16157 return s 16158} 16159 16160type StopPiiEntitiesDetectionJobOutput struct { 16161 _ struct{} `type:"structure"` 16162 16163 // The identifier of the PII entities detection job to stop. 16164 JobId *string `min:"1" type:"string"` 16165 16166 // The status of the PII entities detection job. 16167 JobStatus *string `type:"string" enum:"JobStatus"` 16168} 16169 16170// String returns the string representation 16171func (s StopPiiEntitiesDetectionJobOutput) String() string { 16172 return awsutil.Prettify(s) 16173} 16174 16175// GoString returns the string representation 16176func (s StopPiiEntitiesDetectionJobOutput) GoString() string { 16177 return s.String() 16178} 16179 16180// SetJobId sets the JobId field's value. 16181func (s *StopPiiEntitiesDetectionJobOutput) SetJobId(v string) *StopPiiEntitiesDetectionJobOutput { 16182 s.JobId = &v 16183 return s 16184} 16185 16186// SetJobStatus sets the JobStatus field's value. 16187func (s *StopPiiEntitiesDetectionJobOutput) SetJobStatus(v string) *StopPiiEntitiesDetectionJobOutput { 16188 s.JobStatus = &v 16189 return s 16190} 16191 16192type StopSentimentDetectionJobInput struct { 16193 _ struct{} `type:"structure"` 16194 16195 // The identifier of the sentiment detection job to stop. 16196 // 16197 // JobId is a required field 16198 JobId *string `min:"1" type:"string" required:"true"` 16199} 16200 16201// String returns the string representation 16202func (s StopSentimentDetectionJobInput) String() string { 16203 return awsutil.Prettify(s) 16204} 16205 16206// GoString returns the string representation 16207func (s StopSentimentDetectionJobInput) GoString() string { 16208 return s.String() 16209} 16210 16211// Validate inspects the fields of the type to determine if they are valid. 16212func (s *StopSentimentDetectionJobInput) Validate() error { 16213 invalidParams := request.ErrInvalidParams{Context: "StopSentimentDetectionJobInput"} 16214 if s.JobId == nil { 16215 invalidParams.Add(request.NewErrParamRequired("JobId")) 16216 } 16217 if s.JobId != nil && len(*s.JobId) < 1 { 16218 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 16219 } 16220 16221 if invalidParams.Len() > 0 { 16222 return invalidParams 16223 } 16224 return nil 16225} 16226 16227// SetJobId sets the JobId field's value. 16228func (s *StopSentimentDetectionJobInput) SetJobId(v string) *StopSentimentDetectionJobInput { 16229 s.JobId = &v 16230 return s 16231} 16232 16233type StopSentimentDetectionJobOutput struct { 16234 _ struct{} `type:"structure"` 16235 16236 // The identifier of the sentiment detection job to stop. 16237 JobId *string `min:"1" type:"string"` 16238 16239 // Either STOP_REQUESTED if the job is currently running, or STOPPED if the 16240 // job was previously stopped with the StopSentimentDetectionJob operation. 16241 JobStatus *string `type:"string" enum:"JobStatus"` 16242} 16243 16244// String returns the string representation 16245func (s StopSentimentDetectionJobOutput) String() string { 16246 return awsutil.Prettify(s) 16247} 16248 16249// GoString returns the string representation 16250func (s StopSentimentDetectionJobOutput) GoString() string { 16251 return s.String() 16252} 16253 16254// SetJobId sets the JobId field's value. 16255func (s *StopSentimentDetectionJobOutput) SetJobId(v string) *StopSentimentDetectionJobOutput { 16256 s.JobId = &v 16257 return s 16258} 16259 16260// SetJobStatus sets the JobStatus field's value. 16261func (s *StopSentimentDetectionJobOutput) SetJobStatus(v string) *StopSentimentDetectionJobOutput { 16262 s.JobStatus = &v 16263 return s 16264} 16265 16266type StopTrainingDocumentClassifierInput struct { 16267 _ struct{} `type:"structure"` 16268 16269 // The Amazon Resource Name (ARN) that identifies the document classifier currently 16270 // being trained. 16271 // 16272 // DocumentClassifierArn is a required field 16273 DocumentClassifierArn *string `type:"string" required:"true"` 16274} 16275 16276// String returns the string representation 16277func (s StopTrainingDocumentClassifierInput) String() string { 16278 return awsutil.Prettify(s) 16279} 16280 16281// GoString returns the string representation 16282func (s StopTrainingDocumentClassifierInput) GoString() string { 16283 return s.String() 16284} 16285 16286// Validate inspects the fields of the type to determine if they are valid. 16287func (s *StopTrainingDocumentClassifierInput) Validate() error { 16288 invalidParams := request.ErrInvalidParams{Context: "StopTrainingDocumentClassifierInput"} 16289 if s.DocumentClassifierArn == nil { 16290 invalidParams.Add(request.NewErrParamRequired("DocumentClassifierArn")) 16291 } 16292 16293 if invalidParams.Len() > 0 { 16294 return invalidParams 16295 } 16296 return nil 16297} 16298 16299// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. 16300func (s *StopTrainingDocumentClassifierInput) SetDocumentClassifierArn(v string) *StopTrainingDocumentClassifierInput { 16301 s.DocumentClassifierArn = &v 16302 return s 16303} 16304 16305type StopTrainingDocumentClassifierOutput struct { 16306 _ struct{} `type:"structure"` 16307} 16308 16309// String returns the string representation 16310func (s StopTrainingDocumentClassifierOutput) String() string { 16311 return awsutil.Prettify(s) 16312} 16313 16314// GoString returns the string representation 16315func (s StopTrainingDocumentClassifierOutput) GoString() string { 16316 return s.String() 16317} 16318 16319type StopTrainingEntityRecognizerInput struct { 16320 _ struct{} `type:"structure"` 16321 16322 // The Amazon Resource Name (ARN) that identifies the entity recognizer currently 16323 // being trained. 16324 // 16325 // EntityRecognizerArn is a required field 16326 EntityRecognizerArn *string `type:"string" required:"true"` 16327} 16328 16329// String returns the string representation 16330func (s StopTrainingEntityRecognizerInput) String() string { 16331 return awsutil.Prettify(s) 16332} 16333 16334// GoString returns the string representation 16335func (s StopTrainingEntityRecognizerInput) GoString() string { 16336 return s.String() 16337} 16338 16339// Validate inspects the fields of the type to determine if they are valid. 16340func (s *StopTrainingEntityRecognizerInput) Validate() error { 16341 invalidParams := request.ErrInvalidParams{Context: "StopTrainingEntityRecognizerInput"} 16342 if s.EntityRecognizerArn == nil { 16343 invalidParams.Add(request.NewErrParamRequired("EntityRecognizerArn")) 16344 } 16345 16346 if invalidParams.Len() > 0 { 16347 return invalidParams 16348 } 16349 return nil 16350} 16351 16352// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. 16353func (s *StopTrainingEntityRecognizerInput) SetEntityRecognizerArn(v string) *StopTrainingEntityRecognizerInput { 16354 s.EntityRecognizerArn = &v 16355 return s 16356} 16357 16358type StopTrainingEntityRecognizerOutput struct { 16359 _ struct{} `type:"structure"` 16360} 16361 16362// String returns the string representation 16363func (s StopTrainingEntityRecognizerOutput) String() string { 16364 return awsutil.Prettify(s) 16365} 16366 16367// GoString returns the string representation 16368func (s StopTrainingEntityRecognizerOutput) GoString() string { 16369 return s.String() 16370} 16371 16372// Represents a work in the input text that was recognized and assigned a part 16373// of speech. There is one syntax token record for each word in the source text. 16374type SyntaxToken struct { 16375 _ struct{} `type:"structure"` 16376 16377 // The zero-based offset from the beginning of the source text to the first 16378 // character in the word. 16379 BeginOffset *int64 `type:"integer"` 16380 16381 // The zero-based offset from the beginning of the source text to the last character 16382 // in the word. 16383 EndOffset *int64 `type:"integer"` 16384 16385 // Provides the part of speech label and the confidence level that Amazon Comprehend 16386 // has that the part of speech was correctly identified. For more information, 16387 // see how-syntax. 16388 PartOfSpeech *PartOfSpeechTag `type:"structure"` 16389 16390 // The word that was recognized in the source text. 16391 Text *string `min:"1" type:"string"` 16392 16393 // A unique identifier for a token. 16394 TokenId *int64 `type:"integer"` 16395} 16396 16397// String returns the string representation 16398func (s SyntaxToken) String() string { 16399 return awsutil.Prettify(s) 16400} 16401 16402// GoString returns the string representation 16403func (s SyntaxToken) GoString() string { 16404 return s.String() 16405} 16406 16407// SetBeginOffset sets the BeginOffset field's value. 16408func (s *SyntaxToken) SetBeginOffset(v int64) *SyntaxToken { 16409 s.BeginOffset = &v 16410 return s 16411} 16412 16413// SetEndOffset sets the EndOffset field's value. 16414func (s *SyntaxToken) SetEndOffset(v int64) *SyntaxToken { 16415 s.EndOffset = &v 16416 return s 16417} 16418 16419// SetPartOfSpeech sets the PartOfSpeech field's value. 16420func (s *SyntaxToken) SetPartOfSpeech(v *PartOfSpeechTag) *SyntaxToken { 16421 s.PartOfSpeech = v 16422 return s 16423} 16424 16425// SetText sets the Text field's value. 16426func (s *SyntaxToken) SetText(v string) *SyntaxToken { 16427 s.Text = &v 16428 return s 16429} 16430 16431// SetTokenId sets the TokenId field's value. 16432func (s *SyntaxToken) SetTokenId(v int64) *SyntaxToken { 16433 s.TokenId = &v 16434 return s 16435} 16436 16437// A key-value pair that adds as a metadata to a resource used by Amazon Comprehend. 16438// For example, a tag with the key-value pair ‘Department’:’Sales’ might 16439// be added to a resource to indicate its use by a particular department. 16440type Tag struct { 16441 _ struct{} `type:"structure"` 16442 16443 // The initial part of a key-value pair that forms a tag associated with a given 16444 // resource. For instance, if you want to show which resources are used by which 16445 // departments, you might use “Department” as the key portion of the pair, 16446 // with multiple possible values such as “sales,” “legal,” and “administration.” 16447 // 16448 // Key is a required field 16449 Key *string `min:"1" type:"string" required:"true"` 16450 16451 // The second part of a key-value pair that forms a tag associated with a given 16452 // resource. For instance, if you want to show which resources are used by which 16453 // departments, you might use “Department” as the initial (key) portion 16454 // of the pair, with a value of “sales” to indicate the sales department. 16455 Value *string `type:"string"` 16456} 16457 16458// String returns the string representation 16459func (s Tag) String() string { 16460 return awsutil.Prettify(s) 16461} 16462 16463// GoString returns the string representation 16464func (s Tag) GoString() string { 16465 return s.String() 16466} 16467 16468// Validate inspects the fields of the type to determine if they are valid. 16469func (s *Tag) Validate() error { 16470 invalidParams := request.ErrInvalidParams{Context: "Tag"} 16471 if s.Key == nil { 16472 invalidParams.Add(request.NewErrParamRequired("Key")) 16473 } 16474 if s.Key != nil && len(*s.Key) < 1 { 16475 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 16476 } 16477 16478 if invalidParams.Len() > 0 { 16479 return invalidParams 16480 } 16481 return nil 16482} 16483 16484// SetKey sets the Key field's value. 16485func (s *Tag) SetKey(v string) *Tag { 16486 s.Key = &v 16487 return s 16488} 16489 16490// SetValue sets the Value field's value. 16491func (s *Tag) SetValue(v string) *Tag { 16492 s.Value = &v 16493 return s 16494} 16495 16496type TagResourceInput struct { 16497 _ struct{} `type:"structure"` 16498 16499 // The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to 16500 // which you want to associate the tags. 16501 // 16502 // ResourceArn is a required field 16503 ResourceArn *string `type:"string" required:"true"` 16504 16505 // Tags being associated with a specific Amazon Comprehend resource. There can 16506 // be a maximum of 50 tags (both existing and pending) associated with a specific 16507 // resource. 16508 // 16509 // Tags is a required field 16510 Tags []*Tag `type:"list" required:"true"` 16511} 16512 16513// String returns the string representation 16514func (s TagResourceInput) String() string { 16515 return awsutil.Prettify(s) 16516} 16517 16518// GoString returns the string representation 16519func (s TagResourceInput) GoString() string { 16520 return s.String() 16521} 16522 16523// Validate inspects the fields of the type to determine if they are valid. 16524func (s *TagResourceInput) Validate() error { 16525 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 16526 if s.ResourceArn == nil { 16527 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 16528 } 16529 if s.Tags == nil { 16530 invalidParams.Add(request.NewErrParamRequired("Tags")) 16531 } 16532 if s.Tags != nil { 16533 for i, v := range s.Tags { 16534 if v == nil { 16535 continue 16536 } 16537 if err := v.Validate(); err != nil { 16538 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 16539 } 16540 } 16541 } 16542 16543 if invalidParams.Len() > 0 { 16544 return invalidParams 16545 } 16546 return nil 16547} 16548 16549// SetResourceArn sets the ResourceArn field's value. 16550func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 16551 s.ResourceArn = &v 16552 return s 16553} 16554 16555// SetTags sets the Tags field's value. 16556func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 16557 s.Tags = v 16558 return s 16559} 16560 16561type TagResourceOutput struct { 16562 _ struct{} `type:"structure"` 16563} 16564 16565// String returns the string representation 16566func (s TagResourceOutput) String() string { 16567 return awsutil.Prettify(s) 16568} 16569 16570// GoString returns the string representation 16571func (s TagResourceOutput) GoString() string { 16572 return s.String() 16573} 16574 16575// The size of the input text exceeds the limit. Use a smaller document. 16576type TextSizeLimitExceededException struct { 16577 _ struct{} `type:"structure"` 16578 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16579 16580 Message_ *string `locationName:"Message" min:"1" type:"string"` 16581} 16582 16583// String returns the string representation 16584func (s TextSizeLimitExceededException) String() string { 16585 return awsutil.Prettify(s) 16586} 16587 16588// GoString returns the string representation 16589func (s TextSizeLimitExceededException) GoString() string { 16590 return s.String() 16591} 16592 16593func newErrorTextSizeLimitExceededException(v protocol.ResponseMetadata) error { 16594 return &TextSizeLimitExceededException{ 16595 RespMetadata: v, 16596 } 16597} 16598 16599// Code returns the exception type name. 16600func (s *TextSizeLimitExceededException) Code() string { 16601 return "TextSizeLimitExceededException" 16602} 16603 16604// Message returns the exception's message. 16605func (s *TextSizeLimitExceededException) Message() string { 16606 if s.Message_ != nil { 16607 return *s.Message_ 16608 } 16609 return "" 16610} 16611 16612// OrigErr always returns nil, satisfies awserr.Error interface. 16613func (s *TextSizeLimitExceededException) OrigErr() error { 16614 return nil 16615} 16616 16617func (s *TextSizeLimitExceededException) Error() string { 16618 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16619} 16620 16621// Status code returns the HTTP status code for the request's response error. 16622func (s *TextSizeLimitExceededException) StatusCode() int { 16623 return s.RespMetadata.StatusCode 16624} 16625 16626// RequestID returns the service's response RequestID for request. 16627func (s *TextSizeLimitExceededException) RequestID() string { 16628 return s.RespMetadata.RequestID 16629} 16630 16631// The number of requests exceeds the limit. Resubmit your request later. 16632type TooManyRequestsException struct { 16633 _ struct{} `type:"structure"` 16634 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16635 16636 Message_ *string `locationName:"Message" min:"1" type:"string"` 16637} 16638 16639// String returns the string representation 16640func (s TooManyRequestsException) String() string { 16641 return awsutil.Prettify(s) 16642} 16643 16644// GoString returns the string representation 16645func (s TooManyRequestsException) GoString() string { 16646 return s.String() 16647} 16648 16649func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { 16650 return &TooManyRequestsException{ 16651 RespMetadata: v, 16652 } 16653} 16654 16655// Code returns the exception type name. 16656func (s *TooManyRequestsException) Code() string { 16657 return "TooManyRequestsException" 16658} 16659 16660// Message returns the exception's message. 16661func (s *TooManyRequestsException) Message() string { 16662 if s.Message_ != nil { 16663 return *s.Message_ 16664 } 16665 return "" 16666} 16667 16668// OrigErr always returns nil, satisfies awserr.Error interface. 16669func (s *TooManyRequestsException) OrigErr() error { 16670 return nil 16671} 16672 16673func (s *TooManyRequestsException) Error() string { 16674 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16675} 16676 16677// Status code returns the HTTP status code for the request's response error. 16678func (s *TooManyRequestsException) StatusCode() int { 16679 return s.RespMetadata.StatusCode 16680} 16681 16682// RequestID returns the service's response RequestID for request. 16683func (s *TooManyRequestsException) RequestID() string { 16684 return s.RespMetadata.RequestID 16685} 16686 16687// The request contains more tag keys than can be associated with a resource 16688// (50 tag keys per resource). 16689type TooManyTagKeysException struct { 16690 _ struct{} `type:"structure"` 16691 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16692 16693 Message_ *string `locationName:"Message" min:"1" type:"string"` 16694} 16695 16696// String returns the string representation 16697func (s TooManyTagKeysException) String() string { 16698 return awsutil.Prettify(s) 16699} 16700 16701// GoString returns the string representation 16702func (s TooManyTagKeysException) GoString() string { 16703 return s.String() 16704} 16705 16706func newErrorTooManyTagKeysException(v protocol.ResponseMetadata) error { 16707 return &TooManyTagKeysException{ 16708 RespMetadata: v, 16709 } 16710} 16711 16712// Code returns the exception type name. 16713func (s *TooManyTagKeysException) Code() string { 16714 return "TooManyTagKeysException" 16715} 16716 16717// Message returns the exception's message. 16718func (s *TooManyTagKeysException) Message() string { 16719 if s.Message_ != nil { 16720 return *s.Message_ 16721 } 16722 return "" 16723} 16724 16725// OrigErr always returns nil, satisfies awserr.Error interface. 16726func (s *TooManyTagKeysException) OrigErr() error { 16727 return nil 16728} 16729 16730func (s *TooManyTagKeysException) Error() string { 16731 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16732} 16733 16734// Status code returns the HTTP status code for the request's response error. 16735func (s *TooManyTagKeysException) StatusCode() int { 16736 return s.RespMetadata.StatusCode 16737} 16738 16739// RequestID returns the service's response RequestID for request. 16740func (s *TooManyTagKeysException) RequestID() string { 16741 return s.RespMetadata.RequestID 16742} 16743 16744// The request contains more tags than can be associated with a resource (50 16745// tags per resource). The maximum number of tags includes both existing tags 16746// and those included in your current request. 16747type TooManyTagsException struct { 16748 _ struct{} `type:"structure"` 16749 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16750 16751 Message_ *string `locationName:"Message" min:"1" type:"string"` 16752} 16753 16754// String returns the string representation 16755func (s TooManyTagsException) String() string { 16756 return awsutil.Prettify(s) 16757} 16758 16759// GoString returns the string representation 16760func (s TooManyTagsException) GoString() string { 16761 return s.String() 16762} 16763 16764func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { 16765 return &TooManyTagsException{ 16766 RespMetadata: v, 16767 } 16768} 16769 16770// Code returns the exception type name. 16771func (s *TooManyTagsException) Code() string { 16772 return "TooManyTagsException" 16773} 16774 16775// Message returns the exception's message. 16776func (s *TooManyTagsException) Message() string { 16777 if s.Message_ != nil { 16778 return *s.Message_ 16779 } 16780 return "" 16781} 16782 16783// OrigErr always returns nil, satisfies awserr.Error interface. 16784func (s *TooManyTagsException) OrigErr() error { 16785 return nil 16786} 16787 16788func (s *TooManyTagsException) Error() string { 16789 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16790} 16791 16792// Status code returns the HTTP status code for the request's response error. 16793func (s *TooManyTagsException) StatusCode() int { 16794 return s.RespMetadata.StatusCode 16795} 16796 16797// RequestID returns the service's response RequestID for request. 16798func (s *TooManyTagsException) RequestID() string { 16799 return s.RespMetadata.RequestID 16800} 16801 16802// Provides information for filtering topic detection jobs. For more information, 16803// see . 16804type TopicsDetectionJobFilter struct { 16805 _ struct{} `type:"structure"` 16806 16807 JobName *string `min:"1" type:"string"` 16808 16809 // Filters the list of topic detection jobs based on job status. Returns only 16810 // jobs with the specified status. 16811 JobStatus *string `type:"string" enum:"JobStatus"` 16812 16813 // Filters the list of jobs based on the time that the job was submitted for 16814 // processing. Only returns jobs submitted after the specified time. Jobs are 16815 // returned in ascending order, oldest to newest. 16816 SubmitTimeAfter *time.Time `type:"timestamp"` 16817 16818 // Filters the list of jobs based on the time that the job was submitted for 16819 // processing. Only returns jobs submitted before the specified time. Jobs are 16820 // returned in descending order, newest to oldest. 16821 SubmitTimeBefore *time.Time `type:"timestamp"` 16822} 16823 16824// String returns the string representation 16825func (s TopicsDetectionJobFilter) String() string { 16826 return awsutil.Prettify(s) 16827} 16828 16829// GoString returns the string representation 16830func (s TopicsDetectionJobFilter) GoString() string { 16831 return s.String() 16832} 16833 16834// Validate inspects the fields of the type to determine if they are valid. 16835func (s *TopicsDetectionJobFilter) Validate() error { 16836 invalidParams := request.ErrInvalidParams{Context: "TopicsDetectionJobFilter"} 16837 if s.JobName != nil && len(*s.JobName) < 1 { 16838 invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) 16839 } 16840 16841 if invalidParams.Len() > 0 { 16842 return invalidParams 16843 } 16844 return nil 16845} 16846 16847// SetJobName sets the JobName field's value. 16848func (s *TopicsDetectionJobFilter) SetJobName(v string) *TopicsDetectionJobFilter { 16849 s.JobName = &v 16850 return s 16851} 16852 16853// SetJobStatus sets the JobStatus field's value. 16854func (s *TopicsDetectionJobFilter) SetJobStatus(v string) *TopicsDetectionJobFilter { 16855 s.JobStatus = &v 16856 return s 16857} 16858 16859// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. 16860func (s *TopicsDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *TopicsDetectionJobFilter { 16861 s.SubmitTimeAfter = &v 16862 return s 16863} 16864 16865// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. 16866func (s *TopicsDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *TopicsDetectionJobFilter { 16867 s.SubmitTimeBefore = &v 16868 return s 16869} 16870 16871// Provides information about a topic detection job. 16872type TopicsDetectionJobProperties struct { 16873 _ struct{} `type:"structure"` 16874 16875 // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role 16876 // that grants Amazon Comprehend read access to your job data. 16877 DataAccessRoleArn *string `min:"20" type:"string"` 16878 16879 // The time that the topic detection job was completed. 16880 EndTime *time.Time `type:"timestamp"` 16881 16882 // The input data configuration supplied when you created the topic detection 16883 // job. 16884 InputDataConfig *InputDataConfig `type:"structure"` 16885 16886 // The identifier assigned to the topic detection job. 16887 JobId *string `min:"1" type:"string"` 16888 16889 // The name of the topic detection job. 16890 JobName *string `min:"1" type:"string"` 16891 16892 // The current status of the topic detection job. If the status is Failed, the 16893 // reason for the failure is shown in the Message field. 16894 JobStatus *string `type:"string" enum:"JobStatus"` 16895 16896 // A description for the status of a job. 16897 Message *string `type:"string"` 16898 16899 // The number of topics to detect supplied when you created the topic detection 16900 // job. The default is 10. 16901 NumberOfTopics *int64 `type:"integer"` 16902 16903 // The output data configuration supplied when you created the topic detection 16904 // job. 16905 OutputDataConfig *OutputDataConfig `type:"structure"` 16906 16907 // The time that the topic detection job was submitted for processing. 16908 SubmitTime *time.Time `type:"timestamp"` 16909 16910 // ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses 16911 // to encrypt data on the storage volume attached to the ML compute instance(s) 16912 // that process the analysis job. The VolumeKmsKeyId can be either of the following 16913 // formats: 16914 // 16915 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 16916 // 16917 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" 16918 VolumeKmsKeyId *string `type:"string"` 16919 16920 // Configuration parameters for a private Virtual Private Cloud (VPC) containing 16921 // the resources you are using for your topic detection job. For more information, 16922 // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 16923 VpcConfig *VpcConfig `type:"structure"` 16924} 16925 16926// String returns the string representation 16927func (s TopicsDetectionJobProperties) String() string { 16928 return awsutil.Prettify(s) 16929} 16930 16931// GoString returns the string representation 16932func (s TopicsDetectionJobProperties) GoString() string { 16933 return s.String() 16934} 16935 16936// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 16937func (s *TopicsDetectionJobProperties) SetDataAccessRoleArn(v string) *TopicsDetectionJobProperties { 16938 s.DataAccessRoleArn = &v 16939 return s 16940} 16941 16942// SetEndTime sets the EndTime field's value. 16943func (s *TopicsDetectionJobProperties) SetEndTime(v time.Time) *TopicsDetectionJobProperties { 16944 s.EndTime = &v 16945 return s 16946} 16947 16948// SetInputDataConfig sets the InputDataConfig field's value. 16949func (s *TopicsDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *TopicsDetectionJobProperties { 16950 s.InputDataConfig = v 16951 return s 16952} 16953 16954// SetJobId sets the JobId field's value. 16955func (s *TopicsDetectionJobProperties) SetJobId(v string) *TopicsDetectionJobProperties { 16956 s.JobId = &v 16957 return s 16958} 16959 16960// SetJobName sets the JobName field's value. 16961func (s *TopicsDetectionJobProperties) SetJobName(v string) *TopicsDetectionJobProperties { 16962 s.JobName = &v 16963 return s 16964} 16965 16966// SetJobStatus sets the JobStatus field's value. 16967func (s *TopicsDetectionJobProperties) SetJobStatus(v string) *TopicsDetectionJobProperties { 16968 s.JobStatus = &v 16969 return s 16970} 16971 16972// SetMessage sets the Message field's value. 16973func (s *TopicsDetectionJobProperties) SetMessage(v string) *TopicsDetectionJobProperties { 16974 s.Message = &v 16975 return s 16976} 16977 16978// SetNumberOfTopics sets the NumberOfTopics field's value. 16979func (s *TopicsDetectionJobProperties) SetNumberOfTopics(v int64) *TopicsDetectionJobProperties { 16980 s.NumberOfTopics = &v 16981 return s 16982} 16983 16984// SetOutputDataConfig sets the OutputDataConfig field's value. 16985func (s *TopicsDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *TopicsDetectionJobProperties { 16986 s.OutputDataConfig = v 16987 return s 16988} 16989 16990// SetSubmitTime sets the SubmitTime field's value. 16991func (s *TopicsDetectionJobProperties) SetSubmitTime(v time.Time) *TopicsDetectionJobProperties { 16992 s.SubmitTime = &v 16993 return s 16994} 16995 16996// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. 16997func (s *TopicsDetectionJobProperties) SetVolumeKmsKeyId(v string) *TopicsDetectionJobProperties { 16998 s.VolumeKmsKeyId = &v 16999 return s 17000} 17001 17002// SetVpcConfig sets the VpcConfig field's value. 17003func (s *TopicsDetectionJobProperties) SetVpcConfig(v *VpcConfig) *TopicsDetectionJobProperties { 17004 s.VpcConfig = v 17005 return s 17006} 17007 17008// Amazon Comprehend can't process the language of the input text. For custom 17009// entity recognition APIs, only English, Spanish, French, Italian, German, 17010// or Portuguese are accepted. For a list of supported languages, see supported-languages. 17011type UnsupportedLanguageException struct { 17012 _ struct{} `type:"structure"` 17013 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17014 17015 Message_ *string `locationName:"Message" min:"1" type:"string"` 17016} 17017 17018// String returns the string representation 17019func (s UnsupportedLanguageException) String() string { 17020 return awsutil.Prettify(s) 17021} 17022 17023// GoString returns the string representation 17024func (s UnsupportedLanguageException) GoString() string { 17025 return s.String() 17026} 17027 17028func newErrorUnsupportedLanguageException(v protocol.ResponseMetadata) error { 17029 return &UnsupportedLanguageException{ 17030 RespMetadata: v, 17031 } 17032} 17033 17034// Code returns the exception type name. 17035func (s *UnsupportedLanguageException) Code() string { 17036 return "UnsupportedLanguageException" 17037} 17038 17039// Message returns the exception's message. 17040func (s *UnsupportedLanguageException) Message() string { 17041 if s.Message_ != nil { 17042 return *s.Message_ 17043 } 17044 return "" 17045} 17046 17047// OrigErr always returns nil, satisfies awserr.Error interface. 17048func (s *UnsupportedLanguageException) OrigErr() error { 17049 return nil 17050} 17051 17052func (s *UnsupportedLanguageException) Error() string { 17053 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17054} 17055 17056// Status code returns the HTTP status code for the request's response error. 17057func (s *UnsupportedLanguageException) StatusCode() int { 17058 return s.RespMetadata.StatusCode 17059} 17060 17061// RequestID returns the service's response RequestID for request. 17062func (s *UnsupportedLanguageException) RequestID() string { 17063 return s.RespMetadata.RequestID 17064} 17065 17066type UntagResourceInput struct { 17067 _ struct{} `type:"structure"` 17068 17069 // The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 17070 // which you want to remove the tags. 17071 // 17072 // ResourceArn is a required field 17073 ResourceArn *string `type:"string" required:"true"` 17074 17075 // The initial part of a key-value pair that forms a tag being removed from 17076 // a given resource. For example, a tag with "Sales" as the key might be added 17077 // to a resource to indicate its use by the sales department. Keys must be unique 17078 // and cannot be duplicated for a particular resource. 17079 // 17080 // TagKeys is a required field 17081 TagKeys []*string `type:"list" required:"true"` 17082} 17083 17084// String returns the string representation 17085func (s UntagResourceInput) String() string { 17086 return awsutil.Prettify(s) 17087} 17088 17089// GoString returns the string representation 17090func (s UntagResourceInput) GoString() string { 17091 return s.String() 17092} 17093 17094// Validate inspects the fields of the type to determine if they are valid. 17095func (s *UntagResourceInput) Validate() error { 17096 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 17097 if s.ResourceArn == nil { 17098 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 17099 } 17100 if s.TagKeys == nil { 17101 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 17102 } 17103 17104 if invalidParams.Len() > 0 { 17105 return invalidParams 17106 } 17107 return nil 17108} 17109 17110// SetResourceArn sets the ResourceArn field's value. 17111func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 17112 s.ResourceArn = &v 17113 return s 17114} 17115 17116// SetTagKeys sets the TagKeys field's value. 17117func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 17118 s.TagKeys = v 17119 return s 17120} 17121 17122type UntagResourceOutput struct { 17123 _ struct{} `type:"structure"` 17124} 17125 17126// String returns the string representation 17127func (s UntagResourceOutput) String() string { 17128 return awsutil.Prettify(s) 17129} 17130 17131// GoString returns the string representation 17132func (s UntagResourceOutput) GoString() string { 17133 return s.String() 17134} 17135 17136type UpdateEndpointInput struct { 17137 _ struct{} `type:"structure"` 17138 17139 // The desired number of inference units to be used by the model using this 17140 // endpoint. Each inference unit represents of a throughput of 100 characters 17141 // per second. 17142 // 17143 // DesiredInferenceUnits is a required field 17144 DesiredInferenceUnits *int64 `min:"1" type:"integer" required:"true"` 17145 17146 // The Amazon Resource Number (ARN) of the endpoint being updated. 17147 // 17148 // EndpointArn is a required field 17149 EndpointArn *string `type:"string" required:"true"` 17150} 17151 17152// String returns the string representation 17153func (s UpdateEndpointInput) String() string { 17154 return awsutil.Prettify(s) 17155} 17156 17157// GoString returns the string representation 17158func (s UpdateEndpointInput) GoString() string { 17159 return s.String() 17160} 17161 17162// Validate inspects the fields of the type to determine if they are valid. 17163func (s *UpdateEndpointInput) Validate() error { 17164 invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointInput"} 17165 if s.DesiredInferenceUnits == nil { 17166 invalidParams.Add(request.NewErrParamRequired("DesiredInferenceUnits")) 17167 } 17168 if s.DesiredInferenceUnits != nil && *s.DesiredInferenceUnits < 1 { 17169 invalidParams.Add(request.NewErrParamMinValue("DesiredInferenceUnits", 1)) 17170 } 17171 if s.EndpointArn == nil { 17172 invalidParams.Add(request.NewErrParamRequired("EndpointArn")) 17173 } 17174 17175 if invalidParams.Len() > 0 { 17176 return invalidParams 17177 } 17178 return nil 17179} 17180 17181// SetDesiredInferenceUnits sets the DesiredInferenceUnits field's value. 17182func (s *UpdateEndpointInput) SetDesiredInferenceUnits(v int64) *UpdateEndpointInput { 17183 s.DesiredInferenceUnits = &v 17184 return s 17185} 17186 17187// SetEndpointArn sets the EndpointArn field's value. 17188func (s *UpdateEndpointInput) SetEndpointArn(v string) *UpdateEndpointInput { 17189 s.EndpointArn = &v 17190 return s 17191} 17192 17193type UpdateEndpointOutput struct { 17194 _ struct{} `type:"structure"` 17195} 17196 17197// String returns the string representation 17198func (s UpdateEndpointOutput) String() string { 17199 return awsutil.Prettify(s) 17200} 17201 17202// GoString returns the string representation 17203func (s UpdateEndpointOutput) GoString() string { 17204 return s.String() 17205} 17206 17207// Configuration parameters for an optional private Virtual Private Cloud (VPC) 17208// containing the resources you are using for the job. For more information, 17209// see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). 17210type VpcConfig struct { 17211 _ struct{} `type:"structure"` 17212 17213 // The ID number for a security group on an instance of your private VPC. Security 17214 // groups on your VPC function serve as a virtual firewall to control inbound 17215 // and outbound traffic and provides security for the resources that you’ll 17216 // be accessing on the VPC. This ID number is preceded by "sg-", for instance: 17217 // "sg-03b388029b0a285ea". For more information, see Security Groups for your 17218 // VPC (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html). 17219 // 17220 // SecurityGroupIds is a required field 17221 SecurityGroupIds []*string `min:"1" type:"list" required:"true"` 17222 17223 // The ID for each subnet being used in your private VPC. This subnet is a subset 17224 // of the a range of IPv4 addresses used by the VPC and is specific to a given 17225 // availability zone in the VPC’s region. This ID number is preceded by "subnet-", 17226 // for instance: "subnet-04ccf456919e69055". For more information, see VPCs 17227 // and Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html). 17228 // 17229 // Subnets is a required field 17230 Subnets []*string `min:"1" type:"list" required:"true"` 17231} 17232 17233// String returns the string representation 17234func (s VpcConfig) String() string { 17235 return awsutil.Prettify(s) 17236} 17237 17238// GoString returns the string representation 17239func (s VpcConfig) GoString() string { 17240 return s.String() 17241} 17242 17243// Validate inspects the fields of the type to determine if they are valid. 17244func (s *VpcConfig) Validate() error { 17245 invalidParams := request.ErrInvalidParams{Context: "VpcConfig"} 17246 if s.SecurityGroupIds == nil { 17247 invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds")) 17248 } 17249 if s.SecurityGroupIds != nil && len(s.SecurityGroupIds) < 1 { 17250 invalidParams.Add(request.NewErrParamMinLen("SecurityGroupIds", 1)) 17251 } 17252 if s.Subnets == nil { 17253 invalidParams.Add(request.NewErrParamRequired("Subnets")) 17254 } 17255 if s.Subnets != nil && len(s.Subnets) < 1 { 17256 invalidParams.Add(request.NewErrParamMinLen("Subnets", 1)) 17257 } 17258 17259 if invalidParams.Len() > 0 { 17260 return invalidParams 17261 } 17262 return nil 17263} 17264 17265// SetSecurityGroupIds sets the SecurityGroupIds field's value. 17266func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig { 17267 s.SecurityGroupIds = v 17268 return s 17269} 17270 17271// SetSubnets sets the Subnets field's value. 17272func (s *VpcConfig) SetSubnets(v []*string) *VpcConfig { 17273 s.Subnets = v 17274 return s 17275} 17276 17277const ( 17278 // DocumentClassifierDataFormatComprehendCsv is a DocumentClassifierDataFormat enum value 17279 DocumentClassifierDataFormatComprehendCsv = "COMPREHEND_CSV" 17280 17281 // DocumentClassifierDataFormatAugmentedManifest is a DocumentClassifierDataFormat enum value 17282 DocumentClassifierDataFormatAugmentedManifest = "AUGMENTED_MANIFEST" 17283) 17284 17285// DocumentClassifierDataFormat_Values returns all elements of the DocumentClassifierDataFormat enum 17286func DocumentClassifierDataFormat_Values() []string { 17287 return []string{ 17288 DocumentClassifierDataFormatComprehendCsv, 17289 DocumentClassifierDataFormatAugmentedManifest, 17290 } 17291} 17292 17293const ( 17294 // DocumentClassifierModeMultiClass is a DocumentClassifierMode enum value 17295 DocumentClassifierModeMultiClass = "MULTI_CLASS" 17296 17297 // DocumentClassifierModeMultiLabel is a DocumentClassifierMode enum value 17298 DocumentClassifierModeMultiLabel = "MULTI_LABEL" 17299) 17300 17301// DocumentClassifierMode_Values returns all elements of the DocumentClassifierMode enum 17302func DocumentClassifierMode_Values() []string { 17303 return []string{ 17304 DocumentClassifierModeMultiClass, 17305 DocumentClassifierModeMultiLabel, 17306 } 17307} 17308 17309const ( 17310 // EndpointStatusCreating is a EndpointStatus enum value 17311 EndpointStatusCreating = "CREATING" 17312 17313 // EndpointStatusDeleting is a EndpointStatus enum value 17314 EndpointStatusDeleting = "DELETING" 17315 17316 // EndpointStatusFailed is a EndpointStatus enum value 17317 EndpointStatusFailed = "FAILED" 17318 17319 // EndpointStatusInService is a EndpointStatus enum value 17320 EndpointStatusInService = "IN_SERVICE" 17321 17322 // EndpointStatusUpdating is a EndpointStatus enum value 17323 EndpointStatusUpdating = "UPDATING" 17324) 17325 17326// EndpointStatus_Values returns all elements of the EndpointStatus enum 17327func EndpointStatus_Values() []string { 17328 return []string{ 17329 EndpointStatusCreating, 17330 EndpointStatusDeleting, 17331 EndpointStatusFailed, 17332 EndpointStatusInService, 17333 EndpointStatusUpdating, 17334 } 17335} 17336 17337const ( 17338 // EntityRecognizerDataFormatComprehendCsv is a EntityRecognizerDataFormat enum value 17339 EntityRecognizerDataFormatComprehendCsv = "COMPREHEND_CSV" 17340 17341 // EntityRecognizerDataFormatAugmentedManifest is a EntityRecognizerDataFormat enum value 17342 EntityRecognizerDataFormatAugmentedManifest = "AUGMENTED_MANIFEST" 17343) 17344 17345// EntityRecognizerDataFormat_Values returns all elements of the EntityRecognizerDataFormat enum 17346func EntityRecognizerDataFormat_Values() []string { 17347 return []string{ 17348 EntityRecognizerDataFormatComprehendCsv, 17349 EntityRecognizerDataFormatAugmentedManifest, 17350 } 17351} 17352 17353const ( 17354 // EntityTypePerson is a EntityType enum value 17355 EntityTypePerson = "PERSON" 17356 17357 // EntityTypeLocation is a EntityType enum value 17358 EntityTypeLocation = "LOCATION" 17359 17360 // EntityTypeOrganization is a EntityType enum value 17361 EntityTypeOrganization = "ORGANIZATION" 17362 17363 // EntityTypeCommercialItem is a EntityType enum value 17364 EntityTypeCommercialItem = "COMMERCIAL_ITEM" 17365 17366 // EntityTypeEvent is a EntityType enum value 17367 EntityTypeEvent = "EVENT" 17368 17369 // EntityTypeDate is a EntityType enum value 17370 EntityTypeDate = "DATE" 17371 17372 // EntityTypeQuantity is a EntityType enum value 17373 EntityTypeQuantity = "QUANTITY" 17374 17375 // EntityTypeTitle is a EntityType enum value 17376 EntityTypeTitle = "TITLE" 17377 17378 // EntityTypeOther is a EntityType enum value 17379 EntityTypeOther = "OTHER" 17380) 17381 17382// EntityType_Values returns all elements of the EntityType enum 17383func EntityType_Values() []string { 17384 return []string{ 17385 EntityTypePerson, 17386 EntityTypeLocation, 17387 EntityTypeOrganization, 17388 EntityTypeCommercialItem, 17389 EntityTypeEvent, 17390 EntityTypeDate, 17391 EntityTypeQuantity, 17392 EntityTypeTitle, 17393 EntityTypeOther, 17394 } 17395} 17396 17397const ( 17398 // InputFormatOneDocPerFile is a InputFormat enum value 17399 InputFormatOneDocPerFile = "ONE_DOC_PER_FILE" 17400 17401 // InputFormatOneDocPerLine is a InputFormat enum value 17402 InputFormatOneDocPerLine = "ONE_DOC_PER_LINE" 17403) 17404 17405// InputFormat_Values returns all elements of the InputFormat enum 17406func InputFormat_Values() []string { 17407 return []string{ 17408 InputFormatOneDocPerFile, 17409 InputFormatOneDocPerLine, 17410 } 17411} 17412 17413const ( 17414 // JobStatusSubmitted is a JobStatus enum value 17415 JobStatusSubmitted = "SUBMITTED" 17416 17417 // JobStatusInProgress is a JobStatus enum value 17418 JobStatusInProgress = "IN_PROGRESS" 17419 17420 // JobStatusCompleted is a JobStatus enum value 17421 JobStatusCompleted = "COMPLETED" 17422 17423 // JobStatusFailed is a JobStatus enum value 17424 JobStatusFailed = "FAILED" 17425 17426 // JobStatusStopRequested is a JobStatus enum value 17427 JobStatusStopRequested = "STOP_REQUESTED" 17428 17429 // JobStatusStopped is a JobStatus enum value 17430 JobStatusStopped = "STOPPED" 17431) 17432 17433// JobStatus_Values returns all elements of the JobStatus enum 17434func JobStatus_Values() []string { 17435 return []string{ 17436 JobStatusSubmitted, 17437 JobStatusInProgress, 17438 JobStatusCompleted, 17439 JobStatusFailed, 17440 JobStatusStopRequested, 17441 JobStatusStopped, 17442 } 17443} 17444 17445const ( 17446 // LanguageCodeEn is a LanguageCode enum value 17447 LanguageCodeEn = "en" 17448 17449 // LanguageCodeEs is a LanguageCode enum value 17450 LanguageCodeEs = "es" 17451 17452 // LanguageCodeFr is a LanguageCode enum value 17453 LanguageCodeFr = "fr" 17454 17455 // LanguageCodeDe is a LanguageCode enum value 17456 LanguageCodeDe = "de" 17457 17458 // LanguageCodeIt is a LanguageCode enum value 17459 LanguageCodeIt = "it" 17460 17461 // LanguageCodePt is a LanguageCode enum value 17462 LanguageCodePt = "pt" 17463 17464 // LanguageCodeAr is a LanguageCode enum value 17465 LanguageCodeAr = "ar" 17466 17467 // LanguageCodeHi is a LanguageCode enum value 17468 LanguageCodeHi = "hi" 17469 17470 // LanguageCodeJa is a LanguageCode enum value 17471 LanguageCodeJa = "ja" 17472 17473 // LanguageCodeKo is a LanguageCode enum value 17474 LanguageCodeKo = "ko" 17475 17476 // LanguageCodeZh is a LanguageCode enum value 17477 LanguageCodeZh = "zh" 17478 17479 // LanguageCodeZhTw is a LanguageCode enum value 17480 LanguageCodeZhTw = "zh-TW" 17481) 17482 17483// LanguageCode_Values returns all elements of the LanguageCode enum 17484func LanguageCode_Values() []string { 17485 return []string{ 17486 LanguageCodeEn, 17487 LanguageCodeEs, 17488 LanguageCodeFr, 17489 LanguageCodeDe, 17490 LanguageCodeIt, 17491 LanguageCodePt, 17492 LanguageCodeAr, 17493 LanguageCodeHi, 17494 LanguageCodeJa, 17495 LanguageCodeKo, 17496 LanguageCodeZh, 17497 LanguageCodeZhTw, 17498 } 17499} 17500 17501const ( 17502 // ModelStatusSubmitted is a ModelStatus enum value 17503 ModelStatusSubmitted = "SUBMITTED" 17504 17505 // ModelStatusTraining is a ModelStatus enum value 17506 ModelStatusTraining = "TRAINING" 17507 17508 // ModelStatusDeleting is a ModelStatus enum value 17509 ModelStatusDeleting = "DELETING" 17510 17511 // ModelStatusStopRequested is a ModelStatus enum value 17512 ModelStatusStopRequested = "STOP_REQUESTED" 17513 17514 // ModelStatusStopped is a ModelStatus enum value 17515 ModelStatusStopped = "STOPPED" 17516 17517 // ModelStatusInError is a ModelStatus enum value 17518 ModelStatusInError = "IN_ERROR" 17519 17520 // ModelStatusTrained is a ModelStatus enum value 17521 ModelStatusTrained = "TRAINED" 17522) 17523 17524// ModelStatus_Values returns all elements of the ModelStatus enum 17525func ModelStatus_Values() []string { 17526 return []string{ 17527 ModelStatusSubmitted, 17528 ModelStatusTraining, 17529 ModelStatusDeleting, 17530 ModelStatusStopRequested, 17531 ModelStatusStopped, 17532 ModelStatusInError, 17533 ModelStatusTrained, 17534 } 17535} 17536 17537const ( 17538 // PartOfSpeechTagTypeAdj is a PartOfSpeechTagType enum value 17539 PartOfSpeechTagTypeAdj = "ADJ" 17540 17541 // PartOfSpeechTagTypeAdp is a PartOfSpeechTagType enum value 17542 PartOfSpeechTagTypeAdp = "ADP" 17543 17544 // PartOfSpeechTagTypeAdv is a PartOfSpeechTagType enum value 17545 PartOfSpeechTagTypeAdv = "ADV" 17546 17547 // PartOfSpeechTagTypeAux is a PartOfSpeechTagType enum value 17548 PartOfSpeechTagTypeAux = "AUX" 17549 17550 // PartOfSpeechTagTypeConj is a PartOfSpeechTagType enum value 17551 PartOfSpeechTagTypeConj = "CONJ" 17552 17553 // PartOfSpeechTagTypeCconj is a PartOfSpeechTagType enum value 17554 PartOfSpeechTagTypeCconj = "CCONJ" 17555 17556 // PartOfSpeechTagTypeDet is a PartOfSpeechTagType enum value 17557 PartOfSpeechTagTypeDet = "DET" 17558 17559 // PartOfSpeechTagTypeIntj is a PartOfSpeechTagType enum value 17560 PartOfSpeechTagTypeIntj = "INTJ" 17561 17562 // PartOfSpeechTagTypeNoun is a PartOfSpeechTagType enum value 17563 PartOfSpeechTagTypeNoun = "NOUN" 17564 17565 // PartOfSpeechTagTypeNum is a PartOfSpeechTagType enum value 17566 PartOfSpeechTagTypeNum = "NUM" 17567 17568 // PartOfSpeechTagTypeO is a PartOfSpeechTagType enum value 17569 PartOfSpeechTagTypeO = "O" 17570 17571 // PartOfSpeechTagTypePart is a PartOfSpeechTagType enum value 17572 PartOfSpeechTagTypePart = "PART" 17573 17574 // PartOfSpeechTagTypePron is a PartOfSpeechTagType enum value 17575 PartOfSpeechTagTypePron = "PRON" 17576 17577 // PartOfSpeechTagTypePropn is a PartOfSpeechTagType enum value 17578 PartOfSpeechTagTypePropn = "PROPN" 17579 17580 // PartOfSpeechTagTypePunct is a PartOfSpeechTagType enum value 17581 PartOfSpeechTagTypePunct = "PUNCT" 17582 17583 // PartOfSpeechTagTypeSconj is a PartOfSpeechTagType enum value 17584 PartOfSpeechTagTypeSconj = "SCONJ" 17585 17586 // PartOfSpeechTagTypeSym is a PartOfSpeechTagType enum value 17587 PartOfSpeechTagTypeSym = "SYM" 17588 17589 // PartOfSpeechTagTypeVerb is a PartOfSpeechTagType enum value 17590 PartOfSpeechTagTypeVerb = "VERB" 17591) 17592 17593// PartOfSpeechTagType_Values returns all elements of the PartOfSpeechTagType enum 17594func PartOfSpeechTagType_Values() []string { 17595 return []string{ 17596 PartOfSpeechTagTypeAdj, 17597 PartOfSpeechTagTypeAdp, 17598 PartOfSpeechTagTypeAdv, 17599 PartOfSpeechTagTypeAux, 17600 PartOfSpeechTagTypeConj, 17601 PartOfSpeechTagTypeCconj, 17602 PartOfSpeechTagTypeDet, 17603 PartOfSpeechTagTypeIntj, 17604 PartOfSpeechTagTypeNoun, 17605 PartOfSpeechTagTypeNum, 17606 PartOfSpeechTagTypeO, 17607 PartOfSpeechTagTypePart, 17608 PartOfSpeechTagTypePron, 17609 PartOfSpeechTagTypePropn, 17610 PartOfSpeechTagTypePunct, 17611 PartOfSpeechTagTypeSconj, 17612 PartOfSpeechTagTypeSym, 17613 PartOfSpeechTagTypeVerb, 17614 } 17615} 17616 17617const ( 17618 // PiiEntitiesDetectionMaskModeMask is a PiiEntitiesDetectionMaskMode enum value 17619 PiiEntitiesDetectionMaskModeMask = "MASK" 17620 17621 // PiiEntitiesDetectionMaskModeReplaceWithPiiEntityType is a PiiEntitiesDetectionMaskMode enum value 17622 PiiEntitiesDetectionMaskModeReplaceWithPiiEntityType = "REPLACE_WITH_PII_ENTITY_TYPE" 17623) 17624 17625// PiiEntitiesDetectionMaskMode_Values returns all elements of the PiiEntitiesDetectionMaskMode enum 17626func PiiEntitiesDetectionMaskMode_Values() []string { 17627 return []string{ 17628 PiiEntitiesDetectionMaskModeMask, 17629 PiiEntitiesDetectionMaskModeReplaceWithPiiEntityType, 17630 } 17631} 17632 17633const ( 17634 // PiiEntitiesDetectionModeOnlyRedaction is a PiiEntitiesDetectionMode enum value 17635 PiiEntitiesDetectionModeOnlyRedaction = "ONLY_REDACTION" 17636 17637 // PiiEntitiesDetectionModeOnlyOffsets is a PiiEntitiesDetectionMode enum value 17638 PiiEntitiesDetectionModeOnlyOffsets = "ONLY_OFFSETS" 17639) 17640 17641// PiiEntitiesDetectionMode_Values returns all elements of the PiiEntitiesDetectionMode enum 17642func PiiEntitiesDetectionMode_Values() []string { 17643 return []string{ 17644 PiiEntitiesDetectionModeOnlyRedaction, 17645 PiiEntitiesDetectionModeOnlyOffsets, 17646 } 17647} 17648 17649const ( 17650 // PiiEntityTypeBankAccountNumber is a PiiEntityType enum value 17651 PiiEntityTypeBankAccountNumber = "BANK_ACCOUNT_NUMBER" 17652 17653 // PiiEntityTypeBankRouting is a PiiEntityType enum value 17654 PiiEntityTypeBankRouting = "BANK_ROUTING" 17655 17656 // PiiEntityTypeCreditDebitNumber is a PiiEntityType enum value 17657 PiiEntityTypeCreditDebitNumber = "CREDIT_DEBIT_NUMBER" 17658 17659 // PiiEntityTypeCreditDebitCvv is a PiiEntityType enum value 17660 PiiEntityTypeCreditDebitCvv = "CREDIT_DEBIT_CVV" 17661 17662 // PiiEntityTypeCreditDebitExpiry is a PiiEntityType enum value 17663 PiiEntityTypeCreditDebitExpiry = "CREDIT_DEBIT_EXPIRY" 17664 17665 // PiiEntityTypePin is a PiiEntityType enum value 17666 PiiEntityTypePin = "PIN" 17667 17668 // PiiEntityTypeEmail is a PiiEntityType enum value 17669 PiiEntityTypeEmail = "EMAIL" 17670 17671 // PiiEntityTypeAddress is a PiiEntityType enum value 17672 PiiEntityTypeAddress = "ADDRESS" 17673 17674 // PiiEntityTypeName is a PiiEntityType enum value 17675 PiiEntityTypeName = "NAME" 17676 17677 // PiiEntityTypePhone is a PiiEntityType enum value 17678 PiiEntityTypePhone = "PHONE" 17679 17680 // PiiEntityTypeSsn is a PiiEntityType enum value 17681 PiiEntityTypeSsn = "SSN" 17682 17683 // PiiEntityTypeDateTime is a PiiEntityType enum value 17684 PiiEntityTypeDateTime = "DATE_TIME" 17685 17686 // PiiEntityTypePassportNumber is a PiiEntityType enum value 17687 PiiEntityTypePassportNumber = "PASSPORT_NUMBER" 17688 17689 // PiiEntityTypeDriverId is a PiiEntityType enum value 17690 PiiEntityTypeDriverId = "DRIVER_ID" 17691 17692 // PiiEntityTypeUrl is a PiiEntityType enum value 17693 PiiEntityTypeUrl = "URL" 17694 17695 // PiiEntityTypeAge is a PiiEntityType enum value 17696 PiiEntityTypeAge = "AGE" 17697 17698 // PiiEntityTypeUsername is a PiiEntityType enum value 17699 PiiEntityTypeUsername = "USERNAME" 17700 17701 // PiiEntityTypePassword is a PiiEntityType enum value 17702 PiiEntityTypePassword = "PASSWORD" 17703 17704 // PiiEntityTypeAwsAccessKey is a PiiEntityType enum value 17705 PiiEntityTypeAwsAccessKey = "AWS_ACCESS_KEY" 17706 17707 // PiiEntityTypeAwsSecretKey is a PiiEntityType enum value 17708 PiiEntityTypeAwsSecretKey = "AWS_SECRET_KEY" 17709 17710 // PiiEntityTypeIpAddress is a PiiEntityType enum value 17711 PiiEntityTypeIpAddress = "IP_ADDRESS" 17712 17713 // PiiEntityTypeMacAddress is a PiiEntityType enum value 17714 PiiEntityTypeMacAddress = "MAC_ADDRESS" 17715 17716 // PiiEntityTypeAll is a PiiEntityType enum value 17717 PiiEntityTypeAll = "ALL" 17718) 17719 17720// PiiEntityType_Values returns all elements of the PiiEntityType enum 17721func PiiEntityType_Values() []string { 17722 return []string{ 17723 PiiEntityTypeBankAccountNumber, 17724 PiiEntityTypeBankRouting, 17725 PiiEntityTypeCreditDebitNumber, 17726 PiiEntityTypeCreditDebitCvv, 17727 PiiEntityTypeCreditDebitExpiry, 17728 PiiEntityTypePin, 17729 PiiEntityTypeEmail, 17730 PiiEntityTypeAddress, 17731 PiiEntityTypeName, 17732 PiiEntityTypePhone, 17733 PiiEntityTypeSsn, 17734 PiiEntityTypeDateTime, 17735 PiiEntityTypePassportNumber, 17736 PiiEntityTypeDriverId, 17737 PiiEntityTypeUrl, 17738 PiiEntityTypeAge, 17739 PiiEntityTypeUsername, 17740 PiiEntityTypePassword, 17741 PiiEntityTypeAwsAccessKey, 17742 PiiEntityTypeAwsSecretKey, 17743 PiiEntityTypeIpAddress, 17744 PiiEntityTypeMacAddress, 17745 PiiEntityTypeAll, 17746 } 17747} 17748 17749const ( 17750 // SentimentTypePositive is a SentimentType enum value 17751 SentimentTypePositive = "POSITIVE" 17752 17753 // SentimentTypeNegative is a SentimentType enum value 17754 SentimentTypeNegative = "NEGATIVE" 17755 17756 // SentimentTypeNeutral is a SentimentType enum value 17757 SentimentTypeNeutral = "NEUTRAL" 17758 17759 // SentimentTypeMixed is a SentimentType enum value 17760 SentimentTypeMixed = "MIXED" 17761) 17762 17763// SentimentType_Values returns all elements of the SentimentType enum 17764func SentimentType_Values() []string { 17765 return []string{ 17766 SentimentTypePositive, 17767 SentimentTypeNegative, 17768 SentimentTypeNeutral, 17769 SentimentTypeMixed, 17770 } 17771} 17772 17773const ( 17774 // SyntaxLanguageCodeEn is a SyntaxLanguageCode enum value 17775 SyntaxLanguageCodeEn = "en" 17776 17777 // SyntaxLanguageCodeEs is a SyntaxLanguageCode enum value 17778 SyntaxLanguageCodeEs = "es" 17779 17780 // SyntaxLanguageCodeFr is a SyntaxLanguageCode enum value 17781 SyntaxLanguageCodeFr = "fr" 17782 17783 // SyntaxLanguageCodeDe is a SyntaxLanguageCode enum value 17784 SyntaxLanguageCodeDe = "de" 17785 17786 // SyntaxLanguageCodeIt is a SyntaxLanguageCode enum value 17787 SyntaxLanguageCodeIt = "it" 17788 17789 // SyntaxLanguageCodePt is a SyntaxLanguageCode enum value 17790 SyntaxLanguageCodePt = "pt" 17791) 17792 17793// SyntaxLanguageCode_Values returns all elements of the SyntaxLanguageCode enum 17794func SyntaxLanguageCode_Values() []string { 17795 return []string{ 17796 SyntaxLanguageCodeEn, 17797 SyntaxLanguageCodeEs, 17798 SyntaxLanguageCodeFr, 17799 SyntaxLanguageCodeDe, 17800 SyntaxLanguageCodeIt, 17801 SyntaxLanguageCodePt, 17802 } 17803} 17804