aws/aws-sdk-ruby — pull request #108 by xli (2012-12-19 01:50:03+00:00)
Title: fix expired_credentials? expired token error code name for SQS

SQS service responses different error code (ExpiredToken) for iam role profile based temp credentials token expires error.
But the core/client only checks error code 'ExpiredTokenException' for auto refreshing credentials.

The change adds a new error code check for recognizing expired credentials response. Tested on my aws environment.