Package software.amazon.awssdk.profiles
Class ProfileFileLocation
- java.lang.Object
-
- software.amazon.awssdk.profiles.ProfileFileLocation
-
@SdkPublicApi public final class ProfileFileLocation extends Object
A collection of static methods for loading the location for configuration and credentials files.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static PathconfigurationFilePath()Resolve the path for the configuration file, regardless of whether it exists or not.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.static PathcredentialsFilePath()Resolve the location for the credentials file, regardless of whether it exists or not.
-
-
-
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.
-
-