The security principle that requires a custom IAM policy to allow only the actions, resources, and conditions necessary…