mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
The request-resources generator carried 106 CORRECTIONS over 22 namespaces, each a hand-written entry for one operation. They are gone, and no Floci service states what an operation acts on either: a service only looks up what it holds where an entry asks it to. Every operation the corrections covered is now read from botocore's shapes and documentation and the Service Reference, or, in two places, from a fix to the handler whose behavior the correction worked around. One table stays stated by hand, MEASURED, for what AWS was measured to check where neither botocore nor the Service Reference says it. The generator admits an entry only when it links to its measurement, names types the reference does not list for the action, and gives what the rules do not; review admits only real AWS evidence. It holds DynamoDB ListTables, on table/* (#7336's probes and AWS's recorded denial), and Step Functions SendTaskSuccess, SendTaskFailure and SendTaskHeartbeat, on the token's activity or state machine (#7277's probes and AWS's recorded denial). The generator's older hand tables (FOUND_BY, THROUGH, MINTED_IDS, UNQUALIFIED, QUALIFIED_MEMBERS, ID_TARGETS, CLIENTS_NOT_READ, READ_IN_HAND_BUILT) are unchanged. Generator rules: documentation naming the type fills it when it says the member is a name or an id as the variable is; an ARN head noun, or a name ending in ArnList, makes an ARN member; fields of a top-level structure and of the structures in a map are members; the id a create answers beside another type's ARN is that type's (RunJobFlow's JobFlowId and ClusterArn); an account-id member fills AccountId; a qualified member fills first, and a ResourceId variable is the type's own id, filled by a member named ResourceId before one named after the type. An ARN member whose pattern names another service, or which its documentation gives as the ARN of another type of the service, is not read unless named after a type the action acts on. Each SDK client's model is read apart, resources the clients disagree on carry their endpoint, and a v2 load balancer's type is picked by its Type enum and documented default. A variable no member fills is fixed to the one value of an enum named after it that the operation's name gives (CodePipeline's Custom action type owner), and a type named only by an optional member documented as holding what the operation is about is reached through that thing when the member is left out (EMR's ModifyInstanceGroups, through its instance groups). Reader and service changes: a member left out, or a JSON null, names the service's default where it has one (Athena's primary workgroup and AwsDataCatalog, EventBridge's default bus, per PutEvents entry); two types whose formats differ by one variable are told apart by whether the member names that default (EventBridge rules); a name for an id variable is found by the service (Rekognition stream processors, Logs deliveries); a bare id of the type an operation is about reaches the acted-on type through its service (the project CodeBuild holds a build under, the delivery destinations of the source a Logs DeleteDeliverySource deletes). A member given a JSON null names nothing, as the handlers read it, wherever the reader fills a variable from it, so an EMR ClusterId or an IAM Identity Center TargetId of null no longer names cluster/null or account/null. The table no longer has absent or before, and the reader refuses a resource key it does not know. Checks that change where the old correction had no evidence of AWS behind it: a Step Functions Local <stateMachineArn>#<test case> is checked as given; Macie CreateMember on member/*; IAM Identity Center ProvisionPermissionSet for ALL_PROVISIONED_ACCOUNTS on its instance and permission set alone, the request-scoped account pinning that served the account check removed; Logs DeleteDeliverySource on its delivery destinations; a CodeBuild build id of no build Floci holds on *. Handler fixes: Athena's ListDatabases, ListTableMetadata and GetTableMetadata read Glue whichever catalog was named, so they were also checked on AwsDataCatalog. They now refuse a catalog whose metadata is not the account's Glue Data Catalog with MetadataException and are checked on the catalog they name. Cost Explorer's cost reads ignored BillingViewArn, so they were checked on *. They now answer the primary billing view alone, refuse another with ResourceNotFoundException, and are checked on the view they name. The passed-roles table had drifted from the Service Reference and is regenerated. AWS now passes CreateTrainingSession's role to training-session.sagemaker alone, so its RoleArn is read rather than left unread for naming two services, and AWS lists Secrets Manager's new AssociateCrossAccountReplica, which the pinned botocore does not model yet. The generator now leaves an operation no pinned model has unread on its own, until a bump brings it in, in place of a hand-written entry for each, so the two there were are gone. The tag-on-create table had drifted too: AWS no longer lists a tagging action for Network Firewall's CreateProxy, CreateProxyConfiguration and CreateProxyRuleGroup, and lists five operations the pinned botocore does not model yet. It is regenerated.