mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 02:28:08 -05:00
Replace ~60 scattered split(":")[n] accesses and "arn:aws:..." string
concatenations with a single Arn record that owns both responsibilities.
AwsArnUtils.Arn.of(service, region, accountId, resource).toString()
covers all construction. AwsArnUtils.parse() with regionOrDefault() /
accountOrDefault() covers all parsing. RegionResolver.buildArn() delegates
to Arn.of() internally.
Service-specific ARN parsers (LambdaArnUtils, DynamoDbTableNames,
AppConfigTagHandler) keep their domain validation but delegate the
six-field base parsing to AwsArnUtils.parse().