private static SecretVersionState toSecretVersionState(List<String> versionStages) {
        var stages = new HashSet<>(versionStages);
        if (stages.contains(AWSCURRENT)) {
            return SecretVersionState.CURRENT;
        } else if (stages.contains(AWSPENDING)) {
            return SecretVersionState.PENDING;
        } else {
            return SecretVersionState.DEPRECATED;
        }
    }
Returns the AWS secret id to use for the given key.
jdisc-cloud-aws/src/main/java/ai/vespa/secret/aws/AsmSecretReader.java