aws-sdk-rekognition 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-rekognition.rb +1 -1
- data/lib/aws-sdk-rekognition/client.rb +958 -839
- data/lib/aws-sdk-rekognition/client_api.rb +514 -516
- data/lib/aws-sdk-rekognition/errors.rb +4 -13
- data/lib/aws-sdk-rekognition/resource.rb +12 -14
- data/lib/aws-sdk-rekognition/types.rb +1204 -1052
- metadata +2 -2
@@ -1,531 +1,529 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
8
|
+
module Aws::Rekognition
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
15
|
+
Attribute = Shapes::StringShape.new(name: 'Attribute')
|
16
|
+
Attributes = Shapes::ListShape.new(name: 'Attributes')
|
17
|
+
Beard = Shapes::StructureShape.new(name: 'Beard')
|
18
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
19
|
+
BoundingBox = Shapes::StructureShape.new(name: 'BoundingBox')
|
20
|
+
CollectionId = Shapes::StringShape.new(name: 'CollectionId')
|
21
|
+
CollectionIdList = Shapes::ListShape.new(name: 'CollectionIdList')
|
22
|
+
CompareFacesMatch = Shapes::StructureShape.new(name: 'CompareFacesMatch')
|
23
|
+
CompareFacesMatchList = Shapes::ListShape.new(name: 'CompareFacesMatchList')
|
24
|
+
CompareFacesRequest = Shapes::StructureShape.new(name: 'CompareFacesRequest')
|
25
|
+
CompareFacesResponse = Shapes::StructureShape.new(name: 'CompareFacesResponse')
|
26
|
+
ComparedFace = Shapes::StructureShape.new(name: 'ComparedFace')
|
27
|
+
ComparedSourceImageFace = Shapes::StructureShape.new(name: 'ComparedSourceImageFace')
|
28
|
+
CreateCollectionRequest = Shapes::StructureShape.new(name: 'CreateCollectionRequest')
|
29
|
+
CreateCollectionResponse = Shapes::StructureShape.new(name: 'CreateCollectionResponse')
|
30
|
+
Degree = Shapes::FloatShape.new(name: 'Degree')
|
31
|
+
DeleteCollectionRequest = Shapes::StructureShape.new(name: 'DeleteCollectionRequest')
|
32
|
+
DeleteCollectionResponse = Shapes::StructureShape.new(name: 'DeleteCollectionResponse')
|
33
|
+
DeleteFacesRequest = Shapes::StructureShape.new(name: 'DeleteFacesRequest')
|
34
|
+
DeleteFacesResponse = Shapes::StructureShape.new(name: 'DeleteFacesResponse')
|
35
|
+
DetectFacesRequest = Shapes::StructureShape.new(name: 'DetectFacesRequest')
|
36
|
+
DetectFacesResponse = Shapes::StructureShape.new(name: 'DetectFacesResponse')
|
37
|
+
DetectLabelsRequest = Shapes::StructureShape.new(name: 'DetectLabelsRequest')
|
38
|
+
DetectLabelsResponse = Shapes::StructureShape.new(name: 'DetectLabelsResponse')
|
39
|
+
Emotion = Shapes::StructureShape.new(name: 'Emotion')
|
40
|
+
EmotionName = Shapes::StringShape.new(name: 'EmotionName')
|
41
|
+
Emotions = Shapes::ListShape.new(name: 'Emotions')
|
42
|
+
ExternalImageId = Shapes::StringShape.new(name: 'ExternalImageId')
|
43
|
+
EyeOpen = Shapes::StructureShape.new(name: 'EyeOpen')
|
44
|
+
Eyeglasses = Shapes::StructureShape.new(name: 'Eyeglasses')
|
45
|
+
Face = Shapes::StructureShape.new(name: 'Face')
|
46
|
+
FaceDetail = Shapes::StructureShape.new(name: 'FaceDetail')
|
47
|
+
FaceDetailList = Shapes::ListShape.new(name: 'FaceDetailList')
|
48
|
+
FaceId = Shapes::StringShape.new(name: 'FaceId')
|
49
|
+
FaceIdList = Shapes::ListShape.new(name: 'FaceIdList')
|
50
|
+
FaceList = Shapes::ListShape.new(name: 'FaceList')
|
51
|
+
FaceMatch = Shapes::StructureShape.new(name: 'FaceMatch')
|
52
|
+
FaceMatchList = Shapes::ListShape.new(name: 'FaceMatchList')
|
53
|
+
FaceRecord = Shapes::StructureShape.new(name: 'FaceRecord')
|
54
|
+
FaceRecordList = Shapes::ListShape.new(name: 'FaceRecordList')
|
55
|
+
Float = Shapes::FloatShape.new(name: 'Float')
|
56
|
+
Gender = Shapes::StructureShape.new(name: 'Gender')
|
57
|
+
GenderType = Shapes::StringShape.new(name: 'GenderType')
|
58
|
+
Image = Shapes::StructureShape.new(name: 'Image')
|
59
|
+
ImageBlob = Shapes::BlobShape.new(name: 'ImageBlob')
|
60
|
+
ImageId = Shapes::StringShape.new(name: 'ImageId')
|
61
|
+
ImageQuality = Shapes::StructureShape.new(name: 'ImageQuality')
|
62
|
+
ImageTooLargeException = Shapes::StructureShape.new(name: 'ImageTooLargeException')
|
63
|
+
IndexFacesRequest = Shapes::StructureShape.new(name: 'IndexFacesRequest')
|
64
|
+
IndexFacesResponse = Shapes::StructureShape.new(name: 'IndexFacesResponse')
|
65
|
+
InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
|
66
|
+
InvalidImageFormatException = Shapes::StructureShape.new(name: 'InvalidImageFormatException')
|
67
|
+
InvalidPaginationTokenException = Shapes::StructureShape.new(name: 'InvalidPaginationTokenException')
|
68
|
+
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
69
|
+
InvalidS3ObjectException = Shapes::StructureShape.new(name: 'InvalidS3ObjectException')
|
70
|
+
Label = Shapes::StructureShape.new(name: 'Label')
|
71
|
+
Labels = Shapes::ListShape.new(name: 'Labels')
|
72
|
+
Landmark = Shapes::StructureShape.new(name: 'Landmark')
|
73
|
+
LandmarkType = Shapes::StringShape.new(name: 'LandmarkType')
|
74
|
+
Landmarks = Shapes::ListShape.new(name: 'Landmarks')
|
75
|
+
ListCollectionsRequest = Shapes::StructureShape.new(name: 'ListCollectionsRequest')
|
76
|
+
ListCollectionsResponse = Shapes::StructureShape.new(name: 'ListCollectionsResponse')
|
77
|
+
ListFacesRequest = Shapes::StructureShape.new(name: 'ListFacesRequest')
|
78
|
+
ListFacesResponse = Shapes::StructureShape.new(name: 'ListFacesResponse')
|
79
|
+
MaxFaces = Shapes::IntegerShape.new(name: 'MaxFaces')
|
80
|
+
MouthOpen = Shapes::StructureShape.new(name: 'MouthOpen')
|
81
|
+
Mustache = Shapes::StructureShape.new(name: 'Mustache')
|
82
|
+
OrientationCorrection = Shapes::StringShape.new(name: 'OrientationCorrection')
|
83
|
+
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
84
|
+
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
85
|
+
Percent = Shapes::FloatShape.new(name: 'Percent')
|
86
|
+
Pose = Shapes::StructureShape.new(name: 'Pose')
|
87
|
+
ProvisionedThroughputExceededException = Shapes::StructureShape.new(name: 'ProvisionedThroughputExceededException')
|
88
|
+
ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
|
89
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
90
|
+
S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
|
91
|
+
S3Object = Shapes::StructureShape.new(name: 'S3Object')
|
92
|
+
S3ObjectName = Shapes::StringShape.new(name: 'S3ObjectName')
|
93
|
+
S3ObjectVersion = Shapes::StringShape.new(name: 'S3ObjectVersion')
|
94
|
+
SearchFacesByImageRequest = Shapes::StructureShape.new(name: 'SearchFacesByImageRequest')
|
95
|
+
SearchFacesByImageResponse = Shapes::StructureShape.new(name: 'SearchFacesByImageResponse')
|
96
|
+
SearchFacesRequest = Shapes::StructureShape.new(name: 'SearchFacesRequest')
|
97
|
+
SearchFacesResponse = Shapes::StructureShape.new(name: 'SearchFacesResponse')
|
98
|
+
Smile = Shapes::StructureShape.new(name: 'Smile')
|
99
|
+
String = Shapes::StringShape.new(name: 'String')
|
100
|
+
Sunglasses = Shapes::StructureShape.new(name: 'Sunglasses')
|
101
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
102
|
+
UInteger = Shapes::IntegerShape.new(name: 'UInteger')
|
103
|
+
|
104
|
+
Attributes.member = Shapes::ShapeRef.new(shape: Attribute)
|
105
|
+
|
106
|
+
Beard.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
107
|
+
Beard.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
108
|
+
Beard.struct_class = Types::Beard
|
109
|
+
|
110
|
+
BoundingBox.add_member(:width, Shapes::ShapeRef.new(shape: Float, location_name: "Width"))
|
111
|
+
BoundingBox.add_member(:height, Shapes::ShapeRef.new(shape: Float, location_name: "Height"))
|
112
|
+
BoundingBox.add_member(:left, Shapes::ShapeRef.new(shape: Float, location_name: "Left"))
|
113
|
+
BoundingBox.add_member(:top, Shapes::ShapeRef.new(shape: Float, location_name: "Top"))
|
114
|
+
BoundingBox.struct_class = Types::BoundingBox
|
115
|
+
|
116
|
+
CollectionIdList.member = Shapes::ShapeRef.new(shape: CollectionId)
|
117
|
+
|
118
|
+
CompareFacesMatch.add_member(:similarity, Shapes::ShapeRef.new(shape: Percent, location_name: "Similarity"))
|
119
|
+
CompareFacesMatch.add_member(:face, Shapes::ShapeRef.new(shape: ComparedFace, location_name: "Face"))
|
120
|
+
CompareFacesMatch.struct_class = Types::CompareFacesMatch
|
121
|
+
|
122
|
+
CompareFacesMatchList.member = Shapes::ShapeRef.new(shape: CompareFacesMatch)
|
123
|
+
|
124
|
+
CompareFacesRequest.add_member(:source_image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "SourceImage"))
|
125
|
+
CompareFacesRequest.add_member(:target_image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "TargetImage"))
|
126
|
+
CompareFacesRequest.add_member(:similarity_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "SimilarityThreshold"))
|
127
|
+
CompareFacesRequest.struct_class = Types::CompareFacesRequest
|
128
|
+
|
129
|
+
CompareFacesResponse.add_member(:source_image_face, Shapes::ShapeRef.new(shape: ComparedSourceImageFace, location_name: "SourceImageFace"))
|
130
|
+
CompareFacesResponse.add_member(:face_matches, Shapes::ShapeRef.new(shape: CompareFacesMatchList, location_name: "FaceMatches"))
|
131
|
+
CompareFacesResponse.struct_class = Types::CompareFacesResponse
|
132
|
+
|
133
|
+
ComparedFace.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
134
|
+
ComparedFace.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
135
|
+
ComparedFace.struct_class = Types::ComparedFace
|
136
|
+
|
137
|
+
ComparedSourceImageFace.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
138
|
+
ComparedSourceImageFace.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
139
|
+
ComparedSourceImageFace.struct_class = Types::ComparedSourceImageFace
|
140
|
+
|
141
|
+
CreateCollectionRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
142
|
+
CreateCollectionRequest.struct_class = Types::CreateCollectionRequest
|
143
|
+
|
144
|
+
CreateCollectionResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: UInteger, location_name: "StatusCode"))
|
145
|
+
CreateCollectionResponse.add_member(:collection_arn, Shapes::ShapeRef.new(shape: String, location_name: "CollectionArn"))
|
146
|
+
CreateCollectionResponse.struct_class = Types::CreateCollectionResponse
|
147
|
+
|
148
|
+
DeleteCollectionRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
149
|
+
DeleteCollectionRequest.struct_class = Types::DeleteCollectionRequest
|
150
|
+
|
151
|
+
DeleteCollectionResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: UInteger, location_name: "StatusCode"))
|
152
|
+
DeleteCollectionResponse.struct_class = Types::DeleteCollectionResponse
|
153
|
+
|
154
|
+
DeleteFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
155
|
+
DeleteFacesRequest.add_member(:face_ids, Shapes::ShapeRef.new(shape: FaceIdList, required: true, location_name: "FaceIds"))
|
156
|
+
DeleteFacesRequest.struct_class = Types::DeleteFacesRequest
|
157
|
+
|
158
|
+
DeleteFacesResponse.add_member(:deleted_faces, Shapes::ShapeRef.new(shape: FaceIdList, location_name: "DeletedFaces"))
|
159
|
+
DeleteFacesResponse.struct_class = Types::DeleteFacesResponse
|
160
|
+
|
161
|
+
DetectFacesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
162
|
+
DetectFacesRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "Attributes"))
|
163
|
+
DetectFacesRequest.struct_class = Types::DetectFacesRequest
|
164
|
+
|
165
|
+
DetectFacesResponse.add_member(:face_details, Shapes::ShapeRef.new(shape: FaceDetailList, location_name: "FaceDetails"))
|
166
|
+
DetectFacesResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
|
167
|
+
DetectFacesResponse.struct_class = Types::DetectFacesResponse
|
168
|
+
|
169
|
+
DetectLabelsRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
170
|
+
DetectLabelsRequest.add_member(:max_labels, Shapes::ShapeRef.new(shape: UInteger, location_name: "MaxLabels"))
|
171
|
+
DetectLabelsRequest.add_member(:min_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MinConfidence"))
|
172
|
+
DetectLabelsRequest.struct_class = Types::DetectLabelsRequest
|
173
|
+
|
174
|
+
DetectLabelsResponse.add_member(:labels, Shapes::ShapeRef.new(shape: Labels, location_name: "Labels"))
|
175
|
+
DetectLabelsResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
|
176
|
+
DetectLabelsResponse.struct_class = Types::DetectLabelsResponse
|
177
|
+
|
178
|
+
Emotion.add_member(:type, Shapes::ShapeRef.new(shape: EmotionName, location_name: "Type"))
|
179
|
+
Emotion.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
180
|
+
Emotion.struct_class = Types::Emotion
|
181
|
+
|
182
|
+
Emotions.member = Shapes::ShapeRef.new(shape: Emotion)
|
183
|
+
|
184
|
+
EyeOpen.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
185
|
+
EyeOpen.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
186
|
+
EyeOpen.struct_class = Types::EyeOpen
|
187
|
+
|
188
|
+
Eyeglasses.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
189
|
+
Eyeglasses.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
190
|
+
Eyeglasses.struct_class = Types::Eyeglasses
|
191
|
+
|
192
|
+
Face.add_member(:face_id, Shapes::ShapeRef.new(shape: FaceId, location_name: "FaceId"))
|
193
|
+
Face.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
194
|
+
Face.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, location_name: "ImageId"))
|
195
|
+
Face.add_member(:external_image_id, Shapes::ShapeRef.new(shape: ExternalImageId, location_name: "ExternalImageId"))
|
196
|
+
Face.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
197
|
+
Face.struct_class = Types::Face
|
198
|
+
|
199
|
+
FaceDetail.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
200
|
+
FaceDetail.add_member(:smile, Shapes::ShapeRef.new(shape: Smile, location_name: "Smile"))
|
201
|
+
FaceDetail.add_member(:eyeglasses, Shapes::ShapeRef.new(shape: Eyeglasses, location_name: "Eyeglasses"))
|
202
|
+
FaceDetail.add_member(:sunglasses, Shapes::ShapeRef.new(shape: Sunglasses, location_name: "Sunglasses"))
|
203
|
+
FaceDetail.add_member(:gender, Shapes::ShapeRef.new(shape: Gender, location_name: "Gender"))
|
204
|
+
FaceDetail.add_member(:beard, Shapes::ShapeRef.new(shape: Beard, location_name: "Beard"))
|
205
|
+
FaceDetail.add_member(:mustache, Shapes::ShapeRef.new(shape: Mustache, location_name: "Mustache"))
|
206
|
+
FaceDetail.add_member(:eyes_open, Shapes::ShapeRef.new(shape: EyeOpen, location_name: "EyesOpen"))
|
207
|
+
FaceDetail.add_member(:mouth_open, Shapes::ShapeRef.new(shape: MouthOpen, location_name: "MouthOpen"))
|
208
|
+
FaceDetail.add_member(:emotions, Shapes::ShapeRef.new(shape: Emotions, location_name: "Emotions"))
|
209
|
+
FaceDetail.add_member(:landmarks, Shapes::ShapeRef.new(shape: Landmarks, location_name: "Landmarks"))
|
210
|
+
FaceDetail.add_member(:pose, Shapes::ShapeRef.new(shape: Pose, location_name: "Pose"))
|
211
|
+
FaceDetail.add_member(:quality, Shapes::ShapeRef.new(shape: ImageQuality, location_name: "Quality"))
|
212
|
+
FaceDetail.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
213
|
+
FaceDetail.struct_class = Types::FaceDetail
|
214
|
+
|
215
|
+
FaceDetailList.member = Shapes::ShapeRef.new(shape: FaceDetail)
|
216
|
+
|
217
|
+
FaceIdList.member = Shapes::ShapeRef.new(shape: FaceId)
|
218
|
+
|
219
|
+
FaceList.member = Shapes::ShapeRef.new(shape: Face)
|
220
|
+
|
221
|
+
FaceMatch.add_member(:similarity, Shapes::ShapeRef.new(shape: Percent, location_name: "Similarity"))
|
222
|
+
FaceMatch.add_member(:face, Shapes::ShapeRef.new(shape: Face, location_name: "Face"))
|
223
|
+
FaceMatch.struct_class = Types::FaceMatch
|
224
|
+
|
225
|
+
FaceMatchList.member = Shapes::ShapeRef.new(shape: FaceMatch)
|
226
|
+
|
227
|
+
FaceRecord.add_member(:face, Shapes::ShapeRef.new(shape: Face, location_name: "Face"))
|
228
|
+
FaceRecord.add_member(:face_detail, Shapes::ShapeRef.new(shape: FaceDetail, location_name: "FaceDetail"))
|
229
|
+
FaceRecord.struct_class = Types::FaceRecord
|
230
|
+
|
231
|
+
FaceRecordList.member = Shapes::ShapeRef.new(shape: FaceRecord)
|
232
|
+
|
233
|
+
Gender.add_member(:value, Shapes::ShapeRef.new(shape: GenderType, location_name: "Value"))
|
234
|
+
Gender.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
235
|
+
Gender.struct_class = Types::Gender
|
236
|
+
|
237
|
+
Image.add_member(:bytes, Shapes::ShapeRef.new(shape: ImageBlob, location_name: "Bytes"))
|
238
|
+
Image.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "S3Object"))
|
239
|
+
Image.struct_class = Types::Image
|
240
|
+
|
241
|
+
ImageQuality.add_member(:brightness, Shapes::ShapeRef.new(shape: Float, location_name: "Brightness"))
|
242
|
+
ImageQuality.add_member(:sharpness, Shapes::ShapeRef.new(shape: Float, location_name: "Sharpness"))
|
243
|
+
ImageQuality.struct_class = Types::ImageQuality
|
244
|
+
|
245
|
+
IndexFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
246
|
+
IndexFacesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
247
|
+
IndexFacesRequest.add_member(:external_image_id, Shapes::ShapeRef.new(shape: ExternalImageId, location_name: "ExternalImageId"))
|
248
|
+
IndexFacesRequest.add_member(:detection_attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "DetectionAttributes"))
|
249
|
+
IndexFacesRequest.struct_class = Types::IndexFacesRequest
|
199
250
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
251
|
+
IndexFacesResponse.add_member(:face_records, Shapes::ShapeRef.new(shape: FaceRecordList, location_name: "FaceRecords"))
|
252
|
+
IndexFacesResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
|
253
|
+
IndexFacesResponse.struct_class = Types::IndexFacesResponse
|
254
|
+
|
255
|
+
Label.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
256
|
+
Label.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
257
|
+
Label.struct_class = Types::Label
|
258
|
+
|
259
|
+
Labels.member = Shapes::ShapeRef.new(shape: Label)
|
260
|
+
|
261
|
+
Landmark.add_member(:type, Shapes::ShapeRef.new(shape: LandmarkType, location_name: "Type"))
|
262
|
+
Landmark.add_member(:x, Shapes::ShapeRef.new(shape: Float, location_name: "X"))
|
263
|
+
Landmark.add_member(:y, Shapes::ShapeRef.new(shape: Float, location_name: "Y"))
|
264
|
+
Landmark.struct_class = Types::Landmark
|
265
|
+
|
266
|
+
Landmarks.member = Shapes::ShapeRef.new(shape: Landmark)
|
267
|
+
|
268
|
+
ListCollectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
269
|
+
ListCollectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
270
|
+
ListCollectionsRequest.struct_class = Types::ListCollectionsRequest
|
271
|
+
|
272
|
+
ListCollectionsResponse.add_member(:collection_ids, Shapes::ShapeRef.new(shape: CollectionIdList, location_name: "CollectionIds"))
|
273
|
+
ListCollectionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
274
|
+
ListCollectionsResponse.struct_class = Types::ListCollectionsResponse
|
275
|
+
|
276
|
+
ListFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
277
|
+
ListFacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
278
|
+
ListFacesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
279
|
+
ListFacesRequest.struct_class = Types::ListFacesRequest
|
280
|
+
|
281
|
+
ListFacesResponse.add_member(:faces, Shapes::ShapeRef.new(shape: FaceList, location_name: "Faces"))
|
282
|
+
ListFacesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
283
|
+
ListFacesResponse.struct_class = Types::ListFacesResponse
|
284
|
+
|
285
|
+
MouthOpen.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
286
|
+
MouthOpen.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
287
|
+
MouthOpen.struct_class = Types::MouthOpen
|
288
|
+
|
289
|
+
Mustache.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
290
|
+
Mustache.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
291
|
+
Mustache.struct_class = Types::Mustache
|
292
|
+
|
293
|
+
Pose.add_member(:roll, Shapes::ShapeRef.new(shape: Degree, location_name: "Roll"))
|
294
|
+
Pose.add_member(:yaw, Shapes::ShapeRef.new(shape: Degree, location_name: "Yaw"))
|
295
|
+
Pose.add_member(:pitch, Shapes::ShapeRef.new(shape: Degree, location_name: "Pitch"))
|
296
|
+
Pose.struct_class = Types::Pose
|
297
|
+
|
298
|
+
S3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "Bucket"))
|
299
|
+
S3Object.add_member(:name, Shapes::ShapeRef.new(shape: S3ObjectName, location_name: "Name"))
|
300
|
+
S3Object.add_member(:version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "Version"))
|
301
|
+
S3Object.struct_class = Types::S3Object
|
215
302
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
FaceMatch.add_member(:similarity, Shapes::ShapeRef.new(shape: Percent, location_name: "Similarity"))
|
223
|
-
FaceMatch.add_member(:face, Shapes::ShapeRef.new(shape: Face, location_name: "Face"))
|
224
|
-
FaceMatch.struct_class = Types::FaceMatch
|
225
|
-
|
226
|
-
FaceMatchList.member = Shapes::ShapeRef.new(shape: FaceMatch)
|
227
|
-
|
228
|
-
FaceRecord.add_member(:face, Shapes::ShapeRef.new(shape: Face, location_name: "Face"))
|
229
|
-
FaceRecord.add_member(:face_detail, Shapes::ShapeRef.new(shape: FaceDetail, location_name: "FaceDetail"))
|
230
|
-
FaceRecord.struct_class = Types::FaceRecord
|
231
|
-
|
232
|
-
FaceRecordList.member = Shapes::ShapeRef.new(shape: FaceRecord)
|
303
|
+
SearchFacesByImageRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
304
|
+
SearchFacesByImageRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
305
|
+
SearchFacesByImageRequest.add_member(:max_faces, Shapes::ShapeRef.new(shape: MaxFaces, location_name: "MaxFaces"))
|
306
|
+
SearchFacesByImageRequest.add_member(:face_match_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "FaceMatchThreshold"))
|
307
|
+
SearchFacesByImageRequest.struct_class = Types::SearchFacesByImageRequest
|
233
308
|
|
234
|
-
|
235
|
-
|
236
|
-
|
309
|
+
SearchFacesByImageResponse.add_member(:searched_face_bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "SearchedFaceBoundingBox"))
|
310
|
+
SearchFacesByImageResponse.add_member(:searched_face_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "SearchedFaceConfidence"))
|
311
|
+
SearchFacesByImageResponse.add_member(:face_matches, Shapes::ShapeRef.new(shape: FaceMatchList, location_name: "FaceMatches"))
|
312
|
+
SearchFacesByImageResponse.struct_class = Types::SearchFacesByImageResponse
|
237
313
|
|
238
|
-
|
239
|
-
|
240
|
-
|
314
|
+
SearchFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
315
|
+
SearchFacesRequest.add_member(:face_id, Shapes::ShapeRef.new(shape: FaceId, required: true, location_name: "FaceId"))
|
316
|
+
SearchFacesRequest.add_member(:max_faces, Shapes::ShapeRef.new(shape: MaxFaces, location_name: "MaxFaces"))
|
317
|
+
SearchFacesRequest.add_member(:face_match_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "FaceMatchThreshold"))
|
318
|
+
SearchFacesRequest.struct_class = Types::SearchFacesRequest
|
241
319
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
IndexFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
247
|
-
IndexFacesRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
248
|
-
IndexFacesRequest.add_member(:external_image_id, Shapes::ShapeRef.new(shape: ExternalImageId, location_name: "ExternalImageId"))
|
249
|
-
IndexFacesRequest.add_member(:detection_attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "DetectionAttributes"))
|
250
|
-
IndexFacesRequest.struct_class = Types::IndexFacesRequest
|
251
|
-
|
252
|
-
IndexFacesResponse.add_member(:face_records, Shapes::ShapeRef.new(shape: FaceRecordList, location_name: "FaceRecords"))
|
253
|
-
IndexFacesResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
|
254
|
-
IndexFacesResponse.struct_class = Types::IndexFacesResponse
|
255
|
-
|
256
|
-
Label.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
257
|
-
Label.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
258
|
-
Label.struct_class = Types::Label
|
259
|
-
|
260
|
-
Labels.member = Shapes::ShapeRef.new(shape: Label)
|
261
|
-
|
262
|
-
Landmark.add_member(:type, Shapes::ShapeRef.new(shape: LandmarkType, location_name: "Type"))
|
263
|
-
Landmark.add_member(:x, Shapes::ShapeRef.new(shape: Float, location_name: "X"))
|
264
|
-
Landmark.add_member(:y, Shapes::ShapeRef.new(shape: Float, location_name: "Y"))
|
265
|
-
Landmark.struct_class = Types::Landmark
|
266
|
-
|
267
|
-
Landmarks.member = Shapes::ShapeRef.new(shape: Landmark)
|
268
|
-
|
269
|
-
ListCollectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
270
|
-
ListCollectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
271
|
-
ListCollectionsRequest.struct_class = Types::ListCollectionsRequest
|
272
|
-
|
273
|
-
ListCollectionsResponse.add_member(:collection_ids, Shapes::ShapeRef.new(shape: CollectionIdList, location_name: "CollectionIds"))
|
274
|
-
ListCollectionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
275
|
-
ListCollectionsResponse.struct_class = Types::ListCollectionsResponse
|
276
|
-
|
277
|
-
ListFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
278
|
-
ListFacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
279
|
-
ListFacesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
280
|
-
ListFacesRequest.struct_class = Types::ListFacesRequest
|
281
|
-
|
282
|
-
ListFacesResponse.add_member(:faces, Shapes::ShapeRef.new(shape: FaceList, location_name: "Faces"))
|
283
|
-
ListFacesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
284
|
-
ListFacesResponse.struct_class = Types::ListFacesResponse
|
285
|
-
|
286
|
-
MouthOpen.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
287
|
-
MouthOpen.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
288
|
-
MouthOpen.struct_class = Types::MouthOpen
|
289
|
-
|
290
|
-
Mustache.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
291
|
-
Mustache.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
292
|
-
Mustache.struct_class = Types::Mustache
|
293
|
-
|
294
|
-
Pose.add_member(:roll, Shapes::ShapeRef.new(shape: Degree, location_name: "Roll"))
|
295
|
-
Pose.add_member(:yaw, Shapes::ShapeRef.new(shape: Degree, location_name: "Yaw"))
|
296
|
-
Pose.add_member(:pitch, Shapes::ShapeRef.new(shape: Degree, location_name: "Pitch"))
|
297
|
-
Pose.struct_class = Types::Pose
|
298
|
-
|
299
|
-
S3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "Bucket"))
|
300
|
-
S3Object.add_member(:name, Shapes::ShapeRef.new(shape: S3ObjectName, location_name: "Name"))
|
301
|
-
S3Object.add_member(:version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "Version"))
|
302
|
-
S3Object.struct_class = Types::S3Object
|
303
|
-
|
304
|
-
SearchFacesByImageRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
305
|
-
SearchFacesByImageRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
306
|
-
SearchFacesByImageRequest.add_member(:max_faces, Shapes::ShapeRef.new(shape: MaxFaces, location_name: "MaxFaces"))
|
307
|
-
SearchFacesByImageRequest.add_member(:face_match_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "FaceMatchThreshold"))
|
308
|
-
SearchFacesByImageRequest.struct_class = Types::SearchFacesByImageRequest
|
309
|
-
|
310
|
-
SearchFacesByImageResponse.add_member(:searched_face_bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "SearchedFaceBoundingBox"))
|
311
|
-
SearchFacesByImageResponse.add_member(:searched_face_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "SearchedFaceConfidence"))
|
312
|
-
SearchFacesByImageResponse.add_member(:face_matches, Shapes::ShapeRef.new(shape: FaceMatchList, location_name: "FaceMatches"))
|
313
|
-
SearchFacesByImageResponse.struct_class = Types::SearchFacesByImageResponse
|
314
|
-
|
315
|
-
SearchFacesRequest.add_member(:collection_id, Shapes::ShapeRef.new(shape: CollectionId, required: true, location_name: "CollectionId"))
|
316
|
-
SearchFacesRequest.add_member(:face_id, Shapes::ShapeRef.new(shape: FaceId, required: true, location_name: "FaceId"))
|
317
|
-
SearchFacesRequest.add_member(:max_faces, Shapes::ShapeRef.new(shape: MaxFaces, location_name: "MaxFaces"))
|
318
|
-
SearchFacesRequest.add_member(:face_match_threshold, Shapes::ShapeRef.new(shape: Percent, location_name: "FaceMatchThreshold"))
|
319
|
-
SearchFacesRequest.struct_class = Types::SearchFacesRequest
|
320
|
-
|
321
|
-
SearchFacesResponse.add_member(:searched_face_id, Shapes::ShapeRef.new(shape: FaceId, location_name: "SearchedFaceId"))
|
322
|
-
SearchFacesResponse.add_member(:face_matches, Shapes::ShapeRef.new(shape: FaceMatchList, location_name: "FaceMatches"))
|
323
|
-
SearchFacesResponse.struct_class = Types::SearchFacesResponse
|
324
|
-
|
325
|
-
Smile.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
326
|
-
Smile.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
327
|
-
Smile.struct_class = Types::Smile
|
328
|
-
|
329
|
-
Sunglasses.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
330
|
-
Sunglasses.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
331
|
-
Sunglasses.struct_class = Types::Sunglasses
|
332
|
-
|
333
|
-
|
334
|
-
# @api private
|
335
|
-
API = Seahorse::Model::Api.new.tap do |api|
|
336
|
-
|
337
|
-
api.version = "2016-06-27"
|
338
|
-
|
339
|
-
api.metadata = {
|
340
|
-
"endpointPrefix" => "rekognition",
|
341
|
-
"jsonVersion" => "1.1",
|
342
|
-
"protocol" => "json",
|
343
|
-
"serviceFullName" => "Amazon Rekognition",
|
344
|
-
"signatureVersion" => "v4",
|
345
|
-
"targetPrefix" => "RekognitionService",
|
346
|
-
}
|
347
|
-
|
348
|
-
api.add_operation(:compare_faces, Seahorse::Model::Operation.new.tap do |o|
|
349
|
-
o.name = "CompareFaces"
|
350
|
-
o.http_method = "POST"
|
351
|
-
o.http_request_uri = "/"
|
352
|
-
o.input = Shapes::ShapeRef.new(shape: CompareFacesRequest)
|
353
|
-
o.output = Shapes::ShapeRef.new(shape: CompareFacesResponse)
|
354
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
355
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
356
|
-
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
357
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
358
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
359
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
360
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
361
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
362
|
-
end)
|
363
|
-
|
364
|
-
api.add_operation(:create_collection, Seahorse::Model::Operation.new.tap do |o|
|
365
|
-
o.name = "CreateCollection"
|
366
|
-
o.http_method = "POST"
|
367
|
-
o.http_request_uri = "/"
|
368
|
-
o.input = Shapes::ShapeRef.new(shape: CreateCollectionRequest)
|
369
|
-
o.output = Shapes::ShapeRef.new(shape: CreateCollectionResponse)
|
370
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
371
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
372
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
373
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
374
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
375
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
376
|
-
end)
|
377
|
-
|
378
|
-
api.add_operation(:delete_collection, Seahorse::Model::Operation.new.tap do |o|
|
379
|
-
o.name = "DeleteCollection"
|
380
|
-
o.http_method = "POST"
|
381
|
-
o.http_request_uri = "/"
|
382
|
-
o.input = Shapes::ShapeRef.new(shape: DeleteCollectionRequest)
|
383
|
-
o.output = Shapes::ShapeRef.new(shape: DeleteCollectionResponse)
|
384
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
385
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
386
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
387
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
388
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
389
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
390
|
-
end)
|
391
|
-
|
392
|
-
api.add_operation(:delete_faces, Seahorse::Model::Operation.new.tap do |o|
|
393
|
-
o.name = "DeleteFaces"
|
394
|
-
o.http_method = "POST"
|
395
|
-
o.http_request_uri = "/"
|
396
|
-
o.input = Shapes::ShapeRef.new(shape: DeleteFacesRequest)
|
397
|
-
o.output = Shapes::ShapeRef.new(shape: DeleteFacesResponse)
|
398
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
399
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
400
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
401
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
402
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
403
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
404
|
-
end)
|
405
|
-
|
406
|
-
api.add_operation(:detect_faces, Seahorse::Model::Operation.new.tap do |o|
|
407
|
-
o.name = "DetectFaces"
|
408
|
-
o.http_method = "POST"
|
409
|
-
o.http_request_uri = "/"
|
410
|
-
o.input = Shapes::ShapeRef.new(shape: DetectFacesRequest)
|
411
|
-
o.output = Shapes::ShapeRef.new(shape: DetectFacesResponse)
|
412
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
413
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
414
|
-
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
415
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
416
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
417
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
418
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
419
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
420
|
-
end)
|
421
|
-
|
422
|
-
api.add_operation(:detect_labels, Seahorse::Model::Operation.new.tap do |o|
|
423
|
-
o.name = "DetectLabels"
|
424
|
-
o.http_method = "POST"
|
425
|
-
o.http_request_uri = "/"
|
426
|
-
o.input = Shapes::ShapeRef.new(shape: DetectLabelsRequest)
|
427
|
-
o.output = Shapes::ShapeRef.new(shape: DetectLabelsResponse)
|
428
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
429
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
430
|
-
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
431
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
432
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
433
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
434
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
435
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
436
|
-
end)
|
437
|
-
|
438
|
-
api.add_operation(:index_faces, Seahorse::Model::Operation.new.tap do |o|
|
439
|
-
o.name = "IndexFaces"
|
440
|
-
o.http_method = "POST"
|
441
|
-
o.http_request_uri = "/"
|
442
|
-
o.input = Shapes::ShapeRef.new(shape: IndexFacesRequest)
|
443
|
-
o.output = Shapes::ShapeRef.new(shape: IndexFacesResponse)
|
444
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
445
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
446
|
-
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
447
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
448
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
449
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
450
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
451
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
452
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
453
|
-
end)
|
454
|
-
|
455
|
-
api.add_operation(:list_collections, Seahorse::Model::Operation.new.tap do |o|
|
456
|
-
o.name = "ListCollections"
|
457
|
-
o.http_method = "POST"
|
458
|
-
o.http_request_uri = "/"
|
459
|
-
o.input = Shapes::ShapeRef.new(shape: ListCollectionsRequest)
|
460
|
-
o.output = Shapes::ShapeRef.new(shape: ListCollectionsResponse)
|
461
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
462
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
463
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
464
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
465
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
466
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationTokenException)
|
467
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
468
|
-
o[:pager] = Aws::Pager.new(
|
469
|
-
limit_key: "max_results",
|
470
|
-
tokens: {
|
471
|
-
"next_token" => "next_token"
|
472
|
-
}
|
473
|
-
)
|
474
|
-
end)
|
475
|
-
|
476
|
-
api.add_operation(:list_faces, Seahorse::Model::Operation.new.tap do |o|
|
477
|
-
o.name = "ListFaces"
|
478
|
-
o.http_method = "POST"
|
479
|
-
o.http_request_uri = "/"
|
480
|
-
o.input = Shapes::ShapeRef.new(shape: ListFacesRequest)
|
481
|
-
o.output = Shapes::ShapeRef.new(shape: ListFacesResponse)
|
482
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
483
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
484
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
485
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
486
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
487
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationTokenException)
|
488
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
489
|
-
o[:pager] = Aws::Pager.new(
|
490
|
-
limit_key: "max_results",
|
491
|
-
tokens: {
|
492
|
-
"next_token" => "next_token"
|
493
|
-
}
|
494
|
-
)
|
495
|
-
end)
|
496
|
-
|
497
|
-
api.add_operation(:search_faces, Seahorse::Model::Operation.new.tap do |o|
|
498
|
-
o.name = "SearchFaces"
|
499
|
-
o.http_method = "POST"
|
500
|
-
o.http_request_uri = "/"
|
501
|
-
o.input = Shapes::ShapeRef.new(shape: SearchFacesRequest)
|
502
|
-
o.output = Shapes::ShapeRef.new(shape: SearchFacesResponse)
|
503
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
504
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
505
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
506
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
507
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
508
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
509
|
-
end)
|
510
|
-
|
511
|
-
api.add_operation(:search_faces_by_image, Seahorse::Model::Operation.new.tap do |o|
|
512
|
-
o.name = "SearchFacesByImage"
|
513
|
-
o.http_method = "POST"
|
514
|
-
o.http_request_uri = "/"
|
515
|
-
o.input = Shapes::ShapeRef.new(shape: SearchFacesByImageRequest)
|
516
|
-
o.output = Shapes::ShapeRef.new(shape: SearchFacesByImageResponse)
|
517
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
518
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
519
|
-
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
520
|
-
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
521
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
522
|
-
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
523
|
-
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
524
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
525
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
526
|
-
end)
|
527
|
-
end
|
320
|
+
SearchFacesResponse.add_member(:searched_face_id, Shapes::ShapeRef.new(shape: FaceId, location_name: "SearchedFaceId"))
|
321
|
+
SearchFacesResponse.add_member(:face_matches, Shapes::ShapeRef.new(shape: FaceMatchList, location_name: "FaceMatches"))
|
322
|
+
SearchFacesResponse.struct_class = Types::SearchFacesResponse
|
528
323
|
|
324
|
+
Smile.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
325
|
+
Smile.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
326
|
+
Smile.struct_class = Types::Smile
|
327
|
+
|
328
|
+
Sunglasses.add_member(:value, Shapes::ShapeRef.new(shape: Boolean, location_name: "Value"))
|
329
|
+
Sunglasses.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
330
|
+
Sunglasses.struct_class = Types::Sunglasses
|
331
|
+
|
332
|
+
|
333
|
+
# @api private
|
334
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
335
|
+
|
336
|
+
api.version = "2016-06-27"
|
337
|
+
|
338
|
+
api.metadata = {
|
339
|
+
"endpointPrefix" => "rekognition",
|
340
|
+
"jsonVersion" => "1.1",
|
341
|
+
"protocol" => "json",
|
342
|
+
"serviceFullName" => "Amazon Rekognition",
|
343
|
+
"signatureVersion" => "v4",
|
344
|
+
"targetPrefix" => "RekognitionService",
|
345
|
+
}
|
346
|
+
|
347
|
+
api.add_operation(:compare_faces, Seahorse::Model::Operation.new.tap do |o|
|
348
|
+
o.name = "CompareFaces"
|
349
|
+
o.http_method = "POST"
|
350
|
+
o.http_request_uri = "/"
|
351
|
+
o.input = Shapes::ShapeRef.new(shape: CompareFacesRequest)
|
352
|
+
o.output = Shapes::ShapeRef.new(shape: CompareFacesResponse)
|
353
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
354
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
355
|
+
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
356
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
357
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
358
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
359
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
360
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
361
|
+
end)
|
362
|
+
|
363
|
+
api.add_operation(:create_collection, Seahorse::Model::Operation.new.tap do |o|
|
364
|
+
o.name = "CreateCollection"
|
365
|
+
o.http_method = "POST"
|
366
|
+
o.http_request_uri = "/"
|
367
|
+
o.input = Shapes::ShapeRef.new(shape: CreateCollectionRequest)
|
368
|
+
o.output = Shapes::ShapeRef.new(shape: CreateCollectionResponse)
|
369
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
370
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
371
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
372
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
373
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
374
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
375
|
+
end)
|
376
|
+
|
377
|
+
api.add_operation(:delete_collection, Seahorse::Model::Operation.new.tap do |o|
|
378
|
+
o.name = "DeleteCollection"
|
379
|
+
o.http_method = "POST"
|
380
|
+
o.http_request_uri = "/"
|
381
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteCollectionRequest)
|
382
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteCollectionResponse)
|
383
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
385
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
386
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
387
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
388
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
389
|
+
end)
|
390
|
+
|
391
|
+
api.add_operation(:delete_faces, Seahorse::Model::Operation.new.tap do |o|
|
392
|
+
o.name = "DeleteFaces"
|
393
|
+
o.http_method = "POST"
|
394
|
+
o.http_request_uri = "/"
|
395
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteFacesRequest)
|
396
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteFacesResponse)
|
397
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
398
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
399
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
400
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
401
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
402
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
403
|
+
end)
|
404
|
+
|
405
|
+
api.add_operation(:detect_faces, Seahorse::Model::Operation.new.tap do |o|
|
406
|
+
o.name = "DetectFaces"
|
407
|
+
o.http_method = "POST"
|
408
|
+
o.http_request_uri = "/"
|
409
|
+
o.input = Shapes::ShapeRef.new(shape: DetectFacesRequest)
|
410
|
+
o.output = Shapes::ShapeRef.new(shape: DetectFacesResponse)
|
411
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
412
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
413
|
+
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
414
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
415
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
416
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
417
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
418
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
419
|
+
end)
|
420
|
+
|
421
|
+
api.add_operation(:detect_labels, Seahorse::Model::Operation.new.tap do |o|
|
422
|
+
o.name = "DetectLabels"
|
423
|
+
o.http_method = "POST"
|
424
|
+
o.http_request_uri = "/"
|
425
|
+
o.input = Shapes::ShapeRef.new(shape: DetectLabelsRequest)
|
426
|
+
o.output = Shapes::ShapeRef.new(shape: DetectLabelsResponse)
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
428
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
429
|
+
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
430
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
431
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
432
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
433
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
434
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
435
|
+
end)
|
436
|
+
|
437
|
+
api.add_operation(:index_faces, Seahorse::Model::Operation.new.tap do |o|
|
438
|
+
o.name = "IndexFaces"
|
439
|
+
o.http_method = "POST"
|
440
|
+
o.http_request_uri = "/"
|
441
|
+
o.input = Shapes::ShapeRef.new(shape: IndexFacesRequest)
|
442
|
+
o.output = Shapes::ShapeRef.new(shape: IndexFacesResponse)
|
443
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
445
|
+
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
446
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
447
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
448
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
449
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
452
|
+
end)
|
453
|
+
|
454
|
+
api.add_operation(:list_collections, Seahorse::Model::Operation.new.tap do |o|
|
455
|
+
o.name = "ListCollections"
|
456
|
+
o.http_method = "POST"
|
457
|
+
o.http_request_uri = "/"
|
458
|
+
o.input = Shapes::ShapeRef.new(shape: ListCollectionsRequest)
|
459
|
+
o.output = Shapes::ShapeRef.new(shape: ListCollectionsResponse)
|
460
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
461
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
462
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
463
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
464
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
465
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationTokenException)
|
466
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
467
|
+
o[:pager] = Aws::Pager.new(
|
468
|
+
limit_key: "max_results",
|
469
|
+
tokens: {
|
470
|
+
"next_token" => "next_token"
|
471
|
+
}
|
472
|
+
)
|
473
|
+
end)
|
474
|
+
|
475
|
+
api.add_operation(:list_faces, Seahorse::Model::Operation.new.tap do |o|
|
476
|
+
o.name = "ListFaces"
|
477
|
+
o.http_method = "POST"
|
478
|
+
o.http_request_uri = "/"
|
479
|
+
o.input = Shapes::ShapeRef.new(shape: ListFacesRequest)
|
480
|
+
o.output = Shapes::ShapeRef.new(shape: ListFacesResponse)
|
481
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
482
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
483
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
484
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPaginationTokenException)
|
487
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
488
|
+
o[:pager] = Aws::Pager.new(
|
489
|
+
limit_key: "max_results",
|
490
|
+
tokens: {
|
491
|
+
"next_token" => "next_token"
|
492
|
+
}
|
493
|
+
)
|
494
|
+
end)
|
495
|
+
|
496
|
+
api.add_operation(:search_faces, Seahorse::Model::Operation.new.tap do |o|
|
497
|
+
o.name = "SearchFaces"
|
498
|
+
o.http_method = "POST"
|
499
|
+
o.http_request_uri = "/"
|
500
|
+
o.input = Shapes::ShapeRef.new(shape: SearchFacesRequest)
|
501
|
+
o.output = Shapes::ShapeRef.new(shape: SearchFacesResponse)
|
502
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
503
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
504
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
505
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
506
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
507
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
508
|
+
end)
|
509
|
+
|
510
|
+
api.add_operation(:search_faces_by_image, Seahorse::Model::Operation.new.tap do |o|
|
511
|
+
o.name = "SearchFacesByImage"
|
512
|
+
o.http_method = "POST"
|
513
|
+
o.http_request_uri = "/"
|
514
|
+
o.input = Shapes::ShapeRef.new(shape: SearchFacesByImageRequest)
|
515
|
+
o.output = Shapes::ShapeRef.new(shape: SearchFacesByImageResponse)
|
516
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
517
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
518
|
+
o.errors << Shapes::ShapeRef.new(shape: ImageTooLargeException)
|
519
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
520
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
521
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
522
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
523
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
524
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidImageFormatException)
|
525
|
+
end)
|
529
526
|
end
|
527
|
+
|
530
528
|
end
|
531
529
|
end
|