mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
AWS lets an Advanced-tier parameter carry one resource-based policy, used to share it with other accounts. PutResourcePolicy returns a PolicyId and a PolicyHash, and updating or deleting the policy takes both: a hash that is no longer current is ResourcePolicyConflictException, an unknown id is ResourcePolicyNotFoundException, and an unknown parameter is ResourceNotFoundException. Floci answered all three actions with UnsupportedOperation. The parameter now stores its policy with an id and a hash of the document. PutResourcePolicy rejects a Standard-tier parameter, a policy over 1024 bytes and a document that is not a JSON object with the documented errors. GetResourcePolicies pages with MaxResults (1 to 50) and NextToken. An overwriting PutParameter keeps the policy and deleting the parameter removes it. The policy is not evaluated against callers, and no AWS RAM resource share is created.