mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
TagResource, UntagResource and ListTagsForResource answered TargetNotFoundException for the organization's resource policy, because resolveTagOwner matched account, root, OU and policy IDs only. The model's TaggableResourceId pattern accepts rp- IDs, and AWS's own CloudFormation handler for AWS::Organizations::ResourcePolicy tags the policy and lists its tags through that ID. resolveTagOwner now matches the organization's resource policy ID and saves the organization, as the root branch does. Any other rp- ID still answers TargetNotFoundException. The code comments that said a resource policy is not a TagResource target are corrected, and the docs table lists the resource policy among the tag targets.