Articles → AWS → Resource Policy In The AWS API GatewayResource Policy In The AWS API GatewayThis article explains the resource policy in the AWS API Gateway.Purpose The purpose of a resource policy in AWS API Gateway is to control access to API resources by defining permissions based on identity and conditions. How To Set The Resource Policy? To begin with, create an AWS API Gateway service. On the API Gateway menu, click on the Resource policy.A screen appears on the right-hand side. Click on the Create policy button. The following screen will appear.Enter the policy JSON and click the Save changes button.Predefined Template The resource policy also provides predefined templates.When you select a template, the JSON is populated.Setting The Authorization At IAM Level To set the authorization at the IAM level, click on the method and go to the Method request.In the Method request settings section, click the Edit button.In the edit screen, set the Authorization method as AWS IAM. Posted By - Karan Gupta Posted On - Wednesday, November 6, 2024 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
Query/Feedback