aws-sdk-frauddetector 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba3be806251b369ced630edad7f69df468fd906a5036160898262df84c102375
4
- data.tar.gz: 0d26bb8e0a18c9c47e5f8f846b754778422d3a128d868c6cdefa2065e30c26cd
3
+ metadata.gz: 66f777d54022115a373489b7beb9794e02dafb1ba16d893ba49a861074e7ec96
4
+ data.tar.gz: 8c7f45632dbbe216d0f70d6cdb5bf62ad2404f70c142d785cbef0abcbfea77b6
5
5
  SHA512:
6
- metadata.gz: 0630122ccc491152573952be07143020174509886bc2d922a914179171a379d6c12f33b134d4b71911be4d214d5f7d1e0594c68dfc36ae658a9f62813da1a724
7
- data.tar.gz: b5b229e6efbd6952ad99e84e8ee8ecf0b78142ab4f60907783afe1e3476e67485c32028a16ff0b02f896fedeba986cc64b2d11e1cc05d1c753c2e1f1d4636f04
6
+ metadata.gz: e1beb296d7c7958f9d6af0aeaa4dc27548a4aa7b9caddbe5edfe90f33cfe57f7b217f97546f56b72521f6a1c5ea954b48fd7e95f66fa9c35a0399c1fdd9d1bde
7
+ data.tar.gz: a0a7b75f9a9a5fa05198a6fc557d295f7135a73d090b5c971d497120389536a42b87d2e867bf254bae15faaad8524336dd8a1be86e245d771ef20e95e732a4a0
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-frauddetector/customizations'
45
45
  # @service
46
46
  module Aws::FraudDetector
47
47
 
48
- GEM_VERSION = '1.1.0'
48
+ GEM_VERSION = '1.2.0'
49
49
 
50
50
  end
@@ -279,8 +279,7 @@ module Aws::FraudDetector
279
279
  #
280
280
  # @option options [Integer] :http_read_timeout (60) The default
281
281
  # number of seconds to wait for response data. This value can
282
- # safely be set
283
- # per-request on the session yielded by {#session_for}.
282
+ # safely be set per-request on the session.
284
283
  #
285
284
  # @option options [Float] :http_idle_timeout (5) The number of
286
285
  # seconds a connection is allowed to sit idle before it is
@@ -292,7 +291,7 @@ module Aws::FraudDetector
292
291
  # request body. This option has no effect unless the request has
293
292
  # "Expect" header set to "100-continue". Defaults to `nil` which
294
293
  # disables this behaviour. This value can safely be set per
295
- # request on the session yielded by {#session_for}.
294
+ # request on the session.
296
295
  #
297
296
  # @option options [Boolean] :http_wire_trace (false) When `true`,
298
297
  # HTTP debug output will be sent to the `:logger`.
@@ -419,6 +418,23 @@ module Aws::FraudDetector
419
418
  # @option params [Array<Types::ModelVersion>] :model_versions
420
419
  # The model versions to include in the detector version.
421
420
  #
421
+ # @option params [String] :rule_execution_mode
422
+ # The rule execution mode for the rules included in the detector
423
+ # version.
424
+ #
425
+ # You can define and edit the rule mode at the detector version level,
426
+ # when it is in draft status.
427
+ #
428
+ # If you specify `FIRST_MATCHED`, Amazon Fraud Detector evaluates rules
429
+ # sequentially, first to last, stopping at the first matched rule.
430
+ # Amazon Fraud dectector then provides the outcomes for that single
431
+ # rule.
432
+ #
433
+ # If you specifiy `ALL_MATCHED`, Amazon Fraud Detector evaluates all
434
+ # rules and returns the outcomes for all matched rules.
435
+ #
436
+ # The default behavior is `FIRST_MATCHED`.
437
+ #
422
438
  # @return [Types::CreateDetectorVersionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
423
439
  #
424
440
  # * {Types::CreateDetectorVersionResult#detector_id #detector_id} => String
@@ -445,6 +461,7 @@ module Aws::FraudDetector
445
461
  # model_version_number: "nonEmptyString", # required
446
462
  # },
447
463
  # ],
464
+ # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
448
465
  # })
449
466
  #
450
467
  # @example Response structure
@@ -596,7 +613,32 @@ module Aws::FraudDetector
596
613
  req.send_request(options)
597
614
  end
598
615
 
599
- # Deletes the detector version.
616
+ # Deletes the detector. Before deleting a detector, you must first
617
+ # delete all detector versions and rule versions associated with the
618
+ # detector.
619
+ #
620
+ # @option params [required, String] :detector_id
621
+ # The ID of the detector to delete.
622
+ #
623
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
624
+ #
625
+ # @example Request syntax with placeholder values
626
+ #
627
+ # resp = client.delete_detector({
628
+ # detector_id: "identifier", # required
629
+ # })
630
+ #
631
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetector AWS API Documentation
632
+ #
633
+ # @overload delete_detector(params = {})
634
+ # @param [Hash] params ({})
635
+ def delete_detector(params = {}, options = {})
636
+ req = build_request(:delete_detector, params)
637
+ req.send_request(options)
638
+ end
639
+
640
+ # Deletes the detector version. You cannot delete detector versions that
641
+ # are in `ACTIVE` status.
600
642
  #
601
643
  # @option params [required, String] :detector_id
602
644
  # The ID of the parent detector for the detector version to delete.
@@ -644,6 +686,37 @@ module Aws::FraudDetector
644
686
  req.send_request(options)
645
687
  end
646
688
 
689
+ # Deletes the rule version. You cannot delete a rule version if it is
690
+ # used by an `ACTIVE` or `INACTIVE` detector version.
691
+ #
692
+ # @option params [required, String] :detector_id
693
+ # The ID of the detector that includes the rule version to delete.
694
+ #
695
+ # @option params [required, String] :rule_id
696
+ # The rule ID of the rule version to delete.
697
+ #
698
+ # @option params [required, String] :rule_version
699
+ # The rule version to delete.
700
+ #
701
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
702
+ #
703
+ # @example Request syntax with placeholder values
704
+ #
705
+ # resp = client.delete_rule_version({
706
+ # detector_id: "identifier", # required
707
+ # rule_id: "identifier", # required
708
+ # rule_version: "nonEmptyString", # required
709
+ # })
710
+ #
711
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersion AWS API Documentation
712
+ #
713
+ # @overload delete_rule_version(params = {})
714
+ # @param [Hash] params ({})
715
+ def delete_rule_version(params = {}, options = {})
716
+ req = build_request(:delete_rule_version, params)
717
+ req.send_request(options)
718
+ end
719
+
647
720
  # Gets all versions for a specified detector.
648
721
  #
649
722
  # @option params [required, String] :detector_id
@@ -712,6 +785,8 @@ module Aws::FraudDetector
712
785
  # * {Types::DescribeModelVersionsResult#model_version_details #model_version_details} => Array&lt;Types::ModelVersionDetail&gt;
713
786
  # * {Types::DescribeModelVersionsResult#next_token #next_token} => String
714
787
  #
788
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
789
+ #
715
790
  # @example Request syntax with placeholder values
716
791
  #
717
792
  # resp = client.describe_model_versions({
@@ -775,6 +850,7 @@ module Aws::FraudDetector
775
850
  # * {Types::GetDetectorVersionResult#status #status} => String
776
851
  # * {Types::GetDetectorVersionResult#last_updated_time #last_updated_time} => String
777
852
  # * {Types::GetDetectorVersionResult#created_time #created_time} => String
853
+ # * {Types::GetDetectorVersionResult#rule_execution_mode #rule_execution_mode} => String
778
854
  #
779
855
  # @example Request syntax with placeholder values
780
856
  #
@@ -801,6 +877,7 @@ module Aws::FraudDetector
801
877
  # resp.status #=> String, one of "DRAFT", "ACTIVE", "INACTIVE"
802
878
  # resp.last_updated_time #=> String
803
879
  # resp.created_time #=> String
880
+ # resp.rule_execution_mode #=> String, one of "ALL_MATCHED", "FIRST_MATCHED"
804
881
  #
805
882
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersion AWS API Documentation
806
883
  #
@@ -832,6 +909,8 @@ module Aws::FraudDetector
832
909
  # * {Types::GetDetectorsResult#detectors #detectors} => Array&lt;Types::Detector&gt;
833
910
  # * {Types::GetDetectorsResult#next_token #next_token} => String
834
911
  #
912
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
913
+ #
835
914
  # @example Request syntax with placeholder values
836
915
  #
837
916
  # resp = client.get_detectors({
@@ -881,6 +960,8 @@ module Aws::FraudDetector
881
960
  # * {Types::GetExternalModelsResult#external_models #external_models} => Array&lt;Types::ExternalModel&gt;
882
961
  # * {Types::GetExternalModelsResult#next_token #next_token} => String
883
962
  #
963
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
964
+ #
884
965
  # @example Request syntax with placeholder values
885
966
  #
886
967
  # resp = client.get_external_models({
@@ -984,6 +1065,8 @@ module Aws::FraudDetector
984
1065
  # * {Types::GetModelsResult#next_token #next_token} => String
985
1066
  # * {Types::GetModelsResult#models #models} => Array&lt;Types::Model&gt;
986
1067
  #
1068
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1069
+ #
987
1070
  # @example Request syntax with placeholder values
988
1071
  #
989
1072
  # resp = client.get_models({
@@ -1042,6 +1125,8 @@ module Aws::FraudDetector
1042
1125
  # * {Types::GetOutcomesResult#outcomes #outcomes} => Array&lt;Types::Outcome&gt;
1043
1126
  # * {Types::GetOutcomesResult#next_token #next_token} => String
1044
1127
  #
1128
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1129
+ #
1045
1130
  # @example Request syntax with placeholder values
1046
1131
  #
1047
1132
  # resp = client.get_outcomes({
@@ -1092,6 +1177,7 @@ module Aws::FraudDetector
1092
1177
  #
1093
1178
  # * {Types::GetPredictionResult#outcomes #outcomes} => Array&lt;String&gt;
1094
1179
  # * {Types::GetPredictionResult#model_scores #model_scores} => Array&lt;Types::ModelScores&gt;
1180
+ # * {Types::GetPredictionResult#rule_results #rule_results} => Array&lt;Types::RuleResult&gt;
1095
1181
  #
1096
1182
  # @example Request syntax with placeholder values
1097
1183
  #
@@ -1120,6 +1206,10 @@ module Aws::FraudDetector
1120
1206
  # resp.model_scores[0].model_version.model_version_number #=> String
1121
1207
  # resp.model_scores[0].scores #=> Hash
1122
1208
  # resp.model_scores[0].scores["string"] #=> Float
1209
+ # resp.rule_results #=> Array
1210
+ # resp.rule_results[0].rule_id #=> String
1211
+ # resp.rule_results[0].outcomes #=> Array
1212
+ # resp.rule_results[0].outcomes[0] #=> String
1123
1213
  #
1124
1214
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetPrediction AWS API Documentation
1125
1215
  #
@@ -1152,6 +1242,8 @@ module Aws::FraudDetector
1152
1242
  # * {Types::GetRulesResult#rule_details #rule_details} => Array&lt;Types::RuleDetail&gt;
1153
1243
  # * {Types::GetRulesResult#next_token #next_token} => String
1154
1244
  #
1245
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1246
+ #
1155
1247
  # @example Request syntax with placeholder values
1156
1248
  #
1157
1249
  # resp = client.get_rules({
@@ -1207,6 +1299,8 @@ module Aws::FraudDetector
1207
1299
  # * {Types::GetVariablesResult#variables #variables} => Array&lt;Types::Variable&gt;
1208
1300
  # * {Types::GetVariablesResult#next_token #next_token} => String
1209
1301
  #
1302
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1303
+ #
1210
1304
  # @example Request syntax with placeholder values
1211
1305
  #
1212
1306
  # resp = client.get_variables({
@@ -1427,6 +1521,21 @@ module Aws::FraudDetector
1427
1521
  # @option params [Array<Types::ModelVersion>] :model_versions
1428
1522
  # The model versions to include in the detector version.
1429
1523
  #
1524
+ # @option params [String] :rule_execution_mode
1525
+ # The rule execution mode to add to the detector.
1526
+ #
1527
+ # If you specify `FIRST_MATCHED`, Amazon Fraud Detector evaluates rules
1528
+ # sequentially, first to last, stopping at the first matched rule.
1529
+ # Amazon Fraud dectector then provides the outcomes for that single
1530
+ # rule.
1531
+ #
1532
+ # If you specifiy `ALL_MATCHED`, Amazon Fraud Detector evaluates all
1533
+ # rules and returns the outcomes for all matched rules. You can define
1534
+ # and edit the rule mode at the detector version level, when it is in
1535
+ # draft status.
1536
+ #
1537
+ # The default behavior is `FIRST_MATCHED`.
1538
+ #
1430
1539
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1431
1540
  #
1432
1541
  # @example Request syntax with placeholder values
@@ -1450,6 +1559,7 @@ module Aws::FraudDetector
1450
1559
  # model_version_number: "nonEmptyString", # required
1451
1560
  # },
1452
1561
  # ],
1562
+ # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
1453
1563
  # })
1454
1564
  #
1455
1565
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersion AWS API Documentation
@@ -1695,7 +1805,7 @@ module Aws::FraudDetector
1695
1805
  params: params,
1696
1806
  config: config)
1697
1807
  context[:gem_name] = 'aws-sdk-frauddetector'
1698
- context[:gem_version] = '1.1.0'
1808
+ context[:gem_version] = '1.2.0'
1699
1809
  Seahorse::Client::Request.new(handlers, context)
1700
1810
  end
1701
1811
 
@@ -19,6 +19,7 @@ module Aws::FraudDetector
19
19
  BatchGetVariableErrorList = Shapes::ListShape.new(name: 'BatchGetVariableErrorList')
20
20
  BatchGetVariableRequest = Shapes::StructureShape.new(name: 'BatchGetVariableRequest')
21
21
  BatchGetVariableResult = Shapes::StructureShape.new(name: 'BatchGetVariableResult')
22
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
22
23
  CreateDetectorVersionRequest = Shapes::StructureShape.new(name: 'CreateDetectorVersionRequest')
23
24
  CreateDetectorVersionResult = Shapes::StructureShape.new(name: 'CreateDetectorVersionResult')
24
25
  CreateModelVersionRequest = Shapes::StructureShape.new(name: 'CreateModelVersionRequest')
@@ -30,10 +31,14 @@ module Aws::FraudDetector
30
31
  CsvIndexToVariableMap = Shapes::MapShape.new(name: 'CsvIndexToVariableMap')
31
32
  DataSource = Shapes::StringShape.new(name: 'DataSource')
32
33
  DataType = Shapes::StringShape.new(name: 'DataType')
34
+ DeleteDetectorRequest = Shapes::StructureShape.new(name: 'DeleteDetectorRequest')
35
+ DeleteDetectorResult = Shapes::StructureShape.new(name: 'DeleteDetectorResult')
33
36
  DeleteDetectorVersionRequest = Shapes::StructureShape.new(name: 'DeleteDetectorVersionRequest')
34
37
  DeleteDetectorVersionResult = Shapes::StructureShape.new(name: 'DeleteDetectorVersionResult')
35
38
  DeleteEventRequest = Shapes::StructureShape.new(name: 'DeleteEventRequest')
36
39
  DeleteEventResult = Shapes::StructureShape.new(name: 'DeleteEventResult')
40
+ DeleteRuleVersionRequest = Shapes::StructureShape.new(name: 'DeleteRuleVersionRequest')
41
+ DeleteRuleVersionResult = Shapes::StructureShape.new(name: 'DeleteRuleVersionResult')
37
42
  DescribeDetectorRequest = Shapes::StructureShape.new(name: 'DescribeDetectorRequest')
38
43
  DescribeDetectorResult = Shapes::StructureShape.new(name: 'DescribeDetectorResult')
39
44
  DescribeModelVersionsRequest = Shapes::StructureShape.new(name: 'DescribeModelVersionsRequest')
@@ -76,6 +81,7 @@ module Aws::FraudDetector
76
81
  Language = Shapes::StringShape.new(name: 'Language')
77
82
  ListOfModelScores = Shapes::ListShape.new(name: 'ListOfModelScores')
78
83
  ListOfModelVersions = Shapes::ListShape.new(name: 'ListOfModelVersions')
84
+ ListOfRuleResults = Shapes::ListShape.new(name: 'ListOfRuleResults')
79
85
  ListOfStrings = Shapes::ListShape.new(name: 'ListOfStrings')
80
86
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
81
87
  MetricsMap = Shapes::MapShape.new(name: 'MetricsMap')
@@ -116,7 +122,9 @@ module Aws::FraudDetector
116
122
  Rule = Shapes::StructureShape.new(name: 'Rule')
117
123
  RuleDetail = Shapes::StructureShape.new(name: 'RuleDetail')
118
124
  RuleDetailList = Shapes::ListShape.new(name: 'RuleDetailList')
125
+ RuleExecutionMode = Shapes::StringShape.new(name: 'RuleExecutionMode')
119
126
  RuleList = Shapes::ListShape.new(name: 'RuleList')
127
+ RuleResult = Shapes::StructureShape.new(name: 'RuleResult')
120
128
  RulesMaxResults = Shapes::IntegerShape.new(name: 'RulesMaxResults')
121
129
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
122
130
  TrainingDataSource = Shapes::StructureShape.new(name: 'TrainingDataSource')
@@ -182,11 +190,15 @@ module Aws::FraudDetector
182
190
  BatchGetVariableResult.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetVariableErrorList, location_name: "errors"))
183
191
  BatchGetVariableResult.struct_class = Types::BatchGetVariableResult
184
192
 
193
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: string, required: true, location_name: "message"))
194
+ ConflictException.struct_class = Types::ConflictException
195
+
185
196
  CreateDetectorVersionRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
186
197
  CreateDetectorVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: description, location_name: "description"))
187
198
  CreateDetectorVersionRequest.add_member(:external_model_endpoints, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "externalModelEndpoints"))
188
199
  CreateDetectorVersionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: RuleList, required: true, location_name: "rules"))
189
200
  CreateDetectorVersionRequest.add_member(:model_versions, Shapes::ShapeRef.new(shape: ListOfModelVersions, location_name: "modelVersions"))
201
+ CreateDetectorVersionRequest.add_member(:rule_execution_mode, Shapes::ShapeRef.new(shape: RuleExecutionMode, location_name: "ruleExecutionMode"))
190
202
  CreateDetectorVersionRequest.struct_class = Types::CreateDetectorVersionRequest
191
203
 
192
204
  CreateDetectorVersionResult.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, location_name: "detectorId"))
@@ -229,6 +241,11 @@ module Aws::FraudDetector
229
241
  CsvIndexToVariableMap.key = Shapes::ShapeRef.new(shape: string)
230
242
  CsvIndexToVariableMap.value = Shapes::ShapeRef.new(shape: string)
231
243
 
244
+ DeleteDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
245
+ DeleteDetectorRequest.struct_class = Types::DeleteDetectorRequest
246
+
247
+ DeleteDetectorResult.struct_class = Types::DeleteDetectorResult
248
+
232
249
  DeleteDetectorVersionRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
233
250
  DeleteDetectorVersionRequest.add_member(:detector_version_id, Shapes::ShapeRef.new(shape: nonEmptyString, required: true, location_name: "detectorVersionId"))
234
251
  DeleteDetectorVersionRequest.struct_class = Types::DeleteDetectorVersionRequest
@@ -240,6 +257,13 @@ module Aws::FraudDetector
240
257
 
241
258
  DeleteEventResult.struct_class = Types::DeleteEventResult
242
259
 
260
+ DeleteRuleVersionRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
261
+ DeleteRuleVersionRequest.add_member(:rule_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "ruleId"))
262
+ DeleteRuleVersionRequest.add_member(:rule_version, Shapes::ShapeRef.new(shape: nonEmptyString, required: true, location_name: "ruleVersion"))
263
+ DeleteRuleVersionRequest.struct_class = Types::DeleteRuleVersionRequest
264
+
265
+ DeleteRuleVersionResult.struct_class = Types::DeleteRuleVersionResult
266
+
243
267
  DescribeDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
244
268
  DescribeDetectorRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location_name: "nextToken"))
245
269
  DescribeDetectorRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DetectorVersionMaxResults, location_name: "maxResults"))
@@ -308,6 +332,7 @@ module Aws::FraudDetector
308
332
  GetDetectorVersionResult.add_member(:status, Shapes::ShapeRef.new(shape: DetectorVersionStatus, location_name: "status"))
309
333
  GetDetectorVersionResult.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: time, location_name: "lastUpdatedTime"))
310
334
  GetDetectorVersionResult.add_member(:created_time, Shapes::ShapeRef.new(shape: time, location_name: "createdTime"))
335
+ GetDetectorVersionResult.add_member(:rule_execution_mode, Shapes::ShapeRef.new(shape: RuleExecutionMode, location_name: "ruleExecutionMode"))
311
336
  GetDetectorVersionResult.struct_class = Types::GetDetectorVersionResult
312
337
 
313
338
  GetDetectorsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, location_name: "detectorId"))
@@ -368,6 +393,7 @@ module Aws::FraudDetector
368
393
 
369
394
  GetPredictionResult.add_member(:outcomes, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "outcomes"))
370
395
  GetPredictionResult.add_member(:model_scores, Shapes::ShapeRef.new(shape: ListOfModelScores, location_name: "modelScores"))
396
+ GetPredictionResult.add_member(:rule_results, Shapes::ShapeRef.new(shape: ListOfRuleResults, location_name: "ruleResults"))
371
397
  GetPredictionResult.struct_class = Types::GetPredictionResult
372
398
 
373
399
  GetRulesRequest.add_member(:rule_id, Shapes::ShapeRef.new(shape: identifier, location_name: "ruleId"))
@@ -407,6 +433,8 @@ module Aws::FraudDetector
407
433
 
408
434
  ListOfModelVersions.member = Shapes::ShapeRef.new(shape: ModelVersion)
409
435
 
436
+ ListOfRuleResults.member = Shapes::ShapeRef.new(shape: RuleResult)
437
+
410
438
  ListOfStrings.member = Shapes::ShapeRef.new(shape: string)
411
439
 
412
440
  MetricsMap.key = Shapes::ShapeRef.new(shape: string)
@@ -544,6 +572,10 @@ module Aws::FraudDetector
544
572
 
545
573
  RuleList.member = Shapes::ShapeRef.new(shape: Rule)
546
574
 
575
+ RuleResult.add_member(:rule_id, Shapes::ShapeRef.new(shape: string, location_name: "ruleId"))
576
+ RuleResult.add_member(:outcomes, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "outcomes"))
577
+ RuleResult.struct_class = Types::RuleResult
578
+
547
579
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: string, required: true, location_name: "message"))
548
580
  ThrottlingException.struct_class = Types::ThrottlingException
549
581
 
@@ -564,6 +596,7 @@ module Aws::FraudDetector
564
596
  UpdateDetectorVersionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: RuleList, required: true, location_name: "rules"))
565
597
  UpdateDetectorVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: description, location_name: "description"))
566
598
  UpdateDetectorVersionRequest.add_member(:model_versions, Shapes::ShapeRef.new(shape: ListOfModelVersions, location_name: "modelVersions"))
599
+ UpdateDetectorVersionRequest.add_member(:rule_execution_mode, Shapes::ShapeRef.new(shape: RuleExecutionMode, location_name: "ruleExecutionMode"))
567
600
  UpdateDetectorVersionRequest.struct_class = Types::UpdateDetectorVersionRequest
568
601
 
569
602
  UpdateDetectorVersionResult.struct_class = Types::UpdateDetectorVersionResult
@@ -692,6 +725,7 @@ module Aws::FraudDetector
692
725
  o.input = Shapes::ShapeRef.new(shape: CreateModelVersionRequest)
693
726
  o.output = Shapes::ShapeRef.new(shape: CreateModelVersionResult)
694
727
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
728
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
695
729
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
696
730
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
697
731
  end)
@@ -718,6 +752,18 @@ module Aws::FraudDetector
718
752
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
719
753
  end)
720
754
 
755
+ api.add_operation(:delete_detector, Seahorse::Model::Operation.new.tap do |o|
756
+ o.name = "DeleteDetector"
757
+ o.http_method = "POST"
758
+ o.http_request_uri = "/"
759
+ o.input = Shapes::ShapeRef.new(shape: DeleteDetectorRequest)
760
+ o.output = Shapes::ShapeRef.new(shape: DeleteDetectorResult)
761
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
762
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
763
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
764
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
765
+ end)
766
+
721
767
  api.add_operation(:delete_detector_version, Seahorse::Model::Operation.new.tap do |o|
722
768
  o.name = "DeleteDetectorVersion"
723
769
  o.http_method = "POST"
@@ -728,6 +774,7 @@ module Aws::FraudDetector
728
774
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
729
775
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
730
776
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
777
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
731
778
  end)
732
779
 
733
780
  api.add_operation(:delete_event, Seahorse::Model::Operation.new.tap do |o|
@@ -740,6 +787,18 @@ module Aws::FraudDetector
740
787
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
741
788
  end)
742
789
 
790
+ api.add_operation(:delete_rule_version, Seahorse::Model::Operation.new.tap do |o|
791
+ o.name = "DeleteRuleVersion"
792
+ o.http_method = "POST"
793
+ o.http_request_uri = "/"
794
+ o.input = Shapes::ShapeRef.new(shape: DeleteRuleVersionRequest)
795
+ o.output = Shapes::ShapeRef.new(shape: DeleteRuleVersionResult)
796
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
797
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
798
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
799
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
800
+ end)
801
+
743
802
  api.add_operation(:describe_detector, Seahorse::Model::Operation.new.tap do |o|
744
803
  o.name = "DescribeDetector"
745
804
  o.http_method = "POST"
@@ -25,6 +25,7 @@ module Aws::FraudDetector
25
25
  # See {Seahorse::Client::RequestContext} for more information.
26
26
  #
27
27
  # ## Error Classes
28
+ # * {ConflictException}
28
29
  # * {InternalServerException}
29
30
  # * {ResourceNotFoundException}
30
31
  # * {ThrottlingException}
@@ -36,6 +37,21 @@ module Aws::FraudDetector
36
37
 
37
38
  extend Aws::Errors::DynamicErrors
38
39
 
40
+ class ConflictException < ServiceError
41
+
42
+ # @param [Seahorse::Client::RequestContext] context
43
+ # @param [String] message
44
+ # @param [Aws::FraudDetector::Types::ConflictException] data
45
+ def initialize(context, message, data = Aws::EmptyStructure.new)
46
+ super(context, message, data)
47
+ end
48
+
49
+ # @return [String]
50
+ def message
51
+ @message || @data[:message]
52
+ end
53
+ end
54
+
39
55
  class InternalServerException < ServiceError
40
56
 
41
57
  # @param [Seahorse::Client::RequestContext] context
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::FraudDetector
9
- # This class provides a resource oriented interface for FraudDetector.
10
- # To create a resource object:
11
- # resource = Aws::FraudDetector::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::FraudDetector::Client.new(region: 'us-west-2')
15
- # resource = Aws::FraudDetector::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -126,6 +126,31 @@ module Aws::FraudDetector
126
126
  include Aws::Structure
127
127
  end
128
128
 
129
+ # An exception indicating there was a conflict during a delete
130
+ # operation. The following delete operations can cause a conflict
131
+ # exception:
132
+ #
133
+ # * DeleteDetector: A conflict exception will occur if the detector has
134
+ # associated `Rules` or `DetectorVersions`. You can only delete a
135
+ # detector if it has no `Rules` or `DetectorVersions`.
136
+ #
137
+ # * DeleteDetectorVersion: A conflict exception will occur if the
138
+ # `DetectorVersion` status is `ACTIVE`.
139
+ #
140
+ # * DeleteRuleVersion: A conflict exception will occur if the
141
+ # `RuleVersion` is in use by an associated `ACTIVE` or `INACTIVE
142
+ # DetectorVersion`.
143
+ #
144
+ # @!attribute [rw] message
145
+ # @return [String]
146
+ #
147
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ConflictException AWS API Documentation
148
+ #
149
+ class ConflictException < Struct.new(
150
+ :message)
151
+ include Aws::Structure
152
+ end
153
+
129
154
  # @note When making an API call, you may pass CreateDetectorVersionRequest
130
155
  # data as a hash:
131
156
  #
@@ -147,6 +172,7 @@ module Aws::FraudDetector
147
172
  # model_version_number: "nonEmptyString", # required
148
173
  # },
149
174
  # ],
175
+ # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
150
176
  # }
151
177
  #
152
178
  # @!attribute [rw] detector_id
@@ -170,6 +196,24 @@ module Aws::FraudDetector
170
196
  # The model versions to include in the detector version.
171
197
  # @return [Array<Types::ModelVersion>]
172
198
  #
199
+ # @!attribute [rw] rule_execution_mode
200
+ # The rule execution mode for the rules included in the detector
201
+ # version.
202
+ #
203
+ # You can define and edit the rule mode at the detector version level,
204
+ # when it is in draft status.
205
+ #
206
+ # If you specify `FIRST_MATCHED`, Amazon Fraud Detector evaluates
207
+ # rules sequentially, first to last, stopping at the first matched
208
+ # rule. Amazon Fraud dectector then provides the outcomes for that
209
+ # single rule.
210
+ #
211
+ # If you specifiy `ALL_MATCHED`, Amazon Fraud Detector evaluates all
212
+ # rules and returns the outcomes for all matched rules.
213
+ #
214
+ # The default behavior is `FIRST_MATCHED`.
215
+ # @return [String]
216
+ #
173
217
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateDetectorVersionRequest AWS API Documentation
174
218
  #
175
219
  class CreateDetectorVersionRequest < Struct.new(
@@ -177,7 +221,8 @@ module Aws::FraudDetector
177
221
  :description,
178
222
  :external_model_endpoints,
179
223
  :rules,
180
- :model_versions)
224
+ :model_versions,
225
+ :rule_execution_mode)
181
226
  include Aws::Structure
182
227
  end
183
228
 
@@ -369,6 +414,28 @@ module Aws::FraudDetector
369
414
  #
370
415
  class CreateVariableResult < Aws::EmptyStructure; end
371
416
 
417
+ # @note When making an API call, you may pass DeleteDetectorRequest
418
+ # data as a hash:
419
+ #
420
+ # {
421
+ # detector_id: "identifier", # required
422
+ # }
423
+ #
424
+ # @!attribute [rw] detector_id
425
+ # The ID of the detector to delete.
426
+ # @return [String]
427
+ #
428
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorRequest AWS API Documentation
429
+ #
430
+ class DeleteDetectorRequest < Struct.new(
431
+ :detector_id)
432
+ include Aws::Structure
433
+ end
434
+
435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorResult AWS API Documentation
436
+ #
437
+ class DeleteDetectorResult < Aws::EmptyStructure; end
438
+
372
439
  # @note When making an API call, you may pass DeleteDetectorVersionRequest
373
440
  # data as a hash:
374
441
  #
@@ -419,6 +486,40 @@ module Aws::FraudDetector
419
486
  #
420
487
  class DeleteEventResult < Aws::EmptyStructure; end
421
488
 
489
+ # @note When making an API call, you may pass DeleteRuleVersionRequest
490
+ # data as a hash:
491
+ #
492
+ # {
493
+ # detector_id: "identifier", # required
494
+ # rule_id: "identifier", # required
495
+ # rule_version: "nonEmptyString", # required
496
+ # }
497
+ #
498
+ # @!attribute [rw] detector_id
499
+ # The ID of the detector that includes the rule version to delete.
500
+ # @return [String]
501
+ #
502
+ # @!attribute [rw] rule_id
503
+ # The rule ID of the rule version to delete.
504
+ # @return [String]
505
+ #
506
+ # @!attribute [rw] rule_version
507
+ # The rule version to delete.
508
+ # @return [String]
509
+ #
510
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersionRequest AWS API Documentation
511
+ #
512
+ class DeleteRuleVersionRequest < Struct.new(
513
+ :detector_id,
514
+ :rule_id,
515
+ :rule_version)
516
+ include Aws::Structure
517
+ end
518
+
519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersionResult AWS API Documentation
520
+ #
521
+ class DeleteRuleVersionResult < Aws::EmptyStructure; end
522
+
422
523
  # @note When making an API call, you may pass DescribeDetectorRequest
423
524
  # data as a hash:
424
525
  #
@@ -693,6 +794,20 @@ module Aws::FraudDetector
693
794
  # The timestamp when the detector version was created.
694
795
  # @return [String]
695
796
  #
797
+ # @!attribute [rw] rule_execution_mode
798
+ # The execution mode of the rule in the dectector
799
+ #
800
+ # `FIRST_MATCHED` indicates that Amazon Fraud Detector evaluates rules
801
+ # sequentially, first to last, stopping at the first matched rule.
802
+ # Amazon Fraud dectector then provides the outcomes for that single
803
+ # rule.
804
+ #
805
+ # `ALL_MATCHED` indicates that Amazon Fraud Detector evaluates all
806
+ # rules and returns the outcomes for all matched rules. You can define
807
+ # and edit the rule mode at the detector version level, when it is in
808
+ # draft status.
809
+ # @return [String]
810
+ #
696
811
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersionResult AWS API Documentation
697
812
  #
698
813
  class GetDetectorVersionResult < Struct.new(
@@ -704,7 +819,8 @@ module Aws::FraudDetector
704
819
  :rules,
705
820
  :status,
706
821
  :last_updated_time,
707
- :created_time)
822
+ :created_time,
823
+ :rule_execution_mode)
708
824
  include Aws::Structure
709
825
  end
710
826
 
@@ -1018,11 +1134,16 @@ module Aws::FraudDetector
1018
1134
  # The model scores for models used in the detector version.
1019
1135
  # @return [Array<Types::ModelScores>]
1020
1136
  #
1137
+ # @!attribute [rw] rule_results
1138
+ # The rule results in the prediction.
1139
+ # @return [Array<Types::RuleResult>]
1140
+ #
1021
1141
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetPredictionResult AWS API Documentation
1022
1142
  #
1023
1143
  class GetPredictionResult < Struct.new(
1024
1144
  :outcomes,
1025
- :model_scores)
1145
+ :model_scores,
1146
+ :rule_results)
1026
1147
  include Aws::Structure
1027
1148
  end
1028
1149
 
@@ -1827,6 +1948,24 @@ module Aws::FraudDetector
1827
1948
  include Aws::Structure
1828
1949
  end
1829
1950
 
1951
+ # The rule results.
1952
+ #
1953
+ # @!attribute [rw] rule_id
1954
+ # The rule ID that was matched, based on the rule execution mode.
1955
+ # @return [String]
1956
+ #
1957
+ # @!attribute [rw] outcomes
1958
+ # The outcomes of the matched rule, based on the rule execution mode.
1959
+ # @return [Array<String>]
1960
+ #
1961
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/RuleResult AWS API Documentation
1962
+ #
1963
+ class RuleResult < Struct.new(
1964
+ :rule_id,
1965
+ :outcomes)
1966
+ include Aws::Structure
1967
+ end
1968
+
1830
1969
  # An exception indicating a throttling error.
1831
1970
  #
1832
1971
  # @!attribute [rw] message
@@ -1921,6 +2060,7 @@ module Aws::FraudDetector
1921
2060
  # model_version_number: "nonEmptyString", # required
1922
2061
  # },
1923
2062
  # ],
2063
+ # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
1924
2064
  # }
1925
2065
  #
1926
2066
  # @!attribute [rw] detector_id
@@ -1948,6 +2088,22 @@ module Aws::FraudDetector
1948
2088
  # The model versions to include in the detector version.
1949
2089
  # @return [Array<Types::ModelVersion>]
1950
2090
  #
2091
+ # @!attribute [rw] rule_execution_mode
2092
+ # The rule execution mode to add to the detector.
2093
+ #
2094
+ # If you specify `FIRST_MATCHED`, Amazon Fraud Detector evaluates
2095
+ # rules sequentially, first to last, stopping at the first matched
2096
+ # rule. Amazon Fraud dectector then provides the outcomes for that
2097
+ # single rule.
2098
+ #
2099
+ # If you specifiy `ALL_MATCHED`, Amazon Fraud Detector evaluates all
2100
+ # rules and returns the outcomes for all matched rules. You can define
2101
+ # and edit the rule mode at the detector version level, when it is in
2102
+ # draft status.
2103
+ #
2104
+ # The default behavior is `FIRST_MATCHED`.
2105
+ # @return [String]
2106
+ #
1951
2107
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionRequest AWS API Documentation
1952
2108
  #
1953
2109
  class UpdateDetectorVersionRequest < Struct.new(
@@ -1956,7 +2112,8 @@ module Aws::FraudDetector
1956
2112
  :external_model_endpoints,
1957
2113
  :rules,
1958
2114
  :description,
1959
- :model_versions)
2115
+ :model_versions,
2116
+ :rule_execution_mode)
1960
2117
  include Aws::Structure
1961
2118
  end
1962
2119
 
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.1.0
4
+ version: 1.2.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: 2020-03-16 00:00:00.000000000 Z
11
+ date: 2020-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -80,7 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.0.3
83
+ rubyforge_project:
84
+ rubygems_version: 2.7.6.2
84
85
  signing_key:
85
86
  specification_version: 4
86
87
  summary: AWS SDK for Ruby - Amazon Fraud Detector