Class ProfileFileLocation

java.lang.Object
software.amazon.awssdk.profiles.ProfileFileLocation

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

    • configurationFilePath

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

      public static Path credentialsFilePath()
      Resolve the location for the credentials file, regardless of whether it exists or not.
      See Also:
    • 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.