aws-sdk-frauddetector 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,7 @@ module Aws::FraudDetector
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {AccessDeniedException}
30
31
  # * {ConflictException}
31
32
  # * {InternalServerException}
32
33
  # * {ResourceNotFoundException}
@@ -39,6 +40,21 @@ module Aws::FraudDetector
39
40
 
40
41
  extend Aws::Errors::DynamicErrors
41
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
+
42
58
  class ConflictException < ServiceError
43
59
 
44
60
  # @param [Seahorse::Client::RequestContext] context
@@ -10,6 +10,21 @@
10
10
  module Aws::FraudDetector
11
11
  module Types
12
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
+
13
28
  # Provides the error of the batch create variable API.
14
29
  #
15
30
  # @!attribute [rw] name
@@ -48,16 +63,27 @@ module Aws::FraudDetector
48
63
  # variable_type: "string",
49
64
  # },
50
65
  # ],
66
+ # tags: [
67
+ # {
68
+ # key: "tagKey", # required
69
+ # value: "tagValue", # required
70
+ # },
71
+ # ],
51
72
  # }
52
73
  #
53
74
  # @!attribute [rw] variable_entries
54
75
  # The list of variables for the batch create variable request.
55
76
  # @return [Array<Types::VariableEntry>]
56
77
  #
78
+ # @!attribute [rw] tags
79
+ # A collection of key and value pairs.
80
+ # @return [Array<Types::Tag>]
81
+ #
57
82
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchCreateVariableRequest AWS API Documentation
58
83
  #
59
84
  class BatchCreateVariableRequest < Struct.new(
60
- :variable_entries)
85
+ :variable_entries,
86
+ :tags)
61
87
  SENSITIVE = []
62
88
  include Aws::Structure
63
89
  end
@@ -145,9 +171,8 @@ module Aws::FraudDetector
145
171
  # * DeleteDetectorVersion: A conflict exception will occur if the
146
172
  # `DetectorVersion` status is `ACTIVE`.
147
173
  #
148
- # * DeleteRuleVersion: A conflict exception will occur if the
149
- # `RuleVersion` is in use by an associated `ACTIVE` or `INACTIVE
150
- # DetectorVersion`.
174
+ # * DeleteRule: A conflict exception will occur if the `RuleVersion` is
175
+ # in use by an associated `ACTIVE` or `INACTIVE DetectorVersion`.
151
176
  #
152
177
  # @!attribute [rw] message
153
178
  # @return [String]
@@ -171,7 +196,7 @@ module Aws::FraudDetector
171
196
  # {
172
197
  # detector_id: "identifier", # required
173
198
  # rule_id: "identifier", # required
174
- # rule_version: "nonEmptyString", # required
199
+ # rule_version: "wholeNumberVersionString", # required
175
200
  # },
176
201
  # ],
177
202
  # model_versions: [
@@ -179,9 +204,16 @@ module Aws::FraudDetector
179
204
  # model_id: "identifier", # required
180
205
  # model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
181
206
  # model_version_number: "nonEmptyString", # required
207
+ # arn: "fraudDetectorArn",
182
208
  # },
183
209
  # ],
184
210
  # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
211
+ # tags: [
212
+ # {
213
+ # key: "tagKey", # required
214
+ # value: "tagValue", # required
215
+ # },
216
+ # ],
185
217
  # }
186
218
  #
187
219
  # @!attribute [rw] detector_id
@@ -223,6 +255,10 @@ module Aws::FraudDetector
223
255
  # The default behavior is `FIRST_MATCHED`.
224
256
  # @return [String]
225
257
  #
258
+ # @!attribute [rw] tags
259
+ # A collection of key and value pairs.
260
+ # @return [Array<Types::Tag>]
261
+ #
226
262
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateDetectorVersionRequest AWS API Documentation
227
263
  #
228
264
  class CreateDetectorVersionRequest < Struct.new(
@@ -231,7 +267,8 @@ module Aws::FraudDetector
231
267
  :external_model_endpoints,
232
268
  :rules,
233
269
  :model_versions,
234
- :rule_execution_mode)
270
+ :rule_execution_mode,
271
+ :tags)
235
272
  SENSITIVE = []
236
273
  include Aws::Structure
237
274
  end
@@ -258,13 +295,20 @@ module Aws::FraudDetector
258
295
  include Aws::Structure
259
296
  end
260
297
 
261
- # @note When making an API call, you may pass CreateModelVersionRequest
298
+ # @note When making an API call, you may pass CreateModelRequest
262
299
  # data as a hash:
263
300
  #
264
301
  # {
265
302
  # model_id: "identifier", # required
266
303
  # model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
267
304
  # description: "description",
305
+ # event_type_name: "string", # required
306
+ # tags: [
307
+ # {
308
+ # key: "tagKey", # required
309
+ # value: "tagValue", # required
310
+ # },
311
+ # ],
268
312
  # }
269
313
  #
270
314
  # @!attribute [rw] model_id
@@ -276,15 +320,94 @@ module Aws::FraudDetector
276
320
  # @return [String]
277
321
  #
278
322
  # @!attribute [rw] description
279
- # The model version description.
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.
280
387
  # @return [String]
281
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
+ #
282
402
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModelVersionRequest AWS API Documentation
283
403
  #
284
404
  class CreateModelVersionRequest < Struct.new(
285
405
  :model_id,
286
406
  :model_type,
287
- :description)
407
+ :training_data_source,
408
+ :training_data_schema,
409
+ :external_events_detail,
410
+ :tags)
288
411
  SENSITIVE = []
289
412
  include Aws::Structure
290
413
  end
@@ -298,7 +421,7 @@ module Aws::FraudDetector
298
421
  # @return [String]
299
422
  #
300
423
  # @!attribute [rw] model_version_number
301
- # The version of the model.
424
+ # The model version number of the model version created.
302
425
  # @return [String]
303
426
  #
304
427
  # @!attribute [rw] status
@@ -326,6 +449,12 @@ module Aws::FraudDetector
326
449
  # expression: "ruleExpression", # required
327
450
  # language: "DETECTORPL", # required, accepts DETECTORPL
328
451
  # outcomes: ["string"], # required
452
+ # tags: [
453
+ # {
454
+ # key: "tagKey", # required
455
+ # value: "tagValue", # required
456
+ # },
457
+ # ],
329
458
  # }
330
459
  #
331
460
  # @!attribute [rw] rule_id
@@ -352,6 +481,10 @@ module Aws::FraudDetector
352
481
  # The outcome or outcomes returned when the rule expression matches.
353
482
  # @return [Array<String>]
354
483
  #
484
+ # @!attribute [rw] tags
485
+ # A collection of key and value pairs.
486
+ # @return [Array<Types::Tag>]
487
+ #
355
488
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateRuleRequest AWS API Documentation
356
489
  #
357
490
  class CreateRuleRequest < Struct.new(
@@ -360,8 +493,9 @@ module Aws::FraudDetector
360
493
  :description,
361
494
  :expression,
362
495
  :language,
363
- :outcomes)
364
- SENSITIVE = []
496
+ :outcomes,
497
+ :tags)
498
+ SENSITIVE = [:expression]
365
499
  include Aws::Structure
366
500
  end
367
501
 
@@ -387,6 +521,12 @@ module Aws::FraudDetector
387
521
  # default_value: "string", # required
388
522
  # description: "string",
389
523
  # variable_type: "string",
524
+ # tags: [
525
+ # {
526
+ # key: "tagKey", # required
527
+ # value: "tagValue", # required
528
+ # },
529
+ # ],
390
530
  # }
391
531
  #
392
532
  # @!attribute [rw] name
@@ -411,8 +551,22 @@ module Aws::FraudDetector
411
551
  #
412
552
  # @!attribute [rw] variable_type
413
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`
414
564
  # @return [String]
415
565
  #
566
+ # @!attribute [rw] tags
567
+ # A collection of key and value pairs.
568
+ # @return [Array<Types::Tag>]
569
+ #
416
570
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateVariableRequest AWS API Documentation
417
571
  #
418
572
  class CreateVariableRequest < Struct.new(
@@ -421,7 +575,8 @@ module Aws::FraudDetector
421
575
  :data_source,
422
576
  :default_value,
423
577
  :description,
424
- :variable_type)
578
+ :variable_type,
579
+ :tags)
425
580
  SENSITIVE = []
426
581
  include Aws::Structure
427
582
  end
@@ -430,6 +585,25 @@ module Aws::FraudDetector
430
585
  #
431
586
  class CreateVariableResult < Aws::EmptyStructure; end
432
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
+
433
607
  # @note When making an API call, you may pass DeleteDetectorRequest
434
608
  # data as a hash:
435
609
  #
@@ -458,7 +632,7 @@ module Aws::FraudDetector
458
632
  #
459
633
  # {
460
634
  # detector_id: "identifier", # required
461
- # detector_version_id: "nonEmptyString", # required
635
+ # detector_version_id: "wholeNumberVersionString", # required
462
636
  # }
463
637
  #
464
638
  # @!attribute [rw] detector_id
@@ -487,16 +661,22 @@ module Aws::FraudDetector
487
661
  #
488
662
  # {
489
663
  # event_id: "string", # required
664
+ # event_type_name: "string", # required
490
665
  # }
491
666
  #
492
667
  # @!attribute [rw] event_id
493
668
  # The ID of the event to delete.
494
669
  # @return [String]
495
670
  #
671
+ # @!attribute [rw] event_type_name
672
+ # The name of the event type.
673
+ # @return [String]
674
+ #
496
675
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEventRequest AWS API Documentation
497
676
  #
498
677
  class DeleteEventRequest < Struct.new(
499
- :event_id)
678
+ :event_id,
679
+ :event_type_name)
500
680
  SENSITIVE = []
501
681
  include Aws::Structure
502
682
  end
@@ -505,40 +685,32 @@ module Aws::FraudDetector
505
685
  #
506
686
  class DeleteEventResult < Aws::EmptyStructure; end
507
687
 
508
- # @note When making an API call, you may pass DeleteRuleVersionRequest
688
+ # @note When making an API call, you may pass DeleteRuleRequest
509
689
  # data as a hash:
510
690
  #
511
691
  # {
512
- # detector_id: "identifier", # required
513
- # rule_id: "identifier", # required
514
- # rule_version: "nonEmptyString", # required
692
+ # rule: { # required
693
+ # detector_id: "identifier", # required
694
+ # rule_id: "identifier", # required
695
+ # rule_version: "wholeNumberVersionString", # required
696
+ # },
515
697
  # }
516
698
  #
517
- # @!attribute [rw] detector_id
518
- # The ID of the detector that includes the rule version to delete.
519
- # @return [String]
520
- #
521
- # @!attribute [rw] rule_id
522
- # The rule ID of the rule version to delete.
523
- # @return [String]
524
- #
525
- # @!attribute [rw] rule_version
526
- # The rule version to delete.
527
- # @return [String]
699
+ # @!attribute [rw] rule
700
+ # A rule.
701
+ # @return [Types::Rule]
528
702
  #
529
- # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersionRequest AWS API Documentation
703
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleRequest AWS API Documentation
530
704
  #
531
- class DeleteRuleVersionRequest < Struct.new(
532
- :detector_id,
533
- :rule_id,
534
- :rule_version)
705
+ class DeleteRuleRequest < Struct.new(
706
+ :rule)
535
707
  SENSITIVE = []
536
708
  include Aws::Structure
537
709
  end
538
710
 
539
- # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleVersionResult AWS API Documentation
711
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteRuleResult AWS API Documentation
540
712
  #
541
- class DeleteRuleVersionResult < Aws::EmptyStructure; end
713
+ class DeleteRuleResult < Aws::EmptyStructure; end
542
714
 
543
715
  # @note When making an API call, you may pass DescribeDetectorRequest
544
716
  # data as a hash:
@@ -583,12 +755,17 @@ module Aws::FraudDetector
583
755
  # The next token to be used for subsequent requests.
584
756
  # @return [String]
585
757
  #
758
+ # @!attribute [rw] arn
759
+ # The detector ARN.
760
+ # @return [String]
761
+ #
586
762
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeDetectorResult AWS API Documentation
587
763
  #
588
764
  class DescribeDetectorResult < Struct.new(
589
765
  :detector_id,
590
766
  :detector_version_summaries,
591
- :next_token)
767
+ :next_token,
768
+ :arn)
592
769
  SENSITIVE = []
593
770
  include Aws::Structure
594
771
  end
@@ -598,7 +775,7 @@ module Aws::FraudDetector
598
775
  #
599
776
  # {
600
777
  # model_id: "identifier",
601
- # model_version_number: "nonEmptyString",
778
+ # model_version_number: "floatVersionString",
602
779
  # model_type: "ONLINE_FRAUD_INSIGHTS", # accepts ONLINE_FRAUD_INSIGHTS
603
780
  # next_token: "string",
604
781
  # max_results: 1,
@@ -609,7 +786,7 @@ module Aws::FraudDetector
609
786
  # @return [String]
610
787
  #
611
788
  # @!attribute [rw] model_version_number
612
- # The model version.
789
+ # The model version number.
613
790
  # @return [String]
614
791
  #
615
792
  # @!attribute [rw] model_type
@@ -663,6 +840,10 @@ module Aws::FraudDetector
663
840
  # The detector description.
664
841
  # @return [String]
665
842
  #
843
+ # @!attribute [rw] event_type_name
844
+ # The name of the event type.
845
+ # @return [String]
846
+ #
666
847
  # @!attribute [rw] last_updated_time
667
848
  # Timestamp of when the detector was last updated.
668
849
  # @return [String]
@@ -671,13 +852,19 @@ module Aws::FraudDetector
671
852
  # Timestamp of when the detector was created.
672
853
  # @return [String]
673
854
  #
855
+ # @!attribute [rw] arn
856
+ # The detector ARN.
857
+ # @return [String]
858
+ #
674
859
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Detector AWS API Documentation
675
860
  #
676
861
  class Detector < Struct.new(
677
862
  :detector_id,
678
863
  :description,
864
+ :event_type_name,
679
865
  :last_updated_time,
680
- :created_time)
866
+ :created_time,
867
+ :arn)
681
868
  SENSITIVE = []
682
869
  include Aws::Structure
683
870
  end
@@ -711,12 +898,155 @@ module Aws::FraudDetector
711
898
  include Aws::Structure
712
899
  end
713
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 = []
1037
+ include Aws::Structure
1038
+ end
1039
+
714
1040
  # The Amazon SageMaker model.
715
1041
  #
716
1042
  # @!attribute [rw] model_endpoint
717
1043
  # The Amazon SageMaker model endpoints.
718
1044
  # @return [String]
719
1045
  #
1046
+ # @!attribute [rw] event_type_name
1047
+ # The event type names.
1048
+ # @return [String]
1049
+ #
720
1050
  # @!attribute [rw] model_source
721
1051
  # The source of the model.
722
1052
  # @return [String]
@@ -745,17 +1075,81 @@ module Aws::FraudDetector
745
1075
  # Timestamp of when the model was last created.
746
1076
  # @return [String]
747
1077
  #
1078
+ # @!attribute [rw] arn
1079
+ # The model ARN.
1080
+ # @return [String]
1081
+ #
748
1082
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ExternalModel AWS API Documentation
749
1083
  #
750
1084
  class ExternalModel < Struct.new(
751
1085
  :model_endpoint,
1086
+ :event_type_name,
752
1087
  :model_source,
753
1088
  :role,
754
1089
  :input_configuration,
755
1090
  :output_configuration,
756
1091
  :model_endpoint_status,
757
1092
  :last_updated_time,
758
- :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)
759
1153
  SENSITIVE = []
760
1154
  include Aws::Structure
761
1155
  end
@@ -765,7 +1159,7 @@ module Aws::FraudDetector
765
1159
  #
766
1160
  # {
767
1161
  # detector_id: "identifier", # required
768
- # detector_version_id: "nonEmptyString", # required
1162
+ # detector_version_id: "wholeNumberVersionString", # required
769
1163
  # }
770
1164
  #
771
1165
  # @!attribute [rw] detector_id
@@ -836,6 +1230,10 @@ module Aws::FraudDetector
836
1230
  # draft status.
837
1231
  # @return [String]
838
1232
  #
1233
+ # @!attribute [rw] arn
1234
+ # The detector version ARN.
1235
+ # @return [String]
1236
+ #
839
1237
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersionResult AWS API Documentation
840
1238
  #
841
1239
  class GetDetectorVersionResult < Struct.new(
@@ -848,7 +1246,8 @@ module Aws::FraudDetector
848
1246
  :status,
849
1247
  :last_updated_time,
850
1248
  :created_time,
851
- :rule_execution_mode)
1249
+ :rule_execution_mode,
1250
+ :arn)
852
1251
  SENSITIVE = []
853
1252
  include Aws::Structure
854
1253
  end
@@ -901,6 +1300,202 @@ module Aws::FraudDetector
901
1300
  include Aws::Structure
902
1301
  end
903
1302
 
1303
+ # @note When making an API call, you may pass GetEntityTypesRequest
1304
+ # data as a hash:
1305
+ #
1306
+ # {
1307
+ # name: "identifier",
1308
+ # next_token: "string",
1309
+ # max_results: 1,
1310
+ # }
1311
+ #
1312
+ # @!attribute [rw] name
1313
+ # The name.
1314
+ # @return [String]
1315
+ #
1316
+ # @!attribute [rw] next_token
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
+
904
1499
  # @note When making an API call, you may pass GetExternalModelsRequest
905
1500
  # data as a hash:
906
1501
  #
@@ -949,13 +1544,73 @@ module Aws::FraudDetector
949
1544
  include Aws::Structure
950
1545
  end
951
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 = []
1604
+ include Aws::Structure
1605
+ end
1606
+
952
1607
  # @note When making an API call, you may pass GetModelVersionRequest
953
1608
  # data as a hash:
954
1609
  #
955
1610
  # {
956
1611
  # model_id: "identifier", # required
957
1612
  # model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
958
- # model_version_number: "nonEmptyString", # required
1613
+ # model_version_number: "floatVersionString", # required
959
1614
  # }
960
1615
  #
961
1616
  # @!attribute [rw] model_id
@@ -967,7 +1622,7 @@ module Aws::FraudDetector
967
1622
  # @return [String]
968
1623
  #
969
1624
  # @!attribute [rw] model_version_number
970
- # The model version.
1625
+ # The model version number.
971
1626
  # @return [String]
972
1627
  #
973
1628
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelVersionRequest AWS API Documentation
@@ -989,25 +1644,40 @@ module Aws::FraudDetector
989
1644
  # @return [String]
990
1645
  #
991
1646
  # @!attribute [rw] model_version_number
992
- # The model version.
1647
+ # The model version number.
993
1648
  # @return [String]
994
1649
  #
995
- # @!attribute [rw] description
996
- # The model version description.
1650
+ # @!attribute [rw] training_data_source
1651
+ # The training data source.
997
1652
  # @return [String]
998
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
+ #
999
1662
  # @!attribute [rw] status
1000
1663
  # The model version status.
1001
1664
  # @return [String]
1002
1665
  #
1666
+ # @!attribute [rw] arn
1667
+ # The model version ARN.
1668
+ # @return [String]
1669
+ #
1003
1670
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelVersionResult AWS API Documentation
1004
1671
  #
1005
1672
  class GetModelVersionResult < Struct.new(
1006
1673
  :model_id,
1007
1674
  :model_type,
1008
1675
  :model_version_number,
1009
- :description,
1010
- :status)
1676
+ :training_data_source,
1677
+ :training_data_schema,
1678
+ :external_events_detail,
1679
+ :status,
1680
+ :arn)
1011
1681
  SENSITIVE = []
1012
1682
  include Aws::Structure
1013
1683
  end
@@ -1016,33 +1686,33 @@ module Aws::FraudDetector
1016
1686
  # data as a hash:
1017
1687
  #
1018
1688
  # {
1019
- # model_type: "ONLINE_FRAUD_INSIGHTS", # accepts ONLINE_FRAUD_INSIGHTS
1020
1689
  # model_id: "identifier",
1690
+ # model_type: "ONLINE_FRAUD_INSIGHTS", # accepts ONLINE_FRAUD_INSIGHTS
1021
1691
  # next_token: "string",
1022
1692
  # max_results: 1,
1023
1693
  # }
1024
1694
  #
1025
- # @!attribute [rw] model_type
1026
- # The model type.
1027
- # @return [String]
1028
- #
1029
1695
  # @!attribute [rw] model_id
1030
1696
  # The model ID.
1031
1697
  # @return [String]
1032
1698
  #
1699
+ # @!attribute [rw] model_type
1700
+ # The model type.
1701
+ # @return [String]
1702
+ #
1033
1703
  # @!attribute [rw] next_token
1034
- # The next token for the request.
1704
+ # The next token for the subsequent request.
1035
1705
  # @return [String]
1036
1706
  #
1037
1707
  # @!attribute [rw] max_results
1038
- # The maximum results to return for the request.
1708
+ # The maximum number of objects to return for the request.
1039
1709
  # @return [Integer]
1040
1710
  #
1041
1711
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelsRequest AWS API Documentation
1042
1712
  #
1043
1713
  class GetModelsRequest < Struct.new(
1044
- :model_type,
1045
1714
  :model_id,
1715
+ :model_type,
1046
1716
  :next_token,
1047
1717
  :max_results)
1048
1718
  SENSITIVE = []
@@ -1050,11 +1720,11 @@ module Aws::FraudDetector
1050
1720
  end
1051
1721
 
1052
1722
  # @!attribute [rw] next_token
1053
- # The next token for subsequent requests.
1723
+ # The next page token to be used in subsequent requests.
1054
1724
  # @return [String]
1055
1725
  #
1056
1726
  # @!attribute [rw] models
1057
- # The returned models.
1727
+ # The array of models.
1058
1728
  # @return [Array<Types::Model>]
1059
1729
  #
1060
1730
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelsResult AWS API Documentation
@@ -1194,7 +1864,7 @@ module Aws::FraudDetector
1194
1864
  # {
1195
1865
  # rule_id: "identifier",
1196
1866
  # detector_id: "identifier", # required
1197
- # rule_version: "nonEmptyString",
1867
+ # rule_version: "wholeNumberVersionString",
1198
1868
  # next_token: "string",
1199
1869
  # max_results: 1,
1200
1870
  # }
@@ -1309,42 +1979,167 @@ module Aws::FraudDetector
1309
1979
  include Aws::Structure
1310
1980
  end
1311
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 = []
2027
+ include Aws::Structure
2028
+ end
2029
+
1312
2030
  # The label schema.
1313
2031
  #
1314
2032
  # @note When making an API call, you may pass LabelSchema
1315
2033
  # data as a hash:
1316
2034
  #
1317
2035
  # {
1318
- # label_key: "string", # required
1319
2036
  # label_mapper: { # required
1320
2037
  # "string" => ["string"],
1321
2038
  # },
1322
2039
  # }
1323
2040
  #
1324
- # @!attribute [rw] label_key
1325
- # The label key.
1326
- # @return [String]
1327
- #
1328
2041
  # @!attribute [rw] label_mapper
1329
- # The label mapper maps the Amazon Fraud Detector supported label to
1330
- # the appropriate source labels. For example, if `"FRAUD"` and
1331
- # `"LEGIT"` are Amazon Fraud Detector supported labels, this mapper
1332
- # could be: `\{"FRAUD" => ["0"]`, "LEGIT" =&gt; \["1"\]\\} or
1333
- # `\{"FRAUD" => ["false"], "LEGIT" => ["true"]\}` or `\{"FRAUD" =>
1334
- # ["fraud", "abuse"], "LEGIT" => ["legit", "safe"]\}`. The value part
1335
- # of the mapper is a list, because you may have multiple variants for
1336
- # a single Amazon Fraud Detector label.
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.
1337
2051
  # @return [Hash<String,Array<String>>]
1338
2052
  #
1339
2053
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/LabelSchema AWS API Documentation
1340
2054
  #
1341
2055
  class LabelSchema < Struct.new(
1342
- :label_key,
1343
2056
  :label_mapper)
1344
2057
  SENSITIVE = []
1345
2058
  include Aws::Structure
1346
2059
  end
1347
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 = []
2140
+ include Aws::Structure
2141
+ end
2142
+
1348
2143
  # The model.
1349
2144
  #
1350
2145
  # @!attribute [rw] model_id
@@ -1359,24 +2154,20 @@ module Aws::FraudDetector
1359
2154
  # The model description.
1360
2155
  # @return [String]
1361
2156
  #
1362
- # @!attribute [rw] training_data_source
1363
- # The model training data source in Amazon S3.
1364
- # @return [Types::TrainingDataSource]
1365
- #
1366
- # @!attribute [rw] model_variables
1367
- # The model input variables.
1368
- # @return [Array<Types::ModelVariable>]
2157
+ # @!attribute [rw] event_type_name
2158
+ # The name of the event type.
2159
+ # @return [String]
1369
2160
  #
1370
- # @!attribute [rw] label_schema
1371
- # The model label schema.
1372
- # @return [Types::LabelSchema]
2161
+ # @!attribute [rw] created_time
2162
+ # Timestamp of when the model was created.
2163
+ # @return [String]
1373
2164
  #
1374
2165
  # @!attribute [rw] last_updated_time
1375
2166
  # Timestamp of last time the model was updated.
1376
2167
  # @return [String]
1377
2168
  #
1378
- # @!attribute [rw] created_time
1379
- # Timestamp of when the model was created.
2169
+ # @!attribute [rw] arn
2170
+ # The ARN of the model.
1380
2171
  # @return [String]
1381
2172
  #
1382
2173
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Model AWS API Documentation
@@ -1385,11 +2176,10 @@ module Aws::FraudDetector
1385
2176
  :model_id,
1386
2177
  :model_type,
1387
2178
  :description,
1388
- :training_data_source,
1389
- :model_variables,
1390
- :label_schema,
2179
+ :event_type_name,
2180
+ :created_time,
1391
2181
  :last_updated_time,
1392
- :created_time)
2182
+ :arn)
1393
2183
  SENSITIVE = []
1394
2184
  include Aws::Structure
1395
2185
  end
@@ -1425,14 +2215,14 @@ module Aws::FraudDetector
1425
2215
  include Aws::Structure
1426
2216
  end
1427
2217
 
1428
- # The model input configuration.
2218
+ # The Amazon SageMaker model input configuration.
1429
2219
  #
1430
2220
  # @note When making an API call, you may pass ModelInputConfiguration
1431
2221
  # data as a hash:
1432
2222
  #
1433
2223
  # {
1434
2224
  # format: "TEXT_CSV", # accepts TEXT_CSV, APPLICATION_JSON
1435
- # is_opaque: false, # required
2225
+ # use_event_variables: false, # required
1436
2226
  # json_input_template: "string",
1437
2227
  # csv_input_template: "string",
1438
2228
  # }
@@ -1443,12 +2233,8 @@ module Aws::FraudDetector
1443
2233
  # Amazon Fraud Detector.
1444
2234
  # @return [String]
1445
2235
  #
1446
- # @!attribute [rw] is_opaque
1447
- # For an opaque-model, the input to the model will be a ByteBuffer
1448
- # blob provided in the getPrediction request, and will be passed to
1449
- # SageMaker as-is. For non-opaque models, the input will be
1450
- # constructed by Amazon Fraud Detector based on the
1451
- # model-configuration.
2236
+ # @!attribute [rw] use_event_variables
2237
+ # The event variables.
1452
2238
  # @return [Boolean]
1453
2239
  #
1454
2240
  # @!attribute [rw] json_input_template
@@ -1469,14 +2255,14 @@ module Aws::FraudDetector
1469
2255
  #
1470
2256
  class ModelInputConfiguration < Struct.new(
1471
2257
  :format,
1472
- :is_opaque,
2258
+ :use_event_variables,
1473
2259
  :json_input_template,
1474
2260
  :csv_input_template)
1475
2261
  SENSITIVE = []
1476
2262
  include Aws::Structure
1477
2263
  end
1478
2264
 
1479
- # Provides the model output configuration.
2265
+ # Provides the Amazon Sagemaker model output configuration.
1480
2266
  #
1481
2267
  # @note When making an API call, you may pass ModelOutputConfiguration
1482
2268
  # data as a hash:
@@ -1534,33 +2320,6 @@ module Aws::FraudDetector
1534
2320
  include Aws::Structure
1535
2321
  end
1536
2322
 
1537
- # The model variable.&gt;
1538
- #
1539
- # @note When making an API call, you may pass ModelVariable
1540
- # data as a hash:
1541
- #
1542
- # {
1543
- # name: "string", # required
1544
- # index: 1,
1545
- # }
1546
- #
1547
- # @!attribute [rw] name
1548
- # The model variable's name.&gt;
1549
- # @return [String]
1550
- #
1551
- # @!attribute [rw] index
1552
- # The model variable's index.&gt;
1553
- # @return [Integer]
1554
- #
1555
- # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ModelVariable AWS API Documentation
1556
- #
1557
- class ModelVariable < Struct.new(
1558
- :name,
1559
- :index)
1560
- SENSITIVE = []
1561
- include Aws::Structure
1562
- end
1563
-
1564
2323
  # The model version.
1565
2324
  #
1566
2325
  # @note When making an API call, you may pass ModelVersion
@@ -1570,10 +2329,11 @@ module Aws::FraudDetector
1570
2329
  # model_id: "identifier", # required
1571
2330
  # model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
1572
2331
  # model_version_number: "nonEmptyString", # required
2332
+ # arn: "fraudDetectorArn",
1573
2333
  # }
1574
2334
  #
1575
2335
  # @!attribute [rw] model_id
1576
- # The parent model ID.
2336
+ # The model ID.
1577
2337
  # @return [String]
1578
2338
  #
1579
2339
  # @!attribute [rw] model_type
@@ -1581,7 +2341,11 @@ module Aws::FraudDetector
1581
2341
  # @return [String]
1582
2342
  #
1583
2343
  # @!attribute [rw] model_version_number
1584
- # The model version.
2344
+ # The model version number.
2345
+ # @return [String]
2346
+ #
2347
+ # @!attribute [rw] arn
2348
+ # The model version ARN.
1585
2349
  # @return [String]
1586
2350
  #
1587
2351
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ModelVersion AWS API Documentation
@@ -1589,12 +2353,13 @@ module Aws::FraudDetector
1589
2353
  class ModelVersion < Struct.new(
1590
2354
  :model_id,
1591
2355
  :model_type,
1592
- :model_version_number)
2356
+ :model_version_number,
2357
+ :arn)
1593
2358
  SENSITIVE = []
1594
2359
  include Aws::Structure
1595
2360
  end
1596
2361
 
1597
- # Provides the model version details.
2362
+ # The details of the model version.
1598
2363
  #
1599
2364
  # @!attribute [rw] model_id
1600
2365
  # The model ID.
@@ -1605,36 +2370,28 @@ module Aws::FraudDetector
1605
2370
  # @return [String]
1606
2371
  #
1607
2372
  # @!attribute [rw] model_version_number
1608
- # The model version.
1609
- # @return [String]
1610
- #
1611
- # @!attribute [rw] description
1612
- # The model description.
2373
+ # The model version number.
1613
2374
  # @return [String]
1614
2375
  #
1615
2376
  # @!attribute [rw] status
1616
- # The model status.
2377
+ # The status of the model version.
1617
2378
  # @return [String]
1618
2379
  #
1619
2380
  # @!attribute [rw] training_data_source
1620
- # The model training data source.
1621
- # @return [Types::TrainingDataSource]
2381
+ # The model version training data source.
2382
+ # @return [String]
1622
2383
  #
1623
- # @!attribute [rw] model_variables
1624
- # The model variables.
1625
- # @return [Array<Types::ModelVariable>]
2384
+ # @!attribute [rw] training_data_schema
2385
+ # The training data schema.
2386
+ # @return [Types::TrainingDataSchema]
1626
2387
  #
1627
- # @!attribute [rw] label_schema
1628
- # The model label schema.
1629
- # @return [Types::LabelSchema]
2388
+ # @!attribute [rw] external_events_detail
2389
+ # The event details.
2390
+ # @return [Types::ExternalEventsDetail]
1630
2391
  #
1631
- # @!attribute [rw] validation_metrics
1632
- # The model validation metrics.
1633
- # @return [Hash<String,String>]
1634
- #
1635
- # @!attribute [rw] training_metrics
1636
- # The model training metrics.
1637
- # @return [Hash<String,String>]
2392
+ # @!attribute [rw] training_result
2393
+ # The training results.
2394
+ # @return [Types::TrainingResult]
1638
2395
  #
1639
2396
  # @!attribute [rw] last_updated_time
1640
2397
  # The timestamp when the model was last updated.
@@ -1644,21 +2401,24 @@ module Aws::FraudDetector
1644
2401
  # The timestamp when the model was created.
1645
2402
  # @return [String]
1646
2403
  #
2404
+ # @!attribute [rw] arn
2405
+ # The model version ARN.
2406
+ # @return [String]
2407
+ #
1647
2408
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/ModelVersionDetail AWS API Documentation
1648
2409
  #
1649
2410
  class ModelVersionDetail < Struct.new(
1650
2411
  :model_id,
1651
2412
  :model_type,
1652
2413
  :model_version_number,
1653
- :description,
1654
2414
  :status,
1655
2415
  :training_data_source,
1656
- :model_variables,
1657
- :label_schema,
1658
- :validation_metrics,
1659
- :training_metrics,
2416
+ :training_data_schema,
2417
+ :external_events_detail,
2418
+ :training_result,
1660
2419
  :last_updated_time,
1661
- :created_time)
2420
+ :created_time,
2421
+ :arn)
1662
2422
  SENSITIVE = []
1663
2423
  include Aws::Structure
1664
2424
  end
@@ -1681,13 +2441,18 @@ module Aws::FraudDetector
1681
2441
  # The timestamp when the outcome was created.
1682
2442
  # @return [String]
1683
2443
  #
2444
+ # @!attribute [rw] arn
2445
+ # The outcome ARN.
2446
+ # @return [String]
2447
+ #
1684
2448
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Outcome AWS API Documentation
1685
2449
  #
1686
2450
  class Outcome < Struct.new(
1687
2451
  :name,
1688
2452
  :description,
1689
2453
  :last_updated_time,
1690
- :created_time)
2454
+ :created_time,
2455
+ :arn)
1691
2456
  SENSITIVE = []
1692
2457
  include Aws::Structure
1693
2458
  end
@@ -1698,6 +2463,13 @@ module Aws::FraudDetector
1698
2463
  # {
1699
2464
  # detector_id: "identifier", # required
1700
2465
  # description: "description",
2466
+ # event_type_name: "identifier", # required
2467
+ # tags: [
2468
+ # {
2469
+ # key: "tagKey", # required
2470
+ # value: "tagValue", # required
2471
+ # },
2472
+ # ],
1701
2473
  # }
1702
2474
  #
1703
2475
  # @!attribute [rw] detector_id
@@ -1708,11 +2480,21 @@ module Aws::FraudDetector
1708
2480
  # The description of the detector.
1709
2481
  # @return [String]
1710
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
+ #
1711
2491
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutDetectorRequest AWS API Documentation
1712
2492
  #
1713
2493
  class PutDetectorRequest < Struct.new(
1714
2494
  :detector_id,
1715
- :description)
2495
+ :description,
2496
+ :event_type_name,
2497
+ :tags)
1716
2498
  SENSITIVE = []
1717
2499
  include Aws::Structure
1718
2500
  end
@@ -1721,11 +2503,111 @@ module Aws::FraudDetector
1721
2503
  #
1722
2504
  class PutDetectorResult < Aws::EmptyStructure; end
1723
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 = []
2598
+ include Aws::Structure
2599
+ end
2600
+
2601
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEventTypeResult AWS API Documentation
2602
+ #
2603
+ class PutEventTypeResult < Aws::EmptyStructure; end
2604
+
1724
2605
  # @note When making an API call, you may pass PutExternalModelRequest
1725
2606
  # data as a hash:
1726
2607
  #
1727
2608
  # {
1728
- # model_endpoint: "string", # required
2609
+ # model_endpoint: "sageMakerEndpointIdentifier", # required
2610
+ # event_type_name: "identifier",
1729
2611
  # model_source: "SAGEMAKER", # required, accepts SAGEMAKER
1730
2612
  # role: { # required
1731
2613
  # arn: "string", # required
@@ -1733,7 +2615,7 @@ module Aws::FraudDetector
1733
2615
  # },
1734
2616
  # input_configuration: { # required
1735
2617
  # format: "TEXT_CSV", # accepts TEXT_CSV, APPLICATION_JSON
1736
- # is_opaque: false, # required
2618
+ # use_event_variables: false, # required
1737
2619
  # json_input_template: "string",
1738
2620
  # csv_input_template: "string",
1739
2621
  # },
@@ -1747,12 +2629,22 @@ module Aws::FraudDetector
1747
2629
  # },
1748
2630
  # },
1749
2631
  # model_endpoint_status: "ASSOCIATED", # required, accepts ASSOCIATED, DISSOCIATED
2632
+ # tags: [
2633
+ # {
2634
+ # key: "tagKey", # required
2635
+ # value: "tagValue", # required
2636
+ # },
2637
+ # ],
1750
2638
  # }
1751
2639
  #
1752
2640
  # @!attribute [rw] model_endpoint
1753
2641
  # The model endpoints name.
1754
2642
  # @return [String]
1755
2643
  #
2644
+ # @!attribute [rw] event_type_name
2645
+ # The event type name.
2646
+ # @return [String]
2647
+ #
1756
2648
  # @!attribute [rw] model_source
1757
2649
  # The source of the model.
1758
2650
  # @return [String]
@@ -1773,15 +2665,21 @@ module Aws::FraudDetector
1773
2665
  # The model endpoint’s status in Amazon Fraud Detector.
1774
2666
  # @return [String]
1775
2667
  #
2668
+ # @!attribute [rw] tags
2669
+ # A collection of key and value pairs.
2670
+ # @return [Array<Types::Tag>]
2671
+ #
1776
2672
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutExternalModelRequest AWS API Documentation
1777
2673
  #
1778
2674
  class PutExternalModelRequest < Struct.new(
1779
2675
  :model_endpoint,
2676
+ :event_type_name,
1780
2677
  :model_source,
1781
2678
  :role,
1782
2679
  :input_configuration,
1783
2680
  :output_configuration,
1784
- :model_endpoint_status)
2681
+ :model_endpoint_status,
2682
+ :tags)
1785
2683
  SENSITIVE = []
1786
2684
  include Aws::Structure
1787
2685
  end
@@ -1790,71 +2688,67 @@ module Aws::FraudDetector
1790
2688
  #
1791
2689
  class PutExternalModelResult < Aws::EmptyStructure; end
1792
2690
 
1793
- # @note When making an API call, you may pass PutModelRequest
2691
+ # @note When making an API call, you may pass PutKMSEncryptionKeyRequest
1794
2692
  # data as a hash:
1795
2693
  #
1796
2694
  # {
1797
- # model_id: "identifier", # required
1798
- # model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
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
1799
2719
  # description: "description",
1800
- # training_data_source: { # required
1801
- # data_location: "s3BucketLocation", # required
1802
- # data_access_role_arn: "iamRoleArn", # required
1803
- # },
1804
- # model_variables: [ # required
2720
+ # tags: [
1805
2721
  # {
1806
- # name: "string", # required
1807
- # index: 1,
2722
+ # key: "tagKey", # required
2723
+ # value: "tagValue", # required
1808
2724
  # },
1809
2725
  # ],
1810
- # label_schema: { # required
1811
- # label_key: "string", # required
1812
- # label_mapper: { # required
1813
- # "string" => ["string"],
1814
- # },
1815
- # },
1816
2726
  # }
1817
2727
  #
1818
- # @!attribute [rw] model_id
1819
- # The model ID.
1820
- # @return [String]
1821
- #
1822
- # @!attribute [rw] model_type
1823
- # The model type.
2728
+ # @!attribute [rw] name
2729
+ # The label name.
1824
2730
  # @return [String]
1825
2731
  #
1826
2732
  # @!attribute [rw] description
1827
- # The model description.
2733
+ # The label description.
1828
2734
  # @return [String]
1829
2735
  #
1830
- # @!attribute [rw] training_data_source
1831
- # The training data source location in Amazon S3.
1832
- # @return [Types::TrainingDataSource]
1833
- #
1834
- # @!attribute [rw] model_variables
1835
- # The model input variables.
1836
- # @return [Array<Types::ModelVariable>]
1837
- #
1838
- # @!attribute [rw] label_schema
1839
- # The label schema.
1840
- # @return [Types::LabelSchema]
2736
+ # @!attribute [rw] tags
2737
+ # @return [Array<Types::Tag>]
1841
2738
  #
1842
- # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutModelRequest AWS API Documentation
2739
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutLabelRequest AWS API Documentation
1843
2740
  #
1844
- class PutModelRequest < Struct.new(
1845
- :model_id,
1846
- :model_type,
2741
+ class PutLabelRequest < Struct.new(
2742
+ :name,
1847
2743
  :description,
1848
- :training_data_source,
1849
- :model_variables,
1850
- :label_schema)
2744
+ :tags)
1851
2745
  SENSITIVE = []
1852
2746
  include Aws::Structure
1853
2747
  end
1854
2748
 
1855
- # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutModelResult AWS API Documentation
2749
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutLabelResult AWS API Documentation
1856
2750
  #
1857
- class PutModelResult < Aws::EmptyStructure; end
2751
+ class PutLabelResult < Aws::EmptyStructure; end
1858
2752
 
1859
2753
  # @note When making an API call, you may pass PutOutcomeRequest
1860
2754
  # data as a hash:
@@ -1862,6 +2756,12 @@ module Aws::FraudDetector
1862
2756
  # {
1863
2757
  # name: "identifier", # required
1864
2758
  # description: "description",
2759
+ # tags: [
2760
+ # {
2761
+ # key: "tagKey", # required
2762
+ # value: "tagValue", # required
2763
+ # },
2764
+ # ],
1865
2765
  # }
1866
2766
  #
1867
2767
  # @!attribute [rw] name
@@ -1872,11 +2772,16 @@ module Aws::FraudDetector
1872
2772
  # The outcome description.
1873
2773
  # @return [String]
1874
2774
  #
2775
+ # @!attribute [rw] tags
2776
+ # A collection of key and value pairs.
2777
+ # @return [Array<Types::Tag>]
2778
+ #
1875
2779
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutOutcomeRequest AWS API Documentation
1876
2780
  #
1877
2781
  class PutOutcomeRequest < Struct.new(
1878
2782
  :name,
1879
- :description)
2783
+ :description,
2784
+ :tags)
1880
2785
  SENSITIVE = []
1881
2786
  include Aws::Structure
1882
2787
  end
@@ -1933,7 +2838,7 @@ module Aws::FraudDetector
1933
2838
  # {
1934
2839
  # detector_id: "identifier", # required
1935
2840
  # rule_id: "identifier", # required
1936
- # rule_version: "nonEmptyString", # required
2841
+ # rule_version: "wholeNumberVersionString", # required
1937
2842
  # }
1938
2843
  #
1939
2844
  # @!attribute [rw] detector_id
@@ -1996,6 +2901,10 @@ module Aws::FraudDetector
1996
2901
  # The timestamp of when the rule was created.
1997
2902
  # @return [String]
1998
2903
  #
2904
+ # @!attribute [rw] arn
2905
+ # The rule ARN.
2906
+ # @return [String]
2907
+ #
1999
2908
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/RuleDetail AWS API Documentation
2000
2909
  #
2001
2910
  class RuleDetail < Struct.new(
@@ -2007,8 +2916,9 @@ module Aws::FraudDetector
2007
2916
  :language,
2008
2917
  :outcomes,
2009
2918
  :last_updated_time,
2010
- :created_time)
2011
- SENSITIVE = []
2919
+ :created_time,
2920
+ :arn)
2921
+ SENSITIVE = [:expression]
2012
2922
  include Aws::Structure
2013
2923
  end
2014
2924
 
@@ -2031,6 +2941,67 @@ module Aws::FraudDetector
2031
2941
  include Aws::Structure
2032
2942
  end
2033
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 = []
2998
+ include Aws::Structure
2999
+ end
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
+
2034
3005
  # An exception indicating a throttling error.
2035
3006
  #
2036
3007
  # @!attribute [rw] message
@@ -2044,39 +3015,113 @@ module Aws::FraudDetector
2044
3015
  include Aws::Structure
2045
3016
  end
2046
3017
 
2047
- # The training data source.
3018
+ # The training data schema.
2048
3019
  #
2049
- # @note When making an API call, you may pass TrainingDataSource
3020
+ # @note When making an API call, you may pass TrainingDataSchema
2050
3021
  # data as a hash:
2051
3022
  #
2052
3023
  # {
2053
- # data_location: "s3BucketLocation", # required
2054
- # data_access_role_arn: "iamRoleArn", # required
3024
+ # model_variables: ["string"], # required
3025
+ # label_schema: { # required
3026
+ # label_mapper: { # required
3027
+ # "string" => ["string"],
3028
+ # },
3029
+ # },
2055
3030
  # }
2056
3031
  #
2057
- # @!attribute [rw] data_location
2058
- # The data location of the training data source.
2059
- # @return [String]
3032
+ # @!attribute [rw] model_variables
3033
+ # The training data schema variables.
3034
+ # @return [Array<String>]
2060
3035
  #
2061
- # @!attribute [rw] data_access_role_arn
2062
- # The data access role ARN for the training data source.
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.
2063
3100
  # @return [String]
2064
3101
  #
2065
- # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/TrainingDataSource AWS API Documentation
3102
+ # @!attribute [rw] tag_keys
3103
+ # The resource ARN.
3104
+ # @return [Array<String>]
3105
+ #
3106
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UntagResourceRequest AWS API Documentation
2066
3107
  #
2067
- class TrainingDataSource < Struct.new(
2068
- :data_location,
2069
- :data_access_role_arn)
3108
+ class UntagResourceRequest < Struct.new(
3109
+ :resource_arn,
3110
+ :tag_keys)
2070
3111
  SENSITIVE = []
2071
3112
  include Aws::Structure
2072
3113
  end
2073
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
+
2074
3119
  # @note When making an API call, you may pass UpdateDetectorVersionMetadataRequest
2075
3120
  # data as a hash:
2076
3121
  #
2077
3122
  # {
2078
3123
  # detector_id: "identifier", # required
2079
- # detector_version_id: "nonEmptyString", # required
3124
+ # detector_version_id: "wholeNumberVersionString", # required
2080
3125
  # description: "description", # required
2081
3126
  # }
2082
3127
  #
@@ -2111,13 +3156,13 @@ module Aws::FraudDetector
2111
3156
  #
2112
3157
  # {
2113
3158
  # detector_id: "identifier", # required
2114
- # detector_version_id: "nonEmptyString", # required
3159
+ # detector_version_id: "wholeNumberVersionString", # required
2115
3160
  # external_model_endpoints: ["string"], # required
2116
3161
  # rules: [ # required
2117
3162
  # {
2118
3163
  # detector_id: "identifier", # required
2119
3164
  # rule_id: "identifier", # required
2120
- # rule_version: "nonEmptyString", # required
3165
+ # rule_version: "wholeNumberVersionString", # required
2121
3166
  # },
2122
3167
  # ],
2123
3168
  # description: "description",
@@ -2126,6 +3171,7 @@ module Aws::FraudDetector
2126
3171
  # model_id: "identifier", # required
2127
3172
  # model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
2128
3173
  # model_version_number: "nonEmptyString", # required
3174
+ # arn: "fraudDetectorArn",
2129
3175
  # },
2130
3176
  # ],
2131
3177
  # rule_execution_mode: "ALL_MATCHED", # accepts ALL_MATCHED, FIRST_MATCHED
@@ -2195,7 +3241,7 @@ module Aws::FraudDetector
2195
3241
  #
2196
3242
  # {
2197
3243
  # detector_id: "identifier", # required
2198
- # detector_version_id: "nonEmptyString", # required
3244
+ # detector_version_id: "wholeNumberVersionString", # required
2199
3245
  # status: "DRAFT", # required, accepts DRAFT, ACTIVE, INACTIVE
2200
3246
  # }
2201
3247
  #
@@ -2225,17 +3271,92 @@ module Aws::FraudDetector
2225
3271
  #
2226
3272
  class UpdateDetectorVersionStatusResult < Aws::EmptyStructure; end
2227
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
+
2228
3309
  # @note When making an API call, you may pass UpdateModelVersionRequest
2229
3310
  # data as a hash:
2230
3311
  #
2231
3312
  # {
2232
3313
  # model_id: "identifier", # required
2233
3314
  # model_type: "ONLINE_FRAUD_INSIGHTS", # required, accepts ONLINE_FRAUD_INSIGHTS
2234
- # model_version_number: "nonEmptyString", # required
2235
- # description: "description", # required
2236
- # status: "TRAINING_IN_PROGRESS", # required, accepts TRAINING_IN_PROGRESS, TRAINING_COMPLETE, ACTIVATE_REQUESTED, ACTIVATE_IN_PROGRESS, ACTIVE, INACTIVATE_IN_PROGRESS, INACTIVE, ERROR
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
+ # ],
2237
3326
  # }
2238
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
+
2239
3360
  # @!attribute [rw] model_id
2240
3361
  # The model ID.
2241
3362
  # @return [String]
@@ -2245,32 +3366,64 @@ module Aws::FraudDetector
2245
3366
  # @return [String]
2246
3367
  #
2247
3368
  # @!attribute [rw] model_version_number
2248
- # The model version.
3369
+ # The model version number of the model version updated.
2249
3370
  # @return [String]
2250
3371
  #
2251
- # @!attribute [rw] description
2252
- # The model description.
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.
2253
3407
  # @return [String]
2254
3408
  #
2255
3409
  # @!attribute [rw] status
2256
- # The new model status.
3410
+ # The model version status.
2257
3411
  # @return [String]
2258
3412
  #
2259
- # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionRequest AWS API Documentation
3413
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionStatusRequest AWS API Documentation
2260
3414
  #
2261
- class UpdateModelVersionRequest < Struct.new(
3415
+ class UpdateModelVersionStatusRequest < Struct.new(
2262
3416
  :model_id,
2263
3417
  :model_type,
2264
3418
  :model_version_number,
2265
- :description,
2266
3419
  :status)
2267
3420
  SENSITIVE = []
2268
3421
  include Aws::Structure
2269
3422
  end
2270
3423
 
2271
- # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionResult AWS API Documentation
3424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionStatusResult AWS API Documentation
2272
3425
  #
2273
- class UpdateModelVersionResult < Aws::EmptyStructure; end
3426
+ class UpdateModelVersionStatusResult < Aws::EmptyStructure; end
2274
3427
 
2275
3428
  # @note When making an API call, you may pass UpdateRuleMetadataRequest
2276
3429
  # data as a hash:
@@ -2279,7 +3432,7 @@ module Aws::FraudDetector
2279
3432
  # rule: { # required
2280
3433
  # detector_id: "identifier", # required
2281
3434
  # rule_id: "identifier", # required
2282
- # rule_version: "nonEmptyString", # required
3435
+ # rule_version: "wholeNumberVersionString", # required
2283
3436
  # },
2284
3437
  # description: "description", # required
2285
3438
  # }
@@ -2312,12 +3465,18 @@ module Aws::FraudDetector
2312
3465
  # rule: { # required
2313
3466
  # detector_id: "identifier", # required
2314
3467
  # rule_id: "identifier", # required
2315
- # rule_version: "nonEmptyString", # required
3468
+ # rule_version: "wholeNumberVersionString", # required
2316
3469
  # },
2317
3470
  # description: "description",
2318
3471
  # expression: "ruleExpression", # required
2319
3472
  # language: "DETECTORPL", # required, accepts DETECTORPL
2320
3473
  # outcomes: ["string"], # required
3474
+ # tags: [
3475
+ # {
3476
+ # key: "tagKey", # required
3477
+ # value: "tagValue", # required
3478
+ # },
3479
+ # ],
2321
3480
  # }
2322
3481
  #
2323
3482
  # @!attribute [rw] rule
@@ -2340,6 +3499,10 @@ module Aws::FraudDetector
2340
3499
  # The outcomes.
2341
3500
  # @return [Array<String>]
2342
3501
  #
3502
+ # @!attribute [rw] tags
3503
+ # The tags to assign to the rule version.
3504
+ # @return [Array<Types::Tag>]
3505
+ #
2343
3506
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleVersionRequest AWS API Documentation
2344
3507
  #
2345
3508
  class UpdateRuleVersionRequest < Struct.new(
@@ -2347,8 +3510,9 @@ module Aws::FraudDetector
2347
3510
  :description,
2348
3511
  :expression,
2349
3512
  :language,
2350
- :outcomes)
2351
- SENSITIVE = []
3513
+ :outcomes,
3514
+ :tags)
3515
+ SENSITIVE = [:expression]
2352
3516
  include Aws::Structure
2353
3517
  end
2354
3518
 
@@ -2442,6 +3606,16 @@ module Aws::FraudDetector
2442
3606
  #
2443
3607
  # @!attribute [rw] variable_type
2444
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`
2445
3619
  # @return [String]
2446
3620
  #
2447
3621
  # @!attribute [rw] last_updated_time
@@ -2452,6 +3626,10 @@ module Aws::FraudDetector
2452
3626
  # The time when the variable was created.
2453
3627
  # @return [String]
2454
3628
  #
3629
+ # @!attribute [rw] arn
3630
+ # The ARN of the variable.
3631
+ # @return [String]
3632
+ #
2455
3633
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/Variable AWS API Documentation
2456
3634
  #
2457
3635
  class Variable < Struct.new(
@@ -2462,12 +3640,14 @@ module Aws::FraudDetector
2462
3640
  :description,
2463
3641
  :variable_type,
2464
3642
  :last_updated_time,
2465
- :created_time)
3643
+ :created_time,
3644
+ :arn)
2466
3645
  SENSITIVE = []
2467
3646
  include Aws::Structure
2468
3647
  end
2469
3648
 
2470
- # The variable entry in a list.
3649
+ # A variable in the list of variables for the batch create variable
3650
+ # request.
2471
3651
  #
2472
3652
  # @note When making an API call, you may pass VariableEntry
2473
3653
  # data as a hash:
@@ -2482,27 +3662,37 @@ module Aws::FraudDetector
2482
3662
  # }
2483
3663
  #
2484
3664
  # @!attribute [rw] name
2485
- # The name of the variable entry.
3665
+ # The name of the variable.
2486
3666
  # @return [String]
2487
3667
  #
2488
3668
  # @!attribute [rw] data_type
2489
- # The data type of the variable entry.
3669
+ # The data type of the variable.
2490
3670
  # @return [String]
2491
3671
  #
2492
3672
  # @!attribute [rw] data_source
2493
- # The data source of the variable entry.
3673
+ # The data source of the variable.
2494
3674
  # @return [String]
2495
3675
  #
2496
3676
  # @!attribute [rw] default_value
2497
- # The default value of the variable entry.
3677
+ # The default value of the variable.
2498
3678
  # @return [String]
2499
3679
  #
2500
3680
  # @!attribute [rw] description
2501
- # The description of the variable entry.
3681
+ # The description of the variable.
2502
3682
  # @return [String]
2503
3683
  #
2504
3684
  # @!attribute [rw] variable_type
2505
- # The type of the variable entry.
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`
2506
3696
  # @return [String]
2507
3697
  #
2508
3698
  # @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/VariableEntry AWS API Documentation