This example shows how to verify rules when simulating a proposed policy.
About this task
In this example, the "xmen photo files" policy is being simulated against the ingested objects in a bucket called "photos." The policy includes three rules, as follows:
- The first rule, X-men, applies only to objects in a specific tenant account and filters for series=x-men user metadata. This rule is also marked as the default rule for the policy.
- The second rule, PNGs, filters for keys ending with .png.
- The last rule, JPGs, filters for keys ending with .jpg.
