code: func IsAWSErrorCodeEqual(err error, code string) bool {
  	awsErr, ok := err.(awserr.Error)
  	return ok && awsErr.Code() == code
  }
docs: // IsAWSErrorCodeEqual returns true if the err implements Error
  // interface of awserr and it has the same error code as
  // the passed in error code.