Managed policies can only be attached to IAM users, groups, or roles. You cannot use them as resource-based policies.