1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2019-11-15", 5 "endpointPrefix":"frauddetector", 6 "jsonVersion":"1.1", 7 "protocol":"json", 8 "serviceFullName":"Amazon Fraud Detector", 9 "serviceId":"FraudDetector", 10 "signatureVersion":"v4", 11 "targetPrefix":"AWSHawksNestServiceFacade", 12 "uid":"frauddetector-2019-11-15" 13 }, 14 "operations":{ 15 "BatchCreateVariable":{ 16 "name":"BatchCreateVariable", 17 "http":{ 18 "method":"POST", 19 "requestUri":"/" 20 }, 21 "input":{"shape":"BatchCreateVariableRequest"}, 22 "output":{"shape":"BatchCreateVariableResult"}, 23 "errors":[ 24 {"shape":"ValidationException"}, 25 {"shape":"InternalServerException"}, 26 {"shape":"ThrottlingException"} 27 ] 28 }, 29 "BatchGetVariable":{ 30 "name":"BatchGetVariable", 31 "http":{ 32 "method":"POST", 33 "requestUri":"/" 34 }, 35 "input":{"shape":"BatchGetVariableRequest"}, 36 "output":{"shape":"BatchGetVariableResult"}, 37 "errors":[ 38 {"shape":"ValidationException"}, 39 {"shape":"InternalServerException"}, 40 {"shape":"ThrottlingException"} 41 ] 42 }, 43 "CreateDetectorVersion":{ 44 "name":"CreateDetectorVersion", 45 "http":{ 46 "method":"POST", 47 "requestUri":"/" 48 }, 49 "input":{"shape":"CreateDetectorVersionRequest"}, 50 "output":{"shape":"CreateDetectorVersionResult"}, 51 "errors":[ 52 {"shape":"ValidationException"}, 53 {"shape":"ResourceNotFoundException"}, 54 {"shape":"InternalServerException"}, 55 {"shape":"ThrottlingException"} 56 ] 57 }, 58 "CreateModelVersion":{ 59 "name":"CreateModelVersion", 60 "http":{ 61 "method":"POST", 62 "requestUri":"/" 63 }, 64 "input":{"shape":"CreateModelVersionRequest"}, 65 "output":{"shape":"CreateModelVersionResult"}, 66 "errors":[ 67 {"shape":"ValidationException"}, 68 {"shape":"InternalServerException"}, 69 {"shape":"ThrottlingException"} 70 ] 71 }, 72 "CreateRule":{ 73 "name":"CreateRule", 74 "http":{ 75 "method":"POST", 76 "requestUri":"/" 77 }, 78 "input":{"shape":"CreateRuleRequest"}, 79 "output":{"shape":"CreateRuleResult"}, 80 "errors":[ 81 {"shape":"ValidationException"}, 82 {"shape":"InternalServerException"}, 83 {"shape":"ThrottlingException"} 84 ] 85 }, 86 "CreateVariable":{ 87 "name":"CreateVariable", 88 "http":{ 89 "method":"POST", 90 "requestUri":"/" 91 }, 92 "input":{"shape":"CreateVariableRequest"}, 93 "output":{"shape":"CreateVariableResult"}, 94 "errors":[ 95 {"shape":"ValidationException"}, 96 {"shape":"InternalServerException"}, 97 {"shape":"ThrottlingException"} 98 ] 99 }, 100 "DeleteDetectorVersion":{ 101 "name":"DeleteDetectorVersion", 102 "http":{ 103 "method":"POST", 104 "requestUri":"/" 105 }, 106 "input":{"shape":"DeleteDetectorVersionRequest"}, 107 "output":{"shape":"DeleteDetectorVersionResult"}, 108 "errors":[ 109 {"shape":"ValidationException"}, 110 {"shape":"ResourceNotFoundException"}, 111 {"shape":"InternalServerException"}, 112 {"shape":"ThrottlingException"} 113 ] 114 }, 115 "DeleteEvent":{ 116 "name":"DeleteEvent", 117 "http":{ 118 "method":"POST", 119 "requestUri":"/" 120 }, 121 "input":{"shape":"DeleteEventRequest"}, 122 "output":{"shape":"DeleteEventResult"}, 123 "errors":[ 124 {"shape":"InternalServerException"}, 125 {"shape":"ThrottlingException"} 126 ] 127 }, 128 "DescribeDetector":{ 129 "name":"DescribeDetector", 130 "http":{ 131 "method":"POST", 132 "requestUri":"/" 133 }, 134 "input":{"shape":"DescribeDetectorRequest"}, 135 "output":{"shape":"DescribeDetectorResult"}, 136 "errors":[ 137 {"shape":"ValidationException"}, 138 {"shape":"ResourceNotFoundException"}, 139 {"shape":"InternalServerException"}, 140 {"shape":"ThrottlingException"} 141 ] 142 }, 143 "DescribeModelVersions":{ 144 "name":"DescribeModelVersions", 145 "http":{ 146 "method":"POST", 147 "requestUri":"/" 148 }, 149 "input":{"shape":"DescribeModelVersionsRequest"}, 150 "output":{"shape":"DescribeModelVersionsResult"}, 151 "errors":[ 152 {"shape":"ValidationException"}, 153 {"shape":"ResourceNotFoundException"}, 154 {"shape":"InternalServerException"}, 155 {"shape":"ThrottlingException"} 156 ] 157 }, 158 "GetDetectorVersion":{ 159 "name":"GetDetectorVersion", 160 "http":{ 161 "method":"POST", 162 "requestUri":"/" 163 }, 164 "input":{"shape":"GetDetectorVersionRequest"}, 165 "output":{"shape":"GetDetectorVersionResult"}, 166 "errors":[ 167 {"shape":"ValidationException"}, 168 {"shape":"ResourceNotFoundException"}, 169 {"shape":"InternalServerException"}, 170 {"shape":"ThrottlingException"} 171 ] 172 }, 173 "GetDetectors":{ 174 "name":"GetDetectors", 175 "http":{ 176 "method":"POST", 177 "requestUri":"/" 178 }, 179 "input":{"shape":"GetDetectorsRequest"}, 180 "output":{"shape":"GetDetectorsResult"}, 181 "errors":[ 182 {"shape":"ValidationException"}, 183 {"shape":"ResourceNotFoundException"}, 184 {"shape":"InternalServerException"}, 185 {"shape":"ThrottlingException"} 186 ] 187 }, 188 "GetExternalModels":{ 189 "name":"GetExternalModels", 190 "http":{ 191 "method":"POST", 192 "requestUri":"/" 193 }, 194 "input":{"shape":"GetExternalModelsRequest"}, 195 "output":{"shape":"GetExternalModelsResult"}, 196 "errors":[ 197 {"shape":"ValidationException"}, 198 {"shape":"ResourceNotFoundException"}, 199 {"shape":"InternalServerException"}, 200 {"shape":"ThrottlingException"} 201 ] 202 }, 203 "GetModelVersion":{ 204 "name":"GetModelVersion", 205 "http":{ 206 "method":"POST", 207 "requestUri":"/" 208 }, 209 "input":{"shape":"GetModelVersionRequest"}, 210 "output":{"shape":"GetModelVersionResult"}, 211 "errors":[ 212 {"shape":"ValidationException"}, 213 {"shape":"ResourceNotFoundException"}, 214 {"shape":"InternalServerException"}, 215 {"shape":"ThrottlingException"} 216 ] 217 }, 218 "GetModels":{ 219 "name":"GetModels", 220 "http":{ 221 "method":"POST", 222 "requestUri":"/" 223 }, 224 "input":{"shape":"GetModelsRequest"}, 225 "output":{"shape":"GetModelsResult"}, 226 "errors":[ 227 {"shape":"ValidationException"}, 228 {"shape":"ResourceNotFoundException"}, 229 {"shape":"InternalServerException"}, 230 {"shape":"ThrottlingException"} 231 ] 232 }, 233 "GetOutcomes":{ 234 "name":"GetOutcomes", 235 "http":{ 236 "method":"POST", 237 "requestUri":"/" 238 }, 239 "input":{"shape":"GetOutcomesRequest"}, 240 "output":{"shape":"GetOutcomesResult"}, 241 "errors":[ 242 {"shape":"ValidationException"}, 243 {"shape":"ResourceNotFoundException"}, 244 {"shape":"InternalServerException"}, 245 {"shape":"ThrottlingException"} 246 ] 247 }, 248 "GetPrediction":{ 249 "name":"GetPrediction", 250 "http":{ 251 "method":"POST", 252 "requestUri":"/" 253 }, 254 "input":{"shape":"GetPredictionRequest"}, 255 "output":{"shape":"GetPredictionResult"}, 256 "errors":[ 257 {"shape":"ValidationException"}, 258 {"shape":"ResourceNotFoundException"}, 259 {"shape":"InternalServerException"}, 260 {"shape":"ThrottlingException"} 261 ] 262 }, 263 "GetRules":{ 264 "name":"GetRules", 265 "http":{ 266 "method":"POST", 267 "requestUri":"/" 268 }, 269 "input":{"shape":"GetRulesRequest"}, 270 "output":{"shape":"GetRulesResult"}, 271 "errors":[ 272 {"shape":"ValidationException"}, 273 {"shape":"ResourceNotFoundException"}, 274 {"shape":"InternalServerException"}, 275 {"shape":"ThrottlingException"} 276 ] 277 }, 278 "GetVariables":{ 279 "name":"GetVariables", 280 "http":{ 281 "method":"POST", 282 "requestUri":"/" 283 }, 284 "input":{"shape":"GetVariablesRequest"}, 285 "output":{"shape":"GetVariablesResult"}, 286 "errors":[ 287 {"shape":"ValidationException"}, 288 {"shape":"ResourceNotFoundException"}, 289 {"shape":"InternalServerException"}, 290 {"shape":"ThrottlingException"} 291 ] 292 }, 293 "PutDetector":{ 294 "name":"PutDetector", 295 "http":{ 296 "method":"POST", 297 "requestUri":"/" 298 }, 299 "input":{"shape":"PutDetectorRequest"}, 300 "output":{"shape":"PutDetectorResult"}, 301 "errors":[ 302 {"shape":"ValidationException"}, 303 {"shape":"InternalServerException"}, 304 {"shape":"ThrottlingException"} 305 ] 306 }, 307 "PutExternalModel":{ 308 "name":"PutExternalModel", 309 "http":{ 310 "method":"POST", 311 "requestUri":"/" 312 }, 313 "input":{"shape":"PutExternalModelRequest"}, 314 "output":{"shape":"PutExternalModelResult"}, 315 "errors":[ 316 {"shape":"ValidationException"}, 317 {"shape":"InternalServerException"}, 318 {"shape":"ThrottlingException"} 319 ] 320 }, 321 "PutModel":{ 322 "name":"PutModel", 323 "http":{ 324 "method":"POST", 325 "requestUri":"/" 326 }, 327 "input":{"shape":"PutModelRequest"}, 328 "output":{"shape":"PutModelResult"}, 329 "errors":[ 330 {"shape":"ValidationException"}, 331 {"shape":"InternalServerException"}, 332 {"shape":"ThrottlingException"} 333 ] 334 }, 335 "PutOutcome":{ 336 "name":"PutOutcome", 337 "http":{ 338 "method":"POST", 339 "requestUri":"/" 340 }, 341 "input":{"shape":"PutOutcomeRequest"}, 342 "output":{"shape":"PutOutcomeResult"}, 343 "errors":[ 344 {"shape":"ValidationException"}, 345 {"shape":"InternalServerException"}, 346 {"shape":"ThrottlingException"} 347 ] 348 }, 349 "UpdateDetectorVersion":{ 350 "name":"UpdateDetectorVersion", 351 "http":{ 352 "method":"POST", 353 "requestUri":"/" 354 }, 355 "input":{"shape":"UpdateDetectorVersionRequest"}, 356 "output":{"shape":"UpdateDetectorVersionResult"}, 357 "errors":[ 358 {"shape":"ValidationException"}, 359 {"shape":"ResourceNotFoundException"}, 360 {"shape":"InternalServerException"}, 361 {"shape":"ThrottlingException"} 362 ] 363 }, 364 "UpdateDetectorVersionMetadata":{ 365 "name":"UpdateDetectorVersionMetadata", 366 "http":{ 367 "method":"POST", 368 "requestUri":"/" 369 }, 370 "input":{"shape":"UpdateDetectorVersionMetadataRequest"}, 371 "output":{"shape":"UpdateDetectorVersionMetadataResult"}, 372 "errors":[ 373 {"shape":"ValidationException"}, 374 {"shape":"InternalServerException"}, 375 {"shape":"ThrottlingException"} 376 ] 377 }, 378 "UpdateDetectorVersionStatus":{ 379 "name":"UpdateDetectorVersionStatus", 380 "http":{ 381 "method":"POST", 382 "requestUri":"/" 383 }, 384 "input":{"shape":"UpdateDetectorVersionStatusRequest"}, 385 "output":{"shape":"UpdateDetectorVersionStatusResult"}, 386 "errors":[ 387 {"shape":"ValidationException"}, 388 {"shape":"ResourceNotFoundException"}, 389 {"shape":"InternalServerException"}, 390 {"shape":"ThrottlingException"} 391 ] 392 }, 393 "UpdateModelVersion":{ 394 "name":"UpdateModelVersion", 395 "http":{ 396 "method":"POST", 397 "requestUri":"/" 398 }, 399 "input":{"shape":"UpdateModelVersionRequest"}, 400 "output":{"shape":"UpdateModelVersionResult"}, 401 "errors":[ 402 {"shape":"ValidationException"}, 403 {"shape":"ResourceNotFoundException"}, 404 {"shape":"InternalServerException"}, 405 {"shape":"ThrottlingException"} 406 ] 407 }, 408 "UpdateRuleMetadata":{ 409 "name":"UpdateRuleMetadata", 410 "http":{ 411 "method":"POST", 412 "requestUri":"/" 413 }, 414 "input":{"shape":"UpdateRuleMetadataRequest"}, 415 "output":{"shape":"UpdateRuleMetadataResult"}, 416 "errors":[ 417 {"shape":"ValidationException"}, 418 {"shape":"ResourceNotFoundException"}, 419 {"shape":"InternalServerException"}, 420 {"shape":"ThrottlingException"} 421 ] 422 }, 423 "UpdateRuleVersion":{ 424 "name":"UpdateRuleVersion", 425 "http":{ 426 "method":"POST", 427 "requestUri":"/" 428 }, 429 "input":{"shape":"UpdateRuleVersionRequest"}, 430 "output":{"shape":"UpdateRuleVersionResult"}, 431 "errors":[ 432 {"shape":"ValidationException"}, 433 {"shape":"ResourceNotFoundException"}, 434 {"shape":"InternalServerException"}, 435 {"shape":"ThrottlingException"} 436 ] 437 }, 438 "UpdateVariable":{ 439 "name":"UpdateVariable", 440 "http":{ 441 "method":"POST", 442 "requestUri":"/" 443 }, 444 "input":{"shape":"UpdateVariableRequest"}, 445 "output":{"shape":"UpdateVariableResult"}, 446 "errors":[ 447 {"shape":"ValidationException"}, 448 {"shape":"ResourceNotFoundException"}, 449 {"shape":"InternalServerException"}, 450 {"shape":"ThrottlingException"} 451 ] 452 } 453 }, 454 "shapes":{ 455 "BatchCreateVariableError":{ 456 "type":"structure", 457 "members":{ 458 "name":{"shape":"string"}, 459 "code":{"shape":"integer"}, 460 "message":{"shape":"string"} 461 } 462 }, 463 "BatchCreateVariableErrorList":{ 464 "type":"list", 465 "member":{"shape":"BatchCreateVariableError"} 466 }, 467 "BatchCreateVariableRequest":{ 468 "type":"structure", 469 "required":["variableEntries"], 470 "members":{ 471 "variableEntries":{"shape":"VariableEntryList"} 472 } 473 }, 474 "BatchCreateVariableResult":{ 475 "type":"structure", 476 "members":{ 477 "errors":{"shape":"BatchCreateVariableErrorList"} 478 } 479 }, 480 "BatchGetVariableError":{ 481 "type":"structure", 482 "members":{ 483 "name":{"shape":"string"}, 484 "code":{"shape":"integer"}, 485 "message":{"shape":"string"} 486 } 487 }, 488 "BatchGetVariableErrorList":{ 489 "type":"list", 490 "member":{"shape":"BatchGetVariableError"} 491 }, 492 "BatchGetVariableRequest":{ 493 "type":"structure", 494 "required":["names"], 495 "members":{ 496 "names":{"shape":"NameList"} 497 } 498 }, 499 "BatchGetVariableResult":{ 500 "type":"structure", 501 "members":{ 502 "variables":{"shape":"VariableList"}, 503 "errors":{"shape":"BatchGetVariableErrorList"} 504 } 505 }, 506 "CreateDetectorVersionRequest":{ 507 "type":"structure", 508 "required":[ 509 "detectorId", 510 "rules" 511 ], 512 "members":{ 513 "detectorId":{"shape":"identifier"}, 514 "description":{"shape":"description"}, 515 "externalModelEndpoints":{"shape":"ListOfStrings"}, 516 "rules":{"shape":"RuleList"}, 517 "modelVersions":{"shape":"ListOfModelVersions"} 518 } 519 }, 520 "CreateDetectorVersionResult":{ 521 "type":"structure", 522 "members":{ 523 "detectorId":{"shape":"identifier"}, 524 "detectorVersionId":{"shape":"nonEmptyString"}, 525 "status":{"shape":"DetectorVersionStatus"} 526 } 527 }, 528 "CreateModelVersionRequest":{ 529 "type":"structure", 530 "required":[ 531 "modelId", 532 "modelType" 533 ], 534 "members":{ 535 "modelId":{"shape":"identifier"}, 536 "modelType":{"shape":"ModelTypeEnum"}, 537 "description":{"shape":"description"} 538 } 539 }, 540 "CreateModelVersionResult":{ 541 "type":"structure", 542 "members":{ 543 "modelId":{"shape":"identifier"}, 544 "modelType":{"shape":"ModelTypeEnum"}, 545 "modelVersionNumber":{"shape":"nonEmptyString"}, 546 "status":{"shape":"string"} 547 } 548 }, 549 "CreateRuleRequest":{ 550 "type":"structure", 551 "required":[ 552 "ruleId", 553 "detectorId", 554 "expression", 555 "language", 556 "outcomes" 557 ], 558 "members":{ 559 "ruleId":{"shape":"identifier"}, 560 "detectorId":{"shape":"identifier"}, 561 "description":{"shape":"description"}, 562 "expression":{"shape":"ruleExpression"}, 563 "language":{"shape":"Language"}, 564 "outcomes":{"shape":"NonEmptyListOfStrings"} 565 } 566 }, 567 "CreateRuleResult":{ 568 "type":"structure", 569 "members":{ 570 "rule":{"shape":"Rule"} 571 } 572 }, 573 "CreateVariableRequest":{ 574 "type":"structure", 575 "required":[ 576 "name", 577 "dataType", 578 "dataSource", 579 "defaultValue" 580 ], 581 "members":{ 582 "name":{"shape":"string"}, 583 "dataType":{"shape":"DataType"}, 584 "dataSource":{"shape":"DataSource"}, 585 "defaultValue":{"shape":"string"}, 586 "description":{"shape":"string"}, 587 "variableType":{"shape":"string"} 588 } 589 }, 590 "CreateVariableResult":{ 591 "type":"structure", 592 "members":{ 593 } 594 }, 595 "CsvIndexToVariableMap":{ 596 "type":"map", 597 "key":{"shape":"string"}, 598 "value":{"shape":"string"} 599 }, 600 "DataSource":{ 601 "type":"string", 602 "enum":[ 603 "EVENT", 604 "MODEL_SCORE", 605 "EXTERNAL_MODEL_SCORE" 606 ] 607 }, 608 "DataType":{ 609 "type":"string", 610 "enum":[ 611 "STRING", 612 "INTEGER", 613 "FLOAT", 614 "BOOLEAN" 615 ] 616 }, 617 "DeleteDetectorVersionRequest":{ 618 "type":"structure", 619 "required":[ 620 "detectorId", 621 "detectorVersionId" 622 ], 623 "members":{ 624 "detectorId":{"shape":"identifier"}, 625 "detectorVersionId":{"shape":"nonEmptyString"} 626 } 627 }, 628 "DeleteDetectorVersionResult":{ 629 "type":"structure", 630 "members":{ 631 } 632 }, 633 "DeleteEventRequest":{ 634 "type":"structure", 635 "required":["eventId"], 636 "members":{ 637 "eventId":{"shape":"string"} 638 } 639 }, 640 "DeleteEventResult":{ 641 "type":"structure", 642 "members":{ 643 } 644 }, 645 "DescribeDetectorRequest":{ 646 "type":"structure", 647 "required":["detectorId"], 648 "members":{ 649 "detectorId":{"shape":"identifier"}, 650 "nextToken":{"shape":"string"}, 651 "maxResults":{"shape":"DetectorVersionMaxResults"} 652 } 653 }, 654 "DescribeDetectorResult":{ 655 "type":"structure", 656 "members":{ 657 "detectorId":{"shape":"identifier"}, 658 "detectorVersionSummaries":{"shape":"DetectorVersionSummaryList"}, 659 "nextToken":{"shape":"string"} 660 } 661 }, 662 "DescribeModelVersionsRequest":{ 663 "type":"structure", 664 "members":{ 665 "modelId":{"shape":"identifier"}, 666 "modelVersionNumber":{"shape":"nonEmptyString"}, 667 "modelType":{"shape":"ModelTypeEnum"}, 668 "nextToken":{"shape":"string"}, 669 "maxResults":{"shape":"MaxResults"} 670 } 671 }, 672 "DescribeModelVersionsResult":{ 673 "type":"structure", 674 "members":{ 675 "modelVersionDetails":{"shape":"ModelVersionDetailList"}, 676 "nextToken":{"shape":"string"} 677 } 678 }, 679 "Detector":{ 680 "type":"structure", 681 "members":{ 682 "detectorId":{"shape":"identifier"}, 683 "description":{"shape":"description"}, 684 "lastUpdatedTime":{"shape":"time"}, 685 "createdTime":{"shape":"time"} 686 } 687 }, 688 "DetectorList":{ 689 "type":"list", 690 "member":{"shape":"Detector"} 691 }, 692 "DetectorVersionMaxResults":{ 693 "type":"integer", 694 "box":true, 695 "max":2500, 696 "min":1000 697 }, 698 "DetectorVersionStatus":{ 699 "type":"string", 700 "enum":[ 701 "DRAFT", 702 "ACTIVE", 703 "INACTIVE" 704 ] 705 }, 706 "DetectorVersionSummary":{ 707 "type":"structure", 708 "members":{ 709 "detectorVersionId":{"shape":"nonEmptyString"}, 710 "status":{"shape":"DetectorVersionStatus"}, 711 "description":{"shape":"description"}, 712 "lastUpdatedTime":{"shape":"time"} 713 } 714 }, 715 "DetectorVersionSummaryList":{ 716 "type":"list", 717 "member":{"shape":"DetectorVersionSummary"} 718 }, 719 "DetectorsMaxResults":{ 720 "type":"integer", 721 "box":true, 722 "max":10, 723 "min":5 724 }, 725 "EventAttributeMap":{ 726 "type":"map", 727 "key":{"shape":"attributeKey"}, 728 "value":{"shape":"attributeValue"} 729 }, 730 "ExternalModel":{ 731 "type":"structure", 732 "members":{ 733 "modelEndpoint":{"shape":"string"}, 734 "modelSource":{"shape":"ModelSource"}, 735 "role":{"shape":"Role"}, 736 "inputConfiguration":{"shape":"ModelInputConfiguration"}, 737 "outputConfiguration":{"shape":"ModelOutputConfiguration"}, 738 "modelEndpointStatus":{"shape":"ModelEndpointStatus"}, 739 "lastUpdatedTime":{"shape":"time"}, 740 "createdTime":{"shape":"time"} 741 } 742 }, 743 "ExternalModelEndpointDataBlobMap":{ 744 "type":"map", 745 "key":{"shape":"string"}, 746 "value":{"shape":"ModelEndpointDataBlob"}, 747 "sensitive":true 748 }, 749 "ExternalModelList":{ 750 "type":"list", 751 "member":{"shape":"ExternalModel"} 752 }, 753 "ExternalModelsMaxResults":{ 754 "type":"integer", 755 "box":true, 756 "max":10, 757 "min":5 758 }, 759 "GetDetectorVersionRequest":{ 760 "type":"structure", 761 "required":[ 762 "detectorId", 763 "detectorVersionId" 764 ], 765 "members":{ 766 "detectorId":{"shape":"identifier"}, 767 "detectorVersionId":{"shape":"nonEmptyString"} 768 } 769 }, 770 "GetDetectorVersionResult":{ 771 "type":"structure", 772 "members":{ 773 "detectorId":{"shape":"identifier"}, 774 "detectorVersionId":{"shape":"nonEmptyString"}, 775 "description":{"shape":"description"}, 776 "externalModelEndpoints":{"shape":"ListOfStrings"}, 777 "modelVersions":{"shape":"ListOfModelVersions"}, 778 "rules":{"shape":"RuleList"}, 779 "status":{"shape":"DetectorVersionStatus"}, 780 "lastUpdatedTime":{"shape":"time"}, 781 "createdTime":{"shape":"time"} 782 } 783 }, 784 "GetDetectorsRequest":{ 785 "type":"structure", 786 "members":{ 787 "detectorId":{"shape":"identifier"}, 788 "nextToken":{"shape":"string"}, 789 "maxResults":{"shape":"DetectorsMaxResults"} 790 } 791 }, 792 "GetDetectorsResult":{ 793 "type":"structure", 794 "members":{ 795 "detectors":{"shape":"DetectorList"}, 796 "nextToken":{"shape":"string"} 797 } 798 }, 799 "GetExternalModelsRequest":{ 800 "type":"structure", 801 "members":{ 802 "modelEndpoint":{"shape":"string"}, 803 "nextToken":{"shape":"string"}, 804 "maxResults":{"shape":"ExternalModelsMaxResults"} 805 } 806 }, 807 "GetExternalModelsResult":{ 808 "type":"structure", 809 "members":{ 810 "externalModels":{"shape":"ExternalModelList"}, 811 "nextToken":{"shape":"string"} 812 } 813 }, 814 "GetModelVersionRequest":{ 815 "type":"structure", 816 "required":[ 817 "modelId", 818 "modelType", 819 "modelVersionNumber" 820 ], 821 "members":{ 822 "modelId":{"shape":"identifier"}, 823 "modelType":{"shape":"ModelTypeEnum"}, 824 "modelVersionNumber":{"shape":"nonEmptyString"} 825 } 826 }, 827 "GetModelVersionResult":{ 828 "type":"structure", 829 "members":{ 830 "modelId":{"shape":"identifier"}, 831 "modelType":{"shape":"ModelTypeEnum"}, 832 "modelVersionNumber":{"shape":"nonEmptyString"}, 833 "description":{"shape":"description"}, 834 "status":{"shape":"string"} 835 } 836 }, 837 "GetModelsRequest":{ 838 "type":"structure", 839 "members":{ 840 "modelType":{"shape":"ModelTypeEnum"}, 841 "modelId":{"shape":"identifier"}, 842 "nextToken":{"shape":"string"}, 843 "maxResults":{"shape":"MaxResults"} 844 } 845 }, 846 "GetModelsResult":{ 847 "type":"structure", 848 "members":{ 849 "nextToken":{"shape":"string"}, 850 "models":{"shape":"ModelList"} 851 } 852 }, 853 "GetOutcomesRequest":{ 854 "type":"structure", 855 "members":{ 856 "name":{"shape":"identifier"}, 857 "nextToken":{"shape":"string"}, 858 "maxResults":{"shape":"OutcomesMaxResults"} 859 } 860 }, 861 "GetOutcomesResult":{ 862 "type":"structure", 863 "members":{ 864 "outcomes":{"shape":"OutcomeList"}, 865 "nextToken":{"shape":"string"} 866 } 867 }, 868 "GetPredictionRequest":{ 869 "type":"structure", 870 "required":[ 871 "detectorId", 872 "eventId" 873 ], 874 "members":{ 875 "detectorId":{"shape":"string"}, 876 "detectorVersionId":{"shape":"string"}, 877 "eventId":{"shape":"string"}, 878 "eventAttributes":{"shape":"EventAttributeMap"}, 879 "externalModelEndpointDataBlobs":{"shape":"ExternalModelEndpointDataBlobMap"} 880 } 881 }, 882 "GetPredictionResult":{ 883 "type":"structure", 884 "members":{ 885 "outcomes":{"shape":"ListOfStrings"}, 886 "modelScores":{"shape":"ListOfModelScores"} 887 } 888 }, 889 "GetRulesRequest":{ 890 "type":"structure", 891 "required":["detectorId"], 892 "members":{ 893 "ruleId":{"shape":"identifier"}, 894 "detectorId":{"shape":"identifier"}, 895 "ruleVersion":{"shape":"nonEmptyString"}, 896 "nextToken":{"shape":"string"}, 897 "maxResults":{"shape":"RulesMaxResults"} 898 } 899 }, 900 "GetRulesResult":{ 901 "type":"structure", 902 "members":{ 903 "ruleDetails":{"shape":"RuleDetailList"}, 904 "nextToken":{"shape":"string"} 905 } 906 }, 907 "GetVariablesRequest":{ 908 "type":"structure", 909 "members":{ 910 "name":{"shape":"string"}, 911 "nextToken":{"shape":"string"}, 912 "maxResults":{"shape":"VariablesMaxResults"} 913 } 914 }, 915 "GetVariablesResult":{ 916 "type":"structure", 917 "members":{ 918 "variables":{"shape":"VariableList"}, 919 "nextToken":{"shape":"string"} 920 } 921 }, 922 "InternalServerException":{ 923 "type":"structure", 924 "required":["message"], 925 "members":{ 926 "message":{"shape":"string"} 927 }, 928 "exception":true, 929 "fault":true 930 }, 931 "IsOpaque":{"type":"boolean"}, 932 "JsonKeyToVariableMap":{ 933 "type":"map", 934 "key":{"shape":"string"}, 935 "value":{"shape":"string"} 936 }, 937 "LabelMapper":{ 938 "type":"map", 939 "key":{"shape":"string"}, 940 "value":{"shape":"ListOfStrings"} 941 }, 942 "LabelSchema":{ 943 "type":"structure", 944 "required":[ 945 "labelKey", 946 "labelMapper" 947 ], 948 "members":{ 949 "labelKey":{"shape":"string"}, 950 "labelMapper":{"shape":"LabelMapper"} 951 } 952 }, 953 "Language":{ 954 "type":"string", 955 "enum":["DETECTORPL"] 956 }, 957 "ListOfModelScores":{ 958 "type":"list", 959 "member":{"shape":"ModelScores"} 960 }, 961 "ListOfModelVersions":{ 962 "type":"list", 963 "member":{"shape":"ModelVersion"} 964 }, 965 "ListOfStrings":{ 966 "type":"list", 967 "member":{"shape":"string"} 968 }, 969 "MaxResults":{ 970 "type":"integer", 971 "box":true, 972 "max":10, 973 "min":1 974 }, 975 "MetricsMap":{ 976 "type":"map", 977 "key":{"shape":"string"}, 978 "value":{"shape":"string"} 979 }, 980 "Model":{ 981 "type":"structure", 982 "members":{ 983 "modelId":{"shape":"identifier"}, 984 "modelType":{"shape":"ModelTypeEnum"}, 985 "description":{"shape":"description"}, 986 "trainingDataSource":{"shape":"TrainingDataSource"}, 987 "modelVariables":{"shape":"ModelVariablesList"}, 988 "labelSchema":{"shape":"LabelSchema"}, 989 "lastUpdatedTime":{"shape":"time"}, 990 "createdTime":{"shape":"time"} 991 } 992 }, 993 "ModelEndpointDataBlob":{ 994 "type":"structure", 995 "members":{ 996 "byteBuffer":{"shape":"blob"}, 997 "contentType":{"shape":"contentType"} 998 } 999 }, 1000 "ModelEndpointStatus":{ 1001 "type":"string", 1002 "enum":[ 1003 "ASSOCIATED", 1004 "DISSOCIATED" 1005 ] 1006 }, 1007 "ModelInputConfiguration":{ 1008 "type":"structure", 1009 "required":["isOpaque"], 1010 "members":{ 1011 "format":{"shape":"ModelInputDataFormat"}, 1012 "isOpaque":{"shape":"IsOpaque"}, 1013 "jsonInputTemplate":{"shape":"string"}, 1014 "csvInputTemplate":{"shape":"string"} 1015 } 1016 }, 1017 "ModelInputDataFormat":{ 1018 "type":"string", 1019 "enum":[ 1020 "TEXT_CSV", 1021 "APPLICATION_JSON" 1022 ] 1023 }, 1024 "ModelList":{ 1025 "type":"list", 1026 "member":{"shape":"Model"} 1027 }, 1028 "ModelOutputConfiguration":{ 1029 "type":"structure", 1030 "required":["format"], 1031 "members":{ 1032 "format":{"shape":"ModelOutputDataFormat"}, 1033 "jsonKeyToVariableMap":{"shape":"JsonKeyToVariableMap"}, 1034 "csvIndexToVariableMap":{"shape":"CsvIndexToVariableMap"} 1035 } 1036 }, 1037 "ModelOutputDataFormat":{ 1038 "type":"string", 1039 "enum":[ 1040 "TEXT_CSV", 1041 "APPLICATION_JSONLINES" 1042 ] 1043 }, 1044 "ModelPredictionMap":{ 1045 "type":"map", 1046 "key":{"shape":"string"}, 1047 "value":{"shape":"float"} 1048 }, 1049 "ModelScores":{ 1050 "type":"structure", 1051 "members":{ 1052 "modelVersion":{"shape":"ModelVersion"}, 1053 "scores":{"shape":"ModelPredictionMap"} 1054 } 1055 }, 1056 "ModelSource":{ 1057 "type":"string", 1058 "enum":["SAGEMAKER"] 1059 }, 1060 "ModelTypeEnum":{ 1061 "type":"string", 1062 "enum":["ONLINE_FRAUD_INSIGHTS"] 1063 }, 1064 "ModelVariable":{ 1065 "type":"structure", 1066 "required":["name"], 1067 "members":{ 1068 "name":{"shape":"string"}, 1069 "index":{"shape":"ModelVariableIndex"} 1070 } 1071 }, 1072 "ModelVariableIndex":{"type":"integer"}, 1073 "ModelVariablesList":{ 1074 "type":"list", 1075 "member":{"shape":"ModelVariable"} 1076 }, 1077 "ModelVersion":{ 1078 "type":"structure", 1079 "required":[ 1080 "modelId", 1081 "modelType", 1082 "modelVersionNumber" 1083 ], 1084 "members":{ 1085 "modelId":{"shape":"identifier"}, 1086 "modelType":{"shape":"ModelTypeEnum"}, 1087 "modelVersionNumber":{"shape":"nonEmptyString"} 1088 } 1089 }, 1090 "ModelVersionDetail":{ 1091 "type":"structure", 1092 "members":{ 1093 "modelId":{"shape":"identifier"}, 1094 "modelType":{"shape":"ModelTypeEnum"}, 1095 "modelVersionNumber":{"shape":"nonEmptyString"}, 1096 "description":{"shape":"description"}, 1097 "status":{"shape":"string"}, 1098 "trainingDataSource":{"shape":"TrainingDataSource"}, 1099 "modelVariables":{"shape":"ModelVariablesList"}, 1100 "labelSchema":{"shape":"LabelSchema"}, 1101 "validationMetrics":{"shape":"MetricsMap"}, 1102 "trainingMetrics":{"shape":"MetricsMap"}, 1103 "lastUpdatedTime":{"shape":"time"}, 1104 "createdTime":{"shape":"time"} 1105 } 1106 }, 1107 "ModelVersionDetailList":{ 1108 "type":"list", 1109 "member":{"shape":"ModelVersionDetail"} 1110 }, 1111 "ModelVersionStatus":{ 1112 "type":"string", 1113 "enum":[ 1114 "TRAINING_IN_PROGRESS", 1115 "TRAINING_COMPLETE", 1116 "ACTIVATE_REQUESTED", 1117 "ACTIVATE_IN_PROGRESS", 1118 "ACTIVE", 1119 "INACTIVATE_IN_PROGRESS", 1120 "INACTIVE", 1121 "ERROR" 1122 ] 1123 }, 1124 "NameList":{ 1125 "type":"list", 1126 "member":{"shape":"string"}, 1127 "max":100, 1128 "min":1 1129 }, 1130 "NonEmptyListOfStrings":{ 1131 "type":"list", 1132 "member":{"shape":"string"}, 1133 "min":1 1134 }, 1135 "Outcome":{ 1136 "type":"structure", 1137 "members":{ 1138 "name":{"shape":"identifier"}, 1139 "description":{"shape":"description"}, 1140 "lastUpdatedTime":{"shape":"time"}, 1141 "createdTime":{"shape":"time"} 1142 } 1143 }, 1144 "OutcomeList":{ 1145 "type":"list", 1146 "member":{"shape":"Outcome"} 1147 }, 1148 "OutcomesMaxResults":{ 1149 "type":"integer", 1150 "box":true, 1151 "max":100, 1152 "min":50 1153 }, 1154 "PutDetectorRequest":{ 1155 "type":"structure", 1156 "required":["detectorId"], 1157 "members":{ 1158 "detectorId":{"shape":"identifier"}, 1159 "description":{"shape":"description"} 1160 } 1161 }, 1162 "PutDetectorResult":{ 1163 "type":"structure", 1164 "members":{ 1165 } 1166 }, 1167 "PutExternalModelRequest":{ 1168 "type":"structure", 1169 "required":[ 1170 "modelEndpoint", 1171 "modelSource", 1172 "role", 1173 "inputConfiguration", 1174 "outputConfiguration", 1175 "modelEndpointStatus" 1176 ], 1177 "members":{ 1178 "modelEndpoint":{"shape":"string"}, 1179 "modelSource":{"shape":"ModelSource"}, 1180 "role":{"shape":"Role"}, 1181 "inputConfiguration":{"shape":"ModelInputConfiguration"}, 1182 "outputConfiguration":{"shape":"ModelOutputConfiguration"}, 1183 "modelEndpointStatus":{"shape":"ModelEndpointStatus"} 1184 } 1185 }, 1186 "PutExternalModelResult":{ 1187 "type":"structure", 1188 "members":{ 1189 } 1190 }, 1191 "PutModelRequest":{ 1192 "type":"structure", 1193 "required":[ 1194 "modelId", 1195 "modelType", 1196 "trainingDataSource", 1197 "modelVariables", 1198 "labelSchema" 1199 ], 1200 "members":{ 1201 "modelId":{"shape":"identifier"}, 1202 "modelType":{"shape":"ModelTypeEnum"}, 1203 "description":{"shape":"description"}, 1204 "trainingDataSource":{"shape":"TrainingDataSource"}, 1205 "modelVariables":{"shape":"ModelVariablesList"}, 1206 "labelSchema":{"shape":"LabelSchema"} 1207 } 1208 }, 1209 "PutModelResult":{ 1210 "type":"structure", 1211 "members":{ 1212 } 1213 }, 1214 "PutOutcomeRequest":{ 1215 "type":"structure", 1216 "required":["name"], 1217 "members":{ 1218 "name":{"shape":"identifier"}, 1219 "description":{"shape":"description"} 1220 } 1221 }, 1222 "PutOutcomeResult":{ 1223 "type":"structure", 1224 "members":{ 1225 } 1226 }, 1227 "ResourceNotFoundException":{ 1228 "type":"structure", 1229 "required":["message"], 1230 "members":{ 1231 "message":{"shape":"string"} 1232 }, 1233 "exception":true 1234 }, 1235 "Role":{ 1236 "type":"structure", 1237 "required":[ 1238 "arn", 1239 "name" 1240 ], 1241 "members":{ 1242 "arn":{"shape":"string"}, 1243 "name":{"shape":"string"} 1244 } 1245 }, 1246 "Rule":{ 1247 "type":"structure", 1248 "required":[ 1249 "detectorId", 1250 "ruleId", 1251 "ruleVersion" 1252 ], 1253 "members":{ 1254 "detectorId":{"shape":"identifier"}, 1255 "ruleId":{"shape":"identifier"}, 1256 "ruleVersion":{"shape":"nonEmptyString"} 1257 } 1258 }, 1259 "RuleDetail":{ 1260 "type":"structure", 1261 "members":{ 1262 "ruleId":{"shape":"identifier"}, 1263 "description":{"shape":"description"}, 1264 "detectorId":{"shape":"identifier"}, 1265 "ruleVersion":{"shape":"nonEmptyString"}, 1266 "expression":{"shape":"ruleExpression"}, 1267 "language":{"shape":"Language"}, 1268 "outcomes":{"shape":"NonEmptyListOfStrings"}, 1269 "lastUpdatedTime":{"shape":"time"}, 1270 "createdTime":{"shape":"time"} 1271 } 1272 }, 1273 "RuleDetailList":{ 1274 "type":"list", 1275 "member":{"shape":"RuleDetail"} 1276 }, 1277 "RuleList":{ 1278 "type":"list", 1279 "member":{"shape":"Rule"} 1280 }, 1281 "RulesMaxResults":{ 1282 "type":"integer", 1283 "box":true, 1284 "max":100, 1285 "min":50 1286 }, 1287 "ThrottlingException":{ 1288 "type":"structure", 1289 "required":["message"], 1290 "members":{ 1291 "message":{"shape":"string"} 1292 }, 1293 "exception":true 1294 }, 1295 "TrainingDataSource":{ 1296 "type":"structure", 1297 "required":[ 1298 "dataLocation", 1299 "dataAccessRoleArn" 1300 ], 1301 "members":{ 1302 "dataLocation":{"shape":"s3BucketLocation"}, 1303 "dataAccessRoleArn":{"shape":"iamRoleArn"} 1304 } 1305 }, 1306 "UpdateDetectorVersionMetadataRequest":{ 1307 "type":"structure", 1308 "required":[ 1309 "detectorId", 1310 "detectorVersionId", 1311 "description" 1312 ], 1313 "members":{ 1314 "detectorId":{"shape":"identifier"}, 1315 "detectorVersionId":{"shape":"nonEmptyString"}, 1316 "description":{"shape":"description"} 1317 } 1318 }, 1319 "UpdateDetectorVersionMetadataResult":{ 1320 "type":"structure", 1321 "members":{ 1322 } 1323 }, 1324 "UpdateDetectorVersionRequest":{ 1325 "type":"structure", 1326 "required":[ 1327 "detectorId", 1328 "detectorVersionId", 1329 "externalModelEndpoints", 1330 "rules" 1331 ], 1332 "members":{ 1333 "detectorId":{"shape":"identifier"}, 1334 "detectorVersionId":{"shape":"nonEmptyString"}, 1335 "externalModelEndpoints":{"shape":"ListOfStrings"}, 1336 "rules":{"shape":"RuleList"}, 1337 "description":{"shape":"description"}, 1338 "modelVersions":{"shape":"ListOfModelVersions"} 1339 } 1340 }, 1341 "UpdateDetectorVersionResult":{ 1342 "type":"structure", 1343 "members":{ 1344 } 1345 }, 1346 "UpdateDetectorVersionStatusRequest":{ 1347 "type":"structure", 1348 "required":[ 1349 "detectorId", 1350 "detectorVersionId", 1351 "status" 1352 ], 1353 "members":{ 1354 "detectorId":{"shape":"identifier"}, 1355 "detectorVersionId":{"shape":"nonEmptyString"}, 1356 "status":{"shape":"DetectorVersionStatus"} 1357 } 1358 }, 1359 "UpdateDetectorVersionStatusResult":{ 1360 "type":"structure", 1361 "members":{ 1362 } 1363 }, 1364 "UpdateModelVersionRequest":{ 1365 "type":"structure", 1366 "required":[ 1367 "modelId", 1368 "modelType", 1369 "modelVersionNumber", 1370 "description", 1371 "status" 1372 ], 1373 "members":{ 1374 "modelId":{"shape":"identifier"}, 1375 "modelType":{"shape":"ModelTypeEnum"}, 1376 "modelVersionNumber":{"shape":"nonEmptyString"}, 1377 "description":{"shape":"description"}, 1378 "status":{"shape":"ModelVersionStatus"} 1379 } 1380 }, 1381 "UpdateModelVersionResult":{ 1382 "type":"structure", 1383 "members":{ 1384 } 1385 }, 1386 "UpdateRuleMetadataRequest":{ 1387 "type":"structure", 1388 "required":[ 1389 "rule", 1390 "description" 1391 ], 1392 "members":{ 1393 "rule":{"shape":"Rule"}, 1394 "description":{"shape":"description"} 1395 } 1396 }, 1397 "UpdateRuleMetadataResult":{ 1398 "type":"structure", 1399 "members":{ 1400 } 1401 }, 1402 "UpdateRuleVersionRequest":{ 1403 "type":"structure", 1404 "required":[ 1405 "rule", 1406 "expression", 1407 "language", 1408 "outcomes" 1409 ], 1410 "members":{ 1411 "rule":{"shape":"Rule"}, 1412 "description":{"shape":"description"}, 1413 "expression":{"shape":"ruleExpression"}, 1414 "language":{"shape":"Language"}, 1415 "outcomes":{"shape":"NonEmptyListOfStrings"} 1416 } 1417 }, 1418 "UpdateRuleVersionResult":{ 1419 "type":"structure", 1420 "members":{ 1421 "rule":{"shape":"Rule"} 1422 } 1423 }, 1424 "UpdateVariableRequest":{ 1425 "type":"structure", 1426 "required":["name"], 1427 "members":{ 1428 "name":{"shape":"string"}, 1429 "defaultValue":{"shape":"string"}, 1430 "description":{"shape":"string"}, 1431 "variableType":{"shape":"string"} 1432 } 1433 }, 1434 "UpdateVariableResult":{ 1435 "type":"structure", 1436 "members":{ 1437 } 1438 }, 1439 "ValidationException":{ 1440 "type":"structure", 1441 "required":["message"], 1442 "members":{ 1443 "message":{"shape":"string"} 1444 }, 1445 "exception":true 1446 }, 1447 "Variable":{ 1448 "type":"structure", 1449 "members":{ 1450 "name":{"shape":"string"}, 1451 "dataType":{"shape":"DataType"}, 1452 "dataSource":{"shape":"DataSource"}, 1453 "defaultValue":{"shape":"string"}, 1454 "description":{"shape":"string"}, 1455 "variableType":{"shape":"string"}, 1456 "lastUpdatedTime":{"shape":"time"}, 1457 "createdTime":{"shape":"time"} 1458 } 1459 }, 1460 "VariableEntry":{ 1461 "type":"structure", 1462 "members":{ 1463 "name":{"shape":"string"}, 1464 "dataType":{"shape":"string"}, 1465 "dataSource":{"shape":"string"}, 1466 "defaultValue":{"shape":"string"}, 1467 "description":{"shape":"string"}, 1468 "variableType":{"shape":"string"} 1469 } 1470 }, 1471 "VariableEntryList":{ 1472 "type":"list", 1473 "member":{"shape":"VariableEntry"}, 1474 "max":25, 1475 "min":1 1476 }, 1477 "VariableList":{ 1478 "type":"list", 1479 "member":{"shape":"Variable"} 1480 }, 1481 "VariablesMaxResults":{ 1482 "type":"integer", 1483 "box":true, 1484 "max":100, 1485 "min":50 1486 }, 1487 "attributeKey":{ 1488 "type":"string", 1489 "max":64, 1490 "min":1 1491 }, 1492 "attributeValue":{ 1493 "type":"string", 1494 "max":256, 1495 "min":1, 1496 "sensitive":true 1497 }, 1498 "blob":{"type":"blob"}, 1499 "contentType":{ 1500 "type":"string", 1501 "max":1024, 1502 "min":1 1503 }, 1504 "description":{ 1505 "type":"string", 1506 "max":128, 1507 "min":1 1508 }, 1509 "float":{"type":"float"}, 1510 "iamRoleArn":{ 1511 "type":"string", 1512 "max":256, 1513 "min":1, 1514 "pattern":"^arn\\:aws\\:iam\\:\\:[0-9]{12}\\:role\\/[^\\s]{2,64}$" 1515 }, 1516 "identifier":{ 1517 "type":"string", 1518 "max":64, 1519 "min":1, 1520 "pattern":"^[0-9a-z_-]+$" 1521 }, 1522 "integer":{"type":"integer"}, 1523 "nonEmptyString":{ 1524 "type":"string", 1525 "min":1 1526 }, 1527 "ruleExpression":{ 1528 "type":"string", 1529 "max":4096, 1530 "min":1 1531 }, 1532 "s3BucketLocation":{ 1533 "type":"string", 1534 "max":512, 1535 "min":1, 1536 "pattern":"^s3:\\/\\/[^\\s]+$" 1537 }, 1538 "string":{"type":"string"}, 1539 "time":{"type":"string"} 1540 } 1541} 1542