Files
floci/src
Priamo Germosen 27caa82349 refactor(core): move the Query list member pattern into a shared helper (#6306)
PassedRoles, in core.common, read a Redshift cluster's roles through
RedshiftQueryHandler.memberKeyRegex, so core depended on a service class.
The pattern now lives in core.common.AwsQueryLists, and both call it.

AwsQueryLists reads a list's numbered members in the three forms the
Redshift and RDS handlers accepted: the generic List.member.N, List.Name.N
when the list's shape names its member, and a bare List.N, every N in
numeric order with no stop at a gap. memberKeys gives the key pattern,
values the non-blank values, and memberIndex the number a key ends in,
which the Redshift handler also sorts its integration filters and
parameters by.

The Redshift and RDS handlers each keep their table of the names their
list shapes give their members (Redshift's SubnetIdentifier and
IamRoleArn, RDS's OptionName and AttributeValue, and so on) and pass the
name in, so the helper holds nothing specific to either. RDS had its own
copy of the reader, memberKeyRegex and numericSuffix included, and now
calls the helper too. PassedRoles names IamRoleArn for IamRoles and
AddIamRoles, the way its other cases name the members the handlers read.

No behaviour changes: the same keys are matched, in the same order, and
the same values read.
2026-10-22 21:54:54 -05:00
..