This topic describes all policies supported by AI Gateway and their corresponding descriptions for your reference when authorizing RAM identities.
What is a policy
A policy defines a set of permissions that are described based on the policy structure and syntax. You can use policies to describe the authorized resource sets, authorized operation sets, and authorization conditions. Alibaba Cloud Resource Access Management (RAM) provides system policies and custom policies. All system policies are created and updated by Alibaba Cloud. You can use system policies but cannot modify them. Custom policies are managed by you. You can create, update, and delete custom policies based on your business requirements. During service iteration, Cloud-native API Gateway adds new permissions to system policies to support new features and capabilities. The update of a system policy affects all RAM identities to which the policy is attached, including RAM users, RAM user groups, and RAM roles. For more information about RAM policies, see Policy overview.
System policies are designed for new users to quickly get started with Alibaba Cloud services in the Alibaba Cloud Management Console. System policies also enable the use of more advanced methods such as API operations and CLI commands. If you are familiar with the advanced methods, we recommend that you use custom policies to implement finer-grained control on who is permitted to call what API operations, thereby improving security.
System policies can be classified into service system policies, service role policies, and service-linked role policies. Some cloud services provide only one or two of the three types of policies. For more information about the policy types supported by AI Gateway, see the following section.
Service-linked role policy
AliyunServiceRolePolicyForNativeApiGw
Cloud-native API Gateway uses the service-linked role AliyunServiceRoleForNativeApiGw to access your resources in other cloud services. AliyunServiceRolePolicyForNativeApiGw is used solely for AliyunServiceRoleForNativeApiGw. This policy is defined and used by Cloud-native API Gateway. You cannot modify, delete, or attach AliyunServiceRolePolicyForNativeApiGw to any other RAM identity.
RAM identity authorization
By default, RAM identities do not have any permissions. RAM identities can access cloud resources within an Alibaba Cloud account only after an account administrator grants the required permissions to the RAM identities. To ensure resource security, we recommend that you grant only the required permissions to RAM identities based on the principle of least privilege. For more information about how to grant the required permissions, see the following topics: