IAM policy elements: Condition
The
Condition
element (orCondition
block) lets you specify conditions for when a policy is in effect.The
Condition
element is optional.In the
Condition
element, you build expressions in which you use condition operators (equal, less than, etc.) to match the condition keys and values in the policy against keys and values in the request context.
The request context can return the following values:
True - If the requester signed in using MFA in the last one hour or less, then the condition returns true.
False - If the requester signed in using MFA more than one hour ago, then the condition returns false.
Not present - If the requester made a request using their IAM user access keys in the AWS CLI or AWS API, the key is not present.
Last updated
Was this helpful?