Based on the comments.
Two conditions in a single IAM policy statement are evaluated using
If your policy has multiple condition operators or multiple keys attached to a single condition operator, the conditions are evaluated using a logical AND.
Therefore, you could create two separate IAM statements. One for the first conditions, and the second one for the second condition.
CLICK HERE to find out more related problems solutions.