def is_custom_resource(resource_type):
    """ Return True if resource_type is a custom resource """
    return resource_type and (resource_type ==
        'AWS::CloudFormation::CustomResource' or resource_type.startswith(
        'Custom::'))
