aws-sdk-frauddetector 1.1.0 → 1.6.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.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -25,6 +27,7 @@ module Aws::FraudDetector
25
27
  # See {Seahorse::Client::RequestContext} for more information.
26
28
  #
27
29
  # ## Error Classes
30
+ # * {ConflictException}
28
31
  # * {InternalServerException}
29
32
  # * {ResourceNotFoundException}
30
33
  # * {ThrottlingException}
@@ -36,6 +39,21 @@ module Aws::FraudDetector
36
39
 
37
40
  extend Aws::Errors::DynamicErrors
38
41
 
42
+ class ConflictException < ServiceError
43
+
44
+ # @param [Seahorse::Client::RequestContext] context
45
+ # @param [String] message
46
+ # @param [Aws::FraudDetector::Types::ConflictException] data
47
+ def initialize(context, message, data = Aws::EmptyStructure.new)
48
+ super(context, message, data)
49
+ end
50
+
51
+ # @return [String]
52
+ def message
53
+ @message || @data[:message]
54
+ end
55
+ end
56
+
39
57
  class InternalServerException < ServiceError
40
58
 
41
59
  # @param [Seahorse::Client::RequestContext] context
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,13 +8,7 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  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)
11
+
16
12
  class Resource
17
13
 
18
14
  # @param options ({})
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -28,6 +30,7 @@ module Aws::FraudDetector
28
30
  :name,
29
31
  :code,
30
32
  :message)
33
+ SENSITIVE = []
31
34
  include Aws::Structure
32
35
  end
33
36
 
@@ -55,6 +58,7 @@ module Aws::FraudDetector
55
58
  #
56
59
  class BatchCreateVariableRequest < Struct.new(
57
60
  :variable_entries)
61
+ SENSITIVE = []
58
62
  include Aws::Structure
59
63
  end
60
64
 
@@ -66,6 +70,7 @@ module Aws::FraudDetector
66
70
  #
67
71
  class BatchCreateVariableResult < Struct.new(
68
72
  :errors)
73
+ SENSITIVE = []
69
74
  include Aws::Structure
70
75
  end
71
76
 
@@ -89,6 +94,7 @@ module Aws::FraudDetector
89
94
  :name,
90
95
  :code,
91
96
  :message)
97
+ SENSITIVE = []
92
98
  include Aws::Structure
93
99
  end
94
100
 
@@ -107,6 +113,7 @@ module Aws::FraudDetector
107
113
  #
108
114
  class BatchGetVariableRequest < Struct.new(
109
115
  :names)
116
+ SENSITIVE = []
110
117
  include Aws::Structure
111
118
  end
112
119
 
@@ -123,6 +130,33 @@ module Aws::FraudDetector
123
130
  class BatchGetVariableResult < Struct.new(
124
131
  :variables,
125
132
  :errors)
133
+ SENSITIVE = []
134
+ include Aws::Structure
135
+ end
136
+
137
+ # An exception indicating there was a conflict during a delete
138
+ # operation. The following delete operations can cause a conflict
139
+ # exception:
140
+ #
141
+ # * DeleteDetector: A conflict exception will occur if the detector has
142
+ # associated `Rules` or `DetectorVersions`. You can only delete a
143
+ # detector if it has no `Rules` or `DetectorVersions`.
144
+ #
145
+ # * DeleteDetectorVersion: A conflict exception will occur if the
146
+ # `DetectorVersion` status is `ACTIVE`.
147
+ #
148
+ # * DeleteRuleVersion: A conflict exception will occur if the
149
+ # `RuleVersion` is in use by an associated `ACTIVE` or `INACTIVE
150
+ # DetectorVersion`.
151
+ #
152
+ # @!attribute [rw] message
153
+ # @return [String]
154
+ #
155
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ConflictException AWS API Documentation
156
+ #
157
+ class ConflictException < Struct.new(
158
+ :message)
159
+ SENSITIVE = []
126
160
  include Aws::Structure
127
161
  end
128
162
 
@@ -147,6 +181,7 @@ module Aws::FraudDetector
147
181
  # model_version_number: "nonEmptyString", # required
148
182
  # },
149
183
  # ],
184
+ # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
150
185
  # }
151
186
  #
152
187
  # @!attribute [rw] detector_id
@@ -170,6 +205,24 @@ module Aws::FraudDetector
170
205
  # The model versions to include in the detector version.
171
206
  # @return [Array<Types::ModelVersion>]
172
207
  #
208
+ # @!attribute [rw] rule_execution_mode
209
+ # The rule execution mode for the rules included in the detector
210
+ # version.
211
+ #
212
+ # You can define and edit the rule mode at the detector version level,
213
+ # when it is in draft status.
214
+ #
215
+ # If you specify `FIRST_MATCHED`, Amazon Fraud Detector evaluates
216
+ # rules sequentially, first to last, stopping at the first matched
217
+ # rule. Amazon Fraud dectector then provides the outcomes for that
218
+ # single rule.
219
+ #
220
+ # If you specifiy `ALL_MATCHED`, Amazon Fraud Detector evaluates all
221
+ # rules and returns the outcomes for all matched rules.
222
+ #
223
+ # The default behavior is `FIRST_MATCHED`.
224
+ # @return [String]
225
+ #
173
226
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateDetectorVersionRequest AWS API Documentation
174
227
  #
175
228
  class CreateDetectorVersionRequest < Struct.new(
@@ -177,7 +230,9 @@ module Aws::FraudDetector
177
230
  :description,
178
231
  :external_model_endpoints,
179
232
  :rules,
180
- :model_versions)
233
+ :model_versions,
234
+ :rule_execution_mode)
235
+ SENSITIVE = []
181
236
  include Aws::Structure
182
237
  end
183
238
 
@@ -199,6 +254,7 @@ module Aws::FraudDetector
199
254
  :detector_id,
200
255
  :detector_version_id,
201
256
  :status)
257
+ SENSITIVE = []
202
258
  include Aws::Structure
203
259
  end
204
260
 
@@ -229,6 +285,7 @@ module Aws::FraudDetector
229
285
  :model_id,
230
286
  :model_type,
231
287
  :description)
288
+ SENSITIVE = []
232
289
  include Aws::Structure
233
290
  end
234
291
 
@@ -255,6 +312,7 @@ module Aws::FraudDetector
255
312
  :model_type,
256
313
  :model_version_number,
257
314
  :status)
315
+ SENSITIVE = []
258
316
  include Aws::Structure
259
317
  end
260
318
 
@@ -303,6 +361,7 @@ module Aws::FraudDetector
303
361
  :expression,
304
362
  :language,
305
363
  :outcomes)
364
+ SENSITIVE = []
306
365
  include Aws::Structure
307
366
  end
308
367
 
@@ -314,6 +373,7 @@ module Aws::FraudDetector
314
373
  #
315
374
  class CreateRuleResult < Struct.new(
316
375
  :rule)
376
+ SENSITIVE = []
317
377
  include Aws::Structure
318
378
  end
319
379
 
@@ -362,6 +422,7 @@ module Aws::FraudDetector
362
422
  :default_value,
363
423
  :description,
364
424
  :variable_type)
425
+ SENSITIVE = []
365
426
  include Aws::Structure
366
427
  end
367
428
 
@@ -369,6 +430,29 @@ module Aws::FraudDetector
369
430
  #
370
431
  class CreateVariableResult < Aws::EmptyStructure; end
371
432
 
433
+ # @note When making an API call, you may pass DeleteDetectorRequest
434
+ # data as a hash:
435
+ #
436
+ # {
437
+ # detector_id: "identifier", # required
438
+ # }
439
+ #
440
+ # @!attribute [rw] detector_id
441
+ # The ID of the detector to delete.
442
+ # @return [String]
443
+ #
444
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorRequest AWS API Documentation
445
+ #
446
+ class DeleteDetectorRequest < Struct.new(
447
+ :detector_id)
448
+ SENSITIVE = []
449
+ include Aws::Structure
450
+ end
451
+
452
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorResult AWS API Documentation
453
+ #
454
+ class DeleteDetectorResult < Aws::EmptyStructure; end
455
+
372
456
  # @note When making an API call, you may pass DeleteDetectorVersionRequest
373
457
  # data as a hash:
374
458
  #
@@ -390,6 +474,7 @@ module Aws::FraudDetector
390
474
  class DeleteDetectorVersionRequest < Struct.new(
391
475
  :detector_id,
392
476
  :detector_version_id)
477
+ SENSITIVE = []
393
478
  include Aws::Structure
394
479
  end
395
480
 
@@ -412,6 +497,7 @@ module Aws::FraudDetector
412
497
  #
413
498
  class DeleteEventRequest < Struct.new(
414
499
  :event_id)
500
+ SENSITIVE = []
415
501
  include Aws::Structure
416
502
  end
417
503
 
@@ -419,6 +505,41 @@ module Aws::FraudDetector
419
505
  #
420
506
  class DeleteEventResult < Aws::EmptyStructure; end
421
507
 
508
+ # @note When making an API call, you may pass DeleteRuleVersionRequest
509
+ # data as a hash:
510
+ #
511
+ # {
512
+ # detector_id: "identifier", # required
513
+ # rule_id: "identifier", # required
514
+ # rule_version: "nonEmptyString", # required
515
+ # }
516
+ #
517
+ # @!attribute [rw] detector_id
518
+ # The ID of the detector that includes the rule version to delete.
519
+ # @return [String]
520
+ #
521
+ # @!attribute [rw] rule_id
522
+ # The rule ID of the rule version to delete.
523
+ # @return [String]
524
+ #
525
+ # @!attribute [rw] rule_version
526
+ # The rule version to delete.
527
+ # @return [String]
528
+ #
529
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersionRequest AWS API Documentation
530
+ #
531
+ class DeleteRuleVersionRequest < Struct.new(
532
+ :detector_id,
533
+ :rule_id,
534
+ :rule_version)
535
+ SENSITIVE = []
536
+ include Aws::Structure
537
+ end
538
+
539
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersionResult AWS API Documentation
540
+ #
541
+ class DeleteRuleVersionResult < Aws::EmptyStructure; end
542
+
422
543
  # @note When making an API call, you may pass DescribeDetectorRequest
423
544
  # data as a hash:
424
545
  #
@@ -446,6 +567,7 @@ module Aws::FraudDetector
446
567
  :detector_id,
447
568
  :next_token,
448
569
  :max_results)
570
+ SENSITIVE = []
449
571
  include Aws::Structure
450
572
  end
451
573
 
@@ -467,6 +589,7 @@ module Aws::FraudDetector
467
589
  :detector_id,
468
590
  :detector_version_summaries,
469
591
  :next_token)
592
+ SENSITIVE = []
470
593
  include Aws::Structure
471
594
  end
472
595
 
@@ -509,6 +632,7 @@ module Aws::FraudDetector
509
632
  :model_type,
510
633
  :next_token,
511
634
  :max_results)
635
+ SENSITIVE = []
512
636
  include Aws::Structure
513
637
  end
514
638
 
@@ -525,6 +649,7 @@ module Aws::FraudDetector
525
649
  class DescribeModelVersionsResult < Struct.new(
526
650
  :model_version_details,
527
651
  :next_token)
652
+ SENSITIVE = []
528
653
  include Aws::Structure
529
654
  end
530
655
 
@@ -553,6 +678,7 @@ module Aws::FraudDetector
553
678
  :description,
554
679
  :last_updated_time,
555
680
  :created_time)
681
+ SENSITIVE = []
556
682
  include Aws::Structure
557
683
  end
558
684
 
@@ -581,6 +707,7 @@ module Aws::FraudDetector
581
707
  :status,
582
708
  :description,
583
709
  :last_updated_time)
710
+ SENSITIVE = []
584
711
  include Aws::Structure
585
712
  end
586
713
 
@@ -629,6 +756,7 @@ module Aws::FraudDetector
629
756
  :model_endpoint_status,
630
757
  :last_updated_time,
631
758
  :created_time)
759
+ SENSITIVE = []
632
760
  include Aws::Structure
633
761
  end
634
762
 
@@ -653,6 +781,7 @@ module Aws::FraudDetector
653
781
  class GetDetectorVersionRequest < Struct.new(
654
782
  :detector_id,
655
783
  :detector_version_id)
784
+ SENSITIVE = []
656
785
  include Aws::Structure
657
786
  end
658
787
 
@@ -693,6 +822,20 @@ module Aws::FraudDetector
693
822
  # The timestamp when the detector version was created.
694
823
  # @return [String]
695
824
  #
825
+ # @!attribute [rw] rule_execution_mode
826
+ # The execution mode of the rule in the dectector
827
+ #
828
+ # `FIRST_MATCHED` indicates that Amazon Fraud Detector evaluates rules
829
+ # sequentially, first to last, stopping at the first matched rule.
830
+ # Amazon Fraud dectector then provides the outcomes for that single
831
+ # rule.
832
+ #
833
+ # `ALL_MATCHED` indicates that Amazon Fraud Detector evaluates all
834
+ # rules and returns the outcomes for all matched rules. You can define
835
+ # and edit the rule mode at the detector version level, when it is in
836
+ # draft status.
837
+ # @return [String]
838
+ #
696
839
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersionResult AWS API Documentation
697
840
  #
698
841
  class GetDetectorVersionResult < Struct.new(
@@ -704,7 +847,9 @@ module Aws::FraudDetector
704
847
  :rules,
705
848
  :status,
706
849
  :last_updated_time,
707
- :created_time)
850
+ :created_time,
851
+ :rule_execution_mode)
852
+ SENSITIVE = []
708
853
  include Aws::Structure
709
854
  end
710
855
 
@@ -735,6 +880,7 @@ module Aws::FraudDetector
735
880
  :detector_id,
736
881
  :next_token,
737
882
  :max_results)
883
+ SENSITIVE = []
738
884
  include Aws::Structure
739
885
  end
740
886
 
@@ -751,6 +897,7 @@ module Aws::FraudDetector
751
897
  class GetDetectorsResult < Struct.new(
752
898
  :detectors,
753
899
  :next_token)
900
+ SENSITIVE = []
754
901
  include Aws::Structure
755
902
  end
756
903
 
@@ -781,6 +928,7 @@ module Aws::FraudDetector
781
928
  :model_endpoint,
782
929
  :next_token,
783
930
  :max_results)
931
+ SENSITIVE = []
784
932
  include Aws::Structure
785
933
  end
786
934
 
@@ -797,6 +945,7 @@ module Aws::FraudDetector
797
945
  class GetExternalModelsResult < Struct.new(
798
946
  :external_models,
799
947
  :next_token)
948
+ SENSITIVE = []
800
949
  include Aws::Structure
801
950
  end
802
951
 
@@ -827,6 +976,7 @@ module Aws::FraudDetector
827
976
  :model_id,
828
977
  :model_type,
829
978
  :model_version_number)
979
+ SENSITIVE = []
830
980
  include Aws::Structure
831
981
  end
832
982
 
@@ -858,6 +1008,7 @@ module Aws::FraudDetector
858
1008
  :model_version_number,
859
1009
  :description,
860
1010
  :status)
1011
+ SENSITIVE = []
861
1012
  include Aws::Structure
862
1013
  end
863
1014
 
@@ -894,6 +1045,7 @@ module Aws::FraudDetector
894
1045
  :model_id,
895
1046
  :next_token,
896
1047
  :max_results)
1048
+ SENSITIVE = []
897
1049
  include Aws::Structure
898
1050
  end
899
1051
 
@@ -910,6 +1062,7 @@ module Aws::FraudDetector
910
1062
  class GetModelsResult < Struct.new(
911
1063
  :next_token,
912
1064
  :models)
1065
+ SENSITIVE = []
913
1066
  include Aws::Structure
914
1067
  end
915
1068
 
@@ -940,6 +1093,7 @@ module Aws::FraudDetector
940
1093
  :name,
941
1094
  :next_token,
942
1095
  :max_results)
1096
+ SENSITIVE = []
943
1097
  include Aws::Structure
944
1098
  end
945
1099
 
@@ -956,6 +1110,7 @@ module Aws::FraudDetector
956
1110
  class GetOutcomesResult < Struct.new(
957
1111
  :outcomes,
958
1112
  :next_token)
1113
+ SENSITIVE = []
959
1114
  include Aws::Structure
960
1115
  end
961
1116
 
@@ -1007,6 +1162,7 @@ module Aws::FraudDetector
1007
1162
  :event_id,
1008
1163
  :event_attributes,
1009
1164
  :external_model_endpoint_data_blobs)
1165
+ SENSITIVE = [:external_model_endpoint_data_blobs]
1010
1166
  include Aws::Structure
1011
1167
  end
1012
1168
 
@@ -1018,11 +1174,17 @@ module Aws::FraudDetector
1018
1174
  # The model scores for models used in the detector version.
1019
1175
  # @return [Array<Types::ModelScores>]
1020
1176
  #
1177
+ # @!attribute [rw] rule_results
1178
+ # The rule results in the prediction.
1179
+ # @return [Array<Types::RuleResult>]
1180
+ #
1021
1181
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetPredictionResult AWS API Documentation
1022
1182
  #
1023
1183
  class GetPredictionResult < Struct.new(
1024
1184
  :outcomes,
1025
- :model_scores)
1185
+ :model_scores,
1186
+ :rule_results)
1187
+ SENSITIVE = []
1026
1188
  include Aws::Structure
1027
1189
  end
1028
1190
 
@@ -1065,6 +1227,7 @@ module Aws::FraudDetector
1065
1227
  :rule_version,
1066
1228
  :next_token,
1067
1229
  :max_results)
1230
+ SENSITIVE = []
1068
1231
  include Aws::Structure
1069
1232
  end
1070
1233
 
@@ -1081,6 +1244,7 @@ module Aws::FraudDetector
1081
1244
  class GetRulesResult < Struct.new(
1082
1245
  :rule_details,
1083
1246
  :next_token)
1247
+ SENSITIVE = []
1084
1248
  include Aws::Structure
1085
1249
  end
1086
1250
 
@@ -1111,6 +1275,7 @@ module Aws::FraudDetector
1111
1275
  :name,
1112
1276
  :next_token,
1113
1277
  :max_results)
1278
+ SENSITIVE = []
1114
1279
  include Aws::Structure
1115
1280
  end
1116
1281
 
@@ -1127,6 +1292,7 @@ module Aws::FraudDetector
1127
1292
  class GetVariablesResult < Struct.new(
1128
1293
  :variables,
1129
1294
  :next_token)
1295
+ SENSITIVE = []
1130
1296
  include Aws::Structure
1131
1297
  end
1132
1298
 
@@ -1139,6 +1305,7 @@ module Aws::FraudDetector
1139
1305
  #
1140
1306
  class InternalServerException < Struct.new(
1141
1307
  :message)
1308
+ SENSITIVE = []
1142
1309
  include Aws::Structure
1143
1310
  end
1144
1311
 
@@ -1174,6 +1341,7 @@ module Aws::FraudDetector
1174
1341
  class LabelSchema < Struct.new(
1175
1342
  :label_key,
1176
1343
  :label_mapper)
1344
+ SENSITIVE = []
1177
1345
  include Aws::Structure
1178
1346
  end
1179
1347
 
@@ -1222,6 +1390,7 @@ module Aws::FraudDetector
1222
1390
  :label_schema,
1223
1391
  :last_updated_time,
1224
1392
  :created_time)
1393
+ SENSITIVE = []
1225
1394
  include Aws::Structure
1226
1395
  end
1227
1396
 
@@ -1252,6 +1421,7 @@ module Aws::FraudDetector
1252
1421
  class ModelEndpointDataBlob < Struct.new(
1253
1422
  :byte_buffer,
1254
1423
  :content_type)
1424
+ SENSITIVE = []
1255
1425
  include Aws::Structure
1256
1426
  end
1257
1427
 
@@ -1302,6 +1472,7 @@ module Aws::FraudDetector
1302
1472
  :is_opaque,
1303
1473
  :json_input_template,
1304
1474
  :csv_input_template)
1475
+ SENSITIVE = []
1305
1476
  include Aws::Structure
1306
1477
  end
1307
1478
 
@@ -1340,6 +1511,7 @@ module Aws::FraudDetector
1340
1511
  :format,
1341
1512
  :json_key_to_variable_map,
1342
1513
  :csv_index_to_variable_map)
1514
+ SENSITIVE = []
1343
1515
  include Aws::Structure
1344
1516
  end
1345
1517
 
@@ -1358,6 +1530,7 @@ module Aws::FraudDetector
1358
1530
  class ModelScores < Struct.new(
1359
1531
  :model_version,
1360
1532
  :scores)
1533
+ SENSITIVE = []
1361
1534
  include Aws::Structure
1362
1535
  end
1363
1536
 
@@ -1384,6 +1557,7 @@ module Aws::FraudDetector
1384
1557
  class ModelVariable < Struct.new(
1385
1558
  :name,
1386
1559
  :index)
1560
+ SENSITIVE = []
1387
1561
  include Aws::Structure
1388
1562
  end
1389
1563
 
@@ -1416,6 +1590,7 @@ module Aws::FraudDetector
1416
1590
  :model_id,
1417
1591
  :model_type,
1418
1592
  :model_version_number)
1593
+ SENSITIVE = []
1419
1594
  include Aws::Structure
1420
1595
  end
1421
1596
 
@@ -1484,6 +1659,7 @@ module Aws::FraudDetector
1484
1659
  :training_metrics,
1485
1660
  :last_updated_time,
1486
1661
  :created_time)
1662
+ SENSITIVE = []
1487
1663
  include Aws::Structure
1488
1664
  end
1489
1665
 
@@ -1512,6 +1688,7 @@ module Aws::FraudDetector
1512
1688
  :description,
1513
1689
  :last_updated_time,
1514
1690
  :created_time)
1691
+ SENSITIVE = []
1515
1692
  include Aws::Structure
1516
1693
  end
1517
1694
 
@@ -1536,6 +1713,7 @@ module Aws::FraudDetector
1536
1713
  class PutDetectorRequest < Struct.new(
1537
1714
  :detector_id,
1538
1715
  :description)
1716
+ SENSITIVE = []
1539
1717
  include Aws::Structure
1540
1718
  end
1541
1719
 
@@ -1604,6 +1782,7 @@ module Aws::FraudDetector
1604
1782
  :input_configuration,
1605
1783
  :output_configuration,
1606
1784
  :model_endpoint_status)
1785
+ SENSITIVE = []
1607
1786
  include Aws::Structure
1608
1787
  end
1609
1788
 
@@ -1669,6 +1848,7 @@ module Aws::FraudDetector
1669
1848
  :training_data_source,
1670
1849
  :model_variables,
1671
1850
  :label_schema)
1851
+ SENSITIVE = []
1672
1852
  include Aws::Structure
1673
1853
  end
1674
1854
 
@@ -1697,6 +1877,7 @@ module Aws::FraudDetector
1697
1877
  class PutOutcomeRequest < Struct.new(
1698
1878
  :name,
1699
1879
  :description)
1880
+ SENSITIVE = []
1700
1881
  include Aws::Structure
1701
1882
  end
1702
1883
 
@@ -1713,6 +1894,7 @@ module Aws::FraudDetector
1713
1894
  #
1714
1895
  class ResourceNotFoundException < Struct.new(
1715
1896
  :message)
1897
+ SENSITIVE = []
1716
1898
  include Aws::Structure
1717
1899
  end
1718
1900
 
@@ -1739,6 +1921,7 @@ module Aws::FraudDetector
1739
1921
  class Role < Struct.new(
1740
1922
  :arn,
1741
1923
  :name)
1924
+ SENSITIVE = []
1742
1925
  include Aws::Structure
1743
1926
  end
1744
1927
 
@@ -1771,6 +1954,7 @@ module Aws::FraudDetector
1771
1954
  :detector_id,
1772
1955
  :rule_id,
1773
1956
  :rule_version)
1957
+ SENSITIVE = []
1774
1958
  include Aws::Structure
1775
1959
  end
1776
1960
 
@@ -1824,6 +2008,26 @@ module Aws::FraudDetector
1824
2008
  :outcomes,
1825
2009
  :last_updated_time,
1826
2010
  :created_time)
2011
+ SENSITIVE = []
2012
+ include Aws::Structure
2013
+ end
2014
+
2015
+ # The rule results.
2016
+ #
2017
+ # @!attribute [rw] rule_id
2018
+ # The rule ID that was matched, based on the rule execution mode.
2019
+ # @return [String]
2020
+ #
2021
+ # @!attribute [rw] outcomes
2022
+ # The outcomes of the matched rule, based on the rule execution mode.
2023
+ # @return [Array<String>]
2024
+ #
2025
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/RuleResult AWS API Documentation
2026
+ #
2027
+ class RuleResult < Struct.new(
2028
+ :rule_id,
2029
+ :outcomes)
2030
+ SENSITIVE = []
1827
2031
  include Aws::Structure
1828
2032
  end
1829
2033
 
@@ -1836,6 +2040,7 @@ module Aws::FraudDetector
1836
2040
  #
1837
2041
  class ThrottlingException < Struct.new(
1838
2042
  :message)
2043
+ SENSITIVE = []
1839
2044
  include Aws::Structure
1840
2045
  end
1841
2046
 
@@ -1862,6 +2067,7 @@ module Aws::FraudDetector
1862
2067
  class TrainingDataSource < Struct.new(
1863
2068
  :data_location,
1864
2069
  :data_access_role_arn)
2070
+ SENSITIVE = []
1865
2071
  include Aws::Structure
1866
2072
  end
1867
2073
 
@@ -1892,6 +2098,7 @@ module Aws::FraudDetector
1892
2098
  :detector_id,
1893
2099
  :detector_version_id,
1894
2100
  :description)
2101
+ SENSITIVE = []
1895
2102
  include Aws::Structure
1896
2103
  end
1897
2104
 
@@ -1921,6 +2128,7 @@ module Aws::FraudDetector
1921
2128
  # model_version_number: "nonEmptyString", # required
1922
2129
  # },
1923
2130
  # ],
2131
+ # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
1924
2132
  # }
1925
2133
  #
1926
2134
  # @!attribute [rw] detector_id
@@ -1948,6 +2156,22 @@ module Aws::FraudDetector
1948
2156
  # The model versions to include in the detector version.
1949
2157
  # @return [Array<Types::ModelVersion>]
1950
2158
  #
2159
+ # @!attribute [rw] rule_execution_mode
2160
+ # The rule execution mode to add to the detector.
2161
+ #
2162
+ # If you specify `FIRST_MATCHED`, Amazon Fraud Detector evaluates
2163
+ # rules sequentially, first to last, stopping at the first matched
2164
+ # rule. Amazon Fraud dectector then provides the outcomes for that
2165
+ # single rule.
2166
+ #
2167
+ # If you specifiy `ALL_MATCHED`, Amazon Fraud Detector evaluates all
2168
+ # rules and returns the outcomes for all matched rules. You can define
2169
+ # and edit the rule mode at the detector version level, when it is in
2170
+ # draft status.
2171
+ #
2172
+ # The default behavior is `FIRST_MATCHED`.
2173
+ # @return [String]
2174
+ #
1951
2175
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionRequest AWS API Documentation
1952
2176
  #
1953
2177
  class UpdateDetectorVersionRequest < Struct.new(
@@ -1956,7 +2180,9 @@ module Aws::FraudDetector
1956
2180
  :external_model_endpoints,
1957
2181
  :rules,
1958
2182
  :description,
1959
- :model_versions)
2183
+ :model_versions,
2184
+ :rule_execution_mode)
2185
+ SENSITIVE = []
1960
2186
  include Aws::Structure
1961
2187
  end
1962
2188
 
@@ -1991,6 +2217,7 @@ module Aws::FraudDetector
1991
2217
  :detector_id,
1992
2218
  :detector_version_id,
1993
2219
  :status)
2220
+ SENSITIVE = []
1994
2221
  include Aws::Structure
1995
2222
  end
1996
2223
 
@@ -2037,6 +2264,7 @@ module Aws::FraudDetector
2037
2264
  :model_version_number,
2038
2265
  :description,
2039
2266
  :status)
2267
+ SENSITIVE = []
2040
2268
  include Aws::Structure
2041
2269
  end
2042
2270
 
@@ -2069,6 +2297,7 @@ module Aws::FraudDetector
2069
2297
  class UpdateRuleMetadataRequest < Struct.new(
2070
2298
  :rule,
2071
2299
  :description)
2300
+ SENSITIVE = []
2072
2301
  include Aws::Structure
2073
2302
  end
2074
2303
 
@@ -2119,6 +2348,7 @@ module Aws::FraudDetector
2119
2348
  :expression,
2120
2349
  :language,
2121
2350
  :outcomes)
2351
+ SENSITIVE = []
2122
2352
  include Aws::Structure
2123
2353
  end
2124
2354
 
@@ -2130,6 +2360,7 @@ module Aws::FraudDetector
2130
2360
  #
2131
2361
  class UpdateRuleVersionResult < Struct.new(
2132
2362
  :rule)
2363
+ SENSITIVE = []
2133
2364
  include Aws::Structure
2134
2365
  end
2135
2366
 
@@ -2166,6 +2397,7 @@ module Aws::FraudDetector
2166
2397
  :default_value,
2167
2398
  :description,
2168
2399
  :variable_type)
2400
+ SENSITIVE = []
2169
2401
  include Aws::Structure
2170
2402
  end
2171
2403
 
@@ -2182,6 +2414,7 @@ module Aws::FraudDetector
2182
2414
  #
2183
2415
  class ValidationException < Struct.new(
2184
2416
  :message)
2417
+ SENSITIVE = []
2185
2418
  include Aws::Structure
2186
2419
  end
2187
2420
 
@@ -2230,6 +2463,7 @@ module Aws::FraudDetector
2230
2463
  :variable_type,
2231
2464
  :last_updated_time,
2232
2465
  :created_time)
2466
+ SENSITIVE = []
2233
2467
  include Aws::Structure
2234
2468
  end
2235
2469
 
@@ -2280,6 +2514,7 @@ module Aws::FraudDetector
2280
2514
  :default_value,
2281
2515
  :description,
2282
2516
  :variable_type)
2517
+ SENSITIVE = []
2283
2518
  include Aws::Structure
2284
2519
  end
2285
2520