Skip to content

Commit dca911b

Browse files
Adds support for defining an ordered preference list of different Rekognition Face Liveness challenge types when calling CreateFaceLivenessSession.
1 parent 6a9875b commit dca911b

27 files changed

+1399
-733
lines changed

generator/ServiceModels/rekognition/rekognition-2016-06-27.api.json

Lines changed: 80 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,8 +1428,7 @@
14281428
"shapes":{
14291429
"AccessDeniedException":{
14301430
"type":"structure",
1431-
"members":{
1432-
},
1431+
"members":{},
14331432
"exception":true
14341433
},
14351434
"AgeRange":{
@@ -1632,6 +1631,36 @@
16321631
"type":"list",
16331632
"member":{"shape":"CelebrityRecognition"}
16341633
},
1634+
"Challenge":{
1635+
"type":"structure",
1636+
"required":[
1637+
"Type",
1638+
"Version"
1639+
],
1640+
"members":{
1641+
"Type":{"shape":"ChallengeType"},
1642+
"Version":{"shape":"Version"}
1643+
}
1644+
},
1645+
"ChallengePreference":{
1646+
"type":"structure",
1647+
"required":["Type"],
1648+
"members":{
1649+
"Type":{"shape":"ChallengeType"},
1650+
"Versions":{"shape":"Versions"}
1651+
}
1652+
},
1653+
"ChallengePreferences":{
1654+
"type":"list",
1655+
"member":{"shape":"ChallengePreference"}
1656+
},
1657+
"ChallengeType":{
1658+
"type":"string",
1659+
"enum":[
1660+
"FaceMovementAndLightChallenge",
1661+
"FaceMovementChallenge"
1662+
]
1663+
},
16351664
"ClientRequestToken":{
16361665
"type":"string",
16371666
"max":64,
@@ -1711,8 +1740,7 @@
17111740
},
17121741
"ConflictException":{
17131742
"type":"structure",
1714-
"members":{
1715-
},
1743+
"members":{},
17161744
"exception":true
17171745
},
17181746
"ConnectedHomeLabel":{"type":"string"},
@@ -1870,7 +1898,8 @@
18701898
"type":"structure",
18711899
"members":{
18721900
"OutputConfig":{"shape":"LivenessOutputConfig"},
1873-
"AuditImagesLimit":{"shape":"AuditImagesLimit"}
1901+
"AuditImagesLimit":{"shape":"AuditImagesLimit"},
1902+
"ChallengePreferences":{"shape":"ChallengePreferences"}
18741903
}
18751904
},
18761905
"CreateFaceLivenessSessionResponse":{
@@ -1966,8 +1995,7 @@
19661995
},
19671996
"CreateUserResponse":{
19681997
"type":"structure",
1969-
"members":{
1970-
}
1998+
"members":{}
19711999
},
19722000
"CustomLabel":{
19732001
"type":"structure",
@@ -2156,8 +2184,7 @@
21562184
},
21572185
"DeleteDatasetResponse":{
21582186
"type":"structure",
2159-
"members":{
2160-
}
2187+
"members":{}
21612188
},
21622189
"DeleteFacesRequest":{
21632190
"type":"structure",
@@ -2191,8 +2218,7 @@
21912218
},
21922219
"DeleteProjectPolicyResponse":{
21932220
"type":"structure",
2194-
"members":{
2195-
}
2221+
"members":{}
21962222
},
21972223
"DeleteProjectRequest":{
21982224
"type":"structure",
@@ -2229,8 +2255,7 @@
22292255
},
22302256
"DeleteStreamProcessorResponse":{
22312257
"type":"structure",
2232-
"members":{
2233-
}
2258+
"members":{}
22342259
},
22352260
"DeleteUserRequest":{
22362261
"type":"structure",
@@ -2249,8 +2274,7 @@
22492274
},
22502275
"DeleteUserResponse":{
22512276
"type":"structure",
2252-
"members":{
2253-
}
2277+
"members":{}
22542278
},
22552279
"DescribeCollectionRequest":{
22562280
"type":"structure",
@@ -2576,8 +2600,7 @@
25762600
},
25772601
"DistributeDatasetEntriesResponse":{
25782602
"type":"structure",
2579-
"members":{
2580-
}
2603+
"members":{}
25812604
},
25822605
"DistributeDatasetMetadataList":{
25832606
"type":"list",
@@ -2953,7 +2976,8 @@
29532976
"Status":{"shape":"LivenessSessionStatus"},
29542977
"Confidence":{"shape":"Percent"},
29552978
"ReferenceImage":{"shape":"AuditImage"},
2956-
"AuditImages":{"shape":"AuditImages"}
2979+
"AuditImages":{"shape":"AuditImages"},
2980+
"Challenge":{"shape":"Challenge"}
29572981
}
29582982
},
29592983
"GetFaceSearchRequest":{
@@ -3186,8 +3210,7 @@
31863210
},
31873211
"IdempotentParameterMismatchException":{
31883212
"type":"structure",
3189-
"members":{
3190-
},
3213+
"members":{},
31913214
"exception":true
31923215
},
31933216
"Image":{
@@ -3215,8 +3238,7 @@
32153238
},
32163239
"ImageTooLargeException":{
32173240
"type":"structure",
3218-
"members":{
3219-
},
3241+
"members":{},
32203242
"exception":true
32213243
},
32223244
"IndexFacesModelVersion":{
@@ -3265,45 +3287,38 @@
32653287
},
32663288
"InternalServerError":{
32673289
"type":"structure",
3268-
"members":{
3269-
},
3290+
"members":{},
32703291
"exception":true,
32713292
"fault":true
32723293
},
32733294
"InvalidImageFormatException":{
32743295
"type":"structure",
3275-
"members":{
3276-
},
3296+
"members":{},
32773297
"exception":true
32783298
},
32793299
"InvalidManifestException":{
32803300
"type":"structure",
3281-
"members":{
3282-
},
3301+
"members":{},
32833302
"exception":true
32843303
},
32853304
"InvalidPaginationTokenException":{
32863305
"type":"structure",
3287-
"members":{
3288-
},
3306+
"members":{},
32893307
"exception":true
32903308
},
32913309
"InvalidParameterException":{
32923310
"type":"structure",
3293-
"members":{
3294-
},
3311+
"members":{},
32953312
"exception":true
32963313
},
32973314
"InvalidPolicyRevisionIdException":{
32983315
"type":"structure",
3299-
"members":{
3300-
},
3316+
"members":{},
33013317
"exception":true
33023318
},
33033319
"InvalidS3ObjectException":{
33043320
"type":"structure",
3305-
"members":{
3306-
},
3321+
"members":{},
33073322
"exception":true
33083323
},
33093324
"IsLabeled":{"type":"boolean"},
@@ -3501,8 +3516,7 @@
35013516
},
35023517
"LimitExceededException":{
35033518
"type":"structure",
3504-
"members":{
3505-
},
3519+
"members":{},
35063520
"exception":true
35073521
},
35083522
"ListCollectionsRequest":{
@@ -3706,8 +3720,7 @@
37063720
},
37073721
"MalformedPolicyDocumentException":{
37083722
"type":"structure",
3709-
"members":{
3710-
},
3723+
"members":{},
37113724
"exception":true
37123725
},
37133726
"MatchedUser":{
@@ -4217,8 +4230,7 @@
42174230
},
42184231
"ProvisionedThroughputExceededException":{
42194232
"type":"structure",
4220-
"members":{
4221-
},
4233+
"members":{},
42224234
"exception":true
42234235
},
42244236
"PutProjectPolicyRequest":{
@@ -4307,8 +4319,7 @@
43074319
},
43084320
"ResourceAlreadyExistsException":{
43094321
"type":"structure",
4310-
"members":{
4311-
},
4322+
"members":{},
43124323
"exception":true
43134324
},
43144325
"ResourceArn":{
@@ -4318,20 +4329,17 @@
43184329
},
43194330
"ResourceInUseException":{
43204331
"type":"structure",
4321-
"members":{
4322-
},
4332+
"members":{},
43234333
"exception":true
43244334
},
43254335
"ResourceNotFoundException":{
43264336
"type":"structure",
4327-
"members":{
4328-
},
4337+
"members":{},
43294338
"exception":true
43304339
},
43314340
"ResourceNotReadyException":{
43324341
"type":"structure",
4333-
"members":{
4334-
},
4342+
"members":{},
43354343
"exception":true
43364344
},
43374345
"RoleArn":{
@@ -4533,14 +4541,12 @@
45334541
},
45344542
"ServiceQuotaExceededException":{
45354543
"type":"structure",
4536-
"members":{
4537-
},
4544+
"members":{},
45384545
"exception":true
45394546
},
45404547
"SessionNotFoundException":{
45414548
"type":"structure",
4542-
"members":{
4543-
},
4549+
"members":{},
45444550
"exception":true
45454551
},
45464552
"ShotSegment":{
@@ -4811,8 +4817,7 @@
48114817
},
48124818
"StopStreamProcessorResponse":{
48134819
"type":"structure",
4814-
"members":{
4815-
}
4820+
"members":{}
48164821
},
48174822
"StreamProcessingStartSelector":{
48184823
"type":"structure",
@@ -4955,8 +4960,7 @@
49554960
},
49564961
"TagResourceResponse":{
49574962
"type":"structure",
4958-
"members":{
4959-
}
4963+
"members":{}
49604964
},
49614965
"TagValue":{
49624966
"type":"string",
@@ -5033,8 +5037,7 @@
50335037
},
50345038
"ThrottlingException":{
50355039
"type":"structure",
5036-
"members":{
5037-
},
5040+
"members":{},
50385041
"exception":true,
50395042
"fault":true
50405043
},
@@ -5191,8 +5194,7 @@
51915194
},
51925195
"UntagResourceResponse":{
51935196
"type":"structure",
5194-
"members":{
5195-
}
5197+
"members":{}
51965198
},
51975199
"UpdateDatasetEntriesRequest":{
51985200
"type":"structure",
@@ -5207,8 +5209,7 @@
52075209
},
52085210
"UpdateDatasetEntriesResponse":{
52095211
"type":"structure",
5210-
"members":{
5211-
}
5212+
"members":{}
52125213
},
52135214
"UpdateStreamProcessorRequest":{
52145215
"type":"structure",
@@ -5223,8 +5224,7 @@
52235224
},
52245225
"UpdateStreamProcessorResponse":{
52255226
"type":"structure",
5226-
"members":{
5227-
}
5227+
"members":{}
52285228
},
52295229
"Url":{"type":"string"},
52305230
"Urls":{
@@ -5284,6 +5284,12 @@
52845284
"Assets":{"shape":"Assets"}
52855285
}
52865286
},
5287+
"Version":{
5288+
"type":"string",
5289+
"max":11,
5290+
"min":5,
5291+
"pattern":"^(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})$"
5292+
},
52875293
"VersionDescription":{
52885294
"type":"string",
52895295
"max":255,
@@ -5302,6 +5308,13 @@
53025308
"max":10,
53035309
"min":1
53045310
},
5311+
"Versions":{
5312+
"type":"structure",
5313+
"members":{
5314+
"Minimum":{"shape":"Version"},
5315+
"Maximum":{"shape":"Version"}
5316+
}
5317+
},
53055318
"Video":{
53065319
"type":"structure",
53075320
"members":{
@@ -5341,8 +5354,7 @@
53415354
},
53425355
"VideoTooLargeException":{
53435356
"type":"structure",
5344-
"members":{
5345-
},
5357+
"members":{},
53465358
"exception":true
53475359
}
53485360
}

0 commit comments

Comments
 (0)