Update AWS SDK implementation

The newer AWS SDK changes the syntax slightly. This updates our
implementation so it doesn't break.