aws-sdk-translate 1.46.0 → 1.48.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f9fe94a729557cfbef30414d5036466140765718fc320f3e30b8de91d84da44
4
- data.tar.gz: a3e05811ad85d29b995f981dedaec228656e88b8d10b12977a0726813f1114ae
3
+ metadata.gz: 66965a6028d1acf066a015908083a5420a4aebfed6c6c9c61da22eab787e9aeb
4
+ data.tar.gz: b62d82c6020ac2e4d4e74c79c77cf95598dbb64da56d4b41886112e2194b8145
5
5
  SHA512:
6
- metadata.gz: 2718e2c6462ec8454fb050184488736de5b4269377c8c93fd05b4186f51c984dc66f222d35c1e16fff35ba5a37a478d7268b9cda47a2c518ed68d37f141e6e72
7
- data.tar.gz: e97b7052e461d0daef398065bc6362acbe5f1012b47ae54818a5c8bf873bb0efdeb2bc21a8c1df22f2c83cc95f7f45423e1d391583efd87bb38434b01c6fd8fc
6
+ metadata.gz: f9ab5c8fcad591da48453eb593ab434d45d733a18af01443ee773e7ab0d7b7eb96a16492e333dfb49e8f08e7a1f0677ab3b8fb8edd7699e971d6d116c36cd3f0
7
+ data.tar.gz: 674f44573de60345eab4af35f91f47a64253a17ee04abe258f7a1d5b3d4e17c0d45d248953bed21259f8346d70854a3fefef8d65b175f07c3613ccb3446630d6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.48.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.47.0 (2022-10-13)
10
+ ------------------
11
+
12
+ * Feature - This release enables customers to specify multiple target languages in asynchronous batch translation requests.
13
+
4
14
  1.46.0 (2022-09-29)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.46.0
1
+ 1.48.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:translate)
@@ -79,8 +79,9 @@ module Aws::Translate
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::Translate::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::Translate
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::Translate
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::Translate::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Translate::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -389,6 +406,13 @@ module Aws::Translate
389
406
  # not need to pass this option.**
390
407
  #
391
408
  # @option params [Array<Types::Tag>] :tags
409
+ # Tags to be associated with this resource. A tag is a key-value pair
410
+ # that adds metadata to a resource. Each tag key for the resource must
411
+ # be unique. For more information, see [ Tagging your resources][1].
412
+ #
413
+ #
414
+ #
415
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
392
416
  #
393
417
  # @return [Types::CreateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
394
418
  #
@@ -686,6 +710,13 @@ module Aws::Translate
686
710
  # The encryption key for the custom terminology being imported.
687
711
  #
688
712
  # @option params [Array<Types::Tag>] :tags
713
+ # Tags to be associated with this resource. A tag is a key-value pair
714
+ # that adds metadata to a resource. Each tag key for the resource must
715
+ # be unique. For more information, see [ Tagging your resources][1].
716
+ #
717
+ #
718
+ #
719
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
689
720
  #
690
721
  # @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
691
722
  #
@@ -850,7 +881,16 @@ module Aws::Translate
850
881
  req.send_request(options)
851
882
  end
852
883
 
884
+ # Lists all tags associated with a given Amazon Translate resource. For
885
+ # more information, see [ Tagging your resources][1].
886
+ #
887
+ #
888
+ #
889
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
890
+ #
853
891
  # @option params [required, String] :resource_arn
892
+ # The Amazon Resource Name (ARN) of the given Amazon Translate resource
893
+ # you are querying.
854
894
  #
855
895
  # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
856
896
  #
@@ -1002,9 +1042,13 @@ module Aws::Translate
1002
1042
  req.send_request(options)
1003
1043
  end
1004
1044
 
1005
- # Starts an asynchronous batch translation job. Batch translation jobs
1006
- # can be used to translate large volumes of text across multiple
1007
- # documents at once. For more information, see async.
1045
+ # Starts an asynchronous batch translation job. Use batch translation
1046
+ # jobs to translate large volumes of text across multiple documents at
1047
+ # once. For batch translation, the input documents must share the same
1048
+ # source language. You can specify one or more target languages. Batch
1049
+ # translation translates each input document into each of the target
1050
+ # languages. For more information, see [Asynchronous batch
1051
+ # processing][1]
1008
1052
  #
1009
1053
  # Batch translation jobs can be described with the
1010
1054
  # DescribeTextTranslationJob operation, listed with the
@@ -1016,6 +1060,10 @@ module Aws::Translate
1016
1060
  #
1017
1061
  # </note>
1018
1062
  #
1063
+ #
1064
+ #
1065
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/async.html
1066
+ #
1019
1067
  # @option params [String] :job_name
1020
1068
  # The name of the batch translation job to be performed.
1021
1069
  #
@@ -1029,17 +1077,34 @@ module Aws::Translate
1029
1077
  # @option params [required, String] :data_access_role_arn
1030
1078
  # The Amazon Resource Name (ARN) of an AWS Identity Access and
1031
1079
  # Management (IAM) role that grants Amazon Translate read access to your
1032
- # input data. For more information, see identity-and-access-management.
1080
+ # input data. For more information, see [Identity and access management
1081
+ # ][1].
1082
+ #
1083
+ #
1084
+ #
1085
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/identity-and-access-management.html
1033
1086
  #
1034
1087
  # @option params [required, String] :source_language_code
1035
1088
  # The language code of the input language. For a list of language codes,
1036
- # see what-is-languages.
1089
+ # see [Supported languages][1].
1037
1090
  #
1038
1091
  # Amazon Translate does not automatically detect a source language
1039
1092
  # during batch translation jobs.
1040
1093
  #
1094
+ #
1095
+ #
1096
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
1097
+ #
1041
1098
  # @option params [required, Array<String>] :target_language_codes
1042
- # The language code of the output language.
1099
+ # The target languages of the translation job. Enter up to 10 language
1100
+ # codes. Each input file is translated into each target language.
1101
+ #
1102
+ # Each language code is two or five characters long. For a list of
1103
+ # language codes, see [Supported languages][1].
1104
+ #
1105
+ #
1106
+ #
1107
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
1043
1108
  #
1044
1109
  # @option params [Array<String>] :terminology_names
1045
1110
  # The name of a custom terminology resource to add to the translation
@@ -1048,16 +1113,28 @@ module Aws::Translate
1048
1113
  #
1049
1114
  # This parameter accepts only one custom terminology resource.
1050
1115
  #
1116
+ # If you specify multiple target languages for the job, translate uses
1117
+ # the designated terminology for each requested target language that has
1118
+ # an entry for the source term in the terminology file.
1119
+ #
1051
1120
  # For a list of available custom terminology resources, use the
1052
1121
  # ListTerminologies operation.
1053
1122
  #
1054
- # For more information, see how-custom-terminology.
1123
+ # For more information, see [Custom terminology][1].
1124
+ #
1125
+ #
1126
+ #
1127
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html
1055
1128
  #
1056
1129
  # @option params [Array<String>] :parallel_data_names
1057
1130
  # The name of a parallel data resource to add to the translation job.
1058
1131
  # This resource consists of examples that show how you want segments of
1059
- # text to be translated. When you add parallel data to a translation
1060
- # job, you create an *Active Custom Translation* job.
1132
+ # text to be translated. If you specify multiple target languages for
1133
+ # the job, the parallel data file must include translations for all the
1134
+ # target languages.
1135
+ #
1136
+ # When you add parallel data to a translation job, you create an *Active
1137
+ # Custom Translation* job.
1061
1138
  #
1062
1139
  # This parameter accepts only one parallel data resource.
1063
1140
  #
@@ -1070,11 +1147,13 @@ module Aws::Translate
1070
1147
  # For a list of available parallel data resources, use the
1071
1148
  # ListParallelData operation.
1072
1149
  #
1073
- # For more information, see customizing-translations-parallel-data.
1150
+ # For more information, see [ Customizing your translations with
1151
+ # parallel data][2].
1074
1152
  #
1075
1153
  #
1076
1154
  #
1077
1155
  # [1]: http://aws.amazon.com/translate/pricing/
1156
+ # [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-parallel-data.html
1078
1157
  #
1079
1158
  # @option params [required, String] :client_token
1080
1159
  # A unique identifier for the request. This token is generated for you
@@ -1085,8 +1164,8 @@ module Aws::Translate
1085
1164
  #
1086
1165
  # @option params [Types::TranslationSettings] :settings
1087
1166
  # Settings to configure your translation output, including the option to
1088
- # mask profane words and phrases. `StartTextTranslationJob` does not
1089
- # support the formality setting.
1167
+ # set the formality level of the output text and the option to mask
1168
+ # profane words and phrases.
1090
1169
  #
1091
1170
  # @return [Types::StartTextTranslationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1092
1171
  #
@@ -1174,9 +1253,22 @@ module Aws::Translate
1174
1253
  req.send_request(options)
1175
1254
  end
1176
1255
 
1256
+ # Associates a specific tag with a resource. A tag is a key-value pair
1257
+ # that adds as a metadata to a resource. For more information, see [
1258
+ # Tagging your resources][1].
1259
+ #
1260
+ #
1261
+ #
1262
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
1263
+ #
1177
1264
  # @option params [required, String] :resource_arn
1265
+ # The Amazon Resource Name (ARN) of the given Amazon Translate resource
1266
+ # to which you want to associate the tags.
1178
1267
  #
1179
1268
  # @option params [required, Array<Types::Tag>] :tags
1269
+ # Tags being associated with a specific Amazon Translate resource. There
1270
+ # can be a maximum of 50 tags (both existing and pending) associated
1271
+ # with a specific resource.
1180
1272
  #
1181
1273
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1182
1274
  #
@@ -1202,8 +1294,12 @@ module Aws::Translate
1202
1294
  end
1203
1295
 
1204
1296
  # Translates input text from the source language to the target language.
1205
- # For a list of available languages and language codes, see
1206
- # what-is-languages.
1297
+ # For a list of available languages and language codes, see [Supported
1298
+ # languages][1].
1299
+ #
1300
+ #
1301
+ #
1302
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
1207
1303
  #
1208
1304
  # @option params [required, String] :text
1209
1305
  # The text to translate. The text string can be a maximum of 5,000 bytes
@@ -1218,11 +1314,11 @@ module Aws::Translate
1218
1314
  # @option params [required, String] :source_language_code
1219
1315
  # The language code for the language of the source text. The language
1220
1316
  # must be a language supported by Amazon Translate. For a list of
1221
- # language codes, see what-is-languages.
1317
+ # language codes, see [Supported languages][1].
1222
1318
  #
1223
1319
  # To have Amazon Translate determine the source language of your text,
1224
1320
  # you can specify `auto` in the `SourceLanguageCode` field. If you
1225
- # specify `auto`, Amazon Translate will call [Amazon Comprehend][1] to
1321
+ # specify `auto`, Amazon Translate will call [Amazon Comprehend][2] to
1226
1322
  # determine the source language.
1227
1323
  #
1228
1324
  # <note markdown="1"> If you specify `auto`, you must send the `TranslateText` request in a
@@ -1233,7 +1329,8 @@ module Aws::Translate
1233
1329
  #
1234
1330
  #
1235
1331
  #
1236
- # [1]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
1332
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
1333
+ # [2]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
1237
1334
  #
1238
1335
  # @option params [required, String] :target_language_code
1239
1336
  # The language code requested for the language of the target text. The
@@ -1287,9 +1384,21 @@ module Aws::Translate
1287
1384
  req.send_request(options)
1288
1385
  end
1289
1386
 
1387
+ # Removes a specific tag associated with an Amazon Translate resource.
1388
+ # For more information, see [ Tagging your resources][1].
1389
+ #
1390
+ #
1391
+ #
1392
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
1393
+ #
1290
1394
  # @option params [required, String] :resource_arn
1395
+ # The Amazon Resource Name (ARN) of the given Amazon Translate resource
1396
+ # from which you want to remove the tags.
1291
1397
  #
1292
1398
  # @option params [required, Array<String>] :tag_keys
1399
+ # The initial part of a key-value pair that forms a tag being removed
1400
+ # from a given resource. Keys must be unique and cannot be duplicated
1401
+ # for a particular resource.
1293
1402
  #
1294
1403
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1295
1404
  #
@@ -1377,7 +1486,7 @@ module Aws::Translate
1377
1486
  params: params,
1378
1487
  config: config)
1379
1488
  context[:gem_name] = 'aws-sdk-translate'
1380
- context[:gem_version] = '1.46.0'
1489
+ context[:gem_version] = '1.48.0'
1381
1490
  Seahorse::Client::Request.new(handlers, context)
1382
1491
  end
1383
1492
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Translate
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Translate
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
+ dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
+ ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37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wb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFs
103
+ U3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qg
104
+ c3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0
105
+ aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vdHJhbnNsYXRl
106
+ LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3Bl
107
+ cnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1d
108
+ fQ==
109
+
110
+ JSON
111
+ end
112
+ end
@@ -0,0 +1,267 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::Translate
12
+ module Endpoints
13
+
14
+ class CreateParallelData
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::Translate::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class DeleteParallelData
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::Translate::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DeleteTerminology
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::Translate::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DescribeTextTranslationJob
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::Translate::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class GetParallelData
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::Translate::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class GetTerminology
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::Translate::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class ImportTerminology
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::Translate::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class ListLanguages
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::Translate::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class ListParallelData
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::Translate::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class ListTagsForResource
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::Translate::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class ListTerminologies
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::Translate::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class ListTextTranslationJobs
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::Translate::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class StartTextTranslationJob
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::Translate::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class StopTextTranslationJob
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::Translate::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class TagResource
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::Translate::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class TranslateText
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::Translate::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class UntagResource
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::Translate::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class UpdateParallelData
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::Translate::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ end
267
+ end
@@ -0,0 +1,104 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::Translate
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Translate::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::Translate::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Translate::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_parallel_data
60
+ Aws::Translate::Endpoints::CreateParallelData.build(context)
61
+ when :delete_parallel_data
62
+ Aws::Translate::Endpoints::DeleteParallelData.build(context)
63
+ when :delete_terminology
64
+ Aws::Translate::Endpoints::DeleteTerminology.build(context)
65
+ when :describe_text_translation_job
66
+ Aws::Translate::Endpoints::DescribeTextTranslationJob.build(context)
67
+ when :get_parallel_data
68
+ Aws::Translate::Endpoints::GetParallelData.build(context)
69
+ when :get_terminology
70
+ Aws::Translate::Endpoints::GetTerminology.build(context)
71
+ when :import_terminology
72
+ Aws::Translate::Endpoints::ImportTerminology.build(context)
73
+ when :list_languages
74
+ Aws::Translate::Endpoints::ListLanguages.build(context)
75
+ when :list_parallel_data
76
+ Aws::Translate::Endpoints::ListParallelData.build(context)
77
+ when :list_tags_for_resource
78
+ Aws::Translate::Endpoints::ListTagsForResource.build(context)
79
+ when :list_terminologies
80
+ Aws::Translate::Endpoints::ListTerminologies.build(context)
81
+ when :list_text_translation_jobs
82
+ Aws::Translate::Endpoints::ListTextTranslationJobs.build(context)
83
+ when :start_text_translation_job
84
+ Aws::Translate::Endpoints::StartTextTranslationJob.build(context)
85
+ when :stop_text_translation_job
86
+ Aws::Translate::Endpoints::StopTextTranslationJob.build(context)
87
+ when :tag_resource
88
+ Aws::Translate::Endpoints::TagResource.build(context)
89
+ when :translate_text
90
+ Aws::Translate::Endpoints::TranslateText.build(context)
91
+ when :untag_resource
92
+ Aws::Translate::Endpoints::UntagResource.build(context)
93
+ when :update_parallel_data
94
+ Aws::Translate::Endpoints::UpdateParallelData.build(context)
95
+ end
96
+ end
97
+ end
98
+
99
+ def add_handlers(handlers, _config)
100
+ handlers.add(Handler, step: :build, priority: 75)
101
+ end
102
+ end
103
+ end
104
+ end
@@ -115,6 +115,13 @@ module Aws::Translate
115
115
  # @return [String]
116
116
  #
117
117
  # @!attribute [rw] tags
118
+ # Tags to be associated with this resource. A tag is a key-value pair
119
+ # that adds metadata to a resource. Each tag key for the resource must
120
+ # be unique. For more information, see [ Tagging your resources][1].
121
+ #
122
+ #
123
+ #
124
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
118
125
  # @return [Array<Types::Tag>]
119
126
  #
120
127
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelDataRequest AWS API Documentation
@@ -486,6 +493,13 @@ module Aws::Translate
486
493
  # @return [Types::EncryptionKey]
487
494
  #
488
495
  # @!attribute [rw] tags
496
+ # Tags to be associated with this resource. A tag is a key-value pair
497
+ # that adds metadata to a resource. Each tag key for the resource must
498
+ # be unique. For more information, see [ Tagging your resources][1].
499
+ #
500
+ #
501
+ #
502
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
489
503
  # @return [Array<Types::Tag>]
490
504
  #
491
505
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminologyRequest AWS API Documentation
@@ -819,6 +833,8 @@ module Aws::Translate
819
833
  # }
820
834
  #
821
835
  # @!attribute [rw] resource_arn
836
+ # The Amazon Resource Name (ARN) of the given Amazon Translate
837
+ # resource you are querying.
822
838
  # @return [String]
823
839
  #
824
840
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResourceRequest AWS API Documentation
@@ -830,6 +846,11 @@ module Aws::Translate
830
846
  end
831
847
 
832
848
  # @!attribute [rw] tags
849
+ # Tags associated with the Amazon Translate resource being queried. A
850
+ # tag is a key-value pair that adds as a metadata to a resource used
851
+ # by Amazon Translate. For example, a tag with "Sales" as the key
852
+ # might be added to a resource to indicate its use by the sales
853
+ # department.
833
854
  # @return [Array<Types::Tag>]
834
855
  #
835
856
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResourceResponse AWS API Documentation
@@ -1221,20 +1242,36 @@ module Aws::Translate
1221
1242
  # @!attribute [rw] data_access_role_arn
1222
1243
  # The Amazon Resource Name (ARN) of an AWS Identity Access and
1223
1244
  # Management (IAM) role that grants Amazon Translate read access to
1224
- # your input data. For more information, see
1225
- # identity-and-access-management.
1245
+ # your input data. For more information, see [Identity and access
1246
+ # management ][1].
1247
+ #
1248
+ #
1249
+ #
1250
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/identity-and-access-management.html
1226
1251
  # @return [String]
1227
1252
  #
1228
1253
  # @!attribute [rw] source_language_code
1229
1254
  # The language code of the input language. For a list of language
1230
- # codes, see what-is-languages.
1255
+ # codes, see [Supported languages][1].
1231
1256
  #
1232
1257
  # Amazon Translate does not automatically detect a source language
1233
1258
  # during batch translation jobs.
1259
+ #
1260
+ #
1261
+ #
1262
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
1234
1263
  # @return [String]
1235
1264
  #
1236
1265
  # @!attribute [rw] target_language_codes
1237
- # The language code of the output language.
1266
+ # The target languages of the translation job. Enter up to 10 language
1267
+ # codes. Each input file is translated into each target language.
1268
+ #
1269
+ # Each language code is two or five characters long. For a list of
1270
+ # language codes, see [Supported languages][1].
1271
+ #
1272
+ #
1273
+ #
1274
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
1238
1275
  # @return [Array<String>]
1239
1276
  #
1240
1277
  # @!attribute [rw] terminology_names
@@ -1244,17 +1281,29 @@ module Aws::Translate
1244
1281
  #
1245
1282
  # This parameter accepts only one custom terminology resource.
1246
1283
  #
1284
+ # If you specify multiple target languages for the job, translate uses
1285
+ # the designated terminology for each requested target language that
1286
+ # has an entry for the source term in the terminology file.
1287
+ #
1247
1288
  # For a list of available custom terminology resources, use the
1248
1289
  # ListTerminologies operation.
1249
1290
  #
1250
- # For more information, see how-custom-terminology.
1291
+ # For more information, see [Custom terminology][1].
1292
+ #
1293
+ #
1294
+ #
1295
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html
1251
1296
  # @return [Array<String>]
1252
1297
  #
1253
1298
  # @!attribute [rw] parallel_data_names
1254
1299
  # The name of a parallel data resource to add to the translation job.
1255
1300
  # This resource consists of examples that show how you want segments
1256
- # of text to be translated. When you add parallel data to a
1257
- # translation job, you create an *Active Custom Translation* job.
1301
+ # of text to be translated. If you specify multiple target languages
1302
+ # for the job, the parallel data file must include translations for
1303
+ # all the target languages.
1304
+ #
1305
+ # When you add parallel data to a translation job, you create an
1306
+ # *Active Custom Translation* job.
1258
1307
  #
1259
1308
  # This parameter accepts only one parallel data resource.
1260
1309
  #
@@ -1267,11 +1316,13 @@ module Aws::Translate
1267
1316
  # For a list of available parallel data resources, use the
1268
1317
  # ListParallelData operation.
1269
1318
  #
1270
- # For more information, see customizing-translations-parallel-data.
1319
+ # For more information, see [ Customizing your translations with
1320
+ # parallel data][2].
1271
1321
  #
1272
1322
  #
1273
1323
  #
1274
1324
  # [1]: http://aws.amazon.com/translate/pricing/
1325
+ # [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-parallel-data.html
1275
1326
  # @return [Array<String>]
1276
1327
  #
1277
1328
  # @!attribute [rw] client_token
@@ -1284,8 +1335,8 @@ module Aws::Translate
1284
1335
  #
1285
1336
  # @!attribute [rw] settings
1286
1337
  # Settings to configure your translation output, including the option
1287
- # to mask profane words and phrases. `StartTextTranslationJob` does
1288
- # not support the formality setting.
1338
+ # to set the formality level of the output text and the option to mask
1339
+ # profane words and phrases.
1289
1340
  # @return [Types::TranslationSettings]
1290
1341
  #
1291
1342
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StartTextTranslationJobRequest AWS API Documentation
@@ -1379,6 +1430,9 @@ module Aws::Translate
1379
1430
  include Aws::Structure
1380
1431
  end
1381
1432
 
1433
+ # A key-value pair that adds as a metadata to a resource used by Amazon
1434
+ # Translate.
1435
+ #
1382
1436
  # @note When making an API call, you may pass Tag
1383
1437
  # data as a hash:
1384
1438
  #
@@ -1388,9 +1442,13 @@ module Aws::Translate
1388
1442
  # }
1389
1443
  #
1390
1444
  # @!attribute [rw] key
1445
+ # The initial part of a key-value pair that forms a tag associated
1446
+ # with a given resource.
1391
1447
  # @return [String]
1392
1448
  #
1393
1449
  # @!attribute [rw] value
1450
+ # The second part of a key-value pair that forms a tag associated with
1451
+ # a given resource.
1394
1452
  # @return [String]
1395
1453
  #
1396
1454
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Tag AWS API Documentation
@@ -1416,9 +1474,14 @@ module Aws::Translate
1416
1474
  # }
1417
1475
  #
1418
1476
  # @!attribute [rw] resource_arn
1477
+ # The Amazon Resource Name (ARN) of the given Amazon Translate
1478
+ # resource to which you want to associate the tags.
1419
1479
  # @return [String]
1420
1480
  #
1421
1481
  # @!attribute [rw] tags
1482
+ # Tags being associated with a specific Amazon Translate resource.
1483
+ # There can be a maximum of 50 tags (both existing and pending)
1484
+ # associated with a specific resource.
1422
1485
  # @return [Array<Types::Tag>]
1423
1486
  #
1424
1487
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResourceRequest AWS API Documentation
@@ -1820,6 +1883,8 @@ module Aws::Translate
1820
1883
  include Aws::Structure
1821
1884
  end
1822
1885
 
1886
+ # You have added too many tags to this resource. The maximum is 50 tags.
1887
+ #
1823
1888
  # @!attribute [rw] message
1824
1889
  # @return [String]
1825
1890
  #
@@ -1865,11 +1930,11 @@ module Aws::Translate
1865
1930
  # @!attribute [rw] source_language_code
1866
1931
  # The language code for the language of the source text. The language
1867
1932
  # must be a language supported by Amazon Translate. For a list of
1868
- # language codes, see what-is-languages.
1933
+ # language codes, see [Supported languages][1].
1869
1934
  #
1870
1935
  # To have Amazon Translate determine the source language of your text,
1871
1936
  # you can specify `auto` in the `SourceLanguageCode` field. If you
1872
- # specify `auto`, Amazon Translate will call [Amazon Comprehend][1] to
1937
+ # specify `auto`, Amazon Translate will call [Amazon Comprehend][2] to
1873
1938
  # determine the source language.
1874
1939
  #
1875
1940
  # <note markdown="1"> If you specify `auto`, you must send the `TranslateText` request in
@@ -1880,7 +1945,8 @@ module Aws::Translate
1880
1945
  #
1881
1946
  #
1882
1947
  #
1883
- # [1]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
1948
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
1949
+ # [2]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
1884
1950
  # @return [String]
1885
1951
  #
1886
1952
  # @!attribute [rw] target_language_code
@@ -1939,7 +2005,8 @@ module Aws::Translate
1939
2005
  include Aws::Structure
1940
2006
  end
1941
2007
 
1942
- # Settings that configure the translation output.
2008
+ # Optional settings that configure the translation output. Use these
2009
+ # settings for real time translations and asynchronous translation jobs.
1943
2010
  #
1944
2011
  # @note When making an API call, you may pass TranslationSettings
1945
2012
  # data as a hash:
@@ -1951,25 +2018,23 @@ module Aws::Translate
1951
2018
  #
1952
2019
  # @!attribute [rw] formality
1953
2020
  # You can optionally specify the desired level of formality for
1954
- # real-time translations to supported target languages. The formality
1955
- # setting controls the level of formal language usage (also known as
2021
+ # translations to supported target languages. The formality setting
2022
+ # controls the level of formal language usage (also known as
1956
2023
  # [register][1]) in the translation output. You can set the value to
1957
2024
  # informal or formal. If you don't specify a value for formality, or
1958
2025
  # if the target language doesn't support formality, the translation
1959
2026
  # will ignore the formality setting.
1960
2027
  #
1961
- # Note that asynchronous translation jobs don't support formality. If
1962
- # you provide a value for formality, the `StartTextTranslationJob` API
1963
- # throws an exception (InvalidRequestException).
2028
+ # If you specify multiple target languages for the job, translate
2029
+ # ignores the formality setting for any unsupported target language.
1964
2030
  #
1965
- # For target languages that support formality, see [Supported
1966
- # Languages and Language Codes in the Amazon Translate Developer
1967
- # Guide][2].
2031
+ # For a list of target languages that support formality, see [Setting
2032
+ # Formality][2] in the Amazon Translate Developer Guide.
1968
2033
  #
1969
2034
  #
1970
2035
  #
1971
2036
  # [1]: https://en.wikipedia.org/wiki/Register_(sociolinguistics)
1972
- # [2]: https://docs.aws.amazon.com/translate/latest/dg/what-is.html
2037
+ # [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality.html
1973
2038
  # @return [String]
1974
2039
  #
1975
2040
  # @!attribute [rw] profanity
@@ -1983,12 +2048,16 @@ module Aws::Translate
1983
2048
  #
1984
2049
  # Amazon Translate doesn't detect profanity in all of its supported
1985
2050
  # languages. For languages that support profanity detection, see
1986
- # [Supported Languages and Language Codes in the Amazon Translate
1987
- # Developer Guide][1].
2051
+ # [Masking profanity][1] in the Amazon Translate Developer Guide.
2052
+ #
2053
+ # If you specify multiple target languages for the job, all the target
2054
+ # languages must support profanity masking. If any of the target
2055
+ # languages don't support profanity masking, the translation job
2056
+ # won't mask profanity for any target language.
1988
2057
  #
1989
2058
  #
1990
2059
  #
1991
- # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is.html
2060
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity.html
1992
2061
  # @return [String]
1993
2062
  #
1994
2063
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslationSettings AWS API Documentation
@@ -2020,7 +2089,11 @@ module Aws::Translate
2020
2089
 
2021
2090
  # Amazon Translate does not support translation from the language of the
2022
2091
  # source text into the requested target language. For more information,
2023
- # see how-to-error-msg.
2092
+ # see [Error messages][1].
2093
+ #
2094
+ #
2095
+ #
2096
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/how-to-error-msg.html
2024
2097
  #
2025
2098
  # @!attribute [rw] message
2026
2099
  # @return [String]
@@ -2052,9 +2125,14 @@ module Aws::Translate
2052
2125
  # }
2053
2126
  #
2054
2127
  # @!attribute [rw] resource_arn
2128
+ # The Amazon Resource Name (ARN) of the given Amazon Translate
2129
+ # resource from which you want to remove the tags.
2055
2130
  # @return [String]
2056
2131
  #
2057
2132
  # @!attribute [rw] tag_keys
2133
+ # The initial part of a key-value pair that forms a tag being removed
2134
+ # from a given resource. Keys must be unique and cannot be duplicated
2135
+ # for a particular resource.
2058
2136
  # @return [Array<String>]
2059
2137
  #
2060
2138
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResourceRequest AWS API Documentation
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-translate/types'
15
15
  require_relative 'aws-sdk-translate/client_api'
16
+ require_relative 'aws-sdk-translate/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-translate/client'
17
18
  require_relative 'aws-sdk-translate/errors'
18
19
  require_relative 'aws-sdk-translate/resource'
20
+ require_relative 'aws-sdk-translate/endpoint_parameters'
21
+ require_relative 'aws-sdk-translate/endpoint_provider'
22
+ require_relative 'aws-sdk-translate/endpoints'
19
23
  require_relative 'aws-sdk-translate/customizations'
20
24
 
21
25
  # This module provides support for Amazon Translate. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-translate/customizations'
48
52
  # @!group service
49
53
  module Aws::Translate
50
54
 
51
- GEM_VERSION = '1.46.0'
55
+ GEM_VERSION = '1.48.0'
52
56
 
53
57
  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.46.0
4
+ version: 1.48.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-09-29 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-translate/client.rb
60
60
  - lib/aws-sdk-translate/client_api.rb
61
61
  - lib/aws-sdk-translate/customizations.rb
62
+ - lib/aws-sdk-translate/endpoint_parameters.rb
63
+ - lib/aws-sdk-translate/endpoint_provider.rb
64
+ - lib/aws-sdk-translate/endpoints.rb
62
65
  - lib/aws-sdk-translate/errors.rb
66
+ - lib/aws-sdk-translate/plugins/endpoints.rb
63
67
  - lib/aws-sdk-translate/resource.rb
64
68
  - lib/aws-sdk-translate/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby