No write read the values a statement's action elements name, so a document
naming a bare verb was stored and only told apart later, by whatever tried to
decide with it. AWS refuses that document before it stores anything, with
MalformedPolicyDocument at 400 and the clause's own sentence,
"Actions/Conditions must be prefaced by a vendor, e.g., iam, sdb, ec2, etc.",
fixed text with no request value in it. The resource elements beside them have
been read value by value for a while, so this is the action half of the same
clause check.
The policy grammar writes an action as a service namespace, a colon and the
name of an action, and an action element may name the bare wildcard instead,
which stands for every action there is. So a value passes when it is "*" or
carries a namespace before a colon, whatever the name after it spells: "s3:*"
and "iam:*AccessKey*" are the reference's own examples of a wildcard inside the
name. A value that is no string is held to the text it spells, as the Version,
the Effect and the resource values already are, so "Action": 123 is refused
where "Action": "123" was; an element carrying null still names nothing, which
is the element's own sentence rather than a value to read.
The namespace is asked for rather than looked up. No sentence anywhere says AWS
refuses an action whose vendor it does not publish, so reading these values
against a catalog of services would refuse documents AWS stores and would make
an action of a service this emulator has yet to model impossible to write. What
is read is the shape the grammar gives, nothing more.
Both identity validators word this clause alike, the effect being the one clause
of an identity document whose sentence follows the validator that read it. The
actions are read before the resources, which is the order the elements a
statement must carry are already read in, so a document missing both answers the
action sentence first. No code and no status moves: the refusal is
MalformedPolicyDocument at 400, as every other sentence of this reader is. AWS
words the clause for actions and condition keys together and only the actions
are read here, a condition key being a value neither validator reads yet.