Class ProfileFileLocation


  • @SdkPublicApi
    public final class ProfileFileLocation
    extends Object
    A collection of static methods for loading the location for configuration and credentials files.
    • Method Detail

      • configurationFilePath

        public static Path configurationFilePath()
        Resolve the path for the configuration file, regardless of whether it exists or not.
        See Also:
        configurationFileLocation()
      • credentialsFilePath

        public static Path credentialsFilePath()
        Resolve the location for the credentials file, regardless of whether it exists or not.
        See Also:
        credentialsFileLocation()
      • configurationFileLocation

        public static Optional<Path> configurationFileLocation()
        Load the location for the configuration file, usually ~/.aws/config unless it's overridden using an environment variable or system property.
      • credentialsFileLocation

        public static Optional<Path> credentialsFileLocation()
        Load the location for the credentials file, usually ~/.aws/credentials unless it's overridden using an environment variable or system property.