APi gateway resource policy do not appear in cloudformation

I want specify on my api gateway created by serverless resource policy (to restrict access to api gateway by ip). But when i copy it just from example:

In block section “provider” this resource policy do not appear in api gateway in aws, after “serverless deploy” nor in .serverless/cloudformation-template-update-stack.json file.
Sure i tried before and not with example from documentation, in also serverless seems just ignore “resourcePolicy” section.

Version of serverless is 1.24.1. Why it can be so? Thank you.

1 Like

I have same problem, in July 2020. I see things doesn’t change here. If it’s not supported then why write it in documentation? Is this “documentation first” project?