The CloudFormation Provider Development Toolkit allows you to author your own resource providers that can be used by CloudFormation.