private static List<String> parseLabels(String resource) {
        List<String> result = new ArrayList<>();
        Matcher matcher = PATTERN.matcher(resource);
        while (matcher.find()) {
            result.add(matcher.group(1));
        }
        return result;
    }
Configures the ARN template of a resource shape, relative to the
service to which a resource is bound.
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/ArnTrait.java