Files
floci/docs/services
Priamo Germosen b035e1d37b fix(iam): hold an account property value to what its key publishes (#9330)
PutAccountProperties stored any value the declared length admitted, so role
manager's switch took one nothing can read as a flag. The operation's own
Properties member says "the service validates each value based on the property
key's expected type. For example, boolean properties expect true or false", and
one property has its type published: role manager is "controlled by the
account-level property RoleManager/Enabled", where "a value of true enables role
manager; false disables it". Both spellings are lowercase on every page that
writes them, the guide's CLI examples, the API Reference's instruction to set
the property "to true or false", and the response in its own example.

That property now takes those two values and nothing else, answering
InvalidInput 400 with "Property <key> expects true or false: <value>", the value
as the request sent it. The sentence is this package's own, AWS publishing that
a value is validated against its key's type and nothing of what it answers when
one is not. The request is refused whole, so an entry beside the bad one is not
stored either, which is how a request refused for its keys already behaves.

What is held is the pair of values rather than a type, since a type is what this
would be inventing: the pair is what AWS publishes for the property. Every other
property keeps taking any value of the declared length, no page saying what any
of them is for, which is the looser answer and the direction to be wrong in. The
key is read before the value, a value's type being the key's to say, so a
request naming an unrecognised namespace is still answered for the namespace.
2026-11-24 00:27:07 -04:00
..