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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba3be806251b369ced630edad7f69df468fd906a5036160898262df84c102375
4
- data.tar.gz: 0d26bb8e0a18c9c47e5f8f846b754778422d3a128d868c6cdefa2065e30c26cd
3
+ metadata.gz: '0409a68fccb6dbf5d58fe22f2d7b29aca40c7044d9c2328ba8b8072cda7cba23'
4
+ data.tar.gz: 86fbd876d12219877f9472bbcee5b3d47b061dbaaeac5353d3cd17173c7e1ce5
5
5
  SHA512:
6
- metadata.gz: 0630122ccc491152573952be07143020174509886bc2d922a914179171a379d6c12f33b134d4b71911be4d214d5f7d1e0594c68dfc36ae658a9f62813da1a724
7
- data.tar.gz: b5b229e6efbd6952ad99e84e8ee8ecf0b78142ab4f60907783afe1e3476e67485c32028a16ff0b02f896fedeba986cc64b2d11e1cc05d1c753c2e1f1d4636f04
6
+ metadata.gz: 4a0db12e0b84ba5ca80e74bb3ce20377fdcb7ee5a539cd1c1a30e3d91f83020142a030ce30beeeecd09dc004f45b465c5f144d2591ee9b2a253a87f632e97e8c
7
+ data.tar.gz: c03c2d6044ce8f71ef053621abd9bf683f307ac3359f42fe68e30b23f8373eec4c193f243b3bf1ec82624a2f3dbb7a3f4ad8ad47326297df99d7024214536780
@@ -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:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-frauddetector/customizations'
45
47
  # @service
46
48
  module Aws::FraudDetector
47
49
 
48
- GEM_VERSION = '1.1.0'
50
+ GEM_VERSION = '1.6.0'
49
51
 
50
52
  end
@@ -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:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::FraudDetector
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -105,7 +109,7 @@ module Aws::FraudDetector
105
109
  # @option options [required, String] :region
106
110
  # The AWS region to connect to. The configured `:region` is
107
111
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
109
113
  #
110
114
  # * `Aws.config[:region]`
111
115
  # * `ENV['AWS_REGION']`
@@ -161,7 +165,7 @@ module Aws::FraudDetector
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::FraudDetector
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -279,8 +283,7 @@ module Aws::FraudDetector
279
283
  #
280
284
  # @option options [Integer] :http_read_timeout (60) The default
281
285
  # 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}.
286
+ # safely be set per-request on the session.
284
287
  #
285
288
  # @option options [Float] :http_idle_timeout (5) The number of
286
289
  # seconds a connection is allowed to sit idle before it is
@@ -292,7 +295,7 @@ module Aws::FraudDetector
292
295
  # request body. This option has no effect unless the request has
293
296
  # "Expect" header set to "100-continue". Defaults to `nil` which
294
297
  # disables this behaviour. This value can safely be set per
295
- # request on the session yielded by {#session_for}.
298
+ # request on the session.
296
299
  #
297
300
  # @option options [Boolean] :http_wire_trace (false) When `true`,
298
301
  # HTTP debug output will be sent to the `:logger`.
@@ -419,6 +422,23 @@ module Aws::FraudDetector
419
422
  # @option params [Array<Types::ModelVersion>] :model_versions
420
423
  # The model versions to include in the detector version.
421
424
  #
425
+ # @option params [String] :rule_execution_mode
426
+ # The rule execution mode for the rules included in the detector
427
+ # version.
428
+ #
429
+ # You can define and edit the rule mode at the detector version level,
430
+ # when it is in draft status.
431
+ #
432
+ # If you specify `FIRST_MATCHED`, Amazon Fraud Detector evaluates rules
433
+ # sequentially, first to last, stopping at the first matched rule.
434
+ # Amazon Fraud dectector then provides the outcomes for that single
435
+ # rule.
436
+ #
437
+ # If you specifiy `ALL_MATCHED`, Amazon Fraud Detector evaluates all
438
+ # rules and returns the outcomes for all matched rules.
439
+ #
440
+ # The default behavior is `FIRST_MATCHED`.
441
+ #
422
442
  # @return [Types::CreateDetectorVersionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
423
443
  #
424
444
  # * {Types::CreateDetectorVersionResult#detector_id #detector_id} => String
@@ -445,6 +465,7 @@ module Aws::FraudDetector
445
465
  # model_version_number: "nonEmptyString", # required
446
466
  # },
447
467
  # ],
468
+ # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
448
469
  # })
449
470
  #
450
471
  # @example Response structure
@@ -596,7 +617,32 @@ module Aws::FraudDetector
596
617
  req.send_request(options)
597
618
  end
598
619
 
599
- # Deletes the detector version.
620
+ # Deletes the detector. Before deleting a detector, you must first
621
+ # delete all detector versions and rule versions associated with the
622
+ # detector.
623
+ #
624
+ # @option params [required, String] :detector_id
625
+ # The ID of the detector to delete.
626
+ #
627
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
628
+ #
629
+ # @example Request syntax with placeholder values
630
+ #
631
+ # resp = client.delete_detector({
632
+ # detector_id: "identifier", # required
633
+ # })
634
+ #
635
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetector AWS API Documentation
636
+ #
637
+ # @overload delete_detector(params = {})
638
+ # @param [Hash] params ({})
639
+ def delete_detector(params = {}, options = {})
640
+ req = build_request(:delete_detector, params)
641
+ req.send_request(options)
642
+ end
643
+
644
+ # Deletes the detector version. You cannot delete detector versions that
645
+ # are in `ACTIVE` status.
600
646
  #
601
647
  # @option params [required, String] :detector_id
602
648
  # The ID of the parent detector for the detector version to delete.
@@ -644,6 +690,37 @@ module Aws::FraudDetector
644
690
  req.send_request(options)
645
691
  end
646
692
 
693
+ # Deletes the rule version. You cannot delete a rule version if it is
694
+ # used by an `ACTIVE` or `INACTIVE` detector version.
695
+ #
696
+ # @option params [required, String] :detector_id
697
+ # The ID of the detector that includes the rule version to delete.
698
+ #
699
+ # @option params [required, String] :rule_id
700
+ # The rule ID of the rule version to delete.
701
+ #
702
+ # @option params [required, String] :rule_version
703
+ # The rule version to delete.
704
+ #
705
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
706
+ #
707
+ # @example Request syntax with placeholder values
708
+ #
709
+ # resp = client.delete_rule_version({
710
+ # detector_id: "identifier", # required
711
+ # rule_id: "identifier", # required
712
+ # rule_version: "nonEmptyString", # required
713
+ # })
714
+ #
715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersion AWS API Documentation
716
+ #
717
+ # @overload delete_rule_version(params = {})
718
+ # @param [Hash] params ({})
719
+ def delete_rule_version(params = {}, options = {})
720
+ req = build_request(:delete_rule_version, params)
721
+ req.send_request(options)
722
+ end
723
+
647
724
  # Gets all versions for a specified detector.
648
725
  #
649
726
  # @option params [required, String] :detector_id
@@ -712,6 +789,8 @@ module Aws::FraudDetector
712
789
  # * {Types::DescribeModelVersionsResult#model_version_details #model_version_details} => Array&lt;Types::ModelVersionDetail&gt;
713
790
  # * {Types::DescribeModelVersionsResult#next_token #next_token} => String
714
791
  #
792
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
793
+ #
715
794
  # @example Request syntax with placeholder values
716
795
  #
717
796
  # resp = client.describe_model_versions({
@@ -775,6 +854,7 @@ module Aws::FraudDetector
775
854
  # * {Types::GetDetectorVersionResult#status #status} => String
776
855
  # * {Types::GetDetectorVersionResult#last_updated_time #last_updated_time} => String
777
856
  # * {Types::GetDetectorVersionResult#created_time #created_time} => String
857
+ # * {Types::GetDetectorVersionResult#rule_execution_mode #rule_execution_mode} => String
778
858
  #
779
859
  # @example Request syntax with placeholder values
780
860
  #
@@ -801,6 +881,7 @@ module Aws::FraudDetector
801
881
  # resp.status #=> String, one of "DRAFT", "ACTIVE", "INACTIVE"
802
882
  # resp.last_updated_time #=> String
803
883
  # resp.created_time #=> String
884
+ # resp.rule_execution_mode #=> String, one of "ALL_MATCHED", "FIRST_MATCHED"
804
885
  #
805
886
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersion AWS API Documentation
806
887
  #
@@ -832,6 +913,8 @@ module Aws::FraudDetector
832
913
  # * {Types::GetDetectorsResult#detectors #detectors} => Array&lt;Types::Detector&gt;
833
914
  # * {Types::GetDetectorsResult#next_token #next_token} => String
834
915
  #
916
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
917
+ #
835
918
  # @example Request syntax with placeholder values
836
919
  #
837
920
  # resp = client.get_detectors({
@@ -881,6 +964,8 @@ module Aws::FraudDetector
881
964
  # * {Types::GetExternalModelsResult#external_models #external_models} => Array&lt;Types::ExternalModel&gt;
882
965
  # * {Types::GetExternalModelsResult#next_token #next_token} => String
883
966
  #
967
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
968
+ #
884
969
  # @example Request syntax with placeholder values
885
970
  #
886
971
  # resp = client.get_external_models({
@@ -984,6 +1069,8 @@ module Aws::FraudDetector
984
1069
  # * {Types::GetModelsResult#next_token #next_token} => String
985
1070
  # * {Types::GetModelsResult#models #models} => Array&lt;Types::Model&gt;
986
1071
  #
1072
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1073
+ #
987
1074
  # @example Request syntax with placeholder values
988
1075
  #
989
1076
  # resp = client.get_models({
@@ -1042,6 +1129,8 @@ module Aws::FraudDetector
1042
1129
  # * {Types::GetOutcomesResult#outcomes #outcomes} => Array&lt;Types::Outcome&gt;
1043
1130
  # * {Types::GetOutcomesResult#next_token #next_token} => String
1044
1131
  #
1132
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1133
+ #
1045
1134
  # @example Request syntax with placeholder values
1046
1135
  #
1047
1136
  # resp = client.get_outcomes({
@@ -1092,6 +1181,7 @@ module Aws::FraudDetector
1092
1181
  #
1093
1182
  # * {Types::GetPredictionResult#outcomes #outcomes} => Array&lt;String&gt;
1094
1183
  # * {Types::GetPredictionResult#model_scores #model_scores} => Array&lt;Types::ModelScores&gt;
1184
+ # * {Types::GetPredictionResult#rule_results #rule_results} => Array&lt;Types::RuleResult&gt;
1095
1185
  #
1096
1186
  # @example Request syntax with placeholder values
1097
1187
  #
@@ -1120,6 +1210,10 @@ module Aws::FraudDetector
1120
1210
  # resp.model_scores[0].model_version.model_version_number #=> String
1121
1211
  # resp.model_scores[0].scores #=> Hash
1122
1212
  # resp.model_scores[0].scores["string"] #=> Float
1213
+ # resp.rule_results #=> Array
1214
+ # resp.rule_results[0].rule_id #=> String
1215
+ # resp.rule_results[0].outcomes #=> Array
1216
+ # resp.rule_results[0].outcomes[0] #=> String
1123
1217
  #
1124
1218
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetPrediction AWS API Documentation
1125
1219
  #
@@ -1152,6 +1246,8 @@ module Aws::FraudDetector
1152
1246
  # * {Types::GetRulesResult#rule_details #rule_details} => Array&lt;Types::RuleDetail&gt;
1153
1247
  # * {Types::GetRulesResult#next_token #next_token} => String
1154
1248
  #
1249
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1250
+ #
1155
1251
  # @example Request syntax with placeholder values
1156
1252
  #
1157
1253
  # resp = client.get_rules({
@@ -1207,6 +1303,8 @@ module Aws::FraudDetector
1207
1303
  # * {Types::GetVariablesResult#variables #variables} => Array&lt;Types::Variable&gt;
1208
1304
  # * {Types::GetVariablesResult#next_token #next_token} => String
1209
1305
  #
1306
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1307
+ #
1210
1308
  # @example Request syntax with placeholder values
1211
1309
  #
1212
1310
  # resp = client.get_variables({
@@ -1427,6 +1525,21 @@ module Aws::FraudDetector
1427
1525
  # @option params [Array<Types::ModelVersion>] :model_versions
1428
1526
  # The model versions to include in the detector version.
1429
1527
  #
1528
+ # @option params [String] :rule_execution_mode
1529
+ # The rule execution mode to add to the detector.
1530
+ #
1531
+ # If you specify `FIRST_MATCHED`, Amazon Fraud Detector evaluates rules
1532
+ # sequentially, first to last, stopping at the first matched rule.
1533
+ # Amazon Fraud dectector then provides the outcomes for that single
1534
+ # rule.
1535
+ #
1536
+ # If you specifiy `ALL_MATCHED`, Amazon Fraud Detector evaluates all
1537
+ # rules and returns the outcomes for all matched rules. You can define
1538
+ # and edit the rule mode at the detector version level, when it is in
1539
+ # draft status.
1540
+ #
1541
+ # The default behavior is `FIRST_MATCHED`.
1542
+ #
1430
1543
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1431
1544
  #
1432
1545
  # @example Request syntax with placeholder values
@@ -1450,6 +1563,7 @@ module Aws::FraudDetector
1450
1563
  # model_version_number: "nonEmptyString", # required
1451
1564
  # },
1452
1565
  # ],
1566
+ # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
1453
1567
  # })
1454
1568
  #
1455
1569
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersion AWS API Documentation
@@ -1695,7 +1809,7 @@ module Aws::FraudDetector
1695
1809
  params: params,
1696
1810
  config: config)
1697
1811
  context[:gem_name] = 'aws-sdk-frauddetector'
1698
- context[:gem_version] = '1.1.0'
1812
+ context[:gem_version] = '1.6.0'
1699
1813
  Seahorse::Client::Request.new(handlers, context)
1700
1814
  end
1701
1815
 
@@ -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:
@@ -19,6 +21,7 @@ module Aws::FraudDetector
19
21
  BatchGetVariableErrorList = Shapes::ListShape.new(name: 'BatchGetVariableErrorList')
20
22
  BatchGetVariableRequest = Shapes::StructureShape.new(name: 'BatchGetVariableRequest')
21
23
  BatchGetVariableResult = Shapes::StructureShape.new(name: 'BatchGetVariableResult')
24
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
22
25
  CreateDetectorVersionRequest = Shapes::StructureShape.new(name: 'CreateDetectorVersionRequest')
23
26
  CreateDetectorVersionResult = Shapes::StructureShape.new(name: 'CreateDetectorVersionResult')
24
27
  CreateModelVersionRequest = Shapes::StructureShape.new(name: 'CreateModelVersionRequest')
@@ -30,10 +33,14 @@ module Aws::FraudDetector
30
33
  CsvIndexToVariableMap = Shapes::MapShape.new(name: 'CsvIndexToVariableMap')
31
34
  DataSource = Shapes::StringShape.new(name: 'DataSource')
32
35
  DataType = Shapes::StringShape.new(name: 'DataType')
36
+ DeleteDetectorRequest = Shapes::StructureShape.new(name: 'DeleteDetectorRequest')
37
+ DeleteDetectorResult = Shapes::StructureShape.new(name: 'DeleteDetectorResult')
33
38
  DeleteDetectorVersionRequest = Shapes::StructureShape.new(name: 'DeleteDetectorVersionRequest')
34
39
  DeleteDetectorVersionResult = Shapes::StructureShape.new(name: 'DeleteDetectorVersionResult')
35
40
  DeleteEventRequest = Shapes::StructureShape.new(name: 'DeleteEventRequest')
36
41
  DeleteEventResult = Shapes::StructureShape.new(name: 'DeleteEventResult')
42
+ DeleteRuleVersionRequest = Shapes::StructureShape.new(name: 'DeleteRuleVersionRequest')
43
+ DeleteRuleVersionResult = Shapes::StructureShape.new(name: 'DeleteRuleVersionResult')
37
44
  DescribeDetectorRequest = Shapes::StructureShape.new(name: 'DescribeDetectorRequest')
38
45
  DescribeDetectorResult = Shapes::StructureShape.new(name: 'DescribeDetectorResult')
39
46
  DescribeModelVersionsRequest = Shapes::StructureShape.new(name: 'DescribeModelVersionsRequest')
@@ -76,6 +83,7 @@ module Aws::FraudDetector
76
83
  Language = Shapes::StringShape.new(name: 'Language')
77
84
  ListOfModelScores = Shapes::ListShape.new(name: 'ListOfModelScores')
78
85
  ListOfModelVersions = Shapes::ListShape.new(name: 'ListOfModelVersions')
86
+ ListOfRuleResults = Shapes::ListShape.new(name: 'ListOfRuleResults')
79
87
  ListOfStrings = Shapes::ListShape.new(name: 'ListOfStrings')
80
88
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
81
89
  MetricsMap = Shapes::MapShape.new(name: 'MetricsMap')
@@ -116,7 +124,9 @@ module Aws::FraudDetector
116
124
  Rule = Shapes::StructureShape.new(name: 'Rule')
117
125
  RuleDetail = Shapes::StructureShape.new(name: 'RuleDetail')
118
126
  RuleDetailList = Shapes::ListShape.new(name: 'RuleDetailList')
127
+ RuleExecutionMode = Shapes::StringShape.new(name: 'RuleExecutionMode')
119
128
  RuleList = Shapes::ListShape.new(name: 'RuleList')
129
+ RuleResult = Shapes::StructureShape.new(name: 'RuleResult')
120
130
  RulesMaxResults = Shapes::IntegerShape.new(name: 'RulesMaxResults')
121
131
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
122
132
  TrainingDataSource = Shapes::StructureShape.new(name: 'TrainingDataSource')
@@ -182,11 +192,15 @@ module Aws::FraudDetector
182
192
  BatchGetVariableResult.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetVariableErrorList, location_name: "errors"))
183
193
  BatchGetVariableResult.struct_class = Types::BatchGetVariableResult
184
194
 
195
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: string, required: true, location_name: "message"))
196
+ ConflictException.struct_class = Types::ConflictException
197
+
185
198
  CreateDetectorVersionRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
186
199
  CreateDetectorVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: description, location_name: "description"))
187
200
  CreateDetectorVersionRequest.add_member(:external_model_endpoints, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "externalModelEndpoints"))
188
201
  CreateDetectorVersionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: RuleList, required: true, location_name: "rules"))
189
202
  CreateDetectorVersionRequest.add_member(:model_versions, Shapes::ShapeRef.new(shape: ListOfModelVersions, location_name: "modelVersions"))
203
+ CreateDetectorVersionRequest.add_member(:rule_execution_mode, Shapes::ShapeRef.new(shape: RuleExecutionMode, location_name: "ruleExecutionMode"))
190
204
  CreateDetectorVersionRequest.struct_class = Types::CreateDetectorVersionRequest
191
205
 
192
206
  CreateDetectorVersionResult.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, location_name: "detectorId"))
@@ -229,6 +243,11 @@ module Aws::FraudDetector
229
243
  CsvIndexToVariableMap.key = Shapes::ShapeRef.new(shape: string)
230
244
  CsvIndexToVariableMap.value = Shapes::ShapeRef.new(shape: string)
231
245
 
246
+ DeleteDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
247
+ DeleteDetectorRequest.struct_class = Types::DeleteDetectorRequest
248
+
249
+ DeleteDetectorResult.struct_class = Types::DeleteDetectorResult
250
+
232
251
  DeleteDetectorVersionRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
233
252
  DeleteDetectorVersionRequest.add_member(:detector_version_id, Shapes::ShapeRef.new(shape: nonEmptyString, required: true, location_name: "detectorVersionId"))
234
253
  DeleteDetectorVersionRequest.struct_class = Types::DeleteDetectorVersionRequest
@@ -240,6 +259,13 @@ module Aws::FraudDetector
240
259
 
241
260
  DeleteEventResult.struct_class = Types::DeleteEventResult
242
261
 
262
+ DeleteRuleVersionRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
263
+ DeleteRuleVersionRequest.add_member(:rule_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "ruleId"))
264
+ DeleteRuleVersionRequest.add_member(:rule_version, Shapes::ShapeRef.new(shape: nonEmptyString, required: true, location_name: "ruleVersion"))
265
+ DeleteRuleVersionRequest.struct_class = Types::DeleteRuleVersionRequest
266
+
267
+ DeleteRuleVersionResult.struct_class = Types::DeleteRuleVersionResult
268
+
243
269
  DescribeDetectorRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, required: true, location_name: "detectorId"))
244
270
  DescribeDetectorRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location_name: "nextToken"))
245
271
  DescribeDetectorRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DetectorVersionMaxResults, location_name: "maxResults"))
@@ -308,6 +334,7 @@ module Aws::FraudDetector
308
334
  GetDetectorVersionResult.add_member(:status, Shapes::ShapeRef.new(shape: DetectorVersionStatus, location_name: "status"))
309
335
  GetDetectorVersionResult.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: time, location_name: "lastUpdatedTime"))
310
336
  GetDetectorVersionResult.add_member(:created_time, Shapes::ShapeRef.new(shape: time, location_name: "createdTime"))
337
+ GetDetectorVersionResult.add_member(:rule_execution_mode, Shapes::ShapeRef.new(shape: RuleExecutionMode, location_name: "ruleExecutionMode"))
311
338
  GetDetectorVersionResult.struct_class = Types::GetDetectorVersionResult
312
339
 
313
340
  GetDetectorsRequest.add_member(:detector_id, Shapes::ShapeRef.new(shape: identifier, location_name: "detectorId"))
@@ -368,6 +395,7 @@ module Aws::FraudDetector
368
395
 
369
396
  GetPredictionResult.add_member(:outcomes, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "outcomes"))
370
397
  GetPredictionResult.add_member(:model_scores, Shapes::ShapeRef.new(shape: ListOfModelScores, location_name: "modelScores"))
398
+ GetPredictionResult.add_member(:rule_results, Shapes::ShapeRef.new(shape: ListOfRuleResults, location_name: "ruleResults"))
371
399
  GetPredictionResult.struct_class = Types::GetPredictionResult
372
400
 
373
401
  GetRulesRequest.add_member(:rule_id, Shapes::ShapeRef.new(shape: identifier, location_name: "ruleId"))
@@ -407,6 +435,8 @@ module Aws::FraudDetector
407
435
 
408
436
  ListOfModelVersions.member = Shapes::ShapeRef.new(shape: ModelVersion)
409
437
 
438
+ ListOfRuleResults.member = Shapes::ShapeRef.new(shape: RuleResult)
439
+
410
440
  ListOfStrings.member = Shapes::ShapeRef.new(shape: string)
411
441
 
412
442
  MetricsMap.key = Shapes::ShapeRef.new(shape: string)
@@ -544,6 +574,10 @@ module Aws::FraudDetector
544
574
 
545
575
  RuleList.member = Shapes::ShapeRef.new(shape: Rule)
546
576
 
577
+ RuleResult.add_member(:rule_id, Shapes::ShapeRef.new(shape: string, location_name: "ruleId"))
578
+ RuleResult.add_member(:outcomes, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "outcomes"))
579
+ RuleResult.struct_class = Types::RuleResult
580
+
547
581
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: string, required: true, location_name: "message"))
548
582
  ThrottlingException.struct_class = Types::ThrottlingException
549
583
 
@@ -564,6 +598,7 @@ module Aws::FraudDetector
564
598
  UpdateDetectorVersionRequest.add_member(:rules, Shapes::ShapeRef.new(shape: RuleList, required: true, location_name: "rules"))
565
599
  UpdateDetectorVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: description, location_name: "description"))
566
600
  UpdateDetectorVersionRequest.add_member(:model_versions, Shapes::ShapeRef.new(shape: ListOfModelVersions, location_name: "modelVersions"))
601
+ UpdateDetectorVersionRequest.add_member(:rule_execution_mode, Shapes::ShapeRef.new(shape: RuleExecutionMode, location_name: "ruleExecutionMode"))
567
602
  UpdateDetectorVersionRequest.struct_class = Types::UpdateDetectorVersionRequest
568
603
 
569
604
  UpdateDetectorVersionResult.struct_class = Types::UpdateDetectorVersionResult
@@ -692,6 +727,7 @@ module Aws::FraudDetector
692
727
  o.input = Shapes::ShapeRef.new(shape: CreateModelVersionRequest)
693
728
  o.output = Shapes::ShapeRef.new(shape: CreateModelVersionResult)
694
729
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
730
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
695
731
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
696
732
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
697
733
  end)
@@ -718,6 +754,18 @@ module Aws::FraudDetector
718
754
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
719
755
  end)
720
756
 
757
+ api.add_operation(:delete_detector, Seahorse::Model::Operation.new.tap do |o|
758
+ o.name = "DeleteDetector"
759
+ o.http_method = "POST"
760
+ o.http_request_uri = "/"
761
+ o.input = Shapes::ShapeRef.new(shape: DeleteDetectorRequest)
762
+ o.output = Shapes::ShapeRef.new(shape: DeleteDetectorResult)
763
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
764
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
765
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
766
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
767
+ end)
768
+
721
769
  api.add_operation(:delete_detector_version, Seahorse::Model::Operation.new.tap do |o|
722
770
  o.name = "DeleteDetectorVersion"
723
771
  o.http_method = "POST"
@@ -728,6 +776,7 @@ module Aws::FraudDetector
728
776
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
729
777
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
730
778
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
779
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
731
780
  end)
732
781
 
733
782
  api.add_operation(:delete_event, Seahorse::Model::Operation.new.tap do |o|
@@ -740,6 +789,18 @@ module Aws::FraudDetector
740
789
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
741
790
  end)
742
791
 
792
+ api.add_operation(:delete_rule_version, Seahorse::Model::Operation.new.tap do |o|
793
+ o.name = "DeleteRuleVersion"
794
+ o.http_method = "POST"
795
+ o.http_request_uri = "/"
796
+ o.input = Shapes::ShapeRef.new(shape: DeleteRuleVersionRequest)
797
+ o.output = Shapes::ShapeRef.new(shape: DeleteRuleVersionResult)
798
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
799
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
800
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
801
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
802
+ end)
803
+
743
804
  api.add_operation(:describe_detector, Seahorse::Model::Operation.new.tap do |o|
744
805
  o.name = "DescribeDetector"
745
806
  o.http_method = "POST"