com.amazonaws.profile.path.AwsProfileFileLocationProvider Java Examples

The following examples show how to use com.amazonaws.profile.path.AwsProfileFileLocationProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AwsProfileFileLocationProviderChain.java    From bazel with Apache License 2.0 5 votes vote down vote up
@Override
public File getLocation() {
    for (AwsProfileFileLocationProvider provider : providers) {
        File path = provider.getLocation();
        if (path != null) {
            return path;
        }
    }
    return null;
}
 
Example #2
Source File: AWSCLIConfigFile.java    From strongbox with Apache License 2.0 4 votes vote down vote up
public static Optional<File> getCredentialProfilesFile() {
    return Optional.ofNullable(AwsProfileFileLocationProvider.DEFAULT_CREDENTIALS_LOCATION_PROVIDER.getLocation());
}
 
Example #3
Source File: AWSCLIConfigFile.java    From strongbox with Apache License 2.0 4 votes vote down vote up
public static Optional<File> getConfigFile() {
    return Optional.ofNullable(AwsProfileFileLocationProvider.DEFAULT_CONFIG_LOCATION_PROVIDER.getLocation());
}
 
Example #4
Source File: AwsProfileFileLocationProviderChain.java    From bazel with Apache License 2.0 4 votes vote down vote up
public AwsProfileFileLocationProviderChain(AwsProfileFileLocationProvider... providers) {
    Collections.addAll(this.providers, providers);
}
 
Example #5
Source File: ProfilesConfigFile.java    From bazel with Apache License 2.0 4 votes vote down vote up
private static File getCredentialProfilesFile() {
    return AwsProfileFileLocationProvider.DEFAULT_CREDENTIALS_LOCATION_PROVIDER.getLocation();
}