aws-sdk-translate 1.47.0 → 1.49.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: 46085b6b84621ff8a4de01ab37dd0c176fe80b05552089f183de578ee4f839ad
4
- data.tar.gz: 1222bc137a0885cb613d4d5b58ee0e5a83fd23569c3a36aa6d0ac805e6223b15
3
+ metadata.gz: 2d19f613d4d85f7e2256e54b9011c4f8adace45d5905046bab5042838022d969
4
+ data.tar.gz: da91c562246f595f258a64d84118f33091b1c50a0880e40b4956d9ce3217e9a2
5
5
  SHA512:
6
- metadata.gz: dd27a6cb9ce794e8694b1c2c0d20f6fe06b712c206b43405912b39a15c8b231aee87f5241c9438f1195b8d9f374d1ebf31321dfd922f970b6c799b4ae474c196
7
- data.tar.gz: a1be0a727c69a8eb4d24b9e0f09de68f1b0ab2ea9450e3c6464d7f33b1a40c3fce0eacd238f29add7e0a2dbf548bec0793ee83af16fcb00ecd511d8b29d3dcf5
6
+ metadata.gz: 8bd447c1b8ac2c56a4cda9d00605fb535f6e1f189ba6706a336cf9abfde7994f2e407442d317bd3f9118be0fc185dcab7681c88ec69eda9dc02258eabf6846f8
7
+ data.tar.gz: cbaf5732f0243a4557ae468b30133bc8742225ea166ccb2161766b0e1d95b3e8c70ad21bb6a17eebfb89de8ed52aa17dc70b34f7c664cd6dde020d03244862a7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.49.0 (2022-12-15)
5
+ ------------------
6
+
7
+ * Feature - Raised the input byte size limit of the Text field in the TranslateText API to 10000 bytes.
8
+
9
+ 1.48.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.47.0 (2022-10-13)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.47.0
1
+ 1.49.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
  #
@@ -1027,22 +1044,17 @@ module Aws::Translate
1027
1044
 
1028
1045
  # Starts an asynchronous batch translation job. Use batch translation
1029
1046
  # jobs to translate large volumes of text across multiple documents at
1030
- # once. For batch translation, the input documents must share the same
1031
- # source language. You can specify one or more target languages. Batch
1032
- # translation translates each input document into each of the target
1033
- # languages. For more information, see [Asynchronous batch
1034
- # processing][1]
1047
+ # once. For batch translation, you can input documents with different
1048
+ # source languages (specify `auto` as the source language). You can
1049
+ # specify one or more target languages. Batch translation translates
1050
+ # each input document into each of the target languages. For more
1051
+ # information, see [Asynchronous batch processing][1].
1035
1052
  #
1036
1053
  # Batch translation jobs can be described with the
1037
1054
  # DescribeTextTranslationJob operation, listed with the
1038
1055
  # ListTextTranslationJobs operation, and stopped with the
1039
1056
  # StopTextTranslationJob operation.
1040
1057
  #
1041
- # <note markdown="1"> Amazon Translate does not support batch translation of multiple source
1042
- # languages at once.
1043
- #
1044
- # </note>
1045
- #
1046
1058
  #
1047
1059
  #
1048
1060
  # [1]: https://docs.aws.amazon.com/translate/latest/dg/async.html
@@ -1068,11 +1080,12 @@ module Aws::Translate
1068
1080
  # [1]: https://docs.aws.amazon.com/translate/latest/dg/identity-and-access-management.html
1069
1081
  #
1070
1082
  # @option params [required, String] :source_language_code
1071
- # The language code of the input language. For a list of language codes,
1072
- # see [Supported languages][1].
1073
- #
1074
- # Amazon Translate does not automatically detect a source language
1075
- # during batch translation jobs.
1083
+ # The language code of the input language. Specify the language if all
1084
+ # input documents share the same language. If you don't know the
1085
+ # language of the source files, or your input documents contains
1086
+ # different source languages, select `auto`. Amazon Translate auto
1087
+ # detects the source language for each input document. For a list of
1088
+ # supported language codes, see [Supported languages][1].
1076
1089
  #
1077
1090
  #
1078
1091
  #
@@ -1082,8 +1095,8 @@ module Aws::Translate
1082
1095
  # The target languages of the translation job. Enter up to 10 language
1083
1096
  # codes. Each input file is translated into each target language.
1084
1097
  #
1085
- # Each language code is two or five characters long. For a list of
1086
- # language codes, see [Supported languages][1].
1098
+ # Each language code is 2 or 5 characters long. For a list of language
1099
+ # codes, see [Supported languages][1].
1087
1100
  #
1088
1101
  #
1089
1102
  #
@@ -1285,9 +1298,9 @@ module Aws::Translate
1285
1298
  # [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
1286
1299
  #
1287
1300
  # @option params [required, String] :text
1288
- # The text to translate. The text string can be a maximum of 5,000 bytes
1289
- # long. Depending on your character set, this may be fewer than 5,000
1290
- # characters.
1301
+ # The text to translate. The text string can be a maximum of 10,000
1302
+ # bytes long. Depending on your character set, this may be fewer than
1303
+ # 10,000 characters.
1291
1304
  #
1292
1305
  # @option params [Array<String>] :terminology_names
1293
1306
  # The name of the terminology list file to be used in the TranslateText
@@ -1469,7 +1482,7 @@ module Aws::Translate
1469
1482
  params: params,
1470
1483
  config: config)
1471
1484
  context[:gem_name] = 'aws-sdk-translate'
1472
- context[:gem_version] = '1.47.0'
1485
+ context[:gem_version] = '1.49.0'
1473
1486
  Seahorse::Client::Request.new(handlers, context)
1474
1487
  end
1475
1488
 
@@ -118,6 +118,7 @@ module Aws::Translate
118
118
  TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
119
119
  TranslateTextRequest = Shapes::StructureShape.new(name: 'TranslateTextRequest')
120
120
  TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
121
+ TranslatedTextString = Shapes::StringShape.new(name: 'TranslatedTextString')
121
122
  TranslationSettings = Shapes::StructureShape.new(name: 'TranslationSettings')
122
123
  UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
123
124
  UnsupportedDisplayLanguageCodeException = Shapes::StructureShape.new(name: 'UnsupportedDisplayLanguageCodeException')
@@ -433,7 +434,7 @@ module Aws::Translate
433
434
  TranslateTextRequest.add_member(:settings, Shapes::ShapeRef.new(shape: TranslationSettings, location_name: "Settings"))
434
435
  TranslateTextRequest.struct_class = Types::TranslateTextRequest
435
436
 
436
- TranslateTextResponse.add_member(:translated_text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TranslatedText"))
437
+ TranslateTextResponse.add_member(:translated_text, Shapes::ShapeRef.new(shape: TranslatedTextString, required: true, location_name: "TranslatedText"))
437
438
  TranslateTextResponse.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
438
439
  TranslateTextResponse.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "TargetLanguageCode"))
439
440
  TranslateTextResponse.add_member(:applied_terminologies, Shapes::ShapeRef.new(shape: AppliedTerminologyList, location_name: "AppliedTerminologies"))
@@ -0,0 +1,69 @@
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
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,110 @@
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
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
+ YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
+ ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
+ aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
+ ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
+ IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
+ bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
+ aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
+ IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
+ IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
42
+ aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
43
+ Uy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQuIElmIHRoZSBjb25maWd1
44
+ cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgYSBGSVBTIGNvbXBsaWFudCBl
45
+ bmRwb2ludCwgZGlzcGF0Y2hpbmcgdGhlIHJlcXVlc3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
+ YWxzIiwiYXJndiI6W3RydWUseyJmbiI6ImdldEF0dHIiLCJhcmd2IjpbeyJy
96
+ ZWYiOiJQYXJ0aXRpb25SZXN1bHQifSwic3VwcG9ydHNEdWFsU3RhY2siXX1d
97
+ fV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlvbnMiOltdLCJl
98
+ bmRwb2ludCI6eyJ1cmwiOiJodHRwczovL3RyYW5zbGF0ZS57UmVnaW9ufS57
99
+ UGFydGl0aW9uUmVzdWx0I2R1YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0
100
+ aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsi
101
+ Y29uZGl0aW9ucyI6W10sImVycm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQg
102
+ YnV0IHRoaXMgcGFydGl0aW9uIGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNr
103
+ IiwidHlwZSI6ImVycm9yIn1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2lu
104
+ dCI6eyJ1cmwiOiJodHRwczovL3RyYW5zbGF0ZS57UmVnaW9ufS57UGFydGl0
105
+ aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVy
106
+ cyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
107
+
108
+ JSON
109
+ end
110
+ 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
@@ -64,29 +64,6 @@ module Aws::Translate
64
64
  include Aws::Structure
65
65
  end
66
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
- # tags: [
83
- # {
84
- # key: "TagKey", # required
85
- # value: "TagValue", # required
86
- # },
87
- # ],
88
- # }
89
- #
90
67
  # @!attribute [rw] name
91
68
  # A custom name for the parallel data resource in Amazon Translate.
92
69
  # You must assign a name that is unique in the account and region.
@@ -155,13 +132,6 @@ module Aws::Translate
155
132
  include Aws::Structure
156
133
  end
157
134
 
158
- # @note When making an API call, you may pass DeleteParallelDataRequest
159
- # data as a hash:
160
- #
161
- # {
162
- # name: "ResourceName", # required
163
- # }
164
- #
165
135
  # @!attribute [rw] name
166
136
  # The name of the parallel data resource that is being deleted.
167
137
  # @return [String]
@@ -191,13 +161,6 @@ module Aws::Translate
191
161
  include Aws::Structure
192
162
  end
193
163
 
194
- # @note When making an API call, you may pass DeleteTerminologyRequest
195
- # data as a hash:
196
- #
197
- # {
198
- # name: "ResourceName", # required
199
- # }
200
- #
201
164
  # @!attribute [rw] name
202
165
  # The name of the custom terminology being deleted.
203
166
  # @return [String]
@@ -210,13 +173,6 @@ module Aws::Translate
210
173
  include Aws::Structure
211
174
  end
212
175
 
213
- # @note When making an API call, you may pass DescribeTextTranslationJobRequest
214
- # data as a hash:
215
- #
216
- # {
217
- # job_id: "JobId", # required
218
- # }
219
- #
220
176
  # @!attribute [rw] job_id
221
177
  # The identifier that Amazon Translate generated for the job. The
222
178
  # StartTextTranslationJob operation returns this identifier in its
@@ -274,14 +230,6 @@ module Aws::Translate
274
230
 
275
231
  # The encryption key used to encrypt this object.
276
232
  #
277
- # @note When making an API call, you may pass EncryptionKey
278
- # data as a hash:
279
- #
280
- # {
281
- # type: "KMS", # required, accepts KMS
282
- # id: "EncryptionKeyID", # required
283
- # }
284
- #
285
233
  # @!attribute [rw] type
286
234
  # The type of encryption key used by Amazon Translate to encrypt this
287
235
  # object.
@@ -301,13 +249,6 @@ module Aws::Translate
301
249
  include Aws::Structure
302
250
  end
303
251
 
304
- # @note When making an API call, you may pass GetParallelDataRequest
305
- # data as a hash:
306
- #
307
- # {
308
- # name: "ResourceName", # required
309
- # }
310
- #
311
252
  # @!attribute [rw] name
312
253
  # The name of the parallel data resource that is being retrieved.
313
254
  # @return [String]
@@ -370,14 +311,6 @@ module Aws::Translate
370
311
  include Aws::Structure
371
312
  end
372
313
 
373
- # @note When making an API call, you may pass GetTerminologyRequest
374
- # data as a hash:
375
- #
376
- # {
377
- # name: "ResourceName", # required
378
- # terminology_data_format: "CSV", # accepts CSV, TMX, TSV
379
- # }
380
- #
381
314
  # @!attribute [rw] name
382
315
  # The name of the custom terminology being retrieved.
383
316
  # @return [String]
@@ -445,30 +378,6 @@ module Aws::Translate
445
378
  include Aws::Structure
446
379
  end
447
380
 
448
- # @note When making an API call, you may pass ImportTerminologyRequest
449
- # data as a hash:
450
- #
451
- # {
452
- # name: "ResourceName", # required
453
- # merge_strategy: "OVERWRITE", # required, accepts OVERWRITE
454
- # description: "Description",
455
- # terminology_data: { # required
456
- # file: "data", # required
457
- # format: "CSV", # required, accepts CSV, TMX, TSV
458
- # directionality: "UNI", # accepts UNI, MULTI
459
- # },
460
- # encryption_key: {
461
- # type: "KMS", # required, accepts KMS
462
- # id: "EncryptionKeyID", # required
463
- # },
464
- # tags: [
465
- # {
466
- # key: "TagKey", # required
467
- # value: "TagValue", # required
468
- # },
469
- # ],
470
- # }
471
- #
472
381
  # @!attribute [rw] name
473
382
  # The name of the custom terminology being imported.
474
383
  # @return [String]
@@ -539,27 +448,11 @@ module Aws::Translate
539
448
  # The input configuration properties for requesting a batch translation
540
449
  # job.
541
450
  #
542
- # @note When making an API call, you may pass InputDataConfig
543
- # data as a hash:
544
- #
545
- # {
546
- # s3_uri: "S3Uri", # required
547
- # content_type: "ContentType", # required
548
- # }
549
- #
550
451
  # @!attribute [rw] s3_uri
551
452
  # The URI of the AWS S3 folder that contains the input files. Amazon
552
- # Translate translates all the files in the folder. The folder must be
553
- # in the same Region as the API endpoint you are calling.
554
- #
555
- # <note markdown="1"> The URI can also point to a single input document, or it can provide
556
- # the prefix for a collection of input documents. For example. if you
557
- # use the URI `S3://bucketName/prefix` and the prefix is a single
558
- # file, Amazon Translate uses that files as input. If more than one
559
- # file begins with the prefix, Amazon Translate uses all of them as
560
- # input.
561
- #
562
- # </note>
453
+ # Translate translates all the files in the folder and all its
454
+ # sub-folders. The folder must be in the same Region as the API
455
+ # endpoint you are calling.
563
456
  # @return [String]
564
457
  #
565
458
  # @!attribute [rw] content_type
@@ -721,15 +614,6 @@ module Aws::Translate
721
614
  include Aws::Structure
722
615
  end
723
616
 
724
- # @note When making an API call, you may pass ListLanguagesRequest
725
- # data as a hash:
726
- #
727
- # {
728
- # display_language_code: "de", # accepts de, en, es, fr, it, ja, ko, pt, zh, zh-TW
729
- # next_token: "NextToken",
730
- # max_results: 1,
731
- # }
732
- #
733
617
  # @!attribute [rw] display_language_code
734
618
  # The language code for the language to use to display the language
735
619
  # names in the response. The language code is `en` by default.
@@ -778,14 +662,6 @@ module Aws::Translate
778
662
  include Aws::Structure
779
663
  end
780
664
 
781
- # @note When making an API call, you may pass ListParallelDataRequest
782
- # data as a hash:
783
- #
784
- # {
785
- # next_token: "NextToken",
786
- # max_results: 1,
787
- # }
788
- #
789
665
  # @!attribute [rw] next_token
790
666
  # A string that specifies the next page of results to return in a
791
667
  # paginated response.
@@ -825,13 +701,6 @@ module Aws::Translate
825
701
  include Aws::Structure
826
702
  end
827
703
 
828
- # @note When making an API call, you may pass ListTagsForResourceRequest
829
- # data as a hash:
830
- #
831
- # {
832
- # resource_arn: "ResourceArn", # required
833
- # }
834
- #
835
704
  # @!attribute [rw] resource_arn
836
705
  # The Amazon Resource Name (ARN) of the given Amazon Translate
837
706
  # resource you are querying.
@@ -861,14 +730,6 @@ module Aws::Translate
861
730
  include Aws::Structure
862
731
  end
863
732
 
864
- # @note When making an API call, you may pass ListTerminologiesRequest
865
- # data as a hash:
866
- #
867
- # {
868
- # next_token: "NextToken",
869
- # max_results: 1,
870
- # }
871
- #
872
733
  # @!attribute [rw] next_token
873
734
  # If the result of the request to ListTerminologies was truncated,
874
735
  # include the NextToken to fetch the next group of custom
@@ -908,20 +769,6 @@ module Aws::Translate
908
769
  include Aws::Structure
909
770
  end
910
771
 
911
- # @note When making an API call, you may pass ListTextTranslationJobsRequest
912
- # data as a hash:
913
- #
914
- # {
915
- # filter: {
916
- # job_name: "JobName",
917
- # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, COMPLETED_WITH_ERROR, FAILED, STOP_REQUESTED, STOPPED
918
- # submitted_before_time: Time.now,
919
- # submitted_after_time: Time.now,
920
- # },
921
- # next_token: "NextToken",
922
- # max_results: 1,
923
- # }
924
- #
925
772
  # @!attribute [rw] filter
926
773
  # The parameters that specify which batch translation jobs to
927
774
  # retrieve. Filters include job name, job status, and submission time.
@@ -967,17 +814,6 @@ module Aws::Translate
967
814
 
968
815
  # The output configuration properties for a batch translation job.
969
816
  #
970
- # @note When making an API call, you may pass OutputDataConfig
971
- # data as a hash:
972
- #
973
- # {
974
- # s3_uri: "S3Uri", # required
975
- # encryption_key: {
976
- # type: "KMS", # required, accepts KMS
977
- # id: "EncryptionKeyID", # required
978
- # },
979
- # }
980
- #
981
817
  # @!attribute [rw] s3_uri
982
818
  # The URI of the S3 folder that contains a translation job's output
983
819
  # file. The folder must be in the same Region as the API endpoint that
@@ -999,14 +835,6 @@ module Aws::Translate
999
835
 
1000
836
  # Specifies the format and S3 location of the parallel data input file.
1001
837
  #
1002
- # @note When making an API call, you may pass ParallelDataConfig
1003
- # data as a hash:
1004
- #
1005
- # {
1006
- # s3_uri: "S3Uri", # required
1007
- # format: "TSV", # required, accepts TSV, CSV, TMX
1008
- # }
1009
- #
1010
838
  # @!attribute [rw] s3_uri
1011
839
  # The URI of the Amazon S3 folder that contains the parallel data
1012
840
  # input file. The folder must be in the same Region as the API
@@ -1198,34 +1026,6 @@ module Aws::Translate
1198
1026
  include Aws::Structure
1199
1027
  end
1200
1028
 
1201
- # @note When making an API call, you may pass StartTextTranslationJobRequest
1202
- # data as a hash:
1203
- #
1204
- # {
1205
- # job_name: "JobName",
1206
- # input_data_config: { # required
1207
- # s3_uri: "S3Uri", # required
1208
- # content_type: "ContentType", # required
1209
- # },
1210
- # output_data_config: { # required
1211
- # s3_uri: "S3Uri", # required
1212
- # encryption_key: {
1213
- # type: "KMS", # required, accepts KMS
1214
- # id: "EncryptionKeyID", # required
1215
- # },
1216
- # },
1217
- # data_access_role_arn: "IamRoleArn", # required
1218
- # source_language_code: "LanguageCodeString", # required
1219
- # target_language_codes: ["LanguageCodeString"], # required
1220
- # terminology_names: ["ResourceName"],
1221
- # parallel_data_names: ["ResourceName"],
1222
- # client_token: "ClientTokenString", # required
1223
- # settings: {
1224
- # formality: "FORMAL", # accepts FORMAL, INFORMAL
1225
- # profanity: "MASK", # accepts MASK
1226
- # },
1227
- # }
1228
- #
1229
1029
  # @!attribute [rw] job_name
1230
1030
  # The name of the batch translation job to be performed.
1231
1031
  # @return [String]
@@ -1251,11 +1051,12 @@ module Aws::Translate
1251
1051
  # @return [String]
1252
1052
  #
1253
1053
  # @!attribute [rw] source_language_code
1254
- # The language code of the input language. For a list of language
1255
- # codes, see [Supported languages][1].
1256
- #
1257
- # Amazon Translate does not automatically detect a source language
1258
- # during batch translation jobs.
1054
+ # The language code of the input language. Specify the language if all
1055
+ # input documents share the same language. If you don't know the
1056
+ # language of the source files, or your input documents contains
1057
+ # different source languages, select `auto`. Amazon Translate auto
1058
+ # detects the source language for each input document. For a list of
1059
+ # supported language codes, see [Supported languages][1].
1259
1060
  #
1260
1061
  #
1261
1062
  #
@@ -1266,8 +1067,8 @@ module Aws::Translate
1266
1067
  # The target languages of the translation job. Enter up to 10 language
1267
1068
  # codes. Each input file is translated into each target language.
1268
1069
  #
1269
- # Each language code is two or five characters long. For a list of
1270
- # language codes, see [Supported languages][1].
1070
+ # Each language code is 2 or 5 characters long. For a list of language
1071
+ # codes, see [Supported languages][1].
1271
1072
  #
1272
1073
  #
1273
1074
  #
@@ -1393,13 +1194,6 @@ module Aws::Translate
1393
1194
  include Aws::Structure
1394
1195
  end
1395
1196
 
1396
- # @note When making an API call, you may pass StopTextTranslationJobRequest
1397
- # data as a hash:
1398
- #
1399
- # {
1400
- # job_id: "JobId", # required
1401
- # }
1402
- #
1403
1197
  # @!attribute [rw] job_id
1404
1198
  # The job ID of the job to be stopped.
1405
1199
  # @return [String]
@@ -1433,14 +1227,6 @@ module Aws::Translate
1433
1227
  # A key-value pair that adds as a metadata to a resource used by Amazon
1434
1228
  # Translate.
1435
1229
  #
1436
- # @note When making an API call, you may pass Tag
1437
- # data as a hash:
1438
- #
1439
- # {
1440
- # key: "TagKey", # required
1441
- # value: "TagValue", # required
1442
- # }
1443
- #
1444
1230
  # @!attribute [rw] key
1445
1231
  # The initial part of a key-value pair that forms a tag associated
1446
1232
  # with a given resource.
@@ -1460,19 +1246,6 @@ module Aws::Translate
1460
1246
  include Aws::Structure
1461
1247
  end
1462
1248
 
1463
- # @note When making an API call, you may pass TagResourceRequest
1464
- # data as a hash:
1465
- #
1466
- # {
1467
- # resource_arn: "ResourceArn", # required
1468
- # tags: [ # required
1469
- # {
1470
- # key: "TagKey", # required
1471
- # value: "TagValue", # required
1472
- # },
1473
- # ],
1474
- # }
1475
- #
1476
1249
  # @!attribute [rw] resource_arn
1477
1250
  # The Amazon Resource Name (ARN) of the given Amazon Translate
1478
1251
  # resource to which you want to associate the tags.
@@ -1525,15 +1298,6 @@ module Aws::Translate
1525
1298
  #
1526
1299
  # [1]: https://docs.aws.amazon.com/translate/latest/dg/creating-custom-terminology.html
1527
1300
  #
1528
- # @note When making an API call, you may pass TerminologyData
1529
- # data as a hash:
1530
- #
1531
- # {
1532
- # file: "data", # required
1533
- # format: "CSV", # required, accepts CSV, TMX, TSV
1534
- # directionality: "UNI", # accepts UNI, MULTI
1535
- # }
1536
- #
1537
1301
  # @!attribute [rw] file
1538
1302
  # The file containing the custom terminology data. Your version of the
1539
1303
  # AWS SDK performs a Base64-encoding on this field before sending a
@@ -1731,16 +1495,6 @@ module Aws::Translate
1731
1495
  # Provides information for filtering a list of translation jobs. For
1732
1496
  # more information, see ListTextTranslationJobs.
1733
1497
  #
1734
- # @note When making an API call, you may pass TextTranslationJobFilter
1735
- # data as a hash:
1736
- #
1737
- # {
1738
- # job_name: "JobName",
1739
- # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, COMPLETED_WITH_ERROR, FAILED, STOP_REQUESTED, STOPPED
1740
- # submitted_before_time: Time.now,
1741
- # submitted_after_time: Time.now,
1742
- # }
1743
- #
1744
1498
  # @!attribute [rw] job_name
1745
1499
  # Filters the list of jobs by name.
1746
1500
  # @return [String]
@@ -1900,24 +1654,10 @@ module Aws::Translate
1900
1654
  include Aws::Structure
1901
1655
  end
1902
1656
 
1903
- # @note When making an API call, you may pass TranslateTextRequest
1904
- # data as a hash:
1905
- #
1906
- # {
1907
- # text: "BoundedLengthString", # required
1908
- # terminology_names: ["ResourceName"],
1909
- # source_language_code: "LanguageCodeString", # required
1910
- # target_language_code: "LanguageCodeString", # required
1911
- # settings: {
1912
- # formality: "FORMAL", # accepts FORMAL, INFORMAL
1913
- # profanity: "MASK", # accepts MASK
1914
- # },
1915
- # }
1916
- #
1917
1657
  # @!attribute [rw] text
1918
- # The text to translate. The text string can be a maximum of 5,000
1658
+ # The text to translate. The text string can be a maximum of 10,000
1919
1659
  # bytes long. Depending on your character set, this may be fewer than
1920
- # 5,000 characters.
1660
+ # 10,000 characters.
1921
1661
  # @return [String]
1922
1662
  #
1923
1663
  # @!attribute [rw] terminology_names
@@ -2008,14 +1748,6 @@ module Aws::Translate
2008
1748
  # Optional settings that configure the translation output. Use these
2009
1749
  # settings for real time translations and asynchronous translation jobs.
2010
1750
  #
2011
- # @note When making an API call, you may pass TranslationSettings
2012
- # data as a hash:
2013
- #
2014
- # {
2015
- # formality: "FORMAL", # accepts FORMAL, INFORMAL
2016
- # profanity: "MASK", # accepts MASK
2017
- # }
2018
- #
2019
1751
  # @!attribute [rw] formality
2020
1752
  # You can optionally specify the desired level of formality for
2021
1753
  # translations to supported target languages. The formality setting
@@ -2028,13 +1760,13 @@ module Aws::Translate
2028
1760
  # If you specify multiple target languages for the job, translate
2029
1761
  # ignores the formality setting for any unsupported target language.
2030
1762
  #
2031
- # For a list of target languages that support formality, see [Setting
2032
- # Formality][2] in the Amazon Translate Developer Guide.
1763
+ # For a list of target languages that support formality, see
1764
+ # [Supported languages][2] in the Amazon Translate Developer Guide.
2033
1765
  #
2034
1766
  #
2035
1767
  #
2036
1768
  # [1]: https://en.wikipedia.org/wiki/Register_(sociolinguistics)
2037
- # [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality.html
1769
+ # [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality.html#customizing-translations-formality-languages
2038
1770
  # @return [String]
2039
1771
  #
2040
1772
  # @!attribute [rw] profanity
@@ -2047,8 +1779,9 @@ module Aws::Translate
2047
1779
  # of words.
2048
1780
  #
2049
1781
  # Amazon Translate doesn't detect profanity in all of its supported
2050
- # languages. For languages that support profanity detection, see
2051
- # [Masking profanity][1] in the Amazon Translate Developer Guide.
1782
+ # languages. For languages that don't support profanity detection,
1783
+ # see [Unsupported languages][1] in the Amazon Translate Developer
1784
+ # Guide.
2052
1785
  #
2053
1786
  # If you specify multiple target languages for the job, all the target
2054
1787
  # languages must support profanity masking. If any of the target
@@ -2057,7 +1790,7 @@ module Aws::Translate
2057
1790
  #
2058
1791
  #
2059
1792
  #
2060
- # [1]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity.html
1793
+ # [1]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity.html#customizing-translations-profanity-languages
2061
1794
  # @return [String]
2062
1795
  #
2063
1796
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslationSettings AWS API Documentation
@@ -2116,14 +1849,6 @@ module Aws::Translate
2116
1849
  include Aws::Structure
2117
1850
  end
2118
1851
 
2119
- # @note When making an API call, you may pass UntagResourceRequest
2120
- # data as a hash:
2121
- #
2122
- # {
2123
- # resource_arn: "ResourceArn", # required
2124
- # tag_keys: ["TagKey"], # required
2125
- # }
2126
- #
2127
1852
  # @!attribute [rw] resource_arn
2128
1853
  # The Amazon Resource Name (ARN) of the given Amazon Translate
2129
1854
  # resource from which you want to remove the tags.
@@ -2148,19 +1873,6 @@ module Aws::Translate
2148
1873
  #
2149
1874
  class UntagResourceResponse < Aws::EmptyStructure; end
2150
1875
 
2151
- # @note When making an API call, you may pass UpdateParallelDataRequest
2152
- # data as a hash:
2153
- #
2154
- # {
2155
- # name: "ResourceName", # required
2156
- # description: "Description",
2157
- # parallel_data_config: { # required
2158
- # s3_uri: "S3Uri", # required
2159
- # format: "TSV", # required, accepts TSV, CSV, TMX
2160
- # },
2161
- # client_token: "ClientTokenString", # required
2162
- # }
2163
- #
2164
1876
  # @!attribute [rw] name
2165
1877
  # The name of the parallel data resource being updated.
2166
1878
  # @return [String]
@@ -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.47.0'
55
+ GEM_VERSION = '1.49.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.47.0
4
+ version: 1.49.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-10-13 00:00:00.000000000 Z
11
+ date: 2022-12-15 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