fix ruby sample code to work with latest aws-sdk