aws retry predicate method