public SigV4Properties getSigV4Properties()

in src/main/java/com/amazon/neptune/gremlin/driver/sigv4/ChainedSigV4PropertiesProvider.java [59:75]


    public SigV4Properties getSigV4Properties() throws SigV4PropertiesNotFoundException {
        SigV4Properties properties;

        for (Supplier<SigV4Properties> provider : providers) {
            try {
                properties = provider.get();
                log.info("Successfully loaded SigV4 properties from provider: {}", provider.getClass());
                return properties;
            } catch (SigV4PropertiesNotFoundException e) {
                log.info("Unable to load SigV4 properties from provider: {}", provider.getClass());
            }
        }

        final String message = "Unable to load SigV4 properties from any of the providers";
        log.warn(message);
        throw new SigV4PropertiesNotFoundException(message);
    }