aws-sdk-translate 1.36.0 → 1.37.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +46 -12
- data/lib/aws-sdk-translate/client_api.rb +2 -0
- data/lib/aws-sdk-translate/types.rb +79 -13
- data/lib/aws-sdk-translate.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11048a8572b1442a72dfc0de2e842b1aae2a1380e15941aa9f1217ac891e6492
|
4
|
+
data.tar.gz: e9bed6c6324a61d1e15ed6fd42e6f3854738244fc192cb794e526d849a6b1138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 485de6103a9c6493188631c567394c35d67a28de8dc5e90148f2112a87d578f804f6e081dd400f08667238eb1ced56ec30a3cb5f0a2166407efba3b9fb24d62a
|
7
|
+
data.tar.gz: b7eddb17fd018d0e838fa634994fd68a32fe3242403a4253679efeb0f42801be825d33e570536cd34a274ca23c407e1f1ab766a95911fdd86d4912b8a3af4ccf
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.37.0 (2021-11-05)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release enable customers to use their own KMS keys to encrypt output files when they submit a batch transform job.
|
8
|
+
|
4
9
|
1.36.0 (2021-11-04)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.37.0
|
@@ -347,10 +347,10 @@ module Aws::Translate
|
|
347
347
|
# @!group API Operations
|
348
348
|
|
349
349
|
# Creates a parallel data resource in Amazon Translate by importing an
|
350
|
-
# input file from Amazon S3. Parallel data files contain examples
|
351
|
-
#
|
352
|
-
#
|
353
|
-
#
|
350
|
+
# input file from Amazon S3. Parallel data files contain examples that
|
351
|
+
# show how you want segments of text to be translated. By adding
|
352
|
+
# parallel data, you can influence the style, tone, and word choice in
|
353
|
+
# your translation output.
|
354
354
|
#
|
355
355
|
# @option params [required, String] :name
|
356
356
|
# A custom name for the parallel data resource in Amazon Translate. You
|
@@ -460,7 +460,7 @@ module Aws::Translate
|
|
460
460
|
req.send_request(options)
|
461
461
|
end
|
462
462
|
|
463
|
-
# Gets the properties associated with an
|
463
|
+
# Gets the properties associated with an asynchronous batch translation
|
464
464
|
# job including name, ID, status, source and target languages,
|
465
465
|
# input/output S3 buckets, and so on.
|
466
466
|
#
|
@@ -500,6 +500,8 @@ module Aws::Translate
|
|
500
500
|
# resp.text_translation_job_properties.input_data_config.s3_uri #=> String
|
501
501
|
# resp.text_translation_job_properties.input_data_config.content_type #=> String
|
502
502
|
# resp.text_translation_job_properties.output_data_config.s3_uri #=> String
|
503
|
+
# resp.text_translation_job_properties.output_data_config.encryption_key.type #=> String, one of "KMS"
|
504
|
+
# resp.text_translation_job_properties.output_data_config.encryption_key.id #=> String
|
503
505
|
# resp.text_translation_job_properties.data_access_role_arn #=> String
|
504
506
|
#
|
505
507
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
|
@@ -851,6 +853,8 @@ module Aws::Translate
|
|
851
853
|
# resp.text_translation_job_properties_list[0].input_data_config.s3_uri #=> String
|
852
854
|
# resp.text_translation_job_properties_list[0].input_data_config.content_type #=> String
|
853
855
|
# resp.text_translation_job_properties_list[0].output_data_config.s3_uri #=> String
|
856
|
+
# resp.text_translation_job_properties_list[0].output_data_config.encryption_key.type #=> String, one of "KMS"
|
857
|
+
# resp.text_translation_job_properties_list[0].output_data_config.encryption_key.id #=> String
|
854
858
|
# resp.text_translation_job_properties_list[0].data_access_role_arn #=> String
|
855
859
|
# resp.next_token #=> String
|
856
860
|
#
|
@@ -890,7 +894,7 @@ module Aws::Translate
|
|
890
894
|
# @option params [required, String] :data_access_role_arn
|
891
895
|
# The Amazon Resource Name (ARN) of an AWS Identity Access and
|
892
896
|
# Management (IAM) role that grants Amazon Translate read access to your
|
893
|
-
# input data. For more
|
897
|
+
# input data. For more information, see identity-and-access-management.
|
894
898
|
#
|
895
899
|
# @option params [required, String] :source_language_code
|
896
900
|
# The language code of the input language. For a list of language codes,
|
@@ -903,13 +907,39 @@ module Aws::Translate
|
|
903
907
|
# The language code of the output language.
|
904
908
|
#
|
905
909
|
# @option params [Array<String>] :terminology_names
|
906
|
-
# The name of
|
907
|
-
#
|
910
|
+
# The name of a custom terminology resource to add to the translation
|
911
|
+
# job. This resource lists examples source terms and the desired
|
912
|
+
# translation for each term.
|
913
|
+
#
|
914
|
+
# This parameter accepts only one custom terminology resource.
|
915
|
+
#
|
916
|
+
# For a list of available custom terminology resources, use the
|
917
|
+
# ListTerminologies operation.
|
918
|
+
#
|
919
|
+
# For more information, see how-custom-terminology.
|
908
920
|
#
|
909
921
|
# @option params [Array<String>] :parallel_data_names
|
910
|
-
# The
|
911
|
-
#
|
912
|
-
#
|
922
|
+
# The name of a parallel data resource to add to the translation job.
|
923
|
+
# This resource consists of examples that show how you want segments of
|
924
|
+
# text to be translated. When you add parallel data to a translation
|
925
|
+
# job, you create an *Active Custom Translation* job.
|
926
|
+
#
|
927
|
+
# This parameter accepts only one parallel data resource.
|
928
|
+
#
|
929
|
+
# <note markdown="1"> Active Custom Translation jobs are priced at a higher rate than other
|
930
|
+
# jobs that don't use parallel data. For more information, see [Amazon
|
931
|
+
# Translate pricing][1].
|
932
|
+
#
|
933
|
+
# </note>
|
934
|
+
#
|
935
|
+
# For a list of available parallel data resources, use the
|
936
|
+
# ListParallelData operation.
|
937
|
+
#
|
938
|
+
# For more information, see customizing-translations-parallel-data.
|
939
|
+
#
|
940
|
+
#
|
941
|
+
#
|
942
|
+
# [1]: http://aws.amazon.com/translate/pricing/
|
913
943
|
#
|
914
944
|
# @option params [required, String] :client_token
|
915
945
|
# A unique identifier for the request. This token is auto-generated when
|
@@ -933,6 +963,10 @@ module Aws::Translate
|
|
933
963
|
# },
|
934
964
|
# output_data_config: { # required
|
935
965
|
# s3_uri: "S3Uri", # required
|
966
|
+
# encryption_key: {
|
967
|
+
# type: "KMS", # required, accepts KMS
|
968
|
+
# id: "EncryptionKeyID", # required
|
969
|
+
# },
|
936
970
|
# },
|
937
971
|
# data_access_role_arn: "IamRoleArn", # required
|
938
972
|
# source_language_code: "LanguageCodeString", # required
|
@@ -1132,7 +1166,7 @@ module Aws::Translate
|
|
1132
1166
|
params: params,
|
1133
1167
|
config: config)
|
1134
1168
|
context[:gem_name] = 'aws-sdk-translate'
|
1135
|
-
context[:gem_version] = '1.
|
1169
|
+
context[:gem_version] = '1.37.0'
|
1136
1170
|
Seahorse::Client::Request.new(handlers, context)
|
1137
1171
|
end
|
1138
1172
|
|
@@ -229,6 +229,7 @@ module Aws::Translate
|
|
229
229
|
ListTextTranslationJobsResponse.struct_class = Types::ListTextTranslationJobsResponse
|
230
230
|
|
231
231
|
OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
232
|
+
OutputDataConfig.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
232
233
|
OutputDataConfig.struct_class = Types::OutputDataConfig
|
233
234
|
|
234
235
|
ParallelDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
@@ -545,6 +546,7 @@ module Aws::Translate
|
|
545
546
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguagePairException)
|
546
547
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
547
548
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
549
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
548
550
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
549
551
|
end)
|
550
552
|
|
@@ -309,9 +309,21 @@ module Aws::Translate
|
|
309
309
|
# @return [Types::ParallelDataProperties]
|
310
310
|
#
|
311
311
|
# @!attribute [rw] data_location
|
312
|
-
# The location of the most recent parallel data input file
|
313
|
-
# successfully imported into Amazon Translate. The location
|
314
|
-
# returned as a presigned URL that has a 30 minute expiration.
|
312
|
+
# The Amazon S3 location of the most recent parallel data input file
|
313
|
+
# that was successfully imported into Amazon Translate. The location
|
314
|
+
# is returned as a presigned URL that has a 30 minute expiration.
|
315
|
+
#
|
316
|
+
# Amazon Translate doesn't scan parallel data input files for the
|
317
|
+
# risk of CSV injection attacks.
|
318
|
+
#
|
319
|
+
# CSV injection occurs when a .csv or .tsv file is altered so that a
|
320
|
+
# record contains malicious code. The record begins with a special
|
321
|
+
# character, such as =, +, -, or @. When the file is opened in a
|
322
|
+
# spreadsheet program, the program might interpret the record as a
|
323
|
+
# formula and run the code within it.
|
324
|
+
#
|
325
|
+
# Before you download a parallel data input file from Amazon S3,
|
326
|
+
# ensure that you recognize the file and trust its creator.
|
315
327
|
# @return [Types::ParallelDataDataLocation]
|
316
328
|
#
|
317
329
|
# @!attribute [rw] auxiliary_data_location
|
@@ -491,6 +503,10 @@ module Aws::Translate
|
|
491
503
|
# The input data consists of one or more Excel Workbook files
|
492
504
|
# (.xlsx).
|
493
505
|
#
|
506
|
+
# * `application/x-xliff+xml`\: The input data consists of one or more
|
507
|
+
# XML Localization Interchange File Format (XLIFF) files (.xlf).
|
508
|
+
# Amazon Translate supports only XLIFF version 1.2.
|
509
|
+
#
|
494
510
|
# If you structure your input data as HTML, ensure that you set this
|
495
511
|
# parameter to `text/html`. By doing so, you cut costs by limiting the
|
496
512
|
# translation to the contents of the `html` element in each file.
|
@@ -741,7 +757,7 @@ module Aws::Translate
|
|
741
757
|
# @return [Array<Types::TextTranslationJobProperties>]
|
742
758
|
#
|
743
759
|
# @!attribute [rw] next_token
|
744
|
-
# The token to use to
|
760
|
+
# The token to use to retrieve the next page of results. This value is
|
745
761
|
# `null` when there are no more results to return.
|
746
762
|
# @return [String]
|
747
763
|
#
|
@@ -761,6 +777,10 @@ module Aws::Translate
|
|
761
777
|
#
|
762
778
|
# {
|
763
779
|
# s3_uri: "S3Uri", # required
|
780
|
+
# encryption_key: {
|
781
|
+
# type: "KMS", # required, accepts KMS
|
782
|
+
# id: "EncryptionKeyID", # required
|
783
|
+
# },
|
764
784
|
# }
|
765
785
|
#
|
766
786
|
# @!attribute [rw] s3_uri
|
@@ -769,10 +789,15 @@ module Aws::Translate
|
|
769
789
|
# you are calling.
|
770
790
|
# @return [String]
|
771
791
|
#
|
792
|
+
# @!attribute [rw] encryption_key
|
793
|
+
# The encryption key used to encrypt this object.
|
794
|
+
# @return [Types::EncryptionKey]
|
795
|
+
#
|
772
796
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/OutputDataConfig AWS API Documentation
|
773
797
|
#
|
774
798
|
class OutputDataConfig < Struct.new(
|
775
|
-
:s3_uri
|
799
|
+
:s3_uri,
|
800
|
+
:encryption_key)
|
776
801
|
SENSITIVE = []
|
777
802
|
include Aws::Structure
|
778
803
|
end
|
@@ -816,6 +841,18 @@ module Aws::Translate
|
|
816
841
|
# @!attribute [rw] location
|
817
842
|
# The Amazon S3 location of the parallel data input file. The location
|
818
843
|
# is returned as a presigned URL to that has a 30 minute expiration.
|
844
|
+
#
|
845
|
+
# Amazon Translate doesn't scan parallel data input files for the
|
846
|
+
# risk of CSV injection attacks.
|
847
|
+
#
|
848
|
+
# CSV injection occurs when a .csv or .tsv file is altered so that a
|
849
|
+
# record contains malicious code. The record begins with a special
|
850
|
+
# character, such as =, +, -, or @. When the file is opened in a
|
851
|
+
# spreadsheet program, the program might interpret the record as a
|
852
|
+
# formula and run the code within it.
|
853
|
+
#
|
854
|
+
# Before you download a parallel data input file from Amazon S3,
|
855
|
+
# ensure that you recognize the file and trust its creator.
|
819
856
|
# @return [String]
|
820
857
|
#
|
821
858
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataDataLocation AWS API Documentation
|
@@ -977,6 +1014,10 @@ module Aws::Translate
|
|
977
1014
|
# },
|
978
1015
|
# output_data_config: { # required
|
979
1016
|
# s3_uri: "S3Uri", # required
|
1017
|
+
# encryption_key: {
|
1018
|
+
# type: "KMS", # required, accepts KMS
|
1019
|
+
# id: "EncryptionKeyID", # required
|
1020
|
+
# },
|
980
1021
|
# },
|
981
1022
|
# data_access_role_arn: "IamRoleArn", # required
|
982
1023
|
# source_language_code: "LanguageCodeString", # required
|
@@ -1002,7 +1043,7 @@ module Aws::Translate
|
|
1002
1043
|
# @!attribute [rw] data_access_role_arn
|
1003
1044
|
# The Amazon Resource Name (ARN) of an AWS Identity Access and
|
1004
1045
|
# Management (IAM) role that grants Amazon Translate read access to
|
1005
|
-
# your input data. For more
|
1046
|
+
# your input data. For more information, see
|
1006
1047
|
# identity-and-access-management.
|
1007
1048
|
# @return [String]
|
1008
1049
|
#
|
@@ -1019,15 +1060,40 @@ module Aws::Translate
|
|
1019
1060
|
# @return [Array<String>]
|
1020
1061
|
#
|
1021
1062
|
# @!attribute [rw] terminology_names
|
1022
|
-
# The name of
|
1023
|
-
#
|
1024
|
-
#
|
1063
|
+
# The name of a custom terminology resource to add to the translation
|
1064
|
+
# job. This resource lists examples source terms and the desired
|
1065
|
+
# translation for each term.
|
1066
|
+
#
|
1067
|
+
# This parameter accepts only one custom terminology resource.
|
1068
|
+
#
|
1069
|
+
# For a list of available custom terminology resources, use the
|
1070
|
+
# ListTerminologies operation.
|
1071
|
+
#
|
1072
|
+
# For more information, see how-custom-terminology.
|
1025
1073
|
# @return [Array<String>]
|
1026
1074
|
#
|
1027
1075
|
# @!attribute [rw] parallel_data_names
|
1028
|
-
# The
|
1029
|
-
#
|
1030
|
-
#
|
1076
|
+
# The name of a parallel data resource to add to the translation job.
|
1077
|
+
# This resource consists of examples that show how you want segments
|
1078
|
+
# of text to be translated. When you add parallel data to a
|
1079
|
+
# translation job, you create an *Active Custom Translation* job.
|
1080
|
+
#
|
1081
|
+
# This parameter accepts only one parallel data resource.
|
1082
|
+
#
|
1083
|
+
# <note markdown="1"> Active Custom Translation jobs are priced at a higher rate than
|
1084
|
+
# other jobs that don't use parallel data. For more information, see
|
1085
|
+
# [Amazon Translate pricing][1].
|
1086
|
+
#
|
1087
|
+
# </note>
|
1088
|
+
#
|
1089
|
+
# For a list of available parallel data resources, use the
|
1090
|
+
# ListParallelData operation.
|
1091
|
+
#
|
1092
|
+
# For more information, see customizing-translations-parallel-data.
|
1093
|
+
#
|
1094
|
+
#
|
1095
|
+
#
|
1096
|
+
# [1]: http://aws.amazon.com/translate/pricing/
|
1031
1097
|
# @return [Array<String>]
|
1032
1098
|
#
|
1033
1099
|
# @!attribute [rw] client_token
|
@@ -1364,7 +1430,7 @@ module Aws::Translate
|
|
1364
1430
|
# @return [Array<String>]
|
1365
1431
|
#
|
1366
1432
|
# @!attribute [rw] message
|
1367
|
-
# An explanation of any errors that may have
|
1433
|
+
# An explanation of any errors that may have occurred during the
|
1368
1434
|
# translation job.
|
1369
1435
|
# @return [String]
|
1370
1436
|
#
|
data/lib/aws-sdk-translate.rb
CHANGED
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.
|
4
|
+
version: 1.37.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: 2021-11-
|
11
|
+
date: 2021-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|