1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package transcribeservice 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 opCreateLanguageModel = "CreateLanguageModel" 17 18// CreateLanguageModelRequest generates a "aws/request.Request" representing the 19// client's request for the CreateLanguageModel 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 CreateLanguageModel for more information on using the CreateLanguageModel 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 CreateLanguageModelRequest method. 34// req, resp := client.CreateLanguageModelRequest(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/transcribe-2017-10-26/CreateLanguageModel 42func (c *TranscribeService) CreateLanguageModelRequest(input *CreateLanguageModelInput) (req *request.Request, output *CreateLanguageModelOutput) { 43 op := &request.Operation{ 44 Name: opCreateLanguageModel, 45 HTTPMethod: "POST", 46 HTTPPath: "/", 47 } 48 49 if input == nil { 50 input = &CreateLanguageModelInput{} 51 } 52 53 output = &CreateLanguageModelOutput{} 54 req = c.newRequest(op, input, output) 55 return 56} 57 58// CreateLanguageModel API operation for Amazon Transcribe Service. 59// 60// Creates a new custom language model. Use Amazon S3 prefixes to provide the 61// location of your input files. The time it takes to create your model depends 62// on the size of your training data. 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 Transcribe Service's 69// API operation CreateLanguageModel for usage and error information. 70// 71// Returned Error Types: 72// * BadRequestException 73// Your request didn't pass one or more validation tests. For example, if the 74// entity that you're trying to delete doesn't exist or if it is in a non-terminal 75// state (for example, it's "in progress"). See the exception Message field 76// for more information. 77// 78// * LimitExceededException 79// Either you have sent too many requests or your input file is too long. Wait 80// before you resend your request, or use a smaller file and resend the request. 81// 82// * InternalFailureException 83// There was an internal error. Check the error message and try your request 84// again. 85// 86// * ConflictException 87// There is already a resource with that name. 88// 89// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModel 90func (c *TranscribeService) CreateLanguageModel(input *CreateLanguageModelInput) (*CreateLanguageModelOutput, error) { 91 req, out := c.CreateLanguageModelRequest(input) 92 return out, req.Send() 93} 94 95// CreateLanguageModelWithContext is the same as CreateLanguageModel with the addition of 96// the ability to pass a context and additional request options. 97// 98// See CreateLanguageModel for details on how to use this API operation. 99// 100// The context must be non-nil and will be used for request cancellation. If 101// the context is nil a panic will occur. In the future the SDK may create 102// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 103// for more information on using Contexts. 104func (c *TranscribeService) CreateLanguageModelWithContext(ctx aws.Context, input *CreateLanguageModelInput, opts ...request.Option) (*CreateLanguageModelOutput, error) { 105 req, out := c.CreateLanguageModelRequest(input) 106 req.SetContext(ctx) 107 req.ApplyOptions(opts...) 108 return out, req.Send() 109} 110 111const opCreateMedicalVocabulary = "CreateMedicalVocabulary" 112 113// CreateMedicalVocabularyRequest generates a "aws/request.Request" representing the 114// client's request for the CreateMedicalVocabulary operation. The "output" return 115// value will be populated with the request's response once the request completes 116// successfully. 117// 118// Use "Send" method on the returned Request to send the API call to the service. 119// the "output" return value is not valid until after Send returns without error. 120// 121// See CreateMedicalVocabulary for more information on using the CreateMedicalVocabulary 122// API call, and error handling. 123// 124// This method is useful when you want to inject custom logic or configuration 125// into the SDK's request lifecycle. Such as custom headers, or retry logic. 126// 127// 128// // Example sending a request using the CreateMedicalVocabularyRequest method. 129// req, resp := client.CreateMedicalVocabularyRequest(params) 130// 131// err := req.Send() 132// if err == nil { // resp is now filled 133// fmt.Println(resp) 134// } 135// 136// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateMedicalVocabulary 137func (c *TranscribeService) CreateMedicalVocabularyRequest(input *CreateMedicalVocabularyInput) (req *request.Request, output *CreateMedicalVocabularyOutput) { 138 op := &request.Operation{ 139 Name: opCreateMedicalVocabulary, 140 HTTPMethod: "POST", 141 HTTPPath: "/", 142 } 143 144 if input == nil { 145 input = &CreateMedicalVocabularyInput{} 146 } 147 148 output = &CreateMedicalVocabularyOutput{} 149 req = c.newRequest(op, input, output) 150 return 151} 152 153// CreateMedicalVocabulary API operation for Amazon Transcribe Service. 154// 155// Creates a new custom vocabulary that you can use to change how Amazon Transcribe 156// Medical transcribes your audio file. 157// 158// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 159// with awserr.Error's Code and Message methods to get detailed information about 160// the error. 161// 162// See the AWS API reference guide for Amazon Transcribe Service's 163// API operation CreateMedicalVocabulary for usage and error information. 164// 165// Returned Error Types: 166// * BadRequestException 167// Your request didn't pass one or more validation tests. For example, if the 168// entity that you're trying to delete doesn't exist or if it is in a non-terminal 169// state (for example, it's "in progress"). See the exception Message field 170// for more information. 171// 172// * LimitExceededException 173// Either you have sent too many requests or your input file is too long. Wait 174// before you resend your request, or use a smaller file and resend the request. 175// 176// * InternalFailureException 177// There was an internal error. Check the error message and try your request 178// again. 179// 180// * ConflictException 181// There is already a resource with that name. 182// 183// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateMedicalVocabulary 184func (c *TranscribeService) CreateMedicalVocabulary(input *CreateMedicalVocabularyInput) (*CreateMedicalVocabularyOutput, error) { 185 req, out := c.CreateMedicalVocabularyRequest(input) 186 return out, req.Send() 187} 188 189// CreateMedicalVocabularyWithContext is the same as CreateMedicalVocabulary with the addition of 190// the ability to pass a context and additional request options. 191// 192// See CreateMedicalVocabulary for details on how to use this API operation. 193// 194// The context must be non-nil and will be used for request cancellation. If 195// the context is nil a panic will occur. In the future the SDK may create 196// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 197// for more information on using Contexts. 198func (c *TranscribeService) CreateMedicalVocabularyWithContext(ctx aws.Context, input *CreateMedicalVocabularyInput, opts ...request.Option) (*CreateMedicalVocabularyOutput, error) { 199 req, out := c.CreateMedicalVocabularyRequest(input) 200 req.SetContext(ctx) 201 req.ApplyOptions(opts...) 202 return out, req.Send() 203} 204 205const opCreateVocabulary = "CreateVocabulary" 206 207// CreateVocabularyRequest generates a "aws/request.Request" representing the 208// client's request for the CreateVocabulary operation. The "output" return 209// value will be populated with the request's response once the request completes 210// successfully. 211// 212// Use "Send" method on the returned Request to send the API call to the service. 213// the "output" return value is not valid until after Send returns without error. 214// 215// See CreateVocabulary for more information on using the CreateVocabulary 216// API call, and error handling. 217// 218// This method is useful when you want to inject custom logic or configuration 219// into the SDK's request lifecycle. Such as custom headers, or retry logic. 220// 221// 222// // Example sending a request using the CreateVocabularyRequest method. 223// req, resp := client.CreateVocabularyRequest(params) 224// 225// err := req.Send() 226// if err == nil { // resp is now filled 227// fmt.Println(resp) 228// } 229// 230// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabulary 231func (c *TranscribeService) CreateVocabularyRequest(input *CreateVocabularyInput) (req *request.Request, output *CreateVocabularyOutput) { 232 op := &request.Operation{ 233 Name: opCreateVocabulary, 234 HTTPMethod: "POST", 235 HTTPPath: "/", 236 } 237 238 if input == nil { 239 input = &CreateVocabularyInput{} 240 } 241 242 output = &CreateVocabularyOutput{} 243 req = c.newRequest(op, input, output) 244 return 245} 246 247// CreateVocabulary API operation for Amazon Transcribe Service. 248// 249// Creates a new custom vocabulary that you can use to change the way Amazon 250// Transcribe handles transcription of an audio file. 251// 252// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 253// with awserr.Error's Code and Message methods to get detailed information about 254// the error. 255// 256// See the AWS API reference guide for Amazon Transcribe Service's 257// API operation CreateVocabulary for usage and error information. 258// 259// Returned Error Types: 260// * BadRequestException 261// Your request didn't pass one or more validation tests. For example, if the 262// entity that you're trying to delete doesn't exist or if it is in a non-terminal 263// state (for example, it's "in progress"). See the exception Message field 264// for more information. 265// 266// * LimitExceededException 267// Either you have sent too many requests or your input file is too long. Wait 268// before you resend your request, or use a smaller file and resend the request. 269// 270// * InternalFailureException 271// There was an internal error. Check the error message and try your request 272// again. 273// 274// * ConflictException 275// There is already a resource with that name. 276// 277// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabulary 278func (c *TranscribeService) CreateVocabulary(input *CreateVocabularyInput) (*CreateVocabularyOutput, error) { 279 req, out := c.CreateVocabularyRequest(input) 280 return out, req.Send() 281} 282 283// CreateVocabularyWithContext is the same as CreateVocabulary with the addition of 284// the ability to pass a context and additional request options. 285// 286// See CreateVocabulary for details on how to use this API operation. 287// 288// The context must be non-nil and will be used for request cancellation. If 289// the context is nil a panic will occur. In the future the SDK may create 290// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 291// for more information on using Contexts. 292func (c *TranscribeService) CreateVocabularyWithContext(ctx aws.Context, input *CreateVocabularyInput, opts ...request.Option) (*CreateVocabularyOutput, error) { 293 req, out := c.CreateVocabularyRequest(input) 294 req.SetContext(ctx) 295 req.ApplyOptions(opts...) 296 return out, req.Send() 297} 298 299const opCreateVocabularyFilter = "CreateVocabularyFilter" 300 301// CreateVocabularyFilterRequest generates a "aws/request.Request" representing the 302// client's request for the CreateVocabularyFilter operation. The "output" return 303// value will be populated with the request's response once the request completes 304// successfully. 305// 306// Use "Send" method on the returned Request to send the API call to the service. 307// the "output" return value is not valid until after Send returns without error. 308// 309// See CreateVocabularyFilter for more information on using the CreateVocabularyFilter 310// API call, and error handling. 311// 312// This method is useful when you want to inject custom logic or configuration 313// into the SDK's request lifecycle. Such as custom headers, or retry logic. 314// 315// 316// // Example sending a request using the CreateVocabularyFilterRequest method. 317// req, resp := client.CreateVocabularyFilterRequest(params) 318// 319// err := req.Send() 320// if err == nil { // resp is now filled 321// fmt.Println(resp) 322// } 323// 324// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter 325func (c *TranscribeService) CreateVocabularyFilterRequest(input *CreateVocabularyFilterInput) (req *request.Request, output *CreateVocabularyFilterOutput) { 326 op := &request.Operation{ 327 Name: opCreateVocabularyFilter, 328 HTTPMethod: "POST", 329 HTTPPath: "/", 330 } 331 332 if input == nil { 333 input = &CreateVocabularyFilterInput{} 334 } 335 336 output = &CreateVocabularyFilterOutput{} 337 req = c.newRequest(op, input, output) 338 return 339} 340 341// CreateVocabularyFilter API operation for Amazon Transcribe Service. 342// 343// Creates a new vocabulary filter that you can use to filter words, such as 344// profane words, from the output of a transcription job. 345// 346// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 347// with awserr.Error's Code and Message methods to get detailed information about 348// the error. 349// 350// See the AWS API reference guide for Amazon Transcribe Service's 351// API operation CreateVocabularyFilter for usage and error information. 352// 353// Returned Error Types: 354// * BadRequestException 355// Your request didn't pass one or more validation tests. For example, if the 356// entity that you're trying to delete doesn't exist or if it is in a non-terminal 357// state (for example, it's "in progress"). See the exception Message field 358// for more information. 359// 360// * LimitExceededException 361// Either you have sent too many requests or your input file is too long. Wait 362// before you resend your request, or use a smaller file and resend the request. 363// 364// * InternalFailureException 365// There was an internal error. Check the error message and try your request 366// again. 367// 368// * ConflictException 369// There is already a resource with that name. 370// 371// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilter 372func (c *TranscribeService) CreateVocabularyFilter(input *CreateVocabularyFilterInput) (*CreateVocabularyFilterOutput, error) { 373 req, out := c.CreateVocabularyFilterRequest(input) 374 return out, req.Send() 375} 376 377// CreateVocabularyFilterWithContext is the same as CreateVocabularyFilter with the addition of 378// the ability to pass a context and additional request options. 379// 380// See CreateVocabularyFilter for details on how to use this API operation. 381// 382// The context must be non-nil and will be used for request cancellation. If 383// the context is nil a panic will occur. In the future the SDK may create 384// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 385// for more information on using Contexts. 386func (c *TranscribeService) CreateVocabularyFilterWithContext(ctx aws.Context, input *CreateVocabularyFilterInput, opts ...request.Option) (*CreateVocabularyFilterOutput, error) { 387 req, out := c.CreateVocabularyFilterRequest(input) 388 req.SetContext(ctx) 389 req.ApplyOptions(opts...) 390 return out, req.Send() 391} 392 393const opDeleteLanguageModel = "DeleteLanguageModel" 394 395// DeleteLanguageModelRequest generates a "aws/request.Request" representing the 396// client's request for the DeleteLanguageModel operation. The "output" return 397// value will be populated with the request's response once the request completes 398// successfully. 399// 400// Use "Send" method on the returned Request to send the API call to the service. 401// the "output" return value is not valid until after Send returns without error. 402// 403// See DeleteLanguageModel for more information on using the DeleteLanguageModel 404// API call, and error handling. 405// 406// This method is useful when you want to inject custom logic or configuration 407// into the SDK's request lifecycle. Such as custom headers, or retry logic. 408// 409// 410// // Example sending a request using the DeleteLanguageModelRequest method. 411// req, resp := client.DeleteLanguageModelRequest(params) 412// 413// err := req.Send() 414// if err == nil { // resp is now filled 415// fmt.Println(resp) 416// } 417// 418// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteLanguageModel 419func (c *TranscribeService) DeleteLanguageModelRequest(input *DeleteLanguageModelInput) (req *request.Request, output *DeleteLanguageModelOutput) { 420 op := &request.Operation{ 421 Name: opDeleteLanguageModel, 422 HTTPMethod: "POST", 423 HTTPPath: "/", 424 } 425 426 if input == nil { 427 input = &DeleteLanguageModelInput{} 428 } 429 430 output = &DeleteLanguageModelOutput{} 431 req = c.newRequest(op, input, output) 432 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 433 return 434} 435 436// DeleteLanguageModel API operation for Amazon Transcribe Service. 437// 438// Deletes a custom language model using its name. 439// 440// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 441// with awserr.Error's Code and Message methods to get detailed information about 442// the error. 443// 444// See the AWS API reference guide for Amazon Transcribe Service's 445// API operation DeleteLanguageModel for usage and error information. 446// 447// Returned Error Types: 448// * BadRequestException 449// Your request didn't pass one or more validation tests. For example, if the 450// entity that you're trying to delete doesn't exist or if it is in a non-terminal 451// state (for example, it's "in progress"). See the exception Message field 452// for more information. 453// 454// * LimitExceededException 455// Either you have sent too many requests or your input file is too long. Wait 456// before you resend your request, or use a smaller file and resend the request. 457// 458// * InternalFailureException 459// There was an internal error. Check the error message and try your request 460// again. 461// 462// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteLanguageModel 463func (c *TranscribeService) DeleteLanguageModel(input *DeleteLanguageModelInput) (*DeleteLanguageModelOutput, error) { 464 req, out := c.DeleteLanguageModelRequest(input) 465 return out, req.Send() 466} 467 468// DeleteLanguageModelWithContext is the same as DeleteLanguageModel with the addition of 469// the ability to pass a context and additional request options. 470// 471// See DeleteLanguageModel for details on how to use this API operation. 472// 473// The context must be non-nil and will be used for request cancellation. If 474// the context is nil a panic will occur. In the future the SDK may create 475// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 476// for more information on using Contexts. 477func (c *TranscribeService) DeleteLanguageModelWithContext(ctx aws.Context, input *DeleteLanguageModelInput, opts ...request.Option) (*DeleteLanguageModelOutput, error) { 478 req, out := c.DeleteLanguageModelRequest(input) 479 req.SetContext(ctx) 480 req.ApplyOptions(opts...) 481 return out, req.Send() 482} 483 484const opDeleteMedicalTranscriptionJob = "DeleteMedicalTranscriptionJob" 485 486// DeleteMedicalTranscriptionJobRequest generates a "aws/request.Request" representing the 487// client's request for the DeleteMedicalTranscriptionJob operation. The "output" return 488// value will be populated with the request's response once the request completes 489// successfully. 490// 491// Use "Send" method on the returned Request to send the API call to the service. 492// the "output" return value is not valid until after Send returns without error. 493// 494// See DeleteMedicalTranscriptionJob for more information on using the DeleteMedicalTranscriptionJob 495// API call, and error handling. 496// 497// This method is useful when you want to inject custom logic or configuration 498// into the SDK's request lifecycle. Such as custom headers, or retry logic. 499// 500// 501// // Example sending a request using the DeleteMedicalTranscriptionJobRequest method. 502// req, resp := client.DeleteMedicalTranscriptionJobRequest(params) 503// 504// err := req.Send() 505// if err == nil { // resp is now filled 506// fmt.Println(resp) 507// } 508// 509// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalTranscriptionJob 510func (c *TranscribeService) DeleteMedicalTranscriptionJobRequest(input *DeleteMedicalTranscriptionJobInput) (req *request.Request, output *DeleteMedicalTranscriptionJobOutput) { 511 op := &request.Operation{ 512 Name: opDeleteMedicalTranscriptionJob, 513 HTTPMethod: "POST", 514 HTTPPath: "/", 515 } 516 517 if input == nil { 518 input = &DeleteMedicalTranscriptionJobInput{} 519 } 520 521 output = &DeleteMedicalTranscriptionJobOutput{} 522 req = c.newRequest(op, input, output) 523 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 524 return 525} 526 527// DeleteMedicalTranscriptionJob API operation for Amazon Transcribe Service. 528// 529// Deletes a transcription job generated by Amazon Transcribe Medical and any 530// related information. 531// 532// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 533// with awserr.Error's Code and Message methods to get detailed information about 534// the error. 535// 536// See the AWS API reference guide for Amazon Transcribe Service's 537// API operation DeleteMedicalTranscriptionJob for usage and error information. 538// 539// Returned Error Types: 540// * LimitExceededException 541// Either you have sent too many requests or your input file is too long. Wait 542// before you resend your request, or use a smaller file and resend the request. 543// 544// * BadRequestException 545// Your request didn't pass one or more validation tests. For example, if the 546// entity that you're trying to delete doesn't exist or if it is in a non-terminal 547// state (for example, it's "in progress"). See the exception Message field 548// for more information. 549// 550// * InternalFailureException 551// There was an internal error. Check the error message and try your request 552// again. 553// 554// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalTranscriptionJob 555func (c *TranscribeService) DeleteMedicalTranscriptionJob(input *DeleteMedicalTranscriptionJobInput) (*DeleteMedicalTranscriptionJobOutput, error) { 556 req, out := c.DeleteMedicalTranscriptionJobRequest(input) 557 return out, req.Send() 558} 559 560// DeleteMedicalTranscriptionJobWithContext is the same as DeleteMedicalTranscriptionJob with the addition of 561// the ability to pass a context and additional request options. 562// 563// See DeleteMedicalTranscriptionJob for details on how to use this API operation. 564// 565// The context must be non-nil and will be used for request cancellation. If 566// the context is nil a panic will occur. In the future the SDK may create 567// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 568// for more information on using Contexts. 569func (c *TranscribeService) DeleteMedicalTranscriptionJobWithContext(ctx aws.Context, input *DeleteMedicalTranscriptionJobInput, opts ...request.Option) (*DeleteMedicalTranscriptionJobOutput, error) { 570 req, out := c.DeleteMedicalTranscriptionJobRequest(input) 571 req.SetContext(ctx) 572 req.ApplyOptions(opts...) 573 return out, req.Send() 574} 575 576const opDeleteMedicalVocabulary = "DeleteMedicalVocabulary" 577 578// DeleteMedicalVocabularyRequest generates a "aws/request.Request" representing the 579// client's request for the DeleteMedicalVocabulary operation. The "output" return 580// value will be populated with the request's response once the request completes 581// successfully. 582// 583// Use "Send" method on the returned Request to send the API call to the service. 584// the "output" return value is not valid until after Send returns without error. 585// 586// See DeleteMedicalVocabulary for more information on using the DeleteMedicalVocabulary 587// API call, and error handling. 588// 589// This method is useful when you want to inject custom logic or configuration 590// into the SDK's request lifecycle. Such as custom headers, or retry logic. 591// 592// 593// // Example sending a request using the DeleteMedicalVocabularyRequest method. 594// req, resp := client.DeleteMedicalVocabularyRequest(params) 595// 596// err := req.Send() 597// if err == nil { // resp is now filled 598// fmt.Println(resp) 599// } 600// 601// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabulary 602func (c *TranscribeService) DeleteMedicalVocabularyRequest(input *DeleteMedicalVocabularyInput) (req *request.Request, output *DeleteMedicalVocabularyOutput) { 603 op := &request.Operation{ 604 Name: opDeleteMedicalVocabulary, 605 HTTPMethod: "POST", 606 HTTPPath: "/", 607 } 608 609 if input == nil { 610 input = &DeleteMedicalVocabularyInput{} 611 } 612 613 output = &DeleteMedicalVocabularyOutput{} 614 req = c.newRequest(op, input, output) 615 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 616 return 617} 618 619// DeleteMedicalVocabulary API operation for Amazon Transcribe Service. 620// 621// Deletes a vocabulary from Amazon Transcribe Medical. 622// 623// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 624// with awserr.Error's Code and Message methods to get detailed information about 625// the error. 626// 627// See the AWS API reference guide for Amazon Transcribe Service's 628// API operation DeleteMedicalVocabulary for usage and error information. 629// 630// Returned Error Types: 631// * NotFoundException 632// We can't find the requested resource. Check the name and try your request 633// again. 634// 635// * LimitExceededException 636// Either you have sent too many requests or your input file is too long. Wait 637// before you resend your request, or use a smaller file and resend the request. 638// 639// * BadRequestException 640// Your request didn't pass one or more validation tests. For example, if the 641// entity that you're trying to delete doesn't exist or if it is in a non-terminal 642// state (for example, it's "in progress"). See the exception Message field 643// for more information. 644// 645// * InternalFailureException 646// There was an internal error. Check the error message and try your request 647// again. 648// 649// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabulary 650func (c *TranscribeService) DeleteMedicalVocabulary(input *DeleteMedicalVocabularyInput) (*DeleteMedicalVocabularyOutput, error) { 651 req, out := c.DeleteMedicalVocabularyRequest(input) 652 return out, req.Send() 653} 654 655// DeleteMedicalVocabularyWithContext is the same as DeleteMedicalVocabulary with the addition of 656// the ability to pass a context and additional request options. 657// 658// See DeleteMedicalVocabulary for details on how to use this API operation. 659// 660// The context must be non-nil and will be used for request cancellation. If 661// the context is nil a panic will occur. In the future the SDK may create 662// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 663// for more information on using Contexts. 664func (c *TranscribeService) DeleteMedicalVocabularyWithContext(ctx aws.Context, input *DeleteMedicalVocabularyInput, opts ...request.Option) (*DeleteMedicalVocabularyOutput, error) { 665 req, out := c.DeleteMedicalVocabularyRequest(input) 666 req.SetContext(ctx) 667 req.ApplyOptions(opts...) 668 return out, req.Send() 669} 670 671const opDeleteTranscriptionJob = "DeleteTranscriptionJob" 672 673// DeleteTranscriptionJobRequest generates a "aws/request.Request" representing the 674// client's request for the DeleteTranscriptionJob operation. The "output" return 675// value will be populated with the request's response once the request completes 676// successfully. 677// 678// Use "Send" method on the returned Request to send the API call to the service. 679// the "output" return value is not valid until after Send returns without error. 680// 681// See DeleteTranscriptionJob for more information on using the DeleteTranscriptionJob 682// API call, and error handling. 683// 684// This method is useful when you want to inject custom logic or configuration 685// into the SDK's request lifecycle. Such as custom headers, or retry logic. 686// 687// 688// // Example sending a request using the DeleteTranscriptionJobRequest method. 689// req, resp := client.DeleteTranscriptionJobRequest(params) 690// 691// err := req.Send() 692// if err == nil { // resp is now filled 693// fmt.Println(resp) 694// } 695// 696// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob 697func (c *TranscribeService) DeleteTranscriptionJobRequest(input *DeleteTranscriptionJobInput) (req *request.Request, output *DeleteTranscriptionJobOutput) { 698 op := &request.Operation{ 699 Name: opDeleteTranscriptionJob, 700 HTTPMethod: "POST", 701 HTTPPath: "/", 702 } 703 704 if input == nil { 705 input = &DeleteTranscriptionJobInput{} 706 } 707 708 output = &DeleteTranscriptionJobOutput{} 709 req = c.newRequest(op, input, output) 710 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 711 return 712} 713 714// DeleteTranscriptionJob API operation for Amazon Transcribe Service. 715// 716// Deletes a previously submitted transcription job along with any other generated 717// results such as the transcription, models, and so on. 718// 719// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 720// with awserr.Error's Code and Message methods to get detailed information about 721// the error. 722// 723// See the AWS API reference guide for Amazon Transcribe Service's 724// API operation DeleteTranscriptionJob for usage and error information. 725// 726// Returned Error Types: 727// * LimitExceededException 728// Either you have sent too many requests or your input file is too long. Wait 729// before you resend your request, or use a smaller file and resend the request. 730// 731// * BadRequestException 732// Your request didn't pass one or more validation tests. For example, if the 733// entity that you're trying to delete doesn't exist or if it is in a non-terminal 734// state (for example, it's "in progress"). See the exception Message field 735// for more information. 736// 737// * InternalFailureException 738// There was an internal error. Check the error message and try your request 739// again. 740// 741// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob 742func (c *TranscribeService) DeleteTranscriptionJob(input *DeleteTranscriptionJobInput) (*DeleteTranscriptionJobOutput, error) { 743 req, out := c.DeleteTranscriptionJobRequest(input) 744 return out, req.Send() 745} 746 747// DeleteTranscriptionJobWithContext is the same as DeleteTranscriptionJob with the addition of 748// the ability to pass a context and additional request options. 749// 750// See DeleteTranscriptionJob for details on how to use this API operation. 751// 752// The context must be non-nil and will be used for request cancellation. If 753// the context is nil a panic will occur. In the future the SDK may create 754// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 755// for more information on using Contexts. 756func (c *TranscribeService) DeleteTranscriptionJobWithContext(ctx aws.Context, input *DeleteTranscriptionJobInput, opts ...request.Option) (*DeleteTranscriptionJobOutput, error) { 757 req, out := c.DeleteTranscriptionJobRequest(input) 758 req.SetContext(ctx) 759 req.ApplyOptions(opts...) 760 return out, req.Send() 761} 762 763const opDeleteVocabulary = "DeleteVocabulary" 764 765// DeleteVocabularyRequest generates a "aws/request.Request" representing the 766// client's request for the DeleteVocabulary operation. The "output" return 767// value will be populated with the request's response once the request completes 768// successfully. 769// 770// Use "Send" method on the returned Request to send the API call to the service. 771// the "output" return value is not valid until after Send returns without error. 772// 773// See DeleteVocabulary for more information on using the DeleteVocabulary 774// API call, and error handling. 775// 776// This method is useful when you want to inject custom logic or configuration 777// into the SDK's request lifecycle. Such as custom headers, or retry logic. 778// 779// 780// // Example sending a request using the DeleteVocabularyRequest method. 781// req, resp := client.DeleteVocabularyRequest(params) 782// 783// err := req.Send() 784// if err == nil { // resp is now filled 785// fmt.Println(resp) 786// } 787// 788// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabulary 789func (c *TranscribeService) DeleteVocabularyRequest(input *DeleteVocabularyInput) (req *request.Request, output *DeleteVocabularyOutput) { 790 op := &request.Operation{ 791 Name: opDeleteVocabulary, 792 HTTPMethod: "POST", 793 HTTPPath: "/", 794 } 795 796 if input == nil { 797 input = &DeleteVocabularyInput{} 798 } 799 800 output = &DeleteVocabularyOutput{} 801 req = c.newRequest(op, input, output) 802 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 803 return 804} 805 806// DeleteVocabulary API operation for Amazon Transcribe Service. 807// 808// Deletes a vocabulary from Amazon Transcribe. 809// 810// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 811// with awserr.Error's Code and Message methods to get detailed information about 812// the error. 813// 814// See the AWS API reference guide for Amazon Transcribe Service's 815// API operation DeleteVocabulary for usage and error information. 816// 817// Returned Error Types: 818// * NotFoundException 819// We can't find the requested resource. Check the name and try your request 820// again. 821// 822// * LimitExceededException 823// Either you have sent too many requests or your input file is too long. Wait 824// before you resend your request, or use a smaller file and resend the request. 825// 826// * BadRequestException 827// Your request didn't pass one or more validation tests. For example, if the 828// entity that you're trying to delete doesn't exist or if it is in a non-terminal 829// state (for example, it's "in progress"). See the exception Message field 830// for more information. 831// 832// * InternalFailureException 833// There was an internal error. Check the error message and try your request 834// again. 835// 836// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabulary 837func (c *TranscribeService) DeleteVocabulary(input *DeleteVocabularyInput) (*DeleteVocabularyOutput, error) { 838 req, out := c.DeleteVocabularyRequest(input) 839 return out, req.Send() 840} 841 842// DeleteVocabularyWithContext is the same as DeleteVocabulary with the addition of 843// the ability to pass a context and additional request options. 844// 845// See DeleteVocabulary for details on how to use this API operation. 846// 847// The context must be non-nil and will be used for request cancellation. If 848// the context is nil a panic will occur. In the future the SDK may create 849// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 850// for more information on using Contexts. 851func (c *TranscribeService) DeleteVocabularyWithContext(ctx aws.Context, input *DeleteVocabularyInput, opts ...request.Option) (*DeleteVocabularyOutput, error) { 852 req, out := c.DeleteVocabularyRequest(input) 853 req.SetContext(ctx) 854 req.ApplyOptions(opts...) 855 return out, req.Send() 856} 857 858const opDeleteVocabularyFilter = "DeleteVocabularyFilter" 859 860// DeleteVocabularyFilterRequest generates a "aws/request.Request" representing the 861// client's request for the DeleteVocabularyFilter operation. The "output" return 862// value will be populated with the request's response once the request completes 863// successfully. 864// 865// Use "Send" method on the returned Request to send the API call to the service. 866// the "output" return value is not valid until after Send returns without error. 867// 868// See DeleteVocabularyFilter for more information on using the DeleteVocabularyFilter 869// API call, and error handling. 870// 871// This method is useful when you want to inject custom logic or configuration 872// into the SDK's request lifecycle. Such as custom headers, or retry logic. 873// 874// 875// // Example sending a request using the DeleteVocabularyFilterRequest method. 876// req, resp := client.DeleteVocabularyFilterRequest(params) 877// 878// err := req.Send() 879// if err == nil { // resp is now filled 880// fmt.Println(resp) 881// } 882// 883// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabularyFilter 884func (c *TranscribeService) DeleteVocabularyFilterRequest(input *DeleteVocabularyFilterInput) (req *request.Request, output *DeleteVocabularyFilterOutput) { 885 op := &request.Operation{ 886 Name: opDeleteVocabularyFilter, 887 HTTPMethod: "POST", 888 HTTPPath: "/", 889 } 890 891 if input == nil { 892 input = &DeleteVocabularyFilterInput{} 893 } 894 895 output = &DeleteVocabularyFilterOutput{} 896 req = c.newRequest(op, input, output) 897 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 898 return 899} 900 901// DeleteVocabularyFilter API operation for Amazon Transcribe Service. 902// 903// Removes a vocabulary filter. 904// 905// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 906// with awserr.Error's Code and Message methods to get detailed information about 907// the error. 908// 909// See the AWS API reference guide for Amazon Transcribe Service's 910// API operation DeleteVocabularyFilter for usage and error information. 911// 912// Returned Error Types: 913// * NotFoundException 914// We can't find the requested resource. Check the name and try your request 915// again. 916// 917// * LimitExceededException 918// Either you have sent too many requests or your input file is too long. Wait 919// before you resend your request, or use a smaller file and resend the request. 920// 921// * BadRequestException 922// Your request didn't pass one or more validation tests. For example, if the 923// entity that you're trying to delete doesn't exist or if it is in a non-terminal 924// state (for example, it's "in progress"). See the exception Message field 925// for more information. 926// 927// * InternalFailureException 928// There was an internal error. Check the error message and try your request 929// again. 930// 931// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteVocabularyFilter 932func (c *TranscribeService) DeleteVocabularyFilter(input *DeleteVocabularyFilterInput) (*DeleteVocabularyFilterOutput, error) { 933 req, out := c.DeleteVocabularyFilterRequest(input) 934 return out, req.Send() 935} 936 937// DeleteVocabularyFilterWithContext is the same as DeleteVocabularyFilter with the addition of 938// the ability to pass a context and additional request options. 939// 940// See DeleteVocabularyFilter for details on how to use this API operation. 941// 942// The context must be non-nil and will be used for request cancellation. If 943// the context is nil a panic will occur. In the future the SDK may create 944// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 945// for more information on using Contexts. 946func (c *TranscribeService) DeleteVocabularyFilterWithContext(ctx aws.Context, input *DeleteVocabularyFilterInput, opts ...request.Option) (*DeleteVocabularyFilterOutput, error) { 947 req, out := c.DeleteVocabularyFilterRequest(input) 948 req.SetContext(ctx) 949 req.ApplyOptions(opts...) 950 return out, req.Send() 951} 952 953const opDescribeLanguageModel = "DescribeLanguageModel" 954 955// DescribeLanguageModelRequest generates a "aws/request.Request" representing the 956// client's request for the DescribeLanguageModel operation. The "output" return 957// value will be populated with the request's response once the request completes 958// successfully. 959// 960// Use "Send" method on the returned Request to send the API call to the service. 961// the "output" return value is not valid until after Send returns without error. 962// 963// See DescribeLanguageModel for more information on using the DescribeLanguageModel 964// API call, and error handling. 965// 966// This method is useful when you want to inject custom logic or configuration 967// into the SDK's request lifecycle. Such as custom headers, or retry logic. 968// 969// 970// // Example sending a request using the DescribeLanguageModelRequest method. 971// req, resp := client.DescribeLanguageModelRequest(params) 972// 973// err := req.Send() 974// if err == nil { // resp is now filled 975// fmt.Println(resp) 976// } 977// 978// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModel 979func (c *TranscribeService) DescribeLanguageModelRequest(input *DescribeLanguageModelInput) (req *request.Request, output *DescribeLanguageModelOutput) { 980 op := &request.Operation{ 981 Name: opDescribeLanguageModel, 982 HTTPMethod: "POST", 983 HTTPPath: "/", 984 } 985 986 if input == nil { 987 input = &DescribeLanguageModelInput{} 988 } 989 990 output = &DescribeLanguageModelOutput{} 991 req = c.newRequest(op, input, output) 992 return 993} 994 995// DescribeLanguageModel API operation for Amazon Transcribe Service. 996// 997// Gets information about a single custom language model. Use this information 998// to see details about the language model in your AWS account. You can also 999// see whether the base language model used to create your custom language model 1000// has been updated. If Amazon Transcribe has updated the base model, you can 1001// create a new custom language model using the updated base model. If the language 1002// model wasn't created, you can use this operation to understand why Amazon 1003// Transcribe couldn't create it. 1004// 1005// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1006// with awserr.Error's Code and Message methods to get detailed information about 1007// the error. 1008// 1009// See the AWS API reference guide for Amazon Transcribe Service's 1010// API operation DescribeLanguageModel for usage and error information. 1011// 1012// Returned Error Types: 1013// * BadRequestException 1014// Your request didn't pass one or more validation tests. For example, if the 1015// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1016// state (for example, it's "in progress"). See the exception Message field 1017// for more information. 1018// 1019// * LimitExceededException 1020// Either you have sent too many requests or your input file is too long. Wait 1021// before you resend your request, or use a smaller file and resend the request. 1022// 1023// * InternalFailureException 1024// There was an internal error. Check the error message and try your request 1025// again. 1026// 1027// * NotFoundException 1028// We can't find the requested resource. Check the name and try your request 1029// again. 1030// 1031// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModel 1032func (c *TranscribeService) DescribeLanguageModel(input *DescribeLanguageModelInput) (*DescribeLanguageModelOutput, error) { 1033 req, out := c.DescribeLanguageModelRequest(input) 1034 return out, req.Send() 1035} 1036 1037// DescribeLanguageModelWithContext is the same as DescribeLanguageModel with the addition of 1038// the ability to pass a context and additional request options. 1039// 1040// See DescribeLanguageModel for details on how to use this API operation. 1041// 1042// The context must be non-nil and will be used for request cancellation. If 1043// the context is nil a panic will occur. In the future the SDK may create 1044// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1045// for more information on using Contexts. 1046func (c *TranscribeService) DescribeLanguageModelWithContext(ctx aws.Context, input *DescribeLanguageModelInput, opts ...request.Option) (*DescribeLanguageModelOutput, error) { 1047 req, out := c.DescribeLanguageModelRequest(input) 1048 req.SetContext(ctx) 1049 req.ApplyOptions(opts...) 1050 return out, req.Send() 1051} 1052 1053const opGetMedicalTranscriptionJob = "GetMedicalTranscriptionJob" 1054 1055// GetMedicalTranscriptionJobRequest generates a "aws/request.Request" representing the 1056// client's request for the GetMedicalTranscriptionJob operation. The "output" return 1057// value will be populated with the request's response once the request completes 1058// successfully. 1059// 1060// Use "Send" method on the returned Request to send the API call to the service. 1061// the "output" return value is not valid until after Send returns without error. 1062// 1063// See GetMedicalTranscriptionJob for more information on using the GetMedicalTranscriptionJob 1064// API call, and error handling. 1065// 1066// This method is useful when you want to inject custom logic or configuration 1067// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1068// 1069// 1070// // Example sending a request using the GetMedicalTranscriptionJobRequest method. 1071// req, resp := client.GetMedicalTranscriptionJobRequest(params) 1072// 1073// err := req.Send() 1074// if err == nil { // resp is now filled 1075// fmt.Println(resp) 1076// } 1077// 1078// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalTranscriptionJob 1079func (c *TranscribeService) GetMedicalTranscriptionJobRequest(input *GetMedicalTranscriptionJobInput) (req *request.Request, output *GetMedicalTranscriptionJobOutput) { 1080 op := &request.Operation{ 1081 Name: opGetMedicalTranscriptionJob, 1082 HTTPMethod: "POST", 1083 HTTPPath: "/", 1084 } 1085 1086 if input == nil { 1087 input = &GetMedicalTranscriptionJobInput{} 1088 } 1089 1090 output = &GetMedicalTranscriptionJobOutput{} 1091 req = c.newRequest(op, input, output) 1092 return 1093} 1094 1095// GetMedicalTranscriptionJob API operation for Amazon Transcribe Service. 1096// 1097// Returns information about a transcription job from Amazon Transcribe Medical. 1098// To see the status of the job, check the TranscriptionJobStatus field. If 1099// the status is COMPLETED, the job is finished. You find the results of the 1100// completed job in the TranscriptFileUri field. 1101// 1102// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1103// with awserr.Error's Code and Message methods to get detailed information about 1104// the error. 1105// 1106// See the AWS API reference guide for Amazon Transcribe Service's 1107// API operation GetMedicalTranscriptionJob for usage and error information. 1108// 1109// Returned Error Types: 1110// * BadRequestException 1111// Your request didn't pass one or more validation tests. For example, if the 1112// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1113// state (for example, it's "in progress"). See the exception Message field 1114// for more information. 1115// 1116// * LimitExceededException 1117// Either you have sent too many requests or your input file is too long. Wait 1118// before you resend your request, or use a smaller file and resend the request. 1119// 1120// * InternalFailureException 1121// There was an internal error. Check the error message and try your request 1122// again. 1123// 1124// * NotFoundException 1125// We can't find the requested resource. Check the name and try your request 1126// again. 1127// 1128// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalTranscriptionJob 1129func (c *TranscribeService) GetMedicalTranscriptionJob(input *GetMedicalTranscriptionJobInput) (*GetMedicalTranscriptionJobOutput, error) { 1130 req, out := c.GetMedicalTranscriptionJobRequest(input) 1131 return out, req.Send() 1132} 1133 1134// GetMedicalTranscriptionJobWithContext is the same as GetMedicalTranscriptionJob with the addition of 1135// the ability to pass a context and additional request options. 1136// 1137// See GetMedicalTranscriptionJob for details on how to use this API operation. 1138// 1139// The context must be non-nil and will be used for request cancellation. If 1140// the context is nil a panic will occur. In the future the SDK may create 1141// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1142// for more information on using Contexts. 1143func (c *TranscribeService) GetMedicalTranscriptionJobWithContext(ctx aws.Context, input *GetMedicalTranscriptionJobInput, opts ...request.Option) (*GetMedicalTranscriptionJobOutput, error) { 1144 req, out := c.GetMedicalTranscriptionJobRequest(input) 1145 req.SetContext(ctx) 1146 req.ApplyOptions(opts...) 1147 return out, req.Send() 1148} 1149 1150const opGetMedicalVocabulary = "GetMedicalVocabulary" 1151 1152// GetMedicalVocabularyRequest generates a "aws/request.Request" representing the 1153// client's request for the GetMedicalVocabulary operation. The "output" return 1154// value will be populated with the request's response once the request completes 1155// successfully. 1156// 1157// Use "Send" method on the returned Request to send the API call to the service. 1158// the "output" return value is not valid until after Send returns without error. 1159// 1160// See GetMedicalVocabulary for more information on using the GetMedicalVocabulary 1161// API call, and error handling. 1162// 1163// This method is useful when you want to inject custom logic or configuration 1164// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1165// 1166// 1167// // Example sending a request using the GetMedicalVocabularyRequest method. 1168// req, resp := client.GetMedicalVocabularyRequest(params) 1169// 1170// err := req.Send() 1171// if err == nil { // resp is now filled 1172// fmt.Println(resp) 1173// } 1174// 1175// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabulary 1176func (c *TranscribeService) GetMedicalVocabularyRequest(input *GetMedicalVocabularyInput) (req *request.Request, output *GetMedicalVocabularyOutput) { 1177 op := &request.Operation{ 1178 Name: opGetMedicalVocabulary, 1179 HTTPMethod: "POST", 1180 HTTPPath: "/", 1181 } 1182 1183 if input == nil { 1184 input = &GetMedicalVocabularyInput{} 1185 } 1186 1187 output = &GetMedicalVocabularyOutput{} 1188 req = c.newRequest(op, input, output) 1189 return 1190} 1191 1192// GetMedicalVocabulary API operation for Amazon Transcribe Service. 1193// 1194// Retrieves information about a medical vocabulary. 1195// 1196// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1197// with awserr.Error's Code and Message methods to get detailed information about 1198// the error. 1199// 1200// See the AWS API reference guide for Amazon Transcribe Service's 1201// API operation GetMedicalVocabulary for usage and error information. 1202// 1203// Returned Error Types: 1204// * NotFoundException 1205// We can't find the requested resource. Check the name and try your request 1206// again. 1207// 1208// * LimitExceededException 1209// Either you have sent too many requests or your input file is too long. Wait 1210// before you resend your request, or use a smaller file and resend the request. 1211// 1212// * InternalFailureException 1213// There was an internal error. Check the error message and try your request 1214// again. 1215// 1216// * BadRequestException 1217// Your request didn't pass one or more validation tests. For example, if the 1218// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1219// state (for example, it's "in progress"). See the exception Message field 1220// for more information. 1221// 1222// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabulary 1223func (c *TranscribeService) GetMedicalVocabulary(input *GetMedicalVocabularyInput) (*GetMedicalVocabularyOutput, error) { 1224 req, out := c.GetMedicalVocabularyRequest(input) 1225 return out, req.Send() 1226} 1227 1228// GetMedicalVocabularyWithContext is the same as GetMedicalVocabulary with the addition of 1229// the ability to pass a context and additional request options. 1230// 1231// See GetMedicalVocabulary for details on how to use this API operation. 1232// 1233// The context must be non-nil and will be used for request cancellation. If 1234// the context is nil a panic will occur. In the future the SDK may create 1235// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1236// for more information on using Contexts. 1237func (c *TranscribeService) GetMedicalVocabularyWithContext(ctx aws.Context, input *GetMedicalVocabularyInput, opts ...request.Option) (*GetMedicalVocabularyOutput, error) { 1238 req, out := c.GetMedicalVocabularyRequest(input) 1239 req.SetContext(ctx) 1240 req.ApplyOptions(opts...) 1241 return out, req.Send() 1242} 1243 1244const opGetTranscriptionJob = "GetTranscriptionJob" 1245 1246// GetTranscriptionJobRequest generates a "aws/request.Request" representing the 1247// client's request for the GetTranscriptionJob operation. The "output" return 1248// value will be populated with the request's response once the request completes 1249// successfully. 1250// 1251// Use "Send" method on the returned Request to send the API call to the service. 1252// the "output" return value is not valid until after Send returns without error. 1253// 1254// See GetTranscriptionJob for more information on using the GetTranscriptionJob 1255// API call, and error handling. 1256// 1257// This method is useful when you want to inject custom logic or configuration 1258// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1259// 1260// 1261// // Example sending a request using the GetTranscriptionJobRequest method. 1262// req, resp := client.GetTranscriptionJobRequest(params) 1263// 1264// err := req.Send() 1265// if err == nil { // resp is now filled 1266// fmt.Println(resp) 1267// } 1268// 1269// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob 1270func (c *TranscribeService) GetTranscriptionJobRequest(input *GetTranscriptionJobInput) (req *request.Request, output *GetTranscriptionJobOutput) { 1271 op := &request.Operation{ 1272 Name: opGetTranscriptionJob, 1273 HTTPMethod: "POST", 1274 HTTPPath: "/", 1275 } 1276 1277 if input == nil { 1278 input = &GetTranscriptionJobInput{} 1279 } 1280 1281 output = &GetTranscriptionJobOutput{} 1282 req = c.newRequest(op, input, output) 1283 return 1284} 1285 1286// GetTranscriptionJob API operation for Amazon Transcribe Service. 1287// 1288// Returns information about a transcription job. To see the status of the job, 1289// check the TranscriptionJobStatus field. If the status is COMPLETED, the job 1290// is finished and you can find the results at the location specified in the 1291// TranscriptFileUri field. If you enable content redaction, the redacted transcript 1292// appears in RedactedTranscriptFileUri. 1293// 1294// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1295// with awserr.Error's Code and Message methods to get detailed information about 1296// the error. 1297// 1298// See the AWS API reference guide for Amazon Transcribe Service's 1299// API operation GetTranscriptionJob for usage and error information. 1300// 1301// Returned Error Types: 1302// * BadRequestException 1303// Your request didn't pass one or more validation tests. For example, if the 1304// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1305// state (for example, it's "in progress"). See the exception Message field 1306// for more information. 1307// 1308// * LimitExceededException 1309// Either you have sent too many requests or your input file is too long. Wait 1310// before you resend your request, or use a smaller file and resend the request. 1311// 1312// * InternalFailureException 1313// There was an internal error. Check the error message and try your request 1314// again. 1315// 1316// * NotFoundException 1317// We can't find the requested resource. Check the name and try your request 1318// again. 1319// 1320// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob 1321func (c *TranscribeService) GetTranscriptionJob(input *GetTranscriptionJobInput) (*GetTranscriptionJobOutput, error) { 1322 req, out := c.GetTranscriptionJobRequest(input) 1323 return out, req.Send() 1324} 1325 1326// GetTranscriptionJobWithContext is the same as GetTranscriptionJob with the addition of 1327// the ability to pass a context and additional request options. 1328// 1329// See GetTranscriptionJob for details on how to use this API operation. 1330// 1331// The context must be non-nil and will be used for request cancellation. If 1332// the context is nil a panic will occur. In the future the SDK may create 1333// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1334// for more information on using Contexts. 1335func (c *TranscribeService) GetTranscriptionJobWithContext(ctx aws.Context, input *GetTranscriptionJobInput, opts ...request.Option) (*GetTranscriptionJobOutput, error) { 1336 req, out := c.GetTranscriptionJobRequest(input) 1337 req.SetContext(ctx) 1338 req.ApplyOptions(opts...) 1339 return out, req.Send() 1340} 1341 1342const opGetVocabulary = "GetVocabulary" 1343 1344// GetVocabularyRequest generates a "aws/request.Request" representing the 1345// client's request for the GetVocabulary operation. The "output" return 1346// value will be populated with the request's response once the request completes 1347// successfully. 1348// 1349// Use "Send" method on the returned Request to send the API call to the service. 1350// the "output" return value is not valid until after Send returns without error. 1351// 1352// See GetVocabulary for more information on using the GetVocabulary 1353// API call, and error handling. 1354// 1355// This method is useful when you want to inject custom logic or configuration 1356// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1357// 1358// 1359// // Example sending a request using the GetVocabularyRequest method. 1360// req, resp := client.GetVocabularyRequest(params) 1361// 1362// err := req.Send() 1363// if err == nil { // resp is now filled 1364// fmt.Println(resp) 1365// } 1366// 1367// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabulary 1368func (c *TranscribeService) GetVocabularyRequest(input *GetVocabularyInput) (req *request.Request, output *GetVocabularyOutput) { 1369 op := &request.Operation{ 1370 Name: opGetVocabulary, 1371 HTTPMethod: "POST", 1372 HTTPPath: "/", 1373 } 1374 1375 if input == nil { 1376 input = &GetVocabularyInput{} 1377 } 1378 1379 output = &GetVocabularyOutput{} 1380 req = c.newRequest(op, input, output) 1381 return 1382} 1383 1384// GetVocabulary API operation for Amazon Transcribe Service. 1385// 1386// Gets information about a vocabulary. 1387// 1388// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1389// with awserr.Error's Code and Message methods to get detailed information about 1390// the error. 1391// 1392// See the AWS API reference guide for Amazon Transcribe Service's 1393// API operation GetVocabulary for usage and error information. 1394// 1395// Returned Error Types: 1396// * NotFoundException 1397// We can't find the requested resource. Check the name and try your request 1398// again. 1399// 1400// * LimitExceededException 1401// Either you have sent too many requests or your input file is too long. Wait 1402// before you resend your request, or use a smaller file and resend the request. 1403// 1404// * InternalFailureException 1405// There was an internal error. Check the error message and try your request 1406// again. 1407// 1408// * BadRequestException 1409// Your request didn't pass one or more validation tests. For example, if the 1410// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1411// state (for example, it's "in progress"). See the exception Message field 1412// for more information. 1413// 1414// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabulary 1415func (c *TranscribeService) GetVocabulary(input *GetVocabularyInput) (*GetVocabularyOutput, error) { 1416 req, out := c.GetVocabularyRequest(input) 1417 return out, req.Send() 1418} 1419 1420// GetVocabularyWithContext is the same as GetVocabulary with the addition of 1421// the ability to pass a context and additional request options. 1422// 1423// See GetVocabulary for details on how to use this API operation. 1424// 1425// The context must be non-nil and will be used for request cancellation. If 1426// the context is nil a panic will occur. In the future the SDK may create 1427// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1428// for more information on using Contexts. 1429func (c *TranscribeService) GetVocabularyWithContext(ctx aws.Context, input *GetVocabularyInput, opts ...request.Option) (*GetVocabularyOutput, error) { 1430 req, out := c.GetVocabularyRequest(input) 1431 req.SetContext(ctx) 1432 req.ApplyOptions(opts...) 1433 return out, req.Send() 1434} 1435 1436const opGetVocabularyFilter = "GetVocabularyFilter" 1437 1438// GetVocabularyFilterRequest generates a "aws/request.Request" representing the 1439// client's request for the GetVocabularyFilter operation. The "output" return 1440// value will be populated with the request's response once the request completes 1441// successfully. 1442// 1443// Use "Send" method on the returned Request to send the API call to the service. 1444// the "output" return value is not valid until after Send returns without error. 1445// 1446// See GetVocabularyFilter for more information on using the GetVocabularyFilter 1447// API call, and error handling. 1448// 1449// This method is useful when you want to inject custom logic or configuration 1450// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1451// 1452// 1453// // Example sending a request using the GetVocabularyFilterRequest method. 1454// req, resp := client.GetVocabularyFilterRequest(params) 1455// 1456// err := req.Send() 1457// if err == nil { // resp is now filled 1458// fmt.Println(resp) 1459// } 1460// 1461// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyFilter 1462func (c *TranscribeService) GetVocabularyFilterRequest(input *GetVocabularyFilterInput) (req *request.Request, output *GetVocabularyFilterOutput) { 1463 op := &request.Operation{ 1464 Name: opGetVocabularyFilter, 1465 HTTPMethod: "POST", 1466 HTTPPath: "/", 1467 } 1468 1469 if input == nil { 1470 input = &GetVocabularyFilterInput{} 1471 } 1472 1473 output = &GetVocabularyFilterOutput{} 1474 req = c.newRequest(op, input, output) 1475 return 1476} 1477 1478// GetVocabularyFilter API operation for Amazon Transcribe Service. 1479// 1480// Returns information about a vocabulary filter. 1481// 1482// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1483// with awserr.Error's Code and Message methods to get detailed information about 1484// the error. 1485// 1486// See the AWS API reference guide for Amazon Transcribe Service's 1487// API operation GetVocabularyFilter for usage and error information. 1488// 1489// Returned Error Types: 1490// * NotFoundException 1491// We can't find the requested resource. Check the name and try your request 1492// again. 1493// 1494// * LimitExceededException 1495// Either you have sent too many requests or your input file is too long. Wait 1496// before you resend your request, or use a smaller file and resend the request. 1497// 1498// * InternalFailureException 1499// There was an internal error. Check the error message and try your request 1500// again. 1501// 1502// * BadRequestException 1503// Your request didn't pass one or more validation tests. For example, if the 1504// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1505// state (for example, it's "in progress"). See the exception Message field 1506// for more information. 1507// 1508// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyFilter 1509func (c *TranscribeService) GetVocabularyFilter(input *GetVocabularyFilterInput) (*GetVocabularyFilterOutput, error) { 1510 req, out := c.GetVocabularyFilterRequest(input) 1511 return out, req.Send() 1512} 1513 1514// GetVocabularyFilterWithContext is the same as GetVocabularyFilter with the addition of 1515// the ability to pass a context and additional request options. 1516// 1517// See GetVocabularyFilter for details on how to use this API operation. 1518// 1519// The context must be non-nil and will be used for request cancellation. If 1520// the context is nil a panic will occur. In the future the SDK may create 1521// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1522// for more information on using Contexts. 1523func (c *TranscribeService) GetVocabularyFilterWithContext(ctx aws.Context, input *GetVocabularyFilterInput, opts ...request.Option) (*GetVocabularyFilterOutput, error) { 1524 req, out := c.GetVocabularyFilterRequest(input) 1525 req.SetContext(ctx) 1526 req.ApplyOptions(opts...) 1527 return out, req.Send() 1528} 1529 1530const opListLanguageModels = "ListLanguageModels" 1531 1532// ListLanguageModelsRequest generates a "aws/request.Request" representing the 1533// client's request for the ListLanguageModels operation. The "output" return 1534// value will be populated with the request's response once the request completes 1535// successfully. 1536// 1537// Use "Send" method on the returned Request to send the API call to the service. 1538// the "output" return value is not valid until after Send returns without error. 1539// 1540// See ListLanguageModels for more information on using the ListLanguageModels 1541// API call, and error handling. 1542// 1543// This method is useful when you want to inject custom logic or configuration 1544// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1545// 1546// 1547// // Example sending a request using the ListLanguageModelsRequest method. 1548// req, resp := client.ListLanguageModelsRequest(params) 1549// 1550// err := req.Send() 1551// if err == nil { // resp is now filled 1552// fmt.Println(resp) 1553// } 1554// 1555// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModels 1556func (c *TranscribeService) ListLanguageModelsRequest(input *ListLanguageModelsInput) (req *request.Request, output *ListLanguageModelsOutput) { 1557 op := &request.Operation{ 1558 Name: opListLanguageModels, 1559 HTTPMethod: "POST", 1560 HTTPPath: "/", 1561 Paginator: &request.Paginator{ 1562 InputTokens: []string{"NextToken"}, 1563 OutputTokens: []string{"NextToken"}, 1564 LimitToken: "MaxResults", 1565 TruncationToken: "", 1566 }, 1567 } 1568 1569 if input == nil { 1570 input = &ListLanguageModelsInput{} 1571 } 1572 1573 output = &ListLanguageModelsOutput{} 1574 req = c.newRequest(op, input, output) 1575 return 1576} 1577 1578// ListLanguageModels API operation for Amazon Transcribe Service. 1579// 1580// Provides more information about the custom language models you've created. 1581// You can use the information in this list to find a specific custom language 1582// model. You can then use the operation to get more information about it. 1583// 1584// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1585// with awserr.Error's Code and Message methods to get detailed information about 1586// the error. 1587// 1588// See the AWS API reference guide for Amazon Transcribe Service's 1589// API operation ListLanguageModels for usage and error information. 1590// 1591// Returned Error Types: 1592// * BadRequestException 1593// Your request didn't pass one or more validation tests. For example, if the 1594// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1595// state (for example, it's "in progress"). See the exception Message field 1596// for more information. 1597// 1598// * LimitExceededException 1599// Either you have sent too many requests or your input file is too long. Wait 1600// before you resend your request, or use a smaller file and resend the request. 1601// 1602// * InternalFailureException 1603// There was an internal error. Check the error message and try your request 1604// again. 1605// 1606// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModels 1607func (c *TranscribeService) ListLanguageModels(input *ListLanguageModelsInput) (*ListLanguageModelsOutput, error) { 1608 req, out := c.ListLanguageModelsRequest(input) 1609 return out, req.Send() 1610} 1611 1612// ListLanguageModelsWithContext is the same as ListLanguageModels with the addition of 1613// the ability to pass a context and additional request options. 1614// 1615// See ListLanguageModels for details on how to use this API operation. 1616// 1617// The context must be non-nil and will be used for request cancellation. If 1618// the context is nil a panic will occur. In the future the SDK may create 1619// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1620// for more information on using Contexts. 1621func (c *TranscribeService) ListLanguageModelsWithContext(ctx aws.Context, input *ListLanguageModelsInput, opts ...request.Option) (*ListLanguageModelsOutput, error) { 1622 req, out := c.ListLanguageModelsRequest(input) 1623 req.SetContext(ctx) 1624 req.ApplyOptions(opts...) 1625 return out, req.Send() 1626} 1627 1628// ListLanguageModelsPages iterates over the pages of a ListLanguageModels operation, 1629// calling the "fn" function with the response data for each page. To stop 1630// iterating, return false from the fn function. 1631// 1632// See ListLanguageModels method for more information on how to use this operation. 1633// 1634// Note: This operation can generate multiple requests to a service. 1635// 1636// // Example iterating over at most 3 pages of a ListLanguageModels operation. 1637// pageNum := 0 1638// err := client.ListLanguageModelsPages(params, 1639// func(page *transcribeservice.ListLanguageModelsOutput, lastPage bool) bool { 1640// pageNum++ 1641// fmt.Println(page) 1642// return pageNum <= 3 1643// }) 1644// 1645func (c *TranscribeService) ListLanguageModelsPages(input *ListLanguageModelsInput, fn func(*ListLanguageModelsOutput, bool) bool) error { 1646 return c.ListLanguageModelsPagesWithContext(aws.BackgroundContext(), input, fn) 1647} 1648 1649// ListLanguageModelsPagesWithContext same as ListLanguageModelsPages except 1650// it takes a Context and allows setting request options on the pages. 1651// 1652// The context must be non-nil and will be used for request cancellation. If 1653// the context is nil a panic will occur. In the future the SDK may create 1654// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1655// for more information on using Contexts. 1656func (c *TranscribeService) ListLanguageModelsPagesWithContext(ctx aws.Context, input *ListLanguageModelsInput, fn func(*ListLanguageModelsOutput, bool) bool, opts ...request.Option) error { 1657 p := request.Pagination{ 1658 NewRequest: func() (*request.Request, error) { 1659 var inCpy *ListLanguageModelsInput 1660 if input != nil { 1661 tmp := *input 1662 inCpy = &tmp 1663 } 1664 req, _ := c.ListLanguageModelsRequest(inCpy) 1665 req.SetContext(ctx) 1666 req.ApplyOptions(opts...) 1667 return req, nil 1668 }, 1669 } 1670 1671 for p.Next() { 1672 if !fn(p.Page().(*ListLanguageModelsOutput), !p.HasNextPage()) { 1673 break 1674 } 1675 } 1676 1677 return p.Err() 1678} 1679 1680const opListMedicalTranscriptionJobs = "ListMedicalTranscriptionJobs" 1681 1682// ListMedicalTranscriptionJobsRequest generates a "aws/request.Request" representing the 1683// client's request for the ListMedicalTranscriptionJobs operation. The "output" return 1684// value will be populated with the request's response once the request completes 1685// successfully. 1686// 1687// Use "Send" method on the returned Request to send the API call to the service. 1688// the "output" return value is not valid until after Send returns without error. 1689// 1690// See ListMedicalTranscriptionJobs for more information on using the ListMedicalTranscriptionJobs 1691// API call, and error handling. 1692// 1693// This method is useful when you want to inject custom logic or configuration 1694// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1695// 1696// 1697// // Example sending a request using the ListMedicalTranscriptionJobsRequest method. 1698// req, resp := client.ListMedicalTranscriptionJobsRequest(params) 1699// 1700// err := req.Send() 1701// if err == nil { // resp is now filled 1702// fmt.Println(resp) 1703// } 1704// 1705// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalTranscriptionJobs 1706func (c *TranscribeService) ListMedicalTranscriptionJobsRequest(input *ListMedicalTranscriptionJobsInput) (req *request.Request, output *ListMedicalTranscriptionJobsOutput) { 1707 op := &request.Operation{ 1708 Name: opListMedicalTranscriptionJobs, 1709 HTTPMethod: "POST", 1710 HTTPPath: "/", 1711 Paginator: &request.Paginator{ 1712 InputTokens: []string{"NextToken"}, 1713 OutputTokens: []string{"NextToken"}, 1714 LimitToken: "MaxResults", 1715 TruncationToken: "", 1716 }, 1717 } 1718 1719 if input == nil { 1720 input = &ListMedicalTranscriptionJobsInput{} 1721 } 1722 1723 output = &ListMedicalTranscriptionJobsOutput{} 1724 req = c.newRequest(op, input, output) 1725 return 1726} 1727 1728// ListMedicalTranscriptionJobs API operation for Amazon Transcribe Service. 1729// 1730// Lists medical transcription jobs with a specified status or substring that 1731// matches their names. 1732// 1733// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1734// with awserr.Error's Code and Message methods to get detailed information about 1735// the error. 1736// 1737// See the AWS API reference guide for Amazon Transcribe Service's 1738// API operation ListMedicalTranscriptionJobs for usage and error information. 1739// 1740// Returned Error Types: 1741// * BadRequestException 1742// Your request didn't pass one or more validation tests. For example, if the 1743// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1744// state (for example, it's "in progress"). See the exception Message field 1745// for more information. 1746// 1747// * LimitExceededException 1748// Either you have sent too many requests or your input file is too long. Wait 1749// before you resend your request, or use a smaller file and resend the request. 1750// 1751// * InternalFailureException 1752// There was an internal error. Check the error message and try your request 1753// again. 1754// 1755// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalTranscriptionJobs 1756func (c *TranscribeService) ListMedicalTranscriptionJobs(input *ListMedicalTranscriptionJobsInput) (*ListMedicalTranscriptionJobsOutput, error) { 1757 req, out := c.ListMedicalTranscriptionJobsRequest(input) 1758 return out, req.Send() 1759} 1760 1761// ListMedicalTranscriptionJobsWithContext is the same as ListMedicalTranscriptionJobs with the addition of 1762// the ability to pass a context and additional request options. 1763// 1764// See ListMedicalTranscriptionJobs for details on how to use this API operation. 1765// 1766// The context must be non-nil and will be used for request cancellation. If 1767// the context is nil a panic will occur. In the future the SDK may create 1768// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1769// for more information on using Contexts. 1770func (c *TranscribeService) ListMedicalTranscriptionJobsWithContext(ctx aws.Context, input *ListMedicalTranscriptionJobsInput, opts ...request.Option) (*ListMedicalTranscriptionJobsOutput, error) { 1771 req, out := c.ListMedicalTranscriptionJobsRequest(input) 1772 req.SetContext(ctx) 1773 req.ApplyOptions(opts...) 1774 return out, req.Send() 1775} 1776 1777// ListMedicalTranscriptionJobsPages iterates over the pages of a ListMedicalTranscriptionJobs operation, 1778// calling the "fn" function with the response data for each page. To stop 1779// iterating, return false from the fn function. 1780// 1781// See ListMedicalTranscriptionJobs method for more information on how to use this operation. 1782// 1783// Note: This operation can generate multiple requests to a service. 1784// 1785// // Example iterating over at most 3 pages of a ListMedicalTranscriptionJobs operation. 1786// pageNum := 0 1787// err := client.ListMedicalTranscriptionJobsPages(params, 1788// func(page *transcribeservice.ListMedicalTranscriptionJobsOutput, lastPage bool) bool { 1789// pageNum++ 1790// fmt.Println(page) 1791// return pageNum <= 3 1792// }) 1793// 1794func (c *TranscribeService) ListMedicalTranscriptionJobsPages(input *ListMedicalTranscriptionJobsInput, fn func(*ListMedicalTranscriptionJobsOutput, bool) bool) error { 1795 return c.ListMedicalTranscriptionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 1796} 1797 1798// ListMedicalTranscriptionJobsPagesWithContext same as ListMedicalTranscriptionJobsPages except 1799// it takes a Context and allows setting request options on the pages. 1800// 1801// The context must be non-nil and will be used for request cancellation. If 1802// the context is nil a panic will occur. In the future the SDK may create 1803// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1804// for more information on using Contexts. 1805func (c *TranscribeService) ListMedicalTranscriptionJobsPagesWithContext(ctx aws.Context, input *ListMedicalTranscriptionJobsInput, fn func(*ListMedicalTranscriptionJobsOutput, bool) bool, opts ...request.Option) error { 1806 p := request.Pagination{ 1807 NewRequest: func() (*request.Request, error) { 1808 var inCpy *ListMedicalTranscriptionJobsInput 1809 if input != nil { 1810 tmp := *input 1811 inCpy = &tmp 1812 } 1813 req, _ := c.ListMedicalTranscriptionJobsRequest(inCpy) 1814 req.SetContext(ctx) 1815 req.ApplyOptions(opts...) 1816 return req, nil 1817 }, 1818 } 1819 1820 for p.Next() { 1821 if !fn(p.Page().(*ListMedicalTranscriptionJobsOutput), !p.HasNextPage()) { 1822 break 1823 } 1824 } 1825 1826 return p.Err() 1827} 1828 1829const opListMedicalVocabularies = "ListMedicalVocabularies" 1830 1831// ListMedicalVocabulariesRequest generates a "aws/request.Request" representing the 1832// client's request for the ListMedicalVocabularies operation. The "output" return 1833// value will be populated with the request's response once the request completes 1834// successfully. 1835// 1836// Use "Send" method on the returned Request to send the API call to the service. 1837// the "output" return value is not valid until after Send returns without error. 1838// 1839// See ListMedicalVocabularies for more information on using the ListMedicalVocabularies 1840// API call, and error handling. 1841// 1842// This method is useful when you want to inject custom logic or configuration 1843// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1844// 1845// 1846// // Example sending a request using the ListMedicalVocabulariesRequest method. 1847// req, resp := client.ListMedicalVocabulariesRequest(params) 1848// 1849// err := req.Send() 1850// if err == nil { // resp is now filled 1851// fmt.Println(resp) 1852// } 1853// 1854// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabularies 1855func (c *TranscribeService) ListMedicalVocabulariesRequest(input *ListMedicalVocabulariesInput) (req *request.Request, output *ListMedicalVocabulariesOutput) { 1856 op := &request.Operation{ 1857 Name: opListMedicalVocabularies, 1858 HTTPMethod: "POST", 1859 HTTPPath: "/", 1860 Paginator: &request.Paginator{ 1861 InputTokens: []string{"NextToken"}, 1862 OutputTokens: []string{"NextToken"}, 1863 LimitToken: "MaxResults", 1864 TruncationToken: "", 1865 }, 1866 } 1867 1868 if input == nil { 1869 input = &ListMedicalVocabulariesInput{} 1870 } 1871 1872 output = &ListMedicalVocabulariesOutput{} 1873 req = c.newRequest(op, input, output) 1874 return 1875} 1876 1877// ListMedicalVocabularies API operation for Amazon Transcribe Service. 1878// 1879// Returns a list of vocabularies that match the specified criteria. If you 1880// don't enter a value in any of the request parameters, returns the entire 1881// list of vocabularies. 1882// 1883// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1884// with awserr.Error's Code and Message methods to get detailed information about 1885// the error. 1886// 1887// See the AWS API reference guide for Amazon Transcribe Service's 1888// API operation ListMedicalVocabularies for usage and error information. 1889// 1890// Returned Error Types: 1891// * BadRequestException 1892// Your request didn't pass one or more validation tests. For example, if the 1893// entity that you're trying to delete doesn't exist or if it is in a non-terminal 1894// state (for example, it's "in progress"). See the exception Message field 1895// for more information. 1896// 1897// * LimitExceededException 1898// Either you have sent too many requests or your input file is too long. Wait 1899// before you resend your request, or use a smaller file and resend the request. 1900// 1901// * InternalFailureException 1902// There was an internal error. Check the error message and try your request 1903// again. 1904// 1905// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabularies 1906func (c *TranscribeService) ListMedicalVocabularies(input *ListMedicalVocabulariesInput) (*ListMedicalVocabulariesOutput, error) { 1907 req, out := c.ListMedicalVocabulariesRequest(input) 1908 return out, req.Send() 1909} 1910 1911// ListMedicalVocabulariesWithContext is the same as ListMedicalVocabularies with the addition of 1912// the ability to pass a context and additional request options. 1913// 1914// See ListMedicalVocabularies 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 *TranscribeService) ListMedicalVocabulariesWithContext(ctx aws.Context, input *ListMedicalVocabulariesInput, opts ...request.Option) (*ListMedicalVocabulariesOutput, error) { 1921 req, out := c.ListMedicalVocabulariesRequest(input) 1922 req.SetContext(ctx) 1923 req.ApplyOptions(opts...) 1924 return out, req.Send() 1925} 1926 1927// ListMedicalVocabulariesPages iterates over the pages of a ListMedicalVocabularies operation, 1928// calling the "fn" function with the response data for each page. To stop 1929// iterating, return false from the fn function. 1930// 1931// See ListMedicalVocabularies method for more information on how to use this operation. 1932// 1933// Note: This operation can generate multiple requests to a service. 1934// 1935// // Example iterating over at most 3 pages of a ListMedicalVocabularies operation. 1936// pageNum := 0 1937// err := client.ListMedicalVocabulariesPages(params, 1938// func(page *transcribeservice.ListMedicalVocabulariesOutput, lastPage bool) bool { 1939// pageNum++ 1940// fmt.Println(page) 1941// return pageNum <= 3 1942// }) 1943// 1944func (c *TranscribeService) ListMedicalVocabulariesPages(input *ListMedicalVocabulariesInput, fn func(*ListMedicalVocabulariesOutput, bool) bool) error { 1945 return c.ListMedicalVocabulariesPagesWithContext(aws.BackgroundContext(), input, fn) 1946} 1947 1948// ListMedicalVocabulariesPagesWithContext same as ListMedicalVocabulariesPages except 1949// it takes a Context and allows setting request options on the pages. 1950// 1951// The context must be non-nil and will be used for request cancellation. If 1952// the context is nil a panic will occur. In the future the SDK may create 1953// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1954// for more information on using Contexts. 1955func (c *TranscribeService) ListMedicalVocabulariesPagesWithContext(ctx aws.Context, input *ListMedicalVocabulariesInput, fn func(*ListMedicalVocabulariesOutput, bool) bool, opts ...request.Option) error { 1956 p := request.Pagination{ 1957 NewRequest: func() (*request.Request, error) { 1958 var inCpy *ListMedicalVocabulariesInput 1959 if input != nil { 1960 tmp := *input 1961 inCpy = &tmp 1962 } 1963 req, _ := c.ListMedicalVocabulariesRequest(inCpy) 1964 req.SetContext(ctx) 1965 req.ApplyOptions(opts...) 1966 return req, nil 1967 }, 1968 } 1969 1970 for p.Next() { 1971 if !fn(p.Page().(*ListMedicalVocabulariesOutput), !p.HasNextPage()) { 1972 break 1973 } 1974 } 1975 1976 return p.Err() 1977} 1978 1979const opListTranscriptionJobs = "ListTranscriptionJobs" 1980 1981// ListTranscriptionJobsRequest generates a "aws/request.Request" representing the 1982// client's request for the ListTranscriptionJobs operation. The "output" return 1983// value will be populated with the request's response once the request completes 1984// successfully. 1985// 1986// Use "Send" method on the returned Request to send the API call to the service. 1987// the "output" return value is not valid until after Send returns without error. 1988// 1989// See ListTranscriptionJobs for more information on using the ListTranscriptionJobs 1990// API call, and error handling. 1991// 1992// This method is useful when you want to inject custom logic or configuration 1993// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1994// 1995// 1996// // Example sending a request using the ListTranscriptionJobsRequest method. 1997// req, resp := client.ListTranscriptionJobsRequest(params) 1998// 1999// err := req.Send() 2000// if err == nil { // resp is now filled 2001// fmt.Println(resp) 2002// } 2003// 2004// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs 2005func (c *TranscribeService) ListTranscriptionJobsRequest(input *ListTranscriptionJobsInput) (req *request.Request, output *ListTranscriptionJobsOutput) { 2006 op := &request.Operation{ 2007 Name: opListTranscriptionJobs, 2008 HTTPMethod: "POST", 2009 HTTPPath: "/", 2010 Paginator: &request.Paginator{ 2011 InputTokens: []string{"NextToken"}, 2012 OutputTokens: []string{"NextToken"}, 2013 LimitToken: "MaxResults", 2014 TruncationToken: "", 2015 }, 2016 } 2017 2018 if input == nil { 2019 input = &ListTranscriptionJobsInput{} 2020 } 2021 2022 output = &ListTranscriptionJobsOutput{} 2023 req = c.newRequest(op, input, output) 2024 return 2025} 2026 2027// ListTranscriptionJobs API operation for Amazon Transcribe Service. 2028// 2029// Lists transcription jobs with the specified status. 2030// 2031// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2032// with awserr.Error's Code and Message methods to get detailed information about 2033// the error. 2034// 2035// See the AWS API reference guide for Amazon Transcribe Service's 2036// API operation ListTranscriptionJobs for usage and error information. 2037// 2038// Returned Error Types: 2039// * BadRequestException 2040// Your request didn't pass one or more validation tests. For example, if the 2041// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2042// state (for example, it's "in progress"). See the exception Message field 2043// for more information. 2044// 2045// * LimitExceededException 2046// Either you have sent too many requests or your input file is too long. Wait 2047// before you resend your request, or use a smaller file and resend the request. 2048// 2049// * InternalFailureException 2050// There was an internal error. Check the error message and try your request 2051// again. 2052// 2053// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTranscriptionJobs 2054func (c *TranscribeService) ListTranscriptionJobs(input *ListTranscriptionJobsInput) (*ListTranscriptionJobsOutput, error) { 2055 req, out := c.ListTranscriptionJobsRequest(input) 2056 return out, req.Send() 2057} 2058 2059// ListTranscriptionJobsWithContext is the same as ListTranscriptionJobs with the addition of 2060// the ability to pass a context and additional request options. 2061// 2062// See ListTranscriptionJobs for details on how to use this API operation. 2063// 2064// The context must be non-nil and will be used for request cancellation. If 2065// the context is nil a panic will occur. In the future the SDK may create 2066// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2067// for more information on using Contexts. 2068func (c *TranscribeService) ListTranscriptionJobsWithContext(ctx aws.Context, input *ListTranscriptionJobsInput, opts ...request.Option) (*ListTranscriptionJobsOutput, error) { 2069 req, out := c.ListTranscriptionJobsRequest(input) 2070 req.SetContext(ctx) 2071 req.ApplyOptions(opts...) 2072 return out, req.Send() 2073} 2074 2075// ListTranscriptionJobsPages iterates over the pages of a ListTranscriptionJobs operation, 2076// calling the "fn" function with the response data for each page. To stop 2077// iterating, return false from the fn function. 2078// 2079// See ListTranscriptionJobs method for more information on how to use this operation. 2080// 2081// Note: This operation can generate multiple requests to a service. 2082// 2083// // Example iterating over at most 3 pages of a ListTranscriptionJobs operation. 2084// pageNum := 0 2085// err := client.ListTranscriptionJobsPages(params, 2086// func(page *transcribeservice.ListTranscriptionJobsOutput, lastPage bool) bool { 2087// pageNum++ 2088// fmt.Println(page) 2089// return pageNum <= 3 2090// }) 2091// 2092func (c *TranscribeService) ListTranscriptionJobsPages(input *ListTranscriptionJobsInput, fn func(*ListTranscriptionJobsOutput, bool) bool) error { 2093 return c.ListTranscriptionJobsPagesWithContext(aws.BackgroundContext(), input, fn) 2094} 2095 2096// ListTranscriptionJobsPagesWithContext same as ListTranscriptionJobsPages except 2097// it takes a Context and allows setting request options on the pages. 2098// 2099// The context must be non-nil and will be used for request cancellation. If 2100// the context is nil a panic will occur. In the future the SDK may create 2101// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2102// for more information on using Contexts. 2103func (c *TranscribeService) ListTranscriptionJobsPagesWithContext(ctx aws.Context, input *ListTranscriptionJobsInput, fn func(*ListTranscriptionJobsOutput, bool) bool, opts ...request.Option) error { 2104 p := request.Pagination{ 2105 NewRequest: func() (*request.Request, error) { 2106 var inCpy *ListTranscriptionJobsInput 2107 if input != nil { 2108 tmp := *input 2109 inCpy = &tmp 2110 } 2111 req, _ := c.ListTranscriptionJobsRequest(inCpy) 2112 req.SetContext(ctx) 2113 req.ApplyOptions(opts...) 2114 return req, nil 2115 }, 2116 } 2117 2118 for p.Next() { 2119 if !fn(p.Page().(*ListTranscriptionJobsOutput), !p.HasNextPage()) { 2120 break 2121 } 2122 } 2123 2124 return p.Err() 2125} 2126 2127const opListVocabularies = "ListVocabularies" 2128 2129// ListVocabulariesRequest generates a "aws/request.Request" representing the 2130// client's request for the ListVocabularies operation. The "output" return 2131// value will be populated with the request's response once the request completes 2132// successfully. 2133// 2134// Use "Send" method on the returned Request to send the API call to the service. 2135// the "output" return value is not valid until after Send returns without error. 2136// 2137// See ListVocabularies for more information on using the ListVocabularies 2138// API call, and error handling. 2139// 2140// This method is useful when you want to inject custom logic or configuration 2141// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2142// 2143// 2144// // Example sending a request using the ListVocabulariesRequest method. 2145// req, resp := client.ListVocabulariesRequest(params) 2146// 2147// err := req.Send() 2148// if err == nil { // resp is now filled 2149// fmt.Println(resp) 2150// } 2151// 2152// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularies 2153func (c *TranscribeService) ListVocabulariesRequest(input *ListVocabulariesInput) (req *request.Request, output *ListVocabulariesOutput) { 2154 op := &request.Operation{ 2155 Name: opListVocabularies, 2156 HTTPMethod: "POST", 2157 HTTPPath: "/", 2158 Paginator: &request.Paginator{ 2159 InputTokens: []string{"NextToken"}, 2160 OutputTokens: []string{"NextToken"}, 2161 LimitToken: "MaxResults", 2162 TruncationToken: "", 2163 }, 2164 } 2165 2166 if input == nil { 2167 input = &ListVocabulariesInput{} 2168 } 2169 2170 output = &ListVocabulariesOutput{} 2171 req = c.newRequest(op, input, output) 2172 return 2173} 2174 2175// ListVocabularies API operation for Amazon Transcribe Service. 2176// 2177// Returns a list of vocabularies that match the specified criteria. If no criteria 2178// are specified, returns the entire list of vocabularies. 2179// 2180// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2181// with awserr.Error's Code and Message methods to get detailed information about 2182// the error. 2183// 2184// See the AWS API reference guide for Amazon Transcribe Service's 2185// API operation ListVocabularies for usage and error information. 2186// 2187// Returned Error Types: 2188// * BadRequestException 2189// Your request didn't pass one or more validation tests. For example, if the 2190// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2191// state (for example, it's "in progress"). See the exception Message field 2192// for more information. 2193// 2194// * LimitExceededException 2195// Either you have sent too many requests or your input file is too long. Wait 2196// before you resend your request, or use a smaller file and resend the request. 2197// 2198// * InternalFailureException 2199// There was an internal error. Check the error message and try your request 2200// again. 2201// 2202// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularies 2203func (c *TranscribeService) ListVocabularies(input *ListVocabulariesInput) (*ListVocabulariesOutput, error) { 2204 req, out := c.ListVocabulariesRequest(input) 2205 return out, req.Send() 2206} 2207 2208// ListVocabulariesWithContext is the same as ListVocabularies with the addition of 2209// the ability to pass a context and additional request options. 2210// 2211// See ListVocabularies for details on how to use this API operation. 2212// 2213// The context must be non-nil and will be used for request cancellation. If 2214// the context is nil a panic will occur. In the future the SDK may create 2215// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2216// for more information on using Contexts. 2217func (c *TranscribeService) ListVocabulariesWithContext(ctx aws.Context, input *ListVocabulariesInput, opts ...request.Option) (*ListVocabulariesOutput, error) { 2218 req, out := c.ListVocabulariesRequest(input) 2219 req.SetContext(ctx) 2220 req.ApplyOptions(opts...) 2221 return out, req.Send() 2222} 2223 2224// ListVocabulariesPages iterates over the pages of a ListVocabularies operation, 2225// calling the "fn" function with the response data for each page. To stop 2226// iterating, return false from the fn function. 2227// 2228// See ListVocabularies method for more information on how to use this operation. 2229// 2230// Note: This operation can generate multiple requests to a service. 2231// 2232// // Example iterating over at most 3 pages of a ListVocabularies operation. 2233// pageNum := 0 2234// err := client.ListVocabulariesPages(params, 2235// func(page *transcribeservice.ListVocabulariesOutput, lastPage bool) bool { 2236// pageNum++ 2237// fmt.Println(page) 2238// return pageNum <= 3 2239// }) 2240// 2241func (c *TranscribeService) ListVocabulariesPages(input *ListVocabulariesInput, fn func(*ListVocabulariesOutput, bool) bool) error { 2242 return c.ListVocabulariesPagesWithContext(aws.BackgroundContext(), input, fn) 2243} 2244 2245// ListVocabulariesPagesWithContext same as ListVocabulariesPages except 2246// it takes a Context and allows setting request options on the pages. 2247// 2248// The context must be non-nil and will be used for request cancellation. If 2249// the context is nil a panic will occur. In the future the SDK may create 2250// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2251// for more information on using Contexts. 2252func (c *TranscribeService) ListVocabulariesPagesWithContext(ctx aws.Context, input *ListVocabulariesInput, fn func(*ListVocabulariesOutput, bool) bool, opts ...request.Option) error { 2253 p := request.Pagination{ 2254 NewRequest: func() (*request.Request, error) { 2255 var inCpy *ListVocabulariesInput 2256 if input != nil { 2257 tmp := *input 2258 inCpy = &tmp 2259 } 2260 req, _ := c.ListVocabulariesRequest(inCpy) 2261 req.SetContext(ctx) 2262 req.ApplyOptions(opts...) 2263 return req, nil 2264 }, 2265 } 2266 2267 for p.Next() { 2268 if !fn(p.Page().(*ListVocabulariesOutput), !p.HasNextPage()) { 2269 break 2270 } 2271 } 2272 2273 return p.Err() 2274} 2275 2276const opListVocabularyFilters = "ListVocabularyFilters" 2277 2278// ListVocabularyFiltersRequest generates a "aws/request.Request" representing the 2279// client's request for the ListVocabularyFilters operation. The "output" return 2280// value will be populated with the request's response once the request completes 2281// successfully. 2282// 2283// Use "Send" method on the returned Request to send the API call to the service. 2284// the "output" return value is not valid until after Send returns without error. 2285// 2286// See ListVocabularyFilters for more information on using the ListVocabularyFilters 2287// API call, and error handling. 2288// 2289// This method is useful when you want to inject custom logic or configuration 2290// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2291// 2292// 2293// // Example sending a request using the ListVocabularyFiltersRequest method. 2294// req, resp := client.ListVocabularyFiltersRequest(params) 2295// 2296// err := req.Send() 2297// if err == nil { // resp is now filled 2298// fmt.Println(resp) 2299// } 2300// 2301// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters 2302func (c *TranscribeService) ListVocabularyFiltersRequest(input *ListVocabularyFiltersInput) (req *request.Request, output *ListVocabularyFiltersOutput) { 2303 op := &request.Operation{ 2304 Name: opListVocabularyFilters, 2305 HTTPMethod: "POST", 2306 HTTPPath: "/", 2307 Paginator: &request.Paginator{ 2308 InputTokens: []string{"NextToken"}, 2309 OutputTokens: []string{"NextToken"}, 2310 LimitToken: "MaxResults", 2311 TruncationToken: "", 2312 }, 2313 } 2314 2315 if input == nil { 2316 input = &ListVocabularyFiltersInput{} 2317 } 2318 2319 output = &ListVocabularyFiltersOutput{} 2320 req = c.newRequest(op, input, output) 2321 return 2322} 2323 2324// ListVocabularyFilters API operation for Amazon Transcribe Service. 2325// 2326// Gets information about vocabulary filters. 2327// 2328// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2329// with awserr.Error's Code and Message methods to get detailed information about 2330// the error. 2331// 2332// See the AWS API reference guide for Amazon Transcribe Service's 2333// API operation ListVocabularyFilters for usage and error information. 2334// 2335// Returned Error Types: 2336// * BadRequestException 2337// Your request didn't pass one or more validation tests. For example, if the 2338// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2339// state (for example, it's "in progress"). See the exception Message field 2340// for more information. 2341// 2342// * LimitExceededException 2343// Either you have sent too many requests or your input file is too long. Wait 2344// before you resend your request, or use a smaller file and resend the request. 2345// 2346// * InternalFailureException 2347// There was an internal error. Check the error message and try your request 2348// again. 2349// 2350// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabularyFilters 2351func (c *TranscribeService) ListVocabularyFilters(input *ListVocabularyFiltersInput) (*ListVocabularyFiltersOutput, error) { 2352 req, out := c.ListVocabularyFiltersRequest(input) 2353 return out, req.Send() 2354} 2355 2356// ListVocabularyFiltersWithContext is the same as ListVocabularyFilters with the addition of 2357// the ability to pass a context and additional request options. 2358// 2359// See ListVocabularyFilters for details on how to use this API operation. 2360// 2361// The context must be non-nil and will be used for request cancellation. If 2362// the context is nil a panic will occur. In the future the SDK may create 2363// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2364// for more information on using Contexts. 2365func (c *TranscribeService) ListVocabularyFiltersWithContext(ctx aws.Context, input *ListVocabularyFiltersInput, opts ...request.Option) (*ListVocabularyFiltersOutput, error) { 2366 req, out := c.ListVocabularyFiltersRequest(input) 2367 req.SetContext(ctx) 2368 req.ApplyOptions(opts...) 2369 return out, req.Send() 2370} 2371 2372// ListVocabularyFiltersPages iterates over the pages of a ListVocabularyFilters operation, 2373// calling the "fn" function with the response data for each page. To stop 2374// iterating, return false from the fn function. 2375// 2376// See ListVocabularyFilters method for more information on how to use this operation. 2377// 2378// Note: This operation can generate multiple requests to a service. 2379// 2380// // Example iterating over at most 3 pages of a ListVocabularyFilters operation. 2381// pageNum := 0 2382// err := client.ListVocabularyFiltersPages(params, 2383// func(page *transcribeservice.ListVocabularyFiltersOutput, lastPage bool) bool { 2384// pageNum++ 2385// fmt.Println(page) 2386// return pageNum <= 3 2387// }) 2388// 2389func (c *TranscribeService) ListVocabularyFiltersPages(input *ListVocabularyFiltersInput, fn func(*ListVocabularyFiltersOutput, bool) bool) error { 2390 return c.ListVocabularyFiltersPagesWithContext(aws.BackgroundContext(), input, fn) 2391} 2392 2393// ListVocabularyFiltersPagesWithContext same as ListVocabularyFiltersPages except 2394// it takes a Context and allows setting request options on the pages. 2395// 2396// The context must be non-nil and will be used for request cancellation. If 2397// the context is nil a panic will occur. In the future the SDK may create 2398// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2399// for more information on using Contexts. 2400func (c *TranscribeService) ListVocabularyFiltersPagesWithContext(ctx aws.Context, input *ListVocabularyFiltersInput, fn func(*ListVocabularyFiltersOutput, bool) bool, opts ...request.Option) error { 2401 p := request.Pagination{ 2402 NewRequest: func() (*request.Request, error) { 2403 var inCpy *ListVocabularyFiltersInput 2404 if input != nil { 2405 tmp := *input 2406 inCpy = &tmp 2407 } 2408 req, _ := c.ListVocabularyFiltersRequest(inCpy) 2409 req.SetContext(ctx) 2410 req.ApplyOptions(opts...) 2411 return req, nil 2412 }, 2413 } 2414 2415 for p.Next() { 2416 if !fn(p.Page().(*ListVocabularyFiltersOutput), !p.HasNextPage()) { 2417 break 2418 } 2419 } 2420 2421 return p.Err() 2422} 2423 2424const opStartMedicalTranscriptionJob = "StartMedicalTranscriptionJob" 2425 2426// StartMedicalTranscriptionJobRequest generates a "aws/request.Request" representing the 2427// client's request for the StartMedicalTranscriptionJob operation. The "output" return 2428// value will be populated with the request's response once the request completes 2429// successfully. 2430// 2431// Use "Send" method on the returned Request to send the API call to the service. 2432// the "output" return value is not valid until after Send returns without error. 2433// 2434// See StartMedicalTranscriptionJob for more information on using the StartMedicalTranscriptionJob 2435// API call, and error handling. 2436// 2437// This method is useful when you want to inject custom logic or configuration 2438// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2439// 2440// 2441// // Example sending a request using the StartMedicalTranscriptionJobRequest method. 2442// req, resp := client.StartMedicalTranscriptionJobRequest(params) 2443// 2444// err := req.Send() 2445// if err == nil { // resp is now filled 2446// fmt.Println(resp) 2447// } 2448// 2449// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartMedicalTranscriptionJob 2450func (c *TranscribeService) StartMedicalTranscriptionJobRequest(input *StartMedicalTranscriptionJobInput) (req *request.Request, output *StartMedicalTranscriptionJobOutput) { 2451 op := &request.Operation{ 2452 Name: opStartMedicalTranscriptionJob, 2453 HTTPMethod: "POST", 2454 HTTPPath: "/", 2455 } 2456 2457 if input == nil { 2458 input = &StartMedicalTranscriptionJobInput{} 2459 } 2460 2461 output = &StartMedicalTranscriptionJobOutput{} 2462 req = c.newRequest(op, input, output) 2463 return 2464} 2465 2466// StartMedicalTranscriptionJob API operation for Amazon Transcribe Service. 2467// 2468// Starts a batch job to transcribe medical speech to text. 2469// 2470// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2471// with awserr.Error's Code and Message methods to get detailed information about 2472// the error. 2473// 2474// See the AWS API reference guide for Amazon Transcribe Service's 2475// API operation StartMedicalTranscriptionJob for usage and error information. 2476// 2477// Returned Error Types: 2478// * BadRequestException 2479// Your request didn't pass one or more validation tests. For example, if the 2480// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2481// state (for example, it's "in progress"). See the exception Message field 2482// for more information. 2483// 2484// * LimitExceededException 2485// Either you have sent too many requests or your input file is too long. Wait 2486// before you resend your request, or use a smaller file and resend the request. 2487// 2488// * InternalFailureException 2489// There was an internal error. Check the error message and try your request 2490// again. 2491// 2492// * ConflictException 2493// There is already a resource with that name. 2494// 2495// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartMedicalTranscriptionJob 2496func (c *TranscribeService) StartMedicalTranscriptionJob(input *StartMedicalTranscriptionJobInput) (*StartMedicalTranscriptionJobOutput, error) { 2497 req, out := c.StartMedicalTranscriptionJobRequest(input) 2498 return out, req.Send() 2499} 2500 2501// StartMedicalTranscriptionJobWithContext is the same as StartMedicalTranscriptionJob with the addition of 2502// the ability to pass a context and additional request options. 2503// 2504// See StartMedicalTranscriptionJob for details on how to use this API operation. 2505// 2506// The context must be non-nil and will be used for request cancellation. If 2507// the context is nil a panic will occur. In the future the SDK may create 2508// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2509// for more information on using Contexts. 2510func (c *TranscribeService) StartMedicalTranscriptionJobWithContext(ctx aws.Context, input *StartMedicalTranscriptionJobInput, opts ...request.Option) (*StartMedicalTranscriptionJobOutput, error) { 2511 req, out := c.StartMedicalTranscriptionJobRequest(input) 2512 req.SetContext(ctx) 2513 req.ApplyOptions(opts...) 2514 return out, req.Send() 2515} 2516 2517const opStartTranscriptionJob = "StartTranscriptionJob" 2518 2519// StartTranscriptionJobRequest generates a "aws/request.Request" representing the 2520// client's request for the StartTranscriptionJob operation. The "output" return 2521// value will be populated with the request's response once the request completes 2522// successfully. 2523// 2524// Use "Send" method on the returned Request to send the API call to the service. 2525// the "output" return value is not valid until after Send returns without error. 2526// 2527// See StartTranscriptionJob for more information on using the StartTranscriptionJob 2528// API call, and error handling. 2529// 2530// This method is useful when you want to inject custom logic or configuration 2531// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2532// 2533// 2534// // Example sending a request using the StartTranscriptionJobRequest method. 2535// req, resp := client.StartTranscriptionJobRequest(params) 2536// 2537// err := req.Send() 2538// if err == nil { // resp is now filled 2539// fmt.Println(resp) 2540// } 2541// 2542// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob 2543func (c *TranscribeService) StartTranscriptionJobRequest(input *StartTranscriptionJobInput) (req *request.Request, output *StartTranscriptionJobOutput) { 2544 op := &request.Operation{ 2545 Name: opStartTranscriptionJob, 2546 HTTPMethod: "POST", 2547 HTTPPath: "/", 2548 } 2549 2550 if input == nil { 2551 input = &StartTranscriptionJobInput{} 2552 } 2553 2554 output = &StartTranscriptionJobOutput{} 2555 req = c.newRequest(op, input, output) 2556 return 2557} 2558 2559// StartTranscriptionJob API operation for Amazon Transcribe Service. 2560// 2561// Starts an asynchronous job to transcribe speech to text. 2562// 2563// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2564// with awserr.Error's Code and Message methods to get detailed information about 2565// the error. 2566// 2567// See the AWS API reference guide for Amazon Transcribe Service's 2568// API operation StartTranscriptionJob for usage and error information. 2569// 2570// Returned Error Types: 2571// * BadRequestException 2572// Your request didn't pass one or more validation tests. For example, if the 2573// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2574// state (for example, it's "in progress"). See the exception Message field 2575// for more information. 2576// 2577// * LimitExceededException 2578// Either you have sent too many requests or your input file is too long. Wait 2579// before you resend your request, or use a smaller file and resend the request. 2580// 2581// * InternalFailureException 2582// There was an internal error. Check the error message and try your request 2583// again. 2584// 2585// * ConflictException 2586// There is already a resource with that name. 2587// 2588// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartTranscriptionJob 2589func (c *TranscribeService) StartTranscriptionJob(input *StartTranscriptionJobInput) (*StartTranscriptionJobOutput, error) { 2590 req, out := c.StartTranscriptionJobRequest(input) 2591 return out, req.Send() 2592} 2593 2594// StartTranscriptionJobWithContext is the same as StartTranscriptionJob with the addition of 2595// the ability to pass a context and additional request options. 2596// 2597// See StartTranscriptionJob for details on how to use this API operation. 2598// 2599// The context must be non-nil and will be used for request cancellation. If 2600// the context is nil a panic will occur. In the future the SDK may create 2601// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2602// for more information on using Contexts. 2603func (c *TranscribeService) StartTranscriptionJobWithContext(ctx aws.Context, input *StartTranscriptionJobInput, opts ...request.Option) (*StartTranscriptionJobOutput, error) { 2604 req, out := c.StartTranscriptionJobRequest(input) 2605 req.SetContext(ctx) 2606 req.ApplyOptions(opts...) 2607 return out, req.Send() 2608} 2609 2610const opUpdateMedicalVocabulary = "UpdateMedicalVocabulary" 2611 2612// UpdateMedicalVocabularyRequest generates a "aws/request.Request" representing the 2613// client's request for the UpdateMedicalVocabulary operation. The "output" return 2614// value will be populated with the request's response once the request completes 2615// successfully. 2616// 2617// Use "Send" method on the returned Request to send the API call to the service. 2618// the "output" return value is not valid until after Send returns without error. 2619// 2620// See UpdateMedicalVocabulary for more information on using the UpdateMedicalVocabulary 2621// API call, and error handling. 2622// 2623// This method is useful when you want to inject custom logic or configuration 2624// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2625// 2626// 2627// // Example sending a request using the UpdateMedicalVocabularyRequest method. 2628// req, resp := client.UpdateMedicalVocabularyRequest(params) 2629// 2630// err := req.Send() 2631// if err == nil { // resp is now filled 2632// fmt.Println(resp) 2633// } 2634// 2635// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabulary 2636func (c *TranscribeService) UpdateMedicalVocabularyRequest(input *UpdateMedicalVocabularyInput) (req *request.Request, output *UpdateMedicalVocabularyOutput) { 2637 op := &request.Operation{ 2638 Name: opUpdateMedicalVocabulary, 2639 HTTPMethod: "POST", 2640 HTTPPath: "/", 2641 } 2642 2643 if input == nil { 2644 input = &UpdateMedicalVocabularyInput{} 2645 } 2646 2647 output = &UpdateMedicalVocabularyOutput{} 2648 req = c.newRequest(op, input, output) 2649 return 2650} 2651 2652// UpdateMedicalVocabulary API operation for Amazon Transcribe Service. 2653// 2654// Updates a vocabulary with new values that you provide in a different text 2655// file from the one you used to create the vocabulary. The UpdateMedicalVocabulary 2656// operation overwrites all of the existing information with the values that 2657// you provide in the request. 2658// 2659// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2660// with awserr.Error's Code and Message methods to get detailed information about 2661// the error. 2662// 2663// See the AWS API reference guide for Amazon Transcribe Service's 2664// API operation UpdateMedicalVocabulary for usage and error information. 2665// 2666// Returned Error Types: 2667// * BadRequestException 2668// Your request didn't pass one or more validation tests. For example, if the 2669// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2670// state (for example, it's "in progress"). See the exception Message field 2671// for more information. 2672// 2673// * LimitExceededException 2674// Either you have sent too many requests or your input file is too long. Wait 2675// before you resend your request, or use a smaller file and resend the request. 2676// 2677// * InternalFailureException 2678// There was an internal error. Check the error message and try your request 2679// again. 2680// 2681// * NotFoundException 2682// We can't find the requested resource. Check the name and try your request 2683// again. 2684// 2685// * ConflictException 2686// There is already a resource with that name. 2687// 2688// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabulary 2689func (c *TranscribeService) UpdateMedicalVocabulary(input *UpdateMedicalVocabularyInput) (*UpdateMedicalVocabularyOutput, error) { 2690 req, out := c.UpdateMedicalVocabularyRequest(input) 2691 return out, req.Send() 2692} 2693 2694// UpdateMedicalVocabularyWithContext is the same as UpdateMedicalVocabulary with the addition of 2695// the ability to pass a context and additional request options. 2696// 2697// See UpdateMedicalVocabulary for details on how to use this API operation. 2698// 2699// The context must be non-nil and will be used for request cancellation. If 2700// the context is nil a panic will occur. In the future the SDK may create 2701// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2702// for more information on using Contexts. 2703func (c *TranscribeService) UpdateMedicalVocabularyWithContext(ctx aws.Context, input *UpdateMedicalVocabularyInput, opts ...request.Option) (*UpdateMedicalVocabularyOutput, error) { 2704 req, out := c.UpdateMedicalVocabularyRequest(input) 2705 req.SetContext(ctx) 2706 req.ApplyOptions(opts...) 2707 return out, req.Send() 2708} 2709 2710const opUpdateVocabulary = "UpdateVocabulary" 2711 2712// UpdateVocabularyRequest generates a "aws/request.Request" representing the 2713// client's request for the UpdateVocabulary operation. The "output" return 2714// value will be populated with the request's response once the request completes 2715// successfully. 2716// 2717// Use "Send" method on the returned Request to send the API call to the service. 2718// the "output" return value is not valid until after Send returns without error. 2719// 2720// See UpdateVocabulary for more information on using the UpdateVocabulary 2721// API call, and error handling. 2722// 2723// This method is useful when you want to inject custom logic or configuration 2724// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2725// 2726// 2727// // Example sending a request using the UpdateVocabularyRequest method. 2728// req, resp := client.UpdateVocabularyRequest(params) 2729// 2730// err := req.Send() 2731// if err == nil { // resp is now filled 2732// fmt.Println(resp) 2733// } 2734// 2735// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabulary 2736func (c *TranscribeService) UpdateVocabularyRequest(input *UpdateVocabularyInput) (req *request.Request, output *UpdateVocabularyOutput) { 2737 op := &request.Operation{ 2738 Name: opUpdateVocabulary, 2739 HTTPMethod: "POST", 2740 HTTPPath: "/", 2741 } 2742 2743 if input == nil { 2744 input = &UpdateVocabularyInput{} 2745 } 2746 2747 output = &UpdateVocabularyOutput{} 2748 req = c.newRequest(op, input, output) 2749 return 2750} 2751 2752// UpdateVocabulary API operation for Amazon Transcribe Service. 2753// 2754// Updates an existing vocabulary with new values. The UpdateVocabulary operation 2755// overwrites all of the existing information with the values that you provide 2756// in the request. 2757// 2758// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2759// with awserr.Error's Code and Message methods to get detailed information about 2760// the error. 2761// 2762// See the AWS API reference guide for Amazon Transcribe Service's 2763// API operation UpdateVocabulary for usage and error information. 2764// 2765// Returned Error Types: 2766// * BadRequestException 2767// Your request didn't pass one or more validation tests. For example, if the 2768// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2769// state (for example, it's "in progress"). See the exception Message field 2770// for more information. 2771// 2772// * LimitExceededException 2773// Either you have sent too many requests or your input file is too long. Wait 2774// before you resend your request, or use a smaller file and resend the request. 2775// 2776// * InternalFailureException 2777// There was an internal error. Check the error message and try your request 2778// again. 2779// 2780// * NotFoundException 2781// We can't find the requested resource. Check the name and try your request 2782// again. 2783// 2784// * ConflictException 2785// There is already a resource with that name. 2786// 2787// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabulary 2788func (c *TranscribeService) UpdateVocabulary(input *UpdateVocabularyInput) (*UpdateVocabularyOutput, error) { 2789 req, out := c.UpdateVocabularyRequest(input) 2790 return out, req.Send() 2791} 2792 2793// UpdateVocabularyWithContext is the same as UpdateVocabulary with the addition of 2794// the ability to pass a context and additional request options. 2795// 2796// See UpdateVocabulary for details on how to use this API operation. 2797// 2798// The context must be non-nil and will be used for request cancellation. If 2799// the context is nil a panic will occur. In the future the SDK may create 2800// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2801// for more information on using Contexts. 2802func (c *TranscribeService) UpdateVocabularyWithContext(ctx aws.Context, input *UpdateVocabularyInput, opts ...request.Option) (*UpdateVocabularyOutput, error) { 2803 req, out := c.UpdateVocabularyRequest(input) 2804 req.SetContext(ctx) 2805 req.ApplyOptions(opts...) 2806 return out, req.Send() 2807} 2808 2809const opUpdateVocabularyFilter = "UpdateVocabularyFilter" 2810 2811// UpdateVocabularyFilterRequest generates a "aws/request.Request" representing the 2812// client's request for the UpdateVocabularyFilter operation. The "output" return 2813// value will be populated with the request's response once the request completes 2814// successfully. 2815// 2816// Use "Send" method on the returned Request to send the API call to the service. 2817// the "output" return value is not valid until after Send returns without error. 2818// 2819// See UpdateVocabularyFilter for more information on using the UpdateVocabularyFilter 2820// API call, and error handling. 2821// 2822// This method is useful when you want to inject custom logic or configuration 2823// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2824// 2825// 2826// // Example sending a request using the UpdateVocabularyFilterRequest method. 2827// req, resp := client.UpdateVocabularyFilterRequest(params) 2828// 2829// err := req.Send() 2830// if err == nil { // resp is now filled 2831// fmt.Println(resp) 2832// } 2833// 2834// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter 2835func (c *TranscribeService) UpdateVocabularyFilterRequest(input *UpdateVocabularyFilterInput) (req *request.Request, output *UpdateVocabularyFilterOutput) { 2836 op := &request.Operation{ 2837 Name: opUpdateVocabularyFilter, 2838 HTTPMethod: "POST", 2839 HTTPPath: "/", 2840 } 2841 2842 if input == nil { 2843 input = &UpdateVocabularyFilterInput{} 2844 } 2845 2846 output = &UpdateVocabularyFilterOutput{} 2847 req = c.newRequest(op, input, output) 2848 return 2849} 2850 2851// UpdateVocabularyFilter API operation for Amazon Transcribe Service. 2852// 2853// Updates a vocabulary filter with a new list of filtered words. 2854// 2855// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2856// with awserr.Error's Code and Message methods to get detailed information about 2857// the error. 2858// 2859// See the AWS API reference guide for Amazon Transcribe Service's 2860// API operation UpdateVocabularyFilter for usage and error information. 2861// 2862// Returned Error Types: 2863// * BadRequestException 2864// Your request didn't pass one or more validation tests. For example, if the 2865// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2866// state (for example, it's "in progress"). See the exception Message field 2867// for more information. 2868// 2869// * LimitExceededException 2870// Either you have sent too many requests or your input file is too long. Wait 2871// before you resend your request, or use a smaller file and resend the request. 2872// 2873// * InternalFailureException 2874// There was an internal error. Check the error message and try your request 2875// again. 2876// 2877// * NotFoundException 2878// We can't find the requested resource. Check the name and try your request 2879// again. 2880// 2881// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilter 2882func (c *TranscribeService) UpdateVocabularyFilter(input *UpdateVocabularyFilterInput) (*UpdateVocabularyFilterOutput, error) { 2883 req, out := c.UpdateVocabularyFilterRequest(input) 2884 return out, req.Send() 2885} 2886 2887// UpdateVocabularyFilterWithContext is the same as UpdateVocabularyFilter with the addition of 2888// the ability to pass a context and additional request options. 2889// 2890// See UpdateVocabularyFilter for details on how to use this API operation. 2891// 2892// The context must be non-nil and will be used for request cancellation. If 2893// the context is nil a panic will occur. In the future the SDK may create 2894// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2895// for more information on using Contexts. 2896func (c *TranscribeService) UpdateVocabularyFilterWithContext(ctx aws.Context, input *UpdateVocabularyFilterInput, opts ...request.Option) (*UpdateVocabularyFilterOutput, error) { 2897 req, out := c.UpdateVocabularyFilterRequest(input) 2898 req.SetContext(ctx) 2899 req.ApplyOptions(opts...) 2900 return out, req.Send() 2901} 2902 2903// Your request didn't pass one or more validation tests. For example, if the 2904// entity that you're trying to delete doesn't exist or if it is in a non-terminal 2905// state (for example, it's "in progress"). See the exception Message field 2906// for more information. 2907type BadRequestException struct { 2908 _ struct{} `type:"structure"` 2909 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2910 2911 Message_ *string `locationName:"Message" type:"string"` 2912} 2913 2914// String returns the string representation 2915func (s BadRequestException) String() string { 2916 return awsutil.Prettify(s) 2917} 2918 2919// GoString returns the string representation 2920func (s BadRequestException) GoString() string { 2921 return s.String() 2922} 2923 2924func newErrorBadRequestException(v protocol.ResponseMetadata) error { 2925 return &BadRequestException{ 2926 RespMetadata: v, 2927 } 2928} 2929 2930// Code returns the exception type name. 2931func (s *BadRequestException) Code() string { 2932 return "BadRequestException" 2933} 2934 2935// Message returns the exception's message. 2936func (s *BadRequestException) Message() string { 2937 if s.Message_ != nil { 2938 return *s.Message_ 2939 } 2940 return "" 2941} 2942 2943// OrigErr always returns nil, satisfies awserr.Error interface. 2944func (s *BadRequestException) OrigErr() error { 2945 return nil 2946} 2947 2948func (s *BadRequestException) Error() string { 2949 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2950} 2951 2952// Status code returns the HTTP status code for the request's response error. 2953func (s *BadRequestException) StatusCode() int { 2954 return s.RespMetadata.StatusCode 2955} 2956 2957// RequestID returns the service's response RequestID for request. 2958func (s *BadRequestException) RequestID() string { 2959 return s.RespMetadata.RequestID 2960} 2961 2962// There is already a resource with that name. 2963type ConflictException struct { 2964 _ struct{} `type:"structure"` 2965 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2966 2967 Message_ *string `locationName:"Message" type:"string"` 2968} 2969 2970// String returns the string representation 2971func (s ConflictException) String() string { 2972 return awsutil.Prettify(s) 2973} 2974 2975// GoString returns the string representation 2976func (s ConflictException) GoString() string { 2977 return s.String() 2978} 2979 2980func newErrorConflictException(v protocol.ResponseMetadata) error { 2981 return &ConflictException{ 2982 RespMetadata: v, 2983 } 2984} 2985 2986// Code returns the exception type name. 2987func (s *ConflictException) Code() string { 2988 return "ConflictException" 2989} 2990 2991// Message returns the exception's message. 2992func (s *ConflictException) Message() string { 2993 if s.Message_ != nil { 2994 return *s.Message_ 2995 } 2996 return "" 2997} 2998 2999// OrigErr always returns nil, satisfies awserr.Error interface. 3000func (s *ConflictException) OrigErr() error { 3001 return nil 3002} 3003 3004func (s *ConflictException) Error() string { 3005 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3006} 3007 3008// Status code returns the HTTP status code for the request's response error. 3009func (s *ConflictException) StatusCode() int { 3010 return s.RespMetadata.StatusCode 3011} 3012 3013// RequestID returns the service's response RequestID for request. 3014func (s *ConflictException) RequestID() string { 3015 return s.RespMetadata.RequestID 3016} 3017 3018// Settings for content redaction within a transcription job. 3019type ContentRedaction struct { 3020 _ struct{} `type:"structure"` 3021 3022 // The output transcript file stored in either the default S3 bucket or in a 3023 // bucket you specify. 3024 // 3025 // When you choose redacted Amazon Transcribe outputs only the redacted transcript. 3026 // 3027 // When you choose redacted_and_unredacted Amazon Transcribe outputs both the 3028 // redacted and unredacted transcripts. 3029 // 3030 // RedactionOutput is a required field 3031 RedactionOutput *string `type:"string" required:"true" enum:"RedactionOutput"` 3032 3033 // Request parameter that defines the entities to be redacted. The only accepted 3034 // value is PII. 3035 // 3036 // RedactionType is a required field 3037 RedactionType *string `type:"string" required:"true" enum:"RedactionType"` 3038} 3039 3040// String returns the string representation 3041func (s ContentRedaction) String() string { 3042 return awsutil.Prettify(s) 3043} 3044 3045// GoString returns the string representation 3046func (s ContentRedaction) GoString() string { 3047 return s.String() 3048} 3049 3050// Validate inspects the fields of the type to determine if they are valid. 3051func (s *ContentRedaction) Validate() error { 3052 invalidParams := request.ErrInvalidParams{Context: "ContentRedaction"} 3053 if s.RedactionOutput == nil { 3054 invalidParams.Add(request.NewErrParamRequired("RedactionOutput")) 3055 } 3056 if s.RedactionType == nil { 3057 invalidParams.Add(request.NewErrParamRequired("RedactionType")) 3058 } 3059 3060 if invalidParams.Len() > 0 { 3061 return invalidParams 3062 } 3063 return nil 3064} 3065 3066// SetRedactionOutput sets the RedactionOutput field's value. 3067func (s *ContentRedaction) SetRedactionOutput(v string) *ContentRedaction { 3068 s.RedactionOutput = &v 3069 return s 3070} 3071 3072// SetRedactionType sets the RedactionType field's value. 3073func (s *ContentRedaction) SetRedactionType(v string) *ContentRedaction { 3074 s.RedactionType = &v 3075 return s 3076} 3077 3078type CreateLanguageModelInput struct { 3079 _ struct{} `type:"structure"` 3080 3081 // The Amazon Transcribe standard language model, or base model used to create 3082 // your custom language model. 3083 // 3084 // If you want to use your custom language model to transcribe audio with a 3085 // sample rate of 16 kHz or greater, choose Wideband. 3086 // 3087 // If you want to use your custom language model to transcribe audio with a 3088 // sample rate that is less than 16 kHz, choose Narrowband. 3089 // 3090 // BaseModelName is a required field 3091 BaseModelName *string `type:"string" required:"true" enum:"BaseModelName"` 3092 3093 // Contains the data access role and the Amazon S3 prefixes to read the required 3094 // input files to create a custom language model. 3095 // 3096 // InputDataConfig is a required field 3097 InputDataConfig *InputDataConfig `type:"structure" required:"true"` 3098 3099 // The language of the input text you're using to train your custom language 3100 // model. 3101 // 3102 // LanguageCode is a required field 3103 LanguageCode *string `type:"string" required:"true" enum:"CLMLanguageCode"` 3104 3105 // The name you choose for your custom language model when you create it. 3106 // 3107 // ModelName is a required field 3108 ModelName *string `min:"1" type:"string" required:"true"` 3109} 3110 3111// String returns the string representation 3112func (s CreateLanguageModelInput) String() string { 3113 return awsutil.Prettify(s) 3114} 3115 3116// GoString returns the string representation 3117func (s CreateLanguageModelInput) GoString() string { 3118 return s.String() 3119} 3120 3121// Validate inspects the fields of the type to determine if they are valid. 3122func (s *CreateLanguageModelInput) Validate() error { 3123 invalidParams := request.ErrInvalidParams{Context: "CreateLanguageModelInput"} 3124 if s.BaseModelName == nil { 3125 invalidParams.Add(request.NewErrParamRequired("BaseModelName")) 3126 } 3127 if s.InputDataConfig == nil { 3128 invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) 3129 } 3130 if s.LanguageCode == nil { 3131 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 3132 } 3133 if s.ModelName == nil { 3134 invalidParams.Add(request.NewErrParamRequired("ModelName")) 3135 } 3136 if s.ModelName != nil && len(*s.ModelName) < 1 { 3137 invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) 3138 } 3139 if s.InputDataConfig != nil { 3140 if err := s.InputDataConfig.Validate(); err != nil { 3141 invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) 3142 } 3143 } 3144 3145 if invalidParams.Len() > 0 { 3146 return invalidParams 3147 } 3148 return nil 3149} 3150 3151// SetBaseModelName sets the BaseModelName field's value. 3152func (s *CreateLanguageModelInput) SetBaseModelName(v string) *CreateLanguageModelInput { 3153 s.BaseModelName = &v 3154 return s 3155} 3156 3157// SetInputDataConfig sets the InputDataConfig field's value. 3158func (s *CreateLanguageModelInput) SetInputDataConfig(v *InputDataConfig) *CreateLanguageModelInput { 3159 s.InputDataConfig = v 3160 return s 3161} 3162 3163// SetLanguageCode sets the LanguageCode field's value. 3164func (s *CreateLanguageModelInput) SetLanguageCode(v string) *CreateLanguageModelInput { 3165 s.LanguageCode = &v 3166 return s 3167} 3168 3169// SetModelName sets the ModelName field's value. 3170func (s *CreateLanguageModelInput) SetModelName(v string) *CreateLanguageModelInput { 3171 s.ModelName = &v 3172 return s 3173} 3174 3175type CreateLanguageModelOutput struct { 3176 _ struct{} `type:"structure"` 3177 3178 // The Amazon Transcribe standard language model, or base model you've used 3179 // to create a custom language model. 3180 BaseModelName *string `type:"string" enum:"BaseModelName"` 3181 3182 // The data access role and Amazon S3 prefixes you've chosen to create your 3183 // custom language model. 3184 InputDataConfig *InputDataConfig `type:"structure"` 3185 3186 // The language code of the text you've used to create a custom language model. 3187 LanguageCode *string `type:"string" enum:"CLMLanguageCode"` 3188 3189 // The name you've chosen for your custom language model. 3190 ModelName *string `min:"1" type:"string"` 3191 3192 // The status of the custom language model. When the status is COMPLETED the 3193 // model is ready to use. 3194 ModelStatus *string `type:"string" enum:"ModelStatus"` 3195} 3196 3197// String returns the string representation 3198func (s CreateLanguageModelOutput) String() string { 3199 return awsutil.Prettify(s) 3200} 3201 3202// GoString returns the string representation 3203func (s CreateLanguageModelOutput) GoString() string { 3204 return s.String() 3205} 3206 3207// SetBaseModelName sets the BaseModelName field's value. 3208func (s *CreateLanguageModelOutput) SetBaseModelName(v string) *CreateLanguageModelOutput { 3209 s.BaseModelName = &v 3210 return s 3211} 3212 3213// SetInputDataConfig sets the InputDataConfig field's value. 3214func (s *CreateLanguageModelOutput) SetInputDataConfig(v *InputDataConfig) *CreateLanguageModelOutput { 3215 s.InputDataConfig = v 3216 return s 3217} 3218 3219// SetLanguageCode sets the LanguageCode field's value. 3220func (s *CreateLanguageModelOutput) SetLanguageCode(v string) *CreateLanguageModelOutput { 3221 s.LanguageCode = &v 3222 return s 3223} 3224 3225// SetModelName sets the ModelName field's value. 3226func (s *CreateLanguageModelOutput) SetModelName(v string) *CreateLanguageModelOutput { 3227 s.ModelName = &v 3228 return s 3229} 3230 3231// SetModelStatus sets the ModelStatus field's value. 3232func (s *CreateLanguageModelOutput) SetModelStatus(v string) *CreateLanguageModelOutput { 3233 s.ModelStatus = &v 3234 return s 3235} 3236 3237type CreateMedicalVocabularyInput struct { 3238 _ struct{} `type:"structure"` 3239 3240 // The language code for the language used for the entries in your custom vocabulary. 3241 // The language code of your custom vocabulary must match the language code 3242 // of your transcription job. US English (en-US) is the only language code available 3243 // for Amazon Transcribe Medical. 3244 // 3245 // LanguageCode is a required field 3246 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 3247 3248 // The location in Amazon S3 of the text file you use to define your custom 3249 // vocabulary. The URI must be in the same AWS Region as the resource that you're 3250 // calling. Enter information about your VocabularyFileUri in the following 3251 // format: 3252 // 3253 // https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> 3254 // 3255 // The following is an example URI for a vocabulary file that is stored in Amazon 3256 // S3: 3257 // 3258 // https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt 3259 // 3260 // For more information about Amazon S3 object names, see Object Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys) 3261 // in the Amazon S3 Developer Guide. 3262 // 3263 // For more information about custom vocabularies, see Medical Custom Vocabularies 3264 // (http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary-med). 3265 // 3266 // VocabularyFileUri is a required field 3267 VocabularyFileUri *string `min:"1" type:"string" required:"true"` 3268 3269 // The name of the custom vocabulary. This case-sensitive name must be unique 3270 // within an AWS account. If you try to create a vocabulary with the same name 3271 // as a previous vocabulary, you get a ConflictException error. 3272 // 3273 // VocabularyName is a required field 3274 VocabularyName *string `min:"1" type:"string" required:"true"` 3275} 3276 3277// String returns the string representation 3278func (s CreateMedicalVocabularyInput) String() string { 3279 return awsutil.Prettify(s) 3280} 3281 3282// GoString returns the string representation 3283func (s CreateMedicalVocabularyInput) GoString() string { 3284 return s.String() 3285} 3286 3287// Validate inspects the fields of the type to determine if they are valid. 3288func (s *CreateMedicalVocabularyInput) Validate() error { 3289 invalidParams := request.ErrInvalidParams{Context: "CreateMedicalVocabularyInput"} 3290 if s.LanguageCode == nil { 3291 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 3292 } 3293 if s.VocabularyFileUri == nil { 3294 invalidParams.Add(request.NewErrParamRequired("VocabularyFileUri")) 3295 } 3296 if s.VocabularyFileUri != nil && len(*s.VocabularyFileUri) < 1 { 3297 invalidParams.Add(request.NewErrParamMinLen("VocabularyFileUri", 1)) 3298 } 3299 if s.VocabularyName == nil { 3300 invalidParams.Add(request.NewErrParamRequired("VocabularyName")) 3301 } 3302 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 3303 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 3304 } 3305 3306 if invalidParams.Len() > 0 { 3307 return invalidParams 3308 } 3309 return nil 3310} 3311 3312// SetLanguageCode sets the LanguageCode field's value. 3313func (s *CreateMedicalVocabularyInput) SetLanguageCode(v string) *CreateMedicalVocabularyInput { 3314 s.LanguageCode = &v 3315 return s 3316} 3317 3318// SetVocabularyFileUri sets the VocabularyFileUri field's value. 3319func (s *CreateMedicalVocabularyInput) SetVocabularyFileUri(v string) *CreateMedicalVocabularyInput { 3320 s.VocabularyFileUri = &v 3321 return s 3322} 3323 3324// SetVocabularyName sets the VocabularyName field's value. 3325func (s *CreateMedicalVocabularyInput) SetVocabularyName(v string) *CreateMedicalVocabularyInput { 3326 s.VocabularyName = &v 3327 return s 3328} 3329 3330type CreateMedicalVocabularyOutput struct { 3331 _ struct{} `type:"structure"` 3332 3333 // If the VocabularyState field is FAILED, this field contains information about 3334 // why the job failed. 3335 FailureReason *string `type:"string"` 3336 3337 // The language code for the entries in your custom vocabulary. US English (en-US) 3338 // is the only valid language code for Amazon Transcribe Medical. 3339 LanguageCode *string `type:"string" enum:"LanguageCode"` 3340 3341 // The date and time that you created the vocabulary. 3342 LastModifiedTime *time.Time `type:"timestamp"` 3343 3344 // The name of the vocabulary. The name must be unique within an AWS account 3345 // and is case sensitive. 3346 VocabularyName *string `min:"1" type:"string"` 3347 3348 // The processing state of your custom vocabulary in Amazon Transcribe Medical. 3349 // If the state is READY, you can use the vocabulary in a StartMedicalTranscriptionJob 3350 // request. 3351 VocabularyState *string `type:"string" enum:"VocabularyState"` 3352} 3353 3354// String returns the string representation 3355func (s CreateMedicalVocabularyOutput) String() string { 3356 return awsutil.Prettify(s) 3357} 3358 3359// GoString returns the string representation 3360func (s CreateMedicalVocabularyOutput) GoString() string { 3361 return s.String() 3362} 3363 3364// SetFailureReason sets the FailureReason field's value. 3365func (s *CreateMedicalVocabularyOutput) SetFailureReason(v string) *CreateMedicalVocabularyOutput { 3366 s.FailureReason = &v 3367 return s 3368} 3369 3370// SetLanguageCode sets the LanguageCode field's value. 3371func (s *CreateMedicalVocabularyOutput) SetLanguageCode(v string) *CreateMedicalVocabularyOutput { 3372 s.LanguageCode = &v 3373 return s 3374} 3375 3376// SetLastModifiedTime sets the LastModifiedTime field's value. 3377func (s *CreateMedicalVocabularyOutput) SetLastModifiedTime(v time.Time) *CreateMedicalVocabularyOutput { 3378 s.LastModifiedTime = &v 3379 return s 3380} 3381 3382// SetVocabularyName sets the VocabularyName field's value. 3383func (s *CreateMedicalVocabularyOutput) SetVocabularyName(v string) *CreateMedicalVocabularyOutput { 3384 s.VocabularyName = &v 3385 return s 3386} 3387 3388// SetVocabularyState sets the VocabularyState field's value. 3389func (s *CreateMedicalVocabularyOutput) SetVocabularyState(v string) *CreateMedicalVocabularyOutput { 3390 s.VocabularyState = &v 3391 return s 3392} 3393 3394type CreateVocabularyFilterInput struct { 3395 _ struct{} `type:"structure"` 3396 3397 // The language code of the words in the vocabulary filter. All words in the 3398 // filter must be in the same language. The vocabulary filter can only be used 3399 // with transcription jobs in the specified language. 3400 // 3401 // LanguageCode is a required field 3402 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 3403 3404 // The Amazon S3 location of a text file used as input to create the vocabulary 3405 // filter. Only use characters from the character set defined for custom vocabularies. 3406 // For a list of character sets, see Character Sets for Custom Vocabularies 3407 // (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). 3408 // 3409 // The specified file must be less than 50 KB of UTF-8 characters. 3410 // 3411 // If you provide the location of a list of words in the VocabularyFilterFileUri 3412 // parameter, you can't use the Words parameter. 3413 VocabularyFilterFileUri *string `min:"1" type:"string"` 3414 3415 // The vocabulary filter name. The name must be unique within the account that 3416 // contains it. If you try to create a vocabulary filter with the same name 3417 // as another vocabulary filter, you get a ConflictException error. 3418 // 3419 // VocabularyFilterName is a required field 3420 VocabularyFilterName *string `min:"1" type:"string" required:"true"` 3421 3422 // The words to use in the vocabulary filter. Only use characters from the character 3423 // set defined for custom vocabularies. For a list of character sets, see Character 3424 // Sets for Custom Vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). 3425 // 3426 // If you provide a list of words in the Words parameter, you can't use the 3427 // VocabularyFilterFileUri parameter. 3428 Words []*string `min:"1" type:"list"` 3429} 3430 3431// String returns the string representation 3432func (s CreateVocabularyFilterInput) String() string { 3433 return awsutil.Prettify(s) 3434} 3435 3436// GoString returns the string representation 3437func (s CreateVocabularyFilterInput) GoString() string { 3438 return s.String() 3439} 3440 3441// Validate inspects the fields of the type to determine if they are valid. 3442func (s *CreateVocabularyFilterInput) Validate() error { 3443 invalidParams := request.ErrInvalidParams{Context: "CreateVocabularyFilterInput"} 3444 if s.LanguageCode == nil { 3445 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 3446 } 3447 if s.VocabularyFilterFileUri != nil && len(*s.VocabularyFilterFileUri) < 1 { 3448 invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterFileUri", 1)) 3449 } 3450 if s.VocabularyFilterName == nil { 3451 invalidParams.Add(request.NewErrParamRequired("VocabularyFilterName")) 3452 } 3453 if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { 3454 invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) 3455 } 3456 if s.Words != nil && len(s.Words) < 1 { 3457 invalidParams.Add(request.NewErrParamMinLen("Words", 1)) 3458 } 3459 3460 if invalidParams.Len() > 0 { 3461 return invalidParams 3462 } 3463 return nil 3464} 3465 3466// SetLanguageCode sets the LanguageCode field's value. 3467func (s *CreateVocabularyFilterInput) SetLanguageCode(v string) *CreateVocabularyFilterInput { 3468 s.LanguageCode = &v 3469 return s 3470} 3471 3472// SetVocabularyFilterFileUri sets the VocabularyFilterFileUri field's value. 3473func (s *CreateVocabularyFilterInput) SetVocabularyFilterFileUri(v string) *CreateVocabularyFilterInput { 3474 s.VocabularyFilterFileUri = &v 3475 return s 3476} 3477 3478// SetVocabularyFilterName sets the VocabularyFilterName field's value. 3479func (s *CreateVocabularyFilterInput) SetVocabularyFilterName(v string) *CreateVocabularyFilterInput { 3480 s.VocabularyFilterName = &v 3481 return s 3482} 3483 3484// SetWords sets the Words field's value. 3485func (s *CreateVocabularyFilterInput) SetWords(v []*string) *CreateVocabularyFilterInput { 3486 s.Words = v 3487 return s 3488} 3489 3490type CreateVocabularyFilterOutput struct { 3491 _ struct{} `type:"structure"` 3492 3493 // The language code of the words in the collection. 3494 LanguageCode *string `type:"string" enum:"LanguageCode"` 3495 3496 // The date and time that the vocabulary filter was modified. 3497 LastModifiedTime *time.Time `type:"timestamp"` 3498 3499 // The name of the vocabulary filter. 3500 VocabularyFilterName *string `min:"1" type:"string"` 3501} 3502 3503// String returns the string representation 3504func (s CreateVocabularyFilterOutput) String() string { 3505 return awsutil.Prettify(s) 3506} 3507 3508// GoString returns the string representation 3509func (s CreateVocabularyFilterOutput) GoString() string { 3510 return s.String() 3511} 3512 3513// SetLanguageCode sets the LanguageCode field's value. 3514func (s *CreateVocabularyFilterOutput) SetLanguageCode(v string) *CreateVocabularyFilterOutput { 3515 s.LanguageCode = &v 3516 return s 3517} 3518 3519// SetLastModifiedTime sets the LastModifiedTime field's value. 3520func (s *CreateVocabularyFilterOutput) SetLastModifiedTime(v time.Time) *CreateVocabularyFilterOutput { 3521 s.LastModifiedTime = &v 3522 return s 3523} 3524 3525// SetVocabularyFilterName sets the VocabularyFilterName field's value. 3526func (s *CreateVocabularyFilterOutput) SetVocabularyFilterName(v string) *CreateVocabularyFilterOutput { 3527 s.VocabularyFilterName = &v 3528 return s 3529} 3530 3531type CreateVocabularyInput struct { 3532 _ struct{} `type:"structure"` 3533 3534 // The language code of the vocabulary entries. 3535 // 3536 // LanguageCode is a required field 3537 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 3538 3539 // An array of strings that contains the vocabulary entries. 3540 Phrases []*string `type:"list"` 3541 3542 // The S3 location of the text file that contains the definition of the custom 3543 // vocabulary. The URI must be in the same region as the API endpoint that you 3544 // are calling. The general form is 3545 // 3546 // For more information about S3 object names, see Object Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys) 3547 // in the Amazon S3 Developer Guide. 3548 // 3549 // For more information about custom vocabularies, see Custom Vocabularies (http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary). 3550 VocabularyFileUri *string `min:"1" type:"string"` 3551 3552 // The name of the vocabulary. The name must be unique within an AWS account. 3553 // The name is case sensitive. If you try to create a vocabulary with the same 3554 // name as a previous vocabulary you will receive a ConflictException error. 3555 // 3556 // VocabularyName is a required field 3557 VocabularyName *string `min:"1" type:"string" required:"true"` 3558} 3559 3560// String returns the string representation 3561func (s CreateVocabularyInput) String() string { 3562 return awsutil.Prettify(s) 3563} 3564 3565// GoString returns the string representation 3566func (s CreateVocabularyInput) GoString() string { 3567 return s.String() 3568} 3569 3570// Validate inspects the fields of the type to determine if they are valid. 3571func (s *CreateVocabularyInput) Validate() error { 3572 invalidParams := request.ErrInvalidParams{Context: "CreateVocabularyInput"} 3573 if s.LanguageCode == nil { 3574 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 3575 } 3576 if s.VocabularyFileUri != nil && len(*s.VocabularyFileUri) < 1 { 3577 invalidParams.Add(request.NewErrParamMinLen("VocabularyFileUri", 1)) 3578 } 3579 if s.VocabularyName == nil { 3580 invalidParams.Add(request.NewErrParamRequired("VocabularyName")) 3581 } 3582 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 3583 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 3584 } 3585 3586 if invalidParams.Len() > 0 { 3587 return invalidParams 3588 } 3589 return nil 3590} 3591 3592// SetLanguageCode sets the LanguageCode field's value. 3593func (s *CreateVocabularyInput) SetLanguageCode(v string) *CreateVocabularyInput { 3594 s.LanguageCode = &v 3595 return s 3596} 3597 3598// SetPhrases sets the Phrases field's value. 3599func (s *CreateVocabularyInput) SetPhrases(v []*string) *CreateVocabularyInput { 3600 s.Phrases = v 3601 return s 3602} 3603 3604// SetVocabularyFileUri sets the VocabularyFileUri field's value. 3605func (s *CreateVocabularyInput) SetVocabularyFileUri(v string) *CreateVocabularyInput { 3606 s.VocabularyFileUri = &v 3607 return s 3608} 3609 3610// SetVocabularyName sets the VocabularyName field's value. 3611func (s *CreateVocabularyInput) SetVocabularyName(v string) *CreateVocabularyInput { 3612 s.VocabularyName = &v 3613 return s 3614} 3615 3616type CreateVocabularyOutput struct { 3617 _ struct{} `type:"structure"` 3618 3619 // If the VocabularyState field is FAILED, this field contains information about 3620 // why the job failed. 3621 FailureReason *string `type:"string"` 3622 3623 // The language code of the vocabulary entries. 3624 LanguageCode *string `type:"string" enum:"LanguageCode"` 3625 3626 // The date and time that the vocabulary was created. 3627 LastModifiedTime *time.Time `type:"timestamp"` 3628 3629 // The name of the vocabulary. 3630 VocabularyName *string `min:"1" type:"string"` 3631 3632 // The processing state of the vocabulary. When the VocabularyState field contains 3633 // READY the vocabulary is ready to be used in a StartTranscriptionJob request. 3634 VocabularyState *string `type:"string" enum:"VocabularyState"` 3635} 3636 3637// String returns the string representation 3638func (s CreateVocabularyOutput) String() string { 3639 return awsutil.Prettify(s) 3640} 3641 3642// GoString returns the string representation 3643func (s CreateVocabularyOutput) GoString() string { 3644 return s.String() 3645} 3646 3647// SetFailureReason sets the FailureReason field's value. 3648func (s *CreateVocabularyOutput) SetFailureReason(v string) *CreateVocabularyOutput { 3649 s.FailureReason = &v 3650 return s 3651} 3652 3653// SetLanguageCode sets the LanguageCode field's value. 3654func (s *CreateVocabularyOutput) SetLanguageCode(v string) *CreateVocabularyOutput { 3655 s.LanguageCode = &v 3656 return s 3657} 3658 3659// SetLastModifiedTime sets the LastModifiedTime field's value. 3660func (s *CreateVocabularyOutput) SetLastModifiedTime(v time.Time) *CreateVocabularyOutput { 3661 s.LastModifiedTime = &v 3662 return s 3663} 3664 3665// SetVocabularyName sets the VocabularyName field's value. 3666func (s *CreateVocabularyOutput) SetVocabularyName(v string) *CreateVocabularyOutput { 3667 s.VocabularyName = &v 3668 return s 3669} 3670 3671// SetVocabularyState sets the VocabularyState field's value. 3672func (s *CreateVocabularyOutput) SetVocabularyState(v string) *CreateVocabularyOutput { 3673 s.VocabularyState = &v 3674 return s 3675} 3676 3677type DeleteLanguageModelInput struct { 3678 _ struct{} `type:"structure"` 3679 3680 // The name of the model you're choosing to delete. 3681 // 3682 // ModelName is a required field 3683 ModelName *string `min:"1" type:"string" required:"true"` 3684} 3685 3686// String returns the string representation 3687func (s DeleteLanguageModelInput) String() string { 3688 return awsutil.Prettify(s) 3689} 3690 3691// GoString returns the string representation 3692func (s DeleteLanguageModelInput) GoString() string { 3693 return s.String() 3694} 3695 3696// Validate inspects the fields of the type to determine if they are valid. 3697func (s *DeleteLanguageModelInput) Validate() error { 3698 invalidParams := request.ErrInvalidParams{Context: "DeleteLanguageModelInput"} 3699 if s.ModelName == nil { 3700 invalidParams.Add(request.NewErrParamRequired("ModelName")) 3701 } 3702 if s.ModelName != nil && len(*s.ModelName) < 1 { 3703 invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) 3704 } 3705 3706 if invalidParams.Len() > 0 { 3707 return invalidParams 3708 } 3709 return nil 3710} 3711 3712// SetModelName sets the ModelName field's value. 3713func (s *DeleteLanguageModelInput) SetModelName(v string) *DeleteLanguageModelInput { 3714 s.ModelName = &v 3715 return s 3716} 3717 3718type DeleteLanguageModelOutput struct { 3719 _ struct{} `type:"structure"` 3720} 3721 3722// String returns the string representation 3723func (s DeleteLanguageModelOutput) String() string { 3724 return awsutil.Prettify(s) 3725} 3726 3727// GoString returns the string representation 3728func (s DeleteLanguageModelOutput) GoString() string { 3729 return s.String() 3730} 3731 3732type DeleteMedicalTranscriptionJobInput struct { 3733 _ struct{} `type:"structure"` 3734 3735 // The name you provide to the DeleteMedicalTranscriptionJob object to delete 3736 // a transcription job. 3737 // 3738 // MedicalTranscriptionJobName is a required field 3739 MedicalTranscriptionJobName *string `min:"1" type:"string" required:"true"` 3740} 3741 3742// String returns the string representation 3743func (s DeleteMedicalTranscriptionJobInput) String() string { 3744 return awsutil.Prettify(s) 3745} 3746 3747// GoString returns the string representation 3748func (s DeleteMedicalTranscriptionJobInput) GoString() string { 3749 return s.String() 3750} 3751 3752// Validate inspects the fields of the type to determine if they are valid. 3753func (s *DeleteMedicalTranscriptionJobInput) Validate() error { 3754 invalidParams := request.ErrInvalidParams{Context: "DeleteMedicalTranscriptionJobInput"} 3755 if s.MedicalTranscriptionJobName == nil { 3756 invalidParams.Add(request.NewErrParamRequired("MedicalTranscriptionJobName")) 3757 } 3758 if s.MedicalTranscriptionJobName != nil && len(*s.MedicalTranscriptionJobName) < 1 { 3759 invalidParams.Add(request.NewErrParamMinLen("MedicalTranscriptionJobName", 1)) 3760 } 3761 3762 if invalidParams.Len() > 0 { 3763 return invalidParams 3764 } 3765 return nil 3766} 3767 3768// SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value. 3769func (s *DeleteMedicalTranscriptionJobInput) SetMedicalTranscriptionJobName(v string) *DeleteMedicalTranscriptionJobInput { 3770 s.MedicalTranscriptionJobName = &v 3771 return s 3772} 3773 3774type DeleteMedicalTranscriptionJobOutput struct { 3775 _ struct{} `type:"structure"` 3776} 3777 3778// String returns the string representation 3779func (s DeleteMedicalTranscriptionJobOutput) String() string { 3780 return awsutil.Prettify(s) 3781} 3782 3783// GoString returns the string representation 3784func (s DeleteMedicalTranscriptionJobOutput) GoString() string { 3785 return s.String() 3786} 3787 3788type DeleteMedicalVocabularyInput struct { 3789 _ struct{} `type:"structure"` 3790 3791 // The name of the vocabulary that you want to delete. 3792 // 3793 // VocabularyName is a required field 3794 VocabularyName *string `min:"1" type:"string" required:"true"` 3795} 3796 3797// String returns the string representation 3798func (s DeleteMedicalVocabularyInput) String() string { 3799 return awsutil.Prettify(s) 3800} 3801 3802// GoString returns the string representation 3803func (s DeleteMedicalVocabularyInput) GoString() string { 3804 return s.String() 3805} 3806 3807// Validate inspects the fields of the type to determine if they are valid. 3808func (s *DeleteMedicalVocabularyInput) Validate() error { 3809 invalidParams := request.ErrInvalidParams{Context: "DeleteMedicalVocabularyInput"} 3810 if s.VocabularyName == nil { 3811 invalidParams.Add(request.NewErrParamRequired("VocabularyName")) 3812 } 3813 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 3814 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 3815 } 3816 3817 if invalidParams.Len() > 0 { 3818 return invalidParams 3819 } 3820 return nil 3821} 3822 3823// SetVocabularyName sets the VocabularyName field's value. 3824func (s *DeleteMedicalVocabularyInput) SetVocabularyName(v string) *DeleteMedicalVocabularyInput { 3825 s.VocabularyName = &v 3826 return s 3827} 3828 3829type DeleteMedicalVocabularyOutput struct { 3830 _ struct{} `type:"structure"` 3831} 3832 3833// String returns the string representation 3834func (s DeleteMedicalVocabularyOutput) String() string { 3835 return awsutil.Prettify(s) 3836} 3837 3838// GoString returns the string representation 3839func (s DeleteMedicalVocabularyOutput) GoString() string { 3840 return s.String() 3841} 3842 3843type DeleteTranscriptionJobInput struct { 3844 _ struct{} `type:"structure"` 3845 3846 // The name of the transcription job to be deleted. 3847 // 3848 // TranscriptionJobName is a required field 3849 TranscriptionJobName *string `min:"1" type:"string" required:"true"` 3850} 3851 3852// String returns the string representation 3853func (s DeleteTranscriptionJobInput) String() string { 3854 return awsutil.Prettify(s) 3855} 3856 3857// GoString returns the string representation 3858func (s DeleteTranscriptionJobInput) GoString() string { 3859 return s.String() 3860} 3861 3862// Validate inspects the fields of the type to determine if they are valid. 3863func (s *DeleteTranscriptionJobInput) Validate() error { 3864 invalidParams := request.ErrInvalidParams{Context: "DeleteTranscriptionJobInput"} 3865 if s.TranscriptionJobName == nil { 3866 invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName")) 3867 } 3868 if s.TranscriptionJobName != nil && len(*s.TranscriptionJobName) < 1 { 3869 invalidParams.Add(request.NewErrParamMinLen("TranscriptionJobName", 1)) 3870 } 3871 3872 if invalidParams.Len() > 0 { 3873 return invalidParams 3874 } 3875 return nil 3876} 3877 3878// SetTranscriptionJobName sets the TranscriptionJobName field's value. 3879func (s *DeleteTranscriptionJobInput) SetTranscriptionJobName(v string) *DeleteTranscriptionJobInput { 3880 s.TranscriptionJobName = &v 3881 return s 3882} 3883 3884type DeleteTranscriptionJobOutput struct { 3885 _ struct{} `type:"structure"` 3886} 3887 3888// String returns the string representation 3889func (s DeleteTranscriptionJobOutput) String() string { 3890 return awsutil.Prettify(s) 3891} 3892 3893// GoString returns the string representation 3894func (s DeleteTranscriptionJobOutput) GoString() string { 3895 return s.String() 3896} 3897 3898type DeleteVocabularyFilterInput struct { 3899 _ struct{} `type:"structure"` 3900 3901 // The name of the vocabulary filter to remove. 3902 // 3903 // VocabularyFilterName is a required field 3904 VocabularyFilterName *string `min:"1" type:"string" required:"true"` 3905} 3906 3907// String returns the string representation 3908func (s DeleteVocabularyFilterInput) String() string { 3909 return awsutil.Prettify(s) 3910} 3911 3912// GoString returns the string representation 3913func (s DeleteVocabularyFilterInput) GoString() string { 3914 return s.String() 3915} 3916 3917// Validate inspects the fields of the type to determine if they are valid. 3918func (s *DeleteVocabularyFilterInput) Validate() error { 3919 invalidParams := request.ErrInvalidParams{Context: "DeleteVocabularyFilterInput"} 3920 if s.VocabularyFilterName == nil { 3921 invalidParams.Add(request.NewErrParamRequired("VocabularyFilterName")) 3922 } 3923 if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { 3924 invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) 3925 } 3926 3927 if invalidParams.Len() > 0 { 3928 return invalidParams 3929 } 3930 return nil 3931} 3932 3933// SetVocabularyFilterName sets the VocabularyFilterName field's value. 3934func (s *DeleteVocabularyFilterInput) SetVocabularyFilterName(v string) *DeleteVocabularyFilterInput { 3935 s.VocabularyFilterName = &v 3936 return s 3937} 3938 3939type DeleteVocabularyFilterOutput struct { 3940 _ struct{} `type:"structure"` 3941} 3942 3943// String returns the string representation 3944func (s DeleteVocabularyFilterOutput) String() string { 3945 return awsutil.Prettify(s) 3946} 3947 3948// GoString returns the string representation 3949func (s DeleteVocabularyFilterOutput) GoString() string { 3950 return s.String() 3951} 3952 3953type DeleteVocabularyInput struct { 3954 _ struct{} `type:"structure"` 3955 3956 // The name of the vocabulary to delete. 3957 // 3958 // VocabularyName is a required field 3959 VocabularyName *string `min:"1" type:"string" required:"true"` 3960} 3961 3962// String returns the string representation 3963func (s DeleteVocabularyInput) String() string { 3964 return awsutil.Prettify(s) 3965} 3966 3967// GoString returns the string representation 3968func (s DeleteVocabularyInput) GoString() string { 3969 return s.String() 3970} 3971 3972// Validate inspects the fields of the type to determine if they are valid. 3973func (s *DeleteVocabularyInput) Validate() error { 3974 invalidParams := request.ErrInvalidParams{Context: "DeleteVocabularyInput"} 3975 if s.VocabularyName == nil { 3976 invalidParams.Add(request.NewErrParamRequired("VocabularyName")) 3977 } 3978 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 3979 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 3980 } 3981 3982 if invalidParams.Len() > 0 { 3983 return invalidParams 3984 } 3985 return nil 3986} 3987 3988// SetVocabularyName sets the VocabularyName field's value. 3989func (s *DeleteVocabularyInput) SetVocabularyName(v string) *DeleteVocabularyInput { 3990 s.VocabularyName = &v 3991 return s 3992} 3993 3994type DeleteVocabularyOutput struct { 3995 _ struct{} `type:"structure"` 3996} 3997 3998// String returns the string representation 3999func (s DeleteVocabularyOutput) String() string { 4000 return awsutil.Prettify(s) 4001} 4002 4003// GoString returns the string representation 4004func (s DeleteVocabularyOutput) GoString() string { 4005 return s.String() 4006} 4007 4008type DescribeLanguageModelInput struct { 4009 _ struct{} `type:"structure"` 4010 4011 // The name of the custom language model you submit to get more information. 4012 // 4013 // ModelName is a required field 4014 ModelName *string `min:"1" type:"string" required:"true"` 4015} 4016 4017// String returns the string representation 4018func (s DescribeLanguageModelInput) String() string { 4019 return awsutil.Prettify(s) 4020} 4021 4022// GoString returns the string representation 4023func (s DescribeLanguageModelInput) GoString() string { 4024 return s.String() 4025} 4026 4027// Validate inspects the fields of the type to determine if they are valid. 4028func (s *DescribeLanguageModelInput) Validate() error { 4029 invalidParams := request.ErrInvalidParams{Context: "DescribeLanguageModelInput"} 4030 if s.ModelName == nil { 4031 invalidParams.Add(request.NewErrParamRequired("ModelName")) 4032 } 4033 if s.ModelName != nil && len(*s.ModelName) < 1 { 4034 invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) 4035 } 4036 4037 if invalidParams.Len() > 0 { 4038 return invalidParams 4039 } 4040 return nil 4041} 4042 4043// SetModelName sets the ModelName field's value. 4044func (s *DescribeLanguageModelInput) SetModelName(v string) *DescribeLanguageModelInput { 4045 s.ModelName = &v 4046 return s 4047} 4048 4049type DescribeLanguageModelOutput struct { 4050 _ struct{} `type:"structure"` 4051 4052 // The name of the custom language model you requested more information about. 4053 LanguageModel *LanguageModel `type:"structure"` 4054} 4055 4056// String returns the string representation 4057func (s DescribeLanguageModelOutput) String() string { 4058 return awsutil.Prettify(s) 4059} 4060 4061// GoString returns the string representation 4062func (s DescribeLanguageModelOutput) GoString() string { 4063 return s.String() 4064} 4065 4066// SetLanguageModel sets the LanguageModel field's value. 4067func (s *DescribeLanguageModelOutput) SetLanguageModel(v *LanguageModel) *DescribeLanguageModelOutput { 4068 s.LanguageModel = v 4069 return s 4070} 4071 4072type GetMedicalTranscriptionJobInput struct { 4073 _ struct{} `type:"structure"` 4074 4075 // The name of the medical transcription job. 4076 // 4077 // MedicalTranscriptionJobName is a required field 4078 MedicalTranscriptionJobName *string `min:"1" type:"string" required:"true"` 4079} 4080 4081// String returns the string representation 4082func (s GetMedicalTranscriptionJobInput) String() string { 4083 return awsutil.Prettify(s) 4084} 4085 4086// GoString returns the string representation 4087func (s GetMedicalTranscriptionJobInput) GoString() string { 4088 return s.String() 4089} 4090 4091// Validate inspects the fields of the type to determine if they are valid. 4092func (s *GetMedicalTranscriptionJobInput) Validate() error { 4093 invalidParams := request.ErrInvalidParams{Context: "GetMedicalTranscriptionJobInput"} 4094 if s.MedicalTranscriptionJobName == nil { 4095 invalidParams.Add(request.NewErrParamRequired("MedicalTranscriptionJobName")) 4096 } 4097 if s.MedicalTranscriptionJobName != nil && len(*s.MedicalTranscriptionJobName) < 1 { 4098 invalidParams.Add(request.NewErrParamMinLen("MedicalTranscriptionJobName", 1)) 4099 } 4100 4101 if invalidParams.Len() > 0 { 4102 return invalidParams 4103 } 4104 return nil 4105} 4106 4107// SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value. 4108func (s *GetMedicalTranscriptionJobInput) SetMedicalTranscriptionJobName(v string) *GetMedicalTranscriptionJobInput { 4109 s.MedicalTranscriptionJobName = &v 4110 return s 4111} 4112 4113type GetMedicalTranscriptionJobOutput struct { 4114 _ struct{} `type:"structure"` 4115 4116 // An object that contains the results of the medical transcription job. 4117 MedicalTranscriptionJob *MedicalTranscriptionJob `type:"structure"` 4118} 4119 4120// String returns the string representation 4121func (s GetMedicalTranscriptionJobOutput) String() string { 4122 return awsutil.Prettify(s) 4123} 4124 4125// GoString returns the string representation 4126func (s GetMedicalTranscriptionJobOutput) GoString() string { 4127 return s.String() 4128} 4129 4130// SetMedicalTranscriptionJob sets the MedicalTranscriptionJob field's value. 4131func (s *GetMedicalTranscriptionJobOutput) SetMedicalTranscriptionJob(v *MedicalTranscriptionJob) *GetMedicalTranscriptionJobOutput { 4132 s.MedicalTranscriptionJob = v 4133 return s 4134} 4135 4136type GetMedicalVocabularyInput struct { 4137 _ struct{} `type:"structure"` 4138 4139 // The name of the vocabulary that you want information about. The value is 4140 // case sensitive. 4141 // 4142 // VocabularyName is a required field 4143 VocabularyName *string `min:"1" type:"string" required:"true"` 4144} 4145 4146// String returns the string representation 4147func (s GetMedicalVocabularyInput) String() string { 4148 return awsutil.Prettify(s) 4149} 4150 4151// GoString returns the string representation 4152func (s GetMedicalVocabularyInput) GoString() string { 4153 return s.String() 4154} 4155 4156// Validate inspects the fields of the type to determine if they are valid. 4157func (s *GetMedicalVocabularyInput) Validate() error { 4158 invalidParams := request.ErrInvalidParams{Context: "GetMedicalVocabularyInput"} 4159 if s.VocabularyName == nil { 4160 invalidParams.Add(request.NewErrParamRequired("VocabularyName")) 4161 } 4162 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 4163 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 4164 } 4165 4166 if invalidParams.Len() > 0 { 4167 return invalidParams 4168 } 4169 return nil 4170} 4171 4172// SetVocabularyName sets the VocabularyName field's value. 4173func (s *GetMedicalVocabularyInput) SetVocabularyName(v string) *GetMedicalVocabularyInput { 4174 s.VocabularyName = &v 4175 return s 4176} 4177 4178type GetMedicalVocabularyOutput struct { 4179 _ struct{} `type:"structure"` 4180 4181 // The location in Amazon S3 where the vocabulary is stored. Use this URI to 4182 // get the contents of the vocabulary. You can download your vocabulary from 4183 // the URI for a limited time. 4184 DownloadUri *string `min:"1" type:"string"` 4185 4186 // If the VocabularyState is FAILED, this field contains information about why 4187 // the job failed. 4188 FailureReason *string `type:"string"` 4189 4190 // The valid language code for your vocabulary entries. 4191 LanguageCode *string `type:"string" enum:"LanguageCode"` 4192 4193 // The date and time that the vocabulary was last modified with a text file 4194 // different from the one that was previously used. 4195 LastModifiedTime *time.Time `type:"timestamp"` 4196 4197 // The name of the vocabulary returned by Amazon Transcribe Medical. 4198 VocabularyName *string `min:"1" type:"string"` 4199 4200 // The processing state of the vocabulary. If the VocabularyState is READY then 4201 // you can use it in the StartMedicalTranscriptionJob operation. 4202 VocabularyState *string `type:"string" enum:"VocabularyState"` 4203} 4204 4205// String returns the string representation 4206func (s GetMedicalVocabularyOutput) String() string { 4207 return awsutil.Prettify(s) 4208} 4209 4210// GoString returns the string representation 4211func (s GetMedicalVocabularyOutput) GoString() string { 4212 return s.String() 4213} 4214 4215// SetDownloadUri sets the DownloadUri field's value. 4216func (s *GetMedicalVocabularyOutput) SetDownloadUri(v string) *GetMedicalVocabularyOutput { 4217 s.DownloadUri = &v 4218 return s 4219} 4220 4221// SetFailureReason sets the FailureReason field's value. 4222func (s *GetMedicalVocabularyOutput) SetFailureReason(v string) *GetMedicalVocabularyOutput { 4223 s.FailureReason = &v 4224 return s 4225} 4226 4227// SetLanguageCode sets the LanguageCode field's value. 4228func (s *GetMedicalVocabularyOutput) SetLanguageCode(v string) *GetMedicalVocabularyOutput { 4229 s.LanguageCode = &v 4230 return s 4231} 4232 4233// SetLastModifiedTime sets the LastModifiedTime field's value. 4234func (s *GetMedicalVocabularyOutput) SetLastModifiedTime(v time.Time) *GetMedicalVocabularyOutput { 4235 s.LastModifiedTime = &v 4236 return s 4237} 4238 4239// SetVocabularyName sets the VocabularyName field's value. 4240func (s *GetMedicalVocabularyOutput) SetVocabularyName(v string) *GetMedicalVocabularyOutput { 4241 s.VocabularyName = &v 4242 return s 4243} 4244 4245// SetVocabularyState sets the VocabularyState field's value. 4246func (s *GetMedicalVocabularyOutput) SetVocabularyState(v string) *GetMedicalVocabularyOutput { 4247 s.VocabularyState = &v 4248 return s 4249} 4250 4251type GetTranscriptionJobInput struct { 4252 _ struct{} `type:"structure"` 4253 4254 // The name of the job. 4255 // 4256 // TranscriptionJobName is a required field 4257 TranscriptionJobName *string `min:"1" type:"string" required:"true"` 4258} 4259 4260// String returns the string representation 4261func (s GetTranscriptionJobInput) String() string { 4262 return awsutil.Prettify(s) 4263} 4264 4265// GoString returns the string representation 4266func (s GetTranscriptionJobInput) GoString() string { 4267 return s.String() 4268} 4269 4270// Validate inspects the fields of the type to determine if they are valid. 4271func (s *GetTranscriptionJobInput) Validate() error { 4272 invalidParams := request.ErrInvalidParams{Context: "GetTranscriptionJobInput"} 4273 if s.TranscriptionJobName == nil { 4274 invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName")) 4275 } 4276 if s.TranscriptionJobName != nil && len(*s.TranscriptionJobName) < 1 { 4277 invalidParams.Add(request.NewErrParamMinLen("TranscriptionJobName", 1)) 4278 } 4279 4280 if invalidParams.Len() > 0 { 4281 return invalidParams 4282 } 4283 return nil 4284} 4285 4286// SetTranscriptionJobName sets the TranscriptionJobName field's value. 4287func (s *GetTranscriptionJobInput) SetTranscriptionJobName(v string) *GetTranscriptionJobInput { 4288 s.TranscriptionJobName = &v 4289 return s 4290} 4291 4292type GetTranscriptionJobOutput struct { 4293 _ struct{} `type:"structure"` 4294 4295 // An object that contains the results of the transcription job. 4296 TranscriptionJob *TranscriptionJob `type:"structure"` 4297} 4298 4299// String returns the string representation 4300func (s GetTranscriptionJobOutput) String() string { 4301 return awsutil.Prettify(s) 4302} 4303 4304// GoString returns the string representation 4305func (s GetTranscriptionJobOutput) GoString() string { 4306 return s.String() 4307} 4308 4309// SetTranscriptionJob sets the TranscriptionJob field's value. 4310func (s *GetTranscriptionJobOutput) SetTranscriptionJob(v *TranscriptionJob) *GetTranscriptionJobOutput { 4311 s.TranscriptionJob = v 4312 return s 4313} 4314 4315type GetVocabularyFilterInput struct { 4316 _ struct{} `type:"structure"` 4317 4318 // The name of the vocabulary filter for which to return information. 4319 // 4320 // VocabularyFilterName is a required field 4321 VocabularyFilterName *string `min:"1" type:"string" required:"true"` 4322} 4323 4324// String returns the string representation 4325func (s GetVocabularyFilterInput) String() string { 4326 return awsutil.Prettify(s) 4327} 4328 4329// GoString returns the string representation 4330func (s GetVocabularyFilterInput) GoString() string { 4331 return s.String() 4332} 4333 4334// Validate inspects the fields of the type to determine if they are valid. 4335func (s *GetVocabularyFilterInput) Validate() error { 4336 invalidParams := request.ErrInvalidParams{Context: "GetVocabularyFilterInput"} 4337 if s.VocabularyFilterName == nil { 4338 invalidParams.Add(request.NewErrParamRequired("VocabularyFilterName")) 4339 } 4340 if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { 4341 invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) 4342 } 4343 4344 if invalidParams.Len() > 0 { 4345 return invalidParams 4346 } 4347 return nil 4348} 4349 4350// SetVocabularyFilterName sets the VocabularyFilterName field's value. 4351func (s *GetVocabularyFilterInput) SetVocabularyFilterName(v string) *GetVocabularyFilterInput { 4352 s.VocabularyFilterName = &v 4353 return s 4354} 4355 4356type GetVocabularyFilterOutput struct { 4357 _ struct{} `type:"structure"` 4358 4359 // The URI of the list of words in the vocabulary filter. You can use this URI 4360 // to get the list of words. 4361 DownloadUri *string `min:"1" type:"string"` 4362 4363 // The language code of the words in the vocabulary filter. 4364 LanguageCode *string `type:"string" enum:"LanguageCode"` 4365 4366 // The date and time that the contents of the vocabulary filter were updated. 4367 LastModifiedTime *time.Time `type:"timestamp"` 4368 4369 // The name of the vocabulary filter. 4370 VocabularyFilterName *string `min:"1" type:"string"` 4371} 4372 4373// String returns the string representation 4374func (s GetVocabularyFilterOutput) String() string { 4375 return awsutil.Prettify(s) 4376} 4377 4378// GoString returns the string representation 4379func (s GetVocabularyFilterOutput) GoString() string { 4380 return s.String() 4381} 4382 4383// SetDownloadUri sets the DownloadUri field's value. 4384func (s *GetVocabularyFilterOutput) SetDownloadUri(v string) *GetVocabularyFilterOutput { 4385 s.DownloadUri = &v 4386 return s 4387} 4388 4389// SetLanguageCode sets the LanguageCode field's value. 4390func (s *GetVocabularyFilterOutput) SetLanguageCode(v string) *GetVocabularyFilterOutput { 4391 s.LanguageCode = &v 4392 return s 4393} 4394 4395// SetLastModifiedTime sets the LastModifiedTime field's value. 4396func (s *GetVocabularyFilterOutput) SetLastModifiedTime(v time.Time) *GetVocabularyFilterOutput { 4397 s.LastModifiedTime = &v 4398 return s 4399} 4400 4401// SetVocabularyFilterName sets the VocabularyFilterName field's value. 4402func (s *GetVocabularyFilterOutput) SetVocabularyFilterName(v string) *GetVocabularyFilterOutput { 4403 s.VocabularyFilterName = &v 4404 return s 4405} 4406 4407type GetVocabularyInput struct { 4408 _ struct{} `type:"structure"` 4409 4410 // The name of the vocabulary to return information about. The name is case 4411 // sensitive. 4412 // 4413 // VocabularyName is a required field 4414 VocabularyName *string `min:"1" type:"string" required:"true"` 4415} 4416 4417// String returns the string representation 4418func (s GetVocabularyInput) String() string { 4419 return awsutil.Prettify(s) 4420} 4421 4422// GoString returns the string representation 4423func (s GetVocabularyInput) GoString() string { 4424 return s.String() 4425} 4426 4427// Validate inspects the fields of the type to determine if they are valid. 4428func (s *GetVocabularyInput) Validate() error { 4429 invalidParams := request.ErrInvalidParams{Context: "GetVocabularyInput"} 4430 if s.VocabularyName == nil { 4431 invalidParams.Add(request.NewErrParamRequired("VocabularyName")) 4432 } 4433 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 4434 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 4435 } 4436 4437 if invalidParams.Len() > 0 { 4438 return invalidParams 4439 } 4440 return nil 4441} 4442 4443// SetVocabularyName sets the VocabularyName field's value. 4444func (s *GetVocabularyInput) SetVocabularyName(v string) *GetVocabularyInput { 4445 s.VocabularyName = &v 4446 return s 4447} 4448 4449type GetVocabularyOutput struct { 4450 _ struct{} `type:"structure"` 4451 4452 // The S3 location where the vocabulary is stored. Use this URI to get the contents 4453 // of the vocabulary. The URI is available for a limited time. 4454 DownloadUri *string `min:"1" type:"string"` 4455 4456 // If the VocabularyState field is FAILED, this field contains information about 4457 // why the job failed. 4458 FailureReason *string `type:"string"` 4459 4460 // The language code of the vocabulary entries. 4461 LanguageCode *string `type:"string" enum:"LanguageCode"` 4462 4463 // The date and time that the vocabulary was last modified. 4464 LastModifiedTime *time.Time `type:"timestamp"` 4465 4466 // The name of the vocabulary to return. 4467 VocabularyName *string `min:"1" type:"string"` 4468 4469 // The processing state of the vocabulary. 4470 VocabularyState *string `type:"string" enum:"VocabularyState"` 4471} 4472 4473// String returns the string representation 4474func (s GetVocabularyOutput) String() string { 4475 return awsutil.Prettify(s) 4476} 4477 4478// GoString returns the string representation 4479func (s GetVocabularyOutput) GoString() string { 4480 return s.String() 4481} 4482 4483// SetDownloadUri sets the DownloadUri field's value. 4484func (s *GetVocabularyOutput) SetDownloadUri(v string) *GetVocabularyOutput { 4485 s.DownloadUri = &v 4486 return s 4487} 4488 4489// SetFailureReason sets the FailureReason field's value. 4490func (s *GetVocabularyOutput) SetFailureReason(v string) *GetVocabularyOutput { 4491 s.FailureReason = &v 4492 return s 4493} 4494 4495// SetLanguageCode sets the LanguageCode field's value. 4496func (s *GetVocabularyOutput) SetLanguageCode(v string) *GetVocabularyOutput { 4497 s.LanguageCode = &v 4498 return s 4499} 4500 4501// SetLastModifiedTime sets the LastModifiedTime field's value. 4502func (s *GetVocabularyOutput) SetLastModifiedTime(v time.Time) *GetVocabularyOutput { 4503 s.LastModifiedTime = &v 4504 return s 4505} 4506 4507// SetVocabularyName sets the VocabularyName field's value. 4508func (s *GetVocabularyOutput) SetVocabularyName(v string) *GetVocabularyOutput { 4509 s.VocabularyName = &v 4510 return s 4511} 4512 4513// SetVocabularyState sets the VocabularyState field's value. 4514func (s *GetVocabularyOutput) SetVocabularyState(v string) *GetVocabularyOutput { 4515 s.VocabularyState = &v 4516 return s 4517} 4518 4519// The object that contains the Amazon S3 object location and access role required 4520// to train and tune your custom language model. 4521type InputDataConfig struct { 4522 _ struct{} `type:"structure"` 4523 4524 // The Amazon Resource Name (ARN) that uniquely identifies the permissions you've 4525 // given Amazon Transcribe to access your Amazon S3 buckets containing your 4526 // media files or text data. 4527 // 4528 // DataAccessRoleArn is a required field 4529 DataAccessRoleArn *string `min:"20" type:"string" required:"true"` 4530 4531 // The Amazon S3 prefix you specify to access the plain text files that you 4532 // use to train your custom language model. 4533 // 4534 // S3Uri is a required field 4535 S3Uri *string `min:"1" type:"string" required:"true"` 4536 4537 // The Amazon S3 prefix you specify to access the plain text files that you 4538 // use to tune your custom language model. 4539 TuningDataS3Uri *string `min:"1" type:"string"` 4540} 4541 4542// String returns the string representation 4543func (s InputDataConfig) String() string { 4544 return awsutil.Prettify(s) 4545} 4546 4547// GoString returns the string representation 4548func (s InputDataConfig) GoString() string { 4549 return s.String() 4550} 4551 4552// Validate inspects the fields of the type to determine if they are valid. 4553func (s *InputDataConfig) Validate() error { 4554 invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"} 4555 if s.DataAccessRoleArn == nil { 4556 invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) 4557 } 4558 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 4559 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 4560 } 4561 if s.S3Uri == nil { 4562 invalidParams.Add(request.NewErrParamRequired("S3Uri")) 4563 } 4564 if s.S3Uri != nil && len(*s.S3Uri) < 1 { 4565 invalidParams.Add(request.NewErrParamMinLen("S3Uri", 1)) 4566 } 4567 if s.TuningDataS3Uri != nil && len(*s.TuningDataS3Uri) < 1 { 4568 invalidParams.Add(request.NewErrParamMinLen("TuningDataS3Uri", 1)) 4569 } 4570 4571 if invalidParams.Len() > 0 { 4572 return invalidParams 4573 } 4574 return nil 4575} 4576 4577// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 4578func (s *InputDataConfig) SetDataAccessRoleArn(v string) *InputDataConfig { 4579 s.DataAccessRoleArn = &v 4580 return s 4581} 4582 4583// SetS3Uri sets the S3Uri field's value. 4584func (s *InputDataConfig) SetS3Uri(v string) *InputDataConfig { 4585 s.S3Uri = &v 4586 return s 4587} 4588 4589// SetTuningDataS3Uri sets the TuningDataS3Uri field's value. 4590func (s *InputDataConfig) SetTuningDataS3Uri(v string) *InputDataConfig { 4591 s.TuningDataS3Uri = &v 4592 return s 4593} 4594 4595// There was an internal error. Check the error message and try your request 4596// again. 4597type InternalFailureException struct { 4598 _ struct{} `type:"structure"` 4599 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4600 4601 Message_ *string `locationName:"Message" type:"string"` 4602} 4603 4604// String returns the string representation 4605func (s InternalFailureException) String() string { 4606 return awsutil.Prettify(s) 4607} 4608 4609// GoString returns the string representation 4610func (s InternalFailureException) GoString() string { 4611 return s.String() 4612} 4613 4614func newErrorInternalFailureException(v protocol.ResponseMetadata) error { 4615 return &InternalFailureException{ 4616 RespMetadata: v, 4617 } 4618} 4619 4620// Code returns the exception type name. 4621func (s *InternalFailureException) Code() string { 4622 return "InternalFailureException" 4623} 4624 4625// Message returns the exception's message. 4626func (s *InternalFailureException) Message() string { 4627 if s.Message_ != nil { 4628 return *s.Message_ 4629 } 4630 return "" 4631} 4632 4633// OrigErr always returns nil, satisfies awserr.Error interface. 4634func (s *InternalFailureException) OrigErr() error { 4635 return nil 4636} 4637 4638func (s *InternalFailureException) Error() string { 4639 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4640} 4641 4642// Status code returns the HTTP status code for the request's response error. 4643func (s *InternalFailureException) StatusCode() int { 4644 return s.RespMetadata.StatusCode 4645} 4646 4647// RequestID returns the service's response RequestID for request. 4648func (s *InternalFailureException) RequestID() string { 4649 return s.RespMetadata.RequestID 4650} 4651 4652// Provides information about when a transcription job should be executed. 4653type JobExecutionSettings struct { 4654 _ struct{} `type:"structure"` 4655 4656 // Indicates whether a job should be queued by Amazon Transcribe when the concurrent 4657 // execution limit is exceeded. When the AllowDeferredExecution field is true, 4658 // jobs are queued and executed when the number of executing jobs falls below 4659 // the concurrent execution limit. If the field is false, Amazon Transcribe 4660 // returns a LimitExceededException exception. 4661 // 4662 // If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn 4663 // field. 4664 AllowDeferredExecution *bool `type:"boolean"` 4665 4666 // The Amazon Resource Name (ARN) of a role that has access to the S3 bucket 4667 // that contains the input files. Amazon Transcribe assumes this role to read 4668 // queued media files. If you have specified an output S3 bucket for the transcription 4669 // results, this role should have access to the output bucket as well. 4670 // 4671 // If you specify the AllowDeferredExecution field, you must specify the DataAccessRoleArn 4672 // field. 4673 DataAccessRoleArn *string `min:"20" type:"string"` 4674} 4675 4676// String returns the string representation 4677func (s JobExecutionSettings) String() string { 4678 return awsutil.Prettify(s) 4679} 4680 4681// GoString returns the string representation 4682func (s JobExecutionSettings) GoString() string { 4683 return s.String() 4684} 4685 4686// Validate inspects the fields of the type to determine if they are valid. 4687func (s *JobExecutionSettings) Validate() error { 4688 invalidParams := request.ErrInvalidParams{Context: "JobExecutionSettings"} 4689 if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { 4690 invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) 4691 } 4692 4693 if invalidParams.Len() > 0 { 4694 return invalidParams 4695 } 4696 return nil 4697} 4698 4699// SetAllowDeferredExecution sets the AllowDeferredExecution field's value. 4700func (s *JobExecutionSettings) SetAllowDeferredExecution(v bool) *JobExecutionSettings { 4701 s.AllowDeferredExecution = &v 4702 return s 4703} 4704 4705// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. 4706func (s *JobExecutionSettings) SetDataAccessRoleArn(v string) *JobExecutionSettings { 4707 s.DataAccessRoleArn = &v 4708 return s 4709} 4710 4711// The structure used to describe a custom language model. 4712type LanguageModel struct { 4713 _ struct{} `type:"structure"` 4714 4715 // The Amazon Transcribe standard language model, or base model used to create 4716 // the custom language model. 4717 BaseModelName *string `type:"string" enum:"BaseModelName"` 4718 4719 // The time the custom language model was created. 4720 CreateTime *time.Time `type:"timestamp"` 4721 4722 // The reason why the custom language model couldn't be created. 4723 FailureReason *string `type:"string"` 4724 4725 // The data access role and Amazon S3 prefixes for the input files used to train 4726 // the custom language model. 4727 InputDataConfig *InputDataConfig `type:"structure"` 4728 4729 // The language code you used to create your custom language model. 4730 LanguageCode *string `type:"string" enum:"CLMLanguageCode"` 4731 4732 // The most recent time the custom language model was modified. 4733 LastModifiedTime *time.Time `type:"timestamp"` 4734 4735 // The name of the custom language model. 4736 ModelName *string `min:"1" type:"string"` 4737 4738 // The creation status of a custom language model. When the status is COMPLETED 4739 // the model is ready for use. 4740 ModelStatus *string `type:"string" enum:"ModelStatus"` 4741 4742 // Whether the base model used for the custom language model is up to date. 4743 // If this field is true then you are running the most up-to-date version of 4744 // the base model in your custom language model. 4745 UpgradeAvailability *bool `type:"boolean"` 4746} 4747 4748// String returns the string representation 4749func (s LanguageModel) String() string { 4750 return awsutil.Prettify(s) 4751} 4752 4753// GoString returns the string representation 4754func (s LanguageModel) GoString() string { 4755 return s.String() 4756} 4757 4758// SetBaseModelName sets the BaseModelName field's value. 4759func (s *LanguageModel) SetBaseModelName(v string) *LanguageModel { 4760 s.BaseModelName = &v 4761 return s 4762} 4763 4764// SetCreateTime sets the CreateTime field's value. 4765func (s *LanguageModel) SetCreateTime(v time.Time) *LanguageModel { 4766 s.CreateTime = &v 4767 return s 4768} 4769 4770// SetFailureReason sets the FailureReason field's value. 4771func (s *LanguageModel) SetFailureReason(v string) *LanguageModel { 4772 s.FailureReason = &v 4773 return s 4774} 4775 4776// SetInputDataConfig sets the InputDataConfig field's value. 4777func (s *LanguageModel) SetInputDataConfig(v *InputDataConfig) *LanguageModel { 4778 s.InputDataConfig = v 4779 return s 4780} 4781 4782// SetLanguageCode sets the LanguageCode field's value. 4783func (s *LanguageModel) SetLanguageCode(v string) *LanguageModel { 4784 s.LanguageCode = &v 4785 return s 4786} 4787 4788// SetLastModifiedTime sets the LastModifiedTime field's value. 4789func (s *LanguageModel) SetLastModifiedTime(v time.Time) *LanguageModel { 4790 s.LastModifiedTime = &v 4791 return s 4792} 4793 4794// SetModelName sets the ModelName field's value. 4795func (s *LanguageModel) SetModelName(v string) *LanguageModel { 4796 s.ModelName = &v 4797 return s 4798} 4799 4800// SetModelStatus sets the ModelStatus field's value. 4801func (s *LanguageModel) SetModelStatus(v string) *LanguageModel { 4802 s.ModelStatus = &v 4803 return s 4804} 4805 4806// SetUpgradeAvailability sets the UpgradeAvailability field's value. 4807func (s *LanguageModel) SetUpgradeAvailability(v bool) *LanguageModel { 4808 s.UpgradeAvailability = &v 4809 return s 4810} 4811 4812// Either you have sent too many requests or your input file is too long. Wait 4813// before you resend your request, or use a smaller file and resend the request. 4814type LimitExceededException struct { 4815 _ struct{} `type:"structure"` 4816 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4817 4818 Message_ *string `locationName:"Message" type:"string"` 4819} 4820 4821// String returns the string representation 4822func (s LimitExceededException) String() string { 4823 return awsutil.Prettify(s) 4824} 4825 4826// GoString returns the string representation 4827func (s LimitExceededException) GoString() string { 4828 return s.String() 4829} 4830 4831func newErrorLimitExceededException(v protocol.ResponseMetadata) error { 4832 return &LimitExceededException{ 4833 RespMetadata: v, 4834 } 4835} 4836 4837// Code returns the exception type name. 4838func (s *LimitExceededException) Code() string { 4839 return "LimitExceededException" 4840} 4841 4842// Message returns the exception's message. 4843func (s *LimitExceededException) Message() string { 4844 if s.Message_ != nil { 4845 return *s.Message_ 4846 } 4847 return "" 4848} 4849 4850// OrigErr always returns nil, satisfies awserr.Error interface. 4851func (s *LimitExceededException) OrigErr() error { 4852 return nil 4853} 4854 4855func (s *LimitExceededException) Error() string { 4856 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4857} 4858 4859// Status code returns the HTTP status code for the request's response error. 4860func (s *LimitExceededException) StatusCode() int { 4861 return s.RespMetadata.StatusCode 4862} 4863 4864// RequestID returns the service's response RequestID for request. 4865func (s *LimitExceededException) RequestID() string { 4866 return s.RespMetadata.RequestID 4867} 4868 4869type ListLanguageModelsInput struct { 4870 _ struct{} `type:"structure"` 4871 4872 // The maximum number of language models to return in the response. If there 4873 // are fewer results in the list, the response contains only the actual results. 4874 MaxResults *int64 `min:"1" type:"integer"` 4875 4876 // When specified, the custom language model names returned contain the substring 4877 // you've specified. 4878 NameContains *string `min:"1" type:"string"` 4879 4880 // When included, fetches the next set of jobs if the result of the previous 4881 // request was truncated. 4882 NextToken *string `type:"string"` 4883 4884 // When specified, returns only custom language models with the specified status. 4885 // Language models are ordered by creation date, with the newest models first. 4886 // If you don't specify a status, Amazon Transcribe returns all custom language 4887 // models ordered by date. 4888 StatusEquals *string `type:"string" enum:"ModelStatus"` 4889} 4890 4891// String returns the string representation 4892func (s ListLanguageModelsInput) String() string { 4893 return awsutil.Prettify(s) 4894} 4895 4896// GoString returns the string representation 4897func (s ListLanguageModelsInput) GoString() string { 4898 return s.String() 4899} 4900 4901// Validate inspects the fields of the type to determine if they are valid. 4902func (s *ListLanguageModelsInput) Validate() error { 4903 invalidParams := request.ErrInvalidParams{Context: "ListLanguageModelsInput"} 4904 if s.MaxResults != nil && *s.MaxResults < 1 { 4905 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 4906 } 4907 if s.NameContains != nil && len(*s.NameContains) < 1 { 4908 invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) 4909 } 4910 4911 if invalidParams.Len() > 0 { 4912 return invalidParams 4913 } 4914 return nil 4915} 4916 4917// SetMaxResults sets the MaxResults field's value. 4918func (s *ListLanguageModelsInput) SetMaxResults(v int64) *ListLanguageModelsInput { 4919 s.MaxResults = &v 4920 return s 4921} 4922 4923// SetNameContains sets the NameContains field's value. 4924func (s *ListLanguageModelsInput) SetNameContains(v string) *ListLanguageModelsInput { 4925 s.NameContains = &v 4926 return s 4927} 4928 4929// SetNextToken sets the NextToken field's value. 4930func (s *ListLanguageModelsInput) SetNextToken(v string) *ListLanguageModelsInput { 4931 s.NextToken = &v 4932 return s 4933} 4934 4935// SetStatusEquals sets the StatusEquals field's value. 4936func (s *ListLanguageModelsInput) SetStatusEquals(v string) *ListLanguageModelsInput { 4937 s.StatusEquals = &v 4938 return s 4939} 4940 4941type ListLanguageModelsOutput struct { 4942 _ struct{} `type:"structure"` 4943 4944 // A list of objects containing information about custom language models. 4945 Models []*LanguageModel `type:"list"` 4946 4947 // The operation returns a page of jobs at a time. The maximum size of the list 4948 // is set by the MaxResults parameter. If there are more language models in 4949 // the list than the page size, Amazon Transcribe returns the NextPage token. 4950 // Include the token in the next request to the operation to return the next 4951 // page of language models. 4952 NextToken *string `type:"string"` 4953} 4954 4955// String returns the string representation 4956func (s ListLanguageModelsOutput) String() string { 4957 return awsutil.Prettify(s) 4958} 4959 4960// GoString returns the string representation 4961func (s ListLanguageModelsOutput) GoString() string { 4962 return s.String() 4963} 4964 4965// SetModels sets the Models field's value. 4966func (s *ListLanguageModelsOutput) SetModels(v []*LanguageModel) *ListLanguageModelsOutput { 4967 s.Models = v 4968 return s 4969} 4970 4971// SetNextToken sets the NextToken field's value. 4972func (s *ListLanguageModelsOutput) SetNextToken(v string) *ListLanguageModelsOutput { 4973 s.NextToken = &v 4974 return s 4975} 4976 4977type ListMedicalTranscriptionJobsInput struct { 4978 _ struct{} `type:"structure"` 4979 4980 // When specified, the jobs returned in the list are limited to jobs whose name 4981 // contains the specified string. 4982 JobNameContains *string `min:"1" type:"string"` 4983 4984 // The maximum number of medical transcription jobs to return in the response. 4985 // IF there are fewer results in the list, this response contains only the actual 4986 // results. 4987 MaxResults *int64 `min:"1" type:"integer"` 4988 4989 // If you a receive a truncated result in the previous request of ListMedicalTranscriptionJobs, 4990 // include NextToken to fetch the next set of jobs. 4991 NextToken *string `type:"string"` 4992 4993 // When specified, returns only medical transcription jobs with the specified 4994 // status. Jobs are ordered by creation date, with the newest jobs returned 4995 // first. If you don't specify a status, Amazon Transcribe Medical returns all 4996 // transcription jobs ordered by creation date. 4997 Status *string `type:"string" enum:"TranscriptionJobStatus"` 4998} 4999 5000// String returns the string representation 5001func (s ListMedicalTranscriptionJobsInput) String() string { 5002 return awsutil.Prettify(s) 5003} 5004 5005// GoString returns the string representation 5006func (s ListMedicalTranscriptionJobsInput) GoString() string { 5007 return s.String() 5008} 5009 5010// Validate inspects the fields of the type to determine if they are valid. 5011func (s *ListMedicalTranscriptionJobsInput) Validate() error { 5012 invalidParams := request.ErrInvalidParams{Context: "ListMedicalTranscriptionJobsInput"} 5013 if s.JobNameContains != nil && len(*s.JobNameContains) < 1 { 5014 invalidParams.Add(request.NewErrParamMinLen("JobNameContains", 1)) 5015 } 5016 if s.MaxResults != nil && *s.MaxResults < 1 { 5017 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5018 } 5019 5020 if invalidParams.Len() > 0 { 5021 return invalidParams 5022 } 5023 return nil 5024} 5025 5026// SetJobNameContains sets the JobNameContains field's value. 5027func (s *ListMedicalTranscriptionJobsInput) SetJobNameContains(v string) *ListMedicalTranscriptionJobsInput { 5028 s.JobNameContains = &v 5029 return s 5030} 5031 5032// SetMaxResults sets the MaxResults field's value. 5033func (s *ListMedicalTranscriptionJobsInput) SetMaxResults(v int64) *ListMedicalTranscriptionJobsInput { 5034 s.MaxResults = &v 5035 return s 5036} 5037 5038// SetNextToken sets the NextToken field's value. 5039func (s *ListMedicalTranscriptionJobsInput) SetNextToken(v string) *ListMedicalTranscriptionJobsInput { 5040 s.NextToken = &v 5041 return s 5042} 5043 5044// SetStatus sets the Status field's value. 5045func (s *ListMedicalTranscriptionJobsInput) SetStatus(v string) *ListMedicalTranscriptionJobsInput { 5046 s.Status = &v 5047 return s 5048} 5049 5050type ListMedicalTranscriptionJobsOutput struct { 5051 _ struct{} `type:"structure"` 5052 5053 // A list of objects containing summary information for a transcription job. 5054 MedicalTranscriptionJobSummaries []*MedicalTranscriptionJobSummary `type:"list"` 5055 5056 // The ListMedicalTranscriptionJobs operation returns a page of jobs at a time. 5057 // The maximum size of the page is set by the MaxResults parameter. If the number 5058 // of jobs exceeds what can fit on a page, Amazon Transcribe Medical returns 5059 // the NextPage token. Include the token in the next request to the ListMedicalTranscriptionJobs 5060 // operation to return in the next page of jobs. 5061 NextToken *string `type:"string"` 5062 5063 // The requested status of the medical transcription jobs returned. 5064 Status *string `type:"string" enum:"TranscriptionJobStatus"` 5065} 5066 5067// String returns the string representation 5068func (s ListMedicalTranscriptionJobsOutput) String() string { 5069 return awsutil.Prettify(s) 5070} 5071 5072// GoString returns the string representation 5073func (s ListMedicalTranscriptionJobsOutput) GoString() string { 5074 return s.String() 5075} 5076 5077// SetMedicalTranscriptionJobSummaries sets the MedicalTranscriptionJobSummaries field's value. 5078func (s *ListMedicalTranscriptionJobsOutput) SetMedicalTranscriptionJobSummaries(v []*MedicalTranscriptionJobSummary) *ListMedicalTranscriptionJobsOutput { 5079 s.MedicalTranscriptionJobSummaries = v 5080 return s 5081} 5082 5083// SetNextToken sets the NextToken field's value. 5084func (s *ListMedicalTranscriptionJobsOutput) SetNextToken(v string) *ListMedicalTranscriptionJobsOutput { 5085 s.NextToken = &v 5086 return s 5087} 5088 5089// SetStatus sets the Status field's value. 5090func (s *ListMedicalTranscriptionJobsOutput) SetStatus(v string) *ListMedicalTranscriptionJobsOutput { 5091 s.Status = &v 5092 return s 5093} 5094 5095type ListMedicalVocabulariesInput struct { 5096 _ struct{} `type:"structure"` 5097 5098 // The maximum number of vocabularies to return in the response. 5099 MaxResults *int64 `min:"1" type:"integer"` 5100 5101 // Returns vocabularies whose names contain the specified string. The search 5102 // is not case sensitive. ListMedicalVocabularies returns both "vocabularyname" 5103 // and "VocabularyName". 5104 NameContains *string `min:"1" type:"string"` 5105 5106 // If the result of your previous request to ListMedicalVocabularies was truncated, 5107 // include the NextToken to fetch the next set of vocabularies. 5108 NextToken *string `type:"string"` 5109 5110 // When specified, returns only vocabularies with the VocabularyState equal 5111 // to the specified vocabulary state. Use this field to see which vocabularies 5112 // are ready for your medical transcription jobs. 5113 StateEquals *string `type:"string" enum:"VocabularyState"` 5114} 5115 5116// String returns the string representation 5117func (s ListMedicalVocabulariesInput) String() string { 5118 return awsutil.Prettify(s) 5119} 5120 5121// GoString returns the string representation 5122func (s ListMedicalVocabulariesInput) GoString() string { 5123 return s.String() 5124} 5125 5126// Validate inspects the fields of the type to determine if they are valid. 5127func (s *ListMedicalVocabulariesInput) Validate() error { 5128 invalidParams := request.ErrInvalidParams{Context: "ListMedicalVocabulariesInput"} 5129 if s.MaxResults != nil && *s.MaxResults < 1 { 5130 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5131 } 5132 if s.NameContains != nil && len(*s.NameContains) < 1 { 5133 invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) 5134 } 5135 5136 if invalidParams.Len() > 0 { 5137 return invalidParams 5138 } 5139 return nil 5140} 5141 5142// SetMaxResults sets the MaxResults field's value. 5143func (s *ListMedicalVocabulariesInput) SetMaxResults(v int64) *ListMedicalVocabulariesInput { 5144 s.MaxResults = &v 5145 return s 5146} 5147 5148// SetNameContains sets the NameContains field's value. 5149func (s *ListMedicalVocabulariesInput) SetNameContains(v string) *ListMedicalVocabulariesInput { 5150 s.NameContains = &v 5151 return s 5152} 5153 5154// SetNextToken sets the NextToken field's value. 5155func (s *ListMedicalVocabulariesInput) SetNextToken(v string) *ListMedicalVocabulariesInput { 5156 s.NextToken = &v 5157 return s 5158} 5159 5160// SetStateEquals sets the StateEquals field's value. 5161func (s *ListMedicalVocabulariesInput) SetStateEquals(v string) *ListMedicalVocabulariesInput { 5162 s.StateEquals = &v 5163 return s 5164} 5165 5166type ListMedicalVocabulariesOutput struct { 5167 _ struct{} `type:"structure"` 5168 5169 // The ListMedicalVocabularies operation returns a page of vocabularies at a 5170 // time. You set the maximum number of vocabularies to return on a page with 5171 // the MaxResults parameter. If there are more jobs in the list will fit on 5172 // a page, Amazon Transcribe Medical returns the NextPage token. To return the 5173 // next page of vocabularies, include the token in the next request to the ListMedicalVocabularies 5174 // operation . 5175 NextToken *string `type:"string"` 5176 5177 // The requested vocabulary state. 5178 Status *string `type:"string" enum:"VocabularyState"` 5179 5180 // A list of objects that describe the vocabularies that match your search criteria. 5181 Vocabularies []*VocabularyInfo `type:"list"` 5182} 5183 5184// String returns the string representation 5185func (s ListMedicalVocabulariesOutput) String() string { 5186 return awsutil.Prettify(s) 5187} 5188 5189// GoString returns the string representation 5190func (s ListMedicalVocabulariesOutput) GoString() string { 5191 return s.String() 5192} 5193 5194// SetNextToken sets the NextToken field's value. 5195func (s *ListMedicalVocabulariesOutput) SetNextToken(v string) *ListMedicalVocabulariesOutput { 5196 s.NextToken = &v 5197 return s 5198} 5199 5200// SetStatus sets the Status field's value. 5201func (s *ListMedicalVocabulariesOutput) SetStatus(v string) *ListMedicalVocabulariesOutput { 5202 s.Status = &v 5203 return s 5204} 5205 5206// SetVocabularies sets the Vocabularies field's value. 5207func (s *ListMedicalVocabulariesOutput) SetVocabularies(v []*VocabularyInfo) *ListMedicalVocabulariesOutput { 5208 s.Vocabularies = v 5209 return s 5210} 5211 5212type ListTranscriptionJobsInput struct { 5213 _ struct{} `type:"structure"` 5214 5215 // When specified, the jobs returned in the list are limited to jobs whose name 5216 // contains the specified string. 5217 JobNameContains *string `min:"1" type:"string"` 5218 5219 // The maximum number of jobs to return in the response. If there are fewer 5220 // results in the list, this response contains only the actual results. 5221 MaxResults *int64 `min:"1" type:"integer"` 5222 5223 // If the result of the previous request to ListTranscriptionJobs was truncated, 5224 // include the NextToken to fetch the next set of jobs. 5225 NextToken *string `type:"string"` 5226 5227 // When specified, returns only transcription jobs with the specified status. 5228 // Jobs are ordered by creation date, with the newest jobs returned first. If 5229 // you don’t specify a status, Amazon Transcribe returns all transcription 5230 // jobs ordered by creation date. 5231 Status *string `type:"string" enum:"TranscriptionJobStatus"` 5232} 5233 5234// String returns the string representation 5235func (s ListTranscriptionJobsInput) String() string { 5236 return awsutil.Prettify(s) 5237} 5238 5239// GoString returns the string representation 5240func (s ListTranscriptionJobsInput) GoString() string { 5241 return s.String() 5242} 5243 5244// Validate inspects the fields of the type to determine if they are valid. 5245func (s *ListTranscriptionJobsInput) Validate() error { 5246 invalidParams := request.ErrInvalidParams{Context: "ListTranscriptionJobsInput"} 5247 if s.JobNameContains != nil && len(*s.JobNameContains) < 1 { 5248 invalidParams.Add(request.NewErrParamMinLen("JobNameContains", 1)) 5249 } 5250 if s.MaxResults != nil && *s.MaxResults < 1 { 5251 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5252 } 5253 5254 if invalidParams.Len() > 0 { 5255 return invalidParams 5256 } 5257 return nil 5258} 5259 5260// SetJobNameContains sets the JobNameContains field's value. 5261func (s *ListTranscriptionJobsInput) SetJobNameContains(v string) *ListTranscriptionJobsInput { 5262 s.JobNameContains = &v 5263 return s 5264} 5265 5266// SetMaxResults sets the MaxResults field's value. 5267func (s *ListTranscriptionJobsInput) SetMaxResults(v int64) *ListTranscriptionJobsInput { 5268 s.MaxResults = &v 5269 return s 5270} 5271 5272// SetNextToken sets the NextToken field's value. 5273func (s *ListTranscriptionJobsInput) SetNextToken(v string) *ListTranscriptionJobsInput { 5274 s.NextToken = &v 5275 return s 5276} 5277 5278// SetStatus sets the Status field's value. 5279func (s *ListTranscriptionJobsInput) SetStatus(v string) *ListTranscriptionJobsInput { 5280 s.Status = &v 5281 return s 5282} 5283 5284type ListTranscriptionJobsOutput struct { 5285 _ struct{} `type:"structure"` 5286 5287 // The ListTranscriptionJobs operation returns a page of jobs at a time. The 5288 // maximum size of the page is set by the MaxResults parameter. If there are 5289 // more jobs in the list than the page size, Amazon Transcribe returns the NextPage 5290 // token. Include the token in the next request to the ListTranscriptionJobs 5291 // operation to return in the next page of jobs. 5292 NextToken *string `type:"string"` 5293 5294 // The requested status of the jobs returned. 5295 Status *string `type:"string" enum:"TranscriptionJobStatus"` 5296 5297 // A list of objects containing summary information for a transcription job. 5298 TranscriptionJobSummaries []*TranscriptionJobSummary `type:"list"` 5299} 5300 5301// String returns the string representation 5302func (s ListTranscriptionJobsOutput) String() string { 5303 return awsutil.Prettify(s) 5304} 5305 5306// GoString returns the string representation 5307func (s ListTranscriptionJobsOutput) GoString() string { 5308 return s.String() 5309} 5310 5311// SetNextToken sets the NextToken field's value. 5312func (s *ListTranscriptionJobsOutput) SetNextToken(v string) *ListTranscriptionJobsOutput { 5313 s.NextToken = &v 5314 return s 5315} 5316 5317// SetStatus sets the Status field's value. 5318func (s *ListTranscriptionJobsOutput) SetStatus(v string) *ListTranscriptionJobsOutput { 5319 s.Status = &v 5320 return s 5321} 5322 5323// SetTranscriptionJobSummaries sets the TranscriptionJobSummaries field's value. 5324func (s *ListTranscriptionJobsOutput) SetTranscriptionJobSummaries(v []*TranscriptionJobSummary) *ListTranscriptionJobsOutput { 5325 s.TranscriptionJobSummaries = v 5326 return s 5327} 5328 5329type ListVocabulariesInput struct { 5330 _ struct{} `type:"structure"` 5331 5332 // The maximum number of vocabularies to return in the response. If there are 5333 // fewer results in the list, this response contains only the actual results. 5334 MaxResults *int64 `min:"1" type:"integer"` 5335 5336 // When specified, the vocabularies returned in the list are limited to vocabularies 5337 // whose name contains the specified string. The search is not case sensitive, 5338 // ListVocabularies returns both "vocabularyname" and "VocabularyName" in the 5339 // response list. 5340 NameContains *string `min:"1" type:"string"` 5341 5342 // If the result of the previous request to ListVocabularies was truncated, 5343 // include the NextToken to fetch the next set of jobs. 5344 NextToken *string `type:"string"` 5345 5346 // When specified, only returns vocabularies with the VocabularyState field 5347 // equal to the specified state. 5348 StateEquals *string `type:"string" enum:"VocabularyState"` 5349} 5350 5351// String returns the string representation 5352func (s ListVocabulariesInput) String() string { 5353 return awsutil.Prettify(s) 5354} 5355 5356// GoString returns the string representation 5357func (s ListVocabulariesInput) GoString() string { 5358 return s.String() 5359} 5360 5361// Validate inspects the fields of the type to determine if they are valid. 5362func (s *ListVocabulariesInput) Validate() error { 5363 invalidParams := request.ErrInvalidParams{Context: "ListVocabulariesInput"} 5364 if s.MaxResults != nil && *s.MaxResults < 1 { 5365 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5366 } 5367 if s.NameContains != nil && len(*s.NameContains) < 1 { 5368 invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) 5369 } 5370 5371 if invalidParams.Len() > 0 { 5372 return invalidParams 5373 } 5374 return nil 5375} 5376 5377// SetMaxResults sets the MaxResults field's value. 5378func (s *ListVocabulariesInput) SetMaxResults(v int64) *ListVocabulariesInput { 5379 s.MaxResults = &v 5380 return s 5381} 5382 5383// SetNameContains sets the NameContains field's value. 5384func (s *ListVocabulariesInput) SetNameContains(v string) *ListVocabulariesInput { 5385 s.NameContains = &v 5386 return s 5387} 5388 5389// SetNextToken sets the NextToken field's value. 5390func (s *ListVocabulariesInput) SetNextToken(v string) *ListVocabulariesInput { 5391 s.NextToken = &v 5392 return s 5393} 5394 5395// SetStateEquals sets the StateEquals field's value. 5396func (s *ListVocabulariesInput) SetStateEquals(v string) *ListVocabulariesInput { 5397 s.StateEquals = &v 5398 return s 5399} 5400 5401type ListVocabulariesOutput struct { 5402 _ struct{} `type:"structure"` 5403 5404 // The ListVocabularies operation returns a page of vocabularies at a time. 5405 // The maximum size of the page is set in the MaxResults parameter. If there 5406 // are more jobs in the list than will fit on the page, Amazon Transcribe returns 5407 // the NextPage token. To return in the next page of jobs, include the token 5408 // in the next request to the ListVocabularies operation. 5409 NextToken *string `type:"string"` 5410 5411 // The requested vocabulary state. 5412 Status *string `type:"string" enum:"VocabularyState"` 5413 5414 // A list of objects that describe the vocabularies that match the search criteria 5415 // in the request. 5416 Vocabularies []*VocabularyInfo `type:"list"` 5417} 5418 5419// String returns the string representation 5420func (s ListVocabulariesOutput) String() string { 5421 return awsutil.Prettify(s) 5422} 5423 5424// GoString returns the string representation 5425func (s ListVocabulariesOutput) GoString() string { 5426 return s.String() 5427} 5428 5429// SetNextToken sets the NextToken field's value. 5430func (s *ListVocabulariesOutput) SetNextToken(v string) *ListVocabulariesOutput { 5431 s.NextToken = &v 5432 return s 5433} 5434 5435// SetStatus sets the Status field's value. 5436func (s *ListVocabulariesOutput) SetStatus(v string) *ListVocabulariesOutput { 5437 s.Status = &v 5438 return s 5439} 5440 5441// SetVocabularies sets the Vocabularies field's value. 5442func (s *ListVocabulariesOutput) SetVocabularies(v []*VocabularyInfo) *ListVocabulariesOutput { 5443 s.Vocabularies = v 5444 return s 5445} 5446 5447type ListVocabularyFiltersInput struct { 5448 _ struct{} `type:"structure"` 5449 5450 // The maximum number of filters to return in the response. If there are fewer 5451 // results in the list, this response contains only the actual results. 5452 MaxResults *int64 `min:"1" type:"integer"` 5453 5454 // Filters the response so that it only contains vocabulary filters whose name 5455 // contains the specified string. 5456 NameContains *string `min:"1" type:"string"` 5457 5458 // If the result of the previous request to ListVocabularyFilters was truncated, 5459 // include the NextToken to fetch the next set of collections. 5460 NextToken *string `type:"string"` 5461} 5462 5463// String returns the string representation 5464func (s ListVocabularyFiltersInput) String() string { 5465 return awsutil.Prettify(s) 5466} 5467 5468// GoString returns the string representation 5469func (s ListVocabularyFiltersInput) GoString() string { 5470 return s.String() 5471} 5472 5473// Validate inspects the fields of the type to determine if they are valid. 5474func (s *ListVocabularyFiltersInput) Validate() error { 5475 invalidParams := request.ErrInvalidParams{Context: "ListVocabularyFiltersInput"} 5476 if s.MaxResults != nil && *s.MaxResults < 1 { 5477 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5478 } 5479 if s.NameContains != nil && len(*s.NameContains) < 1 { 5480 invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) 5481 } 5482 5483 if invalidParams.Len() > 0 { 5484 return invalidParams 5485 } 5486 return nil 5487} 5488 5489// SetMaxResults sets the MaxResults field's value. 5490func (s *ListVocabularyFiltersInput) SetMaxResults(v int64) *ListVocabularyFiltersInput { 5491 s.MaxResults = &v 5492 return s 5493} 5494 5495// SetNameContains sets the NameContains field's value. 5496func (s *ListVocabularyFiltersInput) SetNameContains(v string) *ListVocabularyFiltersInput { 5497 s.NameContains = &v 5498 return s 5499} 5500 5501// SetNextToken sets the NextToken field's value. 5502func (s *ListVocabularyFiltersInput) SetNextToken(v string) *ListVocabularyFiltersInput { 5503 s.NextToken = &v 5504 return s 5505} 5506 5507type ListVocabularyFiltersOutput struct { 5508 _ struct{} `type:"structure"` 5509 5510 // The ListVocabularyFilters operation returns a page of collections at a time. 5511 // The maximum size of the page is set by the MaxResults parameter. If there 5512 // are more jobs in the list than the page size, Amazon Transcribe returns the 5513 // NextPage token. Include the token in the next request to the ListVocabularyFilters 5514 // operation to return in the next page of jobs. 5515 NextToken *string `type:"string"` 5516 5517 // The list of vocabulary filters. It contains at most MaxResults number of 5518 // filters. If there are more filters, call the ListVocabularyFilters operation 5519 // again with the NextToken parameter in the request set to the value of the 5520 // NextToken field in the response. 5521 VocabularyFilters []*VocabularyFilterInfo `type:"list"` 5522} 5523 5524// String returns the string representation 5525func (s ListVocabularyFiltersOutput) String() string { 5526 return awsutil.Prettify(s) 5527} 5528 5529// GoString returns the string representation 5530func (s ListVocabularyFiltersOutput) GoString() string { 5531 return s.String() 5532} 5533 5534// SetNextToken sets the NextToken field's value. 5535func (s *ListVocabularyFiltersOutput) SetNextToken(v string) *ListVocabularyFiltersOutput { 5536 s.NextToken = &v 5537 return s 5538} 5539 5540// SetVocabularyFilters sets the VocabularyFilters field's value. 5541func (s *ListVocabularyFiltersOutput) SetVocabularyFilters(v []*VocabularyFilterInfo) *ListVocabularyFiltersOutput { 5542 s.VocabularyFilters = v 5543 return s 5544} 5545 5546// Describes the input media file in a transcription request. 5547type Media struct { 5548 _ struct{} `type:"structure"` 5549 5550 // The S3 object location of the input media file. The URI must be in the same 5551 // region as the API endpoint that you are calling. The general form is: 5552 // 5553 // For example: 5554 // 5555 // For more information about S3 object names, see Object Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys) 5556 // in the Amazon S3 Developer Guide. 5557 MediaFileUri *string `min:"1" type:"string"` 5558} 5559 5560// String returns the string representation 5561func (s Media) String() string { 5562 return awsutil.Prettify(s) 5563} 5564 5565// GoString returns the string representation 5566func (s Media) GoString() string { 5567 return s.String() 5568} 5569 5570// Validate inspects the fields of the type to determine if they are valid. 5571func (s *Media) Validate() error { 5572 invalidParams := request.ErrInvalidParams{Context: "Media"} 5573 if s.MediaFileUri != nil && len(*s.MediaFileUri) < 1 { 5574 invalidParams.Add(request.NewErrParamMinLen("MediaFileUri", 1)) 5575 } 5576 5577 if invalidParams.Len() > 0 { 5578 return invalidParams 5579 } 5580 return nil 5581} 5582 5583// SetMediaFileUri sets the MediaFileUri field's value. 5584func (s *Media) SetMediaFileUri(v string) *Media { 5585 s.MediaFileUri = &v 5586 return s 5587} 5588 5589// Identifies the location of a medical transcript. 5590type MedicalTranscript struct { 5591 _ struct{} `type:"structure"` 5592 5593 // The S3 object location of the medical transcript. 5594 // 5595 // Use this URI to access the medical transcript. This URI points to the S3 5596 // bucket you created to store the medical transcript. 5597 TranscriptFileUri *string `min:"1" type:"string"` 5598} 5599 5600// String returns the string representation 5601func (s MedicalTranscript) String() string { 5602 return awsutil.Prettify(s) 5603} 5604 5605// GoString returns the string representation 5606func (s MedicalTranscript) GoString() string { 5607 return s.String() 5608} 5609 5610// SetTranscriptFileUri sets the TranscriptFileUri field's value. 5611func (s *MedicalTranscript) SetTranscriptFileUri(v string) *MedicalTranscript { 5612 s.TranscriptFileUri = &v 5613 return s 5614} 5615 5616// The data structure that contains the information for a medical transcription 5617// job. 5618type MedicalTranscriptionJob struct { 5619 _ struct{} `type:"structure"` 5620 5621 // A timestamp that shows when the job was completed. 5622 CompletionTime *time.Time `type:"timestamp"` 5623 5624 // A timestamp that shows when the job was created. 5625 CreationTime *time.Time `type:"timestamp"` 5626 5627 // If the TranscriptionJobStatus field is FAILED, this field contains information 5628 // about why the job failed. 5629 // 5630 // The FailureReason field contains one of the following values: 5631 // 5632 // * Unsupported media format- The media format specified in the MediaFormat 5633 // field of the request isn't valid. See the description of the MediaFormat 5634 // field for a list of valid values. 5635 // 5636 // * The media format provided does not match the detected media format- 5637 // The media format of the audio file doesn't match the format specified 5638 // in the MediaFormat field in the request. Check the media format of your 5639 // media file and make sure the two values match. 5640 // 5641 // * Invalid sample rate for audio file- The sample rate specified in the 5642 // MediaSampleRateHertz of the request isn't valid. The sample rate must 5643 // be between 8000 and 48000 Hertz. 5644 // 5645 // * The sample rate provided does not match the detected sample rate- The 5646 // sample rate in the audio file doesn't match the sample rate specified 5647 // in the MediaSampleRateHertz field in the request. Check the sample rate 5648 // of your media file and make sure that the two values match. 5649 // 5650 // * Invalid file size: file size too large- The size of your audio file 5651 // is larger than what Amazon Transcribe Medical can process. For more information, 5652 // see Guidelines and Quotas (https://docs.aws.amazon.com/transcribe/latest/dg/limits-guidelines.html#limits) 5653 // in the Amazon Transcribe Medical Guide 5654 // 5655 // * Invalid number of channels: number of channels too large- Your audio 5656 // contains more channels than Amazon Transcribe Medical is configured to 5657 // process. To request additional channels, see Amazon Transcribe Medical 5658 // Endpoints and Quotas (https://docs.aws.amazon.com/general/latest/gr/transcribe-medical.html) 5659 // in the Amazon Web Services General Reference 5660 FailureReason *string `type:"string"` 5661 5662 // The language code for the language spoken in the source audio file. US English 5663 // (en-US) is the only supported language for medical transcriptions. Any other 5664 // value you enter for language code results in a BadRequestException error. 5665 LanguageCode *string `type:"string" enum:"LanguageCode"` 5666 5667 // Describes the input media file in a transcription request. 5668 Media *Media `type:"structure"` 5669 5670 // The format of the input media file. 5671 MediaFormat *string `type:"string" enum:"MediaFormat"` 5672 5673 // The sample rate, in Hertz, of the source audio containing medical information. 5674 // 5675 // If you don't specify the sample rate, Amazon Transcribe Medical determines 5676 // it for you. If you choose to specify the sample rate, it must match the rate 5677 // detected by Amazon Transcribe Medical. In most cases, you should leave the 5678 // MediaSampleHertz blank and let Amazon Transcribe Medical determine the sample 5679 // rate. 5680 MediaSampleRateHertz *int64 `min:"8000" type:"integer"` 5681 5682 // The name for a given medical transcription job. 5683 MedicalTranscriptionJobName *string `min:"1" type:"string"` 5684 5685 // Object that contains object. 5686 Settings *MedicalTranscriptionSetting `type:"structure"` 5687 5688 // The medical specialty of any clinicians providing a dictation or having a 5689 // conversation. PRIMARYCARE is the only available setting for this object. 5690 // This specialty enables you to generate transcriptions for the following medical 5691 // fields: 5692 // 5693 // * Family Medicine 5694 Specialty *string `type:"string" enum:"Specialty"` 5695 5696 // A timestamp that shows when the job started processing. 5697 StartTime *time.Time `type:"timestamp"` 5698 5699 // An object that contains the MedicalTranscript. The MedicalTranscript contains 5700 // the TranscriptFileUri. 5701 Transcript *MedicalTranscript `type:"structure"` 5702 5703 // The completion status of a medical transcription job. 5704 TranscriptionJobStatus *string `type:"string" enum:"TranscriptionJobStatus"` 5705 5706 // The type of speech in the transcription job. CONVERSATION is generally used 5707 // for patient-physician dialogues. DICTATION is the setting for physicians 5708 // speaking their notes after seeing a patient. For more information, see how-it-works-med 5709 Type *string `type:"string" enum:"Type"` 5710} 5711 5712// String returns the string representation 5713func (s MedicalTranscriptionJob) String() string { 5714 return awsutil.Prettify(s) 5715} 5716 5717// GoString returns the string representation 5718func (s MedicalTranscriptionJob) GoString() string { 5719 return s.String() 5720} 5721 5722// SetCompletionTime sets the CompletionTime field's value. 5723func (s *MedicalTranscriptionJob) SetCompletionTime(v time.Time) *MedicalTranscriptionJob { 5724 s.CompletionTime = &v 5725 return s 5726} 5727 5728// SetCreationTime sets the CreationTime field's value. 5729func (s *MedicalTranscriptionJob) SetCreationTime(v time.Time) *MedicalTranscriptionJob { 5730 s.CreationTime = &v 5731 return s 5732} 5733 5734// SetFailureReason sets the FailureReason field's value. 5735func (s *MedicalTranscriptionJob) SetFailureReason(v string) *MedicalTranscriptionJob { 5736 s.FailureReason = &v 5737 return s 5738} 5739 5740// SetLanguageCode sets the LanguageCode field's value. 5741func (s *MedicalTranscriptionJob) SetLanguageCode(v string) *MedicalTranscriptionJob { 5742 s.LanguageCode = &v 5743 return s 5744} 5745 5746// SetMedia sets the Media field's value. 5747func (s *MedicalTranscriptionJob) SetMedia(v *Media) *MedicalTranscriptionJob { 5748 s.Media = v 5749 return s 5750} 5751 5752// SetMediaFormat sets the MediaFormat field's value. 5753func (s *MedicalTranscriptionJob) SetMediaFormat(v string) *MedicalTranscriptionJob { 5754 s.MediaFormat = &v 5755 return s 5756} 5757 5758// SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value. 5759func (s *MedicalTranscriptionJob) SetMediaSampleRateHertz(v int64) *MedicalTranscriptionJob { 5760 s.MediaSampleRateHertz = &v 5761 return s 5762} 5763 5764// SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value. 5765func (s *MedicalTranscriptionJob) SetMedicalTranscriptionJobName(v string) *MedicalTranscriptionJob { 5766 s.MedicalTranscriptionJobName = &v 5767 return s 5768} 5769 5770// SetSettings sets the Settings field's value. 5771func (s *MedicalTranscriptionJob) SetSettings(v *MedicalTranscriptionSetting) *MedicalTranscriptionJob { 5772 s.Settings = v 5773 return s 5774} 5775 5776// SetSpecialty sets the Specialty field's value. 5777func (s *MedicalTranscriptionJob) SetSpecialty(v string) *MedicalTranscriptionJob { 5778 s.Specialty = &v 5779 return s 5780} 5781 5782// SetStartTime sets the StartTime field's value. 5783func (s *MedicalTranscriptionJob) SetStartTime(v time.Time) *MedicalTranscriptionJob { 5784 s.StartTime = &v 5785 return s 5786} 5787 5788// SetTranscript sets the Transcript field's value. 5789func (s *MedicalTranscriptionJob) SetTranscript(v *MedicalTranscript) *MedicalTranscriptionJob { 5790 s.Transcript = v 5791 return s 5792} 5793 5794// SetTranscriptionJobStatus sets the TranscriptionJobStatus field's value. 5795func (s *MedicalTranscriptionJob) SetTranscriptionJobStatus(v string) *MedicalTranscriptionJob { 5796 s.TranscriptionJobStatus = &v 5797 return s 5798} 5799 5800// SetType sets the Type field's value. 5801func (s *MedicalTranscriptionJob) SetType(v string) *MedicalTranscriptionJob { 5802 s.Type = &v 5803 return s 5804} 5805 5806// Provides summary information about a transcription job. 5807type MedicalTranscriptionJobSummary struct { 5808 _ struct{} `type:"structure"` 5809 5810 // A timestamp that shows when the job was completed. 5811 CompletionTime *time.Time `type:"timestamp"` 5812 5813 // A timestamp that shows when the medical transcription job was created. 5814 CreationTime *time.Time `type:"timestamp"` 5815 5816 // If the TranscriptionJobStatus field is FAILED, a description of the error. 5817 FailureReason *string `type:"string"` 5818 5819 // The language of the transcript in the source audio file. 5820 LanguageCode *string `type:"string" enum:"LanguageCode"` 5821 5822 // The name of a medical transcription job. 5823 MedicalTranscriptionJobName *string `min:"1" type:"string"` 5824 5825 // Indicates the location of the transcription job's output. 5826 // 5827 // The CUSTOMER_BUCKET is the S3 location provided in the OutputBucketName field 5828 // when the 5829 OutputLocationType *string `type:"string" enum:"OutputLocationType"` 5830 5831 // The medical specialty of the transcription job. Primary care is the only 5832 // valid value. 5833 Specialty *string `type:"string" enum:"Specialty"` 5834 5835 // A timestamp that shows when the job began processing. 5836 StartTime *time.Time `type:"timestamp"` 5837 5838 // The status of the medical transcription job. 5839 TranscriptionJobStatus *string `type:"string" enum:"TranscriptionJobStatus"` 5840 5841 // The speech of the clinician in the input audio. 5842 Type *string `type:"string" enum:"Type"` 5843} 5844 5845// String returns the string representation 5846func (s MedicalTranscriptionJobSummary) String() string { 5847 return awsutil.Prettify(s) 5848} 5849 5850// GoString returns the string representation 5851func (s MedicalTranscriptionJobSummary) GoString() string { 5852 return s.String() 5853} 5854 5855// SetCompletionTime sets the CompletionTime field's value. 5856func (s *MedicalTranscriptionJobSummary) SetCompletionTime(v time.Time) *MedicalTranscriptionJobSummary { 5857 s.CompletionTime = &v 5858 return s 5859} 5860 5861// SetCreationTime sets the CreationTime field's value. 5862func (s *MedicalTranscriptionJobSummary) SetCreationTime(v time.Time) *MedicalTranscriptionJobSummary { 5863 s.CreationTime = &v 5864 return s 5865} 5866 5867// SetFailureReason sets the FailureReason field's value. 5868func (s *MedicalTranscriptionJobSummary) SetFailureReason(v string) *MedicalTranscriptionJobSummary { 5869 s.FailureReason = &v 5870 return s 5871} 5872 5873// SetLanguageCode sets the LanguageCode field's value. 5874func (s *MedicalTranscriptionJobSummary) SetLanguageCode(v string) *MedicalTranscriptionJobSummary { 5875 s.LanguageCode = &v 5876 return s 5877} 5878 5879// SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value. 5880func (s *MedicalTranscriptionJobSummary) SetMedicalTranscriptionJobName(v string) *MedicalTranscriptionJobSummary { 5881 s.MedicalTranscriptionJobName = &v 5882 return s 5883} 5884 5885// SetOutputLocationType sets the OutputLocationType field's value. 5886func (s *MedicalTranscriptionJobSummary) SetOutputLocationType(v string) *MedicalTranscriptionJobSummary { 5887 s.OutputLocationType = &v 5888 return s 5889} 5890 5891// SetSpecialty sets the Specialty field's value. 5892func (s *MedicalTranscriptionJobSummary) SetSpecialty(v string) *MedicalTranscriptionJobSummary { 5893 s.Specialty = &v 5894 return s 5895} 5896 5897// SetStartTime sets the StartTime field's value. 5898func (s *MedicalTranscriptionJobSummary) SetStartTime(v time.Time) *MedicalTranscriptionJobSummary { 5899 s.StartTime = &v 5900 return s 5901} 5902 5903// SetTranscriptionJobStatus sets the TranscriptionJobStatus field's value. 5904func (s *MedicalTranscriptionJobSummary) SetTranscriptionJobStatus(v string) *MedicalTranscriptionJobSummary { 5905 s.TranscriptionJobStatus = &v 5906 return s 5907} 5908 5909// SetType sets the Type field's value. 5910func (s *MedicalTranscriptionJobSummary) SetType(v string) *MedicalTranscriptionJobSummary { 5911 s.Type = &v 5912 return s 5913} 5914 5915// Optional settings for the StartMedicalTranscriptionJob operation. 5916type MedicalTranscriptionSetting struct { 5917 _ struct{} `type:"structure"` 5918 5919 // Instructs Amazon Transcribe Medical to process each audio channel separately 5920 // and then merge the transcription output of each channel into a single transcription. 5921 // 5922 // Amazon Transcribe Medical also produces a transcription of each item detected 5923 // on an audio channel, including the start time and end time of the item and 5924 // alternative transcriptions of item. The alternative transcriptions also come 5925 // with confidence scores provided by Amazon Transcribe Medical. 5926 // 5927 // You can't set both ShowSpeakerLabels and ChannelIdentification in the same 5928 // request. If you set both, your request returns a BadRequestException 5929 ChannelIdentification *bool `type:"boolean"` 5930 5931 // The maximum number of alternatives that you tell the service to return. If 5932 // you specify the MaxAlternatives field, you must set the ShowAlternatives 5933 // field to true. 5934 MaxAlternatives *int64 `min:"2" type:"integer"` 5935 5936 // The maximum number of speakers to identify in the input audio. If there are 5937 // more speakers in the audio than this number, multiple speakers are identified 5938 // as a single speaker. If you specify the MaxSpeakerLabels field, you must 5939 // set the ShowSpeakerLabels field to true. 5940 MaxSpeakerLabels *int64 `min:"2" type:"integer"` 5941 5942 // Determines whether alternative transcripts are generated along with the transcript 5943 // that has the highest confidence. If you set ShowAlternatives field to true, 5944 // you must also set the maximum number of alternatives to return in the MaxAlternatives 5945 // field. 5946 ShowAlternatives *bool `type:"boolean"` 5947 5948 // Determines whether the transcription job uses speaker recognition to identify 5949 // different speakers in the input audio. Speaker recognition labels individual 5950 // speakers in the audio file. If you set the ShowSpeakerLabels field to true, 5951 // you must also set the maximum number of speaker labels in the MaxSpeakerLabels 5952 // field. 5953 // 5954 // You can't set both ShowSpeakerLabels and ChannelIdentification in the same 5955 // request. If you set both, your request returns a BadRequestException. 5956 ShowSpeakerLabels *bool `type:"boolean"` 5957 5958 // The name of the vocabulary to use when processing a medical transcription 5959 // job. 5960 VocabularyName *string `min:"1" type:"string"` 5961} 5962 5963// String returns the string representation 5964func (s MedicalTranscriptionSetting) String() string { 5965 return awsutil.Prettify(s) 5966} 5967 5968// GoString returns the string representation 5969func (s MedicalTranscriptionSetting) GoString() string { 5970 return s.String() 5971} 5972 5973// Validate inspects the fields of the type to determine if they are valid. 5974func (s *MedicalTranscriptionSetting) Validate() error { 5975 invalidParams := request.ErrInvalidParams{Context: "MedicalTranscriptionSetting"} 5976 if s.MaxAlternatives != nil && *s.MaxAlternatives < 2 { 5977 invalidParams.Add(request.NewErrParamMinValue("MaxAlternatives", 2)) 5978 } 5979 if s.MaxSpeakerLabels != nil && *s.MaxSpeakerLabels < 2 { 5980 invalidParams.Add(request.NewErrParamMinValue("MaxSpeakerLabels", 2)) 5981 } 5982 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 5983 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 5984 } 5985 5986 if invalidParams.Len() > 0 { 5987 return invalidParams 5988 } 5989 return nil 5990} 5991 5992// SetChannelIdentification sets the ChannelIdentification field's value. 5993func (s *MedicalTranscriptionSetting) SetChannelIdentification(v bool) *MedicalTranscriptionSetting { 5994 s.ChannelIdentification = &v 5995 return s 5996} 5997 5998// SetMaxAlternatives sets the MaxAlternatives field's value. 5999func (s *MedicalTranscriptionSetting) SetMaxAlternatives(v int64) *MedicalTranscriptionSetting { 6000 s.MaxAlternatives = &v 6001 return s 6002} 6003 6004// SetMaxSpeakerLabels sets the MaxSpeakerLabels field's value. 6005func (s *MedicalTranscriptionSetting) SetMaxSpeakerLabels(v int64) *MedicalTranscriptionSetting { 6006 s.MaxSpeakerLabels = &v 6007 return s 6008} 6009 6010// SetShowAlternatives sets the ShowAlternatives field's value. 6011func (s *MedicalTranscriptionSetting) SetShowAlternatives(v bool) *MedicalTranscriptionSetting { 6012 s.ShowAlternatives = &v 6013 return s 6014} 6015 6016// SetShowSpeakerLabels sets the ShowSpeakerLabels field's value. 6017func (s *MedicalTranscriptionSetting) SetShowSpeakerLabels(v bool) *MedicalTranscriptionSetting { 6018 s.ShowSpeakerLabels = &v 6019 return s 6020} 6021 6022// SetVocabularyName sets the VocabularyName field's value. 6023func (s *MedicalTranscriptionSetting) SetVocabularyName(v string) *MedicalTranscriptionSetting { 6024 s.VocabularyName = &v 6025 return s 6026} 6027 6028// The object used to call your custom language model to your transcription 6029// job. 6030type ModelSettings struct { 6031 _ struct{} `type:"structure"` 6032 6033 // The name of your custom language model. 6034 LanguageModelName *string `min:"1" type:"string"` 6035} 6036 6037// String returns the string representation 6038func (s ModelSettings) String() string { 6039 return awsutil.Prettify(s) 6040} 6041 6042// GoString returns the string representation 6043func (s ModelSettings) GoString() string { 6044 return s.String() 6045} 6046 6047// Validate inspects the fields of the type to determine if they are valid. 6048func (s *ModelSettings) Validate() error { 6049 invalidParams := request.ErrInvalidParams{Context: "ModelSettings"} 6050 if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 { 6051 invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1)) 6052 } 6053 6054 if invalidParams.Len() > 0 { 6055 return invalidParams 6056 } 6057 return nil 6058} 6059 6060// SetLanguageModelName sets the LanguageModelName field's value. 6061func (s *ModelSettings) SetLanguageModelName(v string) *ModelSettings { 6062 s.LanguageModelName = &v 6063 return s 6064} 6065 6066// We can't find the requested resource. Check the name and try your request 6067// again. 6068type NotFoundException struct { 6069 _ struct{} `type:"structure"` 6070 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6071 6072 Message_ *string `locationName:"Message" type:"string"` 6073} 6074 6075// String returns the string representation 6076func (s NotFoundException) String() string { 6077 return awsutil.Prettify(s) 6078} 6079 6080// GoString returns the string representation 6081func (s NotFoundException) GoString() string { 6082 return s.String() 6083} 6084 6085func newErrorNotFoundException(v protocol.ResponseMetadata) error { 6086 return &NotFoundException{ 6087 RespMetadata: v, 6088 } 6089} 6090 6091// Code returns the exception type name. 6092func (s *NotFoundException) Code() string { 6093 return "NotFoundException" 6094} 6095 6096// Message returns the exception's message. 6097func (s *NotFoundException) Message() string { 6098 if s.Message_ != nil { 6099 return *s.Message_ 6100 } 6101 return "" 6102} 6103 6104// OrigErr always returns nil, satisfies awserr.Error interface. 6105func (s *NotFoundException) OrigErr() error { 6106 return nil 6107} 6108 6109func (s *NotFoundException) Error() string { 6110 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6111} 6112 6113// Status code returns the HTTP status code for the request's response error. 6114func (s *NotFoundException) StatusCode() int { 6115 return s.RespMetadata.StatusCode 6116} 6117 6118// RequestID returns the service's response RequestID for request. 6119func (s *NotFoundException) RequestID() string { 6120 return s.RespMetadata.RequestID 6121} 6122 6123// Provides optional settings for the StartTranscriptionJob operation. 6124type Settings struct { 6125 _ struct{} `type:"structure"` 6126 6127 // Instructs Amazon Transcribe to process each audio channel separately and 6128 // then merge the transcription output of each channel into a single transcription. 6129 // 6130 // Amazon Transcribe also produces a transcription of each item detected on 6131 // an audio channel, including the start time and end time of the item and alternative 6132 // transcriptions of the item including the confidence that Amazon Transcribe 6133 // has in the transcription. 6134 // 6135 // You can't set both ShowSpeakerLabels and ChannelIdentification in the same 6136 // request. If you set both, your request returns a BadRequestException. 6137 ChannelIdentification *bool `type:"boolean"` 6138 6139 // The number of alternative transcriptions that the service should return. 6140 // If you specify the MaxAlternatives field, you must set the ShowAlternatives 6141 // field to true. 6142 MaxAlternatives *int64 `min:"2" type:"integer"` 6143 6144 // The maximum number of speakers to identify in the input audio. If there are 6145 // more speakers in the audio than this number, multiple speakers are identified 6146 // as a single speaker. If you specify the MaxSpeakerLabels field, you must 6147 // set the ShowSpeakerLabels field to true. 6148 MaxSpeakerLabels *int64 `min:"2" type:"integer"` 6149 6150 // Determines whether the transcription contains alternative transcriptions. 6151 // If you set the ShowAlternatives field to true, you must also set the maximum 6152 // number of alternatives to return in the MaxAlternatives field. 6153 ShowAlternatives *bool `type:"boolean"` 6154 6155 // Determines whether the transcription job uses speaker recognition to identify 6156 // different speakers in the input audio. Speaker recognition labels individual 6157 // speakers in the audio file. If you set the ShowSpeakerLabels field to true, 6158 // you must also set the maximum number of speaker labels MaxSpeakerLabels field. 6159 // 6160 // You can't set both ShowSpeakerLabels and ChannelIdentification in the same 6161 // request. If you set both, your request returns a BadRequestException. 6162 ShowSpeakerLabels *bool `type:"boolean"` 6163 6164 // Set to mask to remove filtered text from the transcript and replace it with 6165 // three asterisks ("***") as placeholder text. Set to remove to remove filtered 6166 // text from the transcript without using placeholder text. 6167 VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"` 6168 6169 // The name of the vocabulary filter to use when transcribing the audio. The 6170 // filter that you specify must have the same language code as the transcription 6171 // job. 6172 VocabularyFilterName *string `min:"1" type:"string"` 6173 6174 // The name of a vocabulary to use when processing the transcription job. 6175 VocabularyName *string `min:"1" type:"string"` 6176} 6177 6178// String returns the string representation 6179func (s Settings) String() string { 6180 return awsutil.Prettify(s) 6181} 6182 6183// GoString returns the string representation 6184func (s Settings) GoString() string { 6185 return s.String() 6186} 6187 6188// Validate inspects the fields of the type to determine if they are valid. 6189func (s *Settings) Validate() error { 6190 invalidParams := request.ErrInvalidParams{Context: "Settings"} 6191 if s.MaxAlternatives != nil && *s.MaxAlternatives < 2 { 6192 invalidParams.Add(request.NewErrParamMinValue("MaxAlternatives", 2)) 6193 } 6194 if s.MaxSpeakerLabels != nil && *s.MaxSpeakerLabels < 2 { 6195 invalidParams.Add(request.NewErrParamMinValue("MaxSpeakerLabels", 2)) 6196 } 6197 if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { 6198 invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) 6199 } 6200 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 6201 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 6202 } 6203 6204 if invalidParams.Len() > 0 { 6205 return invalidParams 6206 } 6207 return nil 6208} 6209 6210// SetChannelIdentification sets the ChannelIdentification field's value. 6211func (s *Settings) SetChannelIdentification(v bool) *Settings { 6212 s.ChannelIdentification = &v 6213 return s 6214} 6215 6216// SetMaxAlternatives sets the MaxAlternatives field's value. 6217func (s *Settings) SetMaxAlternatives(v int64) *Settings { 6218 s.MaxAlternatives = &v 6219 return s 6220} 6221 6222// SetMaxSpeakerLabels sets the MaxSpeakerLabels field's value. 6223func (s *Settings) SetMaxSpeakerLabels(v int64) *Settings { 6224 s.MaxSpeakerLabels = &v 6225 return s 6226} 6227 6228// SetShowAlternatives sets the ShowAlternatives field's value. 6229func (s *Settings) SetShowAlternatives(v bool) *Settings { 6230 s.ShowAlternatives = &v 6231 return s 6232} 6233 6234// SetShowSpeakerLabels sets the ShowSpeakerLabels field's value. 6235func (s *Settings) SetShowSpeakerLabels(v bool) *Settings { 6236 s.ShowSpeakerLabels = &v 6237 return s 6238} 6239 6240// SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value. 6241func (s *Settings) SetVocabularyFilterMethod(v string) *Settings { 6242 s.VocabularyFilterMethod = &v 6243 return s 6244} 6245 6246// SetVocabularyFilterName sets the VocabularyFilterName field's value. 6247func (s *Settings) SetVocabularyFilterName(v string) *Settings { 6248 s.VocabularyFilterName = &v 6249 return s 6250} 6251 6252// SetVocabularyName sets the VocabularyName field's value. 6253func (s *Settings) SetVocabularyName(v string) *Settings { 6254 s.VocabularyName = &v 6255 return s 6256} 6257 6258type StartMedicalTranscriptionJobInput struct { 6259 _ struct{} `type:"structure"` 6260 6261 // The language code for the language spoken in the input media file. US English 6262 // (en-US) is the valid value for medical transcription jobs. Any other value 6263 // you enter for language code results in a BadRequestException error. 6264 // 6265 // LanguageCode is a required field 6266 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 6267 6268 // Describes the input media file in a transcription request. 6269 // 6270 // Media is a required field 6271 Media *Media `type:"structure" required:"true"` 6272 6273 // The audio format of the input media file. 6274 MediaFormat *string `type:"string" enum:"MediaFormat"` 6275 6276 // The sample rate, in Hertz, of the audio track in the input media file. 6277 // 6278 // If you do not specify the media sample rate, Amazon Transcribe Medical determines 6279 // the sample rate. If you specify the sample rate, it must match the rate detected 6280 // by Amazon Transcribe Medical. In most cases, you should leave the MediaSampleRateHertz 6281 // field blank and let Amazon Transcribe Medical determine the sample rate. 6282 MediaSampleRateHertz *int64 `min:"8000" type:"integer"` 6283 6284 // The name of the medical transcription job. You can't use the strings "." 6285 // or ".." by themselves as the job name. The name must also be unique within 6286 // an AWS account. If you try to create a medical transcription job with the 6287 // same name as a previous medical transcription job, you get a ConflictException 6288 // error. 6289 // 6290 // MedicalTranscriptionJobName is a required field 6291 MedicalTranscriptionJobName *string `min:"1" type:"string" required:"true"` 6292 6293 // The Amazon S3 location where the transcription is stored. 6294 // 6295 // You must set OutputBucketName for Amazon Transcribe Medical to store the 6296 // transcription results. Your transcript appears in the S3 location you specify. 6297 // When you call the GetMedicalTranscriptionJob, the operation returns this 6298 // location in the TranscriptFileUri field. The S3 bucket must have permissions 6299 // that allow Amazon Transcribe Medical to put files in the bucket. For more 6300 // information, see Permissions Required for IAM User Roles (https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user). 6301 // 6302 // You can specify an AWS Key Management Service (KMS) key to encrypt the output 6303 // of your transcription using the OutputEncryptionKMSKeyId parameter. If you 6304 // don't specify a KMS key, Amazon Transcribe Medical uses the default Amazon 6305 // S3 key for server-side encryption of transcripts that are placed in your 6306 // S3 bucket. 6307 // 6308 // OutputBucketName is a required field 6309 OutputBucketName *string `type:"string" required:"true"` 6310 6311 // The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key 6312 // used to encrypt the output of the transcription job. The user calling the 6313 // StartMedicalTranscriptionJob operation must have permission to use the specified 6314 // KMS key. 6315 // 6316 // You use either of the following to identify a KMS key in the current account: 6317 // 6318 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 6319 // 6320 // * KMS Key Alias: "alias/ExampleAlias" 6321 // 6322 // You can use either of the following to identify a KMS key in the current 6323 // account or another account: 6324 // 6325 // * Amazon Resource Name (ARN) of a KMS key in the current account or another 6326 // account: "arn:aws:kms:region:account ID:key/1234abcd-12ab-34cd-56ef-1234567890ab" 6327 // 6328 // * ARN of a KMS Key Alias: "arn:aws:kms:region:account ID:alias/ExampleAlias" 6329 // 6330 // If you don't specify an encryption key, the output of the medical transcription 6331 // job is encrypted with the default Amazon S3 key (SSE-S3). 6332 // 6333 // If you specify a KMS key to encrypt your output, you must also specify an 6334 // output location in the OutputBucketName parameter. 6335 OutputEncryptionKMSKeyId *string `min:"1" type:"string"` 6336 6337 // You can specify a location in an Amazon S3 bucket to store the output of 6338 // your medical transcription job. 6339 // 6340 // If you don't specify an output key, Amazon Transcribe Medical stores the 6341 // output of your transcription job in the Amazon S3 bucket you specified. By 6342 // default, the object key is "your-transcription-job-name.json". 6343 // 6344 // You can use output keys to specify the Amazon S3 prefix and file name of 6345 // the transcription output. For example, specifying the Amazon S3 prefix, "folder1/folder2/", 6346 // as an output key would lead to the output being stored as "folder1/folder2/your-transcription-job-name.json". 6347 // If you specify "my-other-job-name.json" as the output key, the object key 6348 // is changed to "my-other-job-name.json". You can use an output key to change 6349 // both the prefix and the file name, for example "folder/my-other-job-name.json". 6350 // 6351 // If you specify an output key, you must also specify an S3 bucket in the OutputBucketName 6352 // parameter. 6353 OutputKey *string `min:"1" type:"string"` 6354 6355 // Optional settings for the medical transcription job. 6356 Settings *MedicalTranscriptionSetting `type:"structure"` 6357 6358 // The medical specialty of any clinician speaking in the input media. 6359 // 6360 // Specialty is a required field 6361 Specialty *string `type:"string" required:"true" enum:"Specialty"` 6362 6363 // The type of speech in the input audio. CONVERSATION refers to conversations 6364 // between two or more speakers, e.g., a conversations between doctors and patients. 6365 // DICTATION refers to single-speaker dictated speech, e.g., for clinical notes. 6366 // 6367 // Type is a required field 6368 Type *string `type:"string" required:"true" enum:"Type"` 6369} 6370 6371// String returns the string representation 6372func (s StartMedicalTranscriptionJobInput) String() string { 6373 return awsutil.Prettify(s) 6374} 6375 6376// GoString returns the string representation 6377func (s StartMedicalTranscriptionJobInput) GoString() string { 6378 return s.String() 6379} 6380 6381// Validate inspects the fields of the type to determine if they are valid. 6382func (s *StartMedicalTranscriptionJobInput) Validate() error { 6383 invalidParams := request.ErrInvalidParams{Context: "StartMedicalTranscriptionJobInput"} 6384 if s.LanguageCode == nil { 6385 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 6386 } 6387 if s.Media == nil { 6388 invalidParams.Add(request.NewErrParamRequired("Media")) 6389 } 6390 if s.MediaSampleRateHertz != nil && *s.MediaSampleRateHertz < 8000 { 6391 invalidParams.Add(request.NewErrParamMinValue("MediaSampleRateHertz", 8000)) 6392 } 6393 if s.MedicalTranscriptionJobName == nil { 6394 invalidParams.Add(request.NewErrParamRequired("MedicalTranscriptionJobName")) 6395 } 6396 if s.MedicalTranscriptionJobName != nil && len(*s.MedicalTranscriptionJobName) < 1 { 6397 invalidParams.Add(request.NewErrParamMinLen("MedicalTranscriptionJobName", 1)) 6398 } 6399 if s.OutputBucketName == nil { 6400 invalidParams.Add(request.NewErrParamRequired("OutputBucketName")) 6401 } 6402 if s.OutputEncryptionKMSKeyId != nil && len(*s.OutputEncryptionKMSKeyId) < 1 { 6403 invalidParams.Add(request.NewErrParamMinLen("OutputEncryptionKMSKeyId", 1)) 6404 } 6405 if s.OutputKey != nil && len(*s.OutputKey) < 1 { 6406 invalidParams.Add(request.NewErrParamMinLen("OutputKey", 1)) 6407 } 6408 if s.Specialty == nil { 6409 invalidParams.Add(request.NewErrParamRequired("Specialty")) 6410 } 6411 if s.Type == nil { 6412 invalidParams.Add(request.NewErrParamRequired("Type")) 6413 } 6414 if s.Media != nil { 6415 if err := s.Media.Validate(); err != nil { 6416 invalidParams.AddNested("Media", err.(request.ErrInvalidParams)) 6417 } 6418 } 6419 if s.Settings != nil { 6420 if err := s.Settings.Validate(); err != nil { 6421 invalidParams.AddNested("Settings", err.(request.ErrInvalidParams)) 6422 } 6423 } 6424 6425 if invalidParams.Len() > 0 { 6426 return invalidParams 6427 } 6428 return nil 6429} 6430 6431// SetLanguageCode sets the LanguageCode field's value. 6432func (s *StartMedicalTranscriptionJobInput) SetLanguageCode(v string) *StartMedicalTranscriptionJobInput { 6433 s.LanguageCode = &v 6434 return s 6435} 6436 6437// SetMedia sets the Media field's value. 6438func (s *StartMedicalTranscriptionJobInput) SetMedia(v *Media) *StartMedicalTranscriptionJobInput { 6439 s.Media = v 6440 return s 6441} 6442 6443// SetMediaFormat sets the MediaFormat field's value. 6444func (s *StartMedicalTranscriptionJobInput) SetMediaFormat(v string) *StartMedicalTranscriptionJobInput { 6445 s.MediaFormat = &v 6446 return s 6447} 6448 6449// SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value. 6450func (s *StartMedicalTranscriptionJobInput) SetMediaSampleRateHertz(v int64) *StartMedicalTranscriptionJobInput { 6451 s.MediaSampleRateHertz = &v 6452 return s 6453} 6454 6455// SetMedicalTranscriptionJobName sets the MedicalTranscriptionJobName field's value. 6456func (s *StartMedicalTranscriptionJobInput) SetMedicalTranscriptionJobName(v string) *StartMedicalTranscriptionJobInput { 6457 s.MedicalTranscriptionJobName = &v 6458 return s 6459} 6460 6461// SetOutputBucketName sets the OutputBucketName field's value. 6462func (s *StartMedicalTranscriptionJobInput) SetOutputBucketName(v string) *StartMedicalTranscriptionJobInput { 6463 s.OutputBucketName = &v 6464 return s 6465} 6466 6467// SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value. 6468func (s *StartMedicalTranscriptionJobInput) SetOutputEncryptionKMSKeyId(v string) *StartMedicalTranscriptionJobInput { 6469 s.OutputEncryptionKMSKeyId = &v 6470 return s 6471} 6472 6473// SetOutputKey sets the OutputKey field's value. 6474func (s *StartMedicalTranscriptionJobInput) SetOutputKey(v string) *StartMedicalTranscriptionJobInput { 6475 s.OutputKey = &v 6476 return s 6477} 6478 6479// SetSettings sets the Settings field's value. 6480func (s *StartMedicalTranscriptionJobInput) SetSettings(v *MedicalTranscriptionSetting) *StartMedicalTranscriptionJobInput { 6481 s.Settings = v 6482 return s 6483} 6484 6485// SetSpecialty sets the Specialty field's value. 6486func (s *StartMedicalTranscriptionJobInput) SetSpecialty(v string) *StartMedicalTranscriptionJobInput { 6487 s.Specialty = &v 6488 return s 6489} 6490 6491// SetType sets the Type field's value. 6492func (s *StartMedicalTranscriptionJobInput) SetType(v string) *StartMedicalTranscriptionJobInput { 6493 s.Type = &v 6494 return s 6495} 6496 6497type StartMedicalTranscriptionJobOutput struct { 6498 _ struct{} `type:"structure"` 6499 6500 // A batch job submitted to transcribe medical speech to text. 6501 MedicalTranscriptionJob *MedicalTranscriptionJob `type:"structure"` 6502} 6503 6504// String returns the string representation 6505func (s StartMedicalTranscriptionJobOutput) String() string { 6506 return awsutil.Prettify(s) 6507} 6508 6509// GoString returns the string representation 6510func (s StartMedicalTranscriptionJobOutput) GoString() string { 6511 return s.String() 6512} 6513 6514// SetMedicalTranscriptionJob sets the MedicalTranscriptionJob field's value. 6515func (s *StartMedicalTranscriptionJobOutput) SetMedicalTranscriptionJob(v *MedicalTranscriptionJob) *StartMedicalTranscriptionJobOutput { 6516 s.MedicalTranscriptionJob = v 6517 return s 6518} 6519 6520type StartTranscriptionJobInput struct { 6521 _ struct{} `type:"structure"` 6522 6523 // An object that contains the request parameters for content redaction. 6524 ContentRedaction *ContentRedaction `type:"structure"` 6525 6526 // Set this field to true to enable automatic language identification. Automatic 6527 // language identification is disabled by default. You receive a BadRequestException 6528 // error if you enter a value for a LanguageCode. 6529 IdentifyLanguage *bool `type:"boolean"` 6530 6531 // Provides information about how a transcription job is executed. Use this 6532 // field to indicate that the job can be queued for deferred execution if the 6533 // concurrency limit is reached and there are no slots available to immediately 6534 // run the job. 6535 JobExecutionSettings *JobExecutionSettings `type:"structure"` 6536 6537 // The language code for the language used in the input media file. 6538 LanguageCode *string `type:"string" enum:"LanguageCode"` 6539 6540 // An object containing a list of languages that might be present in your collection 6541 // of audio files. Automatic language identification chooses a language that 6542 // best matches the source audio from that list. 6543 LanguageOptions []*string `min:"2" type:"list"` 6544 6545 // An object that describes the input media for a transcription job. 6546 // 6547 // Media is a required field 6548 Media *Media `type:"structure" required:"true"` 6549 6550 // The format of the input media file. 6551 MediaFormat *string `type:"string" enum:"MediaFormat"` 6552 6553 // The sample rate, in Hertz, of the audio track in the input media file. 6554 // 6555 // If you do not specify the media sample rate, Amazon Transcribe determines 6556 // the sample rate. If you specify the sample rate, it must match the sample 6557 // rate detected by Amazon Transcribe. In most cases, you should leave the MediaSampleRateHertz 6558 // field blank and let Amazon Transcribe determine the sample rate. 6559 MediaSampleRateHertz *int64 `min:"8000" type:"integer"` 6560 6561 // Choose the custom language model you use for your transcription job in this 6562 // parameter. 6563 ModelSettings *ModelSettings `type:"structure"` 6564 6565 // The location where the transcription is stored. 6566 // 6567 // If you set the OutputBucketName, Amazon Transcribe puts the transcript in 6568 // the specified S3 bucket. When you call the GetTranscriptionJob operation, 6569 // the operation returns this location in the TranscriptFileUri field. If you 6570 // enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri. 6571 // If you enable content redaction and choose to output an unredacted transcript, 6572 // that transcript's location still appears in the TranscriptFileUri. The S3 6573 // bucket must have permissions that allow Amazon Transcribe to put files in 6574 // the bucket. For more information, see Permissions Required for IAM User Roles 6575 // (https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user). 6576 // 6577 // You can specify an AWS Key Management Service (KMS) key to encrypt the output 6578 // of your transcription using the OutputEncryptionKMSKeyId parameter. If you 6579 // don't specify a KMS key, Amazon Transcribe uses the default Amazon S3 key 6580 // for server-side encryption of transcripts that are placed in your S3 bucket. 6581 // 6582 // If you don't set the OutputBucketName, Amazon Transcribe generates a pre-signed 6583 // URL, a shareable URL that provides secure access to your transcription, and 6584 // returns it in the TranscriptFileUri field. Use this URL to download the transcription. 6585 OutputBucketName *string `type:"string"` 6586 6587 // The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key 6588 // used to encrypt the output of the transcription job. The user calling the 6589 // StartTranscriptionJob operation must have permission to use the specified 6590 // KMS key. 6591 // 6592 // You can use either of the following to identify a KMS key in the current 6593 // account: 6594 // 6595 // * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" 6596 // 6597 // * KMS Key Alias: "alias/ExampleAlias" 6598 // 6599 // You can use either of the following to identify a KMS key in the current 6600 // account or another account: 6601 // 6602 // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:region:account 6603 // ID:key/1234abcd-12ab-34cd-56ef-1234567890ab" 6604 // 6605 // * ARN of a KMS Key Alias: "arn:aws:kms:region:account ID:alias/ExampleAlias" 6606 // 6607 // If you don't specify an encryption key, the output of the transcription job 6608 // is encrypted with the default Amazon S3 key (SSE-S3). 6609 // 6610 // If you specify a KMS key to encrypt your output, you must also specify an 6611 // output location in the OutputBucketName parameter. 6612 OutputEncryptionKMSKeyId *string `min:"1" type:"string"` 6613 6614 // You can specify a location in an Amazon S3 bucket to store the output of 6615 // your transcription job. 6616 // 6617 // If you don't specify an output key, Amazon Transcribe stores the output of 6618 // your transcription job in the Amazon S3 bucket you specified. By default, 6619 // the object key is "your-transcription-job-name.json". 6620 // 6621 // You can use output keys to specify the Amazon S3 prefix and file name of 6622 // the transcription output. For example, specifying the Amazon S3 prefix, "folder1/folder2/", 6623 // as an output key would lead to the output being stored as "folder1/folder2/your-transcription-job-name.json". 6624 // If you specify "my-other-job-name.json" as the output key, the object key 6625 // is changed to "my-other-job-name.json". You can use an output key to change 6626 // both the prefix and the file name, for example "folder/my-other-job-name.json". 6627 // 6628 // If you specify an output key, you must also specify an S3 bucket in the OutputBucketName 6629 // parameter. 6630 OutputKey *string `min:"1" type:"string"` 6631 6632 // A Settings object that provides optional settings for a transcription job. 6633 Settings *Settings `type:"structure"` 6634 6635 // The name of the job. You can't use the strings "." or ".." by themselves 6636 // as the job name. The name must also be unique within an AWS account. If you 6637 // try to create a transcription job with the same name as a previous transcription 6638 // job, you get a ConflictException error. 6639 // 6640 // TranscriptionJobName is a required field 6641 TranscriptionJobName *string `min:"1" type:"string" required:"true"` 6642} 6643 6644// String returns the string representation 6645func (s StartTranscriptionJobInput) String() string { 6646 return awsutil.Prettify(s) 6647} 6648 6649// GoString returns the string representation 6650func (s StartTranscriptionJobInput) GoString() string { 6651 return s.String() 6652} 6653 6654// Validate inspects the fields of the type to determine if they are valid. 6655func (s *StartTranscriptionJobInput) Validate() error { 6656 invalidParams := request.ErrInvalidParams{Context: "StartTranscriptionJobInput"} 6657 if s.LanguageOptions != nil && len(s.LanguageOptions) < 2 { 6658 invalidParams.Add(request.NewErrParamMinLen("LanguageOptions", 2)) 6659 } 6660 if s.Media == nil { 6661 invalidParams.Add(request.NewErrParamRequired("Media")) 6662 } 6663 if s.MediaSampleRateHertz != nil && *s.MediaSampleRateHertz < 8000 { 6664 invalidParams.Add(request.NewErrParamMinValue("MediaSampleRateHertz", 8000)) 6665 } 6666 if s.OutputEncryptionKMSKeyId != nil && len(*s.OutputEncryptionKMSKeyId) < 1 { 6667 invalidParams.Add(request.NewErrParamMinLen("OutputEncryptionKMSKeyId", 1)) 6668 } 6669 if s.OutputKey != nil && len(*s.OutputKey) < 1 { 6670 invalidParams.Add(request.NewErrParamMinLen("OutputKey", 1)) 6671 } 6672 if s.TranscriptionJobName == nil { 6673 invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName")) 6674 } 6675 if s.TranscriptionJobName != nil && len(*s.TranscriptionJobName) < 1 { 6676 invalidParams.Add(request.NewErrParamMinLen("TranscriptionJobName", 1)) 6677 } 6678 if s.ContentRedaction != nil { 6679 if err := s.ContentRedaction.Validate(); err != nil { 6680 invalidParams.AddNested("ContentRedaction", err.(request.ErrInvalidParams)) 6681 } 6682 } 6683 if s.JobExecutionSettings != nil { 6684 if err := s.JobExecutionSettings.Validate(); err != nil { 6685 invalidParams.AddNested("JobExecutionSettings", err.(request.ErrInvalidParams)) 6686 } 6687 } 6688 if s.Media != nil { 6689 if err := s.Media.Validate(); err != nil { 6690 invalidParams.AddNested("Media", err.(request.ErrInvalidParams)) 6691 } 6692 } 6693 if s.ModelSettings != nil { 6694 if err := s.ModelSettings.Validate(); err != nil { 6695 invalidParams.AddNested("ModelSettings", err.(request.ErrInvalidParams)) 6696 } 6697 } 6698 if s.Settings != nil { 6699 if err := s.Settings.Validate(); err != nil { 6700 invalidParams.AddNested("Settings", err.(request.ErrInvalidParams)) 6701 } 6702 } 6703 6704 if invalidParams.Len() > 0 { 6705 return invalidParams 6706 } 6707 return nil 6708} 6709 6710// SetContentRedaction sets the ContentRedaction field's value. 6711func (s *StartTranscriptionJobInput) SetContentRedaction(v *ContentRedaction) *StartTranscriptionJobInput { 6712 s.ContentRedaction = v 6713 return s 6714} 6715 6716// SetIdentifyLanguage sets the IdentifyLanguage field's value. 6717func (s *StartTranscriptionJobInput) SetIdentifyLanguage(v bool) *StartTranscriptionJobInput { 6718 s.IdentifyLanguage = &v 6719 return s 6720} 6721 6722// SetJobExecutionSettings sets the JobExecutionSettings field's value. 6723func (s *StartTranscriptionJobInput) SetJobExecutionSettings(v *JobExecutionSettings) *StartTranscriptionJobInput { 6724 s.JobExecutionSettings = v 6725 return s 6726} 6727 6728// SetLanguageCode sets the LanguageCode field's value. 6729func (s *StartTranscriptionJobInput) SetLanguageCode(v string) *StartTranscriptionJobInput { 6730 s.LanguageCode = &v 6731 return s 6732} 6733 6734// SetLanguageOptions sets the LanguageOptions field's value. 6735func (s *StartTranscriptionJobInput) SetLanguageOptions(v []*string) *StartTranscriptionJobInput { 6736 s.LanguageOptions = v 6737 return s 6738} 6739 6740// SetMedia sets the Media field's value. 6741func (s *StartTranscriptionJobInput) SetMedia(v *Media) *StartTranscriptionJobInput { 6742 s.Media = v 6743 return s 6744} 6745 6746// SetMediaFormat sets the MediaFormat field's value. 6747func (s *StartTranscriptionJobInput) SetMediaFormat(v string) *StartTranscriptionJobInput { 6748 s.MediaFormat = &v 6749 return s 6750} 6751 6752// SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value. 6753func (s *StartTranscriptionJobInput) SetMediaSampleRateHertz(v int64) *StartTranscriptionJobInput { 6754 s.MediaSampleRateHertz = &v 6755 return s 6756} 6757 6758// SetModelSettings sets the ModelSettings field's value. 6759func (s *StartTranscriptionJobInput) SetModelSettings(v *ModelSettings) *StartTranscriptionJobInput { 6760 s.ModelSettings = v 6761 return s 6762} 6763 6764// SetOutputBucketName sets the OutputBucketName field's value. 6765func (s *StartTranscriptionJobInput) SetOutputBucketName(v string) *StartTranscriptionJobInput { 6766 s.OutputBucketName = &v 6767 return s 6768} 6769 6770// SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value. 6771func (s *StartTranscriptionJobInput) SetOutputEncryptionKMSKeyId(v string) *StartTranscriptionJobInput { 6772 s.OutputEncryptionKMSKeyId = &v 6773 return s 6774} 6775 6776// SetOutputKey sets the OutputKey field's value. 6777func (s *StartTranscriptionJobInput) SetOutputKey(v string) *StartTranscriptionJobInput { 6778 s.OutputKey = &v 6779 return s 6780} 6781 6782// SetSettings sets the Settings field's value. 6783func (s *StartTranscriptionJobInput) SetSettings(v *Settings) *StartTranscriptionJobInput { 6784 s.Settings = v 6785 return s 6786} 6787 6788// SetTranscriptionJobName sets the TranscriptionJobName field's value. 6789func (s *StartTranscriptionJobInput) SetTranscriptionJobName(v string) *StartTranscriptionJobInput { 6790 s.TranscriptionJobName = &v 6791 return s 6792} 6793 6794type StartTranscriptionJobOutput struct { 6795 _ struct{} `type:"structure"` 6796 6797 // An object containing details of the asynchronous transcription job. 6798 TranscriptionJob *TranscriptionJob `type:"structure"` 6799} 6800 6801// String returns the string representation 6802func (s StartTranscriptionJobOutput) String() string { 6803 return awsutil.Prettify(s) 6804} 6805 6806// GoString returns the string representation 6807func (s StartTranscriptionJobOutput) GoString() string { 6808 return s.String() 6809} 6810 6811// SetTranscriptionJob sets the TranscriptionJob field's value. 6812func (s *StartTranscriptionJobOutput) SetTranscriptionJob(v *TranscriptionJob) *StartTranscriptionJobOutput { 6813 s.TranscriptionJob = v 6814 return s 6815} 6816 6817// Identifies the location of a transcription. 6818type Transcript struct { 6819 _ struct{} `type:"structure"` 6820 6821 // The S3 object location of the redacted transcript. 6822 // 6823 // Use this URI to access the redacted transcript. If you specified an S3 bucket 6824 // in the OutputBucketName field when you created the job, this is the URI of 6825 // that bucket. If you chose to store the transcript in Amazon Transcribe, this 6826 // is a shareable URL that provides secure access to that location. 6827 RedactedTranscriptFileUri *string `min:"1" type:"string"` 6828 6829 // The S3 object location of the transcript. 6830 // 6831 // Use this URI to access the transcript. If you specified an S3 bucket in the 6832 // OutputBucketName field when you created the job, this is the URI of that 6833 // bucket. If you chose to store the transcript in Amazon Transcribe, this is 6834 // a shareable URL that provides secure access to that location. 6835 TranscriptFileUri *string `min:"1" type:"string"` 6836} 6837 6838// String returns the string representation 6839func (s Transcript) String() string { 6840 return awsutil.Prettify(s) 6841} 6842 6843// GoString returns the string representation 6844func (s Transcript) GoString() string { 6845 return s.String() 6846} 6847 6848// SetRedactedTranscriptFileUri sets the RedactedTranscriptFileUri field's value. 6849func (s *Transcript) SetRedactedTranscriptFileUri(v string) *Transcript { 6850 s.RedactedTranscriptFileUri = &v 6851 return s 6852} 6853 6854// SetTranscriptFileUri sets the TranscriptFileUri field's value. 6855func (s *Transcript) SetTranscriptFileUri(v string) *Transcript { 6856 s.TranscriptFileUri = &v 6857 return s 6858} 6859 6860// Describes an asynchronous transcription job that was created with the StartTranscriptionJob 6861// operation. 6862type TranscriptionJob struct { 6863 _ struct{} `type:"structure"` 6864 6865 // A timestamp that shows when the job was completed. 6866 CompletionTime *time.Time `type:"timestamp"` 6867 6868 // An object that describes content redaction settings for the transcription 6869 // job. 6870 ContentRedaction *ContentRedaction `type:"structure"` 6871 6872 // A timestamp that shows when the job was created. 6873 CreationTime *time.Time `type:"timestamp"` 6874 6875 // If the TranscriptionJobStatus field is FAILED, this field contains information 6876 // about why the job failed. 6877 // 6878 // The FailureReason field can contain one of the following values: 6879 // 6880 // * Unsupported media format - The media format specified in the MediaFormat 6881 // field of the request isn't valid. See the description of the MediaFormat 6882 // field for a list of valid values. 6883 // 6884 // * The media format provided does not match the detected media format - 6885 // The media format of the audio file doesn't match the format specified 6886 // in the MediaFormat field in the request. Check the media format of your 6887 // media file and make sure that the two values match. 6888 // 6889 // * Invalid sample rate for audio file - The sample rate specified in the 6890 // MediaSampleRateHertz of the request isn't valid. The sample rate must 6891 // be between 8000 and 48000 Hertz. 6892 // 6893 // * The sample rate provided does not match the detected sample rate - The 6894 // sample rate in the audio file doesn't match the sample rate specified 6895 // in the MediaSampleRateHertz field in the request. Check the sample rate 6896 // of your media file and make sure that the two values match. 6897 // 6898 // * Invalid file size: file size too large - The size of your audio file 6899 // is larger than Amazon Transcribe can process. For more information, see 6900 // Limits (https://docs.aws.amazon.com/transcribe/latest/dg/limits-guidelines.html#limits) 6901 // in the Amazon Transcribe Developer Guide. 6902 // 6903 // * Invalid number of channels: number of channels too large - Your audio 6904 // contains more channels than Amazon Transcribe is configured to process. 6905 // To request additional channels, see Amazon Transcribe Limits (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits-amazon-transcribe) 6906 // in the Amazon Web Services General Reference. 6907 FailureReason *string `type:"string"` 6908 6909 // A value between zero and one that Amazon Transcribe assigned to the language 6910 // that it identified in the source audio. Larger values indicate that Amazon 6911 // Transcribe has higher confidence in the language it identified. 6912 IdentifiedLanguageScore *float64 `type:"float"` 6913 6914 // A value that shows if automatic language identification was enabled for a 6915 // transcription job. 6916 IdentifyLanguage *bool `type:"boolean"` 6917 6918 // Provides information about how a transcription job is executed. 6919 JobExecutionSettings *JobExecutionSettings `type:"structure"` 6920 6921 // The language code for the input speech. 6922 LanguageCode *string `type:"string" enum:"LanguageCode"` 6923 6924 // An object that shows the optional array of languages inputted for transcription 6925 // jobs with automatic language identification enabled. 6926 LanguageOptions []*string `min:"2" type:"list"` 6927 6928 // An object that describes the input media for the transcription job. 6929 Media *Media `type:"structure"` 6930 6931 // The format of the input media file. 6932 MediaFormat *string `type:"string" enum:"MediaFormat"` 6933 6934 // The sample rate, in Hertz, of the audio track in the input media file. 6935 MediaSampleRateHertz *int64 `min:"8000" type:"integer"` 6936 6937 // An object containing the details of your custom language model. 6938 ModelSettings *ModelSettings `type:"structure"` 6939 6940 // Optional settings for the transcription job. Use these settings to turn on 6941 // speaker recognition, to set the maximum number of speakers that should be 6942 // identified and to specify a custom vocabulary to use when processing the 6943 // transcription job. 6944 Settings *Settings `type:"structure"` 6945 6946 // A timestamp that shows with the job was started processing. 6947 StartTime *time.Time `type:"timestamp"` 6948 6949 // An object that describes the output of the transcription job. 6950 Transcript *Transcript `type:"structure"` 6951 6952 // The name of the transcription job. 6953 TranscriptionJobName *string `min:"1" type:"string"` 6954 6955 // The status of the transcription job. 6956 TranscriptionJobStatus *string `type:"string" enum:"TranscriptionJobStatus"` 6957} 6958 6959// String returns the string representation 6960func (s TranscriptionJob) String() string { 6961 return awsutil.Prettify(s) 6962} 6963 6964// GoString returns the string representation 6965func (s TranscriptionJob) GoString() string { 6966 return s.String() 6967} 6968 6969// SetCompletionTime sets the CompletionTime field's value. 6970func (s *TranscriptionJob) SetCompletionTime(v time.Time) *TranscriptionJob { 6971 s.CompletionTime = &v 6972 return s 6973} 6974 6975// SetContentRedaction sets the ContentRedaction field's value. 6976func (s *TranscriptionJob) SetContentRedaction(v *ContentRedaction) *TranscriptionJob { 6977 s.ContentRedaction = v 6978 return s 6979} 6980 6981// SetCreationTime sets the CreationTime field's value. 6982func (s *TranscriptionJob) SetCreationTime(v time.Time) *TranscriptionJob { 6983 s.CreationTime = &v 6984 return s 6985} 6986 6987// SetFailureReason sets the FailureReason field's value. 6988func (s *TranscriptionJob) SetFailureReason(v string) *TranscriptionJob { 6989 s.FailureReason = &v 6990 return s 6991} 6992 6993// SetIdentifiedLanguageScore sets the IdentifiedLanguageScore field's value. 6994func (s *TranscriptionJob) SetIdentifiedLanguageScore(v float64) *TranscriptionJob { 6995 s.IdentifiedLanguageScore = &v 6996 return s 6997} 6998 6999// SetIdentifyLanguage sets the IdentifyLanguage field's value. 7000func (s *TranscriptionJob) SetIdentifyLanguage(v bool) *TranscriptionJob { 7001 s.IdentifyLanguage = &v 7002 return s 7003} 7004 7005// SetJobExecutionSettings sets the JobExecutionSettings field's value. 7006func (s *TranscriptionJob) SetJobExecutionSettings(v *JobExecutionSettings) *TranscriptionJob { 7007 s.JobExecutionSettings = v 7008 return s 7009} 7010 7011// SetLanguageCode sets the LanguageCode field's value. 7012func (s *TranscriptionJob) SetLanguageCode(v string) *TranscriptionJob { 7013 s.LanguageCode = &v 7014 return s 7015} 7016 7017// SetLanguageOptions sets the LanguageOptions field's value. 7018func (s *TranscriptionJob) SetLanguageOptions(v []*string) *TranscriptionJob { 7019 s.LanguageOptions = v 7020 return s 7021} 7022 7023// SetMedia sets the Media field's value. 7024func (s *TranscriptionJob) SetMedia(v *Media) *TranscriptionJob { 7025 s.Media = v 7026 return s 7027} 7028 7029// SetMediaFormat sets the MediaFormat field's value. 7030func (s *TranscriptionJob) SetMediaFormat(v string) *TranscriptionJob { 7031 s.MediaFormat = &v 7032 return s 7033} 7034 7035// SetMediaSampleRateHertz sets the MediaSampleRateHertz field's value. 7036func (s *TranscriptionJob) SetMediaSampleRateHertz(v int64) *TranscriptionJob { 7037 s.MediaSampleRateHertz = &v 7038 return s 7039} 7040 7041// SetModelSettings sets the ModelSettings field's value. 7042func (s *TranscriptionJob) SetModelSettings(v *ModelSettings) *TranscriptionJob { 7043 s.ModelSettings = v 7044 return s 7045} 7046 7047// SetSettings sets the Settings field's value. 7048func (s *TranscriptionJob) SetSettings(v *Settings) *TranscriptionJob { 7049 s.Settings = v 7050 return s 7051} 7052 7053// SetStartTime sets the StartTime field's value. 7054func (s *TranscriptionJob) SetStartTime(v time.Time) *TranscriptionJob { 7055 s.StartTime = &v 7056 return s 7057} 7058 7059// SetTranscript sets the Transcript field's value. 7060func (s *TranscriptionJob) SetTranscript(v *Transcript) *TranscriptionJob { 7061 s.Transcript = v 7062 return s 7063} 7064 7065// SetTranscriptionJobName sets the TranscriptionJobName field's value. 7066func (s *TranscriptionJob) SetTranscriptionJobName(v string) *TranscriptionJob { 7067 s.TranscriptionJobName = &v 7068 return s 7069} 7070 7071// SetTranscriptionJobStatus sets the TranscriptionJobStatus field's value. 7072func (s *TranscriptionJob) SetTranscriptionJobStatus(v string) *TranscriptionJob { 7073 s.TranscriptionJobStatus = &v 7074 return s 7075} 7076 7077// Provides a summary of information about a transcription job. 7078type TranscriptionJobSummary struct { 7079 _ struct{} `type:"structure"` 7080 7081 // A timestamp that shows when the job was completed. 7082 CompletionTime *time.Time `type:"timestamp"` 7083 7084 // The content redaction settings of the transcription job. 7085 ContentRedaction *ContentRedaction `type:"structure"` 7086 7087 // A timestamp that shows when the job was created. 7088 CreationTime *time.Time `type:"timestamp"` 7089 7090 // If the TranscriptionJobStatus field is FAILED, a description of the error. 7091 FailureReason *string `type:"string"` 7092 7093 // A value between zero and one that Amazon Transcribe assigned to the language 7094 // it identified in the source audio. A higher score indicates that Amazon Transcribe 7095 // is more confident in the language it identified. 7096 IdentifiedLanguageScore *float64 `type:"float"` 7097 7098 // Whether automatic language identification was enabled for a transcription 7099 // job. 7100 IdentifyLanguage *bool `type:"boolean"` 7101 7102 // The language code for the input speech. 7103 LanguageCode *string `type:"string" enum:"LanguageCode"` 7104 7105 // The object used to call your custom language model to your transcription 7106 // job. 7107 ModelSettings *ModelSettings `type:"structure"` 7108 7109 // Indicates the location of the output of the transcription job. 7110 // 7111 // If the value is CUSTOMER_BUCKET then the location is the S3 bucket specified 7112 // in the outputBucketName field when the transcription job was started with 7113 // the StartTranscriptionJob operation. 7114 // 7115 // If the value is SERVICE_BUCKET then the output is stored by Amazon Transcribe 7116 // and can be retrieved using the URI in the GetTranscriptionJob response's 7117 // TranscriptFileUri field. 7118 OutputLocationType *string `type:"string" enum:"OutputLocationType"` 7119 7120 // A timestamp that shows when the job started processing. 7121 StartTime *time.Time `type:"timestamp"` 7122 7123 // The name of the transcription job. 7124 TranscriptionJobName *string `min:"1" type:"string"` 7125 7126 // The status of the transcription job. When the status is COMPLETED, use the 7127 // GetTranscriptionJob operation to get the results of the transcription. 7128 TranscriptionJobStatus *string `type:"string" enum:"TranscriptionJobStatus"` 7129} 7130 7131// String returns the string representation 7132func (s TranscriptionJobSummary) String() string { 7133 return awsutil.Prettify(s) 7134} 7135 7136// GoString returns the string representation 7137func (s TranscriptionJobSummary) GoString() string { 7138 return s.String() 7139} 7140 7141// SetCompletionTime sets the CompletionTime field's value. 7142func (s *TranscriptionJobSummary) SetCompletionTime(v time.Time) *TranscriptionJobSummary { 7143 s.CompletionTime = &v 7144 return s 7145} 7146 7147// SetContentRedaction sets the ContentRedaction field's value. 7148func (s *TranscriptionJobSummary) SetContentRedaction(v *ContentRedaction) *TranscriptionJobSummary { 7149 s.ContentRedaction = v 7150 return s 7151} 7152 7153// SetCreationTime sets the CreationTime field's value. 7154func (s *TranscriptionJobSummary) SetCreationTime(v time.Time) *TranscriptionJobSummary { 7155 s.CreationTime = &v 7156 return s 7157} 7158 7159// SetFailureReason sets the FailureReason field's value. 7160func (s *TranscriptionJobSummary) SetFailureReason(v string) *TranscriptionJobSummary { 7161 s.FailureReason = &v 7162 return s 7163} 7164 7165// SetIdentifiedLanguageScore sets the IdentifiedLanguageScore field's value. 7166func (s *TranscriptionJobSummary) SetIdentifiedLanguageScore(v float64) *TranscriptionJobSummary { 7167 s.IdentifiedLanguageScore = &v 7168 return s 7169} 7170 7171// SetIdentifyLanguage sets the IdentifyLanguage field's value. 7172func (s *TranscriptionJobSummary) SetIdentifyLanguage(v bool) *TranscriptionJobSummary { 7173 s.IdentifyLanguage = &v 7174 return s 7175} 7176 7177// SetLanguageCode sets the LanguageCode field's value. 7178func (s *TranscriptionJobSummary) SetLanguageCode(v string) *TranscriptionJobSummary { 7179 s.LanguageCode = &v 7180 return s 7181} 7182 7183// SetModelSettings sets the ModelSettings field's value. 7184func (s *TranscriptionJobSummary) SetModelSettings(v *ModelSettings) *TranscriptionJobSummary { 7185 s.ModelSettings = v 7186 return s 7187} 7188 7189// SetOutputLocationType sets the OutputLocationType field's value. 7190func (s *TranscriptionJobSummary) SetOutputLocationType(v string) *TranscriptionJobSummary { 7191 s.OutputLocationType = &v 7192 return s 7193} 7194 7195// SetStartTime sets the StartTime field's value. 7196func (s *TranscriptionJobSummary) SetStartTime(v time.Time) *TranscriptionJobSummary { 7197 s.StartTime = &v 7198 return s 7199} 7200 7201// SetTranscriptionJobName sets the TranscriptionJobName field's value. 7202func (s *TranscriptionJobSummary) SetTranscriptionJobName(v string) *TranscriptionJobSummary { 7203 s.TranscriptionJobName = &v 7204 return s 7205} 7206 7207// SetTranscriptionJobStatus sets the TranscriptionJobStatus field's value. 7208func (s *TranscriptionJobSummary) SetTranscriptionJobStatus(v string) *TranscriptionJobSummary { 7209 s.TranscriptionJobStatus = &v 7210 return s 7211} 7212 7213type UpdateMedicalVocabularyInput struct { 7214 _ struct{} `type:"structure"` 7215 7216 // The language code of the language used for the entries in the updated vocabulary. 7217 // US English (en-US) is the only valid language code in Amazon Transcribe Medical. 7218 // 7219 // LanguageCode is a required field 7220 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 7221 7222 // The location in Amazon S3 of the text file that contains the you use for 7223 // your custom vocabulary. The URI must be in the same AWS Region as the resource 7224 // that you are calling. The following is the format for a URI: 7225 // 7226 // https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey> 7227 // 7228 // For example: 7229 // 7230 // https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt 7231 // 7232 // For more information about Amazon S3 object names, see Object Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys) 7233 // in the Amazon S3 Developer Guide. 7234 // 7235 // For more information about custom vocabularies in Amazon Transcribe Medical, 7236 // see Medical Custom Vocabularies (http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary). 7237 VocabularyFileUri *string `min:"1" type:"string"` 7238 7239 // The name of the vocabulary to update. The name is case sensitive. If you 7240 // try to update a vocabulary with the same name as a vocabulary you've already 7241 // made, you get a ConflictException error. 7242 // 7243 // VocabularyName is a required field 7244 VocabularyName *string `min:"1" type:"string" required:"true"` 7245} 7246 7247// String returns the string representation 7248func (s UpdateMedicalVocabularyInput) String() string { 7249 return awsutil.Prettify(s) 7250} 7251 7252// GoString returns the string representation 7253func (s UpdateMedicalVocabularyInput) GoString() string { 7254 return s.String() 7255} 7256 7257// Validate inspects the fields of the type to determine if they are valid. 7258func (s *UpdateMedicalVocabularyInput) Validate() error { 7259 invalidParams := request.ErrInvalidParams{Context: "UpdateMedicalVocabularyInput"} 7260 if s.LanguageCode == nil { 7261 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 7262 } 7263 if s.VocabularyFileUri != nil && len(*s.VocabularyFileUri) < 1 { 7264 invalidParams.Add(request.NewErrParamMinLen("VocabularyFileUri", 1)) 7265 } 7266 if s.VocabularyName == nil { 7267 invalidParams.Add(request.NewErrParamRequired("VocabularyName")) 7268 } 7269 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 7270 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 7271 } 7272 7273 if invalidParams.Len() > 0 { 7274 return invalidParams 7275 } 7276 return nil 7277} 7278 7279// SetLanguageCode sets the LanguageCode field's value. 7280func (s *UpdateMedicalVocabularyInput) SetLanguageCode(v string) *UpdateMedicalVocabularyInput { 7281 s.LanguageCode = &v 7282 return s 7283} 7284 7285// SetVocabularyFileUri sets the VocabularyFileUri field's value. 7286func (s *UpdateMedicalVocabularyInput) SetVocabularyFileUri(v string) *UpdateMedicalVocabularyInput { 7287 s.VocabularyFileUri = &v 7288 return s 7289} 7290 7291// SetVocabularyName sets the VocabularyName field's value. 7292func (s *UpdateMedicalVocabularyInput) SetVocabularyName(v string) *UpdateMedicalVocabularyInput { 7293 s.VocabularyName = &v 7294 return s 7295} 7296 7297type UpdateMedicalVocabularyOutput struct { 7298 _ struct{} `type:"structure"` 7299 7300 // The language code for the language of the text file used to update the custom 7301 // vocabulary. US English (en-US) is the only language supported in Amazon Transcribe 7302 // Medical. 7303 LanguageCode *string `type:"string" enum:"LanguageCode"` 7304 7305 // The date and time that the vocabulary was updated. 7306 LastModifiedTime *time.Time `type:"timestamp"` 7307 7308 // The name of the updated vocabulary. 7309 VocabularyName *string `min:"1" type:"string"` 7310 7311 // The processing state of the update to the vocabulary. When the VocabularyState 7312 // field is READY, the vocabulary is ready to be used in a StartMedicalTranscriptionJob 7313 // request. 7314 VocabularyState *string `type:"string" enum:"VocabularyState"` 7315} 7316 7317// String returns the string representation 7318func (s UpdateMedicalVocabularyOutput) String() string { 7319 return awsutil.Prettify(s) 7320} 7321 7322// GoString returns the string representation 7323func (s UpdateMedicalVocabularyOutput) GoString() string { 7324 return s.String() 7325} 7326 7327// SetLanguageCode sets the LanguageCode field's value. 7328func (s *UpdateMedicalVocabularyOutput) SetLanguageCode(v string) *UpdateMedicalVocabularyOutput { 7329 s.LanguageCode = &v 7330 return s 7331} 7332 7333// SetLastModifiedTime sets the LastModifiedTime field's value. 7334func (s *UpdateMedicalVocabularyOutput) SetLastModifiedTime(v time.Time) *UpdateMedicalVocabularyOutput { 7335 s.LastModifiedTime = &v 7336 return s 7337} 7338 7339// SetVocabularyName sets the VocabularyName field's value. 7340func (s *UpdateMedicalVocabularyOutput) SetVocabularyName(v string) *UpdateMedicalVocabularyOutput { 7341 s.VocabularyName = &v 7342 return s 7343} 7344 7345// SetVocabularyState sets the VocabularyState field's value. 7346func (s *UpdateMedicalVocabularyOutput) SetVocabularyState(v string) *UpdateMedicalVocabularyOutput { 7347 s.VocabularyState = &v 7348 return s 7349} 7350 7351type UpdateVocabularyFilterInput struct { 7352 _ struct{} `type:"structure"` 7353 7354 // The Amazon S3 location of a text file used as input to create the vocabulary 7355 // filter. Only use characters from the character set defined for custom vocabularies. 7356 // For a list of character sets, see Character Sets for Custom Vocabularies 7357 // (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). 7358 // 7359 // The specified file must be less than 50 KB of UTF-8 characters. 7360 // 7361 // If you provide the location of a list of words in the VocabularyFilterFileUri 7362 // parameter, you can't use the Words parameter. 7363 VocabularyFilterFileUri *string `min:"1" type:"string"` 7364 7365 // The name of the vocabulary filter to update. If you try to update a vocabulary 7366 // filter with the same name as another vocabulary filter, you get a ConflictException 7367 // error. 7368 // 7369 // VocabularyFilterName is a required field 7370 VocabularyFilterName *string `min:"1" type:"string" required:"true"` 7371 7372 // The words to use in the vocabulary filter. Only use characters from the character 7373 // set defined for custom vocabularies. For a list of character sets, see Character 7374 // Sets for Custom Vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary.html#charsets). 7375 // 7376 // If you provide a list of words in the Words parameter, you can't use the 7377 // VocabularyFilterFileUri parameter. 7378 Words []*string `min:"1" type:"list"` 7379} 7380 7381// String returns the string representation 7382func (s UpdateVocabularyFilterInput) String() string { 7383 return awsutil.Prettify(s) 7384} 7385 7386// GoString returns the string representation 7387func (s UpdateVocabularyFilterInput) GoString() string { 7388 return s.String() 7389} 7390 7391// Validate inspects the fields of the type to determine if they are valid. 7392func (s *UpdateVocabularyFilterInput) Validate() error { 7393 invalidParams := request.ErrInvalidParams{Context: "UpdateVocabularyFilterInput"} 7394 if s.VocabularyFilterFileUri != nil && len(*s.VocabularyFilterFileUri) < 1 { 7395 invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterFileUri", 1)) 7396 } 7397 if s.VocabularyFilterName == nil { 7398 invalidParams.Add(request.NewErrParamRequired("VocabularyFilterName")) 7399 } 7400 if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { 7401 invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) 7402 } 7403 if s.Words != nil && len(s.Words) < 1 { 7404 invalidParams.Add(request.NewErrParamMinLen("Words", 1)) 7405 } 7406 7407 if invalidParams.Len() > 0 { 7408 return invalidParams 7409 } 7410 return nil 7411} 7412 7413// SetVocabularyFilterFileUri sets the VocabularyFilterFileUri field's value. 7414func (s *UpdateVocabularyFilterInput) SetVocabularyFilterFileUri(v string) *UpdateVocabularyFilterInput { 7415 s.VocabularyFilterFileUri = &v 7416 return s 7417} 7418 7419// SetVocabularyFilterName sets the VocabularyFilterName field's value. 7420func (s *UpdateVocabularyFilterInput) SetVocabularyFilterName(v string) *UpdateVocabularyFilterInput { 7421 s.VocabularyFilterName = &v 7422 return s 7423} 7424 7425// SetWords sets the Words field's value. 7426func (s *UpdateVocabularyFilterInput) SetWords(v []*string) *UpdateVocabularyFilterInput { 7427 s.Words = v 7428 return s 7429} 7430 7431type UpdateVocabularyFilterOutput struct { 7432 _ struct{} `type:"structure"` 7433 7434 // The language code of the words in the vocabulary filter. 7435 LanguageCode *string `type:"string" enum:"LanguageCode"` 7436 7437 // The date and time that the vocabulary filter was updated. 7438 LastModifiedTime *time.Time `type:"timestamp"` 7439 7440 // The name of the updated vocabulary filter. 7441 VocabularyFilterName *string `min:"1" type:"string"` 7442} 7443 7444// String returns the string representation 7445func (s UpdateVocabularyFilterOutput) String() string { 7446 return awsutil.Prettify(s) 7447} 7448 7449// GoString returns the string representation 7450func (s UpdateVocabularyFilterOutput) GoString() string { 7451 return s.String() 7452} 7453 7454// SetLanguageCode sets the LanguageCode field's value. 7455func (s *UpdateVocabularyFilterOutput) SetLanguageCode(v string) *UpdateVocabularyFilterOutput { 7456 s.LanguageCode = &v 7457 return s 7458} 7459 7460// SetLastModifiedTime sets the LastModifiedTime field's value. 7461func (s *UpdateVocabularyFilterOutput) SetLastModifiedTime(v time.Time) *UpdateVocabularyFilterOutput { 7462 s.LastModifiedTime = &v 7463 return s 7464} 7465 7466// SetVocabularyFilterName sets the VocabularyFilterName field's value. 7467func (s *UpdateVocabularyFilterOutput) SetVocabularyFilterName(v string) *UpdateVocabularyFilterOutput { 7468 s.VocabularyFilterName = &v 7469 return s 7470} 7471 7472type UpdateVocabularyInput struct { 7473 _ struct{} `type:"structure"` 7474 7475 // The language code of the vocabulary entries. 7476 // 7477 // LanguageCode is a required field 7478 LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` 7479 7480 // An array of strings containing the vocabulary entries. 7481 Phrases []*string `type:"list"` 7482 7483 // The S3 location of the text file that contains the definition of the custom 7484 // vocabulary. The URI must be in the same region as the API endpoint that you 7485 // are calling. The general form is 7486 // 7487 // For example: 7488 // 7489 // For more information about S3 object names, see Object Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys) 7490 // in the Amazon S3 Developer Guide. 7491 // 7492 // For more information about custom vocabularies, see Custom Vocabularies (http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary). 7493 VocabularyFileUri *string `min:"1" type:"string"` 7494 7495 // The name of the vocabulary to update. The name is case sensitive. If you 7496 // try to update a vocabulary with the same name as a previous vocabulary you 7497 // will receive a ConflictException error. 7498 // 7499 // VocabularyName is a required field 7500 VocabularyName *string `min:"1" type:"string" required:"true"` 7501} 7502 7503// String returns the string representation 7504func (s UpdateVocabularyInput) String() string { 7505 return awsutil.Prettify(s) 7506} 7507 7508// GoString returns the string representation 7509func (s UpdateVocabularyInput) GoString() string { 7510 return s.String() 7511} 7512 7513// Validate inspects the fields of the type to determine if they are valid. 7514func (s *UpdateVocabularyInput) Validate() error { 7515 invalidParams := request.ErrInvalidParams{Context: "UpdateVocabularyInput"} 7516 if s.LanguageCode == nil { 7517 invalidParams.Add(request.NewErrParamRequired("LanguageCode")) 7518 } 7519 if s.VocabularyFileUri != nil && len(*s.VocabularyFileUri) < 1 { 7520 invalidParams.Add(request.NewErrParamMinLen("VocabularyFileUri", 1)) 7521 } 7522 if s.VocabularyName == nil { 7523 invalidParams.Add(request.NewErrParamRequired("VocabularyName")) 7524 } 7525 if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { 7526 invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) 7527 } 7528 7529 if invalidParams.Len() > 0 { 7530 return invalidParams 7531 } 7532 return nil 7533} 7534 7535// SetLanguageCode sets the LanguageCode field's value. 7536func (s *UpdateVocabularyInput) SetLanguageCode(v string) *UpdateVocabularyInput { 7537 s.LanguageCode = &v 7538 return s 7539} 7540 7541// SetPhrases sets the Phrases field's value. 7542func (s *UpdateVocabularyInput) SetPhrases(v []*string) *UpdateVocabularyInput { 7543 s.Phrases = v 7544 return s 7545} 7546 7547// SetVocabularyFileUri sets the VocabularyFileUri field's value. 7548func (s *UpdateVocabularyInput) SetVocabularyFileUri(v string) *UpdateVocabularyInput { 7549 s.VocabularyFileUri = &v 7550 return s 7551} 7552 7553// SetVocabularyName sets the VocabularyName field's value. 7554func (s *UpdateVocabularyInput) SetVocabularyName(v string) *UpdateVocabularyInput { 7555 s.VocabularyName = &v 7556 return s 7557} 7558 7559type UpdateVocabularyOutput struct { 7560 _ struct{} `type:"structure"` 7561 7562 // The language code of the vocabulary entries. 7563 LanguageCode *string `type:"string" enum:"LanguageCode"` 7564 7565 // The date and time that the vocabulary was updated. 7566 LastModifiedTime *time.Time `type:"timestamp"` 7567 7568 // The name of the vocabulary that was updated. 7569 VocabularyName *string `min:"1" type:"string"` 7570 7571 // The processing state of the vocabulary. When the VocabularyState field contains 7572 // READY the vocabulary is ready to be used in a StartTranscriptionJob request. 7573 VocabularyState *string `type:"string" enum:"VocabularyState"` 7574} 7575 7576// String returns the string representation 7577func (s UpdateVocabularyOutput) String() string { 7578 return awsutil.Prettify(s) 7579} 7580 7581// GoString returns the string representation 7582func (s UpdateVocabularyOutput) GoString() string { 7583 return s.String() 7584} 7585 7586// SetLanguageCode sets the LanguageCode field's value. 7587func (s *UpdateVocabularyOutput) SetLanguageCode(v string) *UpdateVocabularyOutput { 7588 s.LanguageCode = &v 7589 return s 7590} 7591 7592// SetLastModifiedTime sets the LastModifiedTime field's value. 7593func (s *UpdateVocabularyOutput) SetLastModifiedTime(v time.Time) *UpdateVocabularyOutput { 7594 s.LastModifiedTime = &v 7595 return s 7596} 7597 7598// SetVocabularyName sets the VocabularyName field's value. 7599func (s *UpdateVocabularyOutput) SetVocabularyName(v string) *UpdateVocabularyOutput { 7600 s.VocabularyName = &v 7601 return s 7602} 7603 7604// SetVocabularyState sets the VocabularyState field's value. 7605func (s *UpdateVocabularyOutput) SetVocabularyState(v string) *UpdateVocabularyOutput { 7606 s.VocabularyState = &v 7607 return s 7608} 7609 7610// Provides information about a vocabulary filter. 7611type VocabularyFilterInfo struct { 7612 _ struct{} `type:"structure"` 7613 7614 // The language code of the words in the vocabulary filter. 7615 LanguageCode *string `type:"string" enum:"LanguageCode"` 7616 7617 // The date and time that the vocabulary was last updated. 7618 LastModifiedTime *time.Time `type:"timestamp"` 7619 7620 // The name of the vocabulary filter. The name must be unique in the account 7621 // that holds the filter. 7622 VocabularyFilterName *string `min:"1" type:"string"` 7623} 7624 7625// String returns the string representation 7626func (s VocabularyFilterInfo) String() string { 7627 return awsutil.Prettify(s) 7628} 7629 7630// GoString returns the string representation 7631func (s VocabularyFilterInfo) GoString() string { 7632 return s.String() 7633} 7634 7635// SetLanguageCode sets the LanguageCode field's value. 7636func (s *VocabularyFilterInfo) SetLanguageCode(v string) *VocabularyFilterInfo { 7637 s.LanguageCode = &v 7638 return s 7639} 7640 7641// SetLastModifiedTime sets the LastModifiedTime field's value. 7642func (s *VocabularyFilterInfo) SetLastModifiedTime(v time.Time) *VocabularyFilterInfo { 7643 s.LastModifiedTime = &v 7644 return s 7645} 7646 7647// SetVocabularyFilterName sets the VocabularyFilterName field's value. 7648func (s *VocabularyFilterInfo) SetVocabularyFilterName(v string) *VocabularyFilterInfo { 7649 s.VocabularyFilterName = &v 7650 return s 7651} 7652 7653// Provides information about a custom vocabulary. 7654type VocabularyInfo struct { 7655 _ struct{} `type:"structure"` 7656 7657 // The language code of the vocabulary entries. 7658 LanguageCode *string `type:"string" enum:"LanguageCode"` 7659 7660 // The date and time that the vocabulary was last modified. 7661 LastModifiedTime *time.Time `type:"timestamp"` 7662 7663 // The name of the vocabulary. 7664 VocabularyName *string `min:"1" type:"string"` 7665 7666 // The processing state of the vocabulary. If the state is READY you can use 7667 // the vocabulary in a StartTranscriptionJob request. 7668 VocabularyState *string `type:"string" enum:"VocabularyState"` 7669} 7670 7671// String returns the string representation 7672func (s VocabularyInfo) String() string { 7673 return awsutil.Prettify(s) 7674} 7675 7676// GoString returns the string representation 7677func (s VocabularyInfo) GoString() string { 7678 return s.String() 7679} 7680 7681// SetLanguageCode sets the LanguageCode field's value. 7682func (s *VocabularyInfo) SetLanguageCode(v string) *VocabularyInfo { 7683 s.LanguageCode = &v 7684 return s 7685} 7686 7687// SetLastModifiedTime sets the LastModifiedTime field's value. 7688func (s *VocabularyInfo) SetLastModifiedTime(v time.Time) *VocabularyInfo { 7689 s.LastModifiedTime = &v 7690 return s 7691} 7692 7693// SetVocabularyName sets the VocabularyName field's value. 7694func (s *VocabularyInfo) SetVocabularyName(v string) *VocabularyInfo { 7695 s.VocabularyName = &v 7696 return s 7697} 7698 7699// SetVocabularyState sets the VocabularyState field's value. 7700func (s *VocabularyInfo) SetVocabularyState(v string) *VocabularyInfo { 7701 s.VocabularyState = &v 7702 return s 7703} 7704 7705const ( 7706 // BaseModelNameNarrowBand is a BaseModelName enum value 7707 BaseModelNameNarrowBand = "NarrowBand" 7708 7709 // BaseModelNameWideBand is a BaseModelName enum value 7710 BaseModelNameWideBand = "WideBand" 7711) 7712 7713// BaseModelName_Values returns all elements of the BaseModelName enum 7714func BaseModelName_Values() []string { 7715 return []string{ 7716 BaseModelNameNarrowBand, 7717 BaseModelNameWideBand, 7718 } 7719} 7720 7721const ( 7722 // CLMLanguageCodeEnUs is a CLMLanguageCode enum value 7723 CLMLanguageCodeEnUs = "en-US" 7724) 7725 7726// CLMLanguageCode_Values returns all elements of the CLMLanguageCode enum 7727func CLMLanguageCode_Values() []string { 7728 return []string{ 7729 CLMLanguageCodeEnUs, 7730 } 7731} 7732 7733const ( 7734 // LanguageCodeAfZa is a LanguageCode enum value 7735 LanguageCodeAfZa = "af-ZA" 7736 7737 // LanguageCodeArAe is a LanguageCode enum value 7738 LanguageCodeArAe = "ar-AE" 7739 7740 // LanguageCodeArSa is a LanguageCode enum value 7741 LanguageCodeArSa = "ar-SA" 7742 7743 // LanguageCodeCyGb is a LanguageCode enum value 7744 LanguageCodeCyGb = "cy-GB" 7745 7746 // LanguageCodeDaDk is a LanguageCode enum value 7747 LanguageCodeDaDk = "da-DK" 7748 7749 // LanguageCodeDeCh is a LanguageCode enum value 7750 LanguageCodeDeCh = "de-CH" 7751 7752 // LanguageCodeDeDe is a LanguageCode enum value 7753 LanguageCodeDeDe = "de-DE" 7754 7755 // LanguageCodeEnAb is a LanguageCode enum value 7756 LanguageCodeEnAb = "en-AB" 7757 7758 // LanguageCodeEnAu is a LanguageCode enum value 7759 LanguageCodeEnAu = "en-AU" 7760 7761 // LanguageCodeEnGb is a LanguageCode enum value 7762 LanguageCodeEnGb = "en-GB" 7763 7764 // LanguageCodeEnIe is a LanguageCode enum value 7765 LanguageCodeEnIe = "en-IE" 7766 7767 // LanguageCodeEnIn is a LanguageCode enum value 7768 LanguageCodeEnIn = "en-IN" 7769 7770 // LanguageCodeEnUs is a LanguageCode enum value 7771 LanguageCodeEnUs = "en-US" 7772 7773 // LanguageCodeEnWl is a LanguageCode enum value 7774 LanguageCodeEnWl = "en-WL" 7775 7776 // LanguageCodeEsEs is a LanguageCode enum value 7777 LanguageCodeEsEs = "es-ES" 7778 7779 // LanguageCodeEsUs is a LanguageCode enum value 7780 LanguageCodeEsUs = "es-US" 7781 7782 // LanguageCodeFaIr is a LanguageCode enum value 7783 LanguageCodeFaIr = "fa-IR" 7784 7785 // LanguageCodeFrCa is a LanguageCode enum value 7786 LanguageCodeFrCa = "fr-CA" 7787 7788 // LanguageCodeFrFr is a LanguageCode enum value 7789 LanguageCodeFrFr = "fr-FR" 7790 7791 // LanguageCodeGaIe is a LanguageCode enum value 7792 LanguageCodeGaIe = "ga-IE" 7793 7794 // LanguageCodeGdGb is a LanguageCode enum value 7795 LanguageCodeGdGb = "gd-GB" 7796 7797 // LanguageCodeHeIl is a LanguageCode enum value 7798 LanguageCodeHeIl = "he-IL" 7799 7800 // LanguageCodeHiIn is a LanguageCode enum value 7801 LanguageCodeHiIn = "hi-IN" 7802 7803 // LanguageCodeIdId is a LanguageCode enum value 7804 LanguageCodeIdId = "id-ID" 7805 7806 // LanguageCodeItIt is a LanguageCode enum value 7807 LanguageCodeItIt = "it-IT" 7808 7809 // LanguageCodeJaJp is a LanguageCode enum value 7810 LanguageCodeJaJp = "ja-JP" 7811 7812 // LanguageCodeKoKr is a LanguageCode enum value 7813 LanguageCodeKoKr = "ko-KR" 7814 7815 // LanguageCodeMsMy is a LanguageCode enum value 7816 LanguageCodeMsMy = "ms-MY" 7817 7818 // LanguageCodeNlNl is a LanguageCode enum value 7819 LanguageCodeNlNl = "nl-NL" 7820 7821 // LanguageCodePtBr is a LanguageCode enum value 7822 LanguageCodePtBr = "pt-BR" 7823 7824 // LanguageCodePtPt is a LanguageCode enum value 7825 LanguageCodePtPt = "pt-PT" 7826 7827 // LanguageCodeRuRu is a LanguageCode enum value 7828 LanguageCodeRuRu = "ru-RU" 7829 7830 // LanguageCodeTaIn is a LanguageCode enum value 7831 LanguageCodeTaIn = "ta-IN" 7832 7833 // LanguageCodeTeIn is a LanguageCode enum value 7834 LanguageCodeTeIn = "te-IN" 7835 7836 // LanguageCodeTrTr is a LanguageCode enum value 7837 LanguageCodeTrTr = "tr-TR" 7838 7839 // LanguageCodeZhCn is a LanguageCode enum value 7840 LanguageCodeZhCn = "zh-CN" 7841) 7842 7843// LanguageCode_Values returns all elements of the LanguageCode enum 7844func LanguageCode_Values() []string { 7845 return []string{ 7846 LanguageCodeAfZa, 7847 LanguageCodeArAe, 7848 LanguageCodeArSa, 7849 LanguageCodeCyGb, 7850 LanguageCodeDaDk, 7851 LanguageCodeDeCh, 7852 LanguageCodeDeDe, 7853 LanguageCodeEnAb, 7854 LanguageCodeEnAu, 7855 LanguageCodeEnGb, 7856 LanguageCodeEnIe, 7857 LanguageCodeEnIn, 7858 LanguageCodeEnUs, 7859 LanguageCodeEnWl, 7860 LanguageCodeEsEs, 7861 LanguageCodeEsUs, 7862 LanguageCodeFaIr, 7863 LanguageCodeFrCa, 7864 LanguageCodeFrFr, 7865 LanguageCodeGaIe, 7866 LanguageCodeGdGb, 7867 LanguageCodeHeIl, 7868 LanguageCodeHiIn, 7869 LanguageCodeIdId, 7870 LanguageCodeItIt, 7871 LanguageCodeJaJp, 7872 LanguageCodeKoKr, 7873 LanguageCodeMsMy, 7874 LanguageCodeNlNl, 7875 LanguageCodePtBr, 7876 LanguageCodePtPt, 7877 LanguageCodeRuRu, 7878 LanguageCodeTaIn, 7879 LanguageCodeTeIn, 7880 LanguageCodeTrTr, 7881 LanguageCodeZhCn, 7882 } 7883} 7884 7885const ( 7886 // MediaFormatMp3 is a MediaFormat enum value 7887 MediaFormatMp3 = "mp3" 7888 7889 // MediaFormatMp4 is a MediaFormat enum value 7890 MediaFormatMp4 = "mp4" 7891 7892 // MediaFormatWav is a MediaFormat enum value 7893 MediaFormatWav = "wav" 7894 7895 // MediaFormatFlac is a MediaFormat enum value 7896 MediaFormatFlac = "flac" 7897 7898 // MediaFormatOgg is a MediaFormat enum value 7899 MediaFormatOgg = "ogg" 7900 7901 // MediaFormatAmr is a MediaFormat enum value 7902 MediaFormatAmr = "amr" 7903 7904 // MediaFormatWebm is a MediaFormat enum value 7905 MediaFormatWebm = "webm" 7906) 7907 7908// MediaFormat_Values returns all elements of the MediaFormat enum 7909func MediaFormat_Values() []string { 7910 return []string{ 7911 MediaFormatMp3, 7912 MediaFormatMp4, 7913 MediaFormatWav, 7914 MediaFormatFlac, 7915 MediaFormatOgg, 7916 MediaFormatAmr, 7917 MediaFormatWebm, 7918 } 7919} 7920 7921const ( 7922 // ModelStatusInProgress is a ModelStatus enum value 7923 ModelStatusInProgress = "IN_PROGRESS" 7924 7925 // ModelStatusFailed is a ModelStatus enum value 7926 ModelStatusFailed = "FAILED" 7927 7928 // ModelStatusCompleted is a ModelStatus enum value 7929 ModelStatusCompleted = "COMPLETED" 7930) 7931 7932// ModelStatus_Values returns all elements of the ModelStatus enum 7933func ModelStatus_Values() []string { 7934 return []string{ 7935 ModelStatusInProgress, 7936 ModelStatusFailed, 7937 ModelStatusCompleted, 7938 } 7939} 7940 7941const ( 7942 // OutputLocationTypeCustomerBucket is a OutputLocationType enum value 7943 OutputLocationTypeCustomerBucket = "CUSTOMER_BUCKET" 7944 7945 // OutputLocationTypeServiceBucket is a OutputLocationType enum value 7946 OutputLocationTypeServiceBucket = "SERVICE_BUCKET" 7947) 7948 7949// OutputLocationType_Values returns all elements of the OutputLocationType enum 7950func OutputLocationType_Values() []string { 7951 return []string{ 7952 OutputLocationTypeCustomerBucket, 7953 OutputLocationTypeServiceBucket, 7954 } 7955} 7956 7957const ( 7958 // RedactionOutputRedacted is a RedactionOutput enum value 7959 RedactionOutputRedacted = "redacted" 7960 7961 // RedactionOutputRedactedAndUnredacted is a RedactionOutput enum value 7962 RedactionOutputRedactedAndUnredacted = "redacted_and_unredacted" 7963) 7964 7965// RedactionOutput_Values returns all elements of the RedactionOutput enum 7966func RedactionOutput_Values() []string { 7967 return []string{ 7968 RedactionOutputRedacted, 7969 RedactionOutputRedactedAndUnredacted, 7970 } 7971} 7972 7973const ( 7974 // RedactionTypePii is a RedactionType enum value 7975 RedactionTypePii = "PII" 7976) 7977 7978// RedactionType_Values returns all elements of the RedactionType enum 7979func RedactionType_Values() []string { 7980 return []string{ 7981 RedactionTypePii, 7982 } 7983} 7984 7985const ( 7986 // SpecialtyPrimarycare is a Specialty enum value 7987 SpecialtyPrimarycare = "PRIMARYCARE" 7988) 7989 7990// Specialty_Values returns all elements of the Specialty enum 7991func Specialty_Values() []string { 7992 return []string{ 7993 SpecialtyPrimarycare, 7994 } 7995} 7996 7997const ( 7998 // TranscriptionJobStatusQueued is a TranscriptionJobStatus enum value 7999 TranscriptionJobStatusQueued = "QUEUED" 8000 8001 // TranscriptionJobStatusInProgress is a TranscriptionJobStatus enum value 8002 TranscriptionJobStatusInProgress = "IN_PROGRESS" 8003 8004 // TranscriptionJobStatusFailed is a TranscriptionJobStatus enum value 8005 TranscriptionJobStatusFailed = "FAILED" 8006 8007 // TranscriptionJobStatusCompleted is a TranscriptionJobStatus enum value 8008 TranscriptionJobStatusCompleted = "COMPLETED" 8009) 8010 8011// TranscriptionJobStatus_Values returns all elements of the TranscriptionJobStatus enum 8012func TranscriptionJobStatus_Values() []string { 8013 return []string{ 8014 TranscriptionJobStatusQueued, 8015 TranscriptionJobStatusInProgress, 8016 TranscriptionJobStatusFailed, 8017 TranscriptionJobStatusCompleted, 8018 } 8019} 8020 8021const ( 8022 // TypeConversation is a Type enum value 8023 TypeConversation = "CONVERSATION" 8024 8025 // TypeDictation is a Type enum value 8026 TypeDictation = "DICTATION" 8027) 8028 8029// Type_Values returns all elements of the Type enum 8030func Type_Values() []string { 8031 return []string{ 8032 TypeConversation, 8033 TypeDictation, 8034 } 8035} 8036 8037const ( 8038 // VocabularyFilterMethodRemove is a VocabularyFilterMethod enum value 8039 VocabularyFilterMethodRemove = "remove" 8040 8041 // VocabularyFilterMethodMask is a VocabularyFilterMethod enum value 8042 VocabularyFilterMethodMask = "mask" 8043) 8044 8045// VocabularyFilterMethod_Values returns all elements of the VocabularyFilterMethod enum 8046func VocabularyFilterMethod_Values() []string { 8047 return []string{ 8048 VocabularyFilterMethodRemove, 8049 VocabularyFilterMethodMask, 8050 } 8051} 8052 8053const ( 8054 // VocabularyStatePending is a VocabularyState enum value 8055 VocabularyStatePending = "PENDING" 8056 8057 // VocabularyStateReady is a VocabularyState enum value 8058 VocabularyStateReady = "READY" 8059 8060 // VocabularyStateFailed is a VocabularyState enum value 8061 VocabularyStateFailed = "FAILED" 8062) 8063 8064// VocabularyState_Values returns all elements of the VocabularyState enum 8065func VocabularyState_Values() []string { 8066 return []string{ 8067 VocabularyStatePending, 8068 VocabularyStateReady, 8069 VocabularyStateFailed, 8070 } 8071} 8072