def get_defender_indicator_type(self, indicator):
        """To convert sentinel indicator type to defender accepted indicator type."""
        # getting indicator type.
        __method_name = inspect.currentframe().f_code.co_name
        try:
            sentinel_indicator_pattern_type = indicator.get("properties", {}).get(
                "patternType", None
            )
            defender_indicator_pattern_type = None
            # if indicator type is url in sentinel then Url in defender.
            if sentinel_indicator_pattern_type == "URL":
                defender_indicator_pattern_type = "Url"

            # if indicator type is domain-name in sentinel then DomainName in defender.
            elif sentinel_indicator_pattern_type == "Domain Name":
                defender_indicator_pattern_type = "DomainName"

            # if indicator type is file in sentinel then FileMD5 in defender.
            elif sentinel_indicator_pattern_type.lower() == "file":
                defender_indicator_pattern_type = "FileMd5"

            else:
                raise CofenseIntelligenceException()
            return defender_indicator_pattern_type
        except CofenseIntelligenceException as error:
            applogger.error(
                "{}(method={}) : {} : Unknown indicator type from sentinel. "
                "Sentinel Indicator name : {}. Error : {}".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.SENTINEL_TO_DEFENDER,
                    indicator.get("properties", {}).get("displayName", None),
                    error,
                )
            )
            raise CofenseIntelligenceException()
To convert sentinel indicator type to defender accepted indicator type.
Solutions/CofenseIntelligence/Data Connectors/CofenseIntelligenceDataConnector/SentinelToDefender/sentinel_to_defender_mapping.py