Access control policies are a type of security measures provided by APIG. You can use them to allow or deny API access from specific IP addresses or accounts.
Access control policies take effect for an API only if they have been bound to the API.
Each API can be bound with only one access control policy for a given environment, but each access control policy can be bound to multiple APIs.
Parameter |
Description |
---|---|
Name |
Access control policy name. |
Restriction Type |
Type of the source from which API calls are to be controlled.
|
Effect |
Options: Allow and Deny. Use this parameter along with Restriction Type to control the access of certain IP addresses or accounts to an API. |
IP Address |
IP addresses and IP address ranges that are allowed or not allowed to access an API You need to set this parameter only if you have set Restriction Type to IP address. NOTE:
You can set a maximum of 100 IP addresses respectively to allow or deny access. |
Account Names |
Names of the accounts that are allowed or not allowed to access an API. This parameter only applies to APIs that are accessed through IAM authentication. You need to set this parameter only if you have set Restriction Type to Account name. You can enter multiple account names and separate them with commas, for example, aaa,bbb. NOTE:
APIG performs access control on accounts, not IAM users created using accounts. |
If an access control policy is no longer needed for an API, you can unbind it from that API. To unbind an access control policy from multiple APIs, select the APIs, and click Unbind. You can unbind a request throttling policy from a maximum of 1000 APIs at a time.