mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 09:22:49 -05:00
Move `config` from NOT_COVERED to NAMESPACES in regen_iam_request_resources.py, so Config requests are checked on the resources they name instead of `*`. A config rule's, configuration recorder's and conformance pack's ARN ends in an id Config mints, which a request naming one by its name does not carry, so ConfigStoredResourceArns answers the table's lookups with the ARN Config stores it under; one Config holds none of is checked on its name with the id open. The tag calls are read from ResourceArn. Two generic readings are added to the generator, changing Config's PutAggregationAuthorization and PutConfigurationRecorder rows and no other operation's: a format naming an account or a Region of its own beside the ARN's takes them from the request's one account id member and its one Region member, and a member filling one of the format's variables is no longer also the ARN's account; and a type the request names but fills no variable of takes its one name variable from the request's structure named after the type (ConfigurationRecorder.name). PutConfigRule now updates the rule its ConfigRuleArn names, else its ConfigRuleId, else its ConfigRuleName, as the PutConfigRule reference lets an update name its rule by any of the three, and refuses an ARN or id that names no rule with InvalidParameterValueException. Finding the rule by name alone let a request carrying one rule's id and another rule's name be checked on the first and change the second.