Enabling versioning on buckets - Amazon Simple Storage Service
Examples for how to use the console, AWS CLI, and AWS SDKs to manage versioning for Amazon S3.