Files
floci/tools
Hector Ventura 42b4bf4245 refactor(rds,docdb,neptune,cloudformation): tell names from ARNs through AwsArnUtils (#6880)
* refactor(core): add AwsArnUtils.looksLikeArn for name-or-ARN parameters

A parameter that takes a name or an ARN, where AWS answers a malformed ARN with its own error, needs to treat any value starting arn: as an attempted ARN. isArn needs all six fields and would send arn:aws:rds down the name path, so the sites the earlier migration PRs left on purpose still probe with a hand-written startsWith. looksLikeArn is that probe, in one place, so the area PRs that follow can move them off the arn-probe baseline without changing the error a caller sees.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* refactor(rds,docdb,neptune,cloudformation): tell names from ARNs through AwsArnUtils

The startsWith("arn:") probes on name-or-ARN parameters in RDS, DocumentDB, Neptune, CloudFormation and the EC2 instance provisioner become AwsArnUtils.looksLikeArn, the same check, so a malformed ARN still gets the operation's own error. NeptuneQueryHandler reads a resource's region with AwsArnUtils.parse instead of a split.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-28 20:48:48 -04:00
..