aws-sdk-translate 1.22.0 → 1.27.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: 55fc0f31c2ae5c5e526f38286ef618beba137263f7e58db7421fb6e837005084
4
- data.tar.gz: 2619b91b71fa03b4ae617d30a5061d95dbaa6ffa9f7eb0ede37d59c85b4c1508
3
+ metadata.gz: 56110a33fddba09e12399d561ba33f394203fcc7f8dda59695e6cae93da0cecd
4
+ data.tar.gz: 172c81eb06c763d12c6ece3ccd9612ba487f482d1db34a01b761539115483b21
5
5
  SHA512:
6
- metadata.gz: 4a3a3f00d45fdaffe58fd891d87c736aa79e807e9265da4de8a4251407fac70d24987a2ec5aeda343d18ee4ed3b4c4df17e14ee71d892f5c4b50a8f1fad808fe
7
- data.tar.gz: 19243424faabcc7ebd329873e1dd09f3da2789b2601d28a27267d61aa2e9238d862113c31d11ef4e1a454ad630922fb3edc47e36fe519877160ff701bfcacd5c
6
+ metadata.gz: 0e86e825ebaf61bb45028c7081b82f7426cad625290e81bf136838b6743399f671d421ebb68626d0f9bf03ae9621f705d004d1e095666e76b311aa7772e38805
7
+ data.tar.gz: ebf579160fdd5064946367f8d205f48055b32f40d47700df47d7b9c13bf965c9723c21c2e6792203ea7820d7dbbb85cccc61145dbac241a7762293e8380ef6e1
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -5,6 +7,7 @@
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
10
+
8
11
  require 'aws-sdk-core'
9
12
  require 'aws-sigv4'
10
13
 
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-translate/customizations'
42
45
  #
43
46
  # See {Errors} for more information.
44
47
  #
45
- # @service
48
+ # @!group service
46
49
  module Aws::Translate
47
50
 
48
- GEM_VERSION = '1.22.0'
51
+ GEM_VERSION = '1.27.0'
49
52
 
50
53
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::Translate
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -81,13 +85,28 @@ module Aws::Translate
81
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
82
86
  # credentials.
83
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
84
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
85
103
  # from an EC2 IMDS on an EC2 instance.
86
104
  #
87
- # * `Aws::SharedCredentials` - Used for loading credentials from a
88
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
89
107
  #
90
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
91
110
  #
92
111
  # When `:credentials` are not configured directly, the following
93
112
  # locations will be searched for credentials:
@@ -97,10 +116,10 @@ module Aws::Translate
97
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
98
117
  # * `~/.aws/credentials`
99
118
  # * `~/.aws/config`
100
- # * EC2 IMDS instance profile - When used by default, the timeouts are
101
- # very aggressive. Construct and pass an instance of
102
- # `Aws::InstanceProfileCredentails` to enable retries and extended
103
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
104
123
  #
105
124
  # @option options [required, String] :region
106
125
  # The AWS region to connect to. The configured `:region` is
@@ -161,7 +180,7 @@ module Aws::Translate
161
180
  # @option options [String] :endpoint
162
181
  # The client endpoint is normally constructed from the `:region`
163
182
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
184
  #
166
185
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
186
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -669,14 +688,8 @@ module Aws::Translate
669
688
  # list of available terminologies, use the ListTerminologies operation.
670
689
  #
671
690
  # @option params [required, String] :client_token
672
- # The client token of the EC2 instance calling the request. This token
673
- # is auto-generated when using the Amazon Translate SDK. Otherwise, use
674
- # the
675
- # [DescribeInstances](docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html)
676
- # EC2 operation to retreive an instance's client token. For more
677
- # information, see [Client
678
- # Tokens](docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html#client-tokens)
679
- # in the EC2 User Guide.
691
+ # A unique identifier for the request. This token is auto-generated when
692
+ # using the Amazon Translate SDK.
680
693
  #
681
694
  # **A suitable default value is auto-generated.** You should normally
682
695
  # not need to pass this option.**
@@ -839,7 +852,7 @@ module Aws::Translate
839
852
  params: params,
840
853
  config: config)
841
854
  context[:gem_name] = 'aws-sdk-translate'
842
- context[:gem_version] = '1.22.0'
855
+ context[:gem_version] = '1.27.0'
843
856
  Seahorse::Client::Request.new(handlers, context)
844
857
  end
845
858
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -300,6 +302,7 @@ module Aws::Translate
300
302
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
301
303
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
302
304
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
305
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
303
306
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
304
307
  end)
305
308
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -31,6 +33,7 @@ module Aws::Translate
31
33
  class AppliedTerminology < Struct.new(
32
34
  :name,
33
35
  :terms)
36
+ SENSITIVE = []
34
37
  include Aws::Structure
35
38
  end
36
39
 
@@ -49,6 +52,7 @@ module Aws::Translate
49
52
  #
50
53
  class DeleteTerminologyRequest < Struct.new(
51
54
  :name)
55
+ SENSITIVE = []
52
56
  include Aws::Structure
53
57
  end
54
58
 
@@ -69,6 +73,7 @@ module Aws::Translate
69
73
  #
70
74
  class DescribeTextTranslationJobRequest < Struct.new(
71
75
  :job_id)
76
+ SENSITIVE = []
72
77
  include Aws::Structure
73
78
  end
74
79
 
@@ -81,6 +86,7 @@ module Aws::Translate
81
86
  #
82
87
  class DescribeTextTranslationJobResponse < Struct.new(
83
88
  :text_translation_job_properties)
89
+ SENSITIVE = []
84
90
  include Aws::Structure
85
91
  end
86
92
 
@@ -108,6 +114,7 @@ module Aws::Translate
108
114
  class DetectedLanguageLowConfidenceException < Struct.new(
109
115
  :message,
110
116
  :detected_language_code)
117
+ SENSITIVE = []
111
118
  include Aws::Structure
112
119
  end
113
120
 
@@ -137,6 +144,7 @@ module Aws::Translate
137
144
  class EncryptionKey < Struct.new(
138
145
  :type,
139
146
  :id)
147
+ SENSITIVE = []
140
148
  include Aws::Structure
141
149
  end
142
150
 
@@ -162,6 +170,7 @@ module Aws::Translate
162
170
  class GetTerminologyRequest < Struct.new(
163
171
  :name,
164
172
  :terminology_data_format)
173
+ SENSITIVE = []
165
174
  include Aws::Structure
166
175
  end
167
176
 
@@ -180,6 +189,7 @@ module Aws::Translate
180
189
  class GetTerminologyResponse < Struct.new(
181
190
  :terminology_properties,
182
191
  :terminology_data_location)
192
+ SENSITIVE = []
183
193
  include Aws::Structure
184
194
  end
185
195
 
@@ -231,6 +241,7 @@ module Aws::Translate
231
241
  :description,
232
242
  :terminology_data,
233
243
  :encryption_key)
244
+ SENSITIVE = []
234
245
  include Aws::Structure
235
246
  end
236
247
 
@@ -242,6 +253,7 @@ module Aws::Translate
242
253
  #
243
254
  class ImportTerminologyResponse < Struct.new(
244
255
  :terminology_properties)
256
+ SENSITIVE = []
245
257
  include Aws::Structure
246
258
  end
247
259
 
@@ -263,9 +275,34 @@ module Aws::Translate
263
275
  # @return [String]
264
276
  #
265
277
  # @!attribute [rw] content_type
266
- # The multipurpose internet mail extension (MIME) type of the input
267
- # files. Valid values are `text/plain` for plaintext files and
268
- # `text/html` for HTML files.
278
+ # Describes the format of the data that you submit to Amazon Translate
279
+ # as input. You can specify one of the following multipurpose internet
280
+ # mail extension (MIME) types:
281
+ #
282
+ # * `text/html`\: The input data consists of one or more HTML files.
283
+ # Amazon Translate translates only the text that resides in the
284
+ # `html` element in each file.
285
+ #
286
+ # * `text/plain`\: The input data consists of one or more unformatted
287
+ # text files. Amazon Translate translates every character in this
288
+ # type of input.
289
+ #
290
+ # * `application/vnd.openxmlformats-officedocument.wordprocessingml.document`\:
291
+ # The input data consists of one or more Word documents (.docx).
292
+ #
293
+ # * `application/vnd.openxmlformats-officedocument.presentationml.presentation`\:
294
+ # The input data consists of one or more PowerPoint Presentation
295
+ # files (.pptx).
296
+ #
297
+ # * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`\:
298
+ # The input data consists of one or more Excel Workbook files
299
+ # (.xlsx).
300
+ #
301
+ # If you structure your input data as HTML, ensure that you set this
302
+ # parameter to `text/html`. By doing so, you cut costs by limiting the
303
+ # translation to the contents of the `html` element in each file.
304
+ # Otherwise, if you set this parameter to `text/plain`, your costs
305
+ # will cover the translation of every character.
269
306
  # @return [String]
270
307
  #
271
308
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/InputDataConfig AWS API Documentation
@@ -273,6 +310,7 @@ module Aws::Translate
273
310
  class InputDataConfig < Struct.new(
274
311
  :s3_uri,
275
312
  :content_type)
313
+ SENSITIVE = []
276
314
  include Aws::Structure
277
315
  end
278
316
 
@@ -285,6 +323,7 @@ module Aws::Translate
285
323
  #
286
324
  class InternalServerException < Struct.new(
287
325
  :message)
326
+ SENSITIVE = []
288
327
  include Aws::Structure
289
328
  end
290
329
 
@@ -298,6 +337,7 @@ module Aws::Translate
298
337
  #
299
338
  class InvalidFilterException < Struct.new(
300
339
  :message)
340
+ SENSITIVE = []
301
341
  include Aws::Structure
302
342
  end
303
343
 
@@ -311,6 +351,7 @@ module Aws::Translate
311
351
  #
312
352
  class InvalidParameterValueException < Struct.new(
313
353
  :message)
354
+ SENSITIVE = []
314
355
  include Aws::Structure
315
356
  end
316
357
 
@@ -324,6 +365,7 @@ module Aws::Translate
324
365
  #
325
366
  class InvalidRequestException < Struct.new(
326
367
  :message)
368
+ SENSITIVE = []
327
369
  include Aws::Structure
328
370
  end
329
371
 
@@ -350,6 +392,7 @@ module Aws::Translate
350
392
  :translated_documents_count,
351
393
  :documents_with_errors_count,
352
394
  :input_documents_count)
395
+ SENSITIVE = []
353
396
  include Aws::Structure
354
397
  end
355
398
 
@@ -363,6 +406,7 @@ module Aws::Translate
363
406
  #
364
407
  class LimitExceededException < Struct.new(
365
408
  :message)
409
+ SENSITIVE = []
366
410
  include Aws::Structure
367
411
  end
368
412
 
@@ -390,6 +434,7 @@ module Aws::Translate
390
434
  class ListTerminologiesRequest < Struct.new(
391
435
  :next_token,
392
436
  :max_results)
437
+ SENSITIVE = []
393
438
  include Aws::Structure
394
439
  end
395
440
 
@@ -408,6 +453,7 @@ module Aws::Translate
408
453
  class ListTerminologiesResponse < Struct.new(
409
454
  :terminology_properties_list,
410
455
  :next_token)
456
+ SENSITIVE = []
411
457
  include Aws::Structure
412
458
  end
413
459
 
@@ -446,6 +492,7 @@ module Aws::Translate
446
492
  :filter,
447
493
  :next_token,
448
494
  :max_results)
495
+ SENSITIVE = []
449
496
  include Aws::Structure
450
497
  end
451
498
 
@@ -463,6 +510,7 @@ module Aws::Translate
463
510
  class ListTextTranslationJobsResponse < Struct.new(
464
511
  :text_translation_job_properties_list,
465
512
  :next_token)
513
+ SENSITIVE = []
466
514
  include Aws::Structure
467
515
  end
468
516
 
@@ -485,6 +533,7 @@ module Aws::Translate
485
533
  #
486
534
  class OutputDataConfig < Struct.new(
487
535
  :s3_uri)
536
+ SENSITIVE = []
488
537
  include Aws::Structure
489
538
  end
490
539
 
@@ -499,6 +548,7 @@ module Aws::Translate
499
548
  #
500
549
  class ResourceNotFoundException < Struct.new(
501
550
  :message)
551
+ SENSITIVE = []
502
552
  include Aws::Structure
503
553
  end
504
554
 
@@ -512,6 +562,7 @@ module Aws::Translate
512
562
  #
513
563
  class ServiceUnavailableException < Struct.new(
514
564
  :message)
565
+ SENSITIVE = []
515
566
  include Aws::Structure
516
567
  end
517
568
 
@@ -573,14 +624,8 @@ module Aws::Translate
573
624
  # @return [Array<String>]
574
625
  #
575
626
  # @!attribute [rw] client_token
576
- # The client token of the EC2 instance calling the request. This token
577
- # is auto-generated when using the Amazon Translate SDK. Otherwise,
578
- # use the
579
- # [DescribeInstances](docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html)
580
- # EC2 operation to retreive an instance's client token. For more
581
- # information, see [Client
582
- # Tokens](docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html#client-tokens)
583
- # in the EC2 User Guide.
627
+ # A unique identifier for the request. This token is auto-generated
628
+ # when using the Amazon Translate SDK.
584
629
  #
585
630
  # **A suitable default value is auto-generated.** You should normally
586
631
  # not need to pass this option.
@@ -597,6 +642,7 @@ module Aws::Translate
597
642
  :target_language_codes,
598
643
  :terminology_names,
599
644
  :client_token)
645
+ SENSITIVE = []
600
646
  include Aws::Structure
601
647
  end
602
648
 
@@ -616,7 +662,7 @@ module Aws::Translate
616
662
  # * `COMPLETED` - The job was successfully completed and the output is
617
663
  # available.
618
664
  #
619
- # * `COMPLETED_WITH_ERRORS` - The job was completed with errors. The
665
+ # * `COMPLETED_WITH_ERROR` - The job was completed with errors. The
620
666
  # errors can be analyzed in the job's output.
621
667
  #
622
668
  # * `FAILED` - The job did not complete. To get details, use the
@@ -633,6 +679,7 @@ module Aws::Translate
633
679
  class StartTextTranslationJobResponse < Struct.new(
634
680
  :job_id,
635
681
  :job_status)
682
+ SENSITIVE = []
636
683
  include Aws::Structure
637
684
  end
638
685
 
@@ -651,6 +698,7 @@ module Aws::Translate
651
698
  #
652
699
  class StopTextTranslationJobRequest < Struct.new(
653
700
  :job_id)
701
+ SENSITIVE = []
654
702
  include Aws::Structure
655
703
  end
656
704
 
@@ -668,6 +716,7 @@ module Aws::Translate
668
716
  class StopTextTranslationJobResponse < Struct.new(
669
717
  :job_id,
670
718
  :job_status)
719
+ SENSITIVE = []
671
720
  include Aws::Structure
672
721
  end
673
722
 
@@ -688,6 +737,7 @@ module Aws::Translate
688
737
  class Term < Struct.new(
689
738
  :source_text,
690
739
  :target_text)
740
+ SENSITIVE = []
691
741
  include Aws::Structure
692
742
  end
693
743
 
@@ -717,6 +767,7 @@ module Aws::Translate
717
767
  class TerminologyData < Struct.new(
718
768
  :file,
719
769
  :format)
770
+ SENSITIVE = [:file]
720
771
  include Aws::Structure
721
772
  end
722
773
 
@@ -735,6 +786,7 @@ module Aws::Translate
735
786
  class TerminologyDataLocation < Struct.new(
736
787
  :repository_type,
737
788
  :location)
789
+ SENSITIVE = []
738
790
  include Aws::Structure
739
791
  end
740
792
 
@@ -798,6 +850,7 @@ module Aws::Translate
798
850
  :term_count,
799
851
  :created_at,
800
852
  :last_updated_at)
853
+ SENSITIVE = []
801
854
  include Aws::Structure
802
855
  end
803
856
 
@@ -812,6 +865,7 @@ module Aws::Translate
812
865
  #
813
866
  class TextSizeLimitExceededException < Struct.new(
814
867
  :message)
868
+ SENSITIVE = []
815
869
  include Aws::Structure
816
870
  end
817
871
 
@@ -857,6 +911,7 @@ module Aws::Translate
857
911
  :job_status,
858
912
  :submitted_before_time,
859
913
  :submitted_after_time)
914
+ SENSITIVE = []
860
915
  include Aws::Structure
861
916
  end
862
917
 
@@ -940,6 +995,7 @@ module Aws::Translate
940
995
  :input_data_config,
941
996
  :output_data_config,
942
997
  :data_access_role_arn)
998
+ SENSITIVE = []
943
999
  include Aws::Structure
944
1000
  end
945
1001
 
@@ -953,6 +1009,7 @@ module Aws::Translate
953
1009
  #
954
1010
  class TooManyRequestsException < Struct.new(
955
1011
  :message)
1012
+ SENSITIVE = []
956
1013
  include Aws::Structure
957
1014
  end
958
1015
 
@@ -1006,6 +1063,7 @@ module Aws::Translate
1006
1063
  :terminology_names,
1007
1064
  :source_language_code,
1008
1065
  :target_language_code)
1066
+ SENSITIVE = []
1009
1067
  include Aws::Structure
1010
1068
  end
1011
1069
 
@@ -1033,6 +1091,7 @@ module Aws::Translate
1033
1091
  :source_language_code,
1034
1092
  :target_language_code,
1035
1093
  :applied_terminologies)
1094
+ SENSITIVE = []
1036
1095
  include Aws::Structure
1037
1096
  end
1038
1097
 
@@ -1057,6 +1116,7 @@ module Aws::Translate
1057
1116
  :message,
1058
1117
  :source_language_code,
1059
1118
  :target_language_code)
1119
+ SENSITIVE = []
1060
1120
  include Aws::Structure
1061
1121
  end
1062
1122
 
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.22.0
4
+ version: 1.27.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: 2020-05-28 00:00:00.000000000 Z
11
+ date: 2020-09-23 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.71.0
22
+ version: 3.99.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.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement