mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
The Config handler read each member with asText, asInt or path and checked only some of them by hand, so an empty or over-long Arn on the two recorder Describe calls answered NoSuchConfigurationRecorderException, and an empty ResourceArn on the three tag operations was accepted, as was an over-long one that isn't a Config resource's ARN. tools/aws/regen_config_shapes.py now vendors every Config operation's request constraints from botocore, kept in sync by make aws-data-check, and RequestConstraintCheck checks each served operation's request before it runs. A violation is a ValidationException, which the model documents for missing required fields and input that fails validation, and a Limit out of range answers the InvalidLimitException its operation models. The hand-written checks the table covers are gone, putConfigRule's included: ConfigCfnProvisioner now checks the rule it builds as a PutConfigRule request before storing it, so a template property outside the constraints fails the resource. A rule without a ConfigRuleName keeps its InvalidParameterValueException, since the model doesn't require the member. The loop that drops blob and timestamp members moves into request_shapes as drop_blob_and_timestamp_members, used by both the Config and Kinesis generators. Both vendored files are unchanged.