mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Bedrock leaves ResourceArnBuilder's own branch and the registry's three resource-policy rules: its requests are matched on their botocore routes and checked on the resources the request-resources table reads. regen_rest_routes.py vendors the bedrock, bedrock-agent and bedrock-runtime models, all signed for the bedrock scope; bedrock-agent's are needed because its PutResourcePolicy carries resourceArn in its path where bedrock's carries it in its body, a member the two clients locate apart. regen_iam_request_resources.py reads bedrock instead of leaving it to the builder, so a guardrail request is checked on the guardrail its path names and a resource-policy request on the ARN it carries. The generator's reader of an ARN pattern's type words also reads one whose account is optional, so the tag actions are checked on the guardrail or application inference profile ARN they carry, and regen_iam_tag_on_create.py reads bedrock, so a create carrying tags also needs bedrock:TagResource. BedrockStoredResourceArns gives IAM the tags Bedrock holds on a guardrail or an application inference profile, for aws:ResourceTag, read in place and matched on the whole ARN; a guardrail's untag now replaces its tag map rather than editing it, so a reader never sees half of one, and both models keep their tags volatile.