fnmatch
A Python module that tests whether a string matches a shell-style wildcard pattern, such as s3:Get* matching s3:GetObject.
In more detail
fnmatch follows the operating system's case rules, while fnmatchcase always compares case-sensitively. The patterns are simpler than regular expressions: an asterisk, a question mark and bracketed character sets.
Example
Policy evaluators can use fnmatchcase to imitate how IAM matches actions and resources with wildcardsRelated terms
- wildcard — A special character, such as *, that stands for any value or any run of characters when matching names or patterns.
- Python — A popular general-purpose programming language known for readable code and a large standard library.
Taught in
- Service Control Policies & Guardrail Architecture — Cloud Security & DevSecOps Engineering