aws-sdk-frauddetector 1.2.0 → 1.7.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 +4 -4
- data/lib/aws-sdk-frauddetector.rb +3 -1
- data/lib/aws-sdk-frauddetector/client.rb +920 -148
- data/lib/aws-sdk-frauddetector/client_api.rb +588 -95
- data/lib/aws-sdk-frauddetector/errors.rb +18 -0
- data/lib/aws-sdk-frauddetector/resource.rb +2 -0
- data/lib/aws-sdk-frauddetector/types.rb +1524 -256
- metadata +4 -4
@@ -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
|
+
# * {AccessDeniedException}
|
28
31
|
# * {ConflictException}
|
29
32
|
# * {InternalServerException}
|
30
33
|
# * {ResourceNotFoundException}
|
@@ -37,6 +40,21 @@ module Aws::FraudDetector
|
|
37
40
|
|
38
41
|
extend Aws::Errors::DynamicErrors
|
39
42
|
|
43
|
+
class AccessDeniedException < ServiceError
|
44
|
+
|
45
|
+
# @param [Seahorse::Client::RequestContext] context
|
46
|
+
# @param [String] message
|
47
|
+
# @param [Aws::FraudDetector::Types::AccessDeniedException] data
|
48
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
49
|
+
super(context, message, data)
|
50
|
+
end
|
51
|
+
|
52
|
+
# @return [String]
|
53
|
+
def message
|
54
|
+
@message || @data[:message]
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
40
58
|
class ConflictException < ServiceError
|
41
59
|
|
42
60
|
# @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:
|
@@ -8,6 +10,21 @@
|
|
8
10
|
module Aws::FraudDetector
|
9
11
|
module Types
|
10
12
|
|
13
|
+
# An exception indicating Amazon Fraud Detector does not have the needed
|
14
|
+
# permissions. This can occur if you submit a request, such as
|
15
|
+
# `PutExternalModel`, that specifies a role that is not in your account.
|
16
|
+
#
|
17
|
+
# @!attribute [rw] message
|
18
|
+
# @return [String]
|
19
|
+
#
|
20
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/AccessDeniedException AWS API Documentation
|
21
|
+
#
|
22
|
+
class AccessDeniedException < Struct.new(
|
23
|
+
:message)
|
24
|
+
SENSITIVE = []
|
25
|
+
include Aws::Structure
|
26
|
+
end
|
27
|
+
|
11
28
|
# Provides the error of the batch create variable API.
|
12
29
|
#
|
13
30
|
# @!attribute [rw] name
|
@@ -28,6 +45,7 @@ module Aws::FraudDetector
|
|
28
45
|
:name,
|
29
46
|
:code,
|
30
47
|
:message)
|
48
|
+
SENSITIVE = []
|
31
49
|
include Aws::Structure
|
32
50
|
end
|
33
51
|
|
@@ -45,16 +63,28 @@ module Aws::FraudDetector
|
|
45
63
|
# variable_type: "string",
|
46
64
|
# },
|
47
65
|
# ],
|
66
|
+
# tags: [
|
67
|
+
# {
|
68
|
+
# key: "tagKey", # required
|
69
|
+
# value: "tagValue", # required
|
70
|
+
# },
|
71
|
+
# ],
|
48
72
|
# }
|
49
73
|
#
|
50
74
|
# @!attribute [rw] variable_entries
|
51
75
|
# The list of variables for the batch create variable request.
|
52
76
|
# @return [Array<Types::VariableEntry>]
|
53
77
|
#
|
78
|
+
# @!attribute [rw] tags
|
79
|
+
# A collection of key and value pairs.
|
80
|
+
# @return [Array<Types::Tag>]
|
81
|
+
#
|
54
82
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchCreateVariableRequest AWS API Documentation
|
55
83
|
#
|
56
84
|
class BatchCreateVariableRequest < Struct.new(
|
57
|
-
:variable_entries
|
85
|
+
:variable_entries,
|
86
|
+
:tags)
|
87
|
+
SENSITIVE = []
|
58
88
|
include Aws::Structure
|
59
89
|
end
|
60
90
|
|
@@ -66,6 +96,7 @@ module Aws::FraudDetector
|
|
66
96
|
#
|
67
97
|
class BatchCreateVariableResult < Struct.new(
|
68
98
|
:errors)
|
99
|
+
SENSITIVE = []
|
69
100
|
include Aws::Structure
|
70
101
|
end
|
71
102
|
|
@@ -89,6 +120,7 @@ module Aws::FraudDetector
|
|
89
120
|
:name,
|
90
121
|
:code,
|
91
122
|
:message)
|
123
|
+
SENSITIVE = []
|
92
124
|
include Aws::Structure
|
93
125
|
end
|
94
126
|
|
@@ -107,6 +139,7 @@ module Aws::FraudDetector
|
|
107
139
|
#
|
108
140
|
class BatchGetVariableRequest < Struct.new(
|
109
141
|
:names)
|
142
|
+
SENSITIVE = []
|
110
143
|
include Aws::Structure
|
111
144
|
end
|
112
145
|
|
@@ -123,6 +156,7 @@ module Aws::FraudDetector
|
|
123
156
|
class BatchGetVariableResult < Struct.new(
|
124
157
|
:variables,
|
125
158
|
:errors)
|
159
|
+
SENSITIVE = []
|
126
160
|
include Aws::Structure
|
127
161
|
end
|
128
162
|
|
@@ -137,9 +171,8 @@ module Aws::FraudDetector
|
|
137
171
|
# * DeleteDetectorVersion: A conflict exception will occur if the
|
138
172
|
# `DetectorVersion` status is `ACTIVE`.
|
139
173
|
#
|
140
|
-
# *
|
141
|
-
#
|
142
|
-
# DetectorVersion`.
|
174
|
+
# * DeleteRule: A conflict exception will occur if the `RuleVersion` is
|
175
|
+
# in use by an associated `ACTIVE` or `INACTIVE DetectorVersion`.
|
143
176
|
#
|
144
177
|
# @!attribute [rw] message
|
145
178
|
# @return [String]
|
@@ -148,6 +181,7 @@ module Aws::FraudDetector
|
|
148
181
|
#
|
149
182
|
class ConflictException < Struct.new(
|
150
183
|
:message)
|
184
|
+
SENSITIVE = []
|
151
185
|
include Aws::Structure
|
152
186
|
end
|
153
187
|
|
@@ -162,7 +196,7 @@ module Aws::FraudDetector
|
|
162
196
|
# {
|
163
197
|
# detector_id: "identifier", # required
|
164
198
|
# rule_id: "identifier", # required
|
165
|
-
# rule_version: "
|
199
|
+
# rule_version: "wholeNumberVersionString", # required
|
166
200
|
# },
|
167
201
|
# ],
|
168
202
|
# model_versions: [
|
@@ -170,9 +204,16 @@ module Aws::FraudDetector
|
|
170
204
|
# model_id: "identifier", # required
|
171
205
|
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
172
206
|
# model_version_number: "nonEmptyString", # required
|
207
|
+
# arn: "fraudDetectorArn",
|
173
208
|
# },
|
174
209
|
# ],
|
175
210
|
# rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
|
211
|
+
# tags: [
|
212
|
+
# {
|
213
|
+
# key: "tagKey", # required
|
214
|
+
# value: "tagValue", # required
|
215
|
+
# },
|
216
|
+
# ],
|
176
217
|
# }
|
177
218
|
#
|
178
219
|
# @!attribute [rw] detector_id
|
@@ -214,6 +255,10 @@ module Aws::FraudDetector
|
|
214
255
|
# The default behavior is `FIRST_MATCHED`.
|
215
256
|
# @return [String]
|
216
257
|
#
|
258
|
+
# @!attribute [rw] tags
|
259
|
+
# A collection of key and value pairs.
|
260
|
+
# @return [Array<Types::Tag>]
|
261
|
+
#
|
217
262
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateDetectorVersionRequest AWS API Documentation
|
218
263
|
#
|
219
264
|
class CreateDetectorVersionRequest < Struct.new(
|
@@ -222,7 +267,9 @@ module Aws::FraudDetector
|
|
222
267
|
:external_model_endpoints,
|
223
268
|
:rules,
|
224
269
|
:model_versions,
|
225
|
-
:rule_execution_mode
|
270
|
+
:rule_execution_mode,
|
271
|
+
:tags)
|
272
|
+
SENSITIVE = []
|
226
273
|
include Aws::Structure
|
227
274
|
end
|
228
275
|
|
@@ -244,16 +291,24 @@ module Aws::FraudDetector
|
|
244
291
|
:detector_id,
|
245
292
|
:detector_version_id,
|
246
293
|
:status)
|
294
|
+
SENSITIVE = []
|
247
295
|
include Aws::Structure
|
248
296
|
end
|
249
297
|
|
250
|
-
# @note When making an API call, you may pass
|
298
|
+
# @note When making an API call, you may pass CreateModelRequest
|
251
299
|
# data as a hash:
|
252
300
|
#
|
253
301
|
# {
|
254
302
|
# model_id: "identifier", # required
|
255
303
|
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
256
304
|
# description: "description",
|
305
|
+
# event_type_name: "string", # required
|
306
|
+
# tags: [
|
307
|
+
# {
|
308
|
+
# key: "tagKey", # required
|
309
|
+
# value: "tagValue", # required
|
310
|
+
# },
|
311
|
+
# ],
|
257
312
|
# }
|
258
313
|
#
|
259
314
|
# @!attribute [rw] model_id
|
@@ -265,15 +320,95 @@ module Aws::FraudDetector
|
|
265
320
|
# @return [String]
|
266
321
|
#
|
267
322
|
# @!attribute [rw] description
|
268
|
-
# The model
|
323
|
+
# The model description.
|
324
|
+
# @return [String]
|
325
|
+
#
|
326
|
+
# @!attribute [rw] event_type_name
|
327
|
+
# The name of the event type.
|
328
|
+
# @return [String]
|
329
|
+
#
|
330
|
+
# @!attribute [rw] tags
|
331
|
+
# A collection of key and value pairs.
|
332
|
+
# @return [Array<Types::Tag>]
|
333
|
+
#
|
334
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModelRequest AWS API Documentation
|
335
|
+
#
|
336
|
+
class CreateModelRequest < Struct.new(
|
337
|
+
:model_id,
|
338
|
+
:model_type,
|
339
|
+
:description,
|
340
|
+
:event_type_name,
|
341
|
+
:tags)
|
342
|
+
SENSITIVE = []
|
343
|
+
include Aws::Structure
|
344
|
+
end
|
345
|
+
|
346
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModelResult AWS API Documentation
|
347
|
+
#
|
348
|
+
class CreateModelResult < Aws::EmptyStructure; end
|
349
|
+
|
350
|
+
# @note When making an API call, you may pass CreateModelVersionRequest
|
351
|
+
# data as a hash:
|
352
|
+
#
|
353
|
+
# {
|
354
|
+
# model_id: "identifier", # required
|
355
|
+
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
356
|
+
# training_data_source: "EXTERNAL_EVENTS", # required, accepts EXTERNAL_EVENTS
|
357
|
+
# training_data_schema: { # required
|
358
|
+
# model_variables: ["string"], # required
|
359
|
+
# label_schema: { # required
|
360
|
+
# label_mapper: { # required
|
361
|
+
# "string" => ["string"],
|
362
|
+
# },
|
363
|
+
# },
|
364
|
+
# },
|
365
|
+
# external_events_detail: {
|
366
|
+
# data_location: "s3BucketLocation", # required
|
367
|
+
# data_access_role_arn: "iamRoleArn", # required
|
368
|
+
# },
|
369
|
+
# tags: [
|
370
|
+
# {
|
371
|
+
# key: "tagKey", # required
|
372
|
+
# value: "tagValue", # required
|
373
|
+
# },
|
374
|
+
# ],
|
375
|
+
# }
|
376
|
+
#
|
377
|
+
# @!attribute [rw] model_id
|
378
|
+
# The model ID.
|
379
|
+
# @return [String]
|
380
|
+
#
|
381
|
+
# @!attribute [rw] model_type
|
382
|
+
# The model type.
|
383
|
+
# @return [String]
|
384
|
+
#
|
385
|
+
# @!attribute [rw] training_data_source
|
386
|
+
# The training data source location in Amazon S3.
|
269
387
|
# @return [String]
|
270
388
|
#
|
389
|
+
# @!attribute [rw] training_data_schema
|
390
|
+
# The training data schema.
|
391
|
+
# @return [Types::TrainingDataSchema]
|
392
|
+
#
|
393
|
+
# @!attribute [rw] external_events_detail
|
394
|
+
# Details for the external events data used for model version
|
395
|
+
# training. Required if `trainingDataSource` is `EXTERNAL_EVENTS`.
|
396
|
+
# @return [Types::ExternalEventsDetail]
|
397
|
+
#
|
398
|
+
# @!attribute [rw] tags
|
399
|
+
# A collection of key and value pairs.
|
400
|
+
# @return [Array<Types::Tag>]
|
401
|
+
#
|
271
402
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModelVersionRequest AWS API Documentation
|
272
403
|
#
|
273
404
|
class CreateModelVersionRequest < Struct.new(
|
274
405
|
:model_id,
|
275
406
|
:model_type,
|
276
|
-
:
|
407
|
+
:training_data_source,
|
408
|
+
:training_data_schema,
|
409
|
+
:external_events_detail,
|
410
|
+
:tags)
|
411
|
+
SENSITIVE = []
|
277
412
|
include Aws::Structure
|
278
413
|
end
|
279
414
|
|
@@ -286,7 +421,7 @@ module Aws::FraudDetector
|
|
286
421
|
# @return [String]
|
287
422
|
#
|
288
423
|
# @!attribute [rw] model_version_number
|
289
|
-
# The version of the model.
|
424
|
+
# The model version number of the model version created.
|
290
425
|
# @return [String]
|
291
426
|
#
|
292
427
|
# @!attribute [rw] status
|
@@ -300,6 +435,7 @@ module Aws::FraudDetector
|
|
300
435
|
:model_type,
|
301
436
|
:model_version_number,
|
302
437
|
:status)
|
438
|
+
SENSITIVE = []
|
303
439
|
include Aws::Structure
|
304
440
|
end
|
305
441
|
|
@@ -313,6 +449,12 @@ module Aws::FraudDetector
|
|
313
449
|
# expression: "ruleExpression", # required
|
314
450
|
# language: "DETECTORPL", # required, accepts DETECTORPL
|
315
451
|
# outcomes: ["string"], # required
|
452
|
+
# tags: [
|
453
|
+
# {
|
454
|
+
# key: "tagKey", # required
|
455
|
+
# value: "tagValue", # required
|
456
|
+
# },
|
457
|
+
# ],
|
316
458
|
# }
|
317
459
|
#
|
318
460
|
# @!attribute [rw] rule_id
|
@@ -339,6 +481,10 @@ module Aws::FraudDetector
|
|
339
481
|
# The outcome or outcomes returned when the rule expression matches.
|
340
482
|
# @return [Array<String>]
|
341
483
|
#
|
484
|
+
# @!attribute [rw] tags
|
485
|
+
# A collection of key and value pairs.
|
486
|
+
# @return [Array<Types::Tag>]
|
487
|
+
#
|
342
488
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateRuleRequest AWS API Documentation
|
343
489
|
#
|
344
490
|
class CreateRuleRequest < Struct.new(
|
@@ -347,7 +493,9 @@ module Aws::FraudDetector
|
|
347
493
|
:description,
|
348
494
|
:expression,
|
349
495
|
:language,
|
350
|
-
:outcomes
|
496
|
+
:outcomes,
|
497
|
+
:tags)
|
498
|
+
SENSITIVE = [:expression]
|
351
499
|
include Aws::Structure
|
352
500
|
end
|
353
501
|
|
@@ -359,6 +507,7 @@ module Aws::FraudDetector
|
|
359
507
|
#
|
360
508
|
class CreateRuleResult < Struct.new(
|
361
509
|
:rule)
|
510
|
+
SENSITIVE = []
|
362
511
|
include Aws::Structure
|
363
512
|
end
|
364
513
|
|
@@ -372,6 +521,12 @@ module Aws::FraudDetector
|
|
372
521
|
# default_value: "string", # required
|
373
522
|
# description: "string",
|
374
523
|
# variable_type: "string",
|
524
|
+
# tags: [
|
525
|
+
# {
|
526
|
+
# key: "tagKey", # required
|
527
|
+
# value: "tagValue", # required
|
528
|
+
# },
|
529
|
+
# ],
|
375
530
|
# }
|
376
531
|
#
|
377
532
|
# @!attribute [rw] name
|
@@ -396,8 +551,22 @@ module Aws::FraudDetector
|
|
396
551
|
#
|
397
552
|
# @!attribute [rw] variable_type
|
398
553
|
# The variable type.
|
554
|
+
#
|
555
|
+
# Valid Values: `AUTH_CODE | AVS | BILLING_ADDRESS_L1 |
|
556
|
+
# BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME |
|
557
|
+
# BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL
|
558
|
+
# | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL |
|
559
|
+
# FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE |
|
560
|
+
# PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 |
|
561
|
+
# SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY |
|
562
|
+
# SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP |
|
563
|
+
# USERAGENT | SHIPPING_ZIP | USERAGENT`
|
399
564
|
# @return [String]
|
400
565
|
#
|
566
|
+
# @!attribute [rw] tags
|
567
|
+
# A collection of key and value pairs.
|
568
|
+
# @return [Array<Types::Tag>]
|
569
|
+
#
|
401
570
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateVariableRequest AWS API Documentation
|
402
571
|
#
|
403
572
|
class CreateVariableRequest < Struct.new(
|
@@ -406,7 +575,9 @@ module Aws::FraudDetector
|
|
406
575
|
:data_source,
|
407
576
|
:default_value,
|
408
577
|
:description,
|
409
|
-
:variable_type
|
578
|
+
:variable_type,
|
579
|
+
:tags)
|
580
|
+
SENSITIVE = []
|
410
581
|
include Aws::Structure
|
411
582
|
end
|
412
583
|
|
@@ -414,6 +585,25 @@ module Aws::FraudDetector
|
|
414
585
|
#
|
415
586
|
class CreateVariableResult < Aws::EmptyStructure; end
|
416
587
|
|
588
|
+
# The model training validation messages.
|
589
|
+
#
|
590
|
+
# @!attribute [rw] file_level_messages
|
591
|
+
# The file-specific model training validation messages.
|
592
|
+
# @return [Array<Types::FileValidationMessage>]
|
593
|
+
#
|
594
|
+
# @!attribute [rw] field_level_messages
|
595
|
+
# The field-specific model training validation messages.
|
596
|
+
# @return [Array<Types::FieldValidationMessage>]
|
597
|
+
#
|
598
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DataValidationMetrics AWS API Documentation
|
599
|
+
#
|
600
|
+
class DataValidationMetrics < Struct.new(
|
601
|
+
:file_level_messages,
|
602
|
+
:field_level_messages)
|
603
|
+
SENSITIVE = []
|
604
|
+
include Aws::Structure
|
605
|
+
end
|
606
|
+
|
417
607
|
# @note When making an API call, you may pass DeleteDetectorRequest
|
418
608
|
# data as a hash:
|
419
609
|
#
|
@@ -429,6 +619,7 @@ module Aws::FraudDetector
|
|
429
619
|
#
|
430
620
|
class DeleteDetectorRequest < Struct.new(
|
431
621
|
:detector_id)
|
622
|
+
SENSITIVE = []
|
432
623
|
include Aws::Structure
|
433
624
|
end
|
434
625
|
|
@@ -441,7 +632,7 @@ module Aws::FraudDetector
|
|
441
632
|
#
|
442
633
|
# {
|
443
634
|
# detector_id: "identifier", # required
|
444
|
-
# detector_version_id: "
|
635
|
+
# detector_version_id: "wholeNumberVersionString", # required
|
445
636
|
# }
|
446
637
|
#
|
447
638
|
# @!attribute [rw] detector_id
|
@@ -457,6 +648,7 @@ module Aws::FraudDetector
|
|
457
648
|
class DeleteDetectorVersionRequest < Struct.new(
|
458
649
|
:detector_id,
|
459
650
|
:detector_version_id)
|
651
|
+
SENSITIVE = []
|
460
652
|
include Aws::Structure
|
461
653
|
end
|
462
654
|
|
@@ -469,16 +661,23 @@ module Aws::FraudDetector
|
|
469
661
|
#
|
470
662
|
# {
|
471
663
|
# event_id: "string", # required
|
664
|
+
# event_type_name: "string", # required
|
472
665
|
# }
|
473
666
|
#
|
474
667
|
# @!attribute [rw] event_id
|
475
668
|
# The ID of the event to delete.
|
476
669
|
# @return [String]
|
477
670
|
#
|
671
|
+
# @!attribute [rw] event_type_name
|
672
|
+
# The name of the event type.
|
673
|
+
# @return [String]
|
674
|
+
#
|
478
675
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEventRequest AWS API Documentation
|
479
676
|
#
|
480
677
|
class DeleteEventRequest < Struct.new(
|
481
|
-
:event_id
|
678
|
+
:event_id,
|
679
|
+
:event_type_name)
|
680
|
+
SENSITIVE = []
|
482
681
|
include Aws::Structure
|
483
682
|
end
|
484
683
|
|
@@ -486,39 +685,32 @@ module Aws::FraudDetector
|
|
486
685
|
#
|
487
686
|
class DeleteEventResult < Aws::EmptyStructure; end
|
488
687
|
|
489
|
-
# @note When making an API call, you may pass
|
688
|
+
# @note When making an API call, you may pass DeleteRuleRequest
|
490
689
|
# data as a hash:
|
491
690
|
#
|
492
691
|
# {
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
692
|
+
# rule: { # required
|
693
|
+
# detector_id: "identifier", # required
|
694
|
+
# rule_id: "identifier", # required
|
695
|
+
# rule_version: "wholeNumberVersionString", # required
|
696
|
+
# },
|
496
697
|
# }
|
497
698
|
#
|
498
|
-
# @!attribute [rw]
|
499
|
-
#
|
500
|
-
# @return [
|
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]
|
699
|
+
# @!attribute [rw] rule
|
700
|
+
# A rule.
|
701
|
+
# @return [Types::Rule]
|
509
702
|
#
|
510
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/
|
703
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleRequest AWS API Documentation
|
511
704
|
#
|
512
|
-
class
|
513
|
-
:
|
514
|
-
|
515
|
-
:rule_version)
|
705
|
+
class DeleteRuleRequest < Struct.new(
|
706
|
+
:rule)
|
707
|
+
SENSITIVE = []
|
516
708
|
include Aws::Structure
|
517
709
|
end
|
518
710
|
|
519
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/
|
711
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleResult AWS API Documentation
|
520
712
|
#
|
521
|
-
class
|
713
|
+
class DeleteRuleResult < Aws::EmptyStructure; end
|
522
714
|
|
523
715
|
# @note When making an API call, you may pass DescribeDetectorRequest
|
524
716
|
# data as a hash:
|
@@ -547,6 +739,7 @@ module Aws::FraudDetector
|
|
547
739
|
:detector_id,
|
548
740
|
:next_token,
|
549
741
|
:max_results)
|
742
|
+
SENSITIVE = []
|
550
743
|
include Aws::Structure
|
551
744
|
end
|
552
745
|
|
@@ -562,12 +755,18 @@ module Aws::FraudDetector
|
|
562
755
|
# The next token to be used for subsequent requests.
|
563
756
|
# @return [String]
|
564
757
|
#
|
758
|
+
# @!attribute [rw] arn
|
759
|
+
# The detector ARN.
|
760
|
+
# @return [String]
|
761
|
+
#
|
565
762
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeDetectorResult AWS API Documentation
|
566
763
|
#
|
567
764
|
class DescribeDetectorResult < Struct.new(
|
568
765
|
:detector_id,
|
569
766
|
:detector_version_summaries,
|
570
|
-
:next_token
|
767
|
+
:next_token,
|
768
|
+
:arn)
|
769
|
+
SENSITIVE = []
|
571
770
|
include Aws::Structure
|
572
771
|
end
|
573
772
|
|
@@ -576,7 +775,7 @@ module Aws::FraudDetector
|
|
576
775
|
#
|
577
776
|
# {
|
578
777
|
# model_id: "identifier",
|
579
|
-
# model_version_number: "
|
778
|
+
# model_version_number: "floatVersionString",
|
580
779
|
# model_type: "ONLINE_FRAUD_INSIGHTS", # accepts ONLINE_FRAUD_INSIGHTS
|
581
780
|
# next_token: "string",
|
582
781
|
# max_results: 1,
|
@@ -587,7 +786,7 @@ module Aws::FraudDetector
|
|
587
786
|
# @return [String]
|
588
787
|
#
|
589
788
|
# @!attribute [rw] model_version_number
|
590
|
-
# The model version.
|
789
|
+
# The model version number.
|
591
790
|
# @return [String]
|
592
791
|
#
|
593
792
|
# @!attribute [rw] model_type
|
@@ -610,6 +809,7 @@ module Aws::FraudDetector
|
|
610
809
|
:model_type,
|
611
810
|
:next_token,
|
612
811
|
:max_results)
|
812
|
+
SENSITIVE = []
|
613
813
|
include Aws::Structure
|
614
814
|
end
|
615
815
|
|
@@ -626,6 +826,7 @@ module Aws::FraudDetector
|
|
626
826
|
class DescribeModelVersionsResult < Struct.new(
|
627
827
|
:model_version_details,
|
628
828
|
:next_token)
|
829
|
+
SENSITIVE = []
|
629
830
|
include Aws::Structure
|
630
831
|
end
|
631
832
|
|
@@ -639,6 +840,10 @@ module Aws::FraudDetector
|
|
639
840
|
# The detector description.
|
640
841
|
# @return [String]
|
641
842
|
#
|
843
|
+
# @!attribute [rw] event_type_name
|
844
|
+
# The name of the event type.
|
845
|
+
# @return [String]
|
846
|
+
#
|
642
847
|
# @!attribute [rw] last_updated_time
|
643
848
|
# Timestamp of when the detector was last updated.
|
644
849
|
# @return [String]
|
@@ -647,13 +852,20 @@ module Aws::FraudDetector
|
|
647
852
|
# Timestamp of when the detector was created.
|
648
853
|
# @return [String]
|
649
854
|
#
|
855
|
+
# @!attribute [rw] arn
|
856
|
+
# The detector ARN.
|
857
|
+
# @return [String]
|
858
|
+
#
|
650
859
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Detector AWS API Documentation
|
651
860
|
#
|
652
861
|
class Detector < Struct.new(
|
653
862
|
:detector_id,
|
654
863
|
:description,
|
864
|
+
:event_type_name,
|
655
865
|
:last_updated_time,
|
656
|
-
:created_time
|
866
|
+
:created_time,
|
867
|
+
:arn)
|
868
|
+
SENSITIVE = []
|
657
869
|
include Aws::Structure
|
658
870
|
end
|
659
871
|
|
@@ -682,6 +894,146 @@ module Aws::FraudDetector
|
|
682
894
|
:status,
|
683
895
|
:description,
|
684
896
|
:last_updated_time)
|
897
|
+
SENSITIVE = []
|
898
|
+
include Aws::Structure
|
899
|
+
end
|
900
|
+
|
901
|
+
# The entity details.
|
902
|
+
#
|
903
|
+
# @note When making an API call, you may pass Entity
|
904
|
+
# data as a hash:
|
905
|
+
#
|
906
|
+
# {
|
907
|
+
# entity_type: "string",
|
908
|
+
# entity_id: "identifier",
|
909
|
+
# }
|
910
|
+
#
|
911
|
+
# @!attribute [rw] entity_type
|
912
|
+
# The entity type.
|
913
|
+
# @return [String]
|
914
|
+
#
|
915
|
+
# @!attribute [rw] entity_id
|
916
|
+
# The entity ID. If you do not know the `entityId`, you can pass
|
917
|
+
# `unknown`, which is areserved string literal.
|
918
|
+
# @return [String]
|
919
|
+
#
|
920
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Entity AWS API Documentation
|
921
|
+
#
|
922
|
+
class Entity < Struct.new(
|
923
|
+
:entity_type,
|
924
|
+
:entity_id)
|
925
|
+
SENSITIVE = []
|
926
|
+
include Aws::Structure
|
927
|
+
end
|
928
|
+
|
929
|
+
# The entity type details.
|
930
|
+
#
|
931
|
+
# @!attribute [rw] name
|
932
|
+
# The entity type name.
|
933
|
+
# @return [String]
|
934
|
+
#
|
935
|
+
# @!attribute [rw] description
|
936
|
+
# The entity type description.
|
937
|
+
# @return [String]
|
938
|
+
#
|
939
|
+
# @!attribute [rw] last_updated_time
|
940
|
+
# Timestamp of when the entity type was last updated.
|
941
|
+
# @return [String]
|
942
|
+
#
|
943
|
+
# @!attribute [rw] created_time
|
944
|
+
# Timestamp of when the entity type was created.
|
945
|
+
# @return [String]
|
946
|
+
#
|
947
|
+
# @!attribute [rw] arn
|
948
|
+
# The entity type ARN.
|
949
|
+
# @return [String]
|
950
|
+
#
|
951
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/EntityType AWS API Documentation
|
952
|
+
#
|
953
|
+
class EntityType < Struct.new(
|
954
|
+
:name,
|
955
|
+
:description,
|
956
|
+
:last_updated_time,
|
957
|
+
:created_time,
|
958
|
+
:arn)
|
959
|
+
SENSITIVE = []
|
960
|
+
include Aws::Structure
|
961
|
+
end
|
962
|
+
|
963
|
+
# The event type details.
|
964
|
+
#
|
965
|
+
# @!attribute [rw] name
|
966
|
+
# The event type name.
|
967
|
+
# @return [String]
|
968
|
+
#
|
969
|
+
# @!attribute [rw] description
|
970
|
+
# The event type description.
|
971
|
+
# @return [String]
|
972
|
+
#
|
973
|
+
# @!attribute [rw] event_variables
|
974
|
+
# The event type event variables.
|
975
|
+
# @return [Array<String>]
|
976
|
+
#
|
977
|
+
# @!attribute [rw] labels
|
978
|
+
# The event type labels.
|
979
|
+
# @return [Array<String>]
|
980
|
+
#
|
981
|
+
# @!attribute [rw] entity_types
|
982
|
+
# The event type entity types.
|
983
|
+
# @return [Array<String>]
|
984
|
+
#
|
985
|
+
# @!attribute [rw] last_updated_time
|
986
|
+
# Timestamp of when the event type was last updated.
|
987
|
+
# @return [String]
|
988
|
+
#
|
989
|
+
# @!attribute [rw] created_time
|
990
|
+
# Timestamp of when the event type was created.
|
991
|
+
# @return [String]
|
992
|
+
#
|
993
|
+
# @!attribute [rw] arn
|
994
|
+
# The entity type ARN.
|
995
|
+
# @return [String]
|
996
|
+
#
|
997
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/EventType AWS API Documentation
|
998
|
+
#
|
999
|
+
class EventType < Struct.new(
|
1000
|
+
:name,
|
1001
|
+
:description,
|
1002
|
+
:event_variables,
|
1003
|
+
:labels,
|
1004
|
+
:entity_types,
|
1005
|
+
:last_updated_time,
|
1006
|
+
:created_time,
|
1007
|
+
:arn)
|
1008
|
+
SENSITIVE = []
|
1009
|
+
include Aws::Structure
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
# Details for the external events data used for model version training.
|
1013
|
+
#
|
1014
|
+
# @note When making an API call, you may pass ExternalEventsDetail
|
1015
|
+
# data as a hash:
|
1016
|
+
#
|
1017
|
+
# {
|
1018
|
+
# data_location: "s3BucketLocation", # required
|
1019
|
+
# data_access_role_arn: "iamRoleArn", # required
|
1020
|
+
# }
|
1021
|
+
#
|
1022
|
+
# @!attribute [rw] data_location
|
1023
|
+
# The Amazon S3 bucket location for the data.
|
1024
|
+
# @return [String]
|
1025
|
+
#
|
1026
|
+
# @!attribute [rw] data_access_role_arn
|
1027
|
+
# The ARN of the role that provides Amazon Fraud Detector access to
|
1028
|
+
# the data location.
|
1029
|
+
# @return [String]
|
1030
|
+
#
|
1031
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ExternalEventsDetail AWS API Documentation
|
1032
|
+
#
|
1033
|
+
class ExternalEventsDetail < Struct.new(
|
1034
|
+
:data_location,
|
1035
|
+
:data_access_role_arn)
|
1036
|
+
SENSITIVE = []
|
685
1037
|
include Aws::Structure
|
686
1038
|
end
|
687
1039
|
|
@@ -691,6 +1043,10 @@ module Aws::FraudDetector
|
|
691
1043
|
# The Amazon SageMaker model endpoints.
|
692
1044
|
# @return [String]
|
693
1045
|
#
|
1046
|
+
# @!attribute [rw] event_type_name
|
1047
|
+
# The event type names.
|
1048
|
+
# @return [String]
|
1049
|
+
#
|
694
1050
|
# @!attribute [rw] model_source
|
695
1051
|
# The source of the model.
|
696
1052
|
# @return [String]
|
@@ -719,17 +1075,82 @@ module Aws::FraudDetector
|
|
719
1075
|
# Timestamp of when the model was last created.
|
720
1076
|
# @return [String]
|
721
1077
|
#
|
1078
|
+
# @!attribute [rw] arn
|
1079
|
+
# The model ARN.
|
1080
|
+
# @return [String]
|
1081
|
+
#
|
722
1082
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ExternalModel AWS API Documentation
|
723
1083
|
#
|
724
1084
|
class ExternalModel < Struct.new(
|
725
1085
|
:model_endpoint,
|
1086
|
+
:event_type_name,
|
726
1087
|
:model_source,
|
727
1088
|
:role,
|
728
1089
|
:input_configuration,
|
729
1090
|
:output_configuration,
|
730
1091
|
:model_endpoint_status,
|
731
1092
|
:last_updated_time,
|
732
|
-
:created_time
|
1093
|
+
:created_time,
|
1094
|
+
:arn)
|
1095
|
+
SENSITIVE = []
|
1096
|
+
include Aws::Structure
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
# The message details.
|
1100
|
+
#
|
1101
|
+
# @!attribute [rw] field_name
|
1102
|
+
# The field name.
|
1103
|
+
# @return [String]
|
1104
|
+
#
|
1105
|
+
# @!attribute [rw] identifier
|
1106
|
+
# The message ID.
|
1107
|
+
# @return [String]
|
1108
|
+
#
|
1109
|
+
# @!attribute [rw] title
|
1110
|
+
# The message title.
|
1111
|
+
# @return [String]
|
1112
|
+
#
|
1113
|
+
# @!attribute [rw] content
|
1114
|
+
# The message content.
|
1115
|
+
# @return [String]
|
1116
|
+
#
|
1117
|
+
# @!attribute [rw] type
|
1118
|
+
# The message type.
|
1119
|
+
# @return [String]
|
1120
|
+
#
|
1121
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/FieldValidationMessage AWS API Documentation
|
1122
|
+
#
|
1123
|
+
class FieldValidationMessage < Struct.new(
|
1124
|
+
:field_name,
|
1125
|
+
:identifier,
|
1126
|
+
:title,
|
1127
|
+
:content,
|
1128
|
+
:type)
|
1129
|
+
SENSITIVE = []
|
1130
|
+
include Aws::Structure
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
# The message details.
|
1134
|
+
#
|
1135
|
+
# @!attribute [rw] title
|
1136
|
+
# The message title.
|
1137
|
+
# @return [String]
|
1138
|
+
#
|
1139
|
+
# @!attribute [rw] content
|
1140
|
+
# The message content.
|
1141
|
+
# @return [String]
|
1142
|
+
#
|
1143
|
+
# @!attribute [rw] type
|
1144
|
+
# The message type.
|
1145
|
+
# @return [String]
|
1146
|
+
#
|
1147
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/FileValidationMessage AWS API Documentation
|
1148
|
+
#
|
1149
|
+
class FileValidationMessage < Struct.new(
|
1150
|
+
:title,
|
1151
|
+
:content,
|
1152
|
+
:type)
|
1153
|
+
SENSITIVE = []
|
733
1154
|
include Aws::Structure
|
734
1155
|
end
|
735
1156
|
|
@@ -738,7 +1159,7 @@ module Aws::FraudDetector
|
|
738
1159
|
#
|
739
1160
|
# {
|
740
1161
|
# detector_id: "identifier", # required
|
741
|
-
# detector_version_id: "
|
1162
|
+
# detector_version_id: "wholeNumberVersionString", # required
|
742
1163
|
# }
|
743
1164
|
#
|
744
1165
|
# @!attribute [rw] detector_id
|
@@ -754,6 +1175,7 @@ module Aws::FraudDetector
|
|
754
1175
|
class GetDetectorVersionRequest < Struct.new(
|
755
1176
|
:detector_id,
|
756
1177
|
:detector_version_id)
|
1178
|
+
SENSITIVE = []
|
757
1179
|
include Aws::Structure
|
758
1180
|
end
|
759
1181
|
|
@@ -808,6 +1230,10 @@ module Aws::FraudDetector
|
|
808
1230
|
# draft status.
|
809
1231
|
# @return [String]
|
810
1232
|
#
|
1233
|
+
# @!attribute [rw] arn
|
1234
|
+
# The detector version ARN.
|
1235
|
+
# @return [String]
|
1236
|
+
#
|
811
1237
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersionResult AWS API Documentation
|
812
1238
|
#
|
813
1239
|
class GetDetectorVersionResult < Struct.new(
|
@@ -820,7 +1246,9 @@ module Aws::FraudDetector
|
|
820
1246
|
:status,
|
821
1247
|
:last_updated_time,
|
822
1248
|
:created_time,
|
823
|
-
:rule_execution_mode
|
1249
|
+
:rule_execution_mode,
|
1250
|
+
:arn)
|
1251
|
+
SENSITIVE = []
|
824
1252
|
include Aws::Structure
|
825
1253
|
end
|
826
1254
|
|
@@ -851,6 +1279,7 @@ module Aws::FraudDetector
|
|
851
1279
|
:detector_id,
|
852
1280
|
:next_token,
|
853
1281
|
:max_results)
|
1282
|
+
SENSITIVE = []
|
854
1283
|
include Aws::Structure
|
855
1284
|
end
|
856
1285
|
|
@@ -867,24 +1296,221 @@ module Aws::FraudDetector
|
|
867
1296
|
class GetDetectorsResult < Struct.new(
|
868
1297
|
:detectors,
|
869
1298
|
:next_token)
|
1299
|
+
SENSITIVE = []
|
870
1300
|
include Aws::Structure
|
871
1301
|
end
|
872
1302
|
|
873
|
-
# @note When making an API call, you may pass
|
1303
|
+
# @note When making an API call, you may pass GetEntityTypesRequest
|
874
1304
|
# data as a hash:
|
875
1305
|
#
|
876
1306
|
# {
|
877
|
-
#
|
1307
|
+
# name: "identifier",
|
878
1308
|
# next_token: "string",
|
879
1309
|
# max_results: 1,
|
880
1310
|
# }
|
881
1311
|
#
|
882
|
-
# @!attribute [rw]
|
883
|
-
# The
|
1312
|
+
# @!attribute [rw] name
|
1313
|
+
# The name.
|
884
1314
|
# @return [String]
|
885
1315
|
#
|
886
1316
|
# @!attribute [rw] next_token
|
887
|
-
# The next
|
1317
|
+
# The next token for the subsequent request.
|
1318
|
+
# @return [String]
|
1319
|
+
#
|
1320
|
+
# @!attribute [rw] max_results
|
1321
|
+
# The maximum number of objects to return for the request.
|
1322
|
+
# @return [Integer]
|
1323
|
+
#
|
1324
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEntityTypesRequest AWS API Documentation
|
1325
|
+
#
|
1326
|
+
class GetEntityTypesRequest < Struct.new(
|
1327
|
+
:name,
|
1328
|
+
:next_token,
|
1329
|
+
:max_results)
|
1330
|
+
SENSITIVE = []
|
1331
|
+
include Aws::Structure
|
1332
|
+
end
|
1333
|
+
|
1334
|
+
# @!attribute [rw] entity_types
|
1335
|
+
# An array of entity types.
|
1336
|
+
# @return [Array<Types::EntityType>]
|
1337
|
+
#
|
1338
|
+
# @!attribute [rw] next_token
|
1339
|
+
# The next page token.
|
1340
|
+
# @return [String]
|
1341
|
+
#
|
1342
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEntityTypesResult AWS API Documentation
|
1343
|
+
#
|
1344
|
+
class GetEntityTypesResult < Struct.new(
|
1345
|
+
:entity_types,
|
1346
|
+
:next_token)
|
1347
|
+
SENSITIVE = []
|
1348
|
+
include Aws::Structure
|
1349
|
+
end
|
1350
|
+
|
1351
|
+
# @note When making an API call, you may pass GetEventPredictionRequest
|
1352
|
+
# data as a hash:
|
1353
|
+
#
|
1354
|
+
# {
|
1355
|
+
# detector_id: "string", # required
|
1356
|
+
# detector_version_id: "string",
|
1357
|
+
# event_id: "string", # required
|
1358
|
+
# event_type_name: "string", # required
|
1359
|
+
# entities: [ # required
|
1360
|
+
# {
|
1361
|
+
# entity_type: "string",
|
1362
|
+
# entity_id: "identifier",
|
1363
|
+
# },
|
1364
|
+
# ],
|
1365
|
+
# event_timestamp: "string", # required
|
1366
|
+
# event_variables: { # required
|
1367
|
+
# "variableName" => "variableValue",
|
1368
|
+
# },
|
1369
|
+
# external_model_endpoint_data_blobs: {
|
1370
|
+
# "string" => {
|
1371
|
+
# byte_buffer: "data",
|
1372
|
+
# content_type: "contentType",
|
1373
|
+
# },
|
1374
|
+
# },
|
1375
|
+
# }
|
1376
|
+
#
|
1377
|
+
# @!attribute [rw] detector_id
|
1378
|
+
# The detector ID.
|
1379
|
+
# @return [String]
|
1380
|
+
#
|
1381
|
+
# @!attribute [rw] detector_version_id
|
1382
|
+
# The detector version ID.
|
1383
|
+
# @return [String]
|
1384
|
+
#
|
1385
|
+
# @!attribute [rw] event_id
|
1386
|
+
# The unique ID used to identify the event.
|
1387
|
+
# @return [String]
|
1388
|
+
#
|
1389
|
+
# @!attribute [rw] event_type_name
|
1390
|
+
# The event type associated with the detector specified for the
|
1391
|
+
# prediction.
|
1392
|
+
# @return [String]
|
1393
|
+
#
|
1394
|
+
# @!attribute [rw] entities
|
1395
|
+
# The entity type (associated with the detector's event type) and
|
1396
|
+
# specific entity ID representing who performed the event. If an
|
1397
|
+
# entity id is not available, use "UNKNOWN."
|
1398
|
+
# @return [Array<Types::Entity>]
|
1399
|
+
#
|
1400
|
+
# @!attribute [rw] event_timestamp
|
1401
|
+
# Timestamp that defines when the event under evaluation occurred.
|
1402
|
+
# @return [String]
|
1403
|
+
#
|
1404
|
+
# @!attribute [rw] event_variables
|
1405
|
+
# Names of the event type's variables you defined in Amazon Fraud
|
1406
|
+
# Detector to represent data elements and their corresponding values
|
1407
|
+
# for the event you are sending for evaluation.
|
1408
|
+
# @return [Hash<String,String>]
|
1409
|
+
#
|
1410
|
+
# @!attribute [rw] external_model_endpoint_data_blobs
|
1411
|
+
# The Amazon SageMaker model endpoint input data blobs.
|
1412
|
+
# @return [Hash<String,Types::ModelEndpointDataBlob>]
|
1413
|
+
#
|
1414
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEventPredictionRequest AWS API Documentation
|
1415
|
+
#
|
1416
|
+
class GetEventPredictionRequest < Struct.new(
|
1417
|
+
:detector_id,
|
1418
|
+
:detector_version_id,
|
1419
|
+
:event_id,
|
1420
|
+
:event_type_name,
|
1421
|
+
:entities,
|
1422
|
+
:event_timestamp,
|
1423
|
+
:event_variables,
|
1424
|
+
:external_model_endpoint_data_blobs)
|
1425
|
+
SENSITIVE = [:external_model_endpoint_data_blobs]
|
1426
|
+
include Aws::Structure
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
# @!attribute [rw] model_scores
|
1430
|
+
# The model scores. Amazon Fraud Detector generates model scores
|
1431
|
+
# between 0 and 1000, where 0 is low fraud risk and 1000 is high fraud
|
1432
|
+
# risk. Model scores are directly related to the false positive rate
|
1433
|
+
# (FPR). For example, a score of 600 corresponds to an estimated 10%
|
1434
|
+
# false positive rate whereas a score of 900 corresponds to an
|
1435
|
+
# estimated 2% false positive rate.
|
1436
|
+
# @return [Array<Types::ModelScores>]
|
1437
|
+
#
|
1438
|
+
# @!attribute [rw] rule_results
|
1439
|
+
# The results.
|
1440
|
+
# @return [Array<Types::RuleResult>]
|
1441
|
+
#
|
1442
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEventPredictionResult AWS API Documentation
|
1443
|
+
#
|
1444
|
+
class GetEventPredictionResult < Struct.new(
|
1445
|
+
:model_scores,
|
1446
|
+
:rule_results)
|
1447
|
+
SENSITIVE = []
|
1448
|
+
include Aws::Structure
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
# @note When making an API call, you may pass GetEventTypesRequest
|
1452
|
+
# data as a hash:
|
1453
|
+
#
|
1454
|
+
# {
|
1455
|
+
# name: "identifier",
|
1456
|
+
# next_token: "string",
|
1457
|
+
# max_results: 1,
|
1458
|
+
# }
|
1459
|
+
#
|
1460
|
+
# @!attribute [rw] name
|
1461
|
+
# The name.
|
1462
|
+
# @return [String]
|
1463
|
+
#
|
1464
|
+
# @!attribute [rw] next_token
|
1465
|
+
# The next token for the subsequent request.
|
1466
|
+
# @return [String]
|
1467
|
+
#
|
1468
|
+
# @!attribute [rw] max_results
|
1469
|
+
# The maximum number of objects to return for the request.
|
1470
|
+
# @return [Integer]
|
1471
|
+
#
|
1472
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEventTypesRequest AWS API Documentation
|
1473
|
+
#
|
1474
|
+
class GetEventTypesRequest < Struct.new(
|
1475
|
+
:name,
|
1476
|
+
:next_token,
|
1477
|
+
:max_results)
|
1478
|
+
SENSITIVE = []
|
1479
|
+
include Aws::Structure
|
1480
|
+
end
|
1481
|
+
|
1482
|
+
# @!attribute [rw] event_types
|
1483
|
+
# An array of event types.
|
1484
|
+
# @return [Array<Types::EventType>]
|
1485
|
+
#
|
1486
|
+
# @!attribute [rw] next_token
|
1487
|
+
# The next page token.
|
1488
|
+
# @return [String]
|
1489
|
+
#
|
1490
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEventTypesResult AWS API Documentation
|
1491
|
+
#
|
1492
|
+
class GetEventTypesResult < Struct.new(
|
1493
|
+
:event_types,
|
1494
|
+
:next_token)
|
1495
|
+
SENSITIVE = []
|
1496
|
+
include Aws::Structure
|
1497
|
+
end
|
1498
|
+
|
1499
|
+
# @note When making an API call, you may pass GetExternalModelsRequest
|
1500
|
+
# data as a hash:
|
1501
|
+
#
|
1502
|
+
# {
|
1503
|
+
# model_endpoint: "string",
|
1504
|
+
# next_token: "string",
|
1505
|
+
# max_results: 1,
|
1506
|
+
# }
|
1507
|
+
#
|
1508
|
+
# @!attribute [rw] model_endpoint
|
1509
|
+
# The Amazon SageMaker model endpoint.
|
1510
|
+
# @return [String]
|
1511
|
+
#
|
1512
|
+
# @!attribute [rw] next_token
|
1513
|
+
# The next page token for the request.
|
888
1514
|
# @return [String]
|
889
1515
|
#
|
890
1516
|
# @!attribute [rw] max_results
|
@@ -897,6 +1523,7 @@ module Aws::FraudDetector
|
|
897
1523
|
:model_endpoint,
|
898
1524
|
:next_token,
|
899
1525
|
:max_results)
|
1526
|
+
SENSITIVE = []
|
900
1527
|
include Aws::Structure
|
901
1528
|
end
|
902
1529
|
|
@@ -913,6 +1540,67 @@ module Aws::FraudDetector
|
|
913
1540
|
class GetExternalModelsResult < Struct.new(
|
914
1541
|
:external_models,
|
915
1542
|
:next_token)
|
1543
|
+
SENSITIVE = []
|
1544
|
+
include Aws::Structure
|
1545
|
+
end
|
1546
|
+
|
1547
|
+
# @!attribute [rw] kms_key
|
1548
|
+
# The KMS encryption key.
|
1549
|
+
# @return [Types::KMSKey]
|
1550
|
+
#
|
1551
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetKMSEncryptionKeyResult AWS API Documentation
|
1552
|
+
#
|
1553
|
+
class GetKMSEncryptionKeyResult < Struct.new(
|
1554
|
+
:kms_key)
|
1555
|
+
SENSITIVE = []
|
1556
|
+
include Aws::Structure
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
# @note When making an API call, you may pass GetLabelsRequest
|
1560
|
+
# data as a hash:
|
1561
|
+
#
|
1562
|
+
# {
|
1563
|
+
# name: "identifier",
|
1564
|
+
# next_token: "string",
|
1565
|
+
# max_results: 1,
|
1566
|
+
# }
|
1567
|
+
#
|
1568
|
+
# @!attribute [rw] name
|
1569
|
+
# The name of the label or labels to get.
|
1570
|
+
# @return [String]
|
1571
|
+
#
|
1572
|
+
# @!attribute [rw] next_token
|
1573
|
+
# The next token for the subsequent request.
|
1574
|
+
# @return [String]
|
1575
|
+
#
|
1576
|
+
# @!attribute [rw] max_results
|
1577
|
+
# The maximum number of objects to return for the request.
|
1578
|
+
# @return [Integer]
|
1579
|
+
#
|
1580
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetLabelsRequest AWS API Documentation
|
1581
|
+
#
|
1582
|
+
class GetLabelsRequest < Struct.new(
|
1583
|
+
:name,
|
1584
|
+
:next_token,
|
1585
|
+
:max_results)
|
1586
|
+
SENSITIVE = []
|
1587
|
+
include Aws::Structure
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
# @!attribute [rw] labels
|
1591
|
+
# An array of labels.
|
1592
|
+
# @return [Array<Types::Label>]
|
1593
|
+
#
|
1594
|
+
# @!attribute [rw] next_token
|
1595
|
+
# The next page token.
|
1596
|
+
# @return [String]
|
1597
|
+
#
|
1598
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetLabelsResult AWS API Documentation
|
1599
|
+
#
|
1600
|
+
class GetLabelsResult < Struct.new(
|
1601
|
+
:labels,
|
1602
|
+
:next_token)
|
1603
|
+
SENSITIVE = []
|
916
1604
|
include Aws::Structure
|
917
1605
|
end
|
918
1606
|
|
@@ -922,7 +1610,7 @@ module Aws::FraudDetector
|
|
922
1610
|
# {
|
923
1611
|
# model_id: "identifier", # required
|
924
1612
|
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
925
|
-
# model_version_number: "
|
1613
|
+
# model_version_number: "floatVersionString", # required
|
926
1614
|
# }
|
927
1615
|
#
|
928
1616
|
# @!attribute [rw] model_id
|
@@ -934,7 +1622,7 @@ module Aws::FraudDetector
|
|
934
1622
|
# @return [String]
|
935
1623
|
#
|
936
1624
|
# @!attribute [rw] model_version_number
|
937
|
-
# The model version.
|
1625
|
+
# The model version number.
|
938
1626
|
# @return [String]
|
939
1627
|
#
|
940
1628
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelVersionRequest AWS API Documentation
|
@@ -943,6 +1631,7 @@ module Aws::FraudDetector
|
|
943
1631
|
:model_id,
|
944
1632
|
:model_type,
|
945
1633
|
:model_version_number)
|
1634
|
+
SENSITIVE = []
|
946
1635
|
include Aws::Structure
|
947
1636
|
end
|
948
1637
|
|
@@ -955,25 +1644,41 @@ module Aws::FraudDetector
|
|
955
1644
|
# @return [String]
|
956
1645
|
#
|
957
1646
|
# @!attribute [rw] model_version_number
|
958
|
-
# The model version.
|
1647
|
+
# The model version number.
|
959
1648
|
# @return [String]
|
960
1649
|
#
|
961
|
-
# @!attribute [rw]
|
962
|
-
# The
|
1650
|
+
# @!attribute [rw] training_data_source
|
1651
|
+
# The training data source.
|
963
1652
|
# @return [String]
|
964
1653
|
#
|
1654
|
+
# @!attribute [rw] training_data_schema
|
1655
|
+
# The training data schema.
|
1656
|
+
# @return [Types::TrainingDataSchema]
|
1657
|
+
#
|
1658
|
+
# @!attribute [rw] external_events_detail
|
1659
|
+
# The event details.
|
1660
|
+
# @return [Types::ExternalEventsDetail]
|
1661
|
+
#
|
965
1662
|
# @!attribute [rw] status
|
966
1663
|
# The model version status.
|
967
1664
|
# @return [String]
|
968
1665
|
#
|
1666
|
+
# @!attribute [rw] arn
|
1667
|
+
# The model version ARN.
|
1668
|
+
# @return [String]
|
1669
|
+
#
|
969
1670
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelVersionResult AWS API Documentation
|
970
1671
|
#
|
971
1672
|
class GetModelVersionResult < Struct.new(
|
972
1673
|
:model_id,
|
973
1674
|
:model_type,
|
974
1675
|
:model_version_number,
|
975
|
-
:
|
976
|
-
:
|
1676
|
+
:training_data_source,
|
1677
|
+
:training_data_schema,
|
1678
|
+
:external_events_detail,
|
1679
|
+
:status,
|
1680
|
+
:arn)
|
1681
|
+
SENSITIVE = []
|
977
1682
|
include Aws::Structure
|
978
1683
|
end
|
979
1684
|
|
@@ -981,44 +1686,45 @@ module Aws::FraudDetector
|
|
981
1686
|
# data as a hash:
|
982
1687
|
#
|
983
1688
|
# {
|
984
|
-
# model_type: "ONLINE_FRAUD_INSIGHTS", # accepts ONLINE_FRAUD_INSIGHTS
|
985
1689
|
# model_id: "identifier",
|
1690
|
+
# model_type: "ONLINE_FRAUD_INSIGHTS", # accepts ONLINE_FRAUD_INSIGHTS
|
986
1691
|
# next_token: "string",
|
987
1692
|
# max_results: 1,
|
988
1693
|
# }
|
989
1694
|
#
|
990
|
-
# @!attribute [rw] model_type
|
991
|
-
# The model type.
|
992
|
-
# @return [String]
|
993
|
-
#
|
994
1695
|
# @!attribute [rw] model_id
|
995
1696
|
# The model ID.
|
996
1697
|
# @return [String]
|
997
1698
|
#
|
1699
|
+
# @!attribute [rw] model_type
|
1700
|
+
# The model type.
|
1701
|
+
# @return [String]
|
1702
|
+
#
|
998
1703
|
# @!attribute [rw] next_token
|
999
|
-
# The next token for the request.
|
1704
|
+
# The next token for the subsequent request.
|
1000
1705
|
# @return [String]
|
1001
1706
|
#
|
1002
1707
|
# @!attribute [rw] max_results
|
1003
|
-
# The maximum
|
1708
|
+
# The maximum number of objects to return for the request.
|
1004
1709
|
# @return [Integer]
|
1005
1710
|
#
|
1006
1711
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelsRequest AWS API Documentation
|
1007
1712
|
#
|
1008
1713
|
class GetModelsRequest < Struct.new(
|
1009
|
-
:model_type,
|
1010
1714
|
:model_id,
|
1715
|
+
:model_type,
|
1011
1716
|
:next_token,
|
1012
1717
|
:max_results)
|
1718
|
+
SENSITIVE = []
|
1013
1719
|
include Aws::Structure
|
1014
1720
|
end
|
1015
1721
|
|
1016
1722
|
# @!attribute [rw] next_token
|
1017
|
-
# The next token
|
1723
|
+
# The next page token to be used in subsequent requests.
|
1018
1724
|
# @return [String]
|
1019
1725
|
#
|
1020
1726
|
# @!attribute [rw] models
|
1021
|
-
# The
|
1727
|
+
# The array of models.
|
1022
1728
|
# @return [Array<Types::Model>]
|
1023
1729
|
#
|
1024
1730
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelsResult AWS API Documentation
|
@@ -1026,6 +1732,7 @@ module Aws::FraudDetector
|
|
1026
1732
|
class GetModelsResult < Struct.new(
|
1027
1733
|
:next_token,
|
1028
1734
|
:models)
|
1735
|
+
SENSITIVE = []
|
1029
1736
|
include Aws::Structure
|
1030
1737
|
end
|
1031
1738
|
|
@@ -1056,6 +1763,7 @@ module Aws::FraudDetector
|
|
1056
1763
|
:name,
|
1057
1764
|
:next_token,
|
1058
1765
|
:max_results)
|
1766
|
+
SENSITIVE = []
|
1059
1767
|
include Aws::Structure
|
1060
1768
|
end
|
1061
1769
|
|
@@ -1072,6 +1780,7 @@ module Aws::FraudDetector
|
|
1072
1780
|
class GetOutcomesResult < Struct.new(
|
1073
1781
|
:outcomes,
|
1074
1782
|
:next_token)
|
1783
|
+
SENSITIVE = []
|
1075
1784
|
include Aws::Structure
|
1076
1785
|
end
|
1077
1786
|
|
@@ -1123,6 +1832,7 @@ module Aws::FraudDetector
|
|
1123
1832
|
:event_id,
|
1124
1833
|
:event_attributes,
|
1125
1834
|
:external_model_endpoint_data_blobs)
|
1835
|
+
SENSITIVE = [:external_model_endpoint_data_blobs]
|
1126
1836
|
include Aws::Structure
|
1127
1837
|
end
|
1128
1838
|
|
@@ -1144,6 +1854,7 @@ module Aws::FraudDetector
|
|
1144
1854
|
:outcomes,
|
1145
1855
|
:model_scores,
|
1146
1856
|
:rule_results)
|
1857
|
+
SENSITIVE = []
|
1147
1858
|
include Aws::Structure
|
1148
1859
|
end
|
1149
1860
|
|
@@ -1153,7 +1864,7 @@ module Aws::FraudDetector
|
|
1153
1864
|
# {
|
1154
1865
|
# rule_id: "identifier",
|
1155
1866
|
# detector_id: "identifier", # required
|
1156
|
-
# rule_version: "
|
1867
|
+
# rule_version: "wholeNumberVersionString",
|
1157
1868
|
# next_token: "string",
|
1158
1869
|
# max_results: 1,
|
1159
1870
|
# }
|
@@ -1186,6 +1897,7 @@ module Aws::FraudDetector
|
|
1186
1897
|
:rule_version,
|
1187
1898
|
:next_token,
|
1188
1899
|
:max_results)
|
1900
|
+
SENSITIVE = []
|
1189
1901
|
include Aws::Structure
|
1190
1902
|
end
|
1191
1903
|
|
@@ -1202,6 +1914,7 @@ module Aws::FraudDetector
|
|
1202
1914
|
class GetRulesResult < Struct.new(
|
1203
1915
|
:rule_details,
|
1204
1916
|
:next_token)
|
1917
|
+
SENSITIVE = []
|
1205
1918
|
include Aws::Structure
|
1206
1919
|
end
|
1207
1920
|
|
@@ -1232,6 +1945,7 @@ module Aws::FraudDetector
|
|
1232
1945
|
:name,
|
1233
1946
|
:next_token,
|
1234
1947
|
:max_results)
|
1948
|
+
SENSITIVE = []
|
1235
1949
|
include Aws::Structure
|
1236
1950
|
end
|
1237
1951
|
|
@@ -1248,6 +1962,7 @@ module Aws::FraudDetector
|
|
1248
1962
|
class GetVariablesResult < Struct.new(
|
1249
1963
|
:variables,
|
1250
1964
|
:next_token)
|
1965
|
+
SENSITIVE = []
|
1251
1966
|
include Aws::Structure
|
1252
1967
|
end
|
1253
1968
|
|
@@ -1260,6 +1975,55 @@ module Aws::FraudDetector
|
|
1260
1975
|
#
|
1261
1976
|
class InternalServerException < Struct.new(
|
1262
1977
|
:message)
|
1978
|
+
SENSITIVE = []
|
1979
|
+
include Aws::Structure
|
1980
|
+
end
|
1981
|
+
|
1982
|
+
# The KMS key details.
|
1983
|
+
#
|
1984
|
+
# @!attribute [rw] kms_encryption_key_arn
|
1985
|
+
# The encryption key ARN.
|
1986
|
+
# @return [String]
|
1987
|
+
#
|
1988
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/KMSKey AWS API Documentation
|
1989
|
+
#
|
1990
|
+
class KMSKey < Struct.new(
|
1991
|
+
:kms_encryption_key_arn)
|
1992
|
+
SENSITIVE = []
|
1993
|
+
include Aws::Structure
|
1994
|
+
end
|
1995
|
+
|
1996
|
+
# The label details.
|
1997
|
+
#
|
1998
|
+
# @!attribute [rw] name
|
1999
|
+
# The label name.
|
2000
|
+
# @return [String]
|
2001
|
+
#
|
2002
|
+
# @!attribute [rw] description
|
2003
|
+
# The label description.
|
2004
|
+
# @return [String]
|
2005
|
+
#
|
2006
|
+
# @!attribute [rw] last_updated_time
|
2007
|
+
# Timestamp of when the label was last updated.
|
2008
|
+
# @return [String]
|
2009
|
+
#
|
2010
|
+
# @!attribute [rw] created_time
|
2011
|
+
# Timestamp of when the event type was created.
|
2012
|
+
# @return [String]
|
2013
|
+
#
|
2014
|
+
# @!attribute [rw] arn
|
2015
|
+
# The label ARN.
|
2016
|
+
# @return [String]
|
2017
|
+
#
|
2018
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Label AWS API Documentation
|
2019
|
+
#
|
2020
|
+
class Label < Struct.new(
|
2021
|
+
:name,
|
2022
|
+
:description,
|
2023
|
+
:last_updated_time,
|
2024
|
+
:created_time,
|
2025
|
+
:arn)
|
2026
|
+
SENSITIVE = []
|
1263
2027
|
include Aws::Structure
|
1264
2028
|
end
|
1265
2029
|
|
@@ -1269,32 +2033,110 @@ module Aws::FraudDetector
|
|
1269
2033
|
# data as a hash:
|
1270
2034
|
#
|
1271
2035
|
# {
|
1272
|
-
# label_key: "string", # required
|
1273
2036
|
# label_mapper: { # required
|
1274
2037
|
# "string" => ["string"],
|
1275
2038
|
# },
|
1276
2039
|
# }
|
1277
2040
|
#
|
1278
|
-
# @!attribute [rw] label_key
|
1279
|
-
# The label key.
|
1280
|
-
# @return [String]
|
1281
|
-
#
|
1282
2041
|
# @!attribute [rw] label_mapper
|
1283
|
-
# The label mapper maps the Amazon Fraud Detector supported
|
1284
|
-
#
|
1285
|
-
# `"LEGIT"
|
1286
|
-
# could be: `\{"FRAUD" =>
|
1287
|
-
#
|
1288
|
-
# ["
|
1289
|
-
# of the mapper is a list,
|
1290
|
-
#
|
2042
|
+
# The label mapper maps the Amazon Fraud Detector supported model
|
2043
|
+
# classification labels (`FRAUD`, `LEGIT`) to the appropriate event
|
2044
|
+
# type labels. For example, if "`FRAUD`" and "`LEGIT`" are Amazon
|
2045
|
+
# Fraud Detector supported labels, this mapper could be: `\{"FRAUD" =>
|
2046
|
+
# ["0"]`, `"LEGIT" => ["1"]\}` or `\{"FRAUD" => ["false"]`, `"LEGIT"
|
2047
|
+
# => ["true"]\}` or `\{"FRAUD" => ["fraud", "abuse"]`, `"LEGIT" =>
|
2048
|
+
# ["legit", "safe"]\}`. The value part of the mapper is a list,
|
2049
|
+
# because you may have multiple label variants from your event type
|
2050
|
+
# for a single Amazon Fraud Detector label.
|
1291
2051
|
# @return [Hash<String,Array<String>>]
|
1292
2052
|
#
|
1293
2053
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/LabelSchema AWS API Documentation
|
1294
2054
|
#
|
1295
2055
|
class LabelSchema < Struct.new(
|
1296
|
-
:label_key,
|
1297
2056
|
:label_mapper)
|
2057
|
+
SENSITIVE = []
|
2058
|
+
include Aws::Structure
|
2059
|
+
end
|
2060
|
+
|
2061
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
2062
|
+
# data as a hash:
|
2063
|
+
#
|
2064
|
+
# {
|
2065
|
+
# resource_arn: "fraudDetectorArn", # required
|
2066
|
+
# next_token: "string",
|
2067
|
+
# max_results: 1,
|
2068
|
+
# }
|
2069
|
+
#
|
2070
|
+
# @!attribute [rw] resource_arn
|
2071
|
+
# The ARN that specifies the resource whose tags you want to list.
|
2072
|
+
# @return [String]
|
2073
|
+
#
|
2074
|
+
# @!attribute [rw] next_token
|
2075
|
+
# The next token from the previous results.
|
2076
|
+
# @return [String]
|
2077
|
+
#
|
2078
|
+
# @!attribute [rw] max_results
|
2079
|
+
# The maximum number of objects to return for the request.
|
2080
|
+
# @return [Integer]
|
2081
|
+
#
|
2082
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ListTagsForResourceRequest AWS API Documentation
|
2083
|
+
#
|
2084
|
+
class ListTagsForResourceRequest < Struct.new(
|
2085
|
+
:resource_arn,
|
2086
|
+
:next_token,
|
2087
|
+
:max_results)
|
2088
|
+
SENSITIVE = []
|
2089
|
+
include Aws::Structure
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
# @!attribute [rw] tags
|
2093
|
+
# A collection of key and value pairs.
|
2094
|
+
# @return [Array<Types::Tag>]
|
2095
|
+
#
|
2096
|
+
# @!attribute [rw] next_token
|
2097
|
+
# The next token for subsequent requests.
|
2098
|
+
# @return [String]
|
2099
|
+
#
|
2100
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ListTagsForResourceResult AWS API Documentation
|
2101
|
+
#
|
2102
|
+
class ListTagsForResourceResult < Struct.new(
|
2103
|
+
:tags,
|
2104
|
+
:next_token)
|
2105
|
+
SENSITIVE = []
|
2106
|
+
include Aws::Structure
|
2107
|
+
end
|
2108
|
+
|
2109
|
+
# Model performance metrics data points.
|
2110
|
+
#
|
2111
|
+
# @!attribute [rw] fpr
|
2112
|
+
# The false positive rate. This is the percentage of total legitimate
|
2113
|
+
# events that are incorrectly predicted as fraud.
|
2114
|
+
# @return [Float]
|
2115
|
+
#
|
2116
|
+
# @!attribute [rw] precision
|
2117
|
+
# The percentage of fraud events correctly predicted as fraudulent as
|
2118
|
+
# compared to all events predicted as fraudulent.
|
2119
|
+
# @return [Float]
|
2120
|
+
#
|
2121
|
+
# @!attribute [rw] tpr
|
2122
|
+
# The true positive rate. This is the percentage of total fraud the
|
2123
|
+
# model detects. Also known as capture rate.
|
2124
|
+
# @return [Float]
|
2125
|
+
#
|
2126
|
+
# @!attribute [rw] threshold
|
2127
|
+
# The model threshold that specifies an acceptable fraud capture rate.
|
2128
|
+
# For example, a threshold of 500 means any model score 500 or above
|
2129
|
+
# is labeled as fraud.
|
2130
|
+
# @return [Float]
|
2131
|
+
#
|
2132
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/MetricDataPoint AWS API Documentation
|
2133
|
+
#
|
2134
|
+
class MetricDataPoint < Struct.new(
|
2135
|
+
:fpr,
|
2136
|
+
:precision,
|
2137
|
+
:tpr,
|
2138
|
+
:threshold)
|
2139
|
+
SENSITIVE = []
|
1298
2140
|
include Aws::Structure
|
1299
2141
|
end
|
1300
2142
|
|
@@ -1312,24 +2154,20 @@ module Aws::FraudDetector
|
|
1312
2154
|
# The model description.
|
1313
2155
|
# @return [String]
|
1314
2156
|
#
|
1315
|
-
# @!attribute [rw]
|
1316
|
-
# The
|
1317
|
-
# @return [
|
1318
|
-
#
|
1319
|
-
# @!attribute [rw] model_variables
|
1320
|
-
# The model input variables.
|
1321
|
-
# @return [Array<Types::ModelVariable>]
|
2157
|
+
# @!attribute [rw] event_type_name
|
2158
|
+
# The name of the event type.
|
2159
|
+
# @return [String]
|
1322
2160
|
#
|
1323
|
-
# @!attribute [rw]
|
1324
|
-
#
|
1325
|
-
# @return [
|
2161
|
+
# @!attribute [rw] created_time
|
2162
|
+
# Timestamp of when the model was created.
|
2163
|
+
# @return [String]
|
1326
2164
|
#
|
1327
2165
|
# @!attribute [rw] last_updated_time
|
1328
2166
|
# Timestamp of last time the model was updated.
|
1329
2167
|
# @return [String]
|
1330
2168
|
#
|
1331
|
-
# @!attribute [rw]
|
1332
|
-
#
|
2169
|
+
# @!attribute [rw] arn
|
2170
|
+
# The ARN of the model.
|
1333
2171
|
# @return [String]
|
1334
2172
|
#
|
1335
2173
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Model AWS API Documentation
|
@@ -1338,11 +2176,11 @@ module Aws::FraudDetector
|
|
1338
2176
|
:model_id,
|
1339
2177
|
:model_type,
|
1340
2178
|
:description,
|
1341
|
-
:
|
1342
|
-
:
|
1343
|
-
:label_schema,
|
2179
|
+
:event_type_name,
|
2180
|
+
:created_time,
|
1344
2181
|
:last_updated_time,
|
1345
|
-
:
|
2182
|
+
:arn)
|
2183
|
+
SENSITIVE = []
|
1346
2184
|
include Aws::Structure
|
1347
2185
|
end
|
1348
2186
|
|
@@ -1373,17 +2211,18 @@ module Aws::FraudDetector
|
|
1373
2211
|
class ModelEndpointDataBlob < Struct.new(
|
1374
2212
|
:byte_buffer,
|
1375
2213
|
:content_type)
|
2214
|
+
SENSITIVE = []
|
1376
2215
|
include Aws::Structure
|
1377
2216
|
end
|
1378
2217
|
|
1379
|
-
# The model input configuration.
|
2218
|
+
# The Amazon SageMaker model input configuration.
|
1380
2219
|
#
|
1381
2220
|
# @note When making an API call, you may pass ModelInputConfiguration
|
1382
2221
|
# data as a hash:
|
1383
2222
|
#
|
1384
2223
|
# {
|
1385
2224
|
# format: "TEXT_CSV", # accepts TEXT_CSV, APPLICATION_JSON
|
1386
|
-
#
|
2225
|
+
# use_event_variables: false, # required
|
1387
2226
|
# json_input_template: "string",
|
1388
2227
|
# csv_input_template: "string",
|
1389
2228
|
# }
|
@@ -1394,12 +2233,8 @@ module Aws::FraudDetector
|
|
1394
2233
|
# Amazon Fraud Detector.
|
1395
2234
|
# @return [String]
|
1396
2235
|
#
|
1397
|
-
# @!attribute [rw]
|
1398
|
-
#
|
1399
|
-
# blob provided in the getPrediction request, and will be passed to
|
1400
|
-
# SageMaker as-is. For non-opaque models, the input will be
|
1401
|
-
# constructed by Amazon Fraud Detector based on the
|
1402
|
-
# model-configuration.
|
2236
|
+
# @!attribute [rw] use_event_variables
|
2237
|
+
# The event variables.
|
1403
2238
|
# @return [Boolean]
|
1404
2239
|
#
|
1405
2240
|
# @!attribute [rw] json_input_template
|
@@ -1420,13 +2255,14 @@ module Aws::FraudDetector
|
|
1420
2255
|
#
|
1421
2256
|
class ModelInputConfiguration < Struct.new(
|
1422
2257
|
:format,
|
1423
|
-
:
|
2258
|
+
:use_event_variables,
|
1424
2259
|
:json_input_template,
|
1425
2260
|
:csv_input_template)
|
2261
|
+
SENSITIVE = []
|
1426
2262
|
include Aws::Structure
|
1427
2263
|
end
|
1428
2264
|
|
1429
|
-
# Provides the model output configuration.
|
2265
|
+
# Provides the Amazon Sagemaker model output configuration.
|
1430
2266
|
#
|
1431
2267
|
# @note When making an API call, you may pass ModelOutputConfiguration
|
1432
2268
|
# data as a hash:
|
@@ -1461,6 +2297,7 @@ module Aws::FraudDetector
|
|
1461
2297
|
:format,
|
1462
2298
|
:json_key_to_variable_map,
|
1463
2299
|
:csv_index_to_variable_map)
|
2300
|
+
SENSITIVE = []
|
1464
2301
|
include Aws::Structure
|
1465
2302
|
end
|
1466
2303
|
|
@@ -1479,32 +2316,7 @@ module Aws::FraudDetector
|
|
1479
2316
|
class ModelScores < Struct.new(
|
1480
2317
|
:model_version,
|
1481
2318
|
:scores)
|
1482
|
-
|
1483
|
-
end
|
1484
|
-
|
1485
|
-
# The model variable.>
|
1486
|
-
#
|
1487
|
-
# @note When making an API call, you may pass ModelVariable
|
1488
|
-
# data as a hash:
|
1489
|
-
#
|
1490
|
-
# {
|
1491
|
-
# name: "string", # required
|
1492
|
-
# index: 1,
|
1493
|
-
# }
|
1494
|
-
#
|
1495
|
-
# @!attribute [rw] name
|
1496
|
-
# The model variable's name.>
|
1497
|
-
# @return [String]
|
1498
|
-
#
|
1499
|
-
# @!attribute [rw] index
|
1500
|
-
# The model variable's index.>
|
1501
|
-
# @return [Integer]
|
1502
|
-
#
|
1503
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ModelVariable AWS API Documentation
|
1504
|
-
#
|
1505
|
-
class ModelVariable < Struct.new(
|
1506
|
-
:name,
|
1507
|
-
:index)
|
2319
|
+
SENSITIVE = []
|
1508
2320
|
include Aws::Structure
|
1509
2321
|
end
|
1510
2322
|
|
@@ -1517,10 +2329,11 @@ module Aws::FraudDetector
|
|
1517
2329
|
# model_id: "identifier", # required
|
1518
2330
|
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
1519
2331
|
# model_version_number: "nonEmptyString", # required
|
2332
|
+
# arn: "fraudDetectorArn",
|
1520
2333
|
# }
|
1521
2334
|
#
|
1522
2335
|
# @!attribute [rw] model_id
|
1523
|
-
# The
|
2336
|
+
# The model ID.
|
1524
2337
|
# @return [String]
|
1525
2338
|
#
|
1526
2339
|
# @!attribute [rw] model_type
|
@@ -1528,7 +2341,11 @@ module Aws::FraudDetector
|
|
1528
2341
|
# @return [String]
|
1529
2342
|
#
|
1530
2343
|
# @!attribute [rw] model_version_number
|
1531
|
-
# The model version.
|
2344
|
+
# The model version number.
|
2345
|
+
# @return [String]
|
2346
|
+
#
|
2347
|
+
# @!attribute [rw] arn
|
2348
|
+
# The model version ARN.
|
1532
2349
|
# @return [String]
|
1533
2350
|
#
|
1534
2351
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ModelVersion AWS API Documentation
|
@@ -1536,11 +2353,13 @@ module Aws::FraudDetector
|
|
1536
2353
|
class ModelVersion < Struct.new(
|
1537
2354
|
:model_id,
|
1538
2355
|
:model_type,
|
1539
|
-
:model_version_number
|
2356
|
+
:model_version_number,
|
2357
|
+
:arn)
|
2358
|
+
SENSITIVE = []
|
1540
2359
|
include Aws::Structure
|
1541
2360
|
end
|
1542
2361
|
|
1543
|
-
#
|
2362
|
+
# The details of the model version.
|
1544
2363
|
#
|
1545
2364
|
# @!attribute [rw] model_id
|
1546
2365
|
# The model ID.
|
@@ -1551,36 +2370,28 @@ module Aws::FraudDetector
|
|
1551
2370
|
# @return [String]
|
1552
2371
|
#
|
1553
2372
|
# @!attribute [rw] model_version_number
|
1554
|
-
# The model version.
|
1555
|
-
# @return [String]
|
1556
|
-
#
|
1557
|
-
# @!attribute [rw] description
|
1558
|
-
# The model description.
|
2373
|
+
# The model version number.
|
1559
2374
|
# @return [String]
|
1560
2375
|
#
|
1561
2376
|
# @!attribute [rw] status
|
1562
|
-
# The model
|
2377
|
+
# The status of the model version.
|
1563
2378
|
# @return [String]
|
1564
2379
|
#
|
1565
2380
|
# @!attribute [rw] training_data_source
|
1566
|
-
# The model training data source.
|
1567
|
-
# @return [
|
2381
|
+
# The model version training data source.
|
2382
|
+
# @return [String]
|
1568
2383
|
#
|
1569
|
-
# @!attribute [rw]
|
1570
|
-
# The
|
1571
|
-
# @return [
|
2384
|
+
# @!attribute [rw] training_data_schema
|
2385
|
+
# The training data schema.
|
2386
|
+
# @return [Types::TrainingDataSchema]
|
1572
2387
|
#
|
1573
|
-
# @!attribute [rw]
|
1574
|
-
# The
|
1575
|
-
# @return [Types::
|
2388
|
+
# @!attribute [rw] external_events_detail
|
2389
|
+
# The event details.
|
2390
|
+
# @return [Types::ExternalEventsDetail]
|
1576
2391
|
#
|
1577
|
-
# @!attribute [rw]
|
1578
|
-
# The
|
1579
|
-
# @return [
|
1580
|
-
#
|
1581
|
-
# @!attribute [rw] training_metrics
|
1582
|
-
# The model training metrics.
|
1583
|
-
# @return [Hash<String,String>]
|
2392
|
+
# @!attribute [rw] training_result
|
2393
|
+
# The training results.
|
2394
|
+
# @return [Types::TrainingResult]
|
1584
2395
|
#
|
1585
2396
|
# @!attribute [rw] last_updated_time
|
1586
2397
|
# The timestamp when the model was last updated.
|
@@ -1590,21 +2401,25 @@ module Aws::FraudDetector
|
|
1590
2401
|
# The timestamp when the model was created.
|
1591
2402
|
# @return [String]
|
1592
2403
|
#
|
2404
|
+
# @!attribute [rw] arn
|
2405
|
+
# The model version ARN.
|
2406
|
+
# @return [String]
|
2407
|
+
#
|
1593
2408
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ModelVersionDetail AWS API Documentation
|
1594
2409
|
#
|
1595
2410
|
class ModelVersionDetail < Struct.new(
|
1596
2411
|
:model_id,
|
1597
2412
|
:model_type,
|
1598
2413
|
:model_version_number,
|
1599
|
-
:description,
|
1600
2414
|
:status,
|
1601
2415
|
:training_data_source,
|
1602
|
-
:
|
1603
|
-
:
|
1604
|
-
:
|
1605
|
-
:training_metrics,
|
2416
|
+
:training_data_schema,
|
2417
|
+
:external_events_detail,
|
2418
|
+
:training_result,
|
1606
2419
|
:last_updated_time,
|
1607
|
-
:created_time
|
2420
|
+
:created_time,
|
2421
|
+
:arn)
|
2422
|
+
SENSITIVE = []
|
1608
2423
|
include Aws::Structure
|
1609
2424
|
end
|
1610
2425
|
|
@@ -1626,13 +2441,19 @@ module Aws::FraudDetector
|
|
1626
2441
|
# The timestamp when the outcome was created.
|
1627
2442
|
# @return [String]
|
1628
2443
|
#
|
2444
|
+
# @!attribute [rw] arn
|
2445
|
+
# The outcome ARN.
|
2446
|
+
# @return [String]
|
2447
|
+
#
|
1629
2448
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Outcome AWS API Documentation
|
1630
2449
|
#
|
1631
2450
|
class Outcome < Struct.new(
|
1632
2451
|
:name,
|
1633
2452
|
:description,
|
1634
2453
|
:last_updated_time,
|
1635
|
-
:created_time
|
2454
|
+
:created_time,
|
2455
|
+
:arn)
|
2456
|
+
SENSITIVE = []
|
1636
2457
|
include Aws::Structure
|
1637
2458
|
end
|
1638
2459
|
|
@@ -1642,6 +2463,13 @@ module Aws::FraudDetector
|
|
1642
2463
|
# {
|
1643
2464
|
# detector_id: "identifier", # required
|
1644
2465
|
# description: "description",
|
2466
|
+
# event_type_name: "identifier", # required
|
2467
|
+
# tags: [
|
2468
|
+
# {
|
2469
|
+
# key: "tagKey", # required
|
2470
|
+
# value: "tagValue", # required
|
2471
|
+
# },
|
2472
|
+
# ],
|
1645
2473
|
# }
|
1646
2474
|
#
|
1647
2475
|
# @!attribute [rw] detector_id
|
@@ -1652,23 +2480,134 @@ module Aws::FraudDetector
|
|
1652
2480
|
# The description of the detector.
|
1653
2481
|
# @return [String]
|
1654
2482
|
#
|
2483
|
+
# @!attribute [rw] event_type_name
|
2484
|
+
# The name of the event type.
|
2485
|
+
# @return [String]
|
2486
|
+
#
|
2487
|
+
# @!attribute [rw] tags
|
2488
|
+
# A collection of key and value pairs.
|
2489
|
+
# @return [Array<Types::Tag>]
|
2490
|
+
#
|
1655
2491
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutDetectorRequest AWS API Documentation
|
1656
2492
|
#
|
1657
2493
|
class PutDetectorRequest < Struct.new(
|
1658
2494
|
:detector_id,
|
1659
|
-
:description
|
2495
|
+
:description,
|
2496
|
+
:event_type_name,
|
2497
|
+
:tags)
|
2498
|
+
SENSITIVE = []
|
2499
|
+
include Aws::Structure
|
2500
|
+
end
|
2501
|
+
|
2502
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutDetectorResult AWS API Documentation
|
2503
|
+
#
|
2504
|
+
class PutDetectorResult < Aws::EmptyStructure; end
|
2505
|
+
|
2506
|
+
# @note When making an API call, you may pass PutEntityTypeRequest
|
2507
|
+
# data as a hash:
|
2508
|
+
#
|
2509
|
+
# {
|
2510
|
+
# name: "identifier", # required
|
2511
|
+
# description: "description",
|
2512
|
+
# tags: [
|
2513
|
+
# {
|
2514
|
+
# key: "tagKey", # required
|
2515
|
+
# value: "tagValue", # required
|
2516
|
+
# },
|
2517
|
+
# ],
|
2518
|
+
# }
|
2519
|
+
#
|
2520
|
+
# @!attribute [rw] name
|
2521
|
+
# The name of the entity type.
|
2522
|
+
# @return [String]
|
2523
|
+
#
|
2524
|
+
# @!attribute [rw] description
|
2525
|
+
# The description.
|
2526
|
+
# @return [String]
|
2527
|
+
#
|
2528
|
+
# @!attribute [rw] tags
|
2529
|
+
# A collection of key and value pairs.
|
2530
|
+
# @return [Array<Types::Tag>]
|
2531
|
+
#
|
2532
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEntityTypeRequest AWS API Documentation
|
2533
|
+
#
|
2534
|
+
class PutEntityTypeRequest < Struct.new(
|
2535
|
+
:name,
|
2536
|
+
:description,
|
2537
|
+
:tags)
|
2538
|
+
SENSITIVE = []
|
2539
|
+
include Aws::Structure
|
2540
|
+
end
|
2541
|
+
|
2542
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEntityTypeResult AWS API Documentation
|
2543
|
+
#
|
2544
|
+
class PutEntityTypeResult < Aws::EmptyStructure; end
|
2545
|
+
|
2546
|
+
# @note When making an API call, you may pass PutEventTypeRequest
|
2547
|
+
# data as a hash:
|
2548
|
+
#
|
2549
|
+
# {
|
2550
|
+
# name: "identifier", # required
|
2551
|
+
# description: "description",
|
2552
|
+
# event_variables: ["string"], # required
|
2553
|
+
# labels: ["string"],
|
2554
|
+
# entity_types: ["string"], # required
|
2555
|
+
# tags: [
|
2556
|
+
# {
|
2557
|
+
# key: "tagKey", # required
|
2558
|
+
# value: "tagValue", # required
|
2559
|
+
# },
|
2560
|
+
# ],
|
2561
|
+
# }
|
2562
|
+
#
|
2563
|
+
# @!attribute [rw] name
|
2564
|
+
# The name.
|
2565
|
+
# @return [String]
|
2566
|
+
#
|
2567
|
+
# @!attribute [rw] description
|
2568
|
+
# The description of the event type.
|
2569
|
+
# @return [String]
|
2570
|
+
#
|
2571
|
+
# @!attribute [rw] event_variables
|
2572
|
+
# The event type variables.
|
2573
|
+
# @return [Array<String>]
|
2574
|
+
#
|
2575
|
+
# @!attribute [rw] labels
|
2576
|
+
# The event type labels.
|
2577
|
+
# @return [Array<String>]
|
2578
|
+
#
|
2579
|
+
# @!attribute [rw] entity_types
|
2580
|
+
# The entity type for the event type. Example entity types: customer,
|
2581
|
+
# merchant, account.
|
2582
|
+
# @return [Array<String>]
|
2583
|
+
#
|
2584
|
+
# @!attribute [rw] tags
|
2585
|
+
# A collection of key and value pairs.
|
2586
|
+
# @return [Array<Types::Tag>]
|
2587
|
+
#
|
2588
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEventTypeRequest AWS API Documentation
|
2589
|
+
#
|
2590
|
+
class PutEventTypeRequest < Struct.new(
|
2591
|
+
:name,
|
2592
|
+
:description,
|
2593
|
+
:event_variables,
|
2594
|
+
:labels,
|
2595
|
+
:entity_types,
|
2596
|
+
:tags)
|
2597
|
+
SENSITIVE = []
|
1660
2598
|
include Aws::Structure
|
1661
2599
|
end
|
1662
2600
|
|
1663
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/
|
2601
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEventTypeResult AWS API Documentation
|
1664
2602
|
#
|
1665
|
-
class
|
2603
|
+
class PutEventTypeResult < Aws::EmptyStructure; end
|
1666
2604
|
|
1667
2605
|
# @note When making an API call, you may pass PutExternalModelRequest
|
1668
2606
|
# data as a hash:
|
1669
2607
|
#
|
1670
2608
|
# {
|
1671
|
-
# model_endpoint: "
|
2609
|
+
# model_endpoint: "sageMakerEndpointIdentifier", # required
|
2610
|
+
# event_type_name: "identifier",
|
1672
2611
|
# model_source: "SAGEMAKER", # required, accepts SAGEMAKER
|
1673
2612
|
# role: { # required
|
1674
2613
|
# arn: "string", # required
|
@@ -1676,7 +2615,7 @@ module Aws::FraudDetector
|
|
1676
2615
|
# },
|
1677
2616
|
# input_configuration: { # required
|
1678
2617
|
# format: "TEXT_CSV", # accepts TEXT_CSV, APPLICATION_JSON
|
1679
|
-
#
|
2618
|
+
# use_event_variables: false, # required
|
1680
2619
|
# json_input_template: "string",
|
1681
2620
|
# csv_input_template: "string",
|
1682
2621
|
# },
|
@@ -1690,12 +2629,22 @@ module Aws::FraudDetector
|
|
1690
2629
|
# },
|
1691
2630
|
# },
|
1692
2631
|
# model_endpoint_status: "ASSOCIATED", # required, accepts ASSOCIATED, DISSOCIATED
|
2632
|
+
# tags: [
|
2633
|
+
# {
|
2634
|
+
# key: "tagKey", # required
|
2635
|
+
# value: "tagValue", # required
|
2636
|
+
# },
|
2637
|
+
# ],
|
1693
2638
|
# }
|
1694
2639
|
#
|
1695
2640
|
# @!attribute [rw] model_endpoint
|
1696
2641
|
# The model endpoints name.
|
1697
2642
|
# @return [String]
|
1698
2643
|
#
|
2644
|
+
# @!attribute [rw] event_type_name
|
2645
|
+
# The event type name.
|
2646
|
+
# @return [String]
|
2647
|
+
#
|
1699
2648
|
# @!attribute [rw] model_source
|
1700
2649
|
# The source of the model.
|
1701
2650
|
# @return [String]
|
@@ -1716,15 +2665,22 @@ module Aws::FraudDetector
|
|
1716
2665
|
# The model endpoint’s status in Amazon Fraud Detector.
|
1717
2666
|
# @return [String]
|
1718
2667
|
#
|
2668
|
+
# @!attribute [rw] tags
|
2669
|
+
# A collection of key and value pairs.
|
2670
|
+
# @return [Array<Types::Tag>]
|
2671
|
+
#
|
1719
2672
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutExternalModelRequest AWS API Documentation
|
1720
2673
|
#
|
1721
2674
|
class PutExternalModelRequest < Struct.new(
|
1722
2675
|
:model_endpoint,
|
2676
|
+
:event_type_name,
|
1723
2677
|
:model_source,
|
1724
2678
|
:role,
|
1725
2679
|
:input_configuration,
|
1726
2680
|
:output_configuration,
|
1727
|
-
:model_endpoint_status
|
2681
|
+
:model_endpoint_status,
|
2682
|
+
:tags)
|
2683
|
+
SENSITIVE = []
|
1728
2684
|
include Aws::Structure
|
1729
2685
|
end
|
1730
2686
|
|
@@ -1732,70 +2688,67 @@ module Aws::FraudDetector
|
|
1732
2688
|
#
|
1733
2689
|
class PutExternalModelResult < Aws::EmptyStructure; end
|
1734
2690
|
|
1735
|
-
# @note When making an API call, you may pass
|
2691
|
+
# @note When making an API call, you may pass PutKMSEncryptionKeyRequest
|
1736
2692
|
# data as a hash:
|
1737
2693
|
#
|
1738
2694
|
# {
|
1739
|
-
#
|
1740
|
-
#
|
2695
|
+
# kms_encryption_key_arn: "KmsEncryptionKeyArn", # required
|
2696
|
+
# }
|
2697
|
+
#
|
2698
|
+
# @!attribute [rw] kms_encryption_key_arn
|
2699
|
+
# The KMS encryption key ARN.
|
2700
|
+
# @return [String]
|
2701
|
+
#
|
2702
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutKMSEncryptionKeyRequest AWS API Documentation
|
2703
|
+
#
|
2704
|
+
class PutKMSEncryptionKeyRequest < Struct.new(
|
2705
|
+
:kms_encryption_key_arn)
|
2706
|
+
SENSITIVE = []
|
2707
|
+
include Aws::Structure
|
2708
|
+
end
|
2709
|
+
|
2710
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutKMSEncryptionKeyResult AWS API Documentation
|
2711
|
+
#
|
2712
|
+
class PutKMSEncryptionKeyResult < Aws::EmptyStructure; end
|
2713
|
+
|
2714
|
+
# @note When making an API call, you may pass PutLabelRequest
|
2715
|
+
# data as a hash:
|
2716
|
+
#
|
2717
|
+
# {
|
2718
|
+
# name: "identifier", # required
|
1741
2719
|
# description: "description",
|
1742
|
-
#
|
1743
|
-
# data_location: "s3BucketLocation", # required
|
1744
|
-
# data_access_role_arn: "iamRoleArn", # required
|
1745
|
-
# },
|
1746
|
-
# model_variables: [ # required
|
2720
|
+
# tags: [
|
1747
2721
|
# {
|
1748
|
-
#
|
1749
|
-
#
|
2722
|
+
# key: "tagKey", # required
|
2723
|
+
# value: "tagValue", # required
|
1750
2724
|
# },
|
1751
2725
|
# ],
|
1752
|
-
# label_schema: { # required
|
1753
|
-
# label_key: "string", # required
|
1754
|
-
# label_mapper: { # required
|
1755
|
-
# "string" => ["string"],
|
1756
|
-
# },
|
1757
|
-
# },
|
1758
2726
|
# }
|
1759
2727
|
#
|
1760
|
-
# @!attribute [rw]
|
1761
|
-
# The
|
1762
|
-
# @return [String]
|
1763
|
-
#
|
1764
|
-
# @!attribute [rw] model_type
|
1765
|
-
# The model type.
|
2728
|
+
# @!attribute [rw] name
|
2729
|
+
# The label name.
|
1766
2730
|
# @return [String]
|
1767
2731
|
#
|
1768
2732
|
# @!attribute [rw] description
|
1769
|
-
# The
|
2733
|
+
# The label description.
|
1770
2734
|
# @return [String]
|
1771
2735
|
#
|
1772
|
-
# @!attribute [rw]
|
1773
|
-
#
|
1774
|
-
# @return [Types::TrainingDataSource]
|
1775
|
-
#
|
1776
|
-
# @!attribute [rw] model_variables
|
1777
|
-
# The model input variables.
|
1778
|
-
# @return [Array<Types::ModelVariable>]
|
1779
|
-
#
|
1780
|
-
# @!attribute [rw] label_schema
|
1781
|
-
# The label schema.
|
1782
|
-
# @return [Types::LabelSchema]
|
2736
|
+
# @!attribute [rw] tags
|
2737
|
+
# @return [Array<Types::Tag>]
|
1783
2738
|
#
|
1784
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/
|
2739
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutLabelRequest AWS API Documentation
|
1785
2740
|
#
|
1786
|
-
class
|
1787
|
-
:
|
1788
|
-
:model_type,
|
2741
|
+
class PutLabelRequest < Struct.new(
|
2742
|
+
:name,
|
1789
2743
|
:description,
|
1790
|
-
:
|
1791
|
-
|
1792
|
-
:label_schema)
|
2744
|
+
:tags)
|
2745
|
+
SENSITIVE = []
|
1793
2746
|
include Aws::Structure
|
1794
2747
|
end
|
1795
2748
|
|
1796
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/
|
2749
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutLabelResult AWS API Documentation
|
1797
2750
|
#
|
1798
|
-
class
|
2751
|
+
class PutLabelResult < Aws::EmptyStructure; end
|
1799
2752
|
|
1800
2753
|
# @note When making an API call, you may pass PutOutcomeRequest
|
1801
2754
|
# data as a hash:
|
@@ -1803,6 +2756,12 @@ module Aws::FraudDetector
|
|
1803
2756
|
# {
|
1804
2757
|
# name: "identifier", # required
|
1805
2758
|
# description: "description",
|
2759
|
+
# tags: [
|
2760
|
+
# {
|
2761
|
+
# key: "tagKey", # required
|
2762
|
+
# value: "tagValue", # required
|
2763
|
+
# },
|
2764
|
+
# ],
|
1806
2765
|
# }
|
1807
2766
|
#
|
1808
2767
|
# @!attribute [rw] name
|
@@ -1813,11 +2772,17 @@ module Aws::FraudDetector
|
|
1813
2772
|
# The outcome description.
|
1814
2773
|
# @return [String]
|
1815
2774
|
#
|
2775
|
+
# @!attribute [rw] tags
|
2776
|
+
# A collection of key and value pairs.
|
2777
|
+
# @return [Array<Types::Tag>]
|
2778
|
+
#
|
1816
2779
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutOutcomeRequest AWS API Documentation
|
1817
2780
|
#
|
1818
2781
|
class PutOutcomeRequest < Struct.new(
|
1819
2782
|
:name,
|
1820
|
-
:description
|
2783
|
+
:description,
|
2784
|
+
:tags)
|
2785
|
+
SENSITIVE = []
|
1821
2786
|
include Aws::Structure
|
1822
2787
|
end
|
1823
2788
|
|
@@ -1834,6 +2799,7 @@ module Aws::FraudDetector
|
|
1834
2799
|
#
|
1835
2800
|
class ResourceNotFoundException < Struct.new(
|
1836
2801
|
:message)
|
2802
|
+
SENSITIVE = []
|
1837
2803
|
include Aws::Structure
|
1838
2804
|
end
|
1839
2805
|
|
@@ -1860,6 +2826,7 @@ module Aws::FraudDetector
|
|
1860
2826
|
class Role < Struct.new(
|
1861
2827
|
:arn,
|
1862
2828
|
:name)
|
2829
|
+
SENSITIVE = []
|
1863
2830
|
include Aws::Structure
|
1864
2831
|
end
|
1865
2832
|
|
@@ -1871,7 +2838,7 @@ module Aws::FraudDetector
|
|
1871
2838
|
# {
|
1872
2839
|
# detector_id: "identifier", # required
|
1873
2840
|
# rule_id: "identifier", # required
|
1874
|
-
# rule_version: "
|
2841
|
+
# rule_version: "wholeNumberVersionString", # required
|
1875
2842
|
# }
|
1876
2843
|
#
|
1877
2844
|
# @!attribute [rw] detector_id
|
@@ -1892,6 +2859,7 @@ module Aws::FraudDetector
|
|
1892
2859
|
:detector_id,
|
1893
2860
|
:rule_id,
|
1894
2861
|
:rule_version)
|
2862
|
+
SENSITIVE = []
|
1895
2863
|
include Aws::Structure
|
1896
2864
|
end
|
1897
2865
|
|
@@ -1933,6 +2901,10 @@ module Aws::FraudDetector
|
|
1933
2901
|
# The timestamp of when the rule was created.
|
1934
2902
|
# @return [String]
|
1935
2903
|
#
|
2904
|
+
# @!attribute [rw] arn
|
2905
|
+
# The rule ARN.
|
2906
|
+
# @return [String]
|
2907
|
+
#
|
1936
2908
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/RuleDetail AWS API Documentation
|
1937
2909
|
#
|
1938
2910
|
class RuleDetail < Struct.new(
|
@@ -1944,7 +2916,9 @@ module Aws::FraudDetector
|
|
1944
2916
|
:language,
|
1945
2917
|
:outcomes,
|
1946
2918
|
:last_updated_time,
|
1947
|
-
:created_time
|
2919
|
+
:created_time,
|
2920
|
+
:arn)
|
2921
|
+
SENSITIVE = [:expression]
|
1948
2922
|
include Aws::Structure
|
1949
2923
|
end
|
1950
2924
|
|
@@ -1963,9 +2937,71 @@ module Aws::FraudDetector
|
|
1963
2937
|
class RuleResult < Struct.new(
|
1964
2938
|
:rule_id,
|
1965
2939
|
:outcomes)
|
2940
|
+
SENSITIVE = []
|
2941
|
+
include Aws::Structure
|
2942
|
+
end
|
2943
|
+
|
2944
|
+
# A key and value pair.
|
2945
|
+
#
|
2946
|
+
# @note When making an API call, you may pass Tag
|
2947
|
+
# data as a hash:
|
2948
|
+
#
|
2949
|
+
# {
|
2950
|
+
# key: "tagKey", # required
|
2951
|
+
# value: "tagValue", # required
|
2952
|
+
# }
|
2953
|
+
#
|
2954
|
+
# @!attribute [rw] key
|
2955
|
+
# A tag key.
|
2956
|
+
# @return [String]
|
2957
|
+
#
|
2958
|
+
# @!attribute [rw] value
|
2959
|
+
# A value assigned to a tag key.
|
2960
|
+
# @return [String]
|
2961
|
+
#
|
2962
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Tag AWS API Documentation
|
2963
|
+
#
|
2964
|
+
class Tag < Struct.new(
|
2965
|
+
:key,
|
2966
|
+
:value)
|
2967
|
+
SENSITIVE = []
|
2968
|
+
include Aws::Structure
|
2969
|
+
end
|
2970
|
+
|
2971
|
+
# @note When making an API call, you may pass TagResourceRequest
|
2972
|
+
# data as a hash:
|
2973
|
+
#
|
2974
|
+
# {
|
2975
|
+
# resource_arn: "fraudDetectorArn", # required
|
2976
|
+
# tags: [ # required
|
2977
|
+
# {
|
2978
|
+
# key: "tagKey", # required
|
2979
|
+
# value: "tagValue", # required
|
2980
|
+
# },
|
2981
|
+
# ],
|
2982
|
+
# }
|
2983
|
+
#
|
2984
|
+
# @!attribute [rw] resource_arn
|
2985
|
+
# The resource ARN.
|
2986
|
+
# @return [String]
|
2987
|
+
#
|
2988
|
+
# @!attribute [rw] tags
|
2989
|
+
# The tags to assign to the resource.
|
2990
|
+
# @return [Array<Types::Tag>]
|
2991
|
+
#
|
2992
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TagResourceRequest AWS API Documentation
|
2993
|
+
#
|
2994
|
+
class TagResourceRequest < Struct.new(
|
2995
|
+
:resource_arn,
|
2996
|
+
:tags)
|
2997
|
+
SENSITIVE = []
|
1966
2998
|
include Aws::Structure
|
1967
2999
|
end
|
1968
3000
|
|
3001
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TagResourceResult AWS API Documentation
|
3002
|
+
#
|
3003
|
+
class TagResourceResult < Aws::EmptyStructure; end
|
3004
|
+
|
1969
3005
|
# An exception indicating a throttling error.
|
1970
3006
|
#
|
1971
3007
|
# @!attribute [rw] message
|
@@ -1975,41 +3011,117 @@ module Aws::FraudDetector
|
|
1975
3011
|
#
|
1976
3012
|
class ThrottlingException < Struct.new(
|
1977
3013
|
:message)
|
3014
|
+
SENSITIVE = []
|
1978
3015
|
include Aws::Structure
|
1979
3016
|
end
|
1980
3017
|
|
1981
|
-
# The training data
|
3018
|
+
# The training data schema.
|
1982
3019
|
#
|
1983
|
-
# @note When making an API call, you may pass
|
3020
|
+
# @note When making an API call, you may pass TrainingDataSchema
|
1984
3021
|
# data as a hash:
|
1985
3022
|
#
|
1986
3023
|
# {
|
1987
|
-
#
|
1988
|
-
#
|
3024
|
+
# model_variables: ["string"], # required
|
3025
|
+
# label_schema: { # required
|
3026
|
+
# label_mapper: { # required
|
3027
|
+
# "string" => ["string"],
|
3028
|
+
# },
|
3029
|
+
# },
|
1989
3030
|
# }
|
1990
3031
|
#
|
1991
|
-
# @!attribute [rw]
|
1992
|
-
# The
|
1993
|
-
# @return [String]
|
3032
|
+
# @!attribute [rw] model_variables
|
3033
|
+
# The training data schema variables.
|
3034
|
+
# @return [Array<String>]
|
1994
3035
|
#
|
1995
|
-
# @!attribute [rw]
|
1996
|
-
# The
|
3036
|
+
# @!attribute [rw] label_schema
|
3037
|
+
# The label schema.
|
3038
|
+
# @return [Types::LabelSchema]
|
3039
|
+
#
|
3040
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TrainingDataSchema AWS API Documentation
|
3041
|
+
#
|
3042
|
+
class TrainingDataSchema < Struct.new(
|
3043
|
+
:model_variables,
|
3044
|
+
:label_schema)
|
3045
|
+
SENSITIVE = []
|
3046
|
+
include Aws::Structure
|
3047
|
+
end
|
3048
|
+
|
3049
|
+
# The training metric details.
|
3050
|
+
#
|
3051
|
+
# @!attribute [rw] auc
|
3052
|
+
# The area under the curve. This summarizes true positive rate (TPR)
|
3053
|
+
# and false positive rate (FPR) across all possible model score
|
3054
|
+
# thresholds. A model with no predictive power has an AUC of 0.5,
|
3055
|
+
# whereas a perfect model has a score of 1.0.
|
3056
|
+
# @return [Float]
|
3057
|
+
#
|
3058
|
+
# @!attribute [rw] metric_data_points
|
3059
|
+
# The data points details.
|
3060
|
+
# @return [Array<Types::MetricDataPoint>]
|
3061
|
+
#
|
3062
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TrainingMetrics AWS API Documentation
|
3063
|
+
#
|
3064
|
+
class TrainingMetrics < Struct.new(
|
3065
|
+
:auc,
|
3066
|
+
:metric_data_points)
|
3067
|
+
SENSITIVE = []
|
3068
|
+
include Aws::Structure
|
3069
|
+
end
|
3070
|
+
|
3071
|
+
# The training result details.
|
3072
|
+
#
|
3073
|
+
# @!attribute [rw] data_validation_metrics
|
3074
|
+
# The validation metrics.
|
3075
|
+
# @return [Types::DataValidationMetrics]
|
3076
|
+
#
|
3077
|
+
# @!attribute [rw] training_metrics
|
3078
|
+
# The training metric details.
|
3079
|
+
# @return [Types::TrainingMetrics]
|
3080
|
+
#
|
3081
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TrainingResult AWS API Documentation
|
3082
|
+
#
|
3083
|
+
class TrainingResult < Struct.new(
|
3084
|
+
:data_validation_metrics,
|
3085
|
+
:training_metrics)
|
3086
|
+
SENSITIVE = []
|
3087
|
+
include Aws::Structure
|
3088
|
+
end
|
3089
|
+
|
3090
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
3091
|
+
# data as a hash:
|
3092
|
+
#
|
3093
|
+
# {
|
3094
|
+
# resource_arn: "fraudDetectorArn", # required
|
3095
|
+
# tag_keys: ["tagKey"], # required
|
3096
|
+
# }
|
3097
|
+
#
|
3098
|
+
# @!attribute [rw] resource_arn
|
3099
|
+
# The ARN of the resource from which to remove the tag.
|
1997
3100
|
# @return [String]
|
1998
3101
|
#
|
1999
|
-
#
|
3102
|
+
# @!attribute [rw] tag_keys
|
3103
|
+
# The resource ARN.
|
3104
|
+
# @return [Array<String>]
|
2000
3105
|
#
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
3106
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UntagResourceRequest AWS API Documentation
|
3107
|
+
#
|
3108
|
+
class UntagResourceRequest < Struct.new(
|
3109
|
+
:resource_arn,
|
3110
|
+
:tag_keys)
|
3111
|
+
SENSITIVE = []
|
2004
3112
|
include Aws::Structure
|
2005
3113
|
end
|
2006
3114
|
|
3115
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UntagResourceResult AWS API Documentation
|
3116
|
+
#
|
3117
|
+
class UntagResourceResult < Aws::EmptyStructure; end
|
3118
|
+
|
2007
3119
|
# @note When making an API call, you may pass UpdateDetectorVersionMetadataRequest
|
2008
3120
|
# data as a hash:
|
2009
3121
|
#
|
2010
3122
|
# {
|
2011
3123
|
# detector_id: "identifier", # required
|
2012
|
-
# detector_version_id: "
|
3124
|
+
# detector_version_id: "wholeNumberVersionString", # required
|
2013
3125
|
# description: "description", # required
|
2014
3126
|
# }
|
2015
3127
|
#
|
@@ -2031,6 +3143,7 @@ module Aws::FraudDetector
|
|
2031
3143
|
:detector_id,
|
2032
3144
|
:detector_version_id,
|
2033
3145
|
:description)
|
3146
|
+
SENSITIVE = []
|
2034
3147
|
include Aws::Structure
|
2035
3148
|
end
|
2036
3149
|
|
@@ -2043,13 +3156,13 @@ module Aws::FraudDetector
|
|
2043
3156
|
#
|
2044
3157
|
# {
|
2045
3158
|
# detector_id: "identifier", # required
|
2046
|
-
# detector_version_id: "
|
3159
|
+
# detector_version_id: "wholeNumberVersionString", # required
|
2047
3160
|
# external_model_endpoints: ["string"], # required
|
2048
3161
|
# rules: [ # required
|
2049
3162
|
# {
|
2050
3163
|
# detector_id: "identifier", # required
|
2051
3164
|
# rule_id: "identifier", # required
|
2052
|
-
# rule_version: "
|
3165
|
+
# rule_version: "wholeNumberVersionString", # required
|
2053
3166
|
# },
|
2054
3167
|
# ],
|
2055
3168
|
# description: "description",
|
@@ -2058,6 +3171,7 @@ module Aws::FraudDetector
|
|
2058
3171
|
# model_id: "identifier", # required
|
2059
3172
|
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
2060
3173
|
# model_version_number: "nonEmptyString", # required
|
3174
|
+
# arn: "fraudDetectorArn",
|
2061
3175
|
# },
|
2062
3176
|
# ],
|
2063
3177
|
# rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
|
@@ -2114,6 +3228,7 @@ module Aws::FraudDetector
|
|
2114
3228
|
:description,
|
2115
3229
|
:model_versions,
|
2116
3230
|
:rule_execution_mode)
|
3231
|
+
SENSITIVE = []
|
2117
3232
|
include Aws::Structure
|
2118
3233
|
end
|
2119
3234
|
|
@@ -2126,7 +3241,7 @@ module Aws::FraudDetector
|
|
2126
3241
|
#
|
2127
3242
|
# {
|
2128
3243
|
# detector_id: "identifier", # required
|
2129
|
-
# detector_version_id: "
|
3244
|
+
# detector_version_id: "wholeNumberVersionString", # required
|
2130
3245
|
# status: "DRAFT", # required, accepts DRAFT, ACTIVE, INACTIVE
|
2131
3246
|
# }
|
2132
3247
|
#
|
@@ -2148,6 +3263,7 @@ module Aws::FraudDetector
|
|
2148
3263
|
:detector_id,
|
2149
3264
|
:detector_version_id,
|
2150
3265
|
:status)
|
3266
|
+
SENSITIVE = []
|
2151
3267
|
include Aws::Structure
|
2152
3268
|
end
|
2153
3269
|
|
@@ -2155,17 +3271,92 @@ module Aws::FraudDetector
|
|
2155
3271
|
#
|
2156
3272
|
class UpdateDetectorVersionStatusResult < Aws::EmptyStructure; end
|
2157
3273
|
|
3274
|
+
# @note When making an API call, you may pass UpdateModelRequest
|
3275
|
+
# data as a hash:
|
3276
|
+
#
|
3277
|
+
# {
|
3278
|
+
# model_id: "identifier", # required
|
3279
|
+
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
3280
|
+
# description: "description",
|
3281
|
+
# }
|
3282
|
+
#
|
3283
|
+
# @!attribute [rw] model_id
|
3284
|
+
# The model ID.
|
3285
|
+
# @return [String]
|
3286
|
+
#
|
3287
|
+
# @!attribute [rw] model_type
|
3288
|
+
# The model type.
|
3289
|
+
# @return [String]
|
3290
|
+
#
|
3291
|
+
# @!attribute [rw] description
|
3292
|
+
# The new model description.
|
3293
|
+
# @return [String]
|
3294
|
+
#
|
3295
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelRequest AWS API Documentation
|
3296
|
+
#
|
3297
|
+
class UpdateModelRequest < Struct.new(
|
3298
|
+
:model_id,
|
3299
|
+
:model_type,
|
3300
|
+
:description)
|
3301
|
+
SENSITIVE = []
|
3302
|
+
include Aws::Structure
|
3303
|
+
end
|
3304
|
+
|
3305
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelResult AWS API Documentation
|
3306
|
+
#
|
3307
|
+
class UpdateModelResult < Aws::EmptyStructure; end
|
3308
|
+
|
2158
3309
|
# @note When making an API call, you may pass UpdateModelVersionRequest
|
2159
3310
|
# data as a hash:
|
2160
3311
|
#
|
2161
3312
|
# {
|
2162
3313
|
# model_id: "identifier", # required
|
2163
3314
|
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
2164
|
-
#
|
2165
|
-
#
|
2166
|
-
#
|
3315
|
+
# major_version_number: "wholeNumberVersionString", # required
|
3316
|
+
# external_events_detail: {
|
3317
|
+
# data_location: "s3BucketLocation", # required
|
3318
|
+
# data_access_role_arn: "iamRoleArn", # required
|
3319
|
+
# },
|
3320
|
+
# tags: [
|
3321
|
+
# {
|
3322
|
+
# key: "tagKey", # required
|
3323
|
+
# value: "tagValue", # required
|
3324
|
+
# },
|
3325
|
+
# ],
|
2167
3326
|
# }
|
2168
3327
|
#
|
3328
|
+
# @!attribute [rw] model_id
|
3329
|
+
# The model ID.
|
3330
|
+
# @return [String]
|
3331
|
+
#
|
3332
|
+
# @!attribute [rw] model_type
|
3333
|
+
# The model type.
|
3334
|
+
# @return [String]
|
3335
|
+
#
|
3336
|
+
# @!attribute [rw] major_version_number
|
3337
|
+
# The major version number.
|
3338
|
+
# @return [String]
|
3339
|
+
#
|
3340
|
+
# @!attribute [rw] external_events_detail
|
3341
|
+
# The event details.
|
3342
|
+
# @return [Types::ExternalEventsDetail]
|
3343
|
+
#
|
3344
|
+
# @!attribute [rw] tags
|
3345
|
+
# A collection of key and value pairs.
|
3346
|
+
# @return [Array<Types::Tag>]
|
3347
|
+
#
|
3348
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionRequest AWS API Documentation
|
3349
|
+
#
|
3350
|
+
class UpdateModelVersionRequest < Struct.new(
|
3351
|
+
:model_id,
|
3352
|
+
:model_type,
|
3353
|
+
:major_version_number,
|
3354
|
+
:external_events_detail,
|
3355
|
+
:tags)
|
3356
|
+
SENSITIVE = []
|
3357
|
+
include Aws::Structure
|
3358
|
+
end
|
3359
|
+
|
2169
3360
|
# @!attribute [rw] model_id
|
2170
3361
|
# The model ID.
|
2171
3362
|
# @return [String]
|
@@ -2175,31 +3366,64 @@ module Aws::FraudDetector
|
|
2175
3366
|
# @return [String]
|
2176
3367
|
#
|
2177
3368
|
# @!attribute [rw] model_version_number
|
2178
|
-
# The model version.
|
3369
|
+
# The model version number of the model version updated.
|
2179
3370
|
# @return [String]
|
2180
3371
|
#
|
2181
|
-
# @!attribute [rw]
|
2182
|
-
# The model
|
3372
|
+
# @!attribute [rw] status
|
3373
|
+
# The status of the updated model version.
|
3374
|
+
# @return [String]
|
3375
|
+
#
|
3376
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionResult AWS API Documentation
|
3377
|
+
#
|
3378
|
+
class UpdateModelVersionResult < Struct.new(
|
3379
|
+
:model_id,
|
3380
|
+
:model_type,
|
3381
|
+
:model_version_number,
|
3382
|
+
:status)
|
3383
|
+
SENSITIVE = []
|
3384
|
+
include Aws::Structure
|
3385
|
+
end
|
3386
|
+
|
3387
|
+
# @note When making an API call, you may pass UpdateModelVersionStatusRequest
|
3388
|
+
# data as a hash:
|
3389
|
+
#
|
3390
|
+
# {
|
3391
|
+
# model_id: "identifier", # required
|
3392
|
+
# model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
|
3393
|
+
# model_version_number: "floatVersionString", # required
|
3394
|
+
# status: "TRAINING_IN_PROGRESS", # required, accepts TRAINING_IN_PROGRESS, TRAINING_COMPLETE, ACTIVATE_REQUESTED, ACTIVATE_IN_PROGRESS, ACTIVE, INACTIVATE_IN_PROGRESS, INACTIVE, DELETE_REQUESTED, DELETE_IN_PROGRESS, ERROR
|
3395
|
+
# }
|
3396
|
+
#
|
3397
|
+
# @!attribute [rw] model_id
|
3398
|
+
# The model ID of the model version to update.
|
3399
|
+
# @return [String]
|
3400
|
+
#
|
3401
|
+
# @!attribute [rw] model_type
|
3402
|
+
# The model type.
|
3403
|
+
# @return [String]
|
3404
|
+
#
|
3405
|
+
# @!attribute [rw] model_version_number
|
3406
|
+
# The model version number.
|
2183
3407
|
# @return [String]
|
2184
3408
|
#
|
2185
3409
|
# @!attribute [rw] status
|
2186
|
-
# The
|
3410
|
+
# The model version status.
|
2187
3411
|
# @return [String]
|
2188
3412
|
#
|
2189
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/
|
3413
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionStatusRequest AWS API Documentation
|
2190
3414
|
#
|
2191
|
-
class
|
3415
|
+
class UpdateModelVersionStatusRequest < Struct.new(
|
2192
3416
|
:model_id,
|
2193
3417
|
:model_type,
|
2194
3418
|
:model_version_number,
|
2195
|
-
:description,
|
2196
3419
|
:status)
|
3420
|
+
SENSITIVE = []
|
2197
3421
|
include Aws::Structure
|
2198
3422
|
end
|
2199
3423
|
|
2200
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/
|
3424
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionStatusResult AWS API Documentation
|
2201
3425
|
#
|
2202
|
-
class
|
3426
|
+
class UpdateModelVersionStatusResult < Aws::EmptyStructure; end
|
2203
3427
|
|
2204
3428
|
# @note When making an API call, you may pass UpdateRuleMetadataRequest
|
2205
3429
|
# data as a hash:
|
@@ -2208,7 +3432,7 @@ module Aws::FraudDetector
|
|
2208
3432
|
# rule: { # required
|
2209
3433
|
# detector_id: "identifier", # required
|
2210
3434
|
# rule_id: "identifier", # required
|
2211
|
-
# rule_version: "
|
3435
|
+
# rule_version: "wholeNumberVersionString", # required
|
2212
3436
|
# },
|
2213
3437
|
# description: "description", # required
|
2214
3438
|
# }
|
@@ -2226,6 +3450,7 @@ module Aws::FraudDetector
|
|
2226
3450
|
class UpdateRuleMetadataRequest < Struct.new(
|
2227
3451
|
:rule,
|
2228
3452
|
:description)
|
3453
|
+
SENSITIVE = []
|
2229
3454
|
include Aws::Structure
|
2230
3455
|
end
|
2231
3456
|
|
@@ -2240,12 +3465,18 @@ module Aws::FraudDetector
|
|
2240
3465
|
# rule: { # required
|
2241
3466
|
# detector_id: "identifier", # required
|
2242
3467
|
# rule_id: "identifier", # required
|
2243
|
-
# rule_version: "
|
3468
|
+
# rule_version: "wholeNumberVersionString", # required
|
2244
3469
|
# },
|
2245
3470
|
# description: "description",
|
2246
3471
|
# expression: "ruleExpression", # required
|
2247
3472
|
# language: "DETECTORPL", # required, accepts DETECTORPL
|
2248
3473
|
# outcomes: ["string"], # required
|
3474
|
+
# tags: [
|
3475
|
+
# {
|
3476
|
+
# key: "tagKey", # required
|
3477
|
+
# value: "tagValue", # required
|
3478
|
+
# },
|
3479
|
+
# ],
|
2249
3480
|
# }
|
2250
3481
|
#
|
2251
3482
|
# @!attribute [rw] rule
|
@@ -2268,6 +3499,10 @@ module Aws::FraudDetector
|
|
2268
3499
|
# The outcomes.
|
2269
3500
|
# @return [Array<String>]
|
2270
3501
|
#
|
3502
|
+
# @!attribute [rw] tags
|
3503
|
+
# The tags to assign to the rule version.
|
3504
|
+
# @return [Array<Types::Tag>]
|
3505
|
+
#
|
2271
3506
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleVersionRequest AWS API Documentation
|
2272
3507
|
#
|
2273
3508
|
class UpdateRuleVersionRequest < Struct.new(
|
@@ -2275,7 +3510,9 @@ module Aws::FraudDetector
|
|
2275
3510
|
:description,
|
2276
3511
|
:expression,
|
2277
3512
|
:language,
|
2278
|
-
:outcomes
|
3513
|
+
:outcomes,
|
3514
|
+
:tags)
|
3515
|
+
SENSITIVE = [:expression]
|
2279
3516
|
include Aws::Structure
|
2280
3517
|
end
|
2281
3518
|
|
@@ -2287,6 +3524,7 @@ module Aws::FraudDetector
|
|
2287
3524
|
#
|
2288
3525
|
class UpdateRuleVersionResult < Struct.new(
|
2289
3526
|
:rule)
|
3527
|
+
SENSITIVE = []
|
2290
3528
|
include Aws::Structure
|
2291
3529
|
end
|
2292
3530
|
|
@@ -2323,6 +3561,7 @@ module Aws::FraudDetector
|
|
2323
3561
|
:default_value,
|
2324
3562
|
:description,
|
2325
3563
|
:variable_type)
|
3564
|
+
SENSITIVE = []
|
2326
3565
|
include Aws::Structure
|
2327
3566
|
end
|
2328
3567
|
|
@@ -2339,6 +3578,7 @@ module Aws::FraudDetector
|
|
2339
3578
|
#
|
2340
3579
|
class ValidationException < Struct.new(
|
2341
3580
|
:message)
|
3581
|
+
SENSITIVE = []
|
2342
3582
|
include Aws::Structure
|
2343
3583
|
end
|
2344
3584
|
|
@@ -2366,6 +3606,16 @@ module Aws::FraudDetector
|
|
2366
3606
|
#
|
2367
3607
|
# @!attribute [rw] variable_type
|
2368
3608
|
# The variable type of the variable.
|
3609
|
+
#
|
3610
|
+
# Valid Values: `AUTH_CODE | AVS | BILLING_ADDRESS_L1 |
|
3611
|
+
# BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME |
|
3612
|
+
# BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL
|
3613
|
+
# | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL |
|
3614
|
+
# FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE |
|
3615
|
+
# PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 |
|
3616
|
+
# SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY |
|
3617
|
+
# SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP |
|
3618
|
+
# USERAGENT | SHIPPING_ZIP | USERAGENT`
|
2369
3619
|
# @return [String]
|
2370
3620
|
#
|
2371
3621
|
# @!attribute [rw] last_updated_time
|
@@ -2376,6 +3626,10 @@ module Aws::FraudDetector
|
|
2376
3626
|
# The time when the variable was created.
|
2377
3627
|
# @return [String]
|
2378
3628
|
#
|
3629
|
+
# @!attribute [rw] arn
|
3630
|
+
# The ARN of the variable.
|
3631
|
+
# @return [String]
|
3632
|
+
#
|
2379
3633
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Variable AWS API Documentation
|
2380
3634
|
#
|
2381
3635
|
class Variable < Struct.new(
|
@@ -2386,11 +3640,14 @@ module Aws::FraudDetector
|
|
2386
3640
|
:description,
|
2387
3641
|
:variable_type,
|
2388
3642
|
:last_updated_time,
|
2389
|
-
:created_time
|
3643
|
+
:created_time,
|
3644
|
+
:arn)
|
3645
|
+
SENSITIVE = []
|
2390
3646
|
include Aws::Structure
|
2391
3647
|
end
|
2392
3648
|
|
2393
|
-
#
|
3649
|
+
# A variable in the list of variables for the batch create variable
|
3650
|
+
# request.
|
2394
3651
|
#
|
2395
3652
|
# @note When making an API call, you may pass VariableEntry
|
2396
3653
|
# data as a hash:
|
@@ -2405,27 +3662,37 @@ module Aws::FraudDetector
|
|
2405
3662
|
# }
|
2406
3663
|
#
|
2407
3664
|
# @!attribute [rw] name
|
2408
|
-
# The name of the variable
|
3665
|
+
# The name of the variable.
|
2409
3666
|
# @return [String]
|
2410
3667
|
#
|
2411
3668
|
# @!attribute [rw] data_type
|
2412
|
-
# The data type of the variable
|
3669
|
+
# The data type of the variable.
|
2413
3670
|
# @return [String]
|
2414
3671
|
#
|
2415
3672
|
# @!attribute [rw] data_source
|
2416
|
-
# The data source of the variable
|
3673
|
+
# The data source of the variable.
|
2417
3674
|
# @return [String]
|
2418
3675
|
#
|
2419
3676
|
# @!attribute [rw] default_value
|
2420
|
-
# The default value of the variable
|
3677
|
+
# The default value of the variable.
|
2421
3678
|
# @return [String]
|
2422
3679
|
#
|
2423
3680
|
# @!attribute [rw] description
|
2424
|
-
# The description of the variable
|
3681
|
+
# The description of the variable.
|
2425
3682
|
# @return [String]
|
2426
3683
|
#
|
2427
3684
|
# @!attribute [rw] variable_type
|
2428
|
-
# The type of the variable
|
3685
|
+
# The type of the variable.
|
3686
|
+
#
|
3687
|
+
# Valid Values: `AUTH_CODE | AVS | BILLING_ADDRESS_L1 |
|
3688
|
+
# BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME |
|
3689
|
+
# BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL
|
3690
|
+
# | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL |
|
3691
|
+
# FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE |
|
3692
|
+
# PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 |
|
3693
|
+
# SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY |
|
3694
|
+
# SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP |
|
3695
|
+
# USERAGENT | SHIPPING_ZIP | USERAGENT`
|
2429
3696
|
# @return [String]
|
2430
3697
|
#
|
2431
3698
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/VariableEntry AWS API Documentation
|
@@ -2437,6 +3704,7 @@ module Aws::FraudDetector
|
|
2437
3704
|
:default_value,
|
2438
3705
|
:description,
|
2439
3706
|
:variable_type)
|
3707
|
+
SENSITIVE = []
|
2440
3708
|
include Aws::Structure
|
2441
3709
|
end
|
2442
3710
|
|