aws-sdk-rekognition 1.80.0 → 1.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rekognition/client.rb +792 -110
- data/lib/aws-sdk-rekognition/client_api.rb +317 -0
- data/lib/aws-sdk-rekognition/endpoints.rb +99 -0
- data/lib/aws-sdk-rekognition/errors.rb +11 -0
- data/lib/aws-sdk-rekognition/plugins/endpoints.rb +14 -0
- data/lib/aws-sdk-rekognition/types.rb +665 -4
- data/lib/aws-sdk-rekognition.rb +2 -2
- metadata +2 -2
@@ -9,8 +9,23 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
module Aws::Rekognition
|
12
|
+
# @api private
|
12
13
|
module Endpoints
|
13
14
|
|
15
|
+
class AssociateFaces
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::Rekognition::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
14
29
|
class CompareFaces
|
15
30
|
def self.build(context)
|
16
31
|
unless context.config.regional_endpoint
|
@@ -123,6 +138,20 @@ module Aws::Rekognition
|
|
123
138
|
end
|
124
139
|
end
|
125
140
|
|
141
|
+
class CreateUser
|
142
|
+
def self.build(context)
|
143
|
+
unless context.config.regional_endpoint
|
144
|
+
endpoint = context.config.endpoint.to_s
|
145
|
+
end
|
146
|
+
Aws::Rekognition::EndpointParameters.new(
|
147
|
+
region: context.config.region,
|
148
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
149
|
+
use_fips: context.config.use_fips_endpoint,
|
150
|
+
endpoint: endpoint,
|
151
|
+
)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
126
155
|
class DeleteCollection
|
127
156
|
def self.build(context)
|
128
157
|
unless context.config.regional_endpoint
|
@@ -221,6 +250,20 @@ module Aws::Rekognition
|
|
221
250
|
end
|
222
251
|
end
|
223
252
|
|
253
|
+
class DeleteUser
|
254
|
+
def self.build(context)
|
255
|
+
unless context.config.regional_endpoint
|
256
|
+
endpoint = context.config.endpoint.to_s
|
257
|
+
end
|
258
|
+
Aws::Rekognition::EndpointParameters.new(
|
259
|
+
region: context.config.region,
|
260
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
261
|
+
use_fips: context.config.use_fips_endpoint,
|
262
|
+
endpoint: endpoint,
|
263
|
+
)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
224
267
|
class DescribeCollection
|
225
268
|
def self.build(context)
|
226
269
|
unless context.config.regional_endpoint
|
@@ -375,6 +418,20 @@ module Aws::Rekognition
|
|
375
418
|
end
|
376
419
|
end
|
377
420
|
|
421
|
+
class DisassociateFaces
|
422
|
+
def self.build(context)
|
423
|
+
unless context.config.regional_endpoint
|
424
|
+
endpoint = context.config.endpoint.to_s
|
425
|
+
end
|
426
|
+
Aws::Rekognition::EndpointParameters.new(
|
427
|
+
region: context.config.region,
|
428
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
429
|
+
use_fips: context.config.use_fips_endpoint,
|
430
|
+
endpoint: endpoint,
|
431
|
+
)
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
378
435
|
class DistributeDatasetEntries
|
379
436
|
def self.build(context)
|
380
437
|
unless context.config.regional_endpoint
|
@@ -641,6 +698,20 @@ module Aws::Rekognition
|
|
641
698
|
end
|
642
699
|
end
|
643
700
|
|
701
|
+
class ListUsers
|
702
|
+
def self.build(context)
|
703
|
+
unless context.config.regional_endpoint
|
704
|
+
endpoint = context.config.endpoint.to_s
|
705
|
+
end
|
706
|
+
Aws::Rekognition::EndpointParameters.new(
|
707
|
+
region: context.config.region,
|
708
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
709
|
+
use_fips: context.config.use_fips_endpoint,
|
710
|
+
endpoint: endpoint,
|
711
|
+
)
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
644
715
|
class PutProjectPolicy
|
645
716
|
def self.build(context)
|
646
717
|
unless context.config.regional_endpoint
|
@@ -697,6 +768,34 @@ module Aws::Rekognition
|
|
697
768
|
end
|
698
769
|
end
|
699
770
|
|
771
|
+
class SearchUsers
|
772
|
+
def self.build(context)
|
773
|
+
unless context.config.regional_endpoint
|
774
|
+
endpoint = context.config.endpoint.to_s
|
775
|
+
end
|
776
|
+
Aws::Rekognition::EndpointParameters.new(
|
777
|
+
region: context.config.region,
|
778
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
779
|
+
use_fips: context.config.use_fips_endpoint,
|
780
|
+
endpoint: endpoint,
|
781
|
+
)
|
782
|
+
end
|
783
|
+
end
|
784
|
+
|
785
|
+
class SearchUsersByImage
|
786
|
+
def self.build(context)
|
787
|
+
unless context.config.regional_endpoint
|
788
|
+
endpoint = context.config.endpoint.to_s
|
789
|
+
end
|
790
|
+
Aws::Rekognition::EndpointParameters.new(
|
791
|
+
region: context.config.region,
|
792
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
793
|
+
use_fips: context.config.use_fips_endpoint,
|
794
|
+
endpoint: endpoint,
|
795
|
+
)
|
796
|
+
end
|
797
|
+
end
|
798
|
+
|
700
799
|
class StartCelebrityRecognition
|
701
800
|
def self.build(context)
|
702
801
|
unless context.config.regional_endpoint
|
@@ -28,6 +28,7 @@ module Aws::Rekognition
|
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
30
|
# * {AccessDeniedException}
|
31
|
+
# * {ConflictException}
|
31
32
|
# * {HumanLoopQuotaExceededException}
|
32
33
|
# * {IdempotentParameterMismatchException}
|
33
34
|
# * {ImageTooLargeException}
|
@@ -65,6 +66,16 @@ module Aws::Rekognition
|
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
69
|
+
class ConflictException < ServiceError
|
70
|
+
|
71
|
+
# @param [Seahorse::Client::RequestContext] context
|
72
|
+
# @param [String] message
|
73
|
+
# @param [Aws::Rekognition::Types::ConflictException] data
|
74
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
75
|
+
super(context, message, data)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
68
79
|
class HumanLoopQuotaExceededException < ServiceError
|
69
80
|
|
70
81
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -56,6 +56,8 @@ module Aws::Rekognition
|
|
56
56
|
|
57
57
|
def parameters_for_operation(context)
|
58
58
|
case context.operation_name
|
59
|
+
when :associate_faces
|
60
|
+
Aws::Rekognition::Endpoints::AssociateFaces.build(context)
|
59
61
|
when :compare_faces
|
60
62
|
Aws::Rekognition::Endpoints::CompareFaces.build(context)
|
61
63
|
when :copy_project_version
|
@@ -72,6 +74,8 @@ module Aws::Rekognition
|
|
72
74
|
Aws::Rekognition::Endpoints::CreateProjectVersion.build(context)
|
73
75
|
when :create_stream_processor
|
74
76
|
Aws::Rekognition::Endpoints::CreateStreamProcessor.build(context)
|
77
|
+
when :create_user
|
78
|
+
Aws::Rekognition::Endpoints::CreateUser.build(context)
|
75
79
|
when :delete_collection
|
76
80
|
Aws::Rekognition::Endpoints::DeleteCollection.build(context)
|
77
81
|
when :delete_dataset
|
@@ -86,6 +90,8 @@ module Aws::Rekognition
|
|
86
90
|
Aws::Rekognition::Endpoints::DeleteProjectVersion.build(context)
|
87
91
|
when :delete_stream_processor
|
88
92
|
Aws::Rekognition::Endpoints::DeleteStreamProcessor.build(context)
|
93
|
+
when :delete_user
|
94
|
+
Aws::Rekognition::Endpoints::DeleteUser.build(context)
|
89
95
|
when :describe_collection
|
90
96
|
Aws::Rekognition::Endpoints::DescribeCollection.build(context)
|
91
97
|
when :describe_dataset
|
@@ -108,6 +114,8 @@ module Aws::Rekognition
|
|
108
114
|
Aws::Rekognition::Endpoints::DetectProtectiveEquipment.build(context)
|
109
115
|
when :detect_text
|
110
116
|
Aws::Rekognition::Endpoints::DetectText.build(context)
|
117
|
+
when :disassociate_faces
|
118
|
+
Aws::Rekognition::Endpoints::DisassociateFaces.build(context)
|
111
119
|
when :distribute_dataset_entries
|
112
120
|
Aws::Rekognition::Endpoints::DistributeDatasetEntries.build(context)
|
113
121
|
when :get_celebrity_info
|
@@ -146,6 +154,8 @@ module Aws::Rekognition
|
|
146
154
|
Aws::Rekognition::Endpoints::ListStreamProcessors.build(context)
|
147
155
|
when :list_tags_for_resource
|
148
156
|
Aws::Rekognition::Endpoints::ListTagsForResource.build(context)
|
157
|
+
when :list_users
|
158
|
+
Aws::Rekognition::Endpoints::ListUsers.build(context)
|
149
159
|
when :put_project_policy
|
150
160
|
Aws::Rekognition::Endpoints::PutProjectPolicy.build(context)
|
151
161
|
when :recognize_celebrities
|
@@ -154,6 +164,10 @@ module Aws::Rekognition
|
|
154
164
|
Aws::Rekognition::Endpoints::SearchFaces.build(context)
|
155
165
|
when :search_faces_by_image
|
156
166
|
Aws::Rekognition::Endpoints::SearchFacesByImage.build(context)
|
167
|
+
when :search_users
|
168
|
+
Aws::Rekognition::Endpoints::SearchUsers.build(context)
|
169
|
+
when :search_users_by_image
|
170
|
+
Aws::Rekognition::Endpoints::SearchUsersByImage.build(context)
|
157
171
|
when :start_celebrity_recognition
|
158
172
|
Aws::Rekognition::Endpoints::StartCelebrityRecognition.build(context)
|
159
173
|
when :start_content_moderation
|