aws-sdk-translate 1.45.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abd066b6c5b9dac4d629ffbbc189078b1ad429a8feca5970634bfa4df1aea81e
4
- data.tar.gz: 0dc26a80eb1dd895d3bf5c4e1720818cf1b7cf0849527f5d41ac0572c16ff23a
3
+ metadata.gz: 1f9fe94a729557cfbef30414d5036466140765718fc320f3e30b8de91d84da44
4
+ data.tar.gz: a3e05811ad85d29b995f981dedaec228656e88b8d10b12977a0726813f1114ae
5
5
  SHA512:
6
- metadata.gz: 84d26f6c04e0c0193f23517a6bd6161ab896df0f9a150ed7b27157f5d2184deee3df26c9a4274a4fecfb355ee38fffbe6f9c8188ec21548baf2206e7b03bef1c
7
- data.tar.gz: a5c833133ca4feb63679f1ee0edf21aba3967daf1af88e421ec75157190e6092c530dc5666f1e53ac2ab27e783da1b99a2f986bc37a46a74d1c763a11ab348b8
6
+ metadata.gz: 2718e2c6462ec8454fb050184488736de5b4269377c8c93fd05b4186f51c984dc66f222d35c1e16fff35ba5a37a478d7268b9cda47a2c518ed68d37f141e6e72
7
+ data.tar.gz: e97b7052e461d0daef398065bc6362acbe5f1012b47ae54818a5c8bf873bb0efdeb2bc21a8c1df22f2c83cc95f7f45423e1d391583efd87bb38434b01c6fd8fc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.46.0 (2022-09-29)
5
+ ------------------
6
+
7
+ * Feature - This release enables customers to access control rights on Translate resources like Parallel Data and Custom Terminology using Tag Based Authorization.
8
+
4
9
  1.45.0 (2022-06-29)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.46.0
@@ -388,6 +388,8 @@ module Aws::Translate
388
388
  # **A suitable default value is auto-generated.** You should normally
389
389
  # not need to pass this option.**
390
390
  #
391
+ # @option params [Array<Types::Tag>] :tags
392
+ #
391
393
  # @return [Types::CreateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
392
394
  #
393
395
  # * {Types::CreateParallelDataResponse#name #name} => String
@@ -407,6 +409,12 @@ module Aws::Translate
407
409
  # id: "EncryptionKeyID", # required
408
410
  # },
409
411
  # client_token: "ClientTokenString", # required
412
+ # tags: [
413
+ # {
414
+ # key: "TagKey", # required
415
+ # value: "TagValue", # required
416
+ # },
417
+ # ],
410
418
  # })
411
419
  #
412
420
  # @example Response structure
@@ -677,6 +685,8 @@ module Aws::Translate
677
685
  # @option params [Types::EncryptionKey] :encryption_key
678
686
  # The encryption key for the custom terminology being imported.
679
687
  #
688
+ # @option params [Array<Types::Tag>] :tags
689
+ #
680
690
  # @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
681
691
  #
682
692
  # * {Types::ImportTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
@@ -697,6 +707,12 @@ module Aws::Translate
697
707
  # type: "KMS", # required, accepts KMS
698
708
  # id: "EncryptionKeyID", # required
699
709
  # },
710
+ # tags: [
711
+ # {
712
+ # key: "TagKey", # required
713
+ # value: "TagValue", # required
714
+ # },
715
+ # ],
700
716
  # })
701
717
  #
702
718
  # @example Response structure
@@ -834,6 +850,33 @@ module Aws::Translate
834
850
  req.send_request(options)
835
851
  end
836
852
 
853
+ # @option params [required, String] :resource_arn
854
+ #
855
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
856
+ #
857
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
858
+ #
859
+ # @example Request syntax with placeholder values
860
+ #
861
+ # resp = client.list_tags_for_resource({
862
+ # resource_arn: "ResourceArn", # required
863
+ # })
864
+ #
865
+ # @example Response structure
866
+ #
867
+ # resp.tags #=> Array
868
+ # resp.tags[0].key #=> String
869
+ # resp.tags[0].value #=> String
870
+ #
871
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResource AWS API Documentation
872
+ #
873
+ # @overload list_tags_for_resource(params = {})
874
+ # @param [Hash] params ({})
875
+ def list_tags_for_resource(params = {}, options = {})
876
+ req = build_request(:list_tags_for_resource, params)
877
+ req.send_request(options)
878
+ end
879
+
837
880
  # Provides a list of custom terminologies associated with your account.
838
881
  #
839
882
  # @option params [String] :next_token
@@ -1131,6 +1174,33 @@ module Aws::Translate
1131
1174
  req.send_request(options)
1132
1175
  end
1133
1176
 
1177
+ # @option params [required, String] :resource_arn
1178
+ #
1179
+ # @option params [required, Array<Types::Tag>] :tags
1180
+ #
1181
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1182
+ #
1183
+ # @example Request syntax with placeholder values
1184
+ #
1185
+ # resp = client.tag_resource({
1186
+ # resource_arn: "ResourceArn", # required
1187
+ # tags: [ # required
1188
+ # {
1189
+ # key: "TagKey", # required
1190
+ # value: "TagValue", # required
1191
+ # },
1192
+ # ],
1193
+ # })
1194
+ #
1195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResource AWS API Documentation
1196
+ #
1197
+ # @overload tag_resource(params = {})
1198
+ # @param [Hash] params ({})
1199
+ def tag_resource(params = {}, options = {})
1200
+ req = build_request(:tag_resource, params)
1201
+ req.send_request(options)
1202
+ end
1203
+
1134
1204
  # Translates input text from the source language to the target language.
1135
1205
  # For a list of available languages and language codes, see
1136
1206
  # what-is-languages.
@@ -1217,6 +1287,28 @@ module Aws::Translate
1217
1287
  req.send_request(options)
1218
1288
  end
1219
1289
 
1290
+ # @option params [required, String] :resource_arn
1291
+ #
1292
+ # @option params [required, Array<String>] :tag_keys
1293
+ #
1294
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1295
+ #
1296
+ # @example Request syntax with placeholder values
1297
+ #
1298
+ # resp = client.untag_resource({
1299
+ # resource_arn: "ResourceArn", # required
1300
+ # tag_keys: ["TagKey"], # required
1301
+ # })
1302
+ #
1303
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResource AWS API Documentation
1304
+ #
1305
+ # @overload untag_resource(params = {})
1306
+ # @param [Hash] params ({})
1307
+ def untag_resource(params = {}, options = {})
1308
+ req = build_request(:untag_resource, params)
1309
+ req.send_request(options)
1310
+ end
1311
+
1220
1312
  # Updates a previously created parallel data resource by importing a new
1221
1313
  # input file from Amazon S3.
1222
1314
  #
@@ -1285,7 +1377,7 @@ module Aws::Translate
1285
1377
  params: params,
1286
1378
  config: config)
1287
1379
  context[:gem_name] = 'aws-sdk-translate'
1288
- context[:gem_version] = '1.45.0'
1380
+ context[:gem_version] = '1.46.0'
1289
1381
  Seahorse::Client::Request.new(handlers, context)
1290
1382
  end
1291
1383
 
@@ -61,6 +61,8 @@ module Aws::Translate
61
61
  ListLanguagesResponse = Shapes::StructureShape.new(name: 'ListLanguagesResponse')
62
62
  ListParallelDataRequest = Shapes::StructureShape.new(name: 'ListParallelDataRequest')
63
63
  ListParallelDataResponse = Shapes::StructureShape.new(name: 'ListParallelDataResponse')
64
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
65
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
64
66
  ListTerminologiesRequest = Shapes::StructureShape.new(name: 'ListTerminologiesRequest')
65
67
  ListTerminologiesResponse = Shapes::StructureShape.new(name: 'ListTerminologiesResponse')
66
68
  ListTextTranslationJobsRequest = Shapes::StructureShape.new(name: 'ListTextTranslationJobsRequest')
@@ -79,6 +81,7 @@ module Aws::Translate
79
81
  ParallelDataPropertiesList = Shapes::ListShape.new(name: 'ParallelDataPropertiesList')
80
82
  ParallelDataStatus = Shapes::StringShape.new(name: 'ParallelDataStatus')
81
83
  Profanity = Shapes::StringShape.new(name: 'Profanity')
84
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
82
85
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
83
86
  ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
84
87
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -89,6 +92,13 @@ module Aws::Translate
89
92
  StopTextTranslationJobRequest = Shapes::StructureShape.new(name: 'StopTextTranslationJobRequest')
90
93
  StopTextTranslationJobResponse = Shapes::StructureShape.new(name: 'StopTextTranslationJobResponse')
91
94
  String = Shapes::StringShape.new(name: 'String')
95
+ Tag = Shapes::StructureShape.new(name: 'Tag')
96
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
97
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
98
+ TagList = Shapes::ListShape.new(name: 'TagList')
99
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
100
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
101
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
92
102
  TargetLanguageCodeStringList = Shapes::ListShape.new(name: 'TargetLanguageCodeStringList')
93
103
  Term = Shapes::StructureShape.new(name: 'Term')
94
104
  TermList = Shapes::ListShape.new(name: 'TermList')
@@ -105,12 +115,15 @@ module Aws::Translate
105
115
  TextTranslationJobPropertiesList = Shapes::ListShape.new(name: 'TextTranslationJobPropertiesList')
106
116
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
107
117
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
118
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
108
119
  TranslateTextRequest = Shapes::StructureShape.new(name: 'TranslateTextRequest')
109
120
  TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
110
121
  TranslationSettings = Shapes::StructureShape.new(name: 'TranslationSettings')
111
122
  UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
112
123
  UnsupportedDisplayLanguageCodeException = Shapes::StructureShape.new(name: 'UnsupportedDisplayLanguageCodeException')
113
124
  UnsupportedLanguagePairException = Shapes::StructureShape.new(name: 'UnsupportedLanguagePairException')
125
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
126
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
114
127
  UpdateParallelDataRequest = Shapes::StructureShape.new(name: 'UpdateParallelDataRequest')
115
128
  UpdateParallelDataResponse = Shapes::StructureShape.new(name: 'UpdateParallelDataResponse')
116
129
 
@@ -131,6 +144,7 @@ module Aws::Translate
131
144
  CreateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
132
145
  CreateParallelDataRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
133
146
  CreateParallelDataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
147
+ CreateParallelDataRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
134
148
  CreateParallelDataRequest.struct_class = Types::CreateParallelDataRequest
135
149
 
136
150
  CreateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
@@ -184,6 +198,7 @@ module Aws::Translate
184
198
  ImportTerminologyRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
185
199
  ImportTerminologyRequest.add_member(:terminology_data, Shapes::ShapeRef.new(shape: TerminologyData, required: true, location_name: "TerminologyData"))
186
200
  ImportTerminologyRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
201
+ ImportTerminologyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
187
202
  ImportTerminologyRequest.struct_class = Types::ImportTerminologyRequest
188
203
 
189
204
  ImportTerminologyResponse.add_member(:terminology_properties, Shapes::ShapeRef.new(shape: TerminologyProperties, location_name: "TerminologyProperties"))
@@ -240,6 +255,12 @@ module Aws::Translate
240
255
  ListParallelDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
241
256
  ListParallelDataResponse.struct_class = Types::ListParallelDataResponse
242
257
 
258
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
259
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
260
+
261
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
262
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
263
+
243
264
  ListTerminologiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
244
265
  ListTerminologiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
245
266
  ListTerminologiesRequest.struct_class = Types::ListTerminologiesRequest
@@ -321,6 +342,20 @@ module Aws::Translate
321
342
  StopTextTranslationJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
322
343
  StopTextTranslationJobResponse.struct_class = Types::StopTextTranslationJobResponse
323
344
 
345
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
346
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
347
+ Tag.struct_class = Types::Tag
348
+
349
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
350
+
351
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
352
+
353
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
354
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
355
+ TagResourceRequest.struct_class = Types::TagResourceRequest
356
+
357
+ TagResourceResponse.struct_class = Types::TagResourceResponse
358
+
324
359
  TargetLanguageCodeStringList.member = Shapes::ShapeRef.new(shape: LanguageCodeString)
325
360
 
326
361
  Term.add_member(:source_text, Shapes::ShapeRef.new(shape: String, location_name: "SourceText"))
@@ -387,6 +422,10 @@ module Aws::Translate
387
422
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
388
423
  TooManyRequestsException.struct_class = Types::TooManyRequestsException
389
424
 
425
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
426
+ TooManyTagsException.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
427
+ TooManyTagsException.struct_class = Types::TooManyTagsException
428
+
390
429
  TranslateTextRequest.add_member(:text, Shapes::ShapeRef.new(shape: BoundedLengthString, required: true, location_name: "Text"))
391
430
  TranslateTextRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
392
431
  TranslateTextRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
@@ -414,6 +453,12 @@ module Aws::Translate
414
453
  UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
415
454
  UnsupportedLanguagePairException.struct_class = Types::UnsupportedLanguagePairException
416
455
 
456
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
457
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
458
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
459
+
460
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
461
+
417
462
  UpdateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
418
463
  UpdateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
419
464
  UpdateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
@@ -455,7 +500,9 @@ module Aws::Translate
455
500
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
456
501
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
457
502
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
503
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
458
504
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
505
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
459
506
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
460
507
  end)
461
508
 
@@ -527,6 +574,8 @@ module Aws::Translate
527
574
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
528
575
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
529
576
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
577
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
578
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
530
579
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
531
580
  end)
532
581
 
@@ -565,6 +614,17 @@ module Aws::Translate
565
614
  )
566
615
  end)
567
616
 
617
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
618
+ o.name = "ListTagsForResource"
619
+ o.http_method = "POST"
620
+ o.http_request_uri = "/"
621
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
622
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
623
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
624
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
625
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
626
+ end)
627
+
568
628
  api.add_operation(:list_terminologies, Seahorse::Model::Operation.new.tap do |o|
569
629
  o.name = "ListTerminologies"
570
630
  o.http_method = "POST"
@@ -625,6 +685,19 @@ module Aws::Translate
625
685
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
626
686
  end)
627
687
 
688
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
689
+ o.name = "TagResource"
690
+ o.http_method = "POST"
691
+ o.http_request_uri = "/"
692
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
693
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
694
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
695
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
696
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
697
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
698
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
699
+ end)
700
+
628
701
  api.add_operation(:translate_text, Seahorse::Model::Operation.new.tap do |o|
629
702
  o.name = "TranslateText"
630
703
  o.http_method = "POST"
@@ -641,6 +714,18 @@ module Aws::Translate
641
714
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
642
715
  end)
643
716
 
717
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
718
+ o.name = "UntagResource"
719
+ o.http_method = "POST"
720
+ o.http_request_uri = "/"
721
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
722
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
723
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
724
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
725
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
726
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
727
+ end)
728
+
644
729
  api.add_operation(:update_parallel_data, Seahorse::Model::Operation.new.tap do |o|
645
730
  o.name = "UpdateParallelData"
646
731
  o.http_method = "POST"
@@ -39,6 +39,7 @@ module Aws::Translate
39
39
  # * {ServiceUnavailableException}
40
40
  # * {TextSizeLimitExceededException}
41
41
  # * {TooManyRequestsException}
42
+ # * {TooManyTagsException}
42
43
  # * {UnsupportedDisplayLanguageCodeException}
43
44
  # * {UnsupportedLanguagePairException}
44
45
  #
@@ -233,6 +234,26 @@ module Aws::Translate
233
234
  end
234
235
  end
235
236
 
237
+ class TooManyTagsException < ServiceError
238
+
239
+ # @param [Seahorse::Client::RequestContext] context
240
+ # @param [String] message
241
+ # @param [Aws::Translate::Types::TooManyTagsException] data
242
+ def initialize(context, message, data = Aws::EmptyStructure.new)
243
+ super(context, message, data)
244
+ end
245
+
246
+ # @return [String]
247
+ def message
248
+ @message || @data[:message]
249
+ end
250
+
251
+ # @return [String]
252
+ def resource_arn
253
+ @data[:resource_arn]
254
+ end
255
+ end
256
+
236
257
  class UnsupportedDisplayLanguageCodeException < ServiceError
237
258
 
238
259
  # @param [Seahorse::Client::RequestContext] context
@@ -79,6 +79,12 @@ module Aws::Translate
79
79
  # id: "EncryptionKeyID", # required
80
80
  # },
81
81
  # client_token: "ClientTokenString", # required
82
+ # tags: [
83
+ # {
84
+ # key: "TagKey", # required
85
+ # value: "TagValue", # required
86
+ # },
87
+ # ],
82
88
  # }
83
89
  #
84
90
  # @!attribute [rw] name
@@ -108,6 +114,9 @@ module Aws::Translate
108
114
  # not need to pass this option.
109
115
  # @return [String]
110
116
  #
117
+ # @!attribute [rw] tags
118
+ # @return [Array<Types::Tag>]
119
+ #
111
120
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelDataRequest AWS API Documentation
112
121
  #
113
122
  class CreateParallelDataRequest < Struct.new(
@@ -115,7 +124,8 @@ module Aws::Translate
115
124
  :description,
116
125
  :parallel_data_config,
117
126
  :encryption_key,
118
- :client_token)
127
+ :client_token,
128
+ :tags)
119
129
  SENSITIVE = []
120
130
  include Aws::Structure
121
131
  end
@@ -444,6 +454,12 @@ module Aws::Translate
444
454
  # type: "KMS", # required, accepts KMS
445
455
  # id: "EncryptionKeyID", # required
446
456
  # },
457
+ # tags: [
458
+ # {
459
+ # key: "TagKey", # required
460
+ # value: "TagValue", # required
461
+ # },
462
+ # ],
447
463
  # }
448
464
  #
449
465
  # @!attribute [rw] name
@@ -469,6 +485,9 @@ module Aws::Translate
469
485
  # The encryption key for the custom terminology being imported.
470
486
  # @return [Types::EncryptionKey]
471
487
  #
488
+ # @!attribute [rw] tags
489
+ # @return [Array<Types::Tag>]
490
+ #
472
491
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminologyRequest AWS API Documentation
473
492
  #
474
493
  class ImportTerminologyRequest < Struct.new(
@@ -476,7 +495,8 @@ module Aws::Translate
476
495
  :merge_strategy,
477
496
  :description,
478
497
  :terminology_data,
479
- :encryption_key)
498
+ :encryption_key,
499
+ :tags)
480
500
  SENSITIVE = []
481
501
  include Aws::Structure
482
502
  end
@@ -791,6 +811,35 @@ module Aws::Translate
791
811
  include Aws::Structure
792
812
  end
793
813
 
814
+ # @note When making an API call, you may pass ListTagsForResourceRequest
815
+ # data as a hash:
816
+ #
817
+ # {
818
+ # resource_arn: "ResourceArn", # required
819
+ # }
820
+ #
821
+ # @!attribute [rw] resource_arn
822
+ # @return [String]
823
+ #
824
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResourceRequest AWS API Documentation
825
+ #
826
+ class ListTagsForResourceRequest < Struct.new(
827
+ :resource_arn)
828
+ SENSITIVE = []
829
+ include Aws::Structure
830
+ end
831
+
832
+ # @!attribute [rw] tags
833
+ # @return [Array<Types::Tag>]
834
+ #
835
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResourceResponse AWS API Documentation
836
+ #
837
+ class ListTagsForResourceResponse < Struct.new(
838
+ :tags)
839
+ SENSITIVE = []
840
+ include Aws::Structure
841
+ end
842
+
794
843
  # @note When making an API call, you may pass ListTerminologiesRequest
795
844
  # data as a hash:
796
845
  #
@@ -1330,6 +1379,61 @@ module Aws::Translate
1330
1379
  include Aws::Structure
1331
1380
  end
1332
1381
 
1382
+ # @note When making an API call, you may pass Tag
1383
+ # data as a hash:
1384
+ #
1385
+ # {
1386
+ # key: "TagKey", # required
1387
+ # value: "TagValue", # required
1388
+ # }
1389
+ #
1390
+ # @!attribute [rw] key
1391
+ # @return [String]
1392
+ #
1393
+ # @!attribute [rw] value
1394
+ # @return [String]
1395
+ #
1396
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Tag AWS API Documentation
1397
+ #
1398
+ class Tag < Struct.new(
1399
+ :key,
1400
+ :value)
1401
+ SENSITIVE = []
1402
+ include Aws::Structure
1403
+ end
1404
+
1405
+ # @note When making an API call, you may pass TagResourceRequest
1406
+ # data as a hash:
1407
+ #
1408
+ # {
1409
+ # resource_arn: "ResourceArn", # required
1410
+ # tags: [ # required
1411
+ # {
1412
+ # key: "TagKey", # required
1413
+ # value: "TagValue", # required
1414
+ # },
1415
+ # ],
1416
+ # }
1417
+ #
1418
+ # @!attribute [rw] resource_arn
1419
+ # @return [String]
1420
+ #
1421
+ # @!attribute [rw] tags
1422
+ # @return [Array<Types::Tag>]
1423
+ #
1424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResourceRequest AWS API Documentation
1425
+ #
1426
+ class TagResourceRequest < Struct.new(
1427
+ :resource_arn,
1428
+ :tags)
1429
+ SENSITIVE = []
1430
+ include Aws::Structure
1431
+ end
1432
+
1433
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResourceResponse AWS API Documentation
1434
+ #
1435
+ class TagResourceResponse < Aws::EmptyStructure; end
1436
+
1333
1437
  # The term being translated by the custom terminology.
1334
1438
  #
1335
1439
  # @!attribute [rw] source_text
@@ -1716,6 +1820,21 @@ module Aws::Translate
1716
1820
  include Aws::Structure
1717
1821
  end
1718
1822
 
1823
+ # @!attribute [rw] message
1824
+ # @return [String]
1825
+ #
1826
+ # @!attribute [rw] resource_arn
1827
+ # @return [String]
1828
+ #
1829
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TooManyTagsException AWS API Documentation
1830
+ #
1831
+ class TooManyTagsException < Struct.new(
1832
+ :message,
1833
+ :resource_arn)
1834
+ SENSITIVE = []
1835
+ include Aws::Structure
1836
+ end
1837
+
1719
1838
  # @note When making an API call, you may pass TranslateTextRequest
1720
1839
  # data as a hash:
1721
1840
  #
@@ -1924,6 +2043,33 @@ module Aws::Translate
1924
2043
  include Aws::Structure
1925
2044
  end
1926
2045
 
2046
+ # @note When making an API call, you may pass UntagResourceRequest
2047
+ # data as a hash:
2048
+ #
2049
+ # {
2050
+ # resource_arn: "ResourceArn", # required
2051
+ # tag_keys: ["TagKey"], # required
2052
+ # }
2053
+ #
2054
+ # @!attribute [rw] resource_arn
2055
+ # @return [String]
2056
+ #
2057
+ # @!attribute [rw] tag_keys
2058
+ # @return [Array<String>]
2059
+ #
2060
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResourceRequest AWS API Documentation
2061
+ #
2062
+ class UntagResourceRequest < Struct.new(
2063
+ :resource_arn,
2064
+ :tag_keys)
2065
+ SENSITIVE = []
2066
+ include Aws::Structure
2067
+ end
2068
+
2069
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResourceResponse AWS API Documentation
2070
+ #
2071
+ class UntagResourceResponse < Aws::EmptyStructure; end
2072
+
1927
2073
  # @note When making an API call, you may pass UpdateParallelDataRequest
1928
2074
  # data as a hash:
1929
2075
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-translate/customizations'
48
48
  # @!group service
49
49
  module Aws::Translate
50
50
 
51
- GEM_VERSION = '1.45.0'
51
+ GEM_VERSION = '1.46.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.45.0
4
+ version: 1.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-29 00:00:00.000000000 Z
11
+ date: 2022-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core