Generate valid condition logical id from the given API logical id and swagger resource path.

def _path_condition_name(self, api_id, path):
        """
        Generate valid condition logical id from the given API logical id and swagger resource path.
        """
        # only valid characters for CloudFormation logical id are [A-Za-z0-9], but swagger paths can contain
        # slashes and curly braces for templated params, e.g., /foo/{customerId}. So we'll replace
        # non-alphanumeric characters.
        path_logical_id = path.replace('/', 'SLASH').replace('{', 'OB').replace('}', 'CB')
        return '{}{}PathCondition'.format(api_id, path_logical_id)