aws-sdk-translate 1.26.0 → 1.31.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -17,7 +17,13 @@ module Aws::Translate
17
17
  AppliedTerminologyList = Shapes::ListShape.new(name: 'AppliedTerminologyList')
18
18
  BoundedLengthString = Shapes::StringShape.new(name: 'BoundedLengthString')
19
19
  ClientTokenString = Shapes::StringShape.new(name: 'ClientTokenString')
20
+ ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
21
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
20
22
  ContentType = Shapes::StringShape.new(name: 'ContentType')
23
+ CreateParallelDataRequest = Shapes::StructureShape.new(name: 'CreateParallelDataRequest')
24
+ CreateParallelDataResponse = Shapes::StructureShape.new(name: 'CreateParallelDataResponse')
25
+ DeleteParallelDataRequest = Shapes::StructureShape.new(name: 'DeleteParallelDataRequest')
26
+ DeleteParallelDataResponse = Shapes::StructureShape.new(name: 'DeleteParallelDataResponse')
21
27
  DeleteTerminologyRequest = Shapes::StructureShape.new(name: 'DeleteTerminologyRequest')
22
28
  DescribeTextTranslationJobRequest = Shapes::StructureShape.new(name: 'DescribeTextTranslationJobRequest')
23
29
  DescribeTextTranslationJobResponse = Shapes::StructureShape.new(name: 'DescribeTextTranslationJobResponse')
@@ -26,6 +32,8 @@ module Aws::Translate
26
32
  EncryptionKey = Shapes::StructureShape.new(name: 'EncryptionKey')
27
33
  EncryptionKeyID = Shapes::StringShape.new(name: 'EncryptionKeyID')
28
34
  EncryptionKeyType = Shapes::StringShape.new(name: 'EncryptionKeyType')
35
+ GetParallelDataRequest = Shapes::StructureShape.new(name: 'GetParallelDataRequest')
36
+ GetParallelDataResponse = Shapes::StructureShape.new(name: 'GetParallelDataResponse')
29
37
  GetTerminologyRequest = Shapes::StructureShape.new(name: 'GetTerminologyRequest')
30
38
  GetTerminologyResponse = Shapes::StructureShape.new(name: 'GetTerminologyResponse')
31
39
  IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
@@ -44,14 +52,24 @@ module Aws::Translate
44
52
  LanguageCodeString = Shapes::StringShape.new(name: 'LanguageCodeString')
45
53
  LanguageCodeStringList = Shapes::ListShape.new(name: 'LanguageCodeStringList')
46
54
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
55
+ ListParallelDataRequest = Shapes::StructureShape.new(name: 'ListParallelDataRequest')
56
+ ListParallelDataResponse = Shapes::StructureShape.new(name: 'ListParallelDataResponse')
47
57
  ListTerminologiesRequest = Shapes::StructureShape.new(name: 'ListTerminologiesRequest')
48
58
  ListTerminologiesResponse = Shapes::StructureShape.new(name: 'ListTerminologiesResponse')
49
59
  ListTextTranslationJobsRequest = Shapes::StructureShape.new(name: 'ListTextTranslationJobsRequest')
50
60
  ListTextTranslationJobsResponse = Shapes::StructureShape.new(name: 'ListTextTranslationJobsResponse')
61
+ Long = Shapes::IntegerShape.new(name: 'Long')
51
62
  MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
52
63
  MergeStrategy = Shapes::StringShape.new(name: 'MergeStrategy')
53
64
  NextToken = Shapes::StringShape.new(name: 'NextToken')
54
65
  OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
66
+ ParallelDataArn = Shapes::StringShape.new(name: 'ParallelDataArn')
67
+ ParallelDataConfig = Shapes::StructureShape.new(name: 'ParallelDataConfig')
68
+ ParallelDataDataLocation = Shapes::StructureShape.new(name: 'ParallelDataDataLocation')
69
+ ParallelDataFormat = Shapes::StringShape.new(name: 'ParallelDataFormat')
70
+ ParallelDataProperties = Shapes::StructureShape.new(name: 'ParallelDataProperties')
71
+ ParallelDataPropertiesList = Shapes::ListShape.new(name: 'ParallelDataPropertiesList')
72
+ ParallelDataStatus = Shapes::StringShape.new(name: 'ParallelDataStatus')
55
73
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
56
74
  ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
57
75
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -82,6 +100,8 @@ module Aws::Translate
82
100
  TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
83
101
  UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
84
102
  UnsupportedLanguagePairException = Shapes::StructureShape.new(name: 'UnsupportedLanguagePairException')
103
+ UpdateParallelDataRequest = Shapes::StructureShape.new(name: 'UpdateParallelDataRequest')
104
+ UpdateParallelDataResponse = Shapes::StructureShape.new(name: 'UpdateParallelDataResponse')
85
105
 
86
106
  AppliedTerminology.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
87
107
  AppliedTerminology.add_member(:terms, Shapes::ShapeRef.new(shape: TermList, location_name: "Terms"))
@@ -89,6 +109,30 @@ module Aws::Translate
89
109
 
90
110
  AppliedTerminologyList.member = Shapes::ShapeRef.new(shape: AppliedTerminology)
91
111
 
112
+ ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
113
+ ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
114
+
115
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
116
+ ConflictException.struct_class = Types::ConflictException
117
+
118
+ CreateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
119
+ CreateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
120
+ CreateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
121
+ CreateParallelDataRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
122
+ CreateParallelDataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
123
+ CreateParallelDataRequest.struct_class = Types::CreateParallelDataRequest
124
+
125
+ CreateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
126
+ CreateParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
127
+ CreateParallelDataResponse.struct_class = Types::CreateParallelDataResponse
128
+
129
+ DeleteParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
130
+ DeleteParallelDataRequest.struct_class = Types::DeleteParallelDataRequest
131
+
132
+ DeleteParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
133
+ DeleteParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
134
+ DeleteParallelDataResponse.struct_class = Types::DeleteParallelDataResponse
135
+
92
136
  DeleteTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
93
137
  DeleteTerminologyRequest.struct_class = Types::DeleteTerminologyRequest
94
138
 
@@ -106,6 +150,15 @@ module Aws::Translate
106
150
  EncryptionKey.add_member(:id, Shapes::ShapeRef.new(shape: EncryptionKeyID, required: true, location_name: "Id"))
107
151
  EncryptionKey.struct_class = Types::EncryptionKey
108
152
 
153
+ GetParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
154
+ GetParallelDataRequest.struct_class = Types::GetParallelDataRequest
155
+
156
+ GetParallelDataResponse.add_member(:parallel_data_properties, Shapes::ShapeRef.new(shape: ParallelDataProperties, location_name: "ParallelDataProperties"))
157
+ GetParallelDataResponse.add_member(:data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "DataLocation"))
158
+ GetParallelDataResponse.add_member(:auxiliary_data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "AuxiliaryDataLocation"))
159
+ GetParallelDataResponse.add_member(:latest_update_attempt_auxiliary_data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "LatestUpdateAttemptAuxiliaryDataLocation"))
160
+ GetParallelDataResponse.struct_class = Types::GetParallelDataResponse
161
+
109
162
  GetTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
110
163
  GetTerminologyRequest.add_member(:terminology_data_format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, required: true, location_name: "TerminologyDataFormat"))
111
164
  GetTerminologyRequest.struct_class = Types::GetTerminologyRequest
@@ -150,6 +203,14 @@ module Aws::Translate
150
203
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
151
204
  LimitExceededException.struct_class = Types::LimitExceededException
152
205
 
206
+ ListParallelDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
207
+ ListParallelDataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
208
+ ListParallelDataRequest.struct_class = Types::ListParallelDataRequest
209
+
210
+ ListParallelDataResponse.add_member(:parallel_data_properties_list, Shapes::ShapeRef.new(shape: ParallelDataPropertiesList, location_name: "ParallelDataPropertiesList"))
211
+ ListParallelDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
212
+ ListParallelDataResponse.struct_class = Types::ListParallelDataResponse
213
+
153
214
  ListTerminologiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
154
215
  ListTerminologiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
155
216
  ListTerminologiesRequest.struct_class = Types::ListTerminologiesRequest
@@ -170,6 +231,35 @@ module Aws::Translate
170
231
  OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
171
232
  OutputDataConfig.struct_class = Types::OutputDataConfig
172
233
 
234
+ ParallelDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
235
+ ParallelDataConfig.add_member(:format, Shapes::ShapeRef.new(shape: ParallelDataFormat, required: true, location_name: "Format"))
236
+ ParallelDataConfig.struct_class = Types::ParallelDataConfig
237
+
238
+ ParallelDataDataLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryType"))
239
+ ParallelDataDataLocation.add_member(:location, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Location"))
240
+ ParallelDataDataLocation.struct_class = Types::ParallelDataDataLocation
241
+
242
+ ParallelDataProperties.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
243
+ ParallelDataProperties.add_member(:arn, Shapes::ShapeRef.new(shape: ParallelDataArn, location_name: "Arn"))
244
+ ParallelDataProperties.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
245
+ ParallelDataProperties.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
246
+ ParallelDataProperties.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
247
+ ParallelDataProperties.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: LanguageCodeStringList, location_name: "TargetLanguageCodes"))
248
+ ParallelDataProperties.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, location_name: "ParallelDataConfig"))
249
+ ParallelDataProperties.add_member(:message, Shapes::ShapeRef.new(shape: UnboundedLengthString, location_name: "Message"))
250
+ ParallelDataProperties.add_member(:imported_data_size, Shapes::ShapeRef.new(shape: Long, location_name: "ImportedDataSize"))
251
+ ParallelDataProperties.add_member(:imported_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "ImportedRecordCount"))
252
+ ParallelDataProperties.add_member(:failed_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "FailedRecordCount"))
253
+ ParallelDataProperties.add_member(:skipped_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "SkippedRecordCount"))
254
+ ParallelDataProperties.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
255
+ ParallelDataProperties.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
256
+ ParallelDataProperties.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedAt"))
257
+ ParallelDataProperties.add_member(:latest_update_attempt_status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "LatestUpdateAttemptStatus"))
258
+ ParallelDataProperties.add_member(:latest_update_attempt_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestUpdateAttemptAt"))
259
+ ParallelDataProperties.struct_class = Types::ParallelDataProperties
260
+
261
+ ParallelDataPropertiesList.member = Shapes::ShapeRef.new(shape: ParallelDataProperties)
262
+
173
263
  ResourceNameList.member = Shapes::ShapeRef.new(shape: ResourceName)
174
264
 
175
265
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
@@ -185,6 +275,7 @@ module Aws::Translate
185
275
  StartTextTranslationJobRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
186
276
  StartTextTranslationJobRequest.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: TargetLanguageCodeStringList, required: true, location_name: "TargetLanguageCodes"))
187
277
  StartTextTranslationJobRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
278
+ StartTextTranslationJobRequest.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
188
279
  StartTextTranslationJobRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
189
280
  StartTextTranslationJobRequest.struct_class = Types::StartTextTranslationJobRequest
190
281
 
@@ -245,6 +336,7 @@ module Aws::Translate
245
336
  TextTranslationJobProperties.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
246
337
  TextTranslationJobProperties.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: TargetLanguageCodeStringList, location_name: "TargetLanguageCodes"))
247
338
  TextTranslationJobProperties.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
339
+ TextTranslationJobProperties.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
248
340
  TextTranslationJobProperties.add_member(:message, Shapes::ShapeRef.new(shape: UnboundedLengthString, location_name: "Message"))
249
341
  TextTranslationJobProperties.add_member(:submitted_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmittedTime"))
250
342
  TextTranslationJobProperties.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
@@ -275,6 +367,18 @@ module Aws::Translate
275
367
  UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
276
368
  UnsupportedLanguagePairException.struct_class = Types::UnsupportedLanguagePairException
277
369
 
370
+ UpdateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
371
+ UpdateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
372
+ UpdateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
373
+ UpdateParallelDataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
374
+ UpdateParallelDataRequest.struct_class = Types::UpdateParallelDataRequest
375
+
376
+ UpdateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
377
+ UpdateParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
378
+ UpdateParallelDataResponse.add_member(:latest_update_attempt_status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "LatestUpdateAttemptStatus"))
379
+ UpdateParallelDataResponse.add_member(:latest_update_attempt_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestUpdateAttemptAt"))
380
+ UpdateParallelDataResponse.struct_class = Types::UpdateParallelDataResponse
381
+
278
382
 
279
383
  # @api private
280
384
  API = Seahorse::Model::Api.new.tap do |api|
@@ -294,6 +398,32 @@ module Aws::Translate
294
398
  "uid" => "translate-2017-07-01",
295
399
  }
296
400
 
401
+ api.add_operation(:create_parallel_data, Seahorse::Model::Operation.new.tap do |o|
402
+ o.name = "CreateParallelData"
403
+ o.http_method = "POST"
404
+ o.http_request_uri = "/"
405
+ o.input = Shapes::ShapeRef.new(shape: CreateParallelDataRequest)
406
+ o.output = Shapes::ShapeRef.new(shape: CreateParallelDataResponse)
407
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
408
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
409
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
410
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
411
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
412
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
413
+ end)
414
+
415
+ api.add_operation(:delete_parallel_data, Seahorse::Model::Operation.new.tap do |o|
416
+ o.name = "DeleteParallelData"
417
+ o.http_method = "POST"
418
+ o.http_request_uri = "/"
419
+ o.input = Shapes::ShapeRef.new(shape: DeleteParallelDataRequest)
420
+ o.output = Shapes::ShapeRef.new(shape: DeleteParallelDataResponse)
421
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
422
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
423
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
424
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
425
+ end)
426
+
297
427
  api.add_operation(:delete_terminology, Seahorse::Model::Operation.new.tap do |o|
298
428
  o.name = "DeleteTerminology"
299
429
  o.http_method = "POST"
@@ -302,6 +432,7 @@ module Aws::Translate
302
432
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
303
433
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
304
434
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
435
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
305
436
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
306
437
  end)
307
438
 
@@ -316,6 +447,18 @@ module Aws::Translate
316
447
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
317
448
  end)
318
449
 
450
+ api.add_operation(:get_parallel_data, Seahorse::Model::Operation.new.tap do |o|
451
+ o.name = "GetParallelData"
452
+ o.http_method = "POST"
453
+ o.http_request_uri = "/"
454
+ o.input = Shapes::ShapeRef.new(shape: GetParallelDataRequest)
455
+ o.output = Shapes::ShapeRef.new(shape: GetParallelDataResponse)
456
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
457
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
458
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
459
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
460
+ end)
461
+
319
462
  api.add_operation(:get_terminology, Seahorse::Model::Operation.new.tap do |o|
320
463
  o.name = "GetTerminology"
321
464
  o.http_method = "POST"
@@ -340,6 +483,23 @@ module Aws::Translate
340
483
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
341
484
  end)
342
485
 
486
+ api.add_operation(:list_parallel_data, Seahorse::Model::Operation.new.tap do |o|
487
+ o.name = "ListParallelData"
488
+ o.http_method = "POST"
489
+ o.http_request_uri = "/"
490
+ o.input = Shapes::ShapeRef.new(shape: ListParallelDataRequest)
491
+ o.output = Shapes::ShapeRef.new(shape: ListParallelDataResponse)
492
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
493
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
494
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
495
+ o[:pager] = Aws::Pager.new(
496
+ limit_key: "max_results",
497
+ tokens: {
498
+ "next_token" => "next_token"
499
+ }
500
+ )
501
+ end)
502
+
343
503
  api.add_operation(:list_terminologies, Seahorse::Model::Operation.new.tap do |o|
344
504
  o.name = "ListTerminologies"
345
505
  o.http_method = "POST"
@@ -414,6 +574,22 @@ module Aws::Translate
414
574
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
415
575
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
416
576
  end)
577
+
578
+ api.add_operation(:update_parallel_data, Seahorse::Model::Operation.new.tap do |o|
579
+ o.name = "UpdateParallelData"
580
+ o.http_method = "POST"
581
+ o.http_request_uri = "/"
582
+ o.input = Shapes::ShapeRef.new(shape: UpdateParallelDataRequest)
583
+ o.output = Shapes::ShapeRef.new(shape: UpdateParallelDataResponse)
584
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
585
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
586
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
587
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
588
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
589
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
590
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
591
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
592
+ end)
417
593
  end
418
594
 
419
595
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -27,6 +27,8 @@ module Aws::Translate
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {ConcurrentModificationException}
31
+ # * {ConflictException}
30
32
  # * {DetectedLanguageLowConfidenceException}
31
33
  # * {InternalServerException}
32
34
  # * {InvalidFilterException}
@@ -45,6 +47,36 @@ module Aws::Translate
45
47
 
46
48
  extend Aws::Errors::DynamicErrors
47
49
 
50
+ class ConcurrentModificationException < ServiceError
51
+
52
+ # @param [Seahorse::Client::RequestContext] context
53
+ # @param [String] message
54
+ # @param [Aws::Translate::Types::ConcurrentModificationException] data
55
+ def initialize(context, message, data = Aws::EmptyStructure.new)
56
+ super(context, message, data)
57
+ end
58
+
59
+ # @return [String]
60
+ def message
61
+ @message || @data[:message]
62
+ end
63
+ end
64
+
65
+ class ConflictException < ServiceError
66
+
67
+ # @param [Seahorse::Client::RequestContext] context
68
+ # @param [String] message
69
+ # @param [Aws::Translate::Types::ConflictException] data
70
+ def initialize(context, message, data = Aws::EmptyStructure.new)
71
+ super(context, message, data)
72
+ end
73
+
74
+ # @return [String]
75
+ def message
76
+ @message || @data[:message]
77
+ end
78
+ end
79
+
48
80
  class DetectedLanguageLowConfidenceException < ServiceError
49
81
 
50
82
  # @param [Seahorse::Client::RequestContext] context
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -37,6 +37,143 @@ module Aws::Translate
37
37
  include Aws::Structure
38
38
  end
39
39
 
40
+ # Another modification is being made. That modification must complete
41
+ # before you can make your change.
42
+ #
43
+ # @!attribute [rw] message
44
+ # @return [String]
45
+ #
46
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ConcurrentModificationException AWS API Documentation
47
+ #
48
+ class ConcurrentModificationException < Struct.new(
49
+ :message)
50
+ SENSITIVE = []
51
+ include Aws::Structure
52
+ end
53
+
54
+ # There was a conflict processing the request. Try your request again.
55
+ #
56
+ # @!attribute [rw] message
57
+ # @return [String]
58
+ #
59
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ConflictException AWS API Documentation
60
+ #
61
+ class ConflictException < Struct.new(
62
+ :message)
63
+ SENSITIVE = []
64
+ include Aws::Structure
65
+ end
66
+
67
+ # @note When making an API call, you may pass CreateParallelDataRequest
68
+ # data as a hash:
69
+ #
70
+ # {
71
+ # name: "ResourceName", # required
72
+ # description: "Description",
73
+ # parallel_data_config: { # required
74
+ # s3_uri: "S3Uri", # required
75
+ # format: "TSV", # required, accepts TSV, CSV, TMX
76
+ # },
77
+ # encryption_key: {
78
+ # type: "KMS", # required, accepts KMS
79
+ # id: "EncryptionKeyID", # required
80
+ # },
81
+ # client_token: "ClientTokenString", # required
82
+ # }
83
+ #
84
+ # @!attribute [rw] name
85
+ # A custom name for the parallel data resource in Amazon Translate.
86
+ # You must assign a name that is unique in the account and region.
87
+ # @return [String]
88
+ #
89
+ # @!attribute [rw] description
90
+ # A custom description for the parallel data resource in Amazon
91
+ # Translate.
92
+ # @return [String]
93
+ #
94
+ # @!attribute [rw] parallel_data_config
95
+ # Specifies the format and S3 location of the parallel data input
96
+ # file.
97
+ # @return [Types::ParallelDataConfig]
98
+ #
99
+ # @!attribute [rw] encryption_key
100
+ # The encryption key used to encrypt this object.
101
+ # @return [Types::EncryptionKey]
102
+ #
103
+ # @!attribute [rw] client_token
104
+ # A unique identifier for the request. This token is automatically
105
+ # generated when you use Amazon Translate through an AWS SDK.
106
+ #
107
+ # **A suitable default value is auto-generated.** You should normally
108
+ # not need to pass this option.
109
+ # @return [String]
110
+ #
111
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelDataRequest AWS API Documentation
112
+ #
113
+ class CreateParallelDataRequest < Struct.new(
114
+ :name,
115
+ :description,
116
+ :parallel_data_config,
117
+ :encryption_key,
118
+ :client_token)
119
+ SENSITIVE = []
120
+ include Aws::Structure
121
+ end
122
+
123
+ # @!attribute [rw] name
124
+ # The custom name that you assigned to the parallel data resource.
125
+ # @return [String]
126
+ #
127
+ # @!attribute [rw] status
128
+ # The status of the parallel data resource. When the resource is ready
129
+ # for you to use, the status is `ACTIVE`.
130
+ # @return [String]
131
+ #
132
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelDataResponse AWS API Documentation
133
+ #
134
+ class CreateParallelDataResponse < Struct.new(
135
+ :name,
136
+ :status)
137
+ SENSITIVE = []
138
+ include Aws::Structure
139
+ end
140
+
141
+ # @note When making an API call, you may pass DeleteParallelDataRequest
142
+ # data as a hash:
143
+ #
144
+ # {
145
+ # name: "ResourceName", # required
146
+ # }
147
+ #
148
+ # @!attribute [rw] name
149
+ # The name of the parallel data resource that is being deleted.
150
+ # @return [String]
151
+ #
152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteParallelDataRequest AWS API Documentation
153
+ #
154
+ class DeleteParallelDataRequest < Struct.new(
155
+ :name)
156
+ SENSITIVE = []
157
+ include Aws::Structure
158
+ end
159
+
160
+ # @!attribute [rw] name
161
+ # The name of the parallel data resource that is being deleted.
162
+ # @return [String]
163
+ #
164
+ # @!attribute [rw] status
165
+ # The status of the parallel data deletion.
166
+ # @return [String]
167
+ #
168
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteParallelDataResponse AWS API Documentation
169
+ #
170
+ class DeleteParallelDataResponse < Struct.new(
171
+ :name,
172
+ :status)
173
+ SENSITIVE = []
174
+ include Aws::Structure
175
+ end
176
+
40
177
  # @note When making an API call, you may pass DeleteTerminologyRequest
41
178
  # data as a hash:
42
179
  #
@@ -118,8 +255,7 @@ module Aws::Translate
118
255
  include Aws::Structure
119
256
  end
120
257
 
121
- # The encryption key used to encrypt the custom terminologies used by
122
- # Amazon Translate.
258
+ # The encryption key used to encrypt this object.
123
259
  #
124
260
  # @note When making an API call, you may pass EncryptionKey
125
261
  # data as a hash:
@@ -148,6 +284,63 @@ module Aws::Translate
148
284
  include Aws::Structure
149
285
  end
150
286
 
287
+ # @note When making an API call, you may pass GetParallelDataRequest
288
+ # data as a hash:
289
+ #
290
+ # {
291
+ # name: "ResourceName", # required
292
+ # }
293
+ #
294
+ # @!attribute [rw] name
295
+ # The name of the parallel data resource that is being retrieved.
296
+ # @return [String]
297
+ #
298
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetParallelDataRequest AWS API Documentation
299
+ #
300
+ class GetParallelDataRequest < Struct.new(
301
+ :name)
302
+ SENSITIVE = []
303
+ include Aws::Structure
304
+ end
305
+
306
+ # @!attribute [rw] parallel_data_properties
307
+ # The properties of the parallel data resource that is being
308
+ # retrieved.
309
+ # @return [Types::ParallelDataProperties]
310
+ #
311
+ # @!attribute [rw] data_location
312
+ # The location of the most recent parallel data input file that was
313
+ # successfully imported into Amazon Translate. The location is
314
+ # returned as a presigned URL that has a 30 minute expiration.
315
+ # @return [Types::ParallelDataDataLocation]
316
+ #
317
+ # @!attribute [rw] auxiliary_data_location
318
+ # The Amazon S3 location of a file that provides any errors or
319
+ # warnings that were produced by your input file. This file was
320
+ # created when Amazon Translate attempted to create a parallel data
321
+ # resource. The location is returned as a presigned URL to that has a
322
+ # 30 minute expiration.
323
+ # @return [Types::ParallelDataDataLocation]
324
+ #
325
+ # @!attribute [rw] latest_update_attempt_auxiliary_data_location
326
+ # The Amazon S3 location of a file that provides any errors or
327
+ # warnings that were produced by your input file. This file was
328
+ # created when Amazon Translate attempted to update a parallel data
329
+ # resource. The location is returned as a presigned URL to that has a
330
+ # 30 minute expiration.
331
+ # @return [Types::ParallelDataDataLocation]
332
+ #
333
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetParallelDataResponse AWS API Documentation
334
+ #
335
+ class GetParallelDataResponse < Struct.new(
336
+ :parallel_data_properties,
337
+ :data_location,
338
+ :auxiliary_data_location,
339
+ :latest_update_attempt_auxiliary_data_location)
340
+ SENSITIVE = []
341
+ include Aws::Structure
342
+ end
343
+
151
344
  # @note When making an API call, you may pass GetTerminologyRequest
152
345
  # data as a hash:
153
346
  #
@@ -275,9 +468,34 @@ module Aws::Translate
275
468
  # @return [String]
276
469
  #
277
470
  # @!attribute [rw] content_type
278
- # The multipurpose internet mail extension (MIME) type of the input
279
- # files. Valid values are `text/plain` for plaintext files and
280
- # `text/html` for HTML files.
471
+ # Describes the format of the data that you submit to Amazon Translate
472
+ # as input. You can specify one of the following multipurpose internet
473
+ # mail extension (MIME) types:
474
+ #
475
+ # * `text/html`\: The input data consists of one or more HTML files.
476
+ # Amazon Translate translates only the text that resides in the
477
+ # `html` element in each file.
478
+ #
479
+ # * `text/plain`\: The input data consists of one or more unformatted
480
+ # text files. Amazon Translate translates every character in this
481
+ # type of input.
482
+ #
483
+ # * `application/vnd.openxmlformats-officedocument.wordprocessingml.document`\:
484
+ # The input data consists of one or more Word documents (.docx).
485
+ #
486
+ # * `application/vnd.openxmlformats-officedocument.presentationml.presentation`\:
487
+ # The input data consists of one or more PowerPoint Presentation
488
+ # files (.pptx).
489
+ #
490
+ # * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`\:
491
+ # The input data consists of one or more Excel Workbook files
492
+ # (.xlsx).
493
+ #
494
+ # If you structure your input data as HTML, ensure that you set this
495
+ # parameter to `text/html`. By doing so, you cut costs by limiting the
496
+ # translation to the contents of the `html` element in each file.
497
+ # Otherwise, if you set this parameter to `text/plain`, your costs
498
+ # will cover the translation of every character.
281
499
  # @return [String]
282
500
  #
283
501
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/InputDataConfig AWS API Documentation
@@ -385,6 +603,53 @@ module Aws::Translate
385
603
  include Aws::Structure
386
604
  end
387
605
 
606
+ # @note When making an API call, you may pass ListParallelDataRequest
607
+ # data as a hash:
608
+ #
609
+ # {
610
+ # next_token: "NextToken",
611
+ # max_results: 1,
612
+ # }
613
+ #
614
+ # @!attribute [rw] next_token
615
+ # A string that specifies the next page of results to return in a
616
+ # paginated response.
617
+ # @return [String]
618
+ #
619
+ # @!attribute [rw] max_results
620
+ # The maximum number of parallel data resources returned for each
621
+ # request.
622
+ # @return [Integer]
623
+ #
624
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListParallelDataRequest AWS API Documentation
625
+ #
626
+ class ListParallelDataRequest < Struct.new(
627
+ :next_token,
628
+ :max_results)
629
+ SENSITIVE = []
630
+ include Aws::Structure
631
+ end
632
+
633
+ # @!attribute [rw] parallel_data_properties_list
634
+ # The properties of the parallel data resources returned by this
635
+ # request.
636
+ # @return [Array<Types::ParallelDataProperties>]
637
+ #
638
+ # @!attribute [rw] next_token
639
+ # The string to use in a subsequent request to get the next page of
640
+ # results in a paginated response. This value is null if there are no
641
+ # additional pages.
642
+ # @return [String]
643
+ #
644
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListParallelDataResponse AWS API Documentation
645
+ #
646
+ class ListParallelDataResponse < Struct.new(
647
+ :parallel_data_properties_list,
648
+ :next_token)
649
+ SENSITIVE = []
650
+ include Aws::Structure
651
+ end
652
+
388
653
  # @note When making an API call, you may pass ListTerminologiesRequest
389
654
  # data as a hash:
390
655
  #
@@ -512,6 +777,166 @@ module Aws::Translate
512
777
  include Aws::Structure
513
778
  end
514
779
 
780
+ # Specifies the format and S3 location of the parallel data input file.
781
+ #
782
+ # @note When making an API call, you may pass ParallelDataConfig
783
+ # data as a hash:
784
+ #
785
+ # {
786
+ # s3_uri: "S3Uri", # required
787
+ # format: "TSV", # required, accepts TSV, CSV, TMX
788
+ # }
789
+ #
790
+ # @!attribute [rw] s3_uri
791
+ # The URI of the Amazon S3 folder that contains the parallel data
792
+ # input file. The folder must be in the same Region as the API
793
+ # endpoint you are calling.
794
+ # @return [String]
795
+ #
796
+ # @!attribute [rw] format
797
+ # The format of the parallel data input file.
798
+ # @return [String]
799
+ #
800
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataConfig AWS API Documentation
801
+ #
802
+ class ParallelDataConfig < Struct.new(
803
+ :s3_uri,
804
+ :format)
805
+ SENSITIVE = []
806
+ include Aws::Structure
807
+ end
808
+
809
+ # The location of the most recent parallel data input file that was
810
+ # successfully imported into Amazon Translate.
811
+ #
812
+ # @!attribute [rw] repository_type
813
+ # Describes the repository that contains the parallel data input file.
814
+ # @return [String]
815
+ #
816
+ # @!attribute [rw] location
817
+ # The Amazon S3 location of the parallel data input file. The location
818
+ # is returned as a presigned URL to that has a 30 minute expiration.
819
+ # @return [String]
820
+ #
821
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataDataLocation AWS API Documentation
822
+ #
823
+ class ParallelDataDataLocation < Struct.new(
824
+ :repository_type,
825
+ :location)
826
+ SENSITIVE = []
827
+ include Aws::Structure
828
+ end
829
+
830
+ # The properties of a parallel data resource.
831
+ #
832
+ # @!attribute [rw] name
833
+ # The custom name assigned to the parallel data resource.
834
+ # @return [String]
835
+ #
836
+ # @!attribute [rw] arn
837
+ # The Amazon Resource Name (ARN) of the parallel data resource.
838
+ # @return [String]
839
+ #
840
+ # @!attribute [rw] description
841
+ # The description assigned to the parallel data resource.
842
+ # @return [String]
843
+ #
844
+ # @!attribute [rw] status
845
+ # The status of the parallel data resource. When the parallel data is
846
+ # ready for you to use, the status is `ACTIVE`.
847
+ # @return [String]
848
+ #
849
+ # @!attribute [rw] source_language_code
850
+ # The source language of the translations in the parallel data file.
851
+ # @return [String]
852
+ #
853
+ # @!attribute [rw] target_language_codes
854
+ # The language codes for the target languages available in the
855
+ # parallel data file. All possible target languages are returned as an
856
+ # array.
857
+ # @return [Array<String>]
858
+ #
859
+ # @!attribute [rw] parallel_data_config
860
+ # Specifies the format and S3 location of the parallel data input
861
+ # file.
862
+ # @return [Types::ParallelDataConfig]
863
+ #
864
+ # @!attribute [rw] message
865
+ # Additional information from Amazon Translate about the parallel data
866
+ # resource.
867
+ # @return [String]
868
+ #
869
+ # @!attribute [rw] imported_data_size
870
+ # The number of UTF-8 characters that Amazon Translate imported from
871
+ # the parallel data input file. This number includes only the
872
+ # characters in your translation examples. It does not include
873
+ # characters that are used to format your file. For example, if you
874
+ # provided a Translation Memory Exchange (.tmx) file, this number does
875
+ # not include the tags.
876
+ # @return [Integer]
877
+ #
878
+ # @!attribute [rw] imported_record_count
879
+ # The number of records successfully imported from the parallel data
880
+ # input file.
881
+ # @return [Integer]
882
+ #
883
+ # @!attribute [rw] failed_record_count
884
+ # The number of records unsuccessfully imported from the parallel data
885
+ # input file.
886
+ # @return [Integer]
887
+ #
888
+ # @!attribute [rw] skipped_record_count
889
+ # The number of items in the input file that Amazon Translate skipped
890
+ # when you created or updated the parallel data resource. For example,
891
+ # Amazon Translate skips empty records, empty target texts, and empty
892
+ # lines.
893
+ # @return [Integer]
894
+ #
895
+ # @!attribute [rw] encryption_key
896
+ # The encryption key used to encrypt this object.
897
+ # @return [Types::EncryptionKey]
898
+ #
899
+ # @!attribute [rw] created_at
900
+ # The time at which the parallel data resource was created.
901
+ # @return [Time]
902
+ #
903
+ # @!attribute [rw] last_updated_at
904
+ # The time at which the parallel data resource was last updated.
905
+ # @return [Time]
906
+ #
907
+ # @!attribute [rw] latest_update_attempt_status
908
+ # The status of the most recent update attempt for the parallel data
909
+ # resource.
910
+ # @return [String]
911
+ #
912
+ # @!attribute [rw] latest_update_attempt_at
913
+ # The time that the most recent update was attempted.
914
+ # @return [Time]
915
+ #
916
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataProperties AWS API Documentation
917
+ #
918
+ class ParallelDataProperties < Struct.new(
919
+ :name,
920
+ :arn,
921
+ :description,
922
+ :status,
923
+ :source_language_code,
924
+ :target_language_codes,
925
+ :parallel_data_config,
926
+ :message,
927
+ :imported_data_size,
928
+ :imported_record_count,
929
+ :failed_record_count,
930
+ :skipped_record_count,
931
+ :encryption_key,
932
+ :created_at,
933
+ :last_updated_at,
934
+ :latest_update_attempt_status,
935
+ :latest_update_attempt_at)
936
+ SENSITIVE = []
937
+ include Aws::Structure
938
+ end
939
+
515
940
  # The resource you are looking for has not been found. Review the
516
941
  # resource you're looking for and see if a different resource will
517
942
  # accomplish your needs before retrying the revised request.
@@ -557,6 +982,7 @@ module Aws::Translate
557
982
  # source_language_code: "LanguageCodeString", # required
558
983
  # target_language_codes: ["LanguageCodeString"], # required
559
984
  # terminology_names: ["ResourceName"],
985
+ # parallel_data_names: ["ResourceName"],
560
986
  # client_token: "ClientTokenString", # required
561
987
  # }
562
988
  #
@@ -598,15 +1024,15 @@ module Aws::Translate
598
1024
  # operation.
599
1025
  # @return [Array<String>]
600
1026
  #
1027
+ # @!attribute [rw] parallel_data_names
1028
+ # The names of the parallel data resources to use in the batch
1029
+ # translation job. For a list of available parallel data resources,
1030
+ # use the ListParallelData operation.
1031
+ # @return [Array<String>]
1032
+ #
601
1033
  # @!attribute [rw] client_token
602
- # The client token of the EC2 instance calling the request. This token
603
- # is auto-generated when using the Amazon Translate SDK. Otherwise,
604
- # use the
605
- # [DescribeInstances](docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html)
606
- # EC2 operation to retreive an instance's client token. For more
607
- # information, see [Client
608
- # Tokens](docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html#client-tokens)
609
- # in the EC2 User Guide.
1034
+ # A unique identifier for the request. This token is auto-generated
1035
+ # when using the Amazon Translate SDK.
610
1036
  #
611
1037
  # **A suitable default value is auto-generated.** You should normally
612
1038
  # not need to pass this option.
@@ -622,6 +1048,7 @@ module Aws::Translate
622
1048
  :source_language_code,
623
1049
  :target_language_codes,
624
1050
  :terminology_names,
1051
+ :parallel_data_names,
625
1052
  :client_token)
626
1053
  SENSITIVE = []
627
1054
  include Aws::Structure
@@ -643,7 +1070,7 @@ module Aws::Translate
643
1070
  # * `COMPLETED` - The job was successfully completed and the output is
644
1071
  # available.
645
1072
  #
646
- # * `COMPLETED_WITH_ERRORS` - The job was completed with errors. The
1073
+ # * `COMPLETED_WITH_ERROR` - The job was completed with errors. The
647
1074
  # errors can be analyzed in the job's output.
648
1075
  #
649
1076
  # * `FAILED` - The job did not complete. To get details, use the
@@ -931,6 +1358,11 @@ module Aws::Translate
931
1358
  # StartTextTranslationJob request at this time.
932
1359
  # @return [Array<String>]
933
1360
  #
1361
+ # @!attribute [rw] parallel_data_names
1362
+ # A list containing the names of the parallel data resources applied
1363
+ # to the translation job.
1364
+ # @return [Array<String>]
1365
+ #
934
1366
  # @!attribute [rw] message
935
1367
  # An explanation of any errors that may have occured during the
936
1368
  # translation job.
@@ -970,6 +1402,7 @@ module Aws::Translate
970
1402
  :source_language_code,
971
1403
  :target_language_codes,
972
1404
  :terminology_names,
1405
+ :parallel_data_names,
973
1406
  :message,
974
1407
  :submitted_time,
975
1408
  :end_time,
@@ -1101,5 +1534,82 @@ module Aws::Translate
1101
1534
  include Aws::Structure
1102
1535
  end
1103
1536
 
1537
+ # @note When making an API call, you may pass UpdateParallelDataRequest
1538
+ # data as a hash:
1539
+ #
1540
+ # {
1541
+ # name: "ResourceName", # required
1542
+ # description: "Description",
1543
+ # parallel_data_config: { # required
1544
+ # s3_uri: "S3Uri", # required
1545
+ # format: "TSV", # required, accepts TSV, CSV, TMX
1546
+ # },
1547
+ # client_token: "ClientTokenString", # required
1548
+ # }
1549
+ #
1550
+ # @!attribute [rw] name
1551
+ # The name of the parallel data resource being updated.
1552
+ # @return [String]
1553
+ #
1554
+ # @!attribute [rw] description
1555
+ # A custom description for the parallel data resource in Amazon
1556
+ # Translate.
1557
+ # @return [String]
1558
+ #
1559
+ # @!attribute [rw] parallel_data_config
1560
+ # Specifies the format and S3 location of the parallel data input
1561
+ # file.
1562
+ # @return [Types::ParallelDataConfig]
1563
+ #
1564
+ # @!attribute [rw] client_token
1565
+ # A unique identifier for the request. This token is automatically
1566
+ # generated when you use Amazon Translate through an AWS SDK.
1567
+ #
1568
+ # **A suitable default value is auto-generated.** You should normally
1569
+ # not need to pass this option.
1570
+ # @return [String]
1571
+ #
1572
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UpdateParallelDataRequest AWS API Documentation
1573
+ #
1574
+ class UpdateParallelDataRequest < Struct.new(
1575
+ :name,
1576
+ :description,
1577
+ :parallel_data_config,
1578
+ :client_token)
1579
+ SENSITIVE = []
1580
+ include Aws::Structure
1581
+ end
1582
+
1583
+ # @!attribute [rw] name
1584
+ # The name of the parallel data resource being updated.
1585
+ # @return [String]
1586
+ #
1587
+ # @!attribute [rw] status
1588
+ # The status of the parallel data resource that you are attempting to
1589
+ # update. Your update request is accepted only if this status is
1590
+ # either `ACTIVE` or `FAILED`.
1591
+ # @return [String]
1592
+ #
1593
+ # @!attribute [rw] latest_update_attempt_status
1594
+ # The status of the parallel data update attempt. When the updated
1595
+ # parallel data resource is ready for you to use, the status is
1596
+ # `ACTIVE`.
1597
+ # @return [String]
1598
+ #
1599
+ # @!attribute [rw] latest_update_attempt_at
1600
+ # The time that the most recent update was attempted.
1601
+ # @return [Time]
1602
+ #
1603
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UpdateParallelDataResponse AWS API Documentation
1604
+ #
1605
+ class UpdateParallelDataResponse < Struct.new(
1606
+ :name,
1607
+ :status,
1608
+ :latest_update_attempt_status,
1609
+ :latest_update_attempt_at)
1610
+ SENSITIVE = []
1611
+ include Aws::Structure
1612
+ end
1613
+
1104
1614
  end
1105
1615
  end