aws-sdk-translate 1.35.0 → 1.37.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: 15dd1e5f20efc46442026c970005c5900af5b37d7a2fc67ce05f2801e718f258
4
- data.tar.gz: 9d50f7dcee832c143bc5250d927d44d7c280fb286ae7ee64c95b347557b3ffa0
3
+ metadata.gz: 11048a8572b1442a72dfc0de2e842b1aae2a1380e15941aa9f1217ac891e6492
4
+ data.tar.gz: e9bed6c6324a61d1e15ed6fd42e6f3854738244fc192cb794e526d849a6b1138
5
5
  SHA512:
6
- metadata.gz: 3b70e6ace3716a2309aa3a8ce658a2c7ebb9134f899b546e88bc9fe1b9155b4235c9a0d403ac668b545526bf01d85ecfc809633fa1a41aeaac8cccd46af8b67f
7
- data.tar.gz: 3246e977e673a178a98dc767605dbec3c8d64ed790c307b1230e8e999164aec1ad20e3fab5db03a247fe633116b4a8d3d1a113be6c7db2b5a601cfa6e9ad7769
6
+ metadata.gz: 485de6103a9c6493188631c567394c35d67a28de8dc5e90148f2112a87d578f804f6e081dd400f08667238eb1ced56ec30a3cb5f0a2166407efba3b9fb24d62a
7
+ data.tar.gz: b7eddb17fd018d0e838fa634994fd68a32fe3242403a4253679efeb0f42801be825d33e570536cd34a274ca23c407e1f1ab766a95911fdd86d4912b8a3af4ccf
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.36.0 (2021-11-04)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.35.0 (2021-10-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.35.0
1
+ 1.37.0
@@ -285,6 +285,15 @@ module Aws::Translate
285
285
  # ** Please note ** When response stubbing is enabled, no HTTP
286
286
  # requests are made, and retries are disabled.
287
287
  #
288
+ # @option options [Boolean] :use_dualstack_endpoint
289
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
290
+ # will be used if available.
291
+ #
292
+ # @option options [Boolean] :use_fips_endpoint
293
+ # When set to `true`, fips compatible endpoints will be used if available.
294
+ # When a `fips` region is used, the region is normalized and this config
295
+ # is set to `true`.
296
+ #
288
297
  # @option options [Boolean] :validate_params (true)
289
298
  # When `true`, request parameters are validated before
290
299
  # sending the request.
@@ -338,10 +347,10 @@ module Aws::Translate
338
347
  # @!group API Operations
339
348
 
340
349
  # Creates a parallel data resource in Amazon Translate by importing an
341
- # input file from Amazon S3. Parallel data files contain examples of
342
- # source phrases and their translations from your translation memory. By
343
- # adding parallel data, you can influence the style, tone, and word
344
- # choice in your translation output.
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.
345
354
  #
346
355
  # @option params [required, String] :name
347
356
  # A custom name for the parallel data resource in Amazon Translate. You
@@ -451,7 +460,7 @@ module Aws::Translate
451
460
  req.send_request(options)
452
461
  end
453
462
 
454
- # Gets the properties associated with an asycnhronous batch translation
463
+ # Gets the properties associated with an asynchronous batch translation
455
464
  # job including name, ID, status, source and target languages,
456
465
  # input/output S3 buckets, and so on.
457
466
  #
@@ -491,6 +500,8 @@ module Aws::Translate
491
500
  # resp.text_translation_job_properties.input_data_config.s3_uri #=> String
492
501
  # resp.text_translation_job_properties.input_data_config.content_type #=> String
493
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
494
505
  # resp.text_translation_job_properties.data_access_role_arn #=> String
495
506
  #
496
507
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
@@ -842,6 +853,8 @@ module Aws::Translate
842
853
  # resp.text_translation_job_properties_list[0].input_data_config.s3_uri #=> String
843
854
  # resp.text_translation_job_properties_list[0].input_data_config.content_type #=> String
844
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
845
858
  # resp.text_translation_job_properties_list[0].data_access_role_arn #=> String
846
859
  # resp.next_token #=> String
847
860
  #
@@ -881,7 +894,7 @@ module Aws::Translate
881
894
  # @option params [required, String] :data_access_role_arn
882
895
  # The Amazon Resource Name (ARN) of an AWS Identity Access and
883
896
  # Management (IAM) role that grants Amazon Translate read access to your
884
- # input data. For more nformation, see identity-and-access-management.
897
+ # input data. For more information, see identity-and-access-management.
885
898
  #
886
899
  # @option params [required, String] :source_language_code
887
900
  # The language code of the input language. For a list of language codes,
@@ -894,13 +907,39 @@ module Aws::Translate
894
907
  # The language code of the output language.
895
908
  #
896
909
  # @option params [Array<String>] :terminology_names
897
- # The name of the terminology to use in the batch translation job. For a
898
- # list of available terminologies, use the ListTerminologies operation.
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.
899
920
  #
900
921
  # @option params [Array<String>] :parallel_data_names
901
- # The names of the parallel data resources to use in the batch
902
- # translation job. For a list of available parallel data resources, use
903
- # the ListParallelData operation.
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/
904
943
  #
905
944
  # @option params [required, String] :client_token
906
945
  # A unique identifier for the request. This token is auto-generated when
@@ -924,6 +963,10 @@ module Aws::Translate
924
963
  # },
925
964
  # output_data_config: { # required
926
965
  # s3_uri: "S3Uri", # required
966
+ # encryption_key: {
967
+ # type: "KMS", # required, accepts KMS
968
+ # id: "EncryptionKeyID", # required
969
+ # },
927
970
  # },
928
971
  # data_access_role_arn: "IamRoleArn", # required
929
972
  # source_language_code: "LanguageCodeString", # required
@@ -1123,7 +1166,7 @@ module Aws::Translate
1123
1166
  params: params,
1124
1167
  config: config)
1125
1168
  context[:gem_name] = 'aws-sdk-translate'
1126
- context[:gem_version] = '1.35.0'
1169
+ context[:gem_version] = '1.37.0'
1127
1170
  Seahorse::Client::Request.new(handlers, context)
1128
1171
  end
1129
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 that was
313
- # successfully imported into Amazon Translate. The location is
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 retreive the next page of results. This value is
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 nformation, see
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 the terminology to use in the batch translation job. For
1023
- # a list of available terminologies, use the ListTerminologies
1024
- # operation.
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 names of the parallel data resources to use in the batch
1029
- # translation job. For a list of available parallel data resources,
1030
- # use the ListParallelData operation.
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 occured during the
1433
+ # An explanation of any errors that may have occurred during the
1368
1434
  # translation job.
1369
1435
  # @return [String]
1370
1436
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-translate/customizations'
48
48
  # @!group service
49
49
  module Aws::Translate
50
50
 
51
- GEM_VERSION = '1.35.0'
51
+ GEM_VERSION = '1.37.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.35.0
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-10-18 00:00:00.000000000 Z
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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.121.2
22
+ version: 3.122.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.121.2
32
+ version: 3.122.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement