IAMFAQHow to solve the error when prompting a new custom policy
Copy page
Download PDF
FAQ
How to solve the error when prompting a new custom policy
Copy page
Download PDF
How to solve the error when prompting a new custom policy
When customizing a policy, if you receive a syntax error prompt, it is usually an error in the syntax structure of the policy or the input Cloud as a Service does not support certain policy expressions. You can refer to the following solutions:
Check that the grammatical structure of the policy is correct. Refer to the policy syntax description to understand the overall structure of the policy and the use of each element. If the Cloud as a Service supports the Visual Policy Editor, we recommend that you switch directly to the Visual Policy Editor for editing. If the relevant Cloud as a Service does not support a visual policy editor, you can also refer to the custom policy example to write the policy syntax.
Learn if the relevant Cloud as a Service supports the relevant policy features. For example, for the policy Condition key, there are differences in the support of different Cloud as a Service. For details, please refer to the Condition key supported by Cloud as a Service . If you encounter that Cloud as a Service does not support certain conditional keys, you need to avoid defining conditional key policies for relevant services in the policy content. At the same time, you can give us feedback on which Cloud as a Service you expect to add conditional keys through the worksheet, and we will promote service upgrade support as soon as possible. Note: The Condition key is case-sensitive, you need to ensure that it is written correctly, otherwise you will also get an error message that Cloud as a Service does not support Condition keys.