create_list
async
¶
create_list(
name: noDashIdentifier,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
elements: Optional[ElementsList] = None,
variable_type: Optional[variableType] = None,
description: Optional[description] = None,
tags: Optional[tagList] = None,
) -> CreateListResult
Creates a list.
List is a set of input data for a variable in your event dataset. You use the input data in a rule that's associated with your detector. For more information, see Lists.
Parameters:
-
name(noDashIdentifier) –The name of the list.
-
elements(Optional[ElementsList], default:None) –The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
-
variable_type(Optional[variableType], default:None) –The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.
-
description(Optional[description], default:None) –The description of the list.
-
tags(Optional[tagList], default:None) –A collection of the key and value pairs.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
InternalServerException–An exception indicating an internal server error.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_frauddetector/_services/async_fraud_detector.py
781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 | |