aws-sdk-rekognition 1.34.0 → 1.35.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/lib/aws-sdk-rekognition.rb +7 -4
- data/lib/aws-sdk-rekognition/client.rb +61 -10
- data/lib/aws-sdk-rekognition/client_api.rb +32 -0
- data/lib/aws-sdk-rekognition/errors.rb +198 -0
- data/lib/aws-sdk-rekognition/resource.rb +7 -0
- data/lib/aws-sdk-rekognition/types.rb +78 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 514bc86c1903620e2d258dffacb5941df5161419
|
4
|
+
data.tar.gz: c31c7c73c983110607191ded3b24d42aa0f836ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61594bbf3f3f369ae31d5b02edd99135ebe2ba510646c5bbfd72e49a9e5022ddce2cac777e285368e02aef64829cba3407bf49ed88493ca863ec13767f479f78
|
7
|
+
data.tar.gz: 0a5762441557512743ab9eb93b3953743db65aedafd908d5936ccf6376f568d59849ceda6cb567ac5b91a10feaeb6e52cb1b4957ac0fbad7ac21bf71d8162317
|
data/lib/aws-sdk-rekognition.rb
CHANGED
@@ -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
|
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
|
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.
|
49
|
+
GEM_VERSION = '1.35.0'
|
47
50
|
|
48
51
|
end
|
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:rekognition)
|
31
31
|
|
32
32
|
module Aws::Rekognition
|
33
|
+
# An API client for Rekognition. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::Rekognition::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -108,6 +120,12 @@ module Aws::Rekognition
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::Rekognition
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -166,15 +188,29 @@ module Aws::Rekognition
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,26 @@ module Aws::Rekognition
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
233
|
+
# no retry mode is provided.
|
234
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
235
|
+
# This includes support for retry quotas, which limit the number of
|
236
|
+
# unsuccessful retries a client can make.
|
237
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
238
|
+
# functionality of `standard` mode along with automatic client side
|
239
|
+
# throttling. This is a provisional mode that may change behavior
|
240
|
+
# in the future.
|
190
241
|
#
|
191
242
|
# @option options [String] :secret_access_key
|
192
243
|
#
|
@@ -219,16 +270,16 @@ module Aws::Rekognition
|
|
219
270
|
# requests through. Formatted like 'http://proxy.com:123'.
|
220
271
|
#
|
221
272
|
# @option options [Float] :http_open_timeout (15) The number of
|
222
|
-
# seconds to wait when opening a HTTP session before
|
273
|
+
# seconds to wait when opening a HTTP session before raising a
|
223
274
|
# `Timeout::Error`.
|
224
275
|
#
|
225
276
|
# @option options [Integer] :http_read_timeout (60) The default
|
226
277
|
# number of seconds to wait for response data. This value can
|
227
278
|
# safely be set
|
228
|
-
# per-request on the session
|
279
|
+
# per-request on the session yielded by {#session_for}.
|
229
280
|
#
|
230
281
|
# @option options [Float] :http_idle_timeout (5) The number of
|
231
|
-
# seconds a connection is allowed to sit
|
282
|
+
# seconds a connection is allowed to sit idle before it is
|
232
283
|
# considered stale. Stale connections are closed and removed
|
233
284
|
# from the pool before making a request.
|
234
285
|
#
|
@@ -237,7 +288,7 @@ module Aws::Rekognition
|
|
237
288
|
# request body. This option has no effect unless the request has
|
238
289
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
239
290
|
# disables this behaviour. This value can safely be set per
|
240
|
-
# request on the session
|
291
|
+
# request on the session yielded by {#session_for}.
|
241
292
|
#
|
242
293
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
243
294
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -4505,7 +4556,7 @@ module Aws::Rekognition
|
|
4505
4556
|
params: params,
|
4506
4557
|
config: config)
|
4507
4558
|
context[:gem_name] = 'aws-sdk-rekognition'
|
4508
|
-
context[:gem_version] = '1.
|
4559
|
+
context[:gem_version] = '1.35.0'
|
4509
4560
|
Seahorse::Client::Request.new(handlers, context)
|
4510
4561
|
end
|
4511
4562
|
|
@@ -294,6 +294,8 @@ module Aws::Rekognition
|
|
294
294
|
VideoMetadata = Shapes::StructureShape.new(name: 'VideoMetadata')
|
295
295
|
VideoTooLargeException = Shapes::StructureShape.new(name: 'VideoTooLargeException')
|
296
296
|
|
297
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
298
|
+
|
297
299
|
AgeRange.add_member(:low, Shapes::ShapeRef.new(shape: UInteger, location_name: "Low"))
|
298
300
|
AgeRange.add_member(:high, Shapes::ShapeRef.new(shape: UInteger, location_name: "High"))
|
299
301
|
AgeRange.struct_class = Types::AgeRange
|
@@ -739,6 +741,8 @@ module Aws::Rekognition
|
|
739
741
|
HumanLoopQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "ServiceCode"))
|
740
742
|
HumanLoopQuotaExceededException.struct_class = Types::HumanLoopQuotaExceededException
|
741
743
|
|
744
|
+
IdempotentParameterMismatchException.struct_class = Types::IdempotentParameterMismatchException
|
745
|
+
|
742
746
|
Image.add_member(:bytes, Shapes::ShapeRef.new(shape: ImageBlob, location_name: "Bytes"))
|
743
747
|
Image.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "S3Object"))
|
744
748
|
Image.struct_class = Types::Image
|
@@ -747,6 +751,8 @@ module Aws::Rekognition
|
|
747
751
|
ImageQuality.add_member(:sharpness, Shapes::ShapeRef.new(shape: Float, location_name: "Sharpness"))
|
748
752
|
ImageQuality.struct_class = Types::ImageQuality
|
749
753
|
|
754
|
+
ImageTooLargeException.struct_class = Types::ImageTooLargeException
|
755
|
+
|
750
756
|
IndexFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
751
757
|
IndexFacesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
752
758
|
IndexFacesRequest.add_member(:external_image_id, Shapes::ShapeRef.new(shape: ExternalImageId, location_name: "ExternalImageId"))
|
@@ -767,6 +773,16 @@ module Aws::Rekognition
|
|
767
773
|
|
768
774
|
Instances.member = Shapes::ShapeRef.new(shape: Instance)
|
769
775
|
|
776
|
+
InternalServerError.struct_class = Types::InternalServerError
|
777
|
+
|
778
|
+
InvalidImageFormatException.struct_class = Types::InvalidImageFormatException
|
779
|
+
|
780
|
+
InvalidPaginationTokenException.struct_class = Types::InvalidPaginationTokenException
|
781
|
+
|
782
|
+
InvalidParameterException.struct_class = Types::InvalidParameterException
|
783
|
+
|
784
|
+
InvalidS3ObjectException.struct_class = Types::InvalidS3ObjectException
|
785
|
+
|
770
786
|
KinesisDataStream.add_member(:arn, Shapes::ShapeRef.new(shape: KinesisDataArn, location_name: "Arn"))
|
771
787
|
KinesisDataStream.struct_class = Types::KinesisDataStream
|
772
788
|
|
@@ -794,6 +810,8 @@ module Aws::Rekognition
|
|
794
810
|
|
795
811
|
Landmarks.member = Shapes::ShapeRef.new(shape: Landmark)
|
796
812
|
|
813
|
+
LimitExceededException.struct_class = Types::LimitExceededException
|
814
|
+
|
797
815
|
ListCollectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
798
816
|
ListCollectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
799
817
|
ListCollectionsRequest.struct_class = Types::ListCollectionsRequest
|
@@ -900,6 +918,8 @@ module Aws::Rekognition
|
|
900
918
|
|
901
919
|
ProjectVersionDescriptions.member = Shapes::ShapeRef.new(shape: ProjectVersionDescription)
|
902
920
|
|
921
|
+
ProvisionedThroughputExceededException.struct_class = Types::ProvisionedThroughputExceededException
|
922
|
+
|
903
923
|
Reasons.member = Shapes::ShapeRef.new(shape: Reason)
|
904
924
|
|
905
925
|
RecognizeCelebritiesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
@@ -915,6 +935,14 @@ module Aws::Rekognition
|
|
915
935
|
|
916
936
|
RegionsOfInterest.member = Shapes::ShapeRef.new(shape: RegionOfInterest)
|
917
937
|
|
938
|
+
ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
|
939
|
+
|
940
|
+
ResourceInUseException.struct_class = Types::ResourceInUseException
|
941
|
+
|
942
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
943
|
+
|
944
|
+
ResourceNotReadyException.struct_class = Types::ResourceNotReadyException
|
945
|
+
|
918
946
|
S3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "Bucket"))
|
919
947
|
S3Object.add_member(:name, Shapes::ShapeRef.new(shape: S3ObjectName, location_name: "Name"))
|
920
948
|
S3Object.add_member(:version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "Version"))
|
@@ -1090,6 +1118,8 @@ module Aws::Rekognition
|
|
1090
1118
|
|
1091
1119
|
TextDetectionResults.member = Shapes::ShapeRef.new(shape: TextDetectionResult)
|
1092
1120
|
|
1121
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
1122
|
+
|
1093
1123
|
TrainingData.add_member(:assets, Shapes::ShapeRef.new(shape: Assets, location_name: "Assets"))
|
1094
1124
|
TrainingData.struct_class = Types::TrainingData
|
1095
1125
|
|
@@ -1118,6 +1148,8 @@ module Aws::Rekognition
|
|
1118
1148
|
VideoMetadata.add_member(:frame_width, Shapes::ShapeRef.new(shape: ULong, location_name: "FrameWidth"))
|
1119
1149
|
VideoMetadata.struct_class = Types::VideoMetadata
|
1120
1150
|
|
1151
|
+
VideoTooLargeException.struct_class = Types::VideoTooLargeException
|
1152
|
+
|
1121
1153
|
|
1122
1154
|
# @api private
|
1123
1155
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -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,13 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Rekognition
|
9
|
+
# This class provides a resource oriented interface for Rekognition.
|
10
|
+
# To create a resource object:
|
11
|
+
# resource = Aws::Rekognition::Resource.new(region: 'us-west-2')
|
12
|
+
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
+
# If you do not pass +:client+, a default client will be constructed.
|
14
|
+
# client = Aws::Rekognition::Client.new(region: 'us-west-2')
|
15
|
+
# resource = Aws::Rekognition::Resource.new(client: client)
|
9
16
|
class Resource
|
10
17
|
|
11
18
|
# @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
|
@@ -2543,6 +2547,12 @@ module Aws::Rekognition
|
|
2543
2547
|
include Aws::Structure
|
2544
2548
|
end
|
2545
2549
|
|
2550
|
+
# A `ClientRequestToken` input parameter was reused with an operation,
|
2551
|
+
# but at least one of the other input parameters is different from the
|
2552
|
+
# previous call to the operation.
|
2553
|
+
#
|
2554
|
+
class IdempotentParameterMismatchException < Aws::EmptyStructure; end
|
2555
|
+
|
2546
2556
|
# Provides the input image either as bytes or an S3 object.
|
2547
2557
|
#
|
2548
2558
|
# You pass image bytes to an Amazon Rekognition API operation by using
|
@@ -2617,6 +2627,12 @@ module Aws::Rekognition
|
|
2617
2627
|
include Aws::Structure
|
2618
2628
|
end
|
2619
2629
|
|
2630
|
+
# The input image size exceeds the allowed limit. For more information,
|
2631
|
+
# see Limits in Amazon Rekognition in the Amazon Rekognition Developer
|
2632
|
+
# Guide.
|
2633
|
+
#
|
2634
|
+
class ImageTooLargeException < Aws::EmptyStructure; end
|
2635
|
+
|
2620
2636
|
# @note When making an API call, you may pass IndexFacesRequest
|
2621
2637
|
# data as a hash:
|
2622
2638
|
#
|
@@ -2791,6 +2807,28 @@ module Aws::Rekognition
|
|
2791
2807
|
include Aws::Structure
|
2792
2808
|
end
|
2793
2809
|
|
2810
|
+
# Amazon Rekognition experienced a service issue. Try your call again.
|
2811
|
+
#
|
2812
|
+
class InternalServerError < Aws::EmptyStructure; end
|
2813
|
+
|
2814
|
+
# The provided image format is not supported.
|
2815
|
+
#
|
2816
|
+
class InvalidImageFormatException < Aws::EmptyStructure; end
|
2817
|
+
|
2818
|
+
# Pagination token in the request is not valid.
|
2819
|
+
#
|
2820
|
+
class InvalidPaginationTokenException < Aws::EmptyStructure; end
|
2821
|
+
|
2822
|
+
# Input parameter violated a constraint. Validate your parameter before
|
2823
|
+
# calling the API operation again.
|
2824
|
+
#
|
2825
|
+
class InvalidParameterException < Aws::EmptyStructure; end
|
2826
|
+
|
2827
|
+
# Amazon Rekognition is unable to access the S3 object specified in the
|
2828
|
+
# request.
|
2829
|
+
#
|
2830
|
+
class InvalidS3ObjectException < Aws::EmptyStructure; end
|
2831
|
+
|
2794
2832
|
# The Kinesis data stream Amazon Rekognition to which the analysis
|
2795
2833
|
# results of a Amazon Rekognition stream processor are streamed. For
|
2796
2834
|
# more information, see CreateStreamProcessor in the Amazon Rekognition
|
@@ -2909,6 +2947,15 @@ module Aws::Rekognition
|
|
2909
2947
|
include Aws::Structure
|
2910
2948
|
end
|
2911
2949
|
|
2950
|
+
# An Amazon Rekognition service limit was exceeded. For example, if you
|
2951
|
+
# start too many Amazon Rekognition Video jobs concurrently, calls to
|
2952
|
+
# start operations (`StartLabelDetection`, for example) will raise a
|
2953
|
+
# `LimitExceededException` exception (HTTP status code: 400) until the
|
2954
|
+
# number of concurrently running jobs is below the Amazon Rekognition
|
2955
|
+
# service limit.
|
2956
|
+
#
|
2957
|
+
class LimitExceededException < Aws::EmptyStructure; end
|
2958
|
+
|
2912
2959
|
# @note When making an API call, you may pass ListCollectionsRequest
|
2913
2960
|
# data as a hash:
|
2914
2961
|
#
|
@@ -3385,6 +3432,11 @@ module Aws::Rekognition
|
|
3385
3432
|
include Aws::Structure
|
3386
3433
|
end
|
3387
3434
|
|
3435
|
+
# The number of requests exceeded your throughput limit. If you want to
|
3436
|
+
# increase this limit, contact Amazon Rekognition.
|
3437
|
+
#
|
3438
|
+
class ProvisionedThroughputExceededException < Aws::EmptyStructure; end
|
3439
|
+
|
3388
3440
|
# @note When making an API call, you may pass RecognizeCelebritiesRequest
|
3389
3441
|
# data as a hash:
|
3390
3442
|
#
|
@@ -3479,6 +3531,22 @@ module Aws::Rekognition
|
|
3479
3531
|
include Aws::Structure
|
3480
3532
|
end
|
3481
3533
|
|
3534
|
+
# A collection with the specified ID already exists.
|
3535
|
+
#
|
3536
|
+
class ResourceAlreadyExistsException < Aws::EmptyStructure; end
|
3537
|
+
|
3538
|
+
class ResourceInUseException < Aws::EmptyStructure; end
|
3539
|
+
|
3540
|
+
# The collection specified in the request cannot be found.
|
3541
|
+
#
|
3542
|
+
class ResourceNotFoundException < Aws::EmptyStructure; end
|
3543
|
+
|
3544
|
+
# The requested resource isn't ready. For example, this exception
|
3545
|
+
# occurs when you call `DetectCustomLabels` with a model version that
|
3546
|
+
# isn't deployed.
|
3547
|
+
#
|
3548
|
+
class ResourceNotReadyException < Aws::EmptyStructure; end
|
3549
|
+
|
3482
3550
|
# Provides the S3 bucket name and object name.
|
3483
3551
|
#
|
3484
3552
|
# The region for the S3 bucket containing the S3 object must match the
|
@@ -4598,6 +4666,11 @@ module Aws::Rekognition
|
|
4598
4666
|
include Aws::Structure
|
4599
4667
|
end
|
4600
4668
|
|
4669
|
+
# Amazon Rekognition is temporarily unable to process the request. Try
|
4670
|
+
# your call again.
|
4671
|
+
#
|
4672
|
+
class ThrottlingException < Aws::EmptyStructure; end
|
4673
|
+
|
4601
4674
|
# The dataset used for training.
|
4602
4675
|
#
|
4603
4676
|
# @note When making an API call, you may pass TrainingData
|
@@ -4742,5 +4815,10 @@ module Aws::Rekognition
|
|
4742
4815
|
include Aws::Structure
|
4743
4816
|
end
|
4744
4817
|
|
4818
|
+
# The file size or duration of the supplied media is too large. The
|
4819
|
+
# maximum file size is 10GB. The maximum duration is 6 hours.
|
4820
|
+
#
|
4821
|
+
class VideoTooLargeException < Aws::EmptyStructure; end
|
4822
|
+
|
4745
4823
|
end
|
4746
4824
|
end
|
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.
|
4
|
+
version: 1.35.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-
|
11
|
+
date: 2020-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|