Files
floci/tools
Jackson PriceandAndre Kurait ade406bac2 fix(lambda): accept layer ARNs in GetLayerVersion (#8345)
GetLayerVersion took an unversioned layer ARN as a literal layer name
and answered ResourceNotFoundException. It now resolves the ARN through
the existing layer resolver, keeping its account and partition checks,
and builds the archive URL from the layer's own Region.

Both GetLayerVersion and GetLayerVersionByArn take their IAM resources
from the generated request-resource table. The generator reads a
name-or-ARN alternative on URI and query members, and fills an ARN
variable from the integer shape named after it, so the layer version is
read from the model. A REST route keeps its modeled operation when AWS
authorizes it under another action name, and an ARN selector is checked
on the stored version it resolves to, in that version's account and
Region. The lookup tests share one layer archive fixture.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
2026-11-14 17:33:47 -04:00
..