aws-sdk-rekognition 1.34.0 → 1.39.1

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
- SHA1:
3
- metadata.gz: be8aeee40c517d2db7bdb3d1f4cc5e8ac57981c5
4
- data.tar.gz: cde89b0c775fd9a9fd709753ec4ebff46e78078e
2
+ SHA256:
3
+ metadata.gz: 4155adfcc0d099683a4d0c50342dfffafa3f0a70ef035a37de4f9e622b01cadd
4
+ data.tar.gz: 8197f96961cad8c8298321e68712f33ec854f331ec7c8dca35c3cee2b9a13080
5
5
  SHA512:
6
- metadata.gz: 592a0b5cc96f6bf397006b23138f5d6fab76ab2b7ae4d13de4b859f00b6c1d2ca5857d030c4960e8105995b202a2bd28b62ffcca9c3b3ad7d29e79168159da63
7
- data.tar.gz: 00b37a0363372228ad146c5381e1f047f8b5719b0b3d123f8a776cda6b69d0bbeb54600024bf301377098036aa6bb7780b4bf82735872818e09b471bacce0292
6
+ metadata.gz: bcfed9be9ee50e08255efa7aaf34f19c8c887030350ccdcaf83b43b8d3b6c05b26edd56ca9cb05e388534135dbc65c56ee0c4aae8e9c9bcd326960d5a214aa3a
7
+ data.tar.gz: fc4df78d6b1426f6c4fdd59326408a80a9184518853442d752205fa7ed4949df7d8b812f9ecdc423954bafc37cc6f2d74a04320f306b08f3710fdb2ee4ff6fdb
@@ -25,17 +25,20 @@ require_relative 'aws-sdk-rekognition/customizations'
25
25
  # methods each accept a hash of request parameters and return a response
26
26
  # structure.
27
27
  #
28
+ # rekognition = Aws::Rekognition::Client.new
29
+ # resp = rekognition.compare_faces(params)
30
+ #
28
31
  # See {Client} for more information.
29
32
  #
30
33
  # # Errors
31
34
  #
32
- # Errors returned from Amazon Rekognition all
33
- # extend {Errors::ServiceError}.
35
+ # Errors returned from Amazon Rekognition are defined in the
36
+ # {Errors} module and all extend {Errors::ServiceError}.
34
37
  #
35
38
  # begin
36
39
  # # do stuff
37
40
  # rescue Aws::Rekognition::Errors::ServiceError
38
- # # rescues all service API errors
41
+ # # rescues all Amazon Rekognition API errors
39
42
  # end
40
43
  #
41
44
  # See {Errors} for more information.
@@ -43,6 +46,6 @@ require_relative 'aws-sdk-rekognition/customizations'
43
46
  # @service
44
47
  module Aws::Rekognition
45
48
 
46
- GEM_VERSION = '1.34.0'
49
+ GEM_VERSION = '1.39.1'
47
50
 
48
51
  end
@@ -24,12 +24,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
30
 
30
31
  Aws::Plugins::GlobalConfiguration.add_identifier(:rekognition)
31
32
 
32
33
  module Aws::Rekognition
34
+ # An API client for Rekognition. To construct a client, you need to configure a `:region` and `:credentials`.
35
+ #
36
+ # client = Aws::Rekognition::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
41
+ #
42
+ # For details on configuring region and credentials see
43
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
44
+ #
45
+ # See {#initialize} for a full list of supported configuration options.
33
46
  class Client < Seahorse::Client::Base
34
47
 
35
48
  include Aws::ClientStubs
@@ -57,6 +70,7 @@ module Aws::Rekognition
57
70
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
71
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
72
  add_plugin(Aws::Plugins::TransferEncoding)
73
+ add_plugin(Aws::Plugins::HttpChecksum)
60
74
  add_plugin(Aws::Plugins::SignatureV4)
61
75
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
62
76
 
@@ -93,7 +107,7 @@ module Aws::Rekognition
93
107
  # @option options [required, String] :region
94
108
  # The AWS region to connect to. The configured `:region` is
95
109
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
110
+ # a default `:region` is searched for in the following locations:
97
111
  #
98
112
  # * `Aws.config[:region]`
99
113
  # * `ENV['AWS_REGION']`
@@ -108,6 +122,12 @@ module Aws::Rekognition
108
122
  # When set to `true`, a thread polling for endpoints will be running in
109
123
  # the background every 60 secs (default). Defaults to `false`.
110
124
  #
125
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
126
+ # Used only in `adaptive` retry mode. When true, the request will sleep
127
+ # until there is sufficent client side capacity to retry the request.
128
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
129
+ # not retry instead of sleeping.
130
+ #
111
131
  # @option options [Boolean] :client_side_monitoring (false)
112
132
  # When `true`, client-side metrics will be collected for all API requests from
113
133
  # this client.
@@ -132,6 +152,10 @@ module Aws::Rekognition
132
152
  # When `true`, an attempt is made to coerce request parameters into
133
153
  # the required types.
134
154
  #
155
+ # @option options [Boolean] :correct_clock_skew (true)
156
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
157
+ # a clock skew correction and retry requests with skewed client clocks.
158
+ #
135
159
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
160
  # Set to true to disable SDK automatically adding host prefix
137
161
  # to default service endpoint when available.
@@ -139,7 +163,7 @@ module Aws::Rekognition
139
163
  # @option options [String] :endpoint
140
164
  # The client endpoint is normally constructed from the `:region`
141
165
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
166
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
167
  #
144
168
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
169
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +178,7 @@ module Aws::Rekognition
154
178
  # requests fetching endpoints information. Defaults to 60 sec.
155
179
  #
156
180
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
181
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
182
  #
159
183
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
184
  # The log formatter.
@@ -166,15 +190,29 @@ module Aws::Rekognition
166
190
  # The Logger instance to send log messages to. If this option
167
191
  # is not set, logging will be disabled.
168
192
  #
193
+ # @option options [Integer] :max_attempts (3)
194
+ # An integer representing the maximum number attempts that will be made for
195
+ # a single request, including the initial attempt. For example,
196
+ # setting this value to 5 will result in a request being retried up to
197
+ # 4 times. Used in `standard` and `adaptive` retry modes.
198
+ #
169
199
  # @option options [String] :profile ("default")
170
200
  # Used when loading credentials from the shared credentials file
171
201
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
202
  #
203
+ # @option options [Proc] :retry_backoff
204
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
205
+ # This option is only used in the `legacy` retry mode.
206
+ #
173
207
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
208
+ # The base delay in seconds used by the default backoff function. This option
209
+ # is only used in the `legacy` retry mode.
175
210
  #
176
211
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
212
+ # A delay randomiser function used by the default backoff function.
213
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
214
+ # otherwise a Proc that takes and returns a number. This option is only used
215
+ # in the `legacy` retry mode.
178
216
  #
179
217
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
218
  #
@@ -182,11 +220,30 @@ module Aws::Rekognition
182
220
  # The maximum number of times to retry failed requests. Only
183
221
  # ~ 500 level server errors and certain ~ 400 level client errors
184
222
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
223
+ # checksum errors, networking errors, timeout errors, auth errors,
224
+ # endpoint discovery, and errors from expired credentials.
225
+ # This option is only used in the `legacy` retry mode.
187
226
  #
188
227
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
228
+ # The maximum number of seconds to delay between retries (0 for no limit)
229
+ # used by the default backoff function. This option is only used in the
230
+ # `legacy` retry mode.
231
+ #
232
+ # @option options [String] :retry_mode ("legacy")
233
+ # Specifies which retry algorithm to use. Values are:
234
+ #
235
+ # * `legacy` - The pre-existing retry behavior. This is default value if
236
+ # no retry mode is provided.
237
+ #
238
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
239
+ # This includes support for retry quotas, which limit the number of
240
+ # unsuccessful retries a client can make.
241
+ #
242
+ # * `adaptive` - An experimental retry mode that includes all the
243
+ # functionality of `standard` mode along with automatic client side
244
+ # throttling. This is a provisional mode that may change behavior
245
+ # in the future.
246
+ #
190
247
  #
191
248
  # @option options [String] :secret_access_key
192
249
  #
@@ -219,16 +276,15 @@ module Aws::Rekognition
219
276
  # requests through. Formatted like 'http://proxy.com:123'.
220
277
  #
221
278
  # @option options [Float] :http_open_timeout (15) The number of
222
- # seconds to wait when opening a HTTP session before rasing a
279
+ # seconds to wait when opening a HTTP session before raising a
223
280
  # `Timeout::Error`.
224
281
  #
225
282
  # @option options [Integer] :http_read_timeout (60) The default
226
283
  # number of seconds to wait for response data. This value can
227
- # safely be set
228
- # per-request on the session yeidled by {#session_for}.
284
+ # safely be set per-request on the session.
229
285
  #
230
286
  # @option options [Float] :http_idle_timeout (5) The number of
231
- # seconds a connection is allowed to sit idble before it is
287
+ # seconds a connection is allowed to sit idle before it is
232
288
  # considered stale. Stale connections are closed and removed
233
289
  # from the pool before making a request.
234
290
  #
@@ -237,7 +293,7 @@ module Aws::Rekognition
237
293
  # request body. This option has no effect unless the request has
238
294
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
295
  # disables this behaviour. This value can safely be set per
240
- # request on the session yeidled by {#session_for}.
296
+ # request on the session.
241
297
  #
242
298
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
299
  # HTTP debug output will be sent to the `:logger`.
@@ -854,6 +910,73 @@ module Aws::Rekognition
854
910
  req.send_request(options)
855
911
  end
856
912
 
913
+ # Deletes an Amazon Rekognition Custom Labels project. To delete a
914
+ # project you must first delete all versions of the model associated
915
+ # with the project. To delete a version of a model, see
916
+ # DeleteProjectVersion.
917
+ #
918
+ # This operation requires permissions to perform the
919
+ # `rekognition:DeleteProject` action.
920
+ #
921
+ # @option params [required, String] :project_arn
922
+ # The Amazon Resource Name (ARN) of the project that you want to delete.
923
+ #
924
+ # @return [Types::DeleteProjectResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
925
+ #
926
+ # * {Types::DeleteProjectResponse#status #status} => String
927
+ #
928
+ # @example Request syntax with placeholder values
929
+ #
930
+ # resp = client.delete_project({
931
+ # project_arn: "ProjectArn", # required
932
+ # })
933
+ #
934
+ # @example Response structure
935
+ #
936
+ # resp.status #=> String, one of "CREATING", "CREATED", "DELETING"
937
+ #
938
+ # @overload delete_project(params = {})
939
+ # @param [Hash] params ({})
940
+ def delete_project(params = {}, options = {})
941
+ req = build_request(:delete_project, params)
942
+ req.send_request(options)
943
+ end
944
+
945
+ # Deletes a version of a model.
946
+ #
947
+ # You must first stop the model before you can delete it. To check if a
948
+ # model is running, use the `Status` field returned from
949
+ # DescribeProjectVersions. To stop a running model call
950
+ # StopProjectVersion.
951
+ #
952
+ # This operation requires permissions to perform the
953
+ # `rekognition:DeleteProjectVersion` action.
954
+ #
955
+ # @option params [required, String] :project_version_arn
956
+ # The Amazon Resource Name (ARN) of the model version that you want to
957
+ # delete.
958
+ #
959
+ # @return [Types::DeleteProjectVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
960
+ #
961
+ # * {Types::DeleteProjectVersionResponse#status #status} => String
962
+ #
963
+ # @example Request syntax with placeholder values
964
+ #
965
+ # resp = client.delete_project_version({
966
+ # project_version_arn: "ProjectVersionArn", # required
967
+ # })
968
+ #
969
+ # @example Response structure
970
+ #
971
+ # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING"
972
+ #
973
+ # @overload delete_project_version(params = {})
974
+ # @param [Hash] params ({})
975
+ def delete_project_version(params = {}, options = {})
976
+ req = build_request(:delete_project_version, params)
977
+ req.send_request(options)
978
+ end
979
+
857
980
  # Deletes the stream processor identified by `Name`. You assign the
858
981
  # value for `Name` when you create the stream processor with
859
982
  # CreateStreamProcessor. You might not be able to use the same name for
@@ -950,6 +1073,8 @@ module Aws::Rekognition
950
1073
  # * {Types::DescribeProjectVersionsResponse#project_version_descriptions #project_version_descriptions} => Array&lt;Types::ProjectVersionDescription&gt;
951
1074
  # * {Types::DescribeProjectVersionsResponse#next_token #next_token} => String
952
1075
  #
1076
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1077
+ #
953
1078
  # @example Request syntax with placeholder values
954
1079
  #
955
1080
  # resp = client.describe_project_versions({
@@ -995,6 +1120,12 @@ module Aws::Rekognition
995
1120
  # resp.project_version_descriptions[0].evaluation_result.summary.s3_object.version #=> String
996
1121
  # resp.next_token #=> String
997
1122
  #
1123
+ #
1124
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1125
+ #
1126
+ # * project_version_running
1127
+ # * project_version_training_completed
1128
+ #
998
1129
  # @overload describe_project_versions(params = {})
999
1130
  # @param [Hash] params ({})
1000
1131
  def describe_project_versions(params = {}, options = {})
@@ -1025,6 +1156,8 @@ module Aws::Rekognition
1025
1156
  # * {Types::DescribeProjectsResponse#project_descriptions #project_descriptions} => Array&lt;Types::ProjectDescription&gt;
1026
1157
  # * {Types::DescribeProjectsResponse#next_token #next_token} => String
1027
1158
  #
1159
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1160
+ #
1028
1161
  # @example Request syntax with placeholder values
1029
1162
  #
1030
1163
  # resp = client.describe_projects({
@@ -1886,6 +2019,8 @@ module Aws::Rekognition
1886
2019
  # * {Types::GetCelebrityRecognitionResponse#next_token #next_token} => String
1887
2020
  # * {Types::GetCelebrityRecognitionResponse#celebrities #celebrities} => Array&lt;Types::CelebrityRecognition&gt;
1888
2021
  #
2022
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2023
+ #
1889
2024
  # @example Request syntax with placeholder values
1890
2025
  #
1891
2026
  # resp = client.get_celebrity_recognition({
@@ -2029,6 +2164,8 @@ module Aws::Rekognition
2029
2164
  # * {Types::GetContentModerationResponse#next_token #next_token} => String
2030
2165
  # * {Types::GetContentModerationResponse#moderation_model_version #moderation_model_version} => String
2031
2166
  #
2167
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2168
+ #
2032
2169
  # @example Request syntax with placeholder values
2033
2170
  #
2034
2171
  # resp = client.get_content_moderation({
@@ -2111,6 +2248,8 @@ module Aws::Rekognition
2111
2248
  # * {Types::GetFaceDetectionResponse#next_token #next_token} => String
2112
2249
  # * {Types::GetFaceDetectionResponse#faces #faces} => Array&lt;Types::FaceDetection&gt;
2113
2250
  #
2251
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2252
+ #
2114
2253
  # @example Request syntax with placeholder values
2115
2254
  #
2116
2255
  # resp = client.get_face_detection({
@@ -2240,6 +2379,8 @@ module Aws::Rekognition
2240
2379
  # * {Types::GetFaceSearchResponse#video_metadata #video_metadata} => Types::VideoMetadata
2241
2380
  # * {Types::GetFaceSearchResponse#persons #persons} => Array&lt;Types::PersonMatch&gt;
2242
2381
  #
2382
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2383
+ #
2243
2384
  # @example Request syntax with placeholder values
2244
2385
  #
2245
2386
  # resp = client.get_face_search({
@@ -2386,6 +2527,8 @@ module Aws::Rekognition
2386
2527
  # * {Types::GetLabelDetectionResponse#labels #labels} => Array&lt;Types::LabelDetection&gt;
2387
2528
  # * {Types::GetLabelDetectionResponse#label_model_version #label_model_version} => String
2388
2529
  #
2530
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2531
+ #
2389
2532
  # @example Request syntax with placeholder values
2390
2533
  #
2391
2534
  # resp = client.get_label_detection({
@@ -2497,6 +2640,8 @@ module Aws::Rekognition
2497
2640
  # * {Types::GetPersonTrackingResponse#next_token #next_token} => String
2498
2641
  # * {Types::GetPersonTrackingResponse#persons #persons} => Array&lt;Types::PersonDetection&gt;
2499
2642
  #
2643
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2644
+ #
2500
2645
  # @example Request syntax with placeholder values
2501
2646
  #
2502
2647
  # resp = client.get_person_tracking({
@@ -2622,6 +2767,8 @@ module Aws::Rekognition
2622
2767
  # * {Types::GetTextDetectionResponse#next_token #next_token} => String
2623
2768
  # * {Types::GetTextDetectionResponse#text_model_version #text_model_version} => String
2624
2769
  #
2770
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2771
+ #
2625
2772
  # @example Request syntax with placeholder values
2626
2773
  #
2627
2774
  # resp = client.get_text_detection({
@@ -3116,6 +3263,8 @@ module Aws::Rekognition
3116
3263
  # * {Types::ListCollectionsResponse#next_token #next_token} => String
3117
3264
  # * {Types::ListCollectionsResponse#face_model_versions #face_model_versions} => Array&lt;String&gt;
3118
3265
  #
3266
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3267
+ #
3119
3268
  #
3120
3269
  # @example Example: To list the collections
3121
3270
  #
@@ -3180,6 +3329,8 @@ module Aws::Rekognition
3180
3329
  # * {Types::ListFacesResponse#next_token #next_token} => String
3181
3330
  # * {Types::ListFacesResponse#face_model_version #face_model_version} => String
3182
3331
  #
3332
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3333
+ #
3183
3334
  #
3184
3335
  # @example Example: To list the faces in a collection
3185
3336
  #
@@ -3364,6 +3515,8 @@ module Aws::Rekognition
3364
3515
  # * {Types::ListStreamProcessorsResponse#next_token #next_token} => String
3365
3516
  # * {Types::ListStreamProcessorsResponse#stream_processors #stream_processors} => Array&lt;Types::StreamProcessor&gt;
3366
3517
  #
3518
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3519
+ #
3367
3520
  # @example Request syntax with placeholder values
3368
3521
  #
3369
3522
  # resp = client.list_stream_processors({
@@ -4505,7 +4658,7 @@ module Aws::Rekognition
4505
4658
  params: params,
4506
4659
  config: config)
4507
4660
  context[:gem_name] = 'aws-sdk-rekognition'
4508
- context[:gem_version] = '1.34.0'
4661
+ context[:gem_version] = '1.39.1'
4509
4662
  Seahorse::Client::Request.new(handlers, context)
4510
4663
  end
4511
4664
 
@@ -4571,10 +4724,10 @@ module Aws::Rekognition
4571
4724
  # The following table lists the valid waiter names, the operations they call,
4572
4725
  # and the default `:delay` and `:max_attempts` values.
4573
4726
  #
4574
- # | waiter_name | params | :delay | :max_attempts |
4575
- # | ---------------------------------- | ---------------------------- | -------- | ------------- |
4576
- # | project_version_running | {#describe_project_versions} | 30 | 40 |
4577
- # | project_version_training_completed | {#describe_project_versions} | 120 | 360 |
4727
+ # | waiter_name | params | :delay | :max_attempts |
4728
+ # | ---------------------------------- | ---------------------------------- | -------- | ------------- |
4729
+ # | project_version_running | {Client#describe_project_versions} | 30 | 40 |
4730
+ # | project_version_training_completed | {Client#describe_project_versions} | 120 | 360 |
4578
4731
  #
4579
4732
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
4580
4733
  # because the waiter has entered a state that it will not transition
@@ -60,6 +60,10 @@ module Aws::Rekognition
60
60
  DeleteCollectionResponse = Shapes::StructureShape.new(name: 'DeleteCollectionResponse')
61
61
  DeleteFacesRequest = Shapes::StructureShape.new(name: 'DeleteFacesRequest')
62
62
  DeleteFacesResponse = Shapes::StructureShape.new(name: 'DeleteFacesResponse')
63
+ DeleteProjectRequest = Shapes::StructureShape.new(name: 'DeleteProjectRequest')
64
+ DeleteProjectResponse = Shapes::StructureShape.new(name: 'DeleteProjectResponse')
65
+ DeleteProjectVersionRequest = Shapes::StructureShape.new(name: 'DeleteProjectVersionRequest')
66
+ DeleteProjectVersionResponse = Shapes::StructureShape.new(name: 'DeleteProjectVersionResponse')
63
67
  DeleteStreamProcessorRequest = Shapes::StructureShape.new(name: 'DeleteStreamProcessorRequest')
64
68
  DeleteStreamProcessorResponse = Shapes::StructureShape.new(name: 'DeleteStreamProcessorResponse')
65
69
  DescribeCollectionRequest = Shapes::StructureShape.new(name: 'DescribeCollectionRequest')
@@ -294,6 +298,8 @@ module Aws::Rekognition
294
298
  VideoMetadata = Shapes::StructureShape.new(name: 'VideoMetadata')
295
299
  VideoTooLargeException = Shapes::StructureShape.new(name: 'VideoTooLargeException')
296
300
 
301
+ AccessDeniedException.struct_class = Types::AccessDeniedException
302
+
297
303
  AgeRange.add_member(:low, Shapes::ShapeRef.new(shape: UInteger, location_name: "Low"))
298
304
  AgeRange.add_member(:high, Shapes::ShapeRef.new(shape: UInteger, location_name: "High"))
299
305
  AgeRange.struct_class = Types::AgeRange
@@ -436,6 +442,18 @@ module Aws::Rekognition
436
442
  DeleteFacesResponse.add_member(:deleted_faces, Shapes::ShapeRef.new(shape: FaceIdList, location_name: "DeletedFaces"))
437
443
  DeleteFacesResponse.struct_class = Types::DeleteFacesResponse
438
444
 
445
+ DeleteProjectRequest.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, required: true, location_name: "ProjectArn"))
446
+ DeleteProjectRequest.struct_class = Types::DeleteProjectRequest
447
+
448
+ DeleteProjectResponse.add_member(:status, Shapes::ShapeRef.new(shape: ProjectStatus, location_name: "Status"))
449
+ DeleteProjectResponse.struct_class = Types::DeleteProjectResponse
450
+
451
+ DeleteProjectVersionRequest.add_member(:project_version_arn, Shapes::ShapeRef.new(shape: ProjectVersionArn, required: true, location_name: "ProjectVersionArn"))
452
+ DeleteProjectVersionRequest.struct_class = Types::DeleteProjectVersionRequest
453
+
454
+ DeleteProjectVersionResponse.add_member(:status, Shapes::ShapeRef.new(shape: ProjectVersionStatus, location_name: "Status"))
455
+ DeleteProjectVersionResponse.struct_class = Types::DeleteProjectVersionResponse
456
+
439
457
  DeleteStreamProcessorRequest.add_member(:name, Shapes::ShapeRef.new(shape: StreamProcessorName, required: true, location_name: "Name"))
440
458
  DeleteStreamProcessorRequest.struct_class = Types::DeleteStreamProcessorRequest
441
459
 
@@ -739,6 +757,8 @@ module Aws::Rekognition
739
757
  HumanLoopQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "ServiceCode"))
740
758
  HumanLoopQuotaExceededException.struct_class = Types::HumanLoopQuotaExceededException
741
759
 
760
+ IdempotentParameterMismatchException.struct_class = Types::IdempotentParameterMismatchException
761
+
742
762
  Image.add_member(:bytes, Shapes::ShapeRef.new(shape: ImageBlob, location_name: "Bytes"))
743
763
  Image.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "S3Object"))
744
764
  Image.struct_class = Types::Image
@@ -747,6 +767,8 @@ module Aws::Rekognition
747
767
  ImageQuality.add_member(:sharpness, Shapes::ShapeRef.new(shape: Float, location_name: "Sharpness"))
748
768
  ImageQuality.struct_class = Types::ImageQuality
749
769
 
770
+ ImageTooLargeException.struct_class = Types::ImageTooLargeException
771
+
750
772
  IndexFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
751
773
  IndexFacesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
752
774
  IndexFacesRequest.add_member(:external_image_id, Shapes::ShapeRef.new(shape: ExternalImageId, location_name: "ExternalImageId"))
@@ -767,6 +789,16 @@ module Aws::Rekognition
767
789
 
768
790
  Instances.member = Shapes::ShapeRef.new(shape: Instance)
769
791
 
792
+ InternalServerError.struct_class = Types::InternalServerError
793
+
794
+ InvalidImageFormatException.struct_class = Types::InvalidImageFormatException
795
+
796
+ InvalidPaginationTokenException.struct_class = Types::InvalidPaginationTokenException
797
+
798
+ InvalidParameterException.struct_class = Types::InvalidParameterException
799
+
800
+ InvalidS3ObjectException.struct_class = Types::InvalidS3ObjectException
801
+
770
802
  KinesisDataStream.add_member(:arn, Shapes::ShapeRef.new(shape: KinesisDataArn, location_name: "Arn"))
771
803
  KinesisDataStream.struct_class = Types::KinesisDataStream
772
804
 
@@ -794,6 +826,8 @@ module Aws::Rekognition
794
826
 
795
827
  Landmarks.member = Shapes::ShapeRef.new(shape: Landmark)
796
828
 
829
+ LimitExceededException.struct_class = Types::LimitExceededException
830
+
797
831
  ListCollectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
798
832
  ListCollectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
799
833
  ListCollectionsRequest.struct_class = Types::ListCollectionsRequest
@@ -900,6 +934,8 @@ module Aws::Rekognition
900
934
 
901
935
  ProjectVersionDescriptions.member = Shapes::ShapeRef.new(shape: ProjectVersionDescription)
902
936
 
937
+ ProvisionedThroughputExceededException.struct_class = Types::ProvisionedThroughputExceededException
938
+
903
939
  Reasons.member = Shapes::ShapeRef.new(shape: Reason)
904
940
 
905
941
  RecognizeCelebritiesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
@@ -915,6 +951,14 @@ module Aws::Rekognition
915
951
 
916
952
  RegionsOfInterest.member = Shapes::ShapeRef.new(shape: RegionOfInterest)
917
953
 
954
+ ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
955
+
956
+ ResourceInUseException.struct_class = Types::ResourceInUseException
957
+
958
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
959
+
960
+ ResourceNotReadyException.struct_class = Types::ResourceNotReadyException
961
+
918
962
  S3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "Bucket"))
919
963
  S3Object.add_member(:name, Shapes::ShapeRef.new(shape: S3ObjectName, location_name: "Name"))
920
964
  S3Object.add_member(:version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "Version"))
@@ -1090,6 +1134,8 @@ module Aws::Rekognition
1090
1134
 
1091
1135
  TextDetectionResults.member = Shapes::ShapeRef.new(shape: TextDetectionResult)
1092
1136
 
1137
+ ThrottlingException.struct_class = Types::ThrottlingException
1138
+
1093
1139
  TrainingData.add_member(:assets, Shapes::ShapeRef.new(shape: Assets, location_name: "Assets"))
1094
1140
  TrainingData.struct_class = Types::TrainingData
1095
1141
 
@@ -1118,6 +1164,8 @@ module Aws::Rekognition
1118
1164
  VideoMetadata.add_member(:frame_width, Shapes::ShapeRef.new(shape: ULong, location_name: "FrameWidth"))
1119
1165
  VideoMetadata.struct_class = Types::VideoMetadata
1120
1166
 
1167
+ VideoTooLargeException.struct_class = Types::VideoTooLargeException
1168
+
1121
1169
 
1122
1170
  # @api private
1123
1171
  API = Seahorse::Model::Api.new.tap do |api|
@@ -1240,6 +1288,36 @@ module Aws::Rekognition
1240
1288
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1241
1289
  end)
1242
1290
 
1291
+ api.add_operation(:delete_project, Seahorse::Model::Operation.new.tap do |o|
1292
+ o.name = "DeleteProject"
1293
+ o.http_method = "POST"
1294
+ o.http_request_uri = "/"
1295
+ o.input = Shapes::ShapeRef.new(shape: DeleteProjectRequest)
1296
+ o.output = Shapes::ShapeRef.new(shape: DeleteProjectResponse)
1297
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1298
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1299
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1300
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1301
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1302
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1303
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1304
+ end)
1305
+
1306
+ api.add_operation(:delete_project_version, Seahorse::Model::Operation.new.tap do |o|
1307
+ o.name = "DeleteProjectVersion"
1308
+ o.http_method = "POST"
1309
+ o.http_request_uri = "/"
1310
+ o.input = Shapes::ShapeRef.new(shape: DeleteProjectVersionRequest)
1311
+ o.output = Shapes::ShapeRef.new(shape: DeleteProjectVersionResponse)
1312
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1313
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1314
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1315
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1316
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1317
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1318
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1319
+ end)
1320
+
1243
1321
  api.add_operation(:delete_stream_processor, Seahorse::Model::Operation.new.tap do |o|
1244
1322
  o.name = "DeleteStreamProcessor"
1245
1323
  o.http_method = "POST"
@@ -6,10 +6,59 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Rekognition
9
+
10
+ # When Rekognition returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Rekognition::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Rekognition errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Rekognition::Errors::ServiceError
18
+ # # rescues all Rekognition API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {AccessDeniedException}
29
+ # * {HumanLoopQuotaExceededException}
30
+ # * {IdempotentParameterMismatchException}
31
+ # * {ImageTooLargeException}
32
+ # * {InternalServerError}
33
+ # * {InvalidImageFormatException}
34
+ # * {InvalidPaginationTokenException}
35
+ # * {InvalidParameterException}
36
+ # * {InvalidS3ObjectException}
37
+ # * {LimitExceededException}
38
+ # * {ProvisionedThroughputExceededException}
39
+ # * {ResourceAlreadyExistsException}
40
+ # * {ResourceInUseException}
41
+ # * {ResourceNotFoundException}
42
+ # * {ResourceNotReadyException}
43
+ # * {ThrottlingException}
44
+ # * {VideoTooLargeException}
45
+ #
46
+ # Additionally, error classes are dynamically generated for service errors based on the error code
47
+ # if they are not defined above.
9
48
  module Errors
10
49
 
11
50
  extend Aws::Errors::DynamicErrors
12
51
 
52
+ class AccessDeniedException < ServiceError
53
+
54
+ # @param [Seahorse::Client::RequestContext] context
55
+ # @param [String] message
56
+ # @param [Aws::Rekognition::Types::AccessDeniedException] data
57
+ def initialize(context, message, data = Aws::EmptyStructure.new)
58
+ super(context, message, data)
59
+ end
60
+ end
61
+
13
62
  class HumanLoopQuotaExceededException < ServiceError
14
63
 
15
64
  # @param [Seahorse::Client::RequestContext] context
@@ -33,7 +82,156 @@ module Aws::Rekognition
33
82
  def service_code
34
83
  @data[:service_code]
35
84
  end
85
+ end
86
+
87
+ class IdempotentParameterMismatchException < ServiceError
88
+
89
+ # @param [Seahorse::Client::RequestContext] context
90
+ # @param [String] message
91
+ # @param [Aws::Rekognition::Types::IdempotentParameterMismatchException] data
92
+ def initialize(context, message, data = Aws::EmptyStructure.new)
93
+ super(context, message, data)
94
+ end
95
+ end
96
+
97
+ class ImageTooLargeException < ServiceError
98
+
99
+ # @param [Seahorse::Client::RequestContext] context
100
+ # @param [String] message
101
+ # @param [Aws::Rekognition::Types::ImageTooLargeException] data
102
+ def initialize(context, message, data = Aws::EmptyStructure.new)
103
+ super(context, message, data)
104
+ end
105
+ end
106
+
107
+ class InternalServerError < ServiceError
108
+
109
+ # @param [Seahorse::Client::RequestContext] context
110
+ # @param [String] message
111
+ # @param [Aws::Rekognition::Types::InternalServerError] data
112
+ def initialize(context, message, data = Aws::EmptyStructure.new)
113
+ super(context, message, data)
114
+ end
115
+ end
116
+
117
+ class InvalidImageFormatException < ServiceError
118
+
119
+ # @param [Seahorse::Client::RequestContext] context
120
+ # @param [String] message
121
+ # @param [Aws::Rekognition::Types::InvalidImageFormatException] data
122
+ def initialize(context, message, data = Aws::EmptyStructure.new)
123
+ super(context, message, data)
124
+ end
125
+ end
126
+
127
+ class InvalidPaginationTokenException < ServiceError
128
+
129
+ # @param [Seahorse::Client::RequestContext] context
130
+ # @param [String] message
131
+ # @param [Aws::Rekognition::Types::InvalidPaginationTokenException] data
132
+ def initialize(context, message, data = Aws::EmptyStructure.new)
133
+ super(context, message, data)
134
+ end
135
+ end
136
+
137
+ class InvalidParameterException < ServiceError
138
+
139
+ # @param [Seahorse::Client::RequestContext] context
140
+ # @param [String] message
141
+ # @param [Aws::Rekognition::Types::InvalidParameterException] data
142
+ def initialize(context, message, data = Aws::EmptyStructure.new)
143
+ super(context, message, data)
144
+ end
145
+ end
146
+
147
+ class InvalidS3ObjectException < ServiceError
148
+
149
+ # @param [Seahorse::Client::RequestContext] context
150
+ # @param [String] message
151
+ # @param [Aws::Rekognition::Types::InvalidS3ObjectException] data
152
+ def initialize(context, message, data = Aws::EmptyStructure.new)
153
+ super(context, message, data)
154
+ end
155
+ end
156
+
157
+ class LimitExceededException < ServiceError
158
+
159
+ # @param [Seahorse::Client::RequestContext] context
160
+ # @param [String] message
161
+ # @param [Aws::Rekognition::Types::LimitExceededException] data
162
+ def initialize(context, message, data = Aws::EmptyStructure.new)
163
+ super(context, message, data)
164
+ end
165
+ end
166
+
167
+ class ProvisionedThroughputExceededException < ServiceError
168
+
169
+ # @param [Seahorse::Client::RequestContext] context
170
+ # @param [String] message
171
+ # @param [Aws::Rekognition::Types::ProvisionedThroughputExceededException] data
172
+ def initialize(context, message, data = Aws::EmptyStructure.new)
173
+ super(context, message, data)
174
+ end
175
+ end
176
+
177
+ class ResourceAlreadyExistsException < ServiceError
178
+
179
+ # @param [Seahorse::Client::RequestContext] context
180
+ # @param [String] message
181
+ # @param [Aws::Rekognition::Types::ResourceAlreadyExistsException] data
182
+ def initialize(context, message, data = Aws::EmptyStructure.new)
183
+ super(context, message, data)
184
+ end
185
+ end
186
+
187
+ class ResourceInUseException < ServiceError
188
+
189
+ # @param [Seahorse::Client::RequestContext] context
190
+ # @param [String] message
191
+ # @param [Aws::Rekognition::Types::ResourceInUseException] data
192
+ def initialize(context, message, data = Aws::EmptyStructure.new)
193
+ super(context, message, data)
194
+ end
195
+ end
196
+
197
+ class ResourceNotFoundException < ServiceError
198
+
199
+ # @param [Seahorse::Client::RequestContext] context
200
+ # @param [String] message
201
+ # @param [Aws::Rekognition::Types::ResourceNotFoundException] data
202
+ def initialize(context, message, data = Aws::EmptyStructure.new)
203
+ super(context, message, data)
204
+ end
205
+ end
206
+
207
+ class ResourceNotReadyException < ServiceError
208
+
209
+ # @param [Seahorse::Client::RequestContext] context
210
+ # @param [String] message
211
+ # @param [Aws::Rekognition::Types::ResourceNotReadyException] data
212
+ def initialize(context, message, data = Aws::EmptyStructure.new)
213
+ super(context, message, data)
214
+ end
215
+ end
216
+
217
+ class ThrottlingException < ServiceError
218
+
219
+ # @param [Seahorse::Client::RequestContext] context
220
+ # @param [String] message
221
+ # @param [Aws::Rekognition::Types::ThrottlingException] data
222
+ def initialize(context, message, data = Aws::EmptyStructure.new)
223
+ super(context, message, data)
224
+ end
225
+ end
36
226
 
227
+ class VideoTooLargeException < ServiceError
228
+
229
+ # @param [Seahorse::Client::RequestContext] context
230
+ # @param [String] message
231
+ # @param [Aws::Rekognition::Types::VideoTooLargeException] data
232
+ def initialize(context, message, data = Aws::EmptyStructure.new)
233
+ super(context, message, data)
234
+ end
37
235
  end
38
236
 
39
237
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Rekognition
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -8,6 +8,10 @@
8
8
  module Aws::Rekognition
9
9
  module Types
10
10
 
11
+ # You are not authorized to perform the action.
12
+ #
13
+ class AccessDeniedException < Aws::EmptyStructure; end
14
+
11
15
  # Structure containing the estimated age range, in years, for a face.
12
16
  #
13
17
  # Amazon Rekognition estimates an age range for faces detected in the
@@ -747,6 +751,58 @@ module Aws::Rekognition
747
751
  include Aws::Structure
748
752
  end
749
753
 
754
+ # @note When making an API call, you may pass DeleteProjectRequest
755
+ # data as a hash:
756
+ #
757
+ # {
758
+ # project_arn: "ProjectArn", # required
759
+ # }
760
+ #
761
+ # @!attribute [rw] project_arn
762
+ # The Amazon Resource Name (ARN) of the project that you want to
763
+ # delete.
764
+ # @return [String]
765
+ #
766
+ class DeleteProjectRequest < Struct.new(
767
+ :project_arn)
768
+ include Aws::Structure
769
+ end
770
+
771
+ # @!attribute [rw] status
772
+ # The current status of the delete project operation.
773
+ # @return [String]
774
+ #
775
+ class DeleteProjectResponse < Struct.new(
776
+ :status)
777
+ include Aws::Structure
778
+ end
779
+
780
+ # @note When making an API call, you may pass DeleteProjectVersionRequest
781
+ # data as a hash:
782
+ #
783
+ # {
784
+ # project_version_arn: "ProjectVersionArn", # required
785
+ # }
786
+ #
787
+ # @!attribute [rw] project_version_arn
788
+ # The Amazon Resource Name (ARN) of the model version that you want to
789
+ # delete.
790
+ # @return [String]
791
+ #
792
+ class DeleteProjectVersionRequest < Struct.new(
793
+ :project_version_arn)
794
+ include Aws::Structure
795
+ end
796
+
797
+ # @!attribute [rw] status
798
+ # The status of the deletion operation.
799
+ # @return [String]
800
+ #
801
+ class DeleteProjectVersionResponse < Struct.new(
802
+ :status)
803
+ include Aws::Structure
804
+ end
805
+
750
806
  # @note When making an API call, you may pass DeleteStreamProcessorRequest
751
807
  # data as a hash:
752
808
  #
@@ -2543,6 +2599,12 @@ module Aws::Rekognition
2543
2599
  include Aws::Structure
2544
2600
  end
2545
2601
 
2602
+ # A `ClientRequestToken` input parameter was reused with an operation,
2603
+ # but at least one of the other input parameters is different from the
2604
+ # previous call to the operation.
2605
+ #
2606
+ class IdempotentParameterMismatchException < Aws::EmptyStructure; end
2607
+
2546
2608
  # Provides the input image either as bytes or an S3 object.
2547
2609
  #
2548
2610
  # You pass image bytes to an Amazon Rekognition API operation by using
@@ -2617,6 +2679,12 @@ module Aws::Rekognition
2617
2679
  include Aws::Structure
2618
2680
  end
2619
2681
 
2682
+ # The input image size exceeds the allowed limit. For more information,
2683
+ # see Limits in Amazon Rekognition in the Amazon Rekognition Developer
2684
+ # Guide.
2685
+ #
2686
+ class ImageTooLargeException < Aws::EmptyStructure; end
2687
+
2620
2688
  # @note When making an API call, you may pass IndexFacesRequest
2621
2689
  # data as a hash:
2622
2690
  #
@@ -2791,6 +2859,28 @@ module Aws::Rekognition
2791
2859
  include Aws::Structure
2792
2860
  end
2793
2861
 
2862
+ # Amazon Rekognition experienced a service issue. Try your call again.
2863
+ #
2864
+ class InternalServerError < Aws::EmptyStructure; end
2865
+
2866
+ # The provided image format is not supported.
2867
+ #
2868
+ class InvalidImageFormatException < Aws::EmptyStructure; end
2869
+
2870
+ # Pagination token in the request is not valid.
2871
+ #
2872
+ class InvalidPaginationTokenException < Aws::EmptyStructure; end
2873
+
2874
+ # Input parameter violated a constraint. Validate your parameter before
2875
+ # calling the API operation again.
2876
+ #
2877
+ class InvalidParameterException < Aws::EmptyStructure; end
2878
+
2879
+ # Amazon Rekognition is unable to access the S3 object specified in the
2880
+ # request.
2881
+ #
2882
+ class InvalidS3ObjectException < Aws::EmptyStructure; end
2883
+
2794
2884
  # The Kinesis data stream Amazon Rekognition to which the analysis
2795
2885
  # results of a Amazon Rekognition stream processor are streamed. For
2796
2886
  # more information, see CreateStreamProcessor in the Amazon Rekognition
@@ -2909,6 +2999,15 @@ module Aws::Rekognition
2909
2999
  include Aws::Structure
2910
3000
  end
2911
3001
 
3002
+ # An Amazon Rekognition service limit was exceeded. For example, if you
3003
+ # start too many Amazon Rekognition Video jobs concurrently, calls to
3004
+ # start operations (`StartLabelDetection`, for example) will raise a
3005
+ # `LimitExceededException` exception (HTTP status code: 400) until the
3006
+ # number of concurrently running jobs is below the Amazon Rekognition
3007
+ # service limit.
3008
+ #
3009
+ class LimitExceededException < Aws::EmptyStructure; end
3010
+
2912
3011
  # @note When making an API call, you may pass ListCollectionsRequest
2913
3012
  # data as a hash:
2914
3013
  #
@@ -3385,6 +3484,11 @@ module Aws::Rekognition
3385
3484
  include Aws::Structure
3386
3485
  end
3387
3486
 
3487
+ # The number of requests exceeded your throughput limit. If you want to
3488
+ # increase this limit, contact Amazon Rekognition.
3489
+ #
3490
+ class ProvisionedThroughputExceededException < Aws::EmptyStructure; end
3491
+
3388
3492
  # @note When making an API call, you may pass RecognizeCelebritiesRequest
3389
3493
  # data as a hash:
3390
3494
  #
@@ -3479,6 +3583,22 @@ module Aws::Rekognition
3479
3583
  include Aws::Structure
3480
3584
  end
3481
3585
 
3586
+ # A collection with the specified ID already exists.
3587
+ #
3588
+ class ResourceAlreadyExistsException < Aws::EmptyStructure; end
3589
+
3590
+ class ResourceInUseException < Aws::EmptyStructure; end
3591
+
3592
+ # The collection specified in the request cannot be found.
3593
+ #
3594
+ class ResourceNotFoundException < Aws::EmptyStructure; end
3595
+
3596
+ # The requested resource isn't ready. For example, this exception
3597
+ # occurs when you call `DetectCustomLabels` with a model version that
3598
+ # isn't deployed.
3599
+ #
3600
+ class ResourceNotReadyException < Aws::EmptyStructure; end
3601
+
3482
3602
  # Provides the S3 bucket name and object name.
3483
3603
  #
3484
3604
  # The region for the S3 bucket containing the S3 object must match the
@@ -4598,6 +4718,11 @@ module Aws::Rekognition
4598
4718
  include Aws::Structure
4599
4719
  end
4600
4720
 
4721
+ # Amazon Rekognition is temporarily unable to process the request. Try
4722
+ # your call again.
4723
+ #
4724
+ class ThrottlingException < Aws::EmptyStructure; end
4725
+
4601
4726
  # The dataset used for training.
4602
4727
  #
4603
4728
  # @note When making an API call, you may pass TrainingData
@@ -4742,5 +4867,10 @@ module Aws::Rekognition
4742
4867
  include Aws::Structure
4743
4868
  end
4744
4869
 
4870
+ # The file size or duration of the supplied media is too large. The
4871
+ # maximum file size is 10GB. The maximum duration is 6 hours.
4872
+ #
4873
+ class VideoTooLargeException < Aws::EmptyStructure; end
4874
+
4745
4875
  end
4746
4876
  end
@@ -8,6 +8,68 @@
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
10
  module Aws::Rekognition
11
+ # Waiters are utility methods that poll for a particular state to occur
12
+ # on a client. Waiters can fail after a number of attempts at a polling
13
+ # interval defined for the service client.
14
+ #
15
+ # For a list of operations that can be waited for and the
16
+ # client methods called for each operation, see the table below or the
17
+ # {Client#wait_until} field documentation for the {Client}.
18
+ #
19
+ # # Invoking a Waiter
20
+ # To invoke a waiter, call #wait_until on a {Client}. The first parameter
21
+ # is the waiter name, which is specific to the service client and indicates
22
+ # which operation is being waited for. The second parameter is a hash of
23
+ # parameters that are passed to the client method called by the waiter,
24
+ # which varies according to the waiter name.
25
+ #
26
+ # # Wait Failures
27
+ # To catch errors in a waiter, use WaiterFailed,
28
+ # as shown in the following example.
29
+ #
30
+ # rescue rescue Aws::Waiters::Errors::WaiterFailed => error
31
+ # puts "failed waiting for instance running: #{error.message}
32
+ # end
33
+ #
34
+ # # Configuring a Waiter
35
+ # Each waiter has a default polling interval and a maximum number of
36
+ # attempts it will make before returning control to your program.
37
+ # To set these values, use the `max_attempts` and `delay` parameters
38
+ # in your `#wait_until` call.
39
+ # The following example waits for up to 25 seconds, polling every five seconds.
40
+ #
41
+ # client.wait_until(...) do |w|
42
+ # w.max_attempts = 5
43
+ # w.delay = 5
44
+ # end
45
+ #
46
+ # To disable wait failures, set the value of either of these parameters
47
+ # to `nil`.
48
+ #
49
+ # # Extending a Waiter
50
+ # To modify the behavior of waiters, you can register callbacks that are
51
+ # triggered before each polling attempt and before waiting.
52
+ #
53
+ # The following example implements an exponential backoff in a waiter
54
+ # by doubling the amount of time to wait on every attempt.
55
+ #
56
+ # client.wait_until(...) do |w|
57
+ # w.interval = 0 # disable normal sleep
58
+ # w.before_wait do |n, resp|
59
+ # sleep(n ** 2)
60
+ # end
61
+ # end
62
+ #
63
+ # # Available Waiters
64
+ #
65
+ # The following table lists the valid waiter names, the operations they call,
66
+ # and the default `:delay` and `:max_attempts` values.
67
+ #
68
+ # | waiter_name | params | :delay | :max_attempts |
69
+ # | ---------------------------------- | ---------------------------------- | -------- | ------------- |
70
+ # | project_version_running | {Client#describe_project_versions} | 30 | 40 |
71
+ # | project_version_training_completed | {Client#describe_project_versions} | 120 | 360 |
72
+ #
11
73
  module Waiters
12
74
 
13
75
  # Wait until the ProjectVersion is running.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-rekognition
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.34.0
4
+ version: 1.39.1
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-02-17 00:00:00.000000000 Z
11
+ date: 2020-06-11 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
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.5.2.3
85
+ rubygems_version: 2.7.6.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: AWS SDK for Ruby - Amazon Rekognition