def from_dict(cls, obj: dict) -> DatasourceConfigS3:
        """Create an instance of DatasourceConfigS3 from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return DatasourceConfigS3.parse_obj(obj)

        # raise errors for additional fields in the input
        for _key in obj.keys():
            if _key not in cls.__properties:
                raise ValueError("Error due to additional fields (not defined in DatasourceConfigS3) in the input: " + str(obj))

        _obj = DatasourceConfigS3.parse_obj({
            "id": obj.get("id"),
            "purpose": obj.get("purpose"),
            "type": obj.get("type"),
            "thumb_suffix": obj.get("thumbSuffix"),
            "full_path": obj.get("fullPath"),
            "s3_region": obj.get("s3Region"),
            "s3_access_key_id": obj.get("s3AccessKeyId"),
            "s3_secret_access_key": obj.get("s3SecretAccessKey"),
            "s3_server_side_encryption_kms_key": obj.get("s3ServerSideEncryptionKMSKey")
        })
        return _obj
Create an instance of DatasourceConfigS3 from a dict
lightly/openapi_generated/swagger_client/models/datasource_config_s3.py