You can now use AWS CloudFormation templates to build WebSocket APIs in Amazon API Gateway. AWS CloudFormation provides a common language for you to describe and provision all the infrastructure resources in your cloud environment across all regions and accounts, simplifying how you build applications in the cloud.
Source:: Amazon AWS