Skip to content

Commit 9120617

Browse files
author
AWS
committed
Amazon Fraud Detector Update: This release adds support for Batch Predictions in Amazon Fraud Detector.
1 parent bfe2e55 commit 9120617

File tree

3 files changed

+277
-1
lines changed

3 files changed

+277
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Fraud Detector",
4+
"contributor": "",
5+
"description": "This release adds support for Batch Predictions in Amazon Fraud Detector."
6+
}

services/frauddetector/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"output_token": "nextToken",
66
"limit_key": "maxResults"
77
},
8+
"GetBatchPredictionJobs": {
9+
"input_token": "nextToken",
10+
"output_token": "nextToken",
11+
"limit_key": "maxResults"
12+
},
813
"GetDetectors": {
914
"input_token": "nextToken",
1015
"output_token": "nextToken",

services/frauddetector/src/main/resources/codegen-resources/service-2.json

Lines changed: 266 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,37 @@
4444
],
4545
"documentation":"<p>Gets a batch of variables.</p>"
4646
},
47+
"CancelBatchPredictionJob":{
48+
"name":"CancelBatchPredictionJob",
49+
"http":{
50+
"method":"POST",
51+
"requestUri":"/"
52+
},
53+
"input":{"shape":"CancelBatchPredictionJobRequest"},
54+
"output":{"shape":"CancelBatchPredictionJobResult"},
55+
"errors":[
56+
{"shape":"ValidationException"},
57+
{"shape":"ResourceNotFoundException"},
58+
{"shape":"InternalServerException"},
59+
{"shape":"AccessDeniedException"}
60+
],
61+
"documentation":"<p>Cancels the specified batch prediction job.</p>"
62+
},
63+
"CreateBatchPredictionJob":{
64+
"name":"CreateBatchPredictionJob",
65+
"http":{
66+
"method":"POST",
67+
"requestUri":"/"
68+
},
69+
"input":{"shape":"CreateBatchPredictionJobRequest"},
70+
"output":{"shape":"CreateBatchPredictionJobResult"},
71+
"errors":[
72+
{"shape":"ValidationException"},
73+
{"shape":"InternalServerException"},
74+
{"shape":"AccessDeniedException"}
75+
],
76+
"documentation":"<p>Creates a batch prediction job.</p>"
77+
},
4778
"CreateDetectorVersion":{
4879
"name":"CreateDetectorVersion",
4980
"http":{
@@ -124,6 +155,22 @@
124155
],
125156
"documentation":"<p>Creates a variable.</p>"
126157
},
158+
"DeleteBatchPredictionJob":{
159+
"name":"DeleteBatchPredictionJob",
160+
"http":{
161+
"method":"POST",
162+
"requestUri":"/"
163+
},
164+
"input":{"shape":"DeleteBatchPredictionJobRequest"},
165+
"output":{"shape":"DeleteBatchPredictionJobResult"},
166+
"errors":[
167+
{"shape":"ValidationException"},
168+
{"shape":"ResourceNotFoundException"},
169+
{"shape":"InternalServerException"},
170+
{"shape":"AccessDeniedException"}
171+
],
172+
"documentation":"<p>Deletes a batch prediction job.</p>"
173+
},
127174
"DeleteDetector":{
128175
"name":"DeleteDetector",
129176
"http":{
@@ -355,6 +402,22 @@
355402
],
356403
"documentation":"<p>Gets all of the model versions for the specified model type or for the specified model type and model ID. You can also get details for a single, specified model version. </p>"
357404
},
405+
"GetBatchPredictionJobs":{
406+
"name":"GetBatchPredictionJobs",
407+
"http":{
408+
"method":"POST",
409+
"requestUri":"/"
410+
},
411+
"input":{"shape":"GetBatchPredictionJobsRequest"},
412+
"output":{"shape":"GetBatchPredictionJobsResult"},
413+
"errors":[
414+
{"shape":"ValidationException"},
415+
{"shape":"ResourceNotFoundException"},
416+
{"shape":"InternalServerException"},
417+
{"shape":"AccessDeniedException"}
418+
],
419+
"documentation":"<p>Gets all batch prediction jobs or a specific job if you specify a job ID. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 50 records per page. If you provide a maxResults, the value must be between 1 and 50. To get the next page results, provide the pagination token from the GetBatchPredictionJobsResponse as part of your request. A null pagination token fetches the records from the beginning.</p>"
420+
},
358421
"GetDetectorVersion":{
359422
"name":"GetDetectorVersion",
360423
"http":{
@@ -883,6 +946,17 @@
883946
"documentation":"<p>An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as <code>PutExternalModel</code>, that specifies a role that is not in your account.</p>",
884947
"exception":true
885948
},
949+
"AsyncJobStatus":{
950+
"type":"string",
951+
"enum":[
952+
"IN_PROGRESS_INITIALIZING",
953+
"IN_PROGRESS",
954+
"CANCEL_IN_PROGRESS",
955+
"CANCELED",
956+
"COMPLETE",
957+
"FAILED"
958+
]
959+
},
886960
"BatchCreateVariableError":{
887961
"type":"structure",
888962
"members":{
@@ -973,6 +1047,91 @@
9731047
}
9741048
}
9751049
},
1050+
"BatchPrediction":{
1051+
"type":"structure",
1052+
"members":{
1053+
"jobId":{
1054+
"shape":"identifier",
1055+
"documentation":"<p>The job ID for the batch prediction.</p>"
1056+
},
1057+
"status":{
1058+
"shape":"AsyncJobStatus",
1059+
"documentation":"<p>The batch prediction status.</p>"
1060+
},
1061+
"failureReason":{
1062+
"shape":"string",
1063+
"documentation":"<p>The reason a batch prediction job failed.</p>"
1064+
},
1065+
"startTime":{
1066+
"shape":"time",
1067+
"documentation":"<p>Timestamp of when the batch prediction job started.</p>"
1068+
},
1069+
"completionTime":{
1070+
"shape":"time",
1071+
"documentation":"<p>Timestamp of when the batch prediction job comleted.</p>"
1072+
},
1073+
"lastHeartbeatTime":{
1074+
"shape":"time",
1075+
"documentation":"<p>Timestamp of most recent heartbeat indicating the batch prediction job was making progress.</p>"
1076+
},
1077+
"inputPath":{
1078+
"shape":"s3BucketLocation",
1079+
"documentation":"<p>The Amazon S3 location of your training file.</p>"
1080+
},
1081+
"outputPath":{
1082+
"shape":"s3BucketLocation",
1083+
"documentation":"<p>The Amazon S3 location of your output file.</p>"
1084+
},
1085+
"eventTypeName":{
1086+
"shape":"identifier",
1087+
"documentation":"<p>The name of the event type.</p>"
1088+
},
1089+
"detectorName":{
1090+
"shape":"identifier",
1091+
"documentation":"<p>The name of the detector.</p>"
1092+
},
1093+
"detectorVersion":{
1094+
"shape":"floatVersionString",
1095+
"documentation":"<p>The detector version. </p>"
1096+
},
1097+
"iamRoleArn":{
1098+
"shape":"iamRoleArn",
1099+
"documentation":"<p>The ARN of the IAM role to use for this job request.</p>"
1100+
},
1101+
"arn":{
1102+
"shape":"fraudDetectorArn",
1103+
"documentation":"<p>The ARN of batch prediction job.</p>"
1104+
},
1105+
"processedRecordsCount":{
1106+
"shape":"Integer",
1107+
"documentation":"<p>The number of records processed by the batch prediction job.</p>"
1108+
},
1109+
"totalRecordsCount":{
1110+
"shape":"Integer",
1111+
"documentation":"<p>The total number of records in the batch prediction job.</p>"
1112+
}
1113+
},
1114+
"documentation":"<p>The batch prediction details.</p>"
1115+
},
1116+
"BatchPredictionList":{
1117+
"type":"list",
1118+
"member":{"shape":"BatchPrediction"}
1119+
},
1120+
"CancelBatchPredictionJobRequest":{
1121+
"type":"structure",
1122+
"required":["jobId"],
1123+
"members":{
1124+
"jobId":{
1125+
"shape":"identifier",
1126+
"documentation":"<p>The ID of the batch prediction job to cancel.</p>"
1127+
}
1128+
}
1129+
},
1130+
"CancelBatchPredictionJobResult":{
1131+
"type":"structure",
1132+
"members":{
1133+
}
1134+
},
9761135
"ConflictException":{
9771136
"type":"structure",
9781137
"required":["message"],
@@ -982,6 +1141,56 @@
9821141
"documentation":"<p>An exception indicating there was a conflict during a delete operation. The following delete operations can cause a conflict exception:</p> <ul> <li> <p>DeleteDetector: A conflict exception will occur if the detector has associated <code>Rules</code> or <code>DetectorVersions</code>. You can only delete a detector if it has no <code>Rules</code> or <code>DetectorVersions</code>.</p> </li> <li> <p>DeleteDetectorVersion: A conflict exception will occur if the <code>DetectorVersion</code> status is <code>ACTIVE</code>.</p> </li> <li> <p>DeleteRule: A conflict exception will occur if the <code>RuleVersion</code> is in use by an associated <code>ACTIVE</code> or <code>INACTIVE DetectorVersion</code>.</p> </li> </ul>",
9831142
"exception":true
9841143
},
1144+
"CreateBatchPredictionJobRequest":{
1145+
"type":"structure",
1146+
"required":[
1147+
"jobId",
1148+
"inputPath",
1149+
"outputPath",
1150+
"eventTypeName",
1151+
"detectorName",
1152+
"iamRoleArn"
1153+
],
1154+
"members":{
1155+
"jobId":{
1156+
"shape":"identifier",
1157+
"documentation":"<p>The ID of the batch prediction job.</p>"
1158+
},
1159+
"inputPath":{
1160+
"shape":"s3BucketLocation",
1161+
"documentation":"<p>The Amazon S3 location of your training file.</p>"
1162+
},
1163+
"outputPath":{
1164+
"shape":"s3BucketLocation",
1165+
"documentation":"<p>The Amazon S3 location of your output file.</p>"
1166+
},
1167+
"eventTypeName":{
1168+
"shape":"identifier",
1169+
"documentation":"<p>The name of the event type.</p>"
1170+
},
1171+
"detectorName":{
1172+
"shape":"identifier",
1173+
"documentation":"<p>The name of the detector.</p>"
1174+
},
1175+
"detectorVersion":{
1176+
"shape":"wholeNumberVersionString",
1177+
"documentation":"<p>The detector version.</p>"
1178+
},
1179+
"iamRoleArn":{
1180+
"shape":"iamRoleArn",
1181+
"documentation":"<p>The ARN of the IAM role to use for this job request.</p>"
1182+
},
1183+
"tags":{
1184+
"shape":"tagList",
1185+
"documentation":"<p>A collection of key and value pairs.</p>"
1186+
}
1187+
}
1188+
},
1189+
"CreateBatchPredictionJobResult":{
1190+
"type":"structure",
1191+
"members":{
1192+
}
1193+
},
9851194
"CreateDetectorVersionRequest":{
9861195
"type":"structure",
9871196
"required":[
@@ -1256,6 +1465,21 @@
12561465
},
12571466
"documentation":"<p>The model training validation messages.</p>"
12581467
},
1468+
"DeleteBatchPredictionJobRequest":{
1469+
"type":"structure",
1470+
"required":["jobId"],
1471+
"members":{
1472+
"jobId":{
1473+
"shape":"identifier",
1474+
"documentation":"<p>The ID of the batch prediction job to delete.</p>"
1475+
}
1476+
}
1477+
},
1478+
"DeleteBatchPredictionJobResult":{
1479+
"type":"structure",
1480+
"members":{
1481+
}
1482+
},
12591483
"DeleteDetectorRequest":{
12601484
"type":"structure",
12611485
"required":["detectorId"],
@@ -1831,6 +2055,36 @@
18312055
},
18322056
"documentation":"<p>The message details.</p>"
18332057
},
2058+
"GetBatchPredictionJobsRequest":{
2059+
"type":"structure",
2060+
"members":{
2061+
"jobId":{
2062+
"shape":"identifier",
2063+
"documentation":"<p>The batch prediction job for which to get the details.</p>"
2064+
},
2065+
"maxResults":{
2066+
"shape":"batchPredictionsMaxPageSize",
2067+
"documentation":"<p>The maximum number of objects to return for the request.</p>"
2068+
},
2069+
"nextToken":{
2070+
"shape":"string",
2071+
"documentation":"<p>The next token from the previous request.</p>"
2072+
}
2073+
}
2074+
},
2075+
"GetBatchPredictionJobsResult":{
2076+
"type":"structure",
2077+
"members":{
2078+
"batchPredictions":{
2079+
"shape":"BatchPredictionList",
2080+
"documentation":"<p>An array containing the details of each batch prediction job.</p>"
2081+
},
2082+
"nextToken":{
2083+
"shape":"string",
2084+
"documentation":"<p>The next token for the subsequent request.</p>"
2085+
}
2086+
}
2087+
},
18342088
"GetDetectorVersionRequest":{
18352089
"type":"structure",
18362090
"required":[
@@ -2306,6 +2560,7 @@
23062560
}
23072561
}
23082562
},
2563+
"Integer":{"type":"integer"},
23092564
"InternalServerException":{
23102565
"type":"structure",
23112566
"required":["message"],
@@ -3555,6 +3810,12 @@
35553810
"max":100,
35563811
"min":50
35573812
},
3813+
"batchPredictionsMaxPageSize":{
3814+
"type":"integer",
3815+
"box":true,
3816+
"max":50,
3817+
"min":1
3818+
},
35583819
"blob":{"type":"blob"},
35593820
"contentType":{
35603821
"type":"string",
@@ -3709,7 +3970,11 @@
37093970
"max":256,
37103971
"min":0
37113972
},
3712-
"time":{"type":"string"},
3973+
"time":{
3974+
"type":"string",
3975+
"max":30,
3976+
"min":11
3977+
},
37133978
"variableName":{
37143979
"type":"string",
37153980
"max":64,

0 commit comments

Comments
 (0)