def __init__()

in frauddetector/frauddetector.py [0:0]


    def __init__(self, entity_type, event_type, model_name, model_version, model_type,
                 detector_name, detector_version="1"):
        """Build, train and deploy Amazon Fraud Detector models.

        Technical documentation on how Amazon Fraud Detector works can be
        found at: https://docs.aws.amazon.com/frauddetector/


        Args:
            :entity_type:          represents who is performing the event
            :event_type:           defines the structure for an individual event
            :model_name:           name of model to be created or used
            :model_version:        model version
            :model_type:           ONLINE_FRAUD_INSIGHTS / TRANSACTION_FRAUD_INSIGHTS
            :detector_name:        name for the fraud detection project
            :detector_version:     versioning for fraud detection
            :variables:            AWS Fraud Detector list of JSON variable defs
            :labels:               AWS Fraud Detector list of JSON label defs

        """
        # super(FraudDetector, self).__init__()
        self.fd = boto3.client("frauddetector")
        self.s3 = boto3.client("s3")
        self.iam = boto3.client('iam')
        self.entity_type = entity_type
        self.event_type = event_type
        self.detector_name = detector_name
        self.detector_version = detector_version
        self.model_name = model_name
        if "." not in str(model_version):  # check if missing decimal point - if so append ".00"
            self.model_version = model_version + ".00"
        else:
            self.model_version = model_version
        self.model_type = model_type
        #Initialize empty variables
        self.project_variables = None
        self.project_labels = None
        self.variables = None
        self.labels = None
        self.events = None
        self.entities = None
        self.models = None