Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

docs(iam): describe the list-violation value omission as a choice (#4626)

Priamo Germosenaeb304d7b474
diff --git a/src/main/java/io/github/hectorvent/floci/services/iam/IamQueryHandler.java b/src/main/java/io/github/hectorvent/floci/services/iam/IamQueryHandler.java
index 21c525394d..fcdd4e6d55 100644
--- a/src/main/java/io/github/hectorvent/floci/services/iam/IamQueryHandler.java
+++ b/src/main/java/io/github/hectorvent/floci/services/iam/IamQueryHandler.java
@@ -2227,8 +2227,11 @@ public class IamQueryHandler {
}
/**
- * IAM's constraint-violation shape for a list member. Unlike the scalar form it does not quote
- * the value, matching how AWS reports an over-long list rather than echoing every member back.
+ * The constraint-violation shape used for a list member. Unlike the scalar form it leaves the
+ * value out, which is Floci's choice rather than a rule AWS follows: captured violations
+ * elsewhere in AWS do quote the list, such as Lambda's {@code Value '[x86_64, arm64]' at
+ * 'architectures'}, while IAM's own are inconsistent about it. Omitting it keeps a request that
+ * breaks the limit from echoing every member back in the error message.
*/
private static void checkListLength(int members, String param, int limit) {
if (members > limit) {