aws-sdk-frauddetector 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c0668bacf4b9a11d39d09567e0ef94e3f0fd6b5c9efede12eca252d89a94b27
4
- data.tar.gz: 9151d3bd8ef5feca3dfcd525c8f92e13169cf5609152355a937f21c02ca1d4f2
3
+ metadata.gz: 5b8efd1c69e484d5f59cbf3a0b409eeca74444fdcf73f2004d10766256fa923e
4
+ data.tar.gz: 6cbf59696fa93173a7f93484f54998ff22ae5258bfa6833694bb3d3efb6c6692
5
5
  SHA512:
6
- metadata.gz: 493a9ceff112e4b0a260f3346ad120ac9808964003afe62127b6a2ac2ef4abbc4d0285ab1b3104b096b923ed8a16d9b4d69aa70d6fff2c85352b0223a88ef8e7
7
- data.tar.gz: 691b83058ad441dd14c05c1332f2c660b9f7866145a2e7c016b5f0dbe37562ca2a6927f8f6776258e2554ca455e53e2eecd8ba48f8b4e8f5ab9f0053020f1817
6
+ metadata.gz: f20b1dacc4eb1f56b46bc2601e3d55425df51caa26b0b95dd8ee6080a4dbf7d40a5955a5db1ea5e485d38cb3157796167d62d94d47fafd46232a8596fa1095cc
7
+ data.tar.gz: d51893a1ea7dfaa579db5756b02bebd071decc18a2d40f7d6c33c29b217d386e6b3e3b09300a74b90e4b53469241667d6ea7d393ec4863ad9f94b038fd6afa75
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.18.0 (2021-03-30)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for Batch Predictions in Amazon Fraud Detector.
8
+
4
9
  1.17.0 (2021-03-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.17.0
1
+ 1.18.0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-frauddetector/customizations'
48
48
  # @!group service
49
49
  module Aws::FraudDetector
50
50
 
51
- GEM_VERSION = '1.17.0'
51
+ GEM_VERSION = '1.18.0'
52
52
 
53
53
  end
@@ -428,6 +428,83 @@ module Aws::FraudDetector
428
428
  req.send_request(options)
429
429
  end
430
430
 
431
+ # Cancels the specified batch prediction job.
432
+ #
433
+ # @option params [required, String] :job_id
434
+ # The ID of the batch prediction job to cancel.
435
+ #
436
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
437
+ #
438
+ # @example Request syntax with placeholder values
439
+ #
440
+ # resp = client.cancel_batch_prediction_job({
441
+ # job_id: "identifier", # required
442
+ # })
443
+ #
444
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CancelBatchPredictionJob AWS API Documentation
445
+ #
446
+ # @overload cancel_batch_prediction_job(params = {})
447
+ # @param [Hash] params ({})
448
+ def cancel_batch_prediction_job(params = {}, options = {})
449
+ req = build_request(:cancel_batch_prediction_job, params)
450
+ req.send_request(options)
451
+ end
452
+
453
+ # Creates a batch prediction job.
454
+ #
455
+ # @option params [required, String] :job_id
456
+ # The ID of the batch prediction job.
457
+ #
458
+ # @option params [required, String] :input_path
459
+ # The Amazon S3 location of your training file.
460
+ #
461
+ # @option params [required, String] :output_path
462
+ # The Amazon S3 location of your output file.
463
+ #
464
+ # @option params [required, String] :event_type_name
465
+ # The name of the event type.
466
+ #
467
+ # @option params [required, String] :detector_name
468
+ # The name of the detector.
469
+ #
470
+ # @option params [String] :detector_version
471
+ # The detector version.
472
+ #
473
+ # @option params [required, String] :iam_role_arn
474
+ # The ARN of the IAM role to use for this job request.
475
+ #
476
+ # @option params [Array<Types::Tag>] :tags
477
+ # A collection of key and value pairs.
478
+ #
479
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
480
+ #
481
+ # @example Request syntax with placeholder values
482
+ #
483
+ # resp = client.create_batch_prediction_job({
484
+ # job_id: "identifier", # required
485
+ # input_path: "s3BucketLocation", # required
486
+ # output_path: "s3BucketLocation", # required
487
+ # event_type_name: "identifier", # required
488
+ # detector_name: "identifier", # required
489
+ # detector_version: "wholeNumberVersionString",
490
+ # iam_role_arn: "iamRoleArn", # required
491
+ # tags: [
492
+ # {
493
+ # key: "tagKey", # required
494
+ # value: "tagValue", # required
495
+ # },
496
+ # ],
497
+ # })
498
+ #
499
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateBatchPredictionJob AWS API Documentation
500
+ #
501
+ # @overload create_batch_prediction_job(params = {})
502
+ # @param [Hash] params ({})
503
+ def create_batch_prediction_job(params = {}, options = {})
504
+ req = build_request(:create_batch_prediction_job, params)
505
+ req.send_request(options)
506
+ end
507
+
431
508
  # Creates a detector version. The detector version starts in a `DRAFT`
432
509
  # status.
433
510
  #
@@ -755,6 +832,28 @@ module Aws::FraudDetector
755
832
  req.send_request(options)
756
833
  end
757
834
 
835
+ # Deletes a batch prediction job.
836
+ #
837
+ # @option params [required, String] :job_id
838
+ # The ID of the batch prediction job to delete.
839
+ #
840
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
841
+ #
842
+ # @example Request syntax with placeholder values
843
+ #
844
+ # resp = client.delete_batch_prediction_job({
845
+ # job_id: "identifier", # required
846
+ # })
847
+ #
848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteBatchPredictionJob AWS API Documentation
849
+ #
850
+ # @overload delete_batch_prediction_job(params = {})
851
+ # @param [Hash] params ({})
852
+ def delete_batch_prediction_job(params = {}, options = {})
853
+ req = build_request(:delete_batch_prediction_job, params)
854
+ req.send_request(options)
855
+ end
856
+
758
857
  # Deletes the detector. Before deleting a detector, you must first
759
858
  # delete all detector versions and rule versions associated with the
760
859
  # detector.
@@ -1244,6 +1343,67 @@ module Aws::FraudDetector
1244
1343
  req.send_request(options)
1245
1344
  end
1246
1345
 
1346
+ # Gets all batch prediction jobs or a specific job if you specify a job
1347
+ # ID. This is a paginated API. If you provide a null maxResults, this
1348
+ # action retrieves a maximum of 50 records per page. If you provide a
1349
+ # maxResults, the value must be between 1 and 50. To get the next page
1350
+ # results, provide the pagination token from the
1351
+ # GetBatchPredictionJobsResponse as part of your request. A null
1352
+ # pagination token fetches the records from the beginning.
1353
+ #
1354
+ # @option params [String] :job_id
1355
+ # The batch prediction job for which to get the details.
1356
+ #
1357
+ # @option params [Integer] :max_results
1358
+ # The maximum number of objects to return for the request.
1359
+ #
1360
+ # @option params [String] :next_token
1361
+ # The next token from the previous request.
1362
+ #
1363
+ # @return [Types::GetBatchPredictionJobsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1364
+ #
1365
+ # * {Types::GetBatchPredictionJobsResult#batch_predictions #batch_predictions} => Array&lt;Types::BatchPrediction&gt;
1366
+ # * {Types::GetBatchPredictionJobsResult#next_token #next_token} => String
1367
+ #
1368
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1369
+ #
1370
+ # @example Request syntax with placeholder values
1371
+ #
1372
+ # resp = client.get_batch_prediction_jobs({
1373
+ # job_id: "identifier",
1374
+ # max_results: 1,
1375
+ # next_token: "string",
1376
+ # })
1377
+ #
1378
+ # @example Response structure
1379
+ #
1380
+ # resp.batch_predictions #=> Array
1381
+ # resp.batch_predictions[0].job_id #=> String
1382
+ # resp.batch_predictions[0].status #=> String, one of "IN_PROGRESS_INITIALIZING", "IN_PROGRESS", "CANCEL_IN_PROGRESS", "CANCELED", "COMPLETE", "FAILED"
1383
+ # resp.batch_predictions[0].failure_reason #=> String
1384
+ # resp.batch_predictions[0].start_time #=> String
1385
+ # resp.batch_predictions[0].completion_time #=> String
1386
+ # resp.batch_predictions[0].last_heartbeat_time #=> String
1387
+ # resp.batch_predictions[0].input_path #=> String
1388
+ # resp.batch_predictions[0].output_path #=> String
1389
+ # resp.batch_predictions[0].event_type_name #=> String
1390
+ # resp.batch_predictions[0].detector_name #=> String
1391
+ # resp.batch_predictions[0].detector_version #=> String
1392
+ # resp.batch_predictions[0].iam_role_arn #=> String
1393
+ # resp.batch_predictions[0].arn #=> String
1394
+ # resp.batch_predictions[0].processed_records_count #=> Integer
1395
+ # resp.batch_predictions[0].total_records_count #=> Integer
1396
+ # resp.next_token #=> String
1397
+ #
1398
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetBatchPredictionJobs AWS API Documentation
1399
+ #
1400
+ # @overload get_batch_prediction_jobs(params = {})
1401
+ # @param [Hash] params ({})
1402
+ def get_batch_prediction_jobs(params = {}, options = {})
1403
+ req = build_request(:get_batch_prediction_jobs, params)
1404
+ req.send_request(options)
1405
+ end
1406
+
1247
1407
  # Gets a particular detector version.
1248
1408
  #
1249
1409
  # @option params [required, String] :detector_id
@@ -2782,7 +2942,7 @@ module Aws::FraudDetector
2782
2942
  params: params,
2783
2943
  config: config)
2784
2944
  context[:gem_name] = 'aws-sdk-frauddetector'
2785
- context[:gem_version] = '1.17.0'
2945
+ context[:gem_version] = '1.18.0'
2786
2946
  Seahorse::Client::Request.new(handlers, context)
2787
2947
  end
2788
2948
 
@@ -14,6 +14,7 @@ module Aws::FraudDetector
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AsyncJobStatus = Shapes::StringShape.new(name: 'AsyncJobStatus')
17
18
  BatchCreateVariableError = Shapes::StructureShape.new(name: 'BatchCreateVariableError')
18
19
  BatchCreateVariableErrorList = Shapes::ListShape.new(name: 'BatchCreateVariableErrorList')
19
20
  BatchCreateVariableRequest = Shapes::StructureShape.new(name: 'BatchCreateVariableRequest')
@@ -22,7 +23,13 @@ module Aws::FraudDetector
22
23
  BatchGetVariableErrorList = Shapes::ListShape.new(name: 'BatchGetVariableErrorList')
23
24
  BatchGetVariableRequest = Shapes::StructureShape.new(name: 'BatchGetVariableRequest')
24
25
  BatchGetVariableResult = Shapes::StructureShape.new(name: 'BatchGetVariableResult')
26
+ BatchPrediction = Shapes::StructureShape.new(name: 'BatchPrediction')
27
+ BatchPredictionList = Shapes::ListShape.new(name: 'BatchPredictionList')
28
+ CancelBatchPredictionJobRequest = Shapes::StructureShape.new(name: 'CancelBatchPredictionJobRequest')
29
+ CancelBatchPredictionJobResult = Shapes::StructureShape.new(name: 'CancelBatchPredictionJobResult')
25
30
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
31
+ CreateBatchPredictionJobRequest = Shapes::StructureShape.new(name: 'CreateBatchPredictionJobRequest')
32
+ CreateBatchPredictionJobResult = Shapes::StructureShape.new(name: 'CreateBatchPredictionJobResult')
26
33
  CreateDetectorVersionRequest = Shapes::StructureShape.new(name: 'CreateDetectorVersionRequest')
27
34
  CreateDetectorVersionResult = Shapes::StructureShape.new(name: 'CreateDetectorVersionResult')
28
35
  CreateModelRequest = Shapes::StructureShape.new(name: 'CreateModelRequest')
@@ -37,6 +44,8 @@ module Aws::FraudDetector
37
44
  DataSource = Shapes::StringShape.new(name: 'DataSource')
38
45
  DataType = Shapes::StringShape.new(name: 'DataType')
39
46
  DataValidationMetrics = Shapes::StructureShape.new(name: 'DataValidationMetrics')
47
+ DeleteBatchPredictionJobRequest = Shapes::StructureShape.new(name: 'DeleteBatchPredictionJobRequest')
48
+ DeleteBatchPredictionJobResult = Shapes::StructureShape.new(name: 'DeleteBatchPredictionJobResult')
40
49
  DeleteDetectorRequest = Shapes::StructureShape.new(name: 'DeleteDetectorRequest')
41
50
  DeleteDetectorResult = Shapes::StructureShape.new(name: 'DeleteDetectorResult')
42
51
  DeleteDetectorVersionRequest = Shapes::StructureShape.new(name: 'DeleteDetectorVersionRequest')
@@ -83,6 +92,8 @@ module Aws::FraudDetector
83
92
  ExternalModelsMaxResults = Shapes::IntegerShape.new(name: 'ExternalModelsMaxResults')
84
93
  FieldValidationMessage = Shapes::StructureShape.new(name: 'FieldValidationMessage')
85
94
  FileValidationMessage = Shapes::StructureShape.new(name: 'FileValidationMessage')
95
+ GetBatchPredictionJobsRequest = Shapes::StructureShape.new(name: 'GetBatchPredictionJobsRequest')
96
+ GetBatchPredictionJobsResult = Shapes::StructureShape.new(name: 'GetBatchPredictionJobsResult')
86
97
  GetDetectorVersionRequest = Shapes::StructureShape.new(name: 'GetDetectorVersionRequest')
87
98
  GetDetectorVersionResult = Shapes::StructureShape.new(name: 'GetDetectorVersionResult')
88
99
  GetDetectorsRequest = Shapes::StructureShape.new(name: 'GetDetectorsRequest')
@@ -108,6 +119,7 @@ module Aws::FraudDetector
108
119
  GetRulesResult = Shapes::StructureShape.new(name: 'GetRulesResult')
109
120
  GetVariablesRequest = Shapes::StructureShape.new(name: 'GetVariablesRequest')
110
121
  GetVariablesResult = Shapes::StructureShape.new(name: 'GetVariablesResult')
122
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
111
123
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
112
124
  JsonKeyToVariableMap = Shapes::MapShape.new(name: 'JsonKeyToVariableMap')
113
125
  KMSKey = Shapes::StructureShape.new(name: 'KMSKey')
@@ -199,6 +211,7 @@ module Aws::FraudDetector
199
211
  VariableEntryList = Shapes::ListShape.new(name: 'VariableEntryList')
200
212
  VariableList = Shapes::ListShape.new(name: 'VariableList')
201
213
  VariablesMaxResults = Shapes::IntegerShape.new(name: 'VariablesMaxResults')
214
+ batchPredictionsMaxPageSize = Shapes::IntegerShape.new(name: 'batchPredictionsMaxPageSize')
202
215
  blob = Shapes::BlobShape.new(name: 'blob')
203
216
  contentType = Shapes::StringShape.new(name: 'contentType')
204
217
  description = Shapes::StringShape.new(name: 'description')
@@ -268,9 +281,45 @@ module Aws::FraudDetector
268
281
  BatchGetVariableResult.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetVariableErrorList, location_name: "errors"))
269
282
  BatchGetVariableResult.struct_class = Types::BatchGetVariableResult
270
283
 
284
+ BatchPrediction.add_member(:job_id, Shapes::ShapeRef.new(shape: identifier, location_name: "jobId"))
285
+ BatchPrediction.add_member(:status, Shapes::ShapeRef.new(shape: AsyncJobStatus, location_name: "status"))
286
+ BatchPrediction.add_member(:failure_reason, Shapes::ShapeRef.new(shape: string, location_name: "failureReason"))
287
+ BatchPrediction.add_member(:start_time, Shapes::ShapeRef.new(shape: time, location_name: "startTime"))
288
+ BatchPrediction.add_member(:completion_time, Shapes::ShapeRef.new(shape: time, location_name: "completionTime"))
289
+ BatchPrediction.add_member(:last_heartbeat_time, Shapes::ShapeRef.new(shape: time, location_name: "lastHeartbeatTime"))
290
+ BatchPrediction.add_member(:input_path, Shapes::ShapeRef.new(shape: s3BucketLocation, location_name: "inputPath"))
291
+ BatchPrediction.add_member(:output_path, Shapes::ShapeRef.new(shape: s3BucketLocation, location_name: "outputPath"))
292
+ BatchPrediction.add_member(:event_type_name, Shapes::ShapeRef.new(shape: identifier, location_name: "eventTypeName"))
293
+ BatchPrediction.add_member(:detector_name, Shapes::ShapeRef.new(shape: identifier, location_name: "detectorName"))
294
+ BatchPrediction.add_member(:detector_version, Shapes::ShapeRef.new(shape: floatVersionString, location_name: "detectorVersion"))
295
+ BatchPrediction.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: iamRoleArn, location_name: "iamRoleArn"))
296
+ BatchPrediction.add_member(:arn, Shapes::ShapeRef.new(shape: fraudDetectorArn, location_name: "arn"))
297
+ BatchPrediction.add_member(:processed_records_count, Shapes::ShapeRef.new(shape: Integer, location_name: "processedRecordsCount"))
298
+ BatchPrediction.add_member(:total_records_count, Shapes::ShapeRef.new(shape: Integer, location_name: "totalRecordsCount"))
299
+ BatchPrediction.struct_class = Types::BatchPrediction
300
+
301
+ BatchPredictionList.member = Shapes::ShapeRef.new(shape: BatchPrediction)
302
+
303
+ CancelBatchPredictionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "jobId"))
304
+ CancelBatchPredictionJobRequest.struct_class = Types::CancelBatchPredictionJobRequest
305
+
306
+ CancelBatchPredictionJobResult.struct_class = Types::CancelBatchPredictionJobResult
307
+
271
308
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: string, required: true, location_name: "message"))
272
309
  ConflictException.struct_class = Types::ConflictException
273
310
 
311
+ CreateBatchPredictionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "jobId"))
312
+ CreateBatchPredictionJobRequest.add_member(:input_path, Shapes::ShapeRef.new(shape: s3BucketLocation, required: true, location_name: "inputPath"))
313
+ CreateBatchPredictionJobRequest.add_member(:output_path, Shapes::ShapeRef.new(shape: s3BucketLocation, required: true, location_name: "outputPath"))
314
+ CreateBatchPredictionJobRequest.add_member(:event_type_name, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "eventTypeName"))
315
+ CreateBatchPredictionJobRequest.add_member(:detector_name, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorName"))
316
+ CreateBatchPredictionJobRequest.add_member(:detector_version, Shapes::ShapeRef.new(shape: wholeNumberVersionString, location_name: "detectorVersion"))
317
+ CreateBatchPredictionJobRequest.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: iamRoleArn, required: true, location_name: "iamRoleArn"))
318
+ CreateBatchPredictionJobRequest.add_member(:tags, Shapes::ShapeRef.new(shape: tagList, location_name: "tags"))
319
+ CreateBatchPredictionJobRequest.struct_class = Types::CreateBatchPredictionJobRequest
320
+
321
+ CreateBatchPredictionJobResult.struct_class = Types::CreateBatchPredictionJobResult
322
+
274
323
  CreateDetectorVersionRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
275
324
  CreateDetectorVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: description, location_name: "description"))
276
325
  CreateDetectorVersionRequest.add_member(:external_model_endpoints, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "externalModelEndpoints"))
@@ -338,6 +387,11 @@ module Aws::FraudDetector
338
387
  DataValidationMetrics.add_member(:field_level_messages, Shapes::ShapeRef.new(shape: fieldValidationMessageList, location_name: "fieldLevelMessages"))
339
388
  DataValidationMetrics.struct_class = Types::DataValidationMetrics
340
389
 
390
+ DeleteBatchPredictionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "jobId"))
391
+ DeleteBatchPredictionJobRequest.struct_class = Types::DeleteBatchPredictionJobRequest
392
+
393
+ DeleteBatchPredictionJobResult.struct_class = Types::DeleteBatchPredictionJobResult
394
+
341
395
  DeleteDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
342
396
  DeleteDetectorRequest.struct_class = Types::DeleteDetectorRequest
343
397
 
@@ -499,6 +553,15 @@ module Aws::FraudDetector
499
553
  FileValidationMessage.add_member(:type, Shapes::ShapeRef.new(shape: string, location_name: "type"))
500
554
  FileValidationMessage.struct_class = Types::FileValidationMessage
501
555
 
556
+ GetBatchPredictionJobsRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: identifier, location_name: "jobId"))
557
+ GetBatchPredictionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: batchPredictionsMaxPageSize, location_name: "maxResults"))
558
+ GetBatchPredictionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location_name: "nextToken"))
559
+ GetBatchPredictionJobsRequest.struct_class = Types::GetBatchPredictionJobsRequest
560
+
561
+ GetBatchPredictionJobsResult.add_member(:batch_predictions, Shapes::ShapeRef.new(shape: BatchPredictionList, location_name: "batchPredictions"))
562
+ GetBatchPredictionJobsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location_name: "nextToken"))
563
+ GetBatchPredictionJobsResult.struct_class = Types::GetBatchPredictionJobsResult
564
+
502
565
  GetDetectorVersionRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
503
566
  GetDetectorVersionRequest.add_member(:detector_version_id, Shapes::ShapeRef.new(shape: wholeNumberVersionString, required: true, location_name: "detectorVersionId"))
504
567
  GetDetectorVersionRequest.struct_class = Types::GetDetectorVersionRequest
@@ -1023,6 +1086,29 @@ module Aws::FraudDetector
1023
1086
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1024
1087
  end)
1025
1088
 
1089
+ api.add_operation(:cancel_batch_prediction_job, Seahorse::Model::Operation.new.tap do |o|
1090
+ o.name = "CancelBatchPredictionJob"
1091
+ o.http_method = "POST"
1092
+ o.http_request_uri = "/"
1093
+ o.input = Shapes::ShapeRef.new(shape: CancelBatchPredictionJobRequest)
1094
+ o.output = Shapes::ShapeRef.new(shape: CancelBatchPredictionJobResult)
1095
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1096
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1097
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1098
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1099
+ end)
1100
+
1101
+ api.add_operation(:create_batch_prediction_job, Seahorse::Model::Operation.new.tap do |o|
1102
+ o.name = "CreateBatchPredictionJob"
1103
+ o.http_method = "POST"
1104
+ o.http_request_uri = "/"
1105
+ o.input = Shapes::ShapeRef.new(shape: CreateBatchPredictionJobRequest)
1106
+ o.output = Shapes::ShapeRef.new(shape: CreateBatchPredictionJobResult)
1107
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1108
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1109
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1110
+ end)
1111
+
1026
1112
  api.add_operation(:create_detector_version, Seahorse::Model::Operation.new.tap do |o|
1027
1113
  o.name = "CreateDetectorVersion"
1028
1114
  o.http_method = "POST"
@@ -1083,6 +1169,18 @@ module Aws::FraudDetector
1083
1169
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1084
1170
  end)
1085
1171
 
1172
+ api.add_operation(:delete_batch_prediction_job, Seahorse::Model::Operation.new.tap do |o|
1173
+ o.name = "DeleteBatchPredictionJob"
1174
+ o.http_method = "POST"
1175
+ o.http_request_uri = "/"
1176
+ o.input = Shapes::ShapeRef.new(shape: DeleteBatchPredictionJobRequest)
1177
+ o.output = Shapes::ShapeRef.new(shape: DeleteBatchPredictionJobResult)
1178
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1179
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1180
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1181
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1182
+ end)
1183
+
1086
1184
  api.add_operation(:delete_detector, Seahorse::Model::Operation.new.tap do |o|
1087
1185
  o.name = "DeleteDetector"
1088
1186
  o.http_method = "POST"
@@ -1264,6 +1362,24 @@ module Aws::FraudDetector
1264
1362
  )
1265
1363
  end)
1266
1364
 
1365
+ api.add_operation(:get_batch_prediction_jobs, Seahorse::Model::Operation.new.tap do |o|
1366
+ o.name = "GetBatchPredictionJobs"
1367
+ o.http_method = "POST"
1368
+ o.http_request_uri = "/"
1369
+ o.input = Shapes::ShapeRef.new(shape: GetBatchPredictionJobsRequest)
1370
+ o.output = Shapes::ShapeRef.new(shape: GetBatchPredictionJobsResult)
1371
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1372
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1373
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1374
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1375
+ o[:pager] = Aws::Pager.new(
1376
+ limit_key: "max_results",
1377
+ tokens: {
1378
+ "next_token" => "next_token"
1379
+ }
1380
+ )
1381
+ end)
1382
+
1267
1383
  api.add_operation(:get_detector_version, Seahorse::Model::Operation.new.tap do |o|
1268
1384
  o.name = "GetDetectorVersion"
1269
1385
  o.http_method = "POST"
@@ -160,6 +160,114 @@ module Aws::FraudDetector
160
160
  include Aws::Structure
161
161
  end
162
162
 
163
+ # The batch prediction details.
164
+ #
165
+ # @!attribute [rw] job_id
166
+ # The job ID for the batch prediction.
167
+ # @return [String]
168
+ #
169
+ # @!attribute [rw] status
170
+ # The batch prediction status.
171
+ # @return [String]
172
+ #
173
+ # @!attribute [rw] failure_reason
174
+ # The reason a batch prediction job failed.
175
+ # @return [String]
176
+ #
177
+ # @!attribute [rw] start_time
178
+ # Timestamp of when the batch prediction job started.
179
+ # @return [String]
180
+ #
181
+ # @!attribute [rw] completion_time
182
+ # Timestamp of when the batch prediction job comleted.
183
+ # @return [String]
184
+ #
185
+ # @!attribute [rw] last_heartbeat_time
186
+ # Timestamp of most recent heartbeat indicating the batch prediction
187
+ # job was making progress.
188
+ # @return [String]
189
+ #
190
+ # @!attribute [rw] input_path
191
+ # The Amazon S3 location of your training file.
192
+ # @return [String]
193
+ #
194
+ # @!attribute [rw] output_path
195
+ # The Amazon S3 location of your output file.
196
+ # @return [String]
197
+ #
198
+ # @!attribute [rw] event_type_name
199
+ # The name of the event type.
200
+ # @return [String]
201
+ #
202
+ # @!attribute [rw] detector_name
203
+ # The name of the detector.
204
+ # @return [String]
205
+ #
206
+ # @!attribute [rw] detector_version
207
+ # The detector version.
208
+ # @return [String]
209
+ #
210
+ # @!attribute [rw] iam_role_arn
211
+ # The ARN of the IAM role to use for this job request.
212
+ # @return [String]
213
+ #
214
+ # @!attribute [rw] arn
215
+ # The ARN of batch prediction job.
216
+ # @return [String]
217
+ #
218
+ # @!attribute [rw] processed_records_count
219
+ # The number of records processed by the batch prediction job.
220
+ # @return [Integer]
221
+ #
222
+ # @!attribute [rw] total_records_count
223
+ # The total number of records in the batch prediction job.
224
+ # @return [Integer]
225
+ #
226
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchPrediction AWS API Documentation
227
+ #
228
+ class BatchPrediction < Struct.new(
229
+ :job_id,
230
+ :status,
231
+ :failure_reason,
232
+ :start_time,
233
+ :completion_time,
234
+ :last_heartbeat_time,
235
+ :input_path,
236
+ :output_path,
237
+ :event_type_name,
238
+ :detector_name,
239
+ :detector_version,
240
+ :iam_role_arn,
241
+ :arn,
242
+ :processed_records_count,
243
+ :total_records_count)
244
+ SENSITIVE = []
245
+ include Aws::Structure
246
+ end
247
+
248
+ # @note When making an API call, you may pass CancelBatchPredictionJobRequest
249
+ # data as a hash:
250
+ #
251
+ # {
252
+ # job_id: "identifier", # required
253
+ # }
254
+ #
255
+ # @!attribute [rw] job_id
256
+ # The ID of the batch prediction job to cancel.
257
+ # @return [String]
258
+ #
259
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CancelBatchPredictionJobRequest AWS API Documentation
260
+ #
261
+ class CancelBatchPredictionJobRequest < Struct.new(
262
+ :job_id)
263
+ SENSITIVE = []
264
+ include Aws::Structure
265
+ end
266
+
267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CancelBatchPredictionJobResult AWS API Documentation
268
+ #
269
+ class CancelBatchPredictionJobResult < Aws::EmptyStructure; end
270
+
163
271
  # An exception indicating there was a conflict during a delete
164
272
  # operation. The following delete operations can cause a conflict
165
273
  # exception:
@@ -185,6 +293,76 @@ module Aws::FraudDetector
185
293
  include Aws::Structure
186
294
  end
187
295
 
296
+ # @note When making an API call, you may pass CreateBatchPredictionJobRequest
297
+ # data as a hash:
298
+ #
299
+ # {
300
+ # job_id: "identifier", # required
301
+ # input_path: "s3BucketLocation", # required
302
+ # output_path: "s3BucketLocation", # required
303
+ # event_type_name: "identifier", # required
304
+ # detector_name: "identifier", # required
305
+ # detector_version: "wholeNumberVersionString",
306
+ # iam_role_arn: "iamRoleArn", # required
307
+ # tags: [
308
+ # {
309
+ # key: "tagKey", # required
310
+ # value: "tagValue", # required
311
+ # },
312
+ # ],
313
+ # }
314
+ #
315
+ # @!attribute [rw] job_id
316
+ # The ID of the batch prediction job.
317
+ # @return [String]
318
+ #
319
+ # @!attribute [rw] input_path
320
+ # The Amazon S3 location of your training file.
321
+ # @return [String]
322
+ #
323
+ # @!attribute [rw] output_path
324
+ # The Amazon S3 location of your output file.
325
+ # @return [String]
326
+ #
327
+ # @!attribute [rw] event_type_name
328
+ # The name of the event type.
329
+ # @return [String]
330
+ #
331
+ # @!attribute [rw] detector_name
332
+ # The name of the detector.
333
+ # @return [String]
334
+ #
335
+ # @!attribute [rw] detector_version
336
+ # The detector version.
337
+ # @return [String]
338
+ #
339
+ # @!attribute [rw] iam_role_arn
340
+ # The ARN of the IAM role to use for this job request.
341
+ # @return [String]
342
+ #
343
+ # @!attribute [rw] tags
344
+ # A collection of key and value pairs.
345
+ # @return [Array<Types::Tag>]
346
+ #
347
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateBatchPredictionJobRequest AWS API Documentation
348
+ #
349
+ class CreateBatchPredictionJobRequest < Struct.new(
350
+ :job_id,
351
+ :input_path,
352
+ :output_path,
353
+ :event_type_name,
354
+ :detector_name,
355
+ :detector_version,
356
+ :iam_role_arn,
357
+ :tags)
358
+ SENSITIVE = []
359
+ include Aws::Structure
360
+ end
361
+
362
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateBatchPredictionJobResult AWS API Documentation
363
+ #
364
+ class CreateBatchPredictionJobResult < Aws::EmptyStructure; end
365
+
188
366
  # @note When making an API call, you may pass CreateDetectorVersionRequest
189
367
  # data as a hash:
190
368
  #
@@ -608,6 +786,29 @@ module Aws::FraudDetector
608
786
  include Aws::Structure
609
787
  end
610
788
 
789
+ # @note When making an API call, you may pass DeleteBatchPredictionJobRequest
790
+ # data as a hash:
791
+ #
792
+ # {
793
+ # job_id: "identifier", # required
794
+ # }
795
+ #
796
+ # @!attribute [rw] job_id
797
+ # The ID of the batch prediction job to delete.
798
+ # @return [String]
799
+ #
800
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteBatchPredictionJobRequest AWS API Documentation
801
+ #
802
+ class DeleteBatchPredictionJobRequest < Struct.new(
803
+ :job_id)
804
+ SENSITIVE = []
805
+ include Aws::Structure
806
+ end
807
+
808
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteBatchPredictionJobResult AWS API Documentation
809
+ #
810
+ class DeleteBatchPredictionJobResult < Aws::EmptyStructure; end
811
+
611
812
  # @note When making an API call, you may pass DeleteDetectorRequest
612
813
  # data as a hash:
613
814
  #
@@ -1355,6 +1556,54 @@ module Aws::FraudDetector
1355
1556
  include Aws::Structure
1356
1557
  end
1357
1558
 
1559
+ # @note When making an API call, you may pass GetBatchPredictionJobsRequest
1560
+ # data as a hash:
1561
+ #
1562
+ # {
1563
+ # job_id: "identifier",
1564
+ # max_results: 1,
1565
+ # next_token: "string",
1566
+ # }
1567
+ #
1568
+ # @!attribute [rw] job_id
1569
+ # The batch prediction job for which to get the details.
1570
+ # @return [String]
1571
+ #
1572
+ # @!attribute [rw] max_results
1573
+ # The maximum number of objects to return for the request.
1574
+ # @return [Integer]
1575
+ #
1576
+ # @!attribute [rw] next_token
1577
+ # The next token from the previous request.
1578
+ # @return [String]
1579
+ #
1580
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetBatchPredictionJobsRequest AWS API Documentation
1581
+ #
1582
+ class GetBatchPredictionJobsRequest < Struct.new(
1583
+ :job_id,
1584
+ :max_results,
1585
+ :next_token)
1586
+ SENSITIVE = []
1587
+ include Aws::Structure
1588
+ end
1589
+
1590
+ # @!attribute [rw] batch_predictions
1591
+ # An array containing the details of each batch prediction job.
1592
+ # @return [Array<Types::BatchPrediction>]
1593
+ #
1594
+ # @!attribute [rw] next_token
1595
+ # The next token for the subsequent request.
1596
+ # @return [String]
1597
+ #
1598
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetBatchPredictionJobsResult AWS API Documentation
1599
+ #
1600
+ class GetBatchPredictionJobsResult < Struct.new(
1601
+ :batch_predictions,
1602
+ :next_token)
1603
+ SENSITIVE = []
1604
+ include Aws::Structure
1605
+ end
1606
+
1358
1607
  # @note When making an API call, you may pass GetDetectorVersionRequest
1359
1608
  # data as a hash:
1360
1609
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-frauddetector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.18.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: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
66
66
  licenses:
67
67
  - Apache-2.0
68
68
  metadata:
69
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-frauddetector
70
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-frauddetector/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-frauddetector
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-frauddetector/CHANGELOG.md
71
71
  post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths: